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

:root {
  /* ScayPay Brand */
  --blue:        #1B3D8F;
  --blue-mid:    #2557C7;
  --blue-bright: #2563EB;
  --orange:      #F47920;
  --orange-d:    #D9630D;

  /* Backgrounds — Fintech X dark */
  --bg:          #07070A;
  --bg-card:     #0F0F14;
  --bg-card2:    #161620;
  --bg-nav:      rgba(7,7,10,0.92);

  /* Borders */
  --border:      #1C1C28;
  --border-md:   #252535;

  /* Text */
  --text:        #FFFFFF;
  --text-sub:    #ADADC0;
  --text-muted:  #6B6B80;

  /* Utility */
  --radius:      14px;
  --radius-sm:   8px;
  --shadow:      0 8px 40px rgba(0,0,0,.6);
  --shadow-blue: 0 8px 32px rgba(37,99,235,.35);
  --shadow-orange:0 8px 32px rgba(244,121,32,.25);
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue-bright); text-decoration: none; transition: color .2s; }
a:hover { color: #93bcfc; }
img { max-width: 100%; display: block; }

/* ─── Typography ─────────────────────────────────────────────────────────────── */
h1 { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 900; line-height: 1.08; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }

/* Blue underline highlight (Fintech X style) */
.highlight {
  position: relative; display: inline-block;
  color: var(--blue-bright);
}
.highlight::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--blue-bright), var(--orange));
  border-radius: 2px;
}

