/* ==========================================================
   LedgerAI theme: light, clean, Facebook-style palette.
   Bootstrap 5 overlay, no build step.
   ========================================================== */

/* ==========================================================
   HOW THE CSS FILES WORK  (read me first)
   ----------------------------------------------------------
   * Bootstrap 5 (public/vendor/bootstrap) gives the basic look.
     This file sits on top and changes colours, spacing and shapes.
   * Colours, fonts and radii are CSS variables in ":root" just below.
     Change a variable there and the whole app follows.
   * The CSS is split into numbered files in public/css/app/.
     They are loaded in number order by layouts/base.blade.php
     (01-base first … 09-docs-profile last). CSS is "last rule wins",
     so a later file can re-style something from an earlier one.
     To change how something looks: search ALL the files for the class
     name and change the LAST rule that mentions it (or add a new rule
     at the end of the file for that area).
   * New file? Add it to the list in layouts/base.blade.php.
   * Class names are short and tell you where they belong:
        .sp-*   sidebar panel        .rail-*  sidebar icon strip
        .coa-*  chart of accounts    .jn-*    journals
        .rep-*  report/list tables   .tb-*    toolbar buttons
        .df-*   documentation page   .md-*    markdown editor
        .pv-*   settings preview     .cr-*    chart-of-accounts row

   WHAT IS IN EACH FILE
   ----------------------------------------------------------
    01-base                    variables, base, cards, buttons, forms, landing, auth, shell, dashboard
    02-accounts-reports        chart of accounts tree, detail panel, ledger / group reports, tables
    03-transactions-journals   transactions, journals, voucher, import, confirm dialog
    04-settings                settings, branding, template previews, typed dates
    05-lists                   customers / employees, data grid, filter bar
    06-sidebar                 sidebar strip + panel, search palette (Ctrl+K)
    07-page-tops               slim page tops (chart of accounts, list pages)
    08-sidebar-refresh         sidebar refresh + layouts, empty states
    09-docs-profile            documentation pages, profile pictures
   ========================================================== */
:root {
    --bg: #f0f2f5;
    --card: #ffffff;
    --hover: #f2f3f5;
    --border: #e4e6eb;
    --border-strong: #ced0d4;
    --text: #050505;
    --muted: #65676b;
    --subtle: #8a8d91;

    --blue: #1877f2;
    --blue-dark: #166fe5;
    --blue-soft: #e7f3ff;
    --green: #42b72a;
    --green-soft: #e6f4e2;
    --red: #e41e3f;
    --red-soft: #fde8eb;
    --amber: #f7b928;
    --amber-soft: #fef5de;
    --teal: #0aa5a5;
    --teal-soft: #e1f5f5;

    --radius: 12px;
    --shadow: 0 1px 2px rgba(0, 0, 0, .1);
    --shadow-lg: 0 12px 28px rgba(0, 0, 0, .12), 0 2px 4px rgba(0, 0, 0, .06);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

    --bs-body-bg: var(--bg);
    --bs-body-color: var(--text);
    --bs-body-font-family: var(--font);
    --bs-border-color: var(--border);
    --bs-secondary-color: var(--muted);
    --bs-link-color: var(--blue);
    --bs-link-hover-color: var(--blue-dark);
    --bs-link-color-rgb: 24, 119, 242;
    --bs-link-hover-color-rgb: 22, 111, 229;
    --bs-primary: var(--blue);
    --bs-primary-rgb: 24, 119, 242;
}

* { -webkit-font-smoothing: antialiased; }
html, body { background: var(--bg); color: var(--text); }
body { font-family: var(--font); min-height: 100vh; overflow-x: hidden; }
::selection { background: rgba(24, 119, 242, .2); }

.mono { font-family: var(--mono); font-feature-settings: "tnum"; }
.text-muted, .text-secondary { color: var(--muted) !important; }
.text-grad { color: var(--blue); }

