/* ========================================
   Dpay API Documentation - Styles
   ======================================== */

/* ========================================
   LOGIN SCREEN
   ======================================== */
.login-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transition: opacity 0.4s, visibility 0.4s;
}
.login-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.login-card {
  width: 100%;
  max-width: 400px;
  margin: 1rem;
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 1.25rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  text-align: center;
  backdrop-filter: blur(20px);
}
.login-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 800;
  color: white;
  font-family: 'Inter', sans-serif;
}
.login-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.25rem;
}
.login-subtitle {
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 1.75rem;
}
.login-form {
  text-align: left;
}
.login-field {
  margin-bottom: 1rem;
}
.login-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.375rem;
}
.login-field input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 0.625rem;
  background: #f8fafc;
  color: #1e293b;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: 'Inter', sans-serif;
  box-sizing: border-box;
}
.login-field input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
  background: white;
}
.login-error {
  color: #ef4444;
  font-size: 0.8125rem;
  margin-bottom: 0.75rem;
  text-align: center;
}
.login-btn {
  width: 100%;
  padding: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: none;
  border-radius: 0.625rem;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  font-family: 'Inter', sans-serif;
  margin-top: 0.5rem;
}
.login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}
.login-btn:active {
  transform: translateY(0);
}

:root {
  /* Colors - Light */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fc;
  --bg-tertiary: #f1f3f9;
  --bg-code: #1e1e2e;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-bg: #eef2ff;
  --sidebar-bg: #ffffff;
  --sidebar-active: #f1f5f9;
  --sidebar-hover: #f8fafc;
  --card-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --card-shadow-hover: 0 10px 25px rgba(0,0,0,0.08);
  --code-bg: #1e1e2e;
  --code-text: #cdd6f4;
  --inline-code-bg: #f1f5f9;
  --inline-code-text: #6366f1;
  --table-stripe: #f8fafc;
  --hero-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);
  --scrollbar-thumb: #cbd5e1;
  --scrollbar-track: #f1f5f9;
  --toast-bg: #1e293b;
}

[data-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #1e293b;
  --bg-code: #0d1117;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --border-color: #334155;
  --border-light: #1e293b;
  --accent: #818cf8;
  --accent-light: #a5b4fc;
  --accent-bg: rgba(99,102,241,0.15);
  --sidebar-bg: #0f172a;
  --sidebar-active: #1e293b;
  --sidebar-hover: #1e293b;
  --card-shadow: 0 1px 3px rgba(0,0,0,0.3);
  --card-shadow-hover: 0 10px 25px rgba(0,0,0,0.4);
  --code-bg: #0d1117;
  --code-text: #cdd6f4;
  --inline-code-bg: #1e293b;
  --inline-code-text: #a5b4fc;
  --table-stripe: #1e293b;
  --scrollbar-thumb: #334155;
  --scrollbar-track: #1e293b;
  --toast-bg: #334155;
}

/* ========================================
   Reset & Base
   ======================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--accent);
  color: #fff;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 3px;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-light);
}

img {
  max-width: 100%;
}

/* ========================================
   Header / Navbar
   ======================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 64px;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  padding: 0 24px;
  transition: background 0.3s, border-color 0.3s;
}

[data-theme="dark"] .navbar {
  background: rgba(15,23,42,0.9);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-primary);
}

.navbar-brand .logo-icon {
  width: 32px;
  height: 32px;
  background: var(--hero-gradient);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
}

.navbar-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-size: 16px;
}

.btn-icon:hover {
  background: var(--bg-secondary);
  border-color: var(--accent);
  color: var(--accent);
}

.lang-toggle {
  font-size: 12px;
  font-weight: 600;
  width: auto;
  padding: 0 10px;
  font-family: 'Inter', sans-serif;
}

.hamburger {
  display: none;
}

/* ========================================
   Layout
   ======================================== */

.layout {
  display: flex;
  margin-top: 64px;
}

/* ========================================
   Sidebar
   ======================================== */

