:root {
  color-scheme: dark;
  --bg: #07090d;
  --bg-soft: #0b0f15;
  --panel: #0e131b;
  --panel-2: #111827;
  --panel-3: #151d2c;
  --line: rgba(148, 163, 184, .13);
  --line-strong: rgba(148, 163, 184, .22);
  --text: #f8fafc;
  --muted: #8f9bad;
  --muted-2: #657187;
  --blue: #1687ff;
  --blue-2: #075ee6;
  --cyan: #13c7f3;
  --green: #32d583;
  --yellow: #fdb022;
  --red: #f97066;
  --violet: #a970ff;
  --shadow: 0 22px 70px rgba(0, 0, 0, .35);
  --radius: 18px;
  --radius-sm: 12px;
  --sidebar: 252px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }

::selection { background: rgba(22, 135, 255, .36); color: #fff; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #222b3a; border-radius: 99px; }
::-webkit-scrollbar-track { background: transparent; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.hidden { display: none !important; }
.muted { color: var(--muted); }
.blue { color: var(--blue); }
.green { color: var(--green); }
.red { color: var(--red); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.icon {
  width: 20px; height: 20px; flex: 0 0 20px;
  stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round;
}
.icon-sm { width: 16px; height: 16px; flex-basis: 16px; }
.icon-lg { width: 25px; height: 25px; flex-basis: 25px; }

.btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0 17px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, opacity .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .48; cursor: not-allowed; transform: none; }
.btn-primary { background: linear-gradient(135deg, var(--blue), var(--blue-2)); color: #fff; box-shadow: 0 10px 30px rgba(10, 108, 241, .2); }
.btn-primary:hover { background: linear-gradient(135deg, #3097ff, #0b69f0); }
.btn-secondary { background: #111826; border-color: var(--line-strong); color: #f8fafc; }
.btn-secondary:hover { background: #172031; border-color: rgba(22, 135, 255, .35); }
.btn-ghost { background: transparent; border-color: var(--line); color: #d8e0ee; }
.btn-ghost:hover { background: rgba(255, 255, 255, .045); }
.btn-danger { background: rgba(249, 112, 102, .11); color: #ff8b83; border-color: rgba(249, 112, 102, .22); }
.btn-sm { min-height: 34px; padding: 0 12px; border-radius: 8px; font-size: 12px; }
.btn-lg { min-height: 48px; padding: 0 22px; }
.btn-block { width: 100%; }
.icon-button {
  width: 40px; height: 40px; display: inline-grid; place-items: center;
  border-radius: 10px; border: 1px solid transparent; background: transparent; color: #cad3e2; cursor: pointer;
}
.icon-button:hover { background: rgba(255, 255, 255, .05); border-color: var(--line); }

.field { display: grid; gap: 7px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { color: #e7edf7; font-size: 13px; font-weight: 650; }
.field-help { color: var(--muted); font-size: 11px; line-height: 1.5; }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 44px; }
.input-action { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); }
.input, .select, .textarea {
  width: 100%;
  color: #edf4ff;
  background: #111a2a;
  border: 1px solid #202b40;
  border-radius: 10px;
  outline: none;
  padding: 0 13px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.input, .select { height: 44px; }
.textarea { min-height: 100px; padding-top: 12px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: #6f7c91; }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(22, 135, 255, .15);
  background: #121d30;
}
.input[aria-invalid="true"] { border-color: var(--red); }
.field-error { min-height: 14px; color: #ff8d86; font-size: 11px; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237e8ba0' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; }

/* Landing */
.landing { min-height: 100vh; overflow: hidden; background: #05070a; }
.landing-nav {
  height: 72px; position: fixed; inset: 0 0 auto; z-index: 50;
  border-bottom: 1px solid rgba(148, 163, 184, .1);
  background: rgba(5, 7, 10, .82); backdrop-filter: blur(18px);
}
.nav-inner { width: min(1180px, calc(100% - 40px)); height: 100%; margin: auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; font-size: 19px; letter-spacing: -.5px; }
.brand img { width: 45px; height: 38px; }
.brand small { color: var(--blue); font-size: 10px; align-self: flex-start; margin: 7px 0 0 -7px; letter-spacing: .4px; }
.nav-links { display: flex; align-items: center; gap: 30px; color: #b5bfce; font-size: 13px; font-weight: 600; }
.nav-links a:hover { color: #fff; }
.nav-actions { display: flex; gap: 10px; }
.menu-button { display: none; }

.hero {
  min-height: 760px; padding: 150px 20px 92px; position: relative;
  background:
    radial-gradient(circle at 78% 42%, rgba(14, 106, 245, .18), transparent 31%),
    radial-gradient(circle at 17% 5%, rgba(28, 87, 185, .11), transparent 29%),
    linear-gradient(180deg, #07090d 0%, #080b11 62%, #11151d 100%);
}
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(22,135,255,.45), transparent); }
.hero-grid { width: min(1180px, 100%); margin: auto; display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: 70px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid rgba(22, 135, 255, .25);
  background: rgba(22, 135, 255, .08); color: #6eb7ff; border-radius: 99px; text-transform: uppercase; letter-spacing: .11em; font-size: 10px; font-weight: 800;
}
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 5px rgba(22,135,255,.13); }
.hero h1 { margin-top: 22px; font-size: clamp(42px, 5.4vw, 68px); line-height: .99; letter-spacing: -3.7px; max-width: 620px; }
.hero h1 .gradient-text { background: linear-gradient(90deg, #5db1ff, #126ff2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy > p { margin-top: 22px; color: #9ba7ba; font-size: 17px; line-height: 1.65; max-width: 580px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-checks { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 21px; color: #aab5c5; font-size: 12px; }
.hero-checks span { display: inline-flex; align-items: center; gap: 7px; }
.hero-checks .icon { color: var(--cyan); }

.product-shot { position: relative; perspective: 1000px; }
.product-shot::before { content: ""; position: absolute; inset: 14% 8%; background: rgba(20, 116, 255, .2); filter: blur(80px); border-radius: 50%; }
.mock-window {
  position: relative; border: 1px solid rgba(148, 163, 184, .18); border-radius: 18px;
  background: #090d14; padding: 10px; box-shadow: 0 40px 100px rgba(0, 0, 0, .55); transform: rotateY(-3deg) rotateX(1deg);
}
.mock-browser { height: 28px; display: flex; align-items: center; gap: 6px; padding: 0 5px; border-bottom: 1px solid var(--line); }
.mock-browser i { width: 6px; height: 6px; border-radius: 50%; background: #313a4b; }
.mock-browser span { margin-left: 10px; color: #637086; font-size: 8px; }
.mock-app { display: grid; grid-template-columns: 78px 1fr; min-height: 330px; }
.mock-side { padding: 15px 9px; border-right: 1px solid var(--line); background: #080b10; }
.mock-logo { width: 25px; margin: 0 auto 18px; }
.mock-nav-line { height: 7px; border-radius: 5px; background: #1b2330; margin: 11px 2px; }
.mock-nav-line.active { background: linear-gradient(90deg, var(--blue), rgba(22,135,255,.18)); }
.mock-content { padding: 16px; overflow: hidden; }
.mock-title { width: 80px; height: 8px; border-radius: 4px; background: #dfe6f2; margin-bottom: 13px; }
.mock-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; }
.mock-stat { height: 47px; border: 1px solid var(--line); background: #111722; border-radius: 6px; padding: 8px; }
.mock-stat i, .mock-stat b { display: block; height: 4px; border-radius: 3px; background: #344055; }
.mock-stat b { width: 62%; background: #d6deea; margin-top: 9px; }
.mock-chart { height: 120px; margin-top: 9px; border: 1px solid var(--line); border-radius: 7px; background: linear-gradient(180deg, rgba(22,135,255,.06), transparent), repeating-linear-gradient(0deg, transparent 0 28px, rgba(148,163,184,.07) 29px); position: relative; overflow: hidden; }
.mock-chart svg { position: absolute; inset: 20px 8px 5px; width: calc(100% - 16px); height: calc(100% - 25px); }
.mock-table { margin-top: 9px; border: 1px solid var(--line); border-radius: 7px; padding: 8px; }
.mock-row { display: grid; grid-template-columns: 1.4fr .7fr .7fr .7fr; gap: 12px; border-bottom: 1px solid rgba(148,163,184,.07); padding: 6px 0; }
.mock-row:last-child { border: 0; }
.mock-row i { height: 4px; border-radius: 5px; background: #283345; }
.mock-row i:nth-child(3) { background: rgba(50,213,131,.5); }
.floating-badge { position: absolute; display: flex; align-items: center; gap: 9px; padding: 10px 13px; border: 1px solid rgba(100,175,255,.3); border-radius: 11px; background: rgba(12,19,31,.92); backdrop-filter: blur(12px); box-shadow: var(--shadow); font-size: 11px; font-weight: 700; }
.floating-badge .badge-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: rgba(22,135,255,.15); color: #6bb7ff; }
.float-a { left: -25px; bottom: 42px; }
.float-b { right: -22px; top: 55px; }

.section { padding: 100px 20px; }
.section-inner { width: min(1180px, 100%); margin: auto; }
.section-heading { text-align: center; max-width: 700px; margin: 0 auto 50px; }
.section-heading .eyebrow { margin-bottom: 17px; }
.section-heading h2 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -2px; line-height: 1.1; }
.section-heading p { margin-top: 14px; color: var(--muted); line-height: 1.7; font-size: 15px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card { min-height: 240px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(18,24,35,.78), rgba(8,11,16,.9)); transition: border-color .2s, transform .2s; }
.feature-card:hover { border-color: rgba(22,135,255,.35); transform: translateY(-3px); }
.feature-icon { width: 46px; height: 46px; display: grid; place-items: center; color: #65b7ff; border: 1px solid rgba(22,135,255,.24); border-radius: 13px; background: rgba(22,135,255,.09); }
.feature-card h3 { margin-top: 35px; font-size: 17px; }
.feature-card p { margin-top: 10px; color: var(--muted); line-height: 1.65; font-size: 13px; }
.how-section { background: #080b10; border-block: 1px solid rgba(148,163,184,.08); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: step; }
.step-card { position: relative; padding-top: 15px; }
.step-number { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: #8ec7ff; background: rgba(22,135,255,.12); border: 1px solid rgba(22,135,255,.25); font-weight: 800; }
.step-card:not(:last-child)::after { content: ""; position: absolute; left: 57px; right: -20px; top: 34px; height: 1px; background: linear-gradient(90deg, rgba(22,135,255,.35), transparent); }
.step-card h3 { margin-top: 25px; }
.step-card p { margin-top: 9px; color: var(--muted); line-height: 1.6; font-size: 13px; }
.landing-cta { padding: 90px 20px 100px; }
.cta-box { width: min(1180px, 100%); margin: auto; padding: 60px; border: 1px solid rgba(22,135,255,.25); border-radius: 26px; text-align: center; background: radial-gradient(circle at 50% -20%, rgba(22,135,255,.24), transparent 54%), #0b1018; }
.cta-box h2 { font-size: clamp(28px, 4vw, 45px); letter-spacing: -1.7px; }
.cta-box p { color: var(--muted); margin: 14px auto 25px; max-width: 600px; line-height: 1.6; }
.landing-footer { padding: 30px 20px; border-top: 1px solid var(--line); color: #6f7a8a; }
.footer-inner { width: min(1180px, 100%); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }

/* Authentication */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 35px 18px; position: relative; overflow: hidden; background: radial-gradient(circle at 50% 15%, rgba(12,116,190,.23), transparent 38%), linear-gradient(145deg, #062933, #07141b 54%, #060a10); }
.auth-page::before, .auth-page::after { content: ""; position: fixed; width: 380px; height: 380px; border-radius: 50%; filter: blur(100px); opacity: .18; }
.auth-page::before { background: var(--blue); left: -190px; top: -130px; }
.auth-page::after { background: var(--cyan); right: -220px; bottom: -200px; }
.auth-back { position: fixed; top: 22px; left: 25px; z-index: 2; }
.auth-card { width: min(470px, 100%); position: relative; z-index: 1; border: 1px solid rgba(148,163,184,.17); border-radius: 20px; background: rgba(17, 24, 30, .94); box-shadow: 0 32px 90px rgba(0,0,0,.42); padding: 27px 32px 30px; }
.auth-logo { width: 86px; height: 68px; margin: 0 auto 5px; }
.auth-heading { text-align: center; }
.auth-heading h1 { font-size: 21px; letter-spacing: -.5px; }
.auth-heading p { margin-top: 9px; color: var(--muted); font-size: 13px; }
.stepper { display: flex; justify-content: center; align-items: center; margin: 24px 0 21px; }
.step-dot { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #262b34; color: #9099a7; font-size: 12px; font-weight: 700; border: 2px solid transparent; }
.step-dot.active { color: white; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(19,199,243,.13); background: #152936; }
.step-dot.done { color: #03151c; background: var(--cyan); }
.step-line { width: 34px; height: 1px; background: #303641; }
.step-line.done { background: var(--cyan); }
.auth-form { display: grid; gap: 13px; }
.auth-buttons { display: grid; grid-template-columns: .9fr 1.1fr; gap: 11px; margin-top: 8px; }
.auth-buttons.single { grid-template-columns: 1fr; }
.auth-footer { text-align: center; color: #818b99; font-size: 12px; margin-top: 22px; }
.auth-footer a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.demo-credentials { margin-top: 18px; padding: 12px 13px; border: 1px solid rgba(22,135,255,.2); border-radius: 10px; background: rgba(22,135,255,.06); font-size: 11px; line-height: 1.7; color: #9bb7d6; }
.demo-credentials strong { color: #d9eaff; }

/* App shell */
.app-shell { min-height: 100vh; background: #090c11; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); z-index: 40; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: #070a0e; transition: transform .22s ease; }
.sidebar-head { height: 80px; display: flex; align-items: center; padding: 0 25px; border-bottom: 1px solid rgba(148,163,184,.06); }
.sidebar-head .brand img { width: 41px; height: 36px; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 18px 13px; }
.nav-label { color: #4f5b6f; font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; padding: 16px 13px 8px; }
.nav-item { min-height: 43px; display: flex; align-items: center; gap: 12px; padding: 0 13px; margin: 3px 0; border-radius: 10px; color: #929daf; font-size: 13px; font-weight: 600; cursor: pointer; border: 1px solid transparent; }
.nav-item:hover { color: #e6edf7; background: rgba(255,255,255,.035); }
.nav-item.active { color: #73baff; background: rgba(22,135,255,.1); border-color: rgba(22,135,255,.12); }
.nav-item.active .icon { color: var(--blue); }
.nav-item .nav-count { margin-left: auto; min-width: 21px; height: 20px; padding: 0 5px; display: grid; place-items: center; border-radius: 6px; background: rgba(22,135,255,.14); color: #76bbff; font-size: 9px; }
.sidebar-footer { padding: 13px; border-top: 1px solid var(--line); }
.account-switch { padding: 10px; display: flex; align-items: center; gap: 10px; border-radius: 12px; background: rgba(255,255,255,.025); }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: linear-gradient(145deg, #1b8dff, #0a4ab5); color: #fff; font-weight: 800; font-size: 12px; border: 2px solid rgba(255,255,255,.12); }
.account-switch .account-meta { min-width: 0; flex: 1; }
.account-switch strong { display: block; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-switch small { color: var(--muted-2); font-size: 9px; }
.app-main { min-height: 100vh; margin-left: var(--sidebar); }
.topbar { height: 80px; position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; border-bottom: 1px solid var(--line); background: rgba(9, 12, 17, .88); backdrop-filter: blur(18px); }
.topbar-left { display: flex; align-items: center; gap: 14px; }
.topbar-title { color: #b9c3d2; font-size: 12px; font-weight: 700; }
.mobile-menu { display: none; }
.top-actions { display: flex; align-items: center; gap: 7px; }
.currency-pill { min-height: 35px; display: flex; align-items: center; gap: 7px; padding: 0 10px; border-radius: 9px; background: #0e131a; border: 1px solid var(--line); font-size: 11px; font-weight: 700; }
.flag { font-size: 15px; }
.content { padding: 26px 28px 48px; max-width: 1770px; margin: auto; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 23px; }
.page-head h1 { font-size: 24px; letter-spacing: -.8px; }
.page-head p { color: var(--muted); font-size: 12px; margin-top: 6px; }
.date-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.filter-chip { min-height: 31px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; background: #111722; color: #8f9bad; font-size: 10px; font-weight: 700; cursor: pointer; }
.filter-chip.active { background: var(--blue-2); color: #fff; border-color: var(--blue-2); }

.onboarding-banner { min-height: 176px; display: grid; grid-template-columns: 1fr 270px; overflow: hidden; margin-bottom: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(105deg, #0c1118 58%, rgba(11,86,188,.15)); }
.onboarding-copy { padding: 22px 24px; }
.onboarding-copy h2 { font-size: 20px; letter-spacing: -.5px; }
.onboarding-copy > p { margin: 4px 0 17px; color: var(--muted); font-size: 11px; }
.check-list { display: grid; gap: 10px; }
.check-row { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; }
.check-icon { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: rgba(22,135,255,.12); color: #55aaff; }
.check-tag { padding: 4px 8px; border-radius: 6px; background: rgba(50,213,131,.1); color: #4fdd96; font-size: 9px; }
.check-tag.pending { background: rgba(253,176,34,.11); color: #ffc75a; }
.banner-art { position: relative; display: grid; place-items: center; overflow: hidden; }
.banner-art::before { content: ""; width: 150px; height: 150px; position: absolute; border: 1px solid rgba(22,135,255,.18); border-radius: 50%; box-shadow: 0 0 0 23px rgba(22,135,255,.035), 0 0 0 50px rgba(22,135,255,.02); }
.shield { width: 92px; height: 106px; position: relative; display: grid; place-items: center; clip-path: polygon(50% 0, 93% 15%, 87% 72%, 50% 100%, 13% 72%, 7% 15%); background: linear-gradient(150deg, #56adff, #0855cb 74%); filter: drop-shadow(0 20px 25px rgba(0,80,190,.3)); }
.shield::before { content: ""; width: 78px; height: 91px; clip-path: inherit; background: #0b1f3e; }
.shield .icon { position: absolute; width: 35px; height: 35px; color: #75c1ff; z-index: 1; }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 13px; }
.stat-card { min-height: 105px; position: relative; overflow: hidden; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #0d1218; }
.stat-card::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: linear-gradient(90deg, var(--blue), var(--cyan)); opacity: .9; }
.stat-card .stat-icon { position: absolute; right: 15px; top: 18px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; background: rgba(22,135,255,.12); color: #57adff; }
.stat-label { color: #dce4f0; font-size: 11px; }
.stat-value { margin-top: 3px; font-size: 19px; font-weight: 800; letter-spacing: -.5px; }
.stat-help { margin-top: 2px; color: var(--muted); font-size: 10px; }
.stat-trend { display: inline-flex; align-items: center; gap: 3px; margin-top: 8px; color: var(--green); font-size: 9px; font-weight: 700; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, .72fr); gap: 13px; margin-bottom: 13px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #0d1218; }
.panel-head { min-height: 65px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px 16px; }
.panel-title { display: flex; align-items: center; gap: 11px; }
.panel-title-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; color: #62b5ff; background: rgba(22,135,255,.11); }
.panel-title h3 { font-size: 13px; }
.panel-title p { margin-top: 4px; color: var(--muted); font-size: 10px; }
.panel-action { color: #55adff; font-size: 10px; font-weight: 700; }
.chart-wrap { padding: 0 12px 12px; }
.chart { width: 100%; height: 285px; overflow: visible; }
.chart-grid line { stroke: rgba(148,163,184,.13); stroke-dasharray: 4 5; }
.chart-label { fill: #6d788a; font-size: 9px; }
.chart-line-in { fill: none; stroke: #2799ff; stroke-width: 2.4; filter: drop-shadow(0 5px 8px rgba(22,135,255,.25)); }
.chart-line-out { fill: none; stroke: #0f617e; stroke-width: 2; }
.chart-area { fill: url(#blueArea); }
.chart-dot { fill: #86c7ff; stroke: #0d1218; stroke-width: 3; }
.chart-legend { display: flex; justify-content: center; gap: 8px; margin: 0 0 14px; }
.legend-item { padding: 6px 10px; border: 1px solid var(--line); border-radius: 7px; color: #a7b1c1; font-size: 9px; }
.legend-item i { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 2px; background: var(--blue); }
.legend-item.out i { background: #0f617e; }
.quick-panel { padding-bottom: 12px; }
.quick-input { margin: 0 14px 11px; }
.quick-list { margin: 0 14px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.quick-row { width: 100%; min-height: 52px; display: flex; align-items: center; gap: 11px; padding: 0 12px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: #dbe4f0; text-align: left; cursor: pointer; font-size: 11px; font-weight: 650; }
.quick-row:last-child { border: 0; }
.quick-row:hover { background: rgba(22,135,255,.055); }
.quick-row .icon { color: #54adff; }
.quick-row .arrow { margin-left: auto; color: #667287; }

.mini-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 13px; }
.mini-stat { min-height: 86px; padding: 14px 15px; }
.mini-stat strong { display: block; margin-top: 4px; font-size: 17px; }
.mini-stat small { color: var(--muted); font-size: 9px; }
.bottom-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .65fr); gap: 13px; }
.balance-list { padding: 4px 16px 15px; }
.balance-row { min-height: 54px; display: grid; grid-template-columns: 1fr auto; align-items: center; border-top: 1px solid var(--line); }
.balance-name { display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 650; }
.balance-progress { width: 45%; height: 4px; border-radius: 99px; background: #1c2735; overflow: hidden; margin-left: auto; margin-right: 18px; }
.balance-progress i { display: block; width: var(--progress); height: 100%; background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.balance-value { font-size: 11px; font-weight: 750; }
.transaction-list { padding: 0 14px 12px; }
.transaction-item { min-height: 58px; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; border-top: 1px solid var(--line); }
.tx-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; background: rgba(50,213,131,.09); color: var(--green); }
.tx-icon.out { background: rgba(22,135,255,.1); color: #58adff; }
.transaction-item strong { display: block; font-size: 10px; }
.transaction-item small { display: block; color: var(--muted); margin-top: 3px; font-size: 8px; }
.transaction-amount { text-align: right; font-size: 10px; font-weight: 750; color: var(--green); }
.transaction-amount.out { color: #e3e9f3; }

/* Admin */
.admin-shell { --sidebar: 205px; background: #080c13; }
.admin-shell .sidebar { background: #060910; }
.admin-shell .content { max-width: none; }
.admin-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 14px; }
.admin-kpi { min-height: 155px; padding: 24px 20px; border: 1px solid #202a3a; border-radius: 12px; background: #111725; }
.admin-kpi-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: #b786ff; background: rgba(139,92,246,.16); }
.admin-kpi:nth-child(2) .admin-kpi-icon { color: #ff75ae; background: rgba(236,72,153,.15); }
.admin-kpi:nth-child(3) .admin-kpi-icon { color: #ffad42; background: rgba(245,158,11,.14); }
.admin-kpi:nth-child(4) .admin-kpi-icon { color: #ff7575; background: rgba(239,68,68,.14); }
.admin-kpi strong { display: block; margin-top: 15px; font-size: 22px; }
.admin-kpi span { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.admin-metrics { display: grid; grid-template-columns: repeat(5, 1fr); gap: 13px; margin-bottom: 14px; }
.admin-metric { min-height: 120px; padding: 18px; border: 1px solid #202a3a; border-radius: 12px; background: #111725; }
.admin-metric label { color: #8894a6; text-transform: uppercase; font-size: 9px; font-weight: 750; }
.admin-metric strong { display: block; margin-top: 27px; font-size: 18px; letter-spacing: -.45px; }
.admin-metric.featured strong, .admin-metric.featured label { color: var(--green); }
.admin-metric small { display: block; color: #778296; margin-top: 5px; font-size: 9px; }
.admin-charts { display: grid; grid-template-columns: 1.2fr 1.2fr 1.2fr; gap: 13px; margin-bottom: 14px; }
.admin-chart { min-width: 0; padding: 16px; border: 1px solid #202a3a; border-radius: 12px; background: #111725; }
.admin-chart h3 { font-size: 11px; }
.admin-chart p { color: var(--muted); font-size: 9px; margin-top: 5px; }
.admin-chart svg { height: 190px; margin-top: 10px; }
.bar-chart { height: 190px; margin-top: 10px; display: flex; align-items: flex-end; justify-content: space-around; gap: 12px; border-bottom: 1px solid rgba(148,163,184,.15); background: repeating-linear-gradient(0deg, transparent 0 43px, rgba(148,163,184,.09) 44px); padding: 10px 18px 0; }
.bar { width: 12%; height: var(--h); min-height: 4px; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #20a5ff, #0872e5); position: relative; }
.bar span { position: absolute; left: 50%; bottom: -24px; transform: translateX(-50%); color: #687487; font-size: 7px; white-space: nowrap; }
.table-panel { overflow: hidden; border: 1px solid #202a3a; border-radius: 12px; background: #111725; }
.table-panel .panel-head { padding-inline: 18px; }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 800px; }
.data-table th { height: 38px; padding: 0 14px; background: rgba(255,255,255,.035); border-block: 1px solid var(--line); color: #7f8a9c; text-align: left; text-transform: uppercase; font-size: 8px; letter-spacing: .04em; }
.data-table td { height: 45px; padding: 0 14px; border-bottom: 1px solid rgba(148,163,184,.09); color: #aeb8c7; font-size: 9px; }
.data-table tr:last-child td { border: 0; }
.data-table td strong { color: #e4eaf3; font-size: 9px; }
.status { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 99px; font-size: 8px; font-weight: 750; background: rgba(253,176,34,.12); color: #ffd36e; }
.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status.paid, .status.completed, .status.active, .status.approved { color: #65dfa3; background: rgba(50,213,131,.11); }
.status.failed, .status.blocked, .status.rejected { color: #ff8e86; background: rgba(249,112,102,.11); }
.status.processing { color: #68b8ff; background: rgba(22,135,255,.12); }

/* Modal and feedback */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px; background: rgba(1,4,8,.78); backdrop-filter: blur(8px); animation: fade-in .16s ease; }
.modal { width: min(510px, 100%); max-height: min(760px, 92vh); overflow-y: auto; border: 1px solid var(--line-strong); border-radius: 18px; background: #0e141e; box-shadow: 0 30px 100px rgba(0,0,0,.6); animation: modal-in .18s ease; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 21px 22px 15px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 17px; }
.modal-head p { margin-top: 5px; color: var(--muted); font-size: 11px; }
.modal-body { padding: 20px 22px; display: grid; gap: 14px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 9px; padding: 15px 22px 21px; }
.amount-input { position: relative; }
.amount-input::before { content: "R$"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #92a0b4; font-weight: 750; z-index: 1; }
.amount-input input { padding-left: 43px; font-size: 17px; font-weight: 750; }
.pix-result { padding: 18px; text-align: center; border: 1px solid rgba(22,135,255,.22); border-radius: 13px; background: rgba(22,135,255,.055); }
.fake-qr { width: 160px; height: 160px; margin: 0 auto 15px; padding: 10px; border-radius: 9px; background: #fff; color: #07101c; }
.fake-qr svg { width: 100%; height: 100%; }
.copy-box { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; background: #090e15; }
.copy-box code { flex: 1; min-width: 0; color: #a9b8ca; font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-alert { display: flex; gap: 10px; padding: 11px 12px; border-radius: 10px; border: 1px solid rgba(253,176,34,.22); background: rgba(253,176,34,.065); color: #e6c377; font-size: 10px; line-height: 1.45; }
.demo-alert .icon { flex: 0 0 17px; width: 17px; height: 17px; }
.toast-root { position: fixed; z-index: 200; right: 18px; bottom: 18px; display: grid; gap: 9px; }
.toast { min-width: 280px; max-width: 390px; display: flex; align-items: center; gap: 10px; padding: 13px 15px; border: 1px solid rgba(22,135,255,.28); border-radius: 11px; background: #101824; box-shadow: var(--shadow); color: #dce8f8; font-size: 11px; animation: toast-in .25s ease; }
.toast.success { border-color: rgba(50,213,131,.3); }
.toast.error { border-color: rgba(249,112,102,.32); }
.toast .icon { color: var(--blue); }
.toast.success .icon { color: var(--green); }
.toast.error .icon { color: var(--red); }

.mobile-bottom-nav { display: none; }
.sidebar-overlay { display: none; }
.empty-state { padding: 45px 20px; text-align: center; color: var(--muted); }
.empty-state .icon { width: 35px; height: 35px; margin: auto; color: #526076; }
.empty-state p { margin-top: 10px; font-size: 11px; }

@keyframes fade-in { from { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.985); } }
@keyframes toast-in { from { opacity: 0; transform: translateX(12px); } }

@media (max-width: 1180px) {
  .hero-grid { gap: 38px; }
  .admin-metrics { grid-template-columns: repeat(3, 1fr); }
  .admin-charts { grid-template-columns: 1fr 1fr; }
  .admin-chart:last-child { grid-column: 1 / -1; }
}

@media (max-width: 980px) {
  :root { --sidebar: 220px; }
  .nav-links { display: none; }
  .hero { min-height: auto; padding-top: 125px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-copy > p { margin-inline: auto; }
  .hero-buttons, .hero-checks { justify-content: center; }
  .product-shot { width: min(670px, 96%); margin: auto; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-card:last-child { grid-column: 1 / -1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid, .bottom-grid { grid-template-columns: 1fr; }
  .mini-stats { grid-template-columns: repeat(2, 1fr); }
  .admin-kpis { grid-template-columns: repeat(2, 1fr); }
  .admin-metrics { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  body { font-size: 13px; }
  .landing-nav { height: 64px; }
  .nav-inner { width: calc(100% - 26px); }
  .nav-actions .btn-ghost { display: none; }
  .brand span { display: none; }
  .brand img { width: 40px; }
  .hero { padding: 112px 18px 70px; }
  .hero h1 { font-size: clamp(39px, 12vw, 54px); letter-spacing: -2.8px; }
  .hero-copy > p { font-size: 14px; }
  .hero-buttons .btn { flex: 1; min-width: 150px; }
  .mock-window { transform: none; }
  .floating-badge { display: none; }
  .mock-app { grid-template-columns: 56px 1fr; min-height: 275px; }
  .mock-content { padding: 10px; }
  .mock-stat { height: 39px; padding: 6px; }
  .mock-chart { height: 95px; }
  .mock-table { display: none; }
  .section { padding: 72px 18px; }
  .feature-grid, .steps-grid { grid-template-columns: 1fr; gap: 14px; }
  .feature-card:last-child { grid-column: auto; }
  .step-card:not(:last-child)::after { display: none; }
  .cta-box { padding: 40px 20px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .auth-card { padding: 24px 20px 26px; }
  .field-row { grid-template-columns: 1fr; }

  .sidebar { width: min(82vw, 285px); transform: translateX(-102%); box-shadow: 30px 0 80px rgba(0,0,0,.55); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay { position: fixed; inset: 0; z-index: 35; background: rgba(0,0,0,.6); backdrop-filter: blur(3px); }
  .sidebar-overlay.open { display: block; }
  .app-main { margin-left: 0; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .topbar { height: 70px; padding: 0 15px; }
  .mobile-menu { display: inline-grid; }
  .topbar-title { display: none; }
  .top-actions { gap: 1px; }
  .top-actions .currency-pill { padding: 0 8px; }
  .top-actions .icon-button:nth-of-type(1) { display: none; }
  .content { padding: 26px 15px 28px; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .page-head h1 { font-size: 20px; }
  .page-head p { font-size: 11px; }
  .date-filters { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .onboarding-banner { grid-template-columns: 1fr; }
  .banner-art { display: none; }
  .stats-grid { grid-template-columns: 1fr; gap: 11px; }
  .stat-card { min-height: 98px; }
  .dashboard-grid { gap: 11px; }
  .chart { height: 270px; }
  .mini-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .bottom-grid { gap: 11px; }
  .balance-progress { display: none; }
  .mobile-bottom-nav { position: fixed; z-index: 45; left: 9px; right: 9px; bottom: max(8px, env(safe-area-inset-bottom)); height: 66px; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; border: 1px solid var(--line); border-radius: 33px; background: rgba(8,12,16,.94); backdrop-filter: blur(20px); box-shadow: 0 16px 50px rgba(0,0,0,.45); }
  .mobile-nav-item { height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #7f8998; font-size: 8px; font-weight: 650; }
  .mobile-nav-item.active { color: #62b4ff; }
  .mobile-nav-item.center { width: 54px; height: 54px; justify-self: center; margin-top: -29px; border-radius: 50%; background: linear-gradient(145deg, var(--blue), var(--blue-2)); color: #fff; box-shadow: 0 12px 25px rgba(13,108,240,.36); }
  .mobile-nav-item .icon { width: 21px; height: 21px; }
  .admin-kpis, .admin-metrics, .admin-charts { grid-template-columns: 1fr; }
  .admin-chart:last-child { grid-column: auto; }
  .admin-kpi { min-height: 126px; }
  .modal { max-height: 90vh; }
}

@media (max-width: 470px) {
  .hero-checks { display: grid; gap: 9px; }
  .mock-app { min-height: 225px; }
  .mock-chart { height: 75px; }
  .auth-page { padding-inline: 12px; }
  .auth-back { top: 12px; left: 10px; }
  .auth-logo { width: 75px; height: 58px; }
  .auth-buttons { grid-template-columns: 1fr 1.25fr; }
  .mini-stats { grid-template-columns: 1fr; }
  .onboarding-copy { padding: 18px; }
  .panel-head { padding-inline: 13px; }
  .toast-root { left: 12px; right: 12px; bottom: 88px; }
  .toast { min-width: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
