/* =========================================================
   WunaPay — main stylesheet
   Colours come from the Wunachat brand:
   terracotta #B2432A · forest #1F4A3C · gold #E9B44C · cream #FBF7F2
   ========================================================= */

/* ---------- 1. Colour themes (light is the default) ---------- */
:root {
  --bg: #FBF7F2;
  --bg-alt: #F5EDE4;
  --surface: #FFFFFF;
  --raised: #F1E7DC;
  --text: #1C1410;
  --muted: #6B5448;
  --border: #EADCCF;
  --border-strong: #D9C6B5;

  --primary: #B2432A;          /* terracotta: buttons */
  --primary-hover: #8E3420;
  --primary-text: #A33C25;     /* terracotta for text */
  --primary-soft: #F8E4DA;
  --forest: #1F4A3C;
  --forest-text: #1F4A3C;
  --forest-soft: #DCE8E2;
  --gold: #E9B44C;
  --gold-text: #7A5600;
  --gold-soft: #FCEFC7;
  --red-text: #8E2A17;
  --red-soft: #FBE0DA;
  --grey-text: #4F4038;
  --grey-soft: #EFE6DD;

  --nav-bg: rgba(251, 247, 242, 0.82);
  --shadow-lg: 0 40px 80px -20px rgba(60, 30, 15, 0.22), 0 4px 12px rgba(60, 30, 15, 0.06);
  --dots: rgba(150, 105, 85, 0.20);

  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-mono: "Geist Mono", ui-monospace, Consolas, monospace;

  --radius: 22px;
  --max: 1240px;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #110C09;
  --bg-alt: #17110D;
  --surface: #1C1511;
  --raised: #2A201A;
  --text: #F7EFE8;
  --muted: #BFAB9C;
  --border: #33261F;
  --border-strong: #4A382D;

  --primary-text: #F08C70;
  --primary-soft: #3A1C14;
  --forest-text: #6CC3A2;
  --forest-soft: #15302A;
  --gold-text: #F2C66A;
  --gold-soft: #33280F;
  --red-text: #F4A493;
  --red-soft: #3A1A15;
  --grey-text: #D3C3B6;
  --grey-soft: #2A201A;

  --nav-bg: rgba(17, 12, 9, 0.82);
  --shadow-lg: 0 40px 80px -20px rgba(0, 0, 0, 0.65), 0 4px 12px rgba(0, 0, 0, 0.3);
  color-scheme: dark;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s ease, color .25s ease;
}
img, svg { display: block; }
a { color: var(--primary-text); }
a:hover { color: var(--primary-hover); }
h1, h2, h3, p { margin: 0; }
button { font-family: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 8px; }