.gradient-text {
  background: linear-gradient(135deg, #93bcfc 0%, var(--orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Layout ─────────────────────────────────────────────────────────────────── */
.container    { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section      { padding: 6rem 0; }
.text-center  { text-align: center; }
.text-left    { text-align: left; }

/* ─── Navigation (Fintech X style) ──────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem; max-width: 1200px; margin: 0 auto;
  gap: 2rem;
}

.nav-logo {
  display: flex; align-items: center; gap: 0;
  text-decoration: none; flex-shrink: 0;
}

.nav-logo img { height: 38px; width: auto; }

/* Logo fallback text */
.nav-logo-fallback {
  display: flex; align-items: center; gap: 0;
  font-size: 1.5rem; font-weight: 900; letter-spacing: -0.02em;
}
.nav-logo-fallback .l-scay { color: #1B3D8F; }
.nav-logo-fallback .l-pay  { color: var(--orange); }

.nav-links {
  display: flex; align-items: center; gap: 2.5rem; list-style: none; flex: 1; justify-content: center;
}
.nav-links a {
  color: var(--text-sub); font-size: .9rem; font-weight: 500;
  transition: color .2s; padding: .25rem 0;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer; padding: .5rem;
  flex-direction: column; gap: 5px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--text);
  border-radius: 1px; transition: .3s;
}

/* ─── Buttons ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .7rem 1.6rem; border-radius: 999px; font-size: .9rem; font-weight: 600;
  border: none; cursor: pointer; transition: all .2s; text-decoration: none;
  white-space: nowrap; letter-spacing: .01em;
}

.btn-primary {
  background: var(--blue-bright); color: #fff;
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover {
  background: #1d4ed8; color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 40px rgba(37,99,235,.45);
}

.btn-orange {
  background: var(--orange); color: #fff;
  box-shadow: var(--shadow-orange);
}
.btn-orange:hover {
  background: var(--orange-d); color: #fff;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--border-md);
}
.btn-outline:hover {
  border-color: var(--blue-bright); color: var(--blue-bright);
  background: rgba(37,99,235,.07);
}

.btn-ghost {
  background: transparent; color: var(--text-sub);
}
.btn-ghost:hover { color: var(--text); }

.btn-lg   { padding: .9rem 2.2rem; font-size: 1rem; }
.btn-sm   { padding: .45rem 1.1rem; font-size: .83rem; }
.btn-xs   { padding: .35rem .85rem; font-size: .78rem; }
.btn-block{ width: 100%; }
.btn-danger { background: #EF4444; color: #fff; }
.btn-danger:hover { background: #DC2626; color: #fff; }
.btn-success { background: #16A34A; color: #fff; }
.btn-success:hover { background: #15803D; color: #fff; }

.arrow-icon { font-size: .85em; transition: transform .2s; }
.btn:hover .arrow-icon { transform: translateX(3px); }

/* ─── Hero Section (Fintech X) ───────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 7rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse 70% 60% at 20% 40%, rgba(37,99,235,.1) 0%, transparent 60%),
              radial-gradient(ellipse 50% 50% at 80% 80%, rgba(244,121,32,.07) 0%, transparent 50%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(37,99,235,.1); border: 1px solid rgba(37,99,235,.25);
  color: #93bcfc; padding: .4rem 1.1rem; border-radius: 999px;
  font-size: .8rem; font-weight: 600; margin-bottom: 1.75rem;
}
.hero-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--orange); animation: pulseDot 2s infinite;
}

.hero h1 { margin-bottom: 1.5rem; }
.hero p   { color: var(--text-sub); font-size: 1.1rem; max-width: 480px; margin-bottom: 2.5rem; line-height: 1.7; }

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Fintech X floating card visual */
.hero-visual {
  position: relative; height: 420px;
}

.api-card {
  background: var(--bg-card);
  border: 1px solid var(--border-md);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  position: absolute;
}

.api-card.card-main {
  width: 340px; right: 0; top: 30px;
  transform: rotate(-2deg);
  z-index: 3;
}

.api-card.card-back {
  width: 310px; right: 30px; top: 160px;
  transform: rotate(4deg);
  z-index: 2;
  opacity: .7;
}

.api-card.card-mini {
  width: 240px; right: 160px; top: 50px;
  transform: rotate(-6deg);
  z-index: 1;
  opacity: .5;
}

.card-header-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1rem;
}
.card-method-badge {
  background: rgba(37,99,235,.15); color: #93bcfc;
  font-size: .72rem; font-weight: 700; padding: .2rem .6rem; border-radius: 4px;
  font-family: 'JetBrains Mono', monospace; letter-spacing: .05em;
}
.status-badge-ok {
  background: rgba(22,163,74,.15); color: #4ade80;
  font-size: .72rem; font-weight: 700; padding: .2rem .6rem; border-radius: 4px;
}
.card-url {
  font-family: 'JetBrains Mono', monospace;
  font-size: .75rem; color: var(--text-muted); margin-bottom: 1rem;
}
.api-card pre {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: .78rem; line-height: 1.75; color: #CBD5E1;
}
.api-card pre .k { color: #93bcfc; }
.api-card pre .s { color: #86EFAC; }
.api-card pre .n { color: #FCD34D; }

/* Payment card design (like Fintech X credit cards) */
.pay-card {
  width: 260px; height: 155px; border-radius: 14px;
  padding: 1.25rem; position: absolute;
  display: flex; flex-direction: column; justify-content: space-between;
}

.pay-card.blue {
  background: linear-gradient(135deg, #1B3D8F, #2563EB);
  top: 20px; right: 20px; z-index: 3; transform: rotate(-5deg);
  box-shadow: 0 20px 60px rgba(37,99,235,.45);
}

.pay-card.dark {
  background: linear-gradient(135deg, #151520, #1C1C2E);
  border: 1px solid var(--border-md);
  top: 120px; right: 80px; z-index: 2; transform: rotate(3deg);
  box-shadow: var(--shadow);
}

.pay-card.orange {
  background: linear-gradient(135deg, #8B2500, #D9630D, #F47920);
  top: 220px; right: 10px; z-index: 1; transform: rotate(7deg);
  box-shadow: 0 20px 60px rgba(244,121,32,.35);
  opacity: .85;
}

.pay-card-chip {
  width: 32px; height: 24px; border-radius: 4px;
  background: rgba(255,255,255,.25);
}
.pay-card-num { font-family: 'JetBrains Mono', monospace; font-size: .85rem; color: rgba(255,255,255,.9); letter-spacing: .12em; }
.pay-card-name { font-size: .78rem; color: rgba(255,255,255,.7); font-weight: 600; }
.pay-card-logo {
  width: 36px; height: 22px;
  display: flex; align-items: center;
}
.pay-card-logo-circles { display: flex; }
.pay-card-logo-circles span {
  width: 22px; height: 22px; border-radius: 50%; opacity: .85;
}
.pay-card-logo-circles span:first-child { background: #F47920; margin-right: -8px; }
.pay-card-logo-circles span:last-child  { background: #FBBF24; }

/* ─── Stats Bar ──────────────────────────────────────────────────────────────── */
.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
}
.stats-bar-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr));
  gap: 2rem; text-align: center;
}
.stat-num  { font-size: 2.2rem; font-weight: 900; letter-spacing: -0.03em; color: var(--text); }
.stat-num .orange { color: var(--orange); }
.stat-num .blue   { color: var(--blue-bright); }
.stat-label { color: var(--text-muted); font-size: .82rem; margin-top: .2rem; }

/* ─── Section Headings ───────────────────────────────────────────────────────── */
.section-eyebrow {
  display: inline-block; color: var(--orange);
  font-size: .8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; margin-bottom: .85rem;
}
.section-title  { margin-bottom: .85rem; }
.section-sub    { color: var(--text-sub); max-width: 540px; margin: 0 auto 3.5rem; font-size: 1rem; }

/* ─── Feature Cards ──────────────────────────────────────────────────────────── */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 1.5rem; }

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--blue-bright), var(--orange));
  opacity: 0; transition: opacity .3s;
}
.feature-card:hover { border-color: var(--border-md); transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 1.25rem;
  background: rgba(37,99,235,.1); border: 1px solid rgba(37,99,235,.15);
}
.feature-icon.orange-icon { background: rgba(244,121,32,.1); border-color: rgba(244,121,32,.15); }

.feature-card h3 { margin-bottom: .6rem; font-size: 1.05rem; }
.feature-card p  { color: var(--text-sub); font-size: .9rem; line-height: 1.65; }

/* ─── Steps ──────────────────────────────────────────────────────────────────── */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 2rem; }

.step-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem; position: relative;
}

