/* ════════════════════════════════════════════════════════════════
   CONTIA · Contabilitate Digitală — Design System (Premium SaaS 2026)
   Light, airy, fintech-grade. Indigo→violet accent, soft depth.
   ════════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root{
  /* canvas + surfaces */
  --bg:        #f5f6fb;
  --bg-2:      #eef0f9;
  --surface:   #ffffff;
  --surface-2: #fbfbfe;
  --ink:       #0c1024;
  --ink-2:     #2b3050;
  --muted:     #5b6383;
  --muted-2:   #8a90ac;
  --line:      rgba(16,22,55,.09);
  --line-2:    rgba(16,22,55,.06);

  /* brand */
  --brand:        #5b5bf6;
  --brand-600:    #4f46e5;
  --brand-700:    #4338ca;
  --violet:       #7c5cff;
  --grad:         linear-gradient(120deg,#5b5bf6 0%,#7c5cff 55%,#9b5cff 100%);
  --grad-soft:    linear-gradient(120deg,rgba(91,91,246,.12),rgba(124,92,255,.10));

  /* status */
  --ok:    #0fb981;  --ok-bg:#e6f8f1;
  --info:  #2f87f5;  --info-bg:#e7f1fe;
  --warn:  #e3920a;  --warn-bg:#fdf1dc;
  --danger:#f1465f;  --danger-bg:#fde7ea;

  --radius:    20px;
  --radius-sm: 13px;
  --radius-lg: 28px;
  --shadow-xs: 0 1px 2px rgba(16,22,55,.06);
  --shadow-sm: 0 2px 8px rgba(16,22,55,.06), 0 1px 2px rgba(16,22,55,.04);
  --shadow:    0 18px 40px -18px rgba(28,30,80,.28), 0 2px 8px rgba(16,22,55,.05);
  --shadow-lg: 0 40px 80px -28px rgba(40,30,110,.40);
  --shadow-brand: 0 16px 36px -12px rgba(91,91,246,.45);
  --ease: cubic-bezier(.4,0,.2,1);
  --t: .22s cubic-bezier(.4,0,.2,1);
  --max: 1180px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body{
  margin:0; color:var(--ink);
  font-family:'Plus Jakarta Sans','Inter',ui-sans-serif,system-ui,-apple-system,sans-serif;
  background:var(--bg);
  line-height:1.6; -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
}
a{ color:inherit; text-decoration:none; }
img,svg{ max-width:100%; display:block; }
button{ font-family:inherit; }
::selection{ background:rgba(91,91,246,.18); }
::-webkit-scrollbar{ width:10px; height:10px; }
::-webkit-scrollbar-thumb{ background:rgba(16,22,55,.16); border-radius:20px; border:3px solid transparent; background-clip:content-box; }
::-webkit-scrollbar-thumb:hover{ background:rgba(16,22,55,.28); background-clip:content-box; }

/* ── layout ─────────────────────────────────────────────── */
.container{ width:min(var(--max),calc(100% - 44px)); margin-inline:auto; }
.section{ padding:96px 0; }
.section-sm{ padding:56px 0; }
.center{ text-align:center; }
.grid{ display:grid; gap:22px; }
.g2{ grid-template-columns:repeat(2,minmax(0,1fr)); }
.g3{ grid-template-columns:repeat(3,minmax(0,1fr)); }
.g4{ grid-template-columns:repeat(4,minmax(0,1fr)); }
.flex{ display:flex; }
.items-center{ align-items:center; }
.justify-between{ justify-content:space-between; }
.gap-8{ gap:8px;} .gap-12{ gap:12px;} .gap-16{ gap:16px;} .gap-24{ gap:24px;}
.wrap{ flex-wrap:wrap; }
.mt-8{margin-top:8px}.mt-16{margin-top:16px}.mt-24{margin-top:24px}.mt-40{margin-top:40px}
.hide{ display:none !important; }

/* ── typography ─────────────────────────────────────────── */
h1,h2,h3,h4{ margin:0; line-height:1.1; letter-spacing:-.02em; font-weight:800; color:var(--ink); }
h1{ font-size:clamp(2.1rem,5vw,3.5rem); letter-spacing:-.035em; line-height:1.04; }
h2{ font-size:clamp(1.7rem,3.4vw,2.5rem); letter-spacing:-.03em; }
h3{ font-size:clamp(1.15rem,1.8vw,1.4rem); }
h4{ font-size:1.05rem; font-weight:700; }
p{ margin:0; color:var(--muted); }
.lead{ font-size:clamp(1.02rem,1.5vw,1.2rem); color:var(--ink-2); line-height:1.7; max-width:60ch; }
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-size:.78rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  color:var(--brand-600); background:var(--grad-soft);
  padding:7px 14px; border-radius:100px; border:1px solid rgba(91,91,246,.18);
}
.gradient-text{ background:var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent; }
.muted{ color:var(--muted); }
.small{ font-size:.86rem; }
.tnum{ font-variant-numeric:tabular-nums; }

