/* ============================================================
   Atlas skin — loaded after app.css.
   Warm paper canvas · ink floating sidebar · pill buttons · bento dashboard.
   Everything here overrides tokens/components of app.css; remove this file to
   fall back to the previous look.
   ============================================================ */

:root {
    --brand:          #2563eb;
    --brand-ink:      #0c1b33;
    --on-brand:       #ffffff;
    --teal:           #14b8a6;
    --amber:          #f5b82e;
    --brand-text:     #1d4ed8;

    --bg:             #f3f6fb;
    --surface:        #ffffff;
    --surface-2:      #f6f8fc;
    --surface-3:      #e7edf7;
    --surface-inset:  #f9fbfe;

    --border:         #e1e8f3;
    --border-strong:  #cbd6e8;
    --border-focus:   rgba(47, 107, 255, 0.55);

    --text:           #0c1b33;
    --text-secondary: #44546f;
    --text-tertiary:  #55657f;

    --accent:         #0c1b33;
    --accent-hover:   #1c3258;
    --accent-text:    #1d4ed8;
    --on-accent:      #ffffff;
    --accent-soft:    rgba(47, 107, 255, 0.10);
    --accent-soft-strong: rgba(47, 107, 255, 0.22);
    --accent-glow:    rgba(47, 107, 255, 0.2);

    --hover:          rgba(12, 27, 51, 0.045);
    --hover-strong:   rgba(12, 27, 51, 0.09);

    --chart-line:     #2f6bff;
    --chart-fill:     rgba(47, 107, 255, 0.10);
    --chart-grid:     rgba(12, 27, 51, 0.08);

    --shadow-xs:  0 1px 2px rgba(12,27,51,0.05);
    --shadow-sm:  0 1px 3px rgba(12,27,51,0.08), 0 1px 2px rgba(12,27,51,0.04);
    --shadow-md:  0 10px 24px -12px rgba(12,27,51,0.22), 0 2px 4px rgba(12,27,51,0.04);
    --shadow-card: 0 0 0 1px var(--border), 0 14px 32px -22px rgba(12,27,51,0.28);

    --r-xs: 8px;
    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 22px;
    --r-xl: 28px;

    --sidebar-w: 256px;
    --sidebar-collapsed-w: 78px;
    --topbar-h: 72px;
    --content-max: 1280px;
    --gap-shell: 14px;

    --side-bg:   #0c1b33;
    --side-text: #b6c2d9;
    --side-mute: #8fa0bd;
    --side-hover: rgba(255, 255, 255, 0.07);
    --side-active-bg: #eaf0ff;
    --side-active-text: #0c1b33;
}

[data-theme="dark"] {
    --bg:             #08111f;
    --surface:        #0f1b30;
    --surface-2:      #15233b;
    --surface-3:      #1d2d4a;
    --surface-inset:  #0b1626;

    --border:         #1f2f4b;
    --border-strong:  #2d4268;
    --border-focus:   rgba(110, 160, 255, 0.7);

    --text:           #eef3fc;
    --text-secondary: #b3c0d8;
    --text-tertiary:  #93a3c0;

    --brand:          #5b8cff;
    --on-brand:       #06101f;
    --brand-text:     #8db0ff;

    --accent:         #eef3fc;
    --accent-hover:   #ffffff;
    --accent-text:    #8db0ff;
    --on-accent:      #0c1b33;
    --accent-soft:    rgba(79, 134, 255, 0.16);
    --accent-soft-strong: rgba(79, 134, 255, 0.32);
    --accent-glow:    rgba(79, 134, 255, 0.25);

    --hover:          rgba(255, 255, 255, 0.05);
    --hover-strong:   rgba(255, 255, 255, 0.09);

    --chart-line:     #6ea0ff;
    --chart-fill:     rgba(110, 160, 255, 0.12);
    --chart-grid:     rgba(255, 255, 255, 0.08);

    --shadow-card: 0 0 0 1px var(--border), 0 14px 32px -22px rgba(0,0,0,0.7);

    --side-bg:   #12223f;
    --side-text: #bcb8ac;
    --side-mute: #8fa0bd;
    --side-hover: rgba(255, 255, 255, 0.07);
    --side-active-bg: #eaf0ff;
    --side-active-text: #0c1b33;
}