.step-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(37,99,235,.12); border: 1px solid rgba(37,99,235,.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-bright); font-weight: 800; font-size: .95rem;
  margin-bottom: 1.25rem;
}
.step-card h3 { margin-bottom: .5rem; font-size: 1rem; }
.step-card p  { color: var(--text-sub); font-size: .88rem; line-height: 1.6; }

/* ─── Pricing ────────────────────────────────────────────────────────────────── */
.pricing-grid { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; align-items: stretch; }

.pricing-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2.5rem; width: 100%; max-width: 380px;
  display: flex; flex-direction: column;
}
.pricing-card.featured {
  border-color: var(--blue-bright);
  box-shadow: 0 0 0 1px var(--blue-bright), var(--shadow-blue);
  background: linear-gradient(160deg, rgba(37,99,235,.08) 0%, var(--bg-card) 60%);
}

.pricing-pill {
  display: inline-block; padding: .3rem .9rem; border-radius: 999px;
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 1.5rem;
}
.pricing-pill.blue   { background: rgba(37,99,235,.15); color: #93bcfc; }
.pricing-pill.muted  { background: var(--bg-card2); color: var(--text-muted); border: 1px solid var(--border); }

.pricing-amount {
  font-size: 3.25rem; font-weight: 900; letter-spacing: -0.04em; line-height: 1;
  margin: .5rem 0;
}
.pricing-currency { font-size: 1.1rem; vertical-align: top; padding-top: .6rem; display: inline-block; color: var(--text-sub); }
.pricing-desc { color: var(--text-muted); font-size: .88rem; margin-bottom: 2rem; }

.pricing-divider { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }

.pricing-features { list-style: none; flex: 1; margin-bottom: 2rem; }
.pricing-features li {
  display: flex; align-items: center; gap: .75rem;
  padding: .55rem 0; color: var(--text-sub); font-size: .88rem;
}
.pricing-features li .check {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  background: rgba(37,99,235,.12); border: 1px solid rgba(37,99,235,.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-bright); font-size: .7rem; font-weight: 900;
}
.pricing-features li .check.orange { background: rgba(244,121,32,.12); border-color: rgba(244,121,32,.2); color: var(--orange); }

/* ─── Testimonials ───────────────────────────────────────────────────────────── */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 1.5rem; }