.sidebar {
  position: fixed;
  top: 64px;
  left: 0;
  bottom: 0;
  width: 280px;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border-color);
  overflow-y: auto;
  padding: 24px 0;
  transition: transform 0.3s ease, background 0.3s, border-color 0.3s;
  z-index: 900;
}

.sidebar-nav {
  list-style: none;
}

.sidebar-section {
  padding: 0 16px;
  margin-bottom: 8px;
}

.sidebar-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  padding: 8px 12px 4px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s ease;
  cursor: pointer;
}

.sidebar-link:hover {
  background: var(--sidebar-hover);
  color: var(--text-primary);
}

.sidebar-link.active {
  background: var(--accent-bg);
  color: var(--accent);
  font-weight: 600;
}

.sidebar-link .link-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-link .method-badge-sm {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: auto;
  flex-shrink: 0;
}

/* ========================================
   Main Content
   ======================================== */

.main-content {
  margin-left: 280px;
  flex: 1;
  min-width: 0;
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
  position: relative;
  background: var(--hero-gradient);
  padding: 80px 48px;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 40%);
}

.hero-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  background: #fff;
  animation: float 20s ease-in-out infinite;
}

.hero-shape:nth-child(1) { width: 300px; height: 300px; top: -80px; right: -60px; animation-delay: 0s; }
.hero-shape:nth-child(2) { width: 200px; height: 200px; bottom: -40px; left: 10%; animation-delay: -5s; }
.hero-shape:nth-child(3) { width: 150px; height: 150px; top: 20%; right: 20%; animation-delay: -10s; opacity: 0.06; }
.hero-shape:nth-child(4) { width: 80px; height: 80px; bottom: 30%; left: 40%; animation-delay: -15s; opacity: 0.08; }
.hero-shape:nth-child(5) { width: 120px; height: 120px; top: 60%; right: 5%; animation-delay: -7s; opacity: 0.05; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(20px, -30px) rotate(5deg); }
  50% { transform: translate(-10px, 20px) rotate(-3deg); }
  75% { transform: translate(15px, 10px) rotate(2deg); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.2);
  color: #fff;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.025em;
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 560px;
}

.hero-base-url {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(8px);
  padding: 12px 20px;
  border-radius: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
}

.hero-base-url .label {
  color: rgba(255,255,255,0.6);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-base-url .url {
  color: #e0e7ff;
}

.hero-base-url .copy-btn-inline {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 14px;
  transition: background 0.2s;
}

.hero-base-url .copy-btn-inline:hover {
  background: rgba(255,255,255,0.3);
}

/* ========================================
   Content Sections
   ======================================== */

.content-wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 48px;
}

.section {
  padding: 64px 0;
  border-bottom: 1px solid var(--border-color);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section:last-child {
  border-bottom: none;
}

.section-header {
  margin-bottom: 32px;
}

.section-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-header h2 .section-icon {
  font-size: 1.5rem;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 640px;
}

/* ========================================
   Endpoint Card
   ======================================== */

.endpoint-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.3s, border-color 0.3s;
}

.endpoint-card:hover {
  box-shadow: var(--card-shadow-hover);
}

.endpoint-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

.method-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.method-badge.get, .method-badge-sm.get {
  background: #dcfce7;
  color: #166534;
}

.method-badge.post, .method-badge-sm.post {
  background: #dbeafe;
  color: #1e40af;
}

.method-badge.delete, .method-badge-sm.delete {
  background: #fee2e2;
  color: #991b1b;
}

[data-theme="dark"] .method-badge.get, [data-theme="dark"] .method-badge-sm.get {
  background: rgba(34,197,94,0.15);
  color: #4ade80;
}

[data-theme="dark"] .method-badge.post, [data-theme="dark"] .method-badge-sm.post {
  background: rgba(59,130,246,0.15);
  color: #60a5fa;
}

[data-theme="dark"] .method-badge.delete, [data-theme="dark"] .method-badge-sm.delete {
  background: rgba(239,68,68,0.15);
  color: #f87171;
}