body { background: var(--bg); letter-spacing: -0.003em; }

/* ---------- Shell ---------- */

.sidebar {
    top: var(--gap-shell);
    left: var(--gap-shell);
    bottom: var(--gap-shell);
    border: 0;
    border-radius: 30px;
    background: var(--side-bg);
    color: var(--side-text);
    box-shadow: 0 24px 50px -24px rgba(8, 17, 31, 0.6);
}
.main { margin-left: calc(var(--sidebar-w) + var(--gap-shell) * 2); }
.app[data-sidebar="collapsed"] .sidebar { width: var(--sidebar-collapsed-w); }
.app[data-sidebar="collapsed"] .main { margin-left: calc(var(--sidebar-collapsed-w) + var(--gap-shell) * 2); }

.sidebar-header { height: auto; padding: 22px 22px 14px; border: 0; }
.brand { color: #fff; font-size: 15px; font-weight: 700; letter-spacing: -0.02em; gap: 12px; min-width: 0; }
.brand:hover { color: #fff; }
.brand-mark {
    width: 38px; height: 38px; border-radius: 13px;
    background: var(--brand); color: var(--on-brand);
    box-shadow: none;
    position: relative;
}
.brand-mark::after {
    content: ''; position: absolute; right: -3px; top: -3px; width: 10px; height: 10px;
    border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 3px var(--side-bg);
}

.sidebar-nav { padding: 6px 0 12px; }
.nav-group { margin-bottom: 14px; }
.nav-group-label {
    padding: 8px 26px 6px; font-size: 10px; font-weight: 700; letter-spacing: 0.14em;
    color: var(--side-mute);
}
.nav-item {
    margin: 2px 14px; padding: 10px 14px; border-radius: 16px; gap: 12px;
    color: var(--side-text); font-size: 13.5px; font-weight: 500;
}
.nav-item:hover { background: var(--side-hover); color: #fff; }
.nav-item .icon { color: var(--side-mute); }
.nav-item:hover .icon { color: #fff; }
.nav-item.is-active { background: var(--side-active-bg); color: var(--side-active-text); font-weight: 650; }
.nav-item.is-active::before { display: none; }
.nav-item.is-active .icon { color: var(--brand); }
.nav-count { background: var(--brand); color: var(--on-brand); font-weight: 700; }
.sidebar-nav { scrollbar-color: rgba(255,255,255,0.18) transparent; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.18); }

.app[data-sidebar="collapsed"] .nav-item { margin: 2px 14px; padding: 12px; }
.app[data-sidebar="collapsed"] .sidebar-header { padding: 22px 0 14px; display: flex; justify-content: center; }
.app[data-sidebar="collapsed"] .side-wallet,
.app[data-sidebar="collapsed"] .side-user-text,
.app[data-sidebar="collapsed"] .side-logout { display: none; }
.app[data-sidebar="collapsed"] .side-user { justify-content: center; padding: 8px 0; }

.sidebar-foot { padding: 10px 14px 16px; display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }
.side-wallet {
    display: grid; grid-template-columns: 1fr auto; align-items: center; row-gap: 2px;
    padding: 14px 16px; border-radius: 20px; background: rgba(255,255,255,0.06);
    color: #fff; text-decoration: none; transition: background var(--transition);
}
.side-wallet:hover { background: rgba(255,255,255,0.1); text-decoration: none; color: #fff; }
.side-wallet-label { font-size: 11px; color: var(--side-mute); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.side-wallet-value { grid-column: 1; font-size: 21px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.side-wallet-add {
    grid-column: 2; grid-row: 1 / span 2; width: 34px; height: 34px; border-radius: 50%;
    background: var(--brand); color: var(--on-brand); display: inline-flex; align-items: center; justify-content: center;
}
.side-user { display: flex; align-items: center; gap: 10px; padding: 6px 6px 0; }
.side-user .avatar { background: #eaf0ff; color: #0c1b33; width: 36px; height: 36px; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.side-user-text { min-width: 0; flex: 1; }
.side-user-name { color: #fff; font-size: 13px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user-role { color: var(--side-mute); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-logout {
    width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    color: var(--side-text); background: rgba(255,255,255,0.06); flex-shrink: 0;
}
.side-logout:hover { background: rgba(255,255,255,0.14); color: #fff; text-decoration: none; }

.topbar {
    height: var(--topbar-h); padding: 0 32px 0 4px; border: 0;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.breadcrumbs { font-size: 12.5px; }
.icon-btn {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--surface); box-shadow: 0 0 0 1px var(--border);
    color: var(--text-secondary);
}
.icon-btn:hover { background: var(--surface); box-shadow: 0 0 0 1px var(--text); color: var(--text); }
.icon-btn.has-dot::after { background: var(--brand); box-shadow: 0 0 0 2px var(--surface); }
.search-trigger {
    height: 40px; padding: 0 16px; border-radius: 999px;
    background: var(--surface); border: 0; box-shadow: 0 0 0 1px var(--border);
}
.search-trigger:hover { box-shadow: 0 0 0 1px var(--text); }
.topbar-user { height: 40px; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--border); padding: 0 10px 0 5px; }
.topbar-user:hover { background: var(--surface); box-shadow: 0 0 0 1px var(--text); }
.avatar { background: var(--brand); color: var(--on-brand); font-weight: 700; }
.dropdown-menu { border-radius: 20px; box-shadow: var(--shadow-md), 0 0 0 1px var(--border); border: 0; }
.dropdown-item { border-radius: 12px; }

.content { max-width: var(--content-max); padding: 4px 32px 56px 4px; }

.page-head { margin-bottom: 28px; align-items: flex-end; }
.page-title { font-size: 32px; font-weight: 750; letter-spacing: -0.04em; line-height: 1.1; }
.page-sub { font-size: 14px; margin-top: 8px; }

/* ---------- Buttons: pills ---------- */

.btn {
    height: 42px; padding: 0 22px; border-radius: 999px;
    font-size: 13.5px; font-weight: 650; letter-spacing: -0.01em;
}
.btn-primary {
    background: var(--accent); border-color: var(--accent); color: var(--on-accent);
    box-shadow: 0 10px 18px -12px rgba(12, 27, 51, 0.65);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); transform: translateY(-1px); }
.btn-secondary { background: var(--surface); border: 1px solid var(--border-strong); color: var(--text); box-shadow: none; }
.btn-secondary:hover { background: var(--surface); border-color: var(--text); }
.btn-ghost { color: var(--text-secondary); }
.btn-ghost:hover { background: var(--hover-strong); }
.btn-accent, .btn-brand {
    background: var(--brand); border-color: var(--brand); color: var(--on-brand);
    box-shadow: 0 10px 20px -12px rgba(47, 107, 255, 0.85);
}
.btn-accent:hover, .btn-brand:hover { background: #4f86ff; border-color: #4f86ff; color: var(--on-brand); transform: translateY(-1px); }
.btn-sm { height: 34px; padding: 0 16px; font-size: 12.5px; border-radius: 999px; }
.btn-xs { height: 28px; padding: 0 12px; border-radius: 999px; }
.btn-lg { height: 48px; padding: 0 28px; font-size: 14.5px; }
.btn-danger { border-radius: 999px; }
.btn-danger-solid { border-radius: 999px; }
.btn-link { font-weight: 600; }
.skip-link { border-radius: 999px; }

/* ---------- Surfaces ---------- */

.card {
    border: 0; border-radius: var(--r-lg);
    box-shadow: var(--shadow-card);
    background: var(--surface);
}
.card:hover { border: 0; }
.card-header { padding: 20px 24px 10px; border-bottom: 0; }
.card-title { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; }
.card-body { padding: 14px 24px 24px; }
.card-footer { border-top: 1px solid var(--border); padding: 14px 24px; }

.kpi {
    border: 0; border-radius: var(--r-lg); box-shadow: var(--shadow-card); padding: 22px 24px;
}
.kpi:hover { border: 0; box-shadow: var(--shadow-md), 0 0 0 1px var(--border); }
.kpi-label { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600; }
.kpi-value { font-size: 30px; font-weight: 750; letter-spacing: -0.04em; }

.data-table th {
    background: transparent; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--text-tertiary); font-weight: 700;
}
.data-table tbody tr:hover td { background: var(--surface-inset); }

.input, .select, .textarea {
    border-radius: 14px; background: var(--surface); border-color: var(--border-strong);
}
.input, .select { height: 42px; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--text); box-shadow: 0 0 0 4px var(--accent-soft-strong); }
.status, .tag { border-radius: 999px; }
.pagination .page-btn { border-radius: 999px; }
.tab, .auth-tab { border-radius: 999px; }
.modal { border-radius: 28px; }
.modal-backdrop { background: rgba(8, 17, 31, 0.6); }
.toast { border-radius: 18px; }
.callout { border-radius: 18px; }
.empty-icon { border-radius: 18px; }
.filter-bar { border-radius: var(--r-lg); }
.summary-box { border-radius: 18px; }
.selection-bar { border-radius: 0; }

.term-option { border-radius: 18px; }
.term-option.is-selected { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); background: var(--accent-soft); }
.step-card .step-index, .step-index { background: var(--accent); color: var(--on-accent); }

/* ---------- Dashboard (bento) ---------- */

.dash { display: flex; flex-direction: column; gap: 20px; }
.dash-hero { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; }

.bal-hero {
    position: relative; overflow: clip; border-radius: 32px; padding: 34px 36px 30px;
    background:
        radial-gradient(circle at calc(100% - 90px) 80px, transparent 0 129px, rgba(110,160,255,0.55) 130px 131px, transparent 132px),
        radial-gradient(circle at calc(100% - 20px) 20px, transparent 0 289px, rgba(255,255,255,0.09) 290px 291px, transparent 292px),
        var(--side-bg);
    color: #eaf0ff;
    display: flex; flex-direction: column; gap: 6px; min-height: 340px;
}
.bc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: relative; z-index: 1; }
.bc-greet { font-size: 15px; font-weight: 600; color: #cfd9ec; }
.bc-pill {
    display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px;
    background: rgba(255,255,255,0.08); color: #d3dcf0; font-size: 12px; font-weight: 600;
}
.bc-pill i { width: 7px; height: 7px; border-radius: 50%; background: #5dd68a; display: inline-block; }
.bc-label { margin-top: 26px; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--side-mute); position: relative; z-index: 1; }
.bc-value { font-size: clamp(44px, 6vw, 64px); font-weight: 750; letter-spacing: -0.05em; line-height: 1.02; font-variant-numeric: tabular-nums; position: relative; z-index: 1; }
.bc-sub { font-size: 13px; color: #9fb0cc; position: relative; z-index: 1; }
.bc-sub a { color: #9dbcff; font-weight: 650; }
.bc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; position: relative; z-index: 1; }
.btn-on-ink { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.14); color: #eaf0ff; box-shadow: none; }
.btn-on-ink:hover { background: rgba(255,255,255,0.18); color: #fff; border-color: rgba(255,255,255,0.3); }
.bc-stats {
    margin-top: auto; padding-top: 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; position: relative; z-index: 1;
}
.bc-stat { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 14px; min-width: 0; }
.bc-stat-label { font-size: 12px; color: var(--side-mute); font-weight: 600; }
.bc-stat-value { font-size: 20px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; margin-top: 4px; }
.bc-stat-note { font-size: 11.5px; color: #8091b0; margin-top: 2px; }

.dash-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 20px; }
.tile {
    display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
    padding: 22px; border-radius: 28px; background: var(--surface); box-shadow: var(--shadow-card);
    color: var(--text); text-decoration: none; transition: transform var(--transition), box-shadow var(--transition);
    min-height: 150px;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md), 0 0 0 1px var(--border); text-decoration: none; color: var(--text); }
.tile-icon { width: 44px; height: 44px; border-radius: 16px; background: var(--surface-3); display: inline-flex; align-items: center; justify-content: center; color: var(--text); }
.tile-title { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.tile-sub { font-size: 12.5px; color: var(--text-tertiary); margin-top: 4px; }
.tile-arrow { position: absolute; right: 20px; top: 20px; opacity: 0.5; }
.tile { position: relative; }
.tile.is-brand { background: var(--brand); color: var(--on-brand); box-shadow: none; }
.tile.is-brand .tile-icon { background: color-mix(in srgb, var(--on-brand) 18%, transparent); color: var(--on-brand); }
.tile.is-brand .tile-sub { color: var(--on-brand); opacity: .88; }
.tile.is-brand:hover { color: var(--on-brand); }
.tile.is-sand { background: var(--surface-3); box-shadow: none; }
.tile.is-sand .tile-icon { background: var(--surface); }

.dash-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }

.feed { display: flex; flex-direction: column; padding: 4px 12px 8px; }
.feed-item {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px;
    padding: 14px 12px; border-radius: 20px; color: var(--text); text-decoration: none;
    transition: background var(--transition);
}
.feed-item:hover { background: var(--surface-inset); text-decoration: none; color: var(--text); }
.feed-id {
    min-width: 54px; height: 44px; padding: 0 12px; border-radius: 16px; background: var(--surface-3);
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--mono); font-size: 12.5px; font-weight: 700;
}
.feed-main { min-width: 0; }
.feed-title { font-size: 14px; font-weight: 650; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-meta { font-size: 12px; color: var(--text-tertiary); margin-top: 3px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.feed-side { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.feed-amount { font-size: 15px; font-weight: 750; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.feed-foot { display: flex; gap: 8px; flex-wrap: wrap; padding: 6px 24px 20px; }

.wtl { position: relative; padding: 6px 24px 22px; display: flex; flex-direction: column; }
.wtl::before { content: ''; position: absolute; left: 41px; top: 18px; bottom: 30px; width: 2px; background: var(--border); border-radius: 2px; }
.tl-item { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 10px 0; }
.tl-dot {
    width: 36px; height: 36px; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 2px var(--border);
    display: inline-flex; align-items: center; justify-content: center; color: var(--text-secondary); position: relative; z-index: 1;
}
.tl-dot.is-credit { background: #e3f6ea; box-shadow: 0 0 0 2px #bfe8cd; color: #166534; }
[data-theme="dark"] .tl-dot.is-credit { background: rgba(34,197,94,0.14); box-shadow: 0 0 0 2px rgba(34,197,94,0.3); color: #4ade80; }
.tl-title { font-size: 13.5px; font-weight: 650; line-height: 1.35; }
.tl-desc { font-size: 12px; color: var(--text-tertiary); margin-top: 3px; }

.announce-strip {
    display: flex; align-items: center; gap: 14px; padding: 14px 22px; border-radius: 22px;
    background: var(--surface); box-shadow: var(--shadow-card);
}
.announce-strip .as-icon { width: 38px; height: 38px; border-radius: 14px; background: var(--accent-soft); color: var(--brand-text); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.announce-strip .as-text { font-size: 13.5px; color: var(--text-secondary); min-width: 0; }
.announce-strip .as-text strong { color: var(--text); }

/* ---------- Auth ---------- */

.auth-body { background: var(--bg); }
.auth-card { border-radius: 32px; box-shadow: var(--shadow-md), 0 0 0 1px var(--border); border: 0; }
.auth-brand .brand-mark { background: var(--brand); color: var(--on-brand); }
.auth-brand .brand-mark::after { box-shadow: 0 0 0 3px var(--surface); background: var(--amber); }

/* ---------- Public site ---------- */

.landing { background: var(--bg); }
.landing-nav { background: color-mix(in srgb, var(--bg) 88%, transparent); border: 0; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.landing .brand { color: var(--text); }
.landing .brand:hover { color: var(--text); }
.landing .brand-mark::after { box-shadow: 0 0 0 3px var(--bg); background: var(--amber); }
[data-theme="dark"] .landing .brand-mark::after { background: #eaf0ff; }
.landing-links a { border-radius: 999px; }
.hero {
    background:
        linear-gradient(to bottom, transparent 0%, var(--bg) 100%),
        radial-gradient(circle at 50% -10%, var(--accent-soft-strong) 0, transparent 55%),
        var(--bg);
    border: 0;
}
[data-theme="dark"] .hero { background: linear-gradient(to bottom, transparent 0%, var(--bg) 100%), radial-gradient(circle at 50% -10%, var(--accent-soft-strong) 0, transparent 55%), var(--bg); }
.hero h1 { font-weight: 750; letter-spacing: -0.045em; }
.eyebrow { border: 0; background: var(--surface); box-shadow: 0 0 0 1px var(--border); color: var(--text-secondary); }
.eyebrow .icon { color: var(--brand); }
.section { background: transparent; border-top: 0; }
.section:nth-of-type(even) { background: transparent; }
.section-kicker { color: var(--brand-text); }
.feature-card, .step-card, .guide-card, .faq-item, .pricing-card, .aside-card, .price-table-card { border: 0; box-shadow: var(--shadow-card); border-radius: var(--r-lg); }
.feature-icon { background: var(--surface-3); color: var(--text); border-radius: 14px; }
.guide-card:hover { border: 0; box-shadow: var(--shadow-md), 0 0 0 1px var(--text); }
.faq-item summary { border-radius: var(--r-lg); }
.aside-cta { background: var(--brand); box-shadow: none; }
.aside-cta .aside-title, .aside-cta p { color: var(--on-brand); }
.aside-cta .btn-primary { background: #fff; color: var(--brand-ink); border-color: #fff; }
.cta-band { background: var(--side-bg); color: #eaf0ff; margin: 0 var(--gap-shell) var(--gap-shell); border-radius: 36px; border: 0; }
.cta-band .section-title { color: #fff; }
.cta-band .section-sub { color: #b3c0d8; }
.cta-band .btn-secondary { background: transparent; border-color: rgba(255,255,255,0.3); color: #fff; }
.cta-band .btn-primary { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.landing-footer { border: 0; background: transparent; }
.pricing-term em, .term-badge { border-radius: 999px; }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
    .dash-hero, .dash-grid { grid-template-columns: minmax(0, 1fr); }
    .dash-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .sidebar { top: 0; left: 0; bottom: 0; border-radius: 0 30px 30px 0; width: 288px; }
    .main { margin-left: 0 !important; }
    .topbar { padding: 0 16px; height: 64px; }
    .content { padding: 4px 16px 48px; }
    .page-title { font-size: 26px; }
}
@media (max-width: 720px) {
    .dash-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bal-hero { padding: 26px 24px 24px; border-radius: 26px; min-height: 0; }
    .bc-stats { grid-template-columns: 1fr; gap: 10px; }
    .bc-stat { display: flex; justify-content: space-between; align-items: baseline; }
    .bc-stat-value { margin: 0; }
    .bc-stat-note { display: none; }
    .tile { min-height: 124px; padding: 18px; border-radius: 22px; }
    .feed-item { grid-template-columns: auto minmax(0, 1fr); }
    .feed-side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; padding-left: 68px; }
}
@media (max-width: 640px) {
    .btn { height: 44px; }
    .btn-sm { height: 36px; }
}

/* Term cards: tidy 2 x 2 */
.term-grid, .term-grid:where(*) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sidebar-nav { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 22px), transparent); }
.landing .brand { gap: 10px; }
.landing .brand-name { overflow: visible; }
@media (max-width: 600px) { .landing .brand-name { font-size: 14px; } .landing-nav-inner { padding: 0 16px; gap: 8px; } }

.landing .brand { overflow: visible; }
@media (max-width: 640px) { .page-head { align-items: stretch; } }

/* ---------- Illustrations ---------- */

/* Empty states get the illustration instead of a lone icon */
.empty-icon {
    width: 132px; height: 100px; border-radius: 0; background: url('/assets/img/empty-state.svg') center / contain no-repeat;
    border: 0; box-shadow: none; margin-bottom: 8px;
}
.empty-icon > svg, .empty-icon > .icon { display: none; }

/* Landing hero: copy on the left, illustration on the right */
.hero-split .landing-container { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 40px; align-items: center; text-align: left; }
.hero-split h1, .hero-split .hero-sub { margin-left: 0; margin-right: 0; text-align: left; }
.hero-split .hero-actions { justify-content: flex-start; }
.hero-split .hero-stats { justify-content: flex-start; margin-top: 40px; gap: 40px; }
.hero-split .hero-stat .v { text-align: left; }
.hero-art { display: flex; justify-content: center; }
.hero-art img { width: 100%; max-width: 560px; height: auto; display: block; filter: drop-shadow(0 30px 40px rgba(12,27,51,0.12)); }
.hero-split { padding: 72px 0 64px; }
@media (max-width: 960px) {
    .hero-split .landing-container { grid-template-columns: minmax(0, 1fr); text-align: center; }
    .hero-split h1, .hero-split .hero-sub { text-align: center; margin-left: auto; margin-right: auto; }
    .hero-split .hero-actions, .hero-split .hero-stats { justify-content: center; }
    .hero-art { order: -1; }
    .hero-art img { max-width: 380px; }
}

/* Auth pages: illustration panel + form */
.auth-body {
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 100vh; padding: 0; align-items: stretch;
}
.auth-body::before {
    content: ''; display: block !important; grid-column: 1; margin: var(--gap-shell); border-radius: 36px;
    background: url('/assets/img/auth-workspace.svg') center 56% / min(86%, 560px) no-repeat, linear-gradient(160deg, #11284d 0%, #0a1830 100%);
    min-height: calc(100vh - var(--gap-shell) * 2);
}
.auth-card { grid-column: 2; align-self: center; justify-self: center; width: min(440px, calc(100% - 48px)); margin: 24px; }
@media (max-width: 900px) {
    .auth-body { display: flex; align-items: center; justify-content: center; padding: 20px; }
    .auth-body::before { display: none !important; }
    .auth-card { margin: 0 auto; }
}
.btn.btn-icon { width: 42px; min-width: 42px; padding: 0; }
.btn.btn-icon.btn-sm { width: 34px; min-width: 34px; }
.btn.btn-icon.btn-xs { width: 28px; min-width: 28px; }
@media (max-width: 640px) { .btn.btn-icon { width: 44px; min-width: 44px; } .btn.btn-icon.btn-sm { width: 36px; min-width: 36px; } }

/* ---------- Call-to-action card + footer (public site) ---------- */

.cta-band { background: transparent; margin: 0; border-radius: 0; padding: 24px 0 88px; }
.cta-band .landing-container {
    position: relative; overflow: clip; text-align: center;
    max-width: 1100px; padding: 72px 40px; border-radius: 36px;
    background:
        radial-gradient(circle at calc(100% - 70px) 60px, transparent 0 139px, rgba(110,160,255,0.5) 140px 141px, transparent 142px),
        radial-gradient(circle at 70px calc(100% - 40px), transparent 0 109px, rgba(255,255,255,0.1) 110px 111px, transparent 112px),
        linear-gradient(135deg, #0c1b33 0%, #17306b 100%);
    box-shadow: 0 30px 60px -34px rgba(12, 27, 51, 0.6);
}
.cta-band .section-title { color: #fff; font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -0.03em; max-width: 760px; margin: 0 auto; }
.cta-band .section-sub { color: #c4d2ee; font-size: 16px; max-width: 620px; margin-top: 16px; }
.cta-band .hero-actions { margin-top: 32px !important; }
.cta-band .btn-primary { background: #fff; border-color: #fff; color: #0c1b33; box-shadow: none; }
.cta-band .btn-primary:hover { background: #eaf0ff; border-color: #eaf0ff; color: #0c1b33; }
.cta-band .btn-secondary { background: transparent; border-color: rgba(255,255,255,0.35); color: #fff; }
.cta-band .btn-secondary:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 56px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 0.8fr; gap: 40px; align-items: start; }
.footer-brand .brand { color: var(--text); font-size: 17px; }
.footer-brand .brand:hover { color: var(--text); }
.footer-brand p { margin: 14px 0 12px; font-size: 14px; line-height: 1.6; color: var(--text-secondary); max-width: 320px; }
.footer-mail { font-size: 14px; font-weight: 600; color: var(--brand-text); }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-title { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 4px; }
.footer-col a { font-size: 14px; line-height: 1.45; color: var(--text-secondary); }
.footer-col a:hover { color: var(--text); text-decoration: none; }
.site-footer .footer-fineprint { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border); font-size: 12.5px; line-height: 1.65; color: var(--text-tertiary); max-width: 900px; }
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
    .footer-brand { grid-column: 1 / -1; }
    .cta-band .landing-container { margin: 0 16px; padding: 48px 24px; border-radius: 28px; }
}
@media (max-width: 520px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Notification list (page) ---------- */

.notification-row { display: flex; align-items: flex-start; gap: 16px; padding: 18px 24px; border-bottom: 1px solid var(--border); }
.notification-row .notif-icon {
    width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center; margin-top: 1px;
}
.notification-row .notif-title { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: 14.5px; font-weight: 650; letter-spacing: -0.01em; color: var(--text); line-height: 1.4; }
.notification-row .notif-desc { display: block; font-size: 13px; line-height: 1.55; color: var(--text-secondary); margin-top: 3px; white-space: normal; }
.notification-row .notif-desc.mt-2 { font-size: 12px; color: var(--text-tertiary); margin-top: 6px; }
.notification-row .notif-actions { align-self: center; }
.notification-row .notif-actions .btn-ghost { border: 1px solid var(--border-strong); color: var(--text); background: var(--surface); }
.notification-row .notif-actions .btn-ghost:hover { border-color: var(--text); }
@media (max-width: 640px) { .notification-row { padding: 16px; gap: 12px; flex-wrap: wrap; } .notification-row .notif-actions { margin-left: 54px; align-self: flex-start; } }

/* Segmented filter + small helpers that had no styles */
.segmented { display: inline-flex; padding: 4px; gap: 2px; background: var(--surface-3); border-radius: 999px; }
.segmented-item { padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--text-secondary); text-decoration: none; }
.segmented-item:hover { color: var(--text); text-decoration: none; }
.segmented-item.is-active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-xs); }
.anchor-input { flex: 1; min-width: 0; }
.anchor-remove { flex-shrink: 0; }
.order-hero-progress-wrap { margin-top: 14px; }
.promo-field .field-label { margin-bottom: 6px; }
@media (max-width: 520px) { .footer-grid .footer-col:nth-of-type(2) .footer-col-title { display: none; } }