.testimonial-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
}
.testimonial-card blockquote {
  color: var(--text-sub); font-size: .9rem; line-height: 1.75;
  margin-bottom: 1.5rem; position: relative;
}
.testimonial-card blockquote::before {
  content: '"'; font-size: 4rem; color: var(--blue-bright); opacity: .2;
  position: absolute; top: -1.5rem; left: -0.5rem; font-family: Georgia, serif;
}
.testimonial-author { display: flex; align-items: center; gap: .85rem; }
.author-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-bright), var(--orange));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .88rem; color: #fff; flex-shrink: 0;
}
.author-name  { font-weight: 700; font-size: .9rem; }
.author-title { color: var(--text-muted); font-size: .78rem; }

/* ─── Cards (generic) ────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

/* ─── Forms ──────────────────────────────────────────────────────────────────── */
.form-group    { margin-bottom: 1.25rem; }
.form-label    { display: block; font-size: .83rem; font-weight: 600; color: var(--text-sub); margin-bottom: .5rem; }
.form-control {
  width: 100%; padding: .8rem 1.1rem;
  background: var(--bg-card2); border: 1.5px solid var(--border-md);
  border-radius: var(--radius-sm); color: var(--text); font-size: .9rem;
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.form-control:focus {
  border-color: var(--blue-bright);
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control    { resize: vertical; min-height: 110px; }
select.form-control      {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='%236B6B80' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.form-hint  { font-size: .78rem; color: var(--text-muted); margin-top: .4rem; }
.form-error { font-size: .8rem; color: #F87171; margin-top: .4rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-divider {
  display: flex; align-items: center; gap: 1rem; color: var(--text-muted);
  font-size: .82rem; margin: 1.5rem 0;
}
.form-divider::before, .form-divider::after {
  content: ''; flex: 1; border-top: 1px solid var(--border-md);
}

/* ─── Alerts ─────────────────────────────────────────────────────────────────── */
.alert {
  padding: .9rem 1.25rem; border-radius: var(--radius-sm);
  font-size: .88rem; display: flex; align-items: flex-start; gap: .65rem;
  margin-bottom: 1.25rem; line-height: 1.5;
}
.alert-success { background: rgba(22,163,74,.08);  border: 1px solid rgba(22,163,74,.25);  color: #86EFAC; }
.alert-error   { background: rgba(239,68,68,.08);  border: 1px solid rgba(239,68,68,.25);  color: #FCA5A5; }
.alert-info    { background: rgba(37,99,235,.08);  border: 1px solid rgba(37,99,235,.25);  color: #93bcfc; }
.alert-warning { background: rgba(244,121,32,.08); border: 1px solid rgba(244,121,32,.25); color: #FDBA74; }

/* ─── Badge / Status ─────────────────────────────────────────────────────────── */
.badge {
  display: inline-block; padding: .2rem .7rem; border-radius: 999px;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
}
.badge-pending  { background: rgba(244,121,32,.12); color: #FDBA74; }
.badge-approved { background: rgba(22,163,74,.12);  color: #86EFAC; }
.badge-rejected { background: rgba(239,68,68,.12);  color: #FCA5A5; }
.badge-active   { background: rgba(37,99,235,.12);  color: #93bcfc; }

/* ─── Dashboard Layout ───────────────────────────────────────────────────────── */
.dash-layout { display: flex; min-height: 100vh; padding-top: 0; }

.sidebar {
  width: 256px; background: var(--bg-card);
  border-right: 1px solid var(--border);
  padding: 1.5rem 1rem; flex-shrink: 0;
  position: sticky; top: 0; height: 100vh;
  overflow-y: auto; display: flex; flex-direction: column;
}

.sidebar-logo {
  display: flex; align-items: center; padding: .5rem .5rem 1.75rem;
}
.sidebar-logo img { height: 32px; width: auto; }
.sidebar-logo-text {
  display: flex; font-size: 1.2rem; font-weight: 900; letter-spacing: -0.02em;
}
.sidebar-logo-text .l-scay { color: #1B3D8F; }
.sidebar-logo-text .l-pay  { color: var(--orange); }

.sidebar-section-label {
  font-size: .7rem; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .08em;
  padding: .5rem .75rem .4rem; margin-top: .5rem;
}

.sidebar-nav { list-style: none; flex: 1; }
.sidebar-nav li a {
  display: flex; align-items: center; gap: .7rem;
  padding: .65rem .85rem; border-radius: 8px;
  color: var(--text-muted); font-size: .88rem; font-weight: 500;
  transition: all .18s;
}
.sidebar-nav li a:hover       { color: var(--text); background: var(--bg-card2); }
.sidebar-nav li a.active      { color: var(--text); background: rgba(37,99,235,.12); }
.sidebar-nav li a.active .nav-icon { color: var(--blue-bright); }
.sidebar-nav li a .nav-icon   { width: 16px; text-align: center; font-size: .9rem; }

.sidebar-divider { border: none; border-top: 1px solid var(--border); margin: .75rem 0; }
.sidebar-footer  { padding: .75rem; margin-top: auto; }

/* Dash main */
.dash-main   { flex: 1; overflow: auto; background: var(--bg); }
.dash-header {
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
}
.dash-header h1 { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; }
.dash-content   { padding: 2rem; }

/* Stats cards */
.stats-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px,1fr)); gap: 1.25rem; margin-bottom: 2rem; }
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
}
.stat-card-icon  { font-size: 1.25rem; margin-bottom: .85rem; }
.stat-card-label { font-size: .8rem; color: var(--text-muted); margin-bottom: .4rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.stat-card-value { font-size: 2rem; font-weight: 900; letter-spacing: -0.03em; }

/* ─── Table ──────────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead tr { background: var(--bg-card2); }
th { padding: .75rem 1rem; text-align: left; font-size: .75rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
td { padding: .9rem 1rem; font-size: .88rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(37,99,235,.03); }

/* ─── API Key Box ────────────────────────────────────────────────────────────── */
.api-key-box {
  background: var(--bg-card2); border: 1px solid var(--border-md);
  border-radius: var(--radius-sm); padding: .8rem 1.1rem;
  display: flex; align-items: center; gap: .85rem;
}
.api-key-box code {
  flex: 1; font-family: 'JetBrains Mono', monospace;
  font-size: .8rem; color: #93bcfc; word-break: break-all;
}
.copy-btn {
  background: rgba(37,99,235,.1); border: 1px solid rgba(37,99,235,.2);
  color: #93bcfc; padding: .3rem .8rem; border-radius: 6px;
  cursor: pointer; font-size: .75rem; font-weight: 600; transition: all .2s; flex-shrink: 0;
}
.copy-btn:hover { background: rgba(37,99,235,.2); }

/* ─── Auth pages (Fintech X Sign in style) ───────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
}

.auth-left {
  background: linear-gradient(145deg, #0D1B4A 0%, #0F0F14 60%);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  padding: 3rem; position: relative; overflow: hidden;
}
.auth-left::before {
  content: '';
  position: absolute; top: -20%; right: -10%;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,.2), transparent 60%);
  pointer-events: none;
}
.auth-left::after {
  content: '';
  position: absolute; bottom: -10%; left: -5%;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(244,121,32,.1), transparent 60%);
  pointer-events: none;
}

.auth-left-content { flex: 1; display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 1; }
.auth-left-content h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 1rem; line-height: 1.15; }
.auth-left-content p  { color: var(--text-sub); max-width: 380px; line-height: 1.7; }

.auth-left-features { list-style: none; margin-top: 2.5rem; }
.auth-left-features li {
  display: flex; align-items: center; gap: .75rem;
  color: var(--text-sub); font-size: .9rem; padding: .5rem 0;
}
.auth-left-features li .ft-check {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: rgba(37,99,235,.15); border: 1px solid rgba(37,99,235,.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-bright); font-size: .7rem;
}

.auth-right {
  display: flex; align-items: center; justify-content: center;
  padding: 3rem; background: var(--bg);
}

.auth-form-wrap { width: 100%; max-width: 400px; }
.auth-form-wrap .auth-logo { margin-bottom: 2.5rem; }
.auth-form-wrap h2 { margin-bottom: .4rem; font-size: 1.75rem; }
.auth-form-wrap .auth-sub {
  color: var(--text-muted); font-size: .9rem; margin-bottom: 2rem;
}
.auth-form-wrap .auth-sub a { color: var(--orange); font-weight: 600; }

.auth-footer { margin-top: 1.5rem; text-align: center; color: var(--text-muted); font-size: .85rem; }

/* Social login buttons */
.social-btn {
  display: flex; align-items: center; justify-content: center; gap: .75rem;
  width: 100%; padding: .75rem 1rem; border-radius: var(--radius-sm);
  background: var(--bg-card2); border: 1.5px solid var(--border-md);
  color: var(--text-sub); font-size: .88rem; font-weight: 600;
  cursor: pointer; transition: all .2s; text-decoration: none; margin-bottom: .6rem;
}
.social-btn:hover { border-color: var(--border-md); background: var(--bg-card); color: var(--text); }

/* ─── CTA Section ────────────────────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, rgba(27,61,143,.25) 0%, rgba(244,121,32,.12) 100%);
  border: 1px solid rgba(37,99,235,.2);
  border-radius: 20px; padding: 5rem 2rem; text-align: center;
}
.cta-section h2 { margin-bottom: 1rem; }
.cta-section p  { color: var(--text-sub); margin-bottom: 2rem; }

/* ─── Footer ─────────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem; margin-top: 0;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand p { color: var(--text-muted); font-size: .88rem; margin-top: 1rem; max-width: 260px; line-height: 1.65; }
.footer-col h4  { font-size: .85rem; font-weight: 700; margin-bottom: 1.25rem; color: var(--text); }
.footer-links   { list-style: none; }
.footer-links li { margin-bottom: .6rem; }
.footer-links a { color: var(--text-muted); font-size: .85rem; transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--text-muted); font-size: .8rem;
}

/* ─── Docs Layout ────────────────────────────────────────────────────────────── */
.docs-layout { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 72px); }
.docs-sidebar { border-right: 1px solid var(--border); padding: 2rem 1.25rem; position: sticky; top: 72px; height: calc(100vh - 72px); overflow-y: auto; }
.docs-sidebar h4 { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin: 1.5rem 0 .5rem; font-weight: 700; }
.docs-sidebar h4:first-child { margin-top: 0; }
.docs-sidebar ul { list-style: none; }
.docs-sidebar ul li a { display: block; padding: .4rem .5rem; font-size: .87rem; color: var(--text-muted); border-radius: 6px; transition: all .15s; }
.docs-sidebar ul li a:hover { color: var(--text); background: var(--bg-card2); }
.docs-content { padding: 3rem; max-width: 820px; }
.docs-content h1 { margin-bottom: 1rem; }
.docs-content h2 { margin: 2.5rem 0 1rem; padding-bottom: .6rem; border-bottom: 1px solid var(--border); font-size: 1.5rem; }
.docs-content h3 { margin: 1.75rem 0 .75rem; font-size: 1.05rem; }
.docs-content p  { color: var(--text-sub); margin-bottom: 1rem; line-height: 1.75; }

.code-block {
  background: var(--bg-card); border: 1px solid var(--border-md);
  border-radius: var(--radius-sm); padding: 1.25rem 1.5rem;
  overflow-x: auto; margin: 1rem 0 1.75rem;
}
.code-block pre {
  font-family: 'JetBrains Mono', monospace;
  font-size: .8rem; color: #CBD5E1; line-height: 1.75;
}

.endpoint-badge {
  display: inline-block; padding: .2rem .6rem; border-radius: 4px;
  font-family: monospace; font-size: .78rem; font-weight: 700; margin-right: .5rem;
}
.method-post { background: rgba(22,163,74,.12);  color: #86EFAC; }
.method-get  { background: rgba(37,99,235,.12); color: #93bcfc; }

.params-table { width: 100%; border-collapse: collapse; font-size: .86rem; margin: 1rem 0; }
.params-table th { padding: .6rem .85rem; background: var(--bg-card2); color: var(--text-muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; text-align: left; }
.params-table td { padding: .7rem .85rem; border-bottom: 1px solid var(--border); }
.params-table code { font-family: monospace; font-size: .82rem; color: #93bcfc; }
.params-table .required { color: #F87171; font-size: .74rem; }
.params-table .optional { color: var(--text-muted); font-size: .74rem; }

/* ─── Utility ────────────────────────────────────────────────────────────────── */
.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2rem}.mt-5{margin-top:3rem}
.mb-1{margin-bottom:.5rem}.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.5rem}.mb-4{margin-bottom:2rem}
.flex{display:flex}.items-center{align-items:center}.justify-between{justify-content:space-between}
.gap-1{gap:.5rem}.gap-2{gap:1rem}.gap-3{gap:1.5rem}
.text-muted  {color:var(--text-muted)}
.text-orange {color:var(--orange)}
.text-blue   {color:var(--blue-bright)}
.text-green  {color:#4ade80}
.text-red    {color:#F87171}
.font-bold{font-weight:700}.font-mono{font-family:'JetBrains Mono',monospace}
.divider{border:none;border-top:1px solid var(--border);margin:2rem 0}
.hidden{display:none!important}.text-sm{font-size:.85rem}.w-full{width:100%}

/* ─── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width:1024px){
  .hero-grid{grid-template-columns:1fr;gap:3rem;}
  .hero-visual{height:300px;}
  .pay-card.orange{display:none;}
}
@media (max-width:768px){
  .nav-links,.nav-actions{display:none;}
  .nav-toggle{display:flex;}
  .nav.mobile-open .nav-links{
    display:flex;flex-direction:column;position:absolute;
    top:100%;left:0;right:0;background:var(--bg-card);
    border-bottom:1px solid var(--border);padding:1.5rem;gap:1.25rem;
  }
  .nav.mobile-open .nav-actions{
    display:flex;flex-direction:column;position:absolute;
    top:100%;left:0;right:0;background:var(--bg-card);
    padding:0 1.5rem 1.5rem;
  }
  .form-row{grid-template-columns:1fr;}
  .footer-grid{grid-template-columns:1fr;gap:2rem;}
  .auth-page{grid-template-columns:1fr;}
  .auth-left{display:none;}
  .dash-layout{flex-direction:column;}
  .sidebar{width:100%;height:auto;position:static;border-right:none;border-bottom:1px solid var(--border);padding:1rem;flex-direction:row;flex-wrap:wrap;}
  .sidebar-logo{padding-bottom:0;margin-right:1rem;}
  .sidebar-nav{display:flex;flex-wrap:wrap;gap:.25rem;}
  .sidebar-section-label{display:none;}
  .docs-layout{grid-template-columns:1fr;}
  .docs-sidebar{position:static;height:auto;}
}

/* ─── Animations ─────────────────────────────────────────────────────────────── */
@keyframes pulseDot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(0.8)} }
@keyframes fadeUp   { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }
@keyframes float    { 0%,100%{transform:rotate(-2deg) translateY(0)} 50%{transform:rotate(-2deg) translateY(-10px)} }
@keyframes float2   { 0%,100%{transform:rotate(4deg) translateY(0)} 50%{transform:rotate(4deg) translateY(-6px)} }
@keyframes float3   { 0%,100%{transform:rotate(-6deg) translateY(0)} 50%{transform:rotate(-6deg) translateY(-8px)} }

.animate-fade-up { animation: fadeUp .6s ease forwards; }
.api-card.card-main { animation: float 6s ease-in-out infinite; }
.api-card.card-back { animation: float2 7s ease-in-out infinite; }
.api-card.card-mini { animation: float3 5s ease-in-out infinite; }

/* Page transition */
body { animation: fadeUp .3s ease; }

/* Scrollbar */
::-webkit-scrollbar{width:5px;height:5px;}
::-webkit-scrollbar-track{background:var(--bg);}
::-webkit-scrollbar-thumb{background:var(--border-md);border-radius:99px;}