.container { max-width: var(--max); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding-top: 112px; padding-bottom: 112px; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.dots { background-image: radial-gradient(var(--dots) 1px, transparent 1px); background-size: 22px 22px; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* Headings */
.eyebrow {
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  letter-spacing: 1px; text-transform: uppercase; color: var(--primary-text);
  margin-bottom: 14px;
}
.h-display { font-weight: 700; font-size: clamp(44px, 6.2vw, 80px); line-height: .98; letter-spacing: -0.045em; }
.h-section { font-weight: 700; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.02; letter-spacing: -0.04em; }
.serif {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  color: var(--primary-text); letter-spacing: -0.02em;
}
.lead { font-size: 19px; line-height: 1.6; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, opacity .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #FFFFFF; box-shadow: 0 10px 30px rgba(178, 67, 42, 0.30); }
.btn-primary:hover { background: var(--primary-hover); color: #FFFFFF; }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { color: var(--text); }
.btn-dark { background: var(--text); color: var(--bg); min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn-dark:hover { color: var(--bg); opacity: .92; }
.btn-lg { min-height: 56px; padding: 0 30px; }

.icon-btn {
  width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--bg-alt); color: var(--text);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.icon-btn .i-sun { display: none; }
[data-theme="dark"] .icon-btn .i-sun { display: block; }
[data-theme="dark"] .icon-btn .i-moon { display: none; }

.segmented { display: inline-flex; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.segmented button {
  border: 0; min-width: 44px; height: 36px; padding: 0 12px; border-radius: 999px;
  font-weight: 600; font-size: 13px; cursor: pointer; background: transparent; color: var(--muted);
}
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.lift { transition: transform .2s ease; }
.lift:hover { transform: translateY(-3px); }
.check { flex-shrink: 0; color: var(--forest-text); }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.pill-ok { background: var(--forest-soft); color: var(--forest-text); }
.pill-wait { background: var(--gold-soft); color: var(--gold-text); }
.pill-fail { background: var(--red-soft); color: var(--red-text); }
.pill-grey { background: var(--grey-soft); color: var(--grey-text); }
.op { width: 32px; height: 32px; border-radius: 9px; color: #111111; font-size: 10px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.op-mtn { background: #FFCB05; }
.op-om { background: #FF7900; }

/* ---------- 3. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.nav-left { display: flex; align-items: center; gap: 40px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.logo:hover { color: var(--text); }
.logo-word { font-weight: 800; font-size: 22px; letter-spacing: -0.8px; }
.logo-dot { color: var(--forest-text); }
.nav-links { display: flex; gap: 28px; font-size: 15px; font-weight: 500; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nav-signin { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; padding: 12px 14px; }
.menu-toggle { display: none; }

/* ---------- 4. Hero ---------- */
.hero { border-bottom: 1px solid var(--border); }
.hero-inner { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 88px; padding-bottom: 96px; }
.hero-copy { flex: 1 1 520px; min-width: 0; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 14px 6px 6px; margin-bottom: 28px; color: var(--text); font-size: 14px; font-weight: 500;
}
.hero-chip:hover { color: var(--text); }
.hero-chip-tag { background: var(--forest-soft); color: var(--forest-text); font-weight: 700; font-size: 12px; padding: 4px 10px; border-radius: 999px; letter-spacing: .3px; }
.hero-copy .h-display { margin-bottom: 24px; }
.hero-copy .lead { max-width: 560px; margin-bottom: 36px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14px; color: var(--muted); font-weight: 500; }
.trust li { display: flex; align-items: center; gap: 8px; }

.hero-visual { flex: 1 1 520px; min-width: 0; position: relative; height: 560px; }
.mock-dash { position: absolute; top: 60px; right: 0; width: 88%; max-width: 540px; box-shadow: var(--shadow-lg); overflow: hidden; }
.mock-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.mock-title { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; }
.mock-title span { width: 10px; height: 10px; border-radius: 99px; background: var(--primary); }
.mock-chip { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--bg-alt); border: 1px solid var(--border); padding: 5px 10px; border-radius: 999px; }
.mock-body { padding: 20px 20px 4px; }
.mock-label { font-size: 13px; color: var(--muted); font-weight: 500; margin-bottom: 6px; }
.mock-amount { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.mock-amount strong { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; }
.mock-amount small { font-size: 15px; color: var(--muted); font-weight: 600; }
.mock-up { font-size: 12px; font-weight: 700; color: var(--forest-text); background: var(--forest-soft); padding: 4px 8px; border-radius: 8px; }
.chart { width: 100%; height: 110px; margin-top: 12px; }
.chart-area { fill: var(--primary-soft); }
.chart-line { fill: none; stroke: var(--primary); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.mock-rows { padding: 8px 20px 18px; }
.mock-rows p { margin: 10px 0 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.mock-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); font-size: 14px; }
.mock-row .ref { flex: 1 1 auto; min-width: 0; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-row .amt { font-family: var(--font-mono); font-size: 13px; }

.mock-phone { position: absolute; left: 0; bottom: 0; width: 236px; background: var(--raised); border: 1px solid var(--border); border-radius: 30px; padding: 10px; box-shadow: var(--shadow-lg); }
.mock-phone-screen { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 18px 16px; }
.mock-notch { width: 54px; height: 5px; border-radius: 99px; background: var(--border); margin: -6px auto 14px; }
.mock-phone .amt { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; margin: 2px 0 14px; }
.mock-phone .amt small { font-size: 13px; color: var(--muted); }
.mock-option { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border-strong); border-radius: 12px; padding: 9px 11px; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.mock-option.is-on { border: 2px solid var(--primary); padding: 8px 10px; }
.mock-option .op { width: 24px; height: 24px; border-radius: 6px; font-size: 8px; }
.mock-pay { display: block; text-align: center; background: var(--primary); color: #FFFFFF; border-radius: 12px; padding: 12px; font-size: 14px; font-weight: 600; margin-top: 14px; }

.mock-toast { position: absolute; top: 0; right: 24px; background: #0F2A22; color: #EAF3EE; border-radius: 14px; padding: 12px 16px; display: flex; align-items: center; gap: 12px; box-shadow: 0 16px 40px rgba(15, 42, 34, .35); }
.mock-toast-icon { width: 30px; height: 30px; border-radius: 99px; background: var(--forest); color: #7FD3B0; display: flex; align-items: center; justify-content: center; }
.mock-toast b { display: block; font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; }
.mock-toast span span { display: block; font-size: 12px; color: #A9C7BA; }

/* ---------- 5. Payment methods strip ---------- */
.methods { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 44px; padding-bottom: 44px; }
.methods > p { font-size: 14px; font-weight: 600; color: var(--muted); max-width: 280px; }
.methods-list { display: flex; flex-wrap: wrap; gap: 12px 36px; align-items: center; }
.method { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.method i { width: 12px; height: 12px; border-radius: 4px; }
.method.is-soon { color: var(--muted); }
.soon { font-size: 11px; font-weight: 600; color: var(--muted); border: 1px solid var(--border); padding: 2px 8px; border-radius: 999px; letter-spacing: 0; }

/* ---------- 6. Section heads ---------- */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 56px; }
.section-head > div { max-width: 720px; }
.section-head > p { font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 400px; }
.section-head-center { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section-head-center .lead { margin-top: 16px; }

/* ---------- 7. Platform bento ---------- */
.bento { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 18px; }
.bento-feature {
  grid-column: 1 / -1; background: #0F2A22; color: #EAF3EE; border-radius: 24px; padding: 36px;
  display: flex; flex-wrap: wrap; gap: 28px;
}
.bento-feature > div { flex: 1 1 260px; min-width: 0; }
.bento-feature h3 { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 10px; }
.bento-feature p { line-height: 1.65; color: #A9C7BA; font-size: 16px; }
.bento-feature pre {
  flex: 1 1 320px; min-width: 0; margin: 0; background: #0A1F19; border: 1px solid var(--forest); border-radius: 16px;
  padding: 20px; font-family: var(--font-mono); font-size: 13px; line-height: 1.75; color: #D5E7DF; overflow-x: auto;
}
.c-ok { color: #7FD3B0; } .c-gold { color: #E9B44C; }
.bento-card { padding: 32px; }
.bento-card h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; }
.bento-card p { line-height: 1.65; color: var(--muted); }
.icon-tile { width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; margin-bottom: 22px; }
.tile-terracotta { background: var(--primary-soft); color: var(--primary-text); }
.tile-forest { background: var(--forest-soft); color: var(--forest-text); }
.tile-gold { background: var(--gold-soft); color: var(--gold-text); }
.tile-dark { background: var(--forest); color: #7FD3B0; }

/* ---------- 8. Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.step { padding: 28px; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 999px; background: var(--bg-alt); font-family: var(--font-mono); font-size: 14px; margin-bottom: 22px; }
.step:last-child .step-num { background: var(--primary); color: #FFFFFF; }
.step h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.step p { line-height: 1.6; color: var(--muted); font-size: 15px; }

/* ---------- 9. Developers ---------- */
.dev { background: #0B1F19; color: #EAF3EE; }
.dev-inner { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.dev-copy { flex: 1 1 420px; min-width: 0; }
.dev .eyebrow { color: #E9B44C; }
.dev .serif { color: #F0A58F; }
.dev .h-section { margin-bottom: 18px; }
.dev-lead { font-size: 18px; line-height: 1.65; color: #A9C7BA; max-width: 520px; margin-bottom: 30px; }
.dev-points { list-style: none; margin: 0 0 36px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 24px; }
.dev-points li { display: flex; gap: 10px; font-weight: 500; font-size: 15px; line-height: 1.45; }
.dev-points .check { color: #7FD3B0; margin-top: 1px; }
.dev-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-light { background: #EAF3EE; color: #0B1F19; }
.btn-light:hover { color: #0B1F19; }
.btn-outline-light { color: #EAF3EE; border-color: #2E5A4B; }
.btn-outline-light:hover { color: #FFFFFF; }
.code-window { flex: 1 1 520px; min-width: 0; background: #071612; border: 1px solid var(--forest); border-radius: 20px; overflow: hidden; box-shadow: 0 40px 80px rgba(0, 0, 0, .35); }
.code-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 10px; border-bottom: 1px solid var(--forest); }
.code-tabs button { border: 0; height: 40px; padding: 0 16px; border-radius: 10px; font-size: 13px; font-weight: 600; cursor: pointer; background: transparent; color: #A9C7BA; }
.code-tabs button[aria-selected="true"] { background: var(--forest); color: #FFFFFF; }
.code-window pre { margin: 0; padding: 26px; min-height: 330px; overflow-x: auto; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.8; color: #D5E7DF; }

/* ---------- 10. Use cases ---------- */
.uses { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.use { background: var(--surface); padding: 30px; }
.use svg { color: var(--primary-text); }
.use h3 { margin: 18px 0 6px; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.use p { color: var(--muted); line-height: 1.55; font-size: 15px; }

/* ---------- 11. Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; max-width: 980px; margin: 0 auto; }
.plan { padding: 40px; display: flex; flex-direction: column; border-radius: 26px; }
.plan-name { font-weight: 700; font-size: 18px; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.plan-sub { color: var(--muted); margin-bottom: 26px; }
.plan-price { font-size: 64px; font-weight: 700; letter-spacing: -0.05em; line-height: 1; margin-bottom: 4px; }
.plan-price small { font-size: 32px; }
.plan-note { color: var(--muted); font-size: 15px; margin-bottom: 30px; }
.plan ul { list-style: none; margin: 0 0 34px; padding: 0; display: flex; flex-direction: column; gap: 14px; flex-grow: 1; }
.plan li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.plan-dark { background: #1C1410; color: #F7EFE8; border: 1px solid #33261F; }
.plan-dark .plan-sub, .plan-dark .plan-note { color: #BFAB9C; }
.plan-dark .plan-price { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.plan-dark .check { color: #E9B44C; }
.badge-gold { font-size: 11px; font-weight: 700; color: #1C1410; background: var(--gold); padding: 3px 9px; border-radius: 999px; }
.btn-cream { background: #F7EFE8; color: #1C1410; }
.btn-cream:hover { color: #1C1410; }

/* ---------- 12. FAQ ---------- */
.faq-wrap { display: flex; flex-wrap: wrap; gap: 56px; }
.faq-intro { flex: 1 1 320px; min-width: 0; }
.faq-intro .h-section { margin-bottom: 16px; font-size: clamp(34px, 4vw, 50px); }
.faq-list { flex: 2 1 520px; min-width: 0; border-top: 1px solid var(--border); }
.faq-list details { border-bottom: 1px solid var(--border); padding: 24px 0; }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; font-weight: 600; font-size: 18px; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-plus { width: 32px; height: 32px; flex-shrink: 0; border-radius: 99px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--primary-text); transition: transform .2s ease; }
.faq-list details[open] .faq-plus { transform: rotate(45deg); }
.faq-list details p { margin-top: 14px; line-height: 1.7; color: var(--muted); max-width: 680px; }

/* ---------- 13. Final call to action ---------- */
.cta {
  background-color: var(--primary); color: #FFFFFF; border-radius: 32px; padding: 80px 48px; text-align: center;
  background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1px); background-size: 22px 22px;
}
.cta .h-section { max-width: 760px; margin: 0 auto 18px; font-size: clamp(36px, 5vw, 64px); }
.cta .serif { color: #FCE3B2; }
.cta p { font-size: 19px; line-height: 1.6; color: #FBE4DC; max-width: 560px; margin: 0 auto 36px; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn-white { background: #FFFFFF; color: #8E3420; }
.btn-white:hover { color: #8E3420; }
.btn-outline-white { color: #FFFFFF; border-color: #F3B8A6; }
.btn-outline-white:hover { color: #FFFFFF; }

/* ---------- 14. Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); }
.footer-top { display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; padding-top: 72px; padding-bottom: 40px; }
.footer-brand { flex: 1 1 260px; min-width: 0; }
.footer-brand p { margin-top: 12px; color: var(--muted); max-width: 300px; line-height: 1.6; }
.footer-cols { flex: 2 1 560px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 32px; font-size: 15px; }
.footer-cols h4 { margin: 0 0 16px; font-size: 14px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-cols a { color: var(--muted); text-decoration: none; }
.footer-cols a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--border); padding-top: 24px; padding-bottom: 48px; }

/* =========================================================
   DASHBOARD
   ========================================================= */
.dash { display: flex; min-height: 100vh; }
.sidebar { width: 264px; flex-shrink: 0; background: var(--surface); border-right: 1px solid var(--border); padding: 22px 16px; display: flex; flex-direction: column; gap: 22px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar .logo { padding: 0 8px; }
.account { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-alt); }
.avatar { width: 34px; height: 34px; border-radius: 10px; background: var(--forest); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.account b { display: block; font-size: 14px; font-weight: 600; }
.account small { display: block; font-size: 12px; color: var(--muted); }
.side-nav { display: flex; flex-direction: column; gap: 2px; font-size: 14.5px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 500; }
.side-nav a:hover { background: var(--bg-alt); color: var(--text); }
.side-nav a[aria-current="page"] { background: var(--primary-soft); color: var(--primary-text); font-weight: 600; }
.test-box { margin-top: auto; padding: 18px; border-radius: 16px; background: #0F2A22; color: #EAF3EE; }
.test-box b { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 6px; }
.test-box b i { width: 8px; height: 8px; border-radius: 99px; background: var(--gold); }
.test-box p { font-size: 13px; line-height: 1.5; color: #A9C7BA; margin-bottom: 14px; }
.test-box a { display: block; text-align: center; text-decoration: none; background: #EAF3EE; color: #0F2A22; padding: 11px; border-radius: 999px; font-size: 13px; font-weight: 700; }

.dash-main { flex: 1 1 auto; min-width: 0; }
.topbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 32px; border-bottom: 1px solid var(--border); background: var(--surface); }
.search { flex: 1 1 260px; max-width: 420px; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); color: var(--muted); }
.search input { flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent; font-family: inherit; font-size: 14px; color: var(--text); }
.topbar-right { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.test-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--gold-text); background: var(--gold-soft); padding: 8px 12px; border-radius: 999px; }
.test-badge i { width: 7px; height: 7px; border-radius: 99px; background: var(--gold); }

.dash-content { padding: 32px; }
.dash-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; }
.dash-head p { color: var(--muted); font-size: 15px; margin-bottom: 6px; }
.dash-head h1 { font-weight: 700; font-size: 36px; letter-spacing: -0.04em; }
.dash-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dash-actions .btn { min-height: 46px; font-size: 14px; padding: 0 18px; }
.dash-row { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 18px; }
.panel { padding: 26px; }
.panel-volume { flex: 2 1 460px; min-width: 0; }
.panel-side { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.panel-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.big-number { font-size: 40px; font-weight: 700; letter-spacing: -0.04em; }
.big-number small { font-size: 16px; color: var(--muted); font-weight: 600; }
.chart-lg { width: 100%; height: 190px; margin-top: 10px; }
.chart-grid { stroke: var(--border); stroke-dasharray: 4 6; }
.chart-note { margin-top: 10px; font-size: 12px; color: var(--muted); }
.balance-card { background: #0F2A22; color: #EAF3EE; border-radius: var(--radius); padding: 26px; flex: 1 1 auto; }
.balance-card p { font-size: 14px; color: #A9C7BA; font-weight: 500; margin-bottom: 10px; }
.balance-card strong { display: block; font-size: 36px; font-weight: 700; letter-spacing: -0.04em; margin-bottom: 20px; }
.balance-card strong small { font-size: 15px; color: #A9C7BA; }
.balance-card div { display: flex; justify-content: space-between; font-size: 13px; color: #A9C7BA; padding-top: 16px; border-top: 1px solid var(--forest); }
.balance-card div b { color: #EAF3EE; }
.split-bar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; gap: 3px; margin: 14px 0; }
.split-legend { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; gap: 8px; flex-wrap: wrap; }
.split-legend span { display: flex; align-items: center; gap: 6px; }
.split-legend i { width: 9px; height: 9px; border-radius: 3px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-bottom: 18px; }
.kpi { padding: 22px; }
.kpi .icon-tile { width: 38px; height: 38px; border-radius: 11px; margin-bottom: 16px; }
.kpi p { font-size: 13.5px; color: var(--muted); font-weight: 500; margin-bottom: 6px; }
.kpi strong { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; }
.table-card { overflow: hidden; }
.table-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.table-head h2 { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.table-head a { font-weight: 600; font-size: 14px; text-decoration: none; }
.table-scroll { overflow-x: auto; }
table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 14.5px; }
thead tr { text-align: left; color: var(--muted); font-size: 12.5px; background: var(--bg-alt); }
th { padding: 12px; font-weight: 600; }
td { padding: 16px 12px; border-top: 1px solid var(--border); }
th:first-child, td:first-child { padding-left: 24px; }
th:last-child, td:last-child { padding-right: 24px; }
tbody tr:hover { background: var(--bg-alt); }
.t-right { text-align: right; }
.t-method { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; }
.t-method .op { width: 26px; height: 26px; border-radius: 7px; font-size: 8.5px; }
.pill i { width: 6px; height: 6px; border-radius: 99px; background: currentColor; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-left { gap: 16px; }
  .menu-toggle { display: inline-flex; }
  .nav.is-open .nav-links { display: flex; flex-direction: column; gap: 4px; width: 100%; order: 3; padding: 8px 0; }
  .nav.is-open .nav-links a { padding: 12px 4px; font-size: 17px; }
  .nav-signin { display: none; }
  .dash { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; }
  .test-box { margin-top: 0; }
}
@media (max-width: 640px) {
  .section { padding-top: 80px; padding-bottom: 80px; }
  .hero-inner { padding-top: 56px; padding-bottom: 64px; }
  .nav-right .btn-dark { display: none; }
  .hero-visual { height: 520px; }
  .mock-dash { width: 100%; }
  .mock-phone { width: 200px; }
  .mock-toast { right: 8px; }
  .cta { padding: 56px 24px; border-radius: 24px; }
  .plan { padding: 28px; }
  .dash-content, .topbar { padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