/* ── buttons ────────────────────────────────────────────── */
.btn{
  --bg:var(--surface); --col:var(--ink);
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  font-weight:700; font-size:.95rem; line-height:1; cursor:pointer;
  padding:13px 22px; border-radius:13px; border:1px solid var(--line);
  background:var(--bg); color:var(--col); transition:var(--t);
  white-space:nowrap; text-align:center;
}
.btn:hover{ transform:translateY(-1px); }
.btn:active{ transform:translateY(0); }
.btn svg{ width:18px; height:18px; }
.btn-primary{ background:var(--grad); color:#fff; border-color:transparent; box-shadow:var(--shadow-brand); }
.btn-primary:hover{ box-shadow:0 20px 44px -10px rgba(91,91,246,.6); }
.btn-dark{ background:var(--ink); color:#fff; border-color:transparent; }
.btn-ghost{ background:transparent; border-color:var(--line); }
.btn-ghost:hover{ background:var(--surface); box-shadow:var(--shadow-sm); }
.btn-soft{ background:var(--grad-soft); color:var(--brand-700); border-color:rgba(91,91,246,.18); }
.btn-sm{ padding:9px 15px; font-size:.86rem; border-radius:10px; }
.btn-lg{ padding:16px 28px; font-size:1.02rem; }
.btn-block{ width:100%; }
.btn[disabled]{ opacity:.55; cursor:not-allowed; transform:none; }
.btn-icon{ padding:10px; width:42px; height:42px; border-radius:12px; }

/* ── topbar (marketing) ─────────────────────────────────── */
.topbar{
  position:sticky; top:0; z-index:60;
  background:rgba(245,246,251,.78); backdrop-filter:blur(18px) saturate(1.4);
  -webkit-backdrop-filter:blur(18px) saturate(1.4);
  border-bottom:1px solid var(--line-2);
}
.topbar-in{ display:flex; align-items:center; justify-content:space-between; height:72px; gap:20px; }
.brand{ display:inline-flex; align-items:center; gap:11px; font-weight:800; font-size:1.18rem; letter-spacing:-.02em; }
.brand .logo-mark{ width:34px; height:34px; }
.brand b{ color:var(--ink); }
.nav-links{ display:flex; align-items:center; gap:6px; }
.nav-links a{ padding:9px 14px; border-radius:10px; font-weight:600; font-size:.94rem; color:var(--ink-2); transition:var(--t); }
.nav-links a:hover{ background:var(--surface); color:var(--ink); }
.nav-cta{ display:flex; align-items:center; gap:10px; }
.burger{ display:none; background:var(--surface); border:1px solid var(--line); border-radius:11px; width:44px; height:44px; align-items:center; justify-content:center; cursor:pointer; }
.burger svg{ width:22px; height:22px; }

/* ── hero ───────────────────────────────────────────────── */
.hero{ position:relative; overflow:hidden; padding:84px 0 64px; }
.hero-mesh{
  position:absolute; inset:-20% -10% auto -10%; height:680px; z-index:0; pointer-events:none;
  background:
    radial-gradient(40% 50% at 78% 8%, rgba(124,92,255,.20), transparent 60%),
    radial-gradient(38% 42% at 12% 0%, rgba(91,91,246,.18), transparent 60%),
    radial-gradient(30% 40% at 60% 60%, rgba(155,92,255,.10), transparent 60%);
  filter:blur(8px);
}
.hero-in{ position:relative; z-index:1; display:grid; grid-template-columns:1.04fr .96fr; gap:48px; align-items:center; }
.hero h1{ margin:18px 0 0; }
.hero .lead{ margin-top:20px; }
.hero-cta{ display:flex; gap:13px; margin-top:30px; flex-wrap:wrap; }
.hero-trust{ display:flex; gap:26px; margin-top:34px; flex-wrap:wrap; }
.hero-trust .t{ display:flex; flex-direction:column; gap:2px; }
.hero-trust b{ font-size:1.5rem; font-weight:800; letter-spacing:-.02em; }
.hero-trust span{ font-size:.82rem; color:var(--muted); }
.hero-visual{ position:relative; }

/* ── badges / pills ─────────────────────────────────────── */
.badge{ display:inline-flex; align-items:center; gap:7px; font-size:.78rem; font-weight:700;
  padding:6px 12px; border-radius:100px; background:var(--surface); border:1px solid var(--line); color:var(--ink-2); }
.dot{ width:7px; height:7px; border-radius:50%; background:var(--ok); box-shadow:0 0 0 3px var(--ok-bg); }
.pill{ display:inline-flex; align-items:center; gap:6px; font-size:.76rem; font-weight:700; padding:5px 11px; border-radius:100px; }
.pill::before{ content:""; width:6px; height:6px; border-radius:50%; background:currentColor; }
.pill-ok{ color:var(--ok); background:var(--ok-bg); }
.pill-info{ color:var(--info); background:var(--info-bg); }
.pill-warn{ color:var(--warn); background:var(--warn-bg); }
.pill-danger{ color:var(--danger); background:var(--danger-bg); }
.pill-mut{ color:var(--muted); background:var(--bg-2); }

/* ── cards / surfaces ───────────────────────────────────── */
.card{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow-sm); }
.card-pad{ padding:26px; }
.surface{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); }