.endpoint-path {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.endpoint-desc {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.endpoint-body {
  padding: 24px;
}

/* ========================================
   Tables
   ======================================== */

.table-wrapper {
  overflow-x: auto;
  margin: 16px 0;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

thead {
  background: var(--bg-secondary);
}

th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-color);
}

td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
}

tr:last-child td {
  border-bottom: none;
}

tbody tr:nth-child(even) {
  background: var(--table-stripe);
}

td .field-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

td .field-type {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

td .field-required {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #dc2626;
  background: #fef2f2;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 6px;
}

[data-theme="dark"] td .field-required {
  background: rgba(220,38,38,0.15);
  color: #f87171;
}

td .field-optional {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #6b7280;
  background: #f3f4f6;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 6px;
}

[data-theme="dark"] td .field-optional {
  background: rgba(107,114,128,0.15);
  color: #9ca3af;
}

/* ========================================
   Code Blocks
   ======================================== */

.code-block-wrapper {
  position: relative;
  margin: 16px 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #181825;
  border-bottom: 1px solid #313244;
  font-size: 0.75rem;
  color: #a6adc8;
}

.code-block-lang {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.copy-btn {
  background: transparent;
  border: 1px solid #45475a;
  color: #a6adc8;
  cursor: pointer;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}

.copy-btn:hover {
  background: #313244;
  color: #cdd6f4;
}

.copy-btn.copied {
  border-color: #a6e3a1;
  color: #a6e3a1;
}

pre {
  background: var(--code-bg);
  padding: 20px;
  overflow-x: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  line-height: 1.7;
  margin: 0;
}

pre code {
  color: var(--code-text);
}

/* Syntax highlighting via CSS */
.token-keyword { color: #cba6f7; }
.token-string { color: #a6e3a1; }
.token-number { color: #fab387; }
.token-comment { color: #6c7086; font-style: italic; }
.token-property { color: #89b4fa; }
.token-punctuation { color: #a6adc8; }
.token-operator { color: #89dceb; }
.token-function { color: #89b4fa; }
.token-boolean { color: #fab387; }
.token-null { color: #f38ba8; }
.token-method { color: #f9e2af; }
.token-url { color: #a6e3a1; text-decoration: underline; }
.token-header-key { color: #89b4fa; }
.token-header-value { color: #a6e3a1; }

/* Inline code */
code:not(pre code) {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82em;
  background: var(--inline-code-bg);
  color: var(--inline-code-text);
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 500;
}

/* ========================================
   Status Badges
   ======================================== */

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
}

.status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-badge.pending { background: #fef3c7; color: #92400e; }
.status-badge.pending::before { background: #f59e0b; }
.status-badge.paid, .status-badge.completed { background: #dcfce7; color: #166534; }
.status-badge.paid::before, .status-badge.completed::before { background: #22c55e; }
.status-badge.processing { background: #dbeafe; color: #1e40af; }
.status-badge.processing::before { background: #3b82f6; }
.status-badge.failed { background: #fee2e2; color: #991b1b; }
.status-badge.failed::before { background: #ef4444; }
.status-badge.expired { background: #f3f4f6; color: #4b5563; }
.status-badge.expired::before { background: #9ca3af; }
.status-badge.cancelled { background: #f1f5f9; color: #475569; }
.status-badge.cancelled::before { background: #64748b; }

[data-theme="dark"] .status-badge.pending { background: rgba(245,158,11,0.15); color: #fbbf24; }
[data-theme="dark"] .status-badge.paid, [data-theme="dark"] .status-badge.completed { background: rgba(34,197,94,0.15); color: #4ade80; }
[data-theme="dark"] .status-badge.processing { background: rgba(59,130,246,0.15); color: #60a5fa; }
[data-theme="dark"] .status-badge.failed { background: rgba(239,68,68,0.15); color: #f87171; }
[data-theme="dark"] .status-badge.expired { background: rgba(107,114,128,0.15); color: #9ca3af; }
[data-theme="dark"] .status-badge.cancelled { background: rgba(100,116,139,0.15); color: #94a3b8; }

/* ========================================
   Bank Grid
   ======================================== */

.bank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.bank-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-primary);
  transition: all 0.2s;
}

.bank-card:hover {
  border-color: var(--accent);
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-1px);
}

.bank-card img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
}

.bank-card .bank-info {
  display: flex;
  flex-direction: column;
}

.bank-card .bank-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

.bank-card .bank-int-code {
  font-size: 0.7rem;
  color: var(--text-tertiary);
}

/* ========================================
   Info/Warning Boxes
   ======================================== */

.callout {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 12px;
  margin: 20px 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.callout-icon {
  flex-shrink: 0;
  font-size: 18px;
  margin-top: 1px;
}

.callout.info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

.callout.warning {
  background: #fefce8;
  border: 1px solid #fde68a;
  color: #92400e;
}

.callout.success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

[data-theme="dark"] .callout.info {
  background: rgba(59,130,246,0.1);
  border-color: rgba(59,130,246,0.3);
  color: #93c5fd;
}

[data-theme="dark"] .callout.warning {
  background: rgba(245,158,11,0.1);
  border-color: rgba(245,158,11,0.3);
  color: #fcd34d;
}

[data-theme="dark"] .callout.success {
  background: rgba(34,197,94,0.1);
  border-color: rgba(34,197,94,0.3);
  color: #86efac;
}

/* ========================================
   Tabs
   ======================================== */

.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 24px;
  overflow-x: auto;
}

.tab {
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-tertiary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: all 0.2s;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  font-family: 'Inter', sans-serif;
}

.tab:hover {
  color: var(--text-primary);
}

.tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* ========================================
   Steps List
   ======================================== */

.steps {
  list-style: none;
  counter-reset: step-counter;
  margin: 24px 0;
}

.steps li {
  counter-increment: step-counter;
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
}

.steps li:last-child {
  border-bottom: none;
}

.steps li::before {
  content: counter(step-counter);
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--accent-bg);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.steps li .step-content {
  flex: 1;
}

.steps li .step-content strong {
  display: block;
  margin-bottom: 4px;
}

/* ========================================
   Footer
   ======================================== */

.footer {
  text-align: center;
  padding: 48px;
  color: var(--text-tertiary);
  font-size: 0.85rem;
  border-top: 1px solid var(--border-color);
}

/* ========================================
   Toast
   ======================================== */

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--toast-bg);
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  z-index: 9999;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Sidebar Overlay (Mobile)
   ======================================== */

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 899;
  opacity: 0;
  transition: opacity 0.3s;
}

.sidebar-overlay.show {
  display: block;
  opacity: 1;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 1024px) {
  .content-wrapper {
    padding: 0 32px;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .sidebar {
    transform: translateX(-100%);
    width: 280px;
    z-index: 950;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }

  .hero {
    padding: 48px 24px;
    min-height: auto;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-base-url {
    font-size: 0.8rem;
    flex-wrap: wrap;
  }

  .content-wrapper {
    padding: 0 20px;
  }

  .section {
    padding: 40px 0;
  }

  .section-header h2 {
    font-size: 1.4rem;
  }

  .endpoint-header {
    flex-wrap: wrap;
    gap: 8px;
  }

  .endpoint-desc {
    margin-left: 0;
    width: 100%;
  }

  .bank-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  table {
    font-size: 0.8rem;
  }

  th, td {
    padding: 10px 12px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.6rem;
  }

  .bank-grid {
    grid-template-columns: 1fr 1fr;
  }

  .navbar-brand span {
    display: none;
  }
}

/* ========================================
   Scroll reveal animation
   ======================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.endpoint-card {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s, border-color 0.3s;
}

.section.visible .endpoint-card {
  opacity: 1;
  transform: translateY(0);
}

.section.visible .endpoint-card:nth-child(2) { transition-delay: 0.1s; }
.section.visible .endpoint-card:nth-child(3) { transition-delay: 0.2s; }
.section.visible .endpoint-card:nth-child(4) { transition-delay: 0.3s; }