/* ---------- Cards (formerly "glass") ---------- */
.glass { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.glass-hover { transition: box-shadow .2s ease, transform .2s ease; }
.glass-hover:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.grad-border { border-top: 3px solid var(--blue); }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1.2rem; color: var(--blue); text-decoration: none; letter-spacing: -0.02em; }
.brand:hover { color: var(--blue-dark); }
.brand-mark { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font-size: 1rem; }

/* ---------- Buttons ---------- */
.btn { border-radius: 8px; font-weight: 600; padding: .55rem 1rem; }
.btn-lg { padding: .75rem 1.4rem; font-size: 1.05rem; }
.btn-sm { padding: .35rem .75rem; font-size: .875rem; }
.btn-grad { background: var(--blue); color: #fff; border: 0; }
.btn-grad:hover, .btn-grad:focus, .btn-grad:active { background: var(--blue-dark) !important; color: #fff !important; }
.btn-ghost { background: #e4e6eb; color: var(--text); border: 0; }
.btn-ghost:hover, .btn-ghost:focus { background: #d8dadf; color: var(--text); }
.btn-success-fb { background: var(--green); color: #fff; border: 0; }
.btn-success-fb:hover { background: #36a420; color: #fff; }

/* ---------- Forms ---------- */
.form-label { font-size: .85rem; font-weight: 600; color: var(--text); margin-bottom: .35rem; }
.form-control, .form-select { background: #fff; border: 1px solid #dddfe2; color: var(--text); border-radius: 8px; padding: .7rem .9rem; font-size: 1rem; }
.form-control::placeholder { color: var(--subtle); }
.form-control:focus, .form-select:focus { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue-soft); }
.input-icon { position: relative; }
.input-icon > i { position: absolute; left: .9rem; top: 1.45rem; transform: translateY(-50%); color: var(--subtle); pointer-events: none; }
.input-icon > .form-control { padding-left: 2.6rem; }
.form-control.is-invalid { border-color: var(--red); background-image: none; padding-right: .9rem; }
.form-control.is-invalid:focus { box-shadow: 0 0 0 2px var(--red-soft); }
.invalid-feedback { color: var(--red); }
.form-check-input:checked { background-color: var(--blue); border-color: var(--blue); }
.form-check-label { color: var(--muted); font-size: .9rem; }
.alert { border-radius: 8px; border: 1px solid; }
.alert-success { background: var(--green-soft); border-color: #c3e6bb; color: #1d6b10; }

/* ---------- Pills / tags ---------- */
.pill { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .75rem; border-radius: 999px; font-size: .78rem; font-weight: 600; color: var(--blue); background: var(--blue-soft); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.tag { font-size: .74rem; font-weight: 600; padding: .2rem .55rem; border-radius: 6px; display: inline-block; }
.tag-up { color: #2e8b1e; background: var(--green-soft); }
.tag-down { color: var(--red); background: var(--red-soft); }
.tag-warn { color: #9a6a00; background: var(--amber-soft); }
.tag-info { color: var(--blue); background: var(--blue-soft); }
.tag-muted { color: var(--muted); background: var(--hover); }

/* ---------- Landing ---------- */
.nav-landing { padding: .65rem 0; position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: var(--shadow); }
.nav-landing .nav-link { color: var(--muted); font-weight: 600; font-size: .95rem; border-radius: 8px; }
.nav-landing .nav-link:hover { color: var(--text); background: var(--hover); }
.hero { padding: 5rem 0 3rem; }
.hero h1 { font-size: clamp(2.3rem, 5.5vw, 3.9rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; }
.hero .lead { color: var(--muted); font-size: 1.15rem; max-width: 620px; margin-inline: auto; }
.preview { padding: 1rem; margin-top: 3.5rem; background: var(--bg); box-shadow: var(--shadow-lg); }
.preview-bar { display: flex; gap: .4rem; padding: .25rem .25rem 1rem; }
.preview-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.feature-icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 1.25rem; background: var(--blue-soft); color: var(--blue); margin-bottom: 1rem; }
.section-title { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -0.03em; }
.stat-strip .num { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; }
.footer-light { background: #fff; border-top: 1px solid var(--border); }

/* ---------- Auth ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr; }
@media (min-width: 992px) { .auth-wrap { grid-template-columns: 1fr 1fr; } }
.auth-form { display: flex; flex-direction: column; justify-content: center; padding: 2rem 1rem; }
.auth-card { width: 100%; max-width: 420px; margin: 0 auto; padding: 2rem; box-shadow: var(--shadow-lg); border-top: 0; }
@media (max-width: 575px) { .auth-card { padding: 1.5rem; } }
.auth-card h1 { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; }
.auth-side { display: none; padding: 2rem; }
@media (min-width: 992px) { .auth-side { display: flex; align-items: center; } }
.auth-side-inner { width: 100%; max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; gap: 2.5rem; }
.auth-side h2 { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; }
.chat-bubble { padding: .75rem 1rem; border-radius: 18px; font-size: .92rem; max-width: 88%; }
.chat-user { background: var(--blue); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.chat-ai { background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); border-bottom-left-radius: 4px; }
.typing span { display: inline-block; width: 7px; height: 7px; margin-right: 3px; border-radius: 50%; background: var(--subtle); animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; } .typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.divider { display: flex; align-items: center; gap: 1rem; color: var(--muted); font-size: .82rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* ---------- App shell ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar { width: 260px; flex-shrink: 0; padding: 1rem .75rem; background: #fff; border-right: 1px solid var(--border); }
@media (min-width: 992px) { .sidebar.offcanvas-lg { position: sticky; top: 0; height: 100vh; overflow-y: auto; } }
.offcanvas.sidebar { background: #fff; }
.sidebar .nav-section { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--subtle); margin: 1.25rem .75rem .4rem; font-weight: 700; }
.side-link { display: flex; align-items: center; gap: .75rem; padding: .55rem .75rem; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 500; font-size: .95rem; }
.side-link i { font-size: 1.1rem; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--hover); color: var(--muted); }
.side-link:hover { background: var(--hover); color: var(--text); }
.side-link.active { background: var(--blue-soft); color: var(--blue); font-weight: 600; }
.side-link.active i { background: var(--blue); color: #fff; }
.side-link .count { margin-left: auto; font-size: .72rem; font-weight: 700; padding: .1rem .5rem; border-radius: 999px; background: var(--red); color: #fff; }
.ai-promo { padding: 1rem; border-radius: var(--radius); background: var(--blue-soft); }

.main { flex: 1; min-width: 0; }
.topbar { display: flex; align-items: center; gap: 1rem; padding: .6rem 1.5rem; position: sticky; top: 0; z-index: 40; background: #fff; box-shadow: var(--shadow); }
@media (max-width: 575px) { .topbar { padding: .6rem 1rem; } }
.search { flex: 1; max-width: 420px; }
.search .form-control { background: var(--bg); border: 0; border-radius: 999px; padding-top: .55rem; padding-bottom: .55rem; }
.search .form-control:focus { box-shadow: 0 0 0 2px var(--blue-soft); }
.search > i { top: 50%; }
.kbd { font-family: var(--mono); font-size: .7rem; padding: .1rem .4rem; border: 1px solid var(--border-strong); border-radius: 6px; color: var(--muted); position: absolute; right: .9rem; top: 50%; transform: translateY(-50%); background: #fff; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #e4e6eb; border: 0; color: var(--text); position: relative; }
.icon-btn:hover { background: #d8dadf; }
.icon-btn .badge-dot { position: absolute; top: 6px; right: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); border: 2px solid #fff; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; font-weight: 700; color: #fff; }
.content { padding: 1.5rem; }
@media (max-width: 575px) { .content { padding: 1rem; } }
.dropdown-menu { border: 0; border-radius: var(--radius); padding: .4rem; box-shadow: var(--shadow-lg); }
.dropdown-item { border-radius: 6px; padding: .5rem .75rem; font-size: .92rem; font-weight: 500; }
.dropdown-item:hover, .dropdown-item:focus { background: var(--hover); }

/* ---------- Dashboard widgets ---------- */
.kpi { padding: 1.15rem 1.25rem; height: 100%; }
.kpi .label { color: var(--muted); font-size: .88rem; font-weight: 600; }
.kpi .value { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; margin: .3rem 0 .45rem; }
.kpi .kpi-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 1.1rem; }
.kpi-icon.v { background: var(--blue-soft); color: var(--blue); }
.kpi-icon.c { background: var(--teal-soft); color: var(--teal); }
.kpi-icon.e { background: var(--green-soft); color: var(--green); }
.kpi-icon.r { background: var(--red-soft); color: var(--red); }
.panel { padding: 1.25rem; height: 100%; }
.panel-title { font-weight: 700; font-size: 1.05rem; margin: 0; }
.panel-sub { color: var(--muted); font-size: .84rem; }
.seg { display: inline-flex; padding: 3px; border-radius: 8px; background: var(--hover); }
.seg button { border: 0; background: transparent; color: var(--muted); font-size: .8rem; font-weight: 600; padding: .3rem .75rem; border-radius: 6px; }
.seg button.on { background: #fff; color: var(--blue); box-shadow: var(--shadow); }
.insight { display: flex; gap: .85rem; padding: .85rem; border-radius: 10px; background: var(--bg); }
.insight + .insight { margin-top: .6rem; }
.insight .ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.ask-ai { position: relative; }
.ask-ai .form-control { padding-right: 3.25rem; border-radius: 999px; background: var(--bg); border: 0; }
.ask-ai .send { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; padding: 0; display: grid; place-items: center; border-radius: 50%; }
.table-glass { --bs-table-bg: transparent; --bs-table-border-color: var(--border); --bs-table-hover-bg: var(--hover); margin: 0; }
.table-glass thead th { color: var(--muted); font-weight: 600; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; padding-top: .25rem; }
.table-glass td { vertical-align: middle; padding-top: .8rem; padding-bottom: .8rem; font-size: .92rem; }
.tx-ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--hover); color: var(--muted); }
.amount-in { color: #2e8b1e; }
.progress { background: var(--hover); height: 8px; border-radius: 99px; }
.progress-bar { background: var(--blue); border-radius: 99px; }
.legend-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: .45rem; }

/* .fade-up / .d1–.d5 are kept as hooks but content is always visible (no entrance animation). */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ==========================================================
   Creative layer: mesh backdrop, gradients, floating cards,
   bento grid, balance card. Content never starts hidden.
   ========================================================== */
:root {
    --grad: linear-gradient(135deg, #0866ff 0%, #1877f2 45%, #00b2ff 100%);
    --grad-ai: linear-gradient(120deg, #0866ff 0%, #7b3cff 55%, #ff5c87 100%);
    --violet: #7b3cff;
    --violet-soft: #f1eaff;
}

/* Soft mesh backdrop at the top of every page */
.mesh { position: relative; isolation: isolate; }
.mesh::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 760px; z-index: -1; pointer-events: none;
    background:
        radial-gradient(600px 340px at 12% 8%, rgba(24, 119, 242, .16), transparent 70%),
        radial-gradient(520px 320px at 88% 4%, rgba(0, 178, 255, .16), transparent 70%),
        radial-gradient(460px 300px at 60% 38%, rgba(123, 60, 255, .09), transparent 70%);
}
.mesh::after {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 760px; z-index: -1; pointer-events: none;
    background-image: radial-gradient(rgba(5, 5, 5, .07) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
}

.text-grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-grad-ai { background: var(--grad-ai); -webkit-background-clip: text; background-clip: text; color: transparent; }

.btn-grad { background: var(--grad); background-size: 160% 160%; box-shadow: 0 8px 20px -8px rgba(24, 119, 242, .7); transition: background-position .35s ease, transform .15s ease, box-shadow .2s ease; }
.btn-grad:hover, .btn-grad:focus { background: var(--grad) !important; background-size: 160% 160% !important; background-position: 100% 0 !important; transform: translateY(-1px); box-shadow: 0 12px 26px -8px rgba(24, 119, 242, .75); }
.btn-white { background: #fff; color: var(--blue); border: 0; }
.btn-white:hover { background: #f5f8ff; color: var(--blue-dark); }

.brand-mark { background: var(--grad); box-shadow: 0 6px 14px -4px rgba(24, 119, 242, .6); }
.pill-ai { color: var(--violet); background: var(--violet-soft); }
.pill-ai .dot { background: var(--violet); }

/* Gradient ring card (AI) */
.ring-ai { position: relative; border: 0 !important; }
.ring-ai::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
    background: var(--grad-ai);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
}

/* Gentle float (transform only) */
.float { animation: floaty 6s ease-in-out infinite; }
.float.delay-1 { animation-delay: -2s; } .float.delay-2 { animation-delay: -4s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Landing v2 ---------- */
.hero { padding: 4.5rem 0 2rem; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); letter-spacing: -0.045em; }
.squiggle { position: relative; white-space: nowrap; }
.squiggle svg { position: absolute; left: 0; right: 0; bottom: -.18em; width: 100%; height: .32em; }

.stage { position: relative; max-width: 1140px; margin: 3.5rem auto 0; }
.stage .preview { max-width: 820px; margin: 0 auto; transform: perspective(1600px) rotateX(6deg); transform-origin: top center; box-shadow: 0 40px 80px -30px rgba(24, 60, 140, .35), 0 2px 6px rgba(0,0,0,.05); }
.float-card { position: absolute; z-index: 3; width: 210px; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 18px 40px -14px rgba(24, 60, 140, .35); padding: .75rem .9rem; display: flex; align-items: center; gap: .7rem; font-size: .85rem; text-align: left; }
.float-card .fc-ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.fc-1 { left: -48px; top: 40%; } .fc-2 { right: -48px; top: 6%; } .fc-3 { right: -36px; bottom: 8%; }
@media (max-width: 1199px) { .float-card { display: none; } }
@media (max-width: 767px) { .stage .preview { transform: none; } }

.logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 2.5rem; opacity: .55; filter: grayscale(1); }
.logos span { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.03em; color: #1c1e21; display: inline-flex; align-items: center; gap: .4rem; }

/* Bento grid */
.bento { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .bento { grid-template-columns: repeat(3, 1fr); } .bento .span-2 { grid-column: span 2; } .bento .row-2 { grid-row: span 2; } }
.bento-card { padding: 1.6rem; border-radius: 20px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); position: relative; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.bento-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.bento-card h5 { font-weight: 700; letter-spacing: -0.02em; }
.bento-blue { background: var(--grad); color: #fff; border: 0; }
.bento-blue .text-muted { color: rgba(255,255,255,.82) !important; }
.bento-blue .feature-icon { background: rgba(255,255,255,.18); color: #fff; }
.bento-blue::after { content: ""; position: absolute; width: 320px; height: 320px; right: -110px; bottom: -130px; border-radius: 50%; background: rgba(255,255,255,.1); }
.mini-bars { display: flex; align-items: flex-end; gap: 6px; height: 70px; }
.mini-bars span { flex: 1; border-radius: 6px 6px 2px 2px; background: var(--blue-soft); }
.mini-bars span.hi { background: var(--grad); }
.match-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .55rem .7rem; border-radius: 10px; background: var(--bg); font-size: .85rem; }
.match-row + .match-row { margin-top: .45rem; }

.step-num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--grad); flex-shrink: 0; box-shadow: 0 8px 18px -6px rgba(24,119,242,.6); }

.cta-band { background: var(--grad); color: #fff; border-radius: 28px; padding: 4rem 1.5rem; position: relative; overflow: hidden; }
.cta-band::before, .cta-band::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.1); }
.cta-band::before { width: 380px; height: 380px; left: -120px; top: -180px; }
.cta-band::after { width: 300px; height: 300px; right: -80px; bottom: -160px; }
.cta-band .section-title { color: #fff; }

/* ---------- Auth v2 ---------- */
.auth-side { padding: 1rem; }
.auth-side-inner.blue { max-width: none; height: calc(100vh - 2rem); position: sticky; top: 1rem; border-radius: 28px; padding: 3rem; background: var(--grad); color: #fff; overflow: hidden; justify-content: space-between; }
.auth-side-inner.blue::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(135deg, #000, transparent 70%); -webkit-mask-image: linear-gradient(135deg, #000, transparent 70%); }
.auth-side-inner.blue::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; right: -140px; bottom: -160px; background: rgba(255,255,255,.1); }
.auth-side-inner.blue > * { position: relative; z-index: 1; }
.auth-side-inner.blue .pill { background: rgba(255,255,255,.18); color: #fff; }
.auth-side-inner.blue p { color: rgba(255,255,255,.85); }
.auth-side-inner.blue .chat-user { background: rgba(255,255,255,.2); color: #fff; backdrop-filter: blur(6px); }
.auth-side-inner.blue .chat-ai { color: var(--text); border: 0; box-shadow: 0 18px 40px -14px rgba(0, 20, 80, .45); }
.stat-float { background: #fff; color: var(--text); border-radius: 16px; padding: 1rem 1.1rem; box-shadow: 0 18px 40px -14px rgba(0, 20, 80, .45); }
.auth-card { border-radius: 20px; }

/* ---------- Dashboard v2 ---------- */
.side-link.active { background: var(--blue-soft); }
.side-link.active i { background: var(--grad); }
.topbar { box-shadow: none; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.avatar { background: var(--grad); }

.balance-card { border-radius: 22px; padding: 1.5rem; color: #fff; background: var(--grad); position: relative; overflow: hidden; height: 100%; box-shadow: 0 20px 40px -18px rgba(24, 119, 242, .8); }
.balance-card::before { content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%; right: -90px; top: -120px; background: rgba(255,255,255,.12); }
.balance-card::after { content: ""; position: absolute; width: 200px; height: 200px; border-radius: 50%; right: 30px; bottom: -130px; background: rgba(255,255,255,.08); }
.balance-card > * { position: relative; z-index: 1; }
.balance-card .amt { font-size: clamp(1.9rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -0.03em; }
.balance-card .chip { width: 42px; height: 30px; border-radius: 7px; background: linear-gradient(135deg, #ffe69a, #f7b928); opacity: .95; }
.balance-card .tag-glass { background: rgba(255,255,255,.2); color: #fff; font-size: .75rem; font-weight: 600; padding: .25rem .6rem; border-radius: 999px; }
.balance-card .btn-white { font-size: .85rem; padding: .45rem .9rem; }
.balance-card .btn-outline-white { color: #fff; border: 1px solid rgba(255,255,255,.45); font-size: .85rem; padding: .45rem .9rem; }
.balance-card .btn-outline-white:hover { background: rgba(255,255,255,.12); color: #fff; }

.kpi .spark { height: 42px; margin-top: .4rem; }
.kpi .value { font-size: 1.45rem; }

.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
@media (max-width: 575px) { .quick { grid-template-columns: repeat(2, 1fr); } }
.quick a { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 1rem .5rem; border-radius: 16px; background: #fff; border: 1px solid var(--border); text-decoration: none; color: var(--text); font-weight: 600; font-size: .85rem; transition: transform .15s ease, box-shadow .2s ease, border-color .2s; }
.quick a:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: transparent; }
.quick a i { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 1.2rem; }

.goal-ring { --p: 68; width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#1877f2 calc(var(--p) * 1%), var(--hover) 0); flex-shrink: 0; }
.goal-ring > div { width: 88px; height: 88px; border-radius: 50%; background: #fff; display: grid; place-items: center; text-align: center; line-height: 1.1; }
.balance-card .btn { white-space: nowrap; }
.balance-card .small div { white-space: nowrap; }