/* feature cards (5 componente) */
.feature{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:28px;
  box-shadow:var(--shadow-sm); transition:var(--t); position:relative; overflow:hidden; }
.feature:hover{ transform:translateY(-4px); box-shadow:var(--shadow); border-color:rgba(91,91,246,.28); }
.feature .ic{ width:52px; height:52px; border-radius:15px; display:grid; place-items:center; margin-bottom:18px;
  background:var(--grad-soft); color:var(--brand-600); }
.feature .ic svg{ width:26px; height:26px; }
.feature h3{ margin-bottom:9px; }
.feature .num{ position:absolute; top:20px; right:24px; font-size:2.6rem; font-weight:800; color:var(--bg-2); letter-spacing:-.04em; }
.feature ul{ margin:14px 0 0; padding:0; list-style:none; display:grid; gap:8px; }
.feature ul li{ display:flex; gap:9px; align-items:flex-start; font-size:.92rem; color:var(--ink-2); }
.feature ul li svg{ width:17px; height:17px; color:var(--ok); flex-shrink:0; margin-top:2px; }

/* steps */
.step{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:26px; box-shadow:var(--shadow-sm); }
.step .n{ width:38px; height:38px; border-radius:11px; background:var(--ink); color:#fff; display:grid; place-items:center; font-weight:800; margin-bottom:16px; }

/* stat band */
.statband{ background:var(--ink); color:#fff; border-radius:var(--radius-lg); padding:48px 40px; position:relative; overflow:hidden; }
.statband::before{ content:""; position:absolute; inset:0; background:radial-gradient(60% 120% at 90% 0%, rgba(124,92,255,.35), transparent 60%); }
.statband .grid{ position:relative; }
.statband b{ font-size:clamp(2rem,4vw,3rem); font-weight:800; letter-spacing:-.03em; display:block; }
.statband span{ color:rgba(255,255,255,.7); font-size:.92rem; }

/* logos / trust row */
.trustrow{ display:flex; align-items:center; justify-content:center; gap:38px; flex-wrap:wrap; opacity:.7; }
.trustrow span{ font-weight:700; color:var(--muted); letter-spacing:.02em; }

/* section head */
.sec-head{ max-width:660px; margin:0 auto 48px; text-align:center; }
.sec-head .lead{ margin:16px auto 0; }

/* ── FAQ accordion ──────────────────────────────────────── */
.faq{ display:grid; gap:12px; }
.faq-item{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-sm); overflow:hidden; transition:var(--t); }
.faq-item[open]{ box-shadow:var(--shadow-sm); border-color:rgba(91,91,246,.25); }
.faq-item summary{ list-style:none; cursor:pointer; padding:20px 22px; display:flex; align-items:center; justify-content:space-between; gap:16px; font-weight:700; color:var(--ink); }
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary .chev{ width:22px; height:22px; flex-shrink:0; color:var(--muted); transition:var(--t); }
.faq-item[open] summary .chev{ transform:rotate(180deg); color:var(--brand); }
.faq-item .ans{ padding:0 22px 22px; color:var(--muted); line-height:1.7; }
.faq-cat{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:26px; justify-content:center; }
.faq-cat button{ padding:9px 16px; border-radius:100px; border:1px solid var(--line); background:var(--surface); font-weight:600; font-size:.88rem; cursor:pointer; color:var(--ink-2); transition:var(--t); }
.faq-cat button.active{ background:var(--ink); color:#fff; border-color:transparent; }

/* ── forms ──────────────────────────────────────────────── */
.field{ display:flex; flex-direction:column; gap:7px; margin-bottom:16px; }
.label{ font-size:.85rem; font-weight:700; color:var(--ink-2); }
.input,.select,.textarea{
  width:100%; padding:13px 15px; font:inherit; font-size:.95rem; color:var(--ink);
  background:var(--surface); border:1px solid var(--line); border-radius:12px; transition:var(--t); outline:none;
}
.input:focus,.select:focus,.textarea:focus{ border-color:var(--brand); box-shadow:0 0 0 4px rgba(91,91,246,.13); }
.textarea{ min-height:120px; resize:vertical; }
.hint{ font-size:.8rem; color:var(--muted-2); }

/* ── footer ─────────────────────────────────────────────── */
.footer{ background:var(--ink); color:#cdd2ea; padding:64px 0 30px; margin-top:0; }
.footer a{ color:#aab0d4; transition:var(--t); }
.footer a:hover{ color:#fff; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:36px; }
.footer h5{ color:#fff; font-size:.82rem; text-transform:uppercase; letter-spacing:.1em; margin:0 0 16px; }
.footer ul{ list-style:none; padding:0; margin:0; display:grid; gap:11px; font-size:.92rem; }
.footer .brand b{ color:#fff; }
.footer-bottom{ border-top:1px solid rgba(255,255,255,.1); margin-top:44px; padding-top:24px; display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; font-size:.85rem; color:#8990b8; }

/* ════════════════════════════════════════════════════════
   APP SHELL (portal client + birou digital admin)
   ════════════════════════════════════════════════════════ */
.app{ display:grid; grid-template-columns:264px 1fr; min-height:100vh; background:var(--bg); }
.sidebar{ position:sticky; top:0; height:100vh; background:var(--surface); border-right:1px solid var(--line); display:flex; flex-direction:column; padding:22px 16px; gap:6px; }
.sidebar .brand{ padding:6px 10px 18px; font-size:1.1rem; }
.side-label{ font-size:.72rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--muted-2); padding:14px 12px 7px; }
.side-link{ display:flex; align-items:center; gap:12px; padding:11px 12px; border-radius:12px; font-weight:600; font-size:.94rem; color:var(--ink-2); transition:var(--t); cursor:pointer; }
.side-link svg{ width:20px; height:20px; color:var(--muted); transition:var(--t); }
.side-link:hover{ background:var(--bg); }
.side-link.active{ background:var(--grad-soft); color:var(--brand-700); }
.side-link.active svg{ color:var(--brand); }
.side-link .count{ margin-left:auto; font-size:.74rem; font-weight:800; background:var(--danger); color:#fff; border-radius:100px; padding:2px 8px; min-width:22px; text-align:center; }
.side-foot{ margin-top:auto; padding:12px 6px 4px; border-top:1px solid var(--line); }
.side-user{ display:flex; align-items:center; gap:11px; padding:8px; border-radius:12px; }
.app-main{ display:flex; flex-direction:column; min-width:0; }

.app-top{ position:sticky; top:0; z-index:40; background:rgba(245,246,251,.82); backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px); border-bottom:1px solid var(--line-2); padding:16px 30px; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.app-top h1{ font-size:1.35rem; letter-spacing:-.02em; }
.app-top .sub{ font-size:.86rem; color:var(--muted); margin-top:2px; }
.app-actions{ display:flex; align-items:center; gap:11px; }
.app-body{ padding:30px; max-width:1320px; width:100%; }

.avatar{ width:40px; height:40px; border-radius:12px; background:var(--grad); color:#fff; display:grid; place-items:center; font-weight:800; font-size:.9rem; flex-shrink:0; }
.avatar.sm{ width:32px; height:32px; font-size:.78rem; border-radius:9px; }

/* notification bell */
.bell{ position:relative; }
.bell .btn-icon{ background:var(--surface); }
.bell .ndot{ position:absolute; top:7px; right:7px; width:9px; height:9px; border-radius:50%; background:var(--danger); border:2px solid var(--surface); }
.notif-panel{ position:absolute; right:0; top:54px; width:380px; max-width:92vw; background:var(--surface); border:1px solid var(--line); border-radius:18px; box-shadow:var(--shadow-lg); overflow:hidden; z-index:70; }
.notif-panel header{ padding:16px 18px; border-bottom:1px solid var(--line); display:flex; justify-content:space-between; align-items:center; }
.notif-list{ max-height:420px; overflow:auto; }
.notif{ display:flex; gap:12px; padding:14px 18px; border-bottom:1px solid var(--line-2); transition:var(--t); }
.notif:hover{ background:var(--bg); }
.notif.unread{ background:rgba(91,91,246,.045); }
.notif .ic{ width:36px; height:36px; border-radius:10px; background:var(--grad-soft); color:var(--brand-600); display:grid; place-items:center; flex-shrink:0; }
.notif .ic svg{ width:18px; height:18px; }
.notif b{ font-size:.9rem; }
.notif p{ font-size:.84rem; margin-top:2px; }
.notif time{ font-size:.74rem; color:var(--muted-2); }

/* stat cards */
.stat-card{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:22px; box-shadow:var(--shadow-xs); }
.stat-card .ic{ width:44px; height:44px; border-radius:12px; display:grid; place-items:center; margin-bottom:16px; }
.stat-card .ic svg{ width:22px; height:22px; }
.stat-card .v{ font-size:2rem; font-weight:800; letter-spacing:-.03em; line-height:1; }
.stat-card .l{ font-size:.88rem; color:var(--muted); margin-top:6px; }
.ic-brand{ background:var(--grad-soft); color:var(--brand-600); }
.ic-ok{ background:var(--ok-bg); color:var(--ok); }
.ic-warn{ background:var(--warn-bg); color:var(--warn); }
.ic-info{ background:var(--info-bg); color:var(--info); }

/* tables / lists */
.panel{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow-sm); overflow:hidden; }
.panel-head{ padding:18px 22px; border-bottom:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; }
.panel-head h3{ font-size:1.08rem; }
.table{ width:100%; border-collapse:collapse; }
.table th{ text-align:left; font-size:.76rem; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:var(--muted-2); padding:13px 22px; border-bottom:1px solid var(--line); background:var(--surface-2); }
.table td{ padding:14px 22px; border-bottom:1px solid var(--line-2); font-size:.92rem; color:var(--ink-2); vertical-align:middle; }
.table tr:last-child td{ border-bottom:none; }
.table tr.row-hover:hover td{ background:var(--bg); cursor:pointer; }
.fileico{ width:38px; height:38px; border-radius:10px; background:var(--bg-2); display:grid; place-items:center; flex-shrink:0; color:var(--brand-600); }
.fileico svg{ width:19px; height:19px; }

/* upload dropzone */
.dropzone{ border:2px dashed rgba(91,91,246,.35); border-radius:var(--radius); background:var(--grad-soft); padding:46px 24px; text-align:center; cursor:pointer; transition:var(--t); }
.dropzone:hover,.dropzone.drag{ border-color:var(--brand); background:rgba(91,91,246,.10); }
.dropzone .ic{ width:60px; height:60px; border-radius:18px; background:#fff; box-shadow:var(--shadow-sm); display:grid; place-items:center; margin:0 auto 16px; color:var(--brand); }
.dropzone .ic svg{ width:28px; height:28px; }
.uprow{ display:flex; align-items:center; gap:14px; padding:13px 16px; background:var(--surface); border:1px solid var(--line); border-radius:13px; margin-top:10px; }
.uprow .bar{ flex:1; height:7px; border-radius:10px; background:var(--bg-2); overflow:hidden; }
.uprow .bar i{ display:block; height:100%; width:0; background:var(--grad); transition:width .3s var(--ease); }

/* category chip */
.cat{ display:inline-flex; align-items:center; gap:7px; font-size:.82rem; font-weight:600; color:var(--ink-2); }
.cat .sw{ width:9px; height:9px; border-radius:3px; }

/* empty state */
.empty{ text-align:center; padding:56px 24px; }
.empty .ic{ width:68px; height:68px; border-radius:20px; background:var(--bg-2); display:grid; place-items:center; margin:0 auto 18px; color:var(--muted-2); }
.empty .ic svg{ width:32px; height:32px; }
.empty h3{ margin-bottom:8px; }

/* ── modal ──────────────────────────────────────────────── */
.modal-back{ position:fixed; inset:0; background:rgba(12,16,36,.55); backdrop-filter:blur(4px); z-index:90; display:grid; place-items:center; padding:20px; opacity:0; pointer-events:none; transition:var(--t); }
.modal-back.show{ opacity:1; pointer-events:auto; }
.modal{ background:var(--surface); border-radius:var(--radius-lg); width:min(560px,100%); max-height:90vh; overflow:auto; box-shadow:var(--shadow-lg); transform:translateY(12px) scale(.98); transition:var(--t); }
.modal-back.show .modal{ transform:none; }
.modal-head{ padding:24px 26px 0; }
.modal-body{ padding:22px 26px; }
.modal-foot{ padding:0 26px 24px; display:flex; gap:12px; justify-content:flex-end; }
.modal-close{ position:absolute; }

/* ── toast ──────────────────────────────────────────────── */
.toasts{ position:fixed; bottom:24px; right:24px; z-index:120; display:flex; flex-direction:column; gap:12px; }
.toast{ display:flex; align-items:center; gap:12px; background:var(--ink); color:#fff; padding:14px 18px; border-radius:14px; box-shadow:var(--shadow-lg); font-weight:600; font-size:.92rem; min-width:260px; animation:toastin .3s var(--ease); }
.toast .ic{ width:24px; height:24px; flex-shrink:0; }
.toast.ok .ic{ color:#34e3a8; } .toast.err .ic{ color:#ff8aa0; }
@keyframes toastin{ from{ transform:translateY(16px); opacity:0; } }

/* ── auth screens ───────────────────────────────────────── */
.auth{ min-height:100vh; display:grid; grid-template-columns:1fr 1fr; }
.auth-aside{ background:var(--ink); color:#fff; padding:56px; display:flex; flex-direction:column; justify-content:space-between; position:relative; overflow:hidden; }
.auth-aside::before{ content:""; position:absolute; inset:0; background:radial-gradient(70% 90% at 80% 10%, rgba(124,92,255,.4), transparent 55%), radial-gradient(50% 60% at 10% 90%, rgba(91,91,246,.3), transparent 55%); }
.auth-aside > *{ position:relative; z-index:1; }
.auth-aside h2{ color:#fff; font-size:2rem; line-height:1.15; margin-top:auto; }
.auth-aside .quote{ color:rgba(255,255,255,.78); margin-top:16px; font-size:1.02rem; line-height:1.7; }
.auth-aside .feat{ display:grid; gap:14px; margin-top:28px; }
.auth-aside .feat div{ display:flex; gap:11px; align-items:center; color:rgba(255,255,255,.9); font-weight:500; }
.auth-aside .feat svg{ width:20px; height:20px; color:#34e3a8; flex-shrink:0; }
.auth-main{ display:grid; place-items:center; padding:40px; }
.auth-card{ width:min(420px,100%); }
.auth-card h1{ font-size:1.8rem; }
.seg{ display:flex; background:var(--bg-2); border-radius:12px; padding:4px; margin:22px 0 26px; }
.seg button{ flex:1; padding:10px; border:none; background:transparent; border-radius:9px; font-weight:700; font-size:.9rem; cursor:pointer; color:var(--muted); transition:var(--t); }
.seg button.active{ background:var(--surface); color:var(--ink); box-shadow:var(--shadow-xs); }
.alert{ padding:13px 15px; border-radius:12px; font-size:.88rem; font-weight:500; margin-bottom:16px; display:flex; gap:10px; align-items:flex-start; }
.alert svg{ width:18px; height:18px; flex-shrink:0; margin-top:1px; }
.alert-err{ background:var(--danger-bg); color:#b51d35; }
.alert-ok{ background:var(--ok-bg); color:#0a7d57; }
.alert-info{ background:var(--info-bg); color:#1763b8; }

/* spinner */
.spin{ width:18px; height:18px; border:2.5px solid rgba(255,255,255,.4); border-top-color:#fff; border-radius:50%; animation:spin .7s linear infinite; }
.spin-ink{ border-color:rgba(12,16,36,.18); border-top-color:var(--ink); }
@keyframes spin{ to{ transform:rotate(360deg); } }
.skeleton{ background:linear-gradient(90deg,var(--bg-2) 25%,#e7e9f4 50%,var(--bg-2) 75%); background-size:200% 100%; animation:sk 1.4s infinite; border-radius:8px; }
@keyframes sk{ to{ background-position:-200% 0; } }

/* reveal on scroll */
.reveal{ opacity:0; transform:translateY(20px); transition:opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in{ opacity:1; transform:none; }

/* ── responsive ─────────────────────────────────────────── */
@media (max-width:980px){
  .hero-in{ grid-template-columns:1fr; gap:36px; }
  .hero-visual{ order:-1; }
  .g4{ grid-template-columns:repeat(2,1fr); }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .auth{ grid-template-columns:1fr; }
  .auth-aside{ display:none; }
  .nav-links{ display:none; }
  .burger{ display:flex; }
  .app{ grid-template-columns:1fr; }
  .sidebar{ position:fixed; left:-300px; width:280px; z-index:100; transition:left .28s var(--ease); box-shadow:var(--shadow-lg); }
  .sidebar.open{ left:0; }
  .app-menu-btn{ display:flex !important; }
}
@media (max-width:680px){
  .g2,.g3,.g4{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr; gap:28px; }
  .section{ padding:64px 0; }
  .app-body,.app-top{ padding-left:18px; padding-right:18px; }
  .statband{ padding:34px 24px; }
  .table thead{ display:none; }
  .table td{ display:block; padding:8px 18px; }
  .table tr{ display:block; padding:10px 0; border-bottom:1px solid var(--line); }
}
.app-menu-btn{ display:none; }

/* nav drawer (mobile marketing) */
.drawer{ position:fixed; inset:0; z-index:90; background:rgba(12,16,36,.5); opacity:0; pointer-events:none; transition:var(--t); }
.drawer.open{ opacity:1; pointer-events:auto; }
.drawer-panel{ position:absolute; right:0; top:0; height:100%; width:min(320px,86vw); background:var(--surface); padding:24px; transform:translateX(100%); transition:transform .28s var(--ease); display:flex; flex-direction:column; gap:8px; }
.drawer.open .drawer-panel{ transform:none; }
.drawer-panel a{ padding:14px; border-radius:12px; font-weight:600; }
.drawer-panel a:hover{ background:var(--bg); }
