/* ==========================================================================
   DGLD — Design System
   Editorial swiss-gold aesthetic for the customer platform.
   Display: Satoshi · UI: Inter · Data: Geist Mono
   ========================================================================== */

[hidden] { display: none !important; }

:root {
    /* Canvas */
    --bg: #08090a;
    --bg-soft: #0b0d0e;
    --surface: #101314;
    --surface-2: #15181a;
    --surface-3: #1b1f22;
    --line: rgba(236, 236, 231, 0.08);
    --line-2: rgba(236, 236, 231, 0.15);

    /* Ink */
    --ink: #f4f4ef;
    --ink-2: #c4c6be;
    --ink-3: #9e9e94;
    --ink-4: #5f5f59;

    /* Brand */
    --gold: #b6921a;
    --gold-2: #e6c972;
    --gold-3: #f5dfa0;
    --gold-bright: #f7e535;
    --gold-tint: rgba(182, 146, 26, 0.12);
    --gold-tint-2: rgba(182, 146, 26, 0.22);

    /* Status */
    --green: #4fc38a;
    --green-tint: rgba(79, 195, 138, 0.13);
    --red: #e05050;
    --red-tint: rgba(224, 80, 80, 0.13);
    --amber: #e6c972;
    --amber-tint: rgba(230, 201, 114, 0.13);

    /* Geometry */
    --radius: 14px;
    --radius-sm: 10px;
    --radius-lg: 20px;
    --radius-pill: 999px;
    --shadow: 0 1px 0 rgba(255, 255, 255, 0.03), 0 24px 48px -30px rgba(0, 0, 0, 0.9);
    --sidebar-w: 258px;
    --topbar-h: 64px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(900px 500px at 82% -8%, rgba(182, 146, 26, 0.10), transparent 60%),
        radial-gradient(700px 420px at 0% 100%, rgba(182, 146, 26, 0.05), transparent 55%);
}

h1, h2, h3, h4, h5 {
    font-family: 'Satoshi', 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0;
}

a { color: var(--gold-2); text-decoration: none; }
a:hover { color: var(--gold-3); }

p { margin: 0; }

.mono { font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace; }
.eyebrow {
    font-family: 'Geist Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-3);
}
.muted { color: var(--ink-3); }
.dim { color: var(--ink-4); }
.text-gold { color: var(--gold-2); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-right { text-align: right; }
.text-center { text-align: center; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ---------------------------------------------------------------- layout */

.shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    align-self: start;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 22px 16px;
    background: linear-gradient(180deg, var(--bg-soft), var(--bg));
    border-right: 1px solid var(--line);
}

.main { min-width: 0; display: flex; flex-direction: column; }

.content {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 30px 36px 80px;
}

/* ---------------------------------------------------------------- brand */

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    font-family: 'Satoshi', sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand .brand-d { color: var(--ink); }
.brand .brand-g { color: var(--gold-bright); }
.brand-mark {
    width: 30px; height: 30px;
    display: grid; place-items: center;
    border-radius: 9px;
    background: linear-gradient(140deg, var(--gold-3), var(--gold));
    color: #17130a;
    font-size: 15px;
    font-weight: 700;
}
.brand--wide { font-size: 16px; gap: 9px; white-space: nowrap; }
.brand--wide .brand-mark { width: 26px; height: 26px; border-radius: 8px; font-size: 13px; }

/* ---------------------------------------------------------------- nav */

.nav { display: flex; flex-direction: column; gap: 2px; margin-top: 18px; }
.nav-group { margin-top: 18px; }
.nav-group:first-child { margin-top: 0; }
.nav-label {
    font-family: 'Geist Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-4);
    padding: 0 10px 8px;
}
.nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 10px;
    border-radius: var(--radius-sm);
    color: var(--ink-2);
    font-size: 14px;
    font-weight: 450;
    transition: background 0.15s, color 0.15s;
}
.nav-link svg { width: 17px; height: 17px; flex: none; opacity: 0.75; }
.nav-link:hover { background: rgba(255, 255, 255, 0.04); color: var(--ink); }
.nav-link.active { background: var(--surface-2); color: var(--ink); }
.nav-link.active svg { opacity: 1; color: var(--gold-2); }
.nav-link.active::before {
    content: '';
    position: absolute;
    left: -16px; top: 50%;
    transform: translateY(-50%);
    width: 2px; height: 18px;
    border-radius: 2px;
    background: var(--gold-2);
}
.nav-link .nav-badge {
    margin-left: auto;
    font-family: 'Geist Mono', monospace;
    font-size: 11px;
    padding: 1px 7px;
    border-radius: var(--radius-pill);
    background: var(--gold-tint-2);
    color: var(--gold-3);
}

.sidebar-foot { margin-top: auto; padding-top: 16px; }

.holding {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px;
    background: linear-gradient(160deg, var(--surface-2), var(--surface));
}
.holding .holding-label { font-size: 11px; color: var(--ink-3); }
.holding .holding-value { font-family: 'Geist Mono', monospace; font-size: 20px; color: var(--ink); margin-top: 2px; }
.holding .holding-sub { font-size: 11px; color: var(--gold-2); margin-top: 2px; }

/* ---------------------------------------------------------------- topbar */

.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 16px;
    height: var(--topbar-h);
    padding: 0 36px;
    background: rgba(8, 9, 10, 0.82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.topbar-title { font-family: 'Satoshi', sans-serif; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.topbar-spacer { flex: 1; }

.ticker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 36px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--surface);
}
.ticker .ticker-sym { font-family: 'Geist Mono', monospace; font-size: 11px; letter-spacing: 0.1em; color: var(--ink-3); }
.ticker .ticker-price { font-family: 'Geist Mono', monospace; font-size: 14px; color: var(--ink); }
.delta { display: inline-flex; align-items: center; gap: 3px; font-family: 'Geist Mono', monospace; font-size: 12px; }
.delta.up { color: var(--green); }
.delta.down { color: var(--red); }

.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 38px; height: 38px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink-2);
    cursor: pointer;
    position: relative;
    transition: border-color 0.15s, color 0.15s;
}
.icon-btn:hover { border-color: var(--line-2); color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .dot {
    position: absolute; top: 7px; right: 7px;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--gold-bright);
    box-shadow: 0 0 0 3px var(--bg);
}

.avatar {
    display: inline-grid;
    place-items: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: linear-gradient(140deg, var(--gold-2), var(--gold));
    color: #17130a;
    font-family: 'Satoshi', sans-serif;
    font-weight: 700;
    font-size: 14px;
    flex: none;
}
.avatar.lg { width: 56px; height: 56px; font-size: 20px; }

.user-chip {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 4px 6px 4px 4px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
}
.user-chip:hover { border-color: var(--line-2); color: var(--ink); }
.user-chip .user-meta { line-height: 1.1; padding-right: 6px; }
.user-chip .user-name { font-size: 13px; font-weight: 500; }
.user-chip .user-role { font-size: 11px; color: var(--ink-3); }

/* menu */
.menu { position: relative; }
.menu-panel {
    position: absolute;
    right: 0; top: calc(100% + 10px);
    min-width: 220px;
    padding: 6px;
    background: var(--surface-2);
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    z-index: 60;
    display: none;
}
.menu.open .menu-panel { display: block; }
.menu-item {
    display: flex; align-items: center; gap: 10px;
    width: 100%;
    padding: 9px 10px;
    border-radius: var(--radius-sm);
    color: var(--ink-2);
    font-size: 13.5px;
    cursor: pointer;
    background: none; border: none; text-align: left;
}
.menu-item:hover { background: rgba(255, 255, 255, 0.05); color: var(--ink); }
.menu-item svg { width: 16px; height: 16px; opacity: 0.7; }
.menu-divider { height: 1px; margin: 6px 4px; background: var(--line); }

/* ---------------------------------------------------------------- page head */

.page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}
.page-head h1 { font-size: 30px; }
.page-head .page-sub { color: var(--ink-3); margin-top: 5px; font-size: 14px; }
.page-actions { display: flex; gap: 10px; align-items: center; }

.breadcrumb { font-family: 'Geist Mono', monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 10px; }

/* ---------------------------------------------------------------- grid */

.grid { display: grid; gap: 20px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.split-wide { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.stack { display: flex; flex-direction: column; gap: 20px; }
.row { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wrap { flex-wrap: wrap; }
.mt-1 { margin-top: 6px; } .mt-2 { margin-top: 12px; } .mt-3 { margin-top: 18px; } .mt-4 { margin-top: 26px; } .mt-5 { margin-top: 36px; }
.mb-1 { margin-bottom: 6px; } .mb-2 { margin-bottom: 12px; } .mb-3 { margin-bottom: 18px; } .mb-4 { margin-bottom: 26px; }

/* ---------------------------------------------------------------- card */

.card {
    position: relative;
    background: linear-gradient(180deg, var(--surface), var(--bg-soft));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
}
.card.flush { padding: 0; overflow: hidden; }
.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}
.card.flush .card-head { padding: 18px 22px; margin: 0; border-bottom: 1px solid var(--line); }
.card-title { font-size: 16px; font-weight: 600; }
.card-sub { font-size: 13px; color: var(--ink-3); margin-top: 3px; }
.card-body { padding: 22px; }
.card-foot { padding: 16px 22px; border-top: 1px solid var(--line); }

/* ---------------------------------------------------------------- hero / stat */

.hero {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px;
    background:
        radial-gradient(600px 320px at 88% 0%, rgba(182, 146, 26, 0.16), transparent 62%),
        linear-gradient(150deg, #16140e, var(--surface) 55%, var(--bg-soft));
}
.hero::after {
    content: '';
    position: absolute;
    right: -40px; bottom: -60px;
    width: 240px; height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(230, 201, 114, 0.22), transparent 68%);
    filter: blur(6px);
    pointer-events: none;
}
.hero-label { font-family: 'Geist Mono', monospace; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-2); }
.hero-value { font-family: 'Geist Mono', monospace; font-size: 44px; line-height: 1.05; letter-spacing: -0.02em; margin-top: 10px; }
.hero-value .unit { font-size: 18px; color: var(--ink-3); margin-left: 6px; }
.hero-usd { font-family: 'Geist Mono', monospace; font-size: 20px; color: var(--ink); margin-top: 6px; }
.hero-note { color: var(--ink-3); font-size: 13px; margin-top: 14px; max-width: 460px; }

.stat { padding: 18px; }
.stat .stat-label { font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.stat .stat-value { font-family: 'Geist Mono', monospace; font-size: 26px; color: var(--ink); margin-top: 8px; letter-spacing: -0.01em; }
.stat .stat-foot { font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.stat-icon {
    width: 34px; height: 34px; border-radius: 10px;
    display: grid; place-items: center;
    background: var(--gold-tint); color: var(--gold-2);
}
.stat-icon svg { width: 17px; height: 17px; }

/* ---------------------------------------------------------------- buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    padding: 0 18px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 14px;
    font-weight: 550;
    cursor: pointer;
    transition: transform 0.08s, background 0.15s, border-color 0.15s, color 0.15s, opacity 0.15s;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: linear-gradient(180deg, var(--gold-bright), #e4d21f); color: #14120a; }
.btn-primary:hover { background: linear-gradient(180deg, #fdf26a, var(--gold-bright)); color: #14120a; }
.btn-gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #17130a; }
.btn-gold:hover { background: linear-gradient(180deg, var(--gold-3), var(--gold-2)); color: #17130a; }
.btn-outline { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-outline:hover { border-color: var(--gold-2); color: var(--gold-3); }
.btn-ghost { background: rgba(255, 255, 255, 0.03); color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); color: var(--ink); }
.btn-danger { background: var(--red-tint); color: var(--red); border-color: rgba(224, 80, 80, 0.3); }
.btn-danger:hover { background: rgba(224, 80, 80, 0.2); }
.btn-sm { height: 34px; padding: 0 13px; font-size: 13px; }
.btn-lg { height: 50px; padding: 0 26px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: 0.45; pointer-events: none; }
.btn-link { background: none; border: none; color: var(--gold-2); padding: 0; height: auto; cursor: pointer; font: inherit; }

/* ---------------------------------------------------------------- badges / pills */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 500;
    border: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--ink-2);
    white-space: nowrap;
}
.badge .bdot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.success { color: var(--green); background: var(--green-tint); border-color: rgba(79, 195, 138, 0.28); }
.badge.pending { color: var(--amber); background: var(--amber-tint); border-color: rgba(230, 201, 114, 0.3); }
.badge.danger { color: var(--red); background: var(--red-tint); border-color: rgba(224, 80, 80, 0.3); }
.badge.gold { color: var(--gold-3); background: var(--gold-tint); border-color: rgba(182, 146, 26, 0.32); }
.badge.neutral { color: var(--ink-3); }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink-2);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}
.chip:hover { border-color: var(--line-2); color: var(--ink); }
.chip.active { border-color: var(--gold); background: var(--gold-tint); color: var(--gold-3); }

.segmented {
    display: inline-flex;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--surface);
}
.segmented button {
    border: none; background: none; cursor: pointer;
    padding: 6px 14px; border-radius: var(--radius-pill);
    color: var(--ink-3); font-family: 'Geist Mono', monospace; font-size: 12px;
}
.segmented button.active { background: var(--surface-3); color: var(--ink); }

/* ---------------------------------------------------------------- forms */

.field { margin-bottom: 18px; }
.label {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 13px; font-weight: 500; color: var(--ink-2);
    margin-bottom: 8px;
}
.label .label-opt { font-size: 11px; color: var(--ink-4); font-weight: 400; }
.input, .select, .textarea {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--ink);
    font-family: inherit;
    font-size: 15px;
    padding: 12px 14px;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-4); }
.input:focus, .select:focus, .textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-tint);
}
.select { appearance: none; cursor: pointer; 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='%239e9e94' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 38px; }
.select option { background: var(--surface-2); }
.textarea { min-height: 96px; resize: vertical; }
.input.mono, .input-lg { font-family: 'Geist Mono', monospace; }
.hint { font-size: 12px; color: var(--ink-4); margin-top: 7px; }
.field-error { font-size: 12.5px; color: var(--red); margin-top: 7px; }
.input-group { display: flex; }
.input-group .input { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-group .addon {
    display: inline-flex; align-items: center; padding: 0 14px;
    border: 1px solid var(--line); border-left: none;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: var(--surface-2); color: var(--ink-3);
    font-family: 'Geist Mono', monospace; font-size: 14px;
}
.radio-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.radio-card {
    display: flex; align-items: center; gap: 10px;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    cursor: pointer;
    font-size: 14px;
}
.radio-card:hover { border-color: var(--line-2); }
.radio-card input { accent-color: var(--gold); }
.radio-card.selected { border-color: var(--gold); background: var(--gold-tint); }

/* switch */
.switch { display: inline-flex; align-items: center; cursor: pointer; gap: 10px; font-size: 14px; color: var(--ink-2); }
.switch input { display: none; }
.switch .track { width: 40px; height: 22px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--line); position: relative; transition: background 0.15s; }
.switch .track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink-3); transition: transform 0.15s, background 0.15s; }
.switch input:checked + .track { background: var(--gold-tint-2); border-color: var(--gold); }
.switch input:checked + .track::after { transform: translateX(18px); background: var(--gold-bright); }

/* ---------------------------------------------------------------- dropzone */

.dropzone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 148px;
    padding: 20px;
    text-align: center;
    border: 1.5px dashed var(--line-2);
    border-radius: var(--radius);
    background: var(--surface);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--gold); background: var(--gold-tint); }
.dropzone.has-file { border-style: solid; border-color: rgba(79, 195, 138, 0.5); background: rgba(79, 195, 138, 0.05); }
.dropzone.error { border-color: var(--red); background: var(--red-tint); }
.dropzone .dz-icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-3); color: var(--gold-2); }
.dropzone .dz-icon svg { width: 20px; height: 20px; }
.dropzone .dz-title { font-size: 14px; font-weight: 500; }
.dropzone .dz-sub { font-size: 12px; color: var(--ink-4); }
.dropzone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dz-preview { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; }
.dz-preview img { width: 54px; height: 54px; border-radius: 9px; object-fit: cover; border: 1px solid var(--line); }
.dz-file-icon { width: 54px; height: 54px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-3); color: var(--ink-2); }
.dz-filename { font-size: 13.5px; font-weight: 500; word-break: break-all; }
.dz-filesize { font-size: 12px; color: var(--ink-4); }
.dz-remove { margin-left: auto; }

/* ---------------------------------------------------------------- stepper */

.stepper { display: flex; flex-direction: column; gap: 0; }
.step { display: flex; gap: 14px; position: relative; padding-bottom: 26px; }
.step:last-child { padding-bottom: 0; }
.step::before {
    content: ''; position: absolute; left: 15px; top: 32px; bottom: 0; width: 2px; background: var(--line);
}
.step:last-child::before { display: none; }
.step.done::before { background: var(--gold); }
.step-dot {
    position: relative; z-index: 1;
    flex: none;
    width: 32px; height: 32px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--surface-2); border: 1px solid var(--line);
    color: var(--ink-3); font-family: 'Geist Mono', monospace; font-size: 13px;
}
.step.active .step-dot { border-color: var(--gold); color: var(--gold-3); background: var(--gold-tint); }
.step.done .step-dot { background: var(--gold); border-color: var(--gold); color: #17130a; }
.step-body { padding-top: 3px; }
.step-title { font-size: 14.5px; font-weight: 600; }
.step-desc { font-size: 13px; color: var(--ink-3); margin-top: 2px; }

.stepper-h { display: flex; align-items: flex-start; gap: 8px; }
.step-h { flex: 1; text-align: center; position: relative; }
.step-h .step-h-dot { width: 34px; height: 34px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-3); font-family: 'Geist Mono', monospace; font-size: 13px; }
.step-h.active .step-h-dot { border-color: var(--gold); background: var(--gold-tint); color: var(--gold-3); }
.step-h.done .step-h-dot { background: var(--gold); border-color: var(--gold); color: #17130a; }
.step-h .step-h-label { font-size: 12.5px; color: var(--ink-3); }
.step-h.active .step-h-label, .step-h.done .step-h-label { color: var(--ink); }
.step-h::after { content: ''; position: absolute; top: 17px; left: 62%; right: -38%; height: 1px; background: var(--line); }
.step-h:last-child::after { display: none; }
.step-h.done::after { background: var(--gold); }

/* ---------------------------------------------------------------- timeline */

.timeline { list-style: none; margin: 0; padding: 0; }
.tl-item { display: flex; gap: 14px; padding-bottom: 20px; position: relative; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ''; position: absolute; left: 9px; top: 24px; bottom: 0; width: 2px; background: var(--line); }
.tl-item:last-child::before { display: none; }
.tl-item.done::before { background: var(--gold); }
.tl-dot { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--bg); display: grid; place-items: center; }
.tl-dot::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-4); }
.tl-item.done .tl-dot { border-color: var(--gold); }
.tl-item.done .tl-dot::after { background: var(--gold-2); }
.tl-item.active .tl-dot { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-tint); }
.tl-item.active .tl-dot::after { background: var(--gold-bright); }
.tl-title { font-size: 14px; font-weight: 550; }
.tl-meta { font-size: 12px; color: var(--ink-4); margin-top: 2px; }

/* ---------------------------------------------------------------- tables */

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th {
    text-align: left;
    font-family: 'Geist Mono', monospace;
    font-size: 10.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-4);
    font-weight: 500;
    padding: 12px 18px;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}
.table td { padding: 15px 18px; font-size: 14px; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background 0.12s; }
.table tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
.table .td-strong { color: var(--ink); font-weight: 500; }
.table .td-mono { font-family: 'Geist Mono', monospace; }
.table .row-action { color: var(--ink-3); }
.table .row-action:hover { color: var(--gold-2); }

/* ---------------------------------------------------------------- kv */

.kv { display: flex; flex-direction: column; }
.kv-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.kv-row:last-child { border-bottom: none; }
.kv-label { font-size: 13.5px; color: var(--ink-3); }
.kv-value { font-size: 14px; color: var(--ink); font-weight: 500; text-align: right; }
.kv-value.mono { font-family: 'Geist Mono', monospace; }

/* ---------------------------------------------------------------- activity */

.activity { display: flex; flex-direction: column; }
.activity-item { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.activity-item:last-child { border-bottom: none; }
.act-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); flex: none; }
.act-icon svg { width: 18px; height: 18px; }
.act-icon.buy { color: var(--gold-2); background: var(--gold-tint); }
.act-icon.sell { color: var(--green); background: var(--green-tint); }
.act-icon.withdraw { color: var(--amber); background: var(--amber-tint); }
.act-main { min-width: 0; }
.act-title { font-size: 14px; font-weight: 500; color: var(--ink); }
.act-meta { font-size: 12px; color: var(--ink-4); }
.act-amount { margin-left: auto; text-align: right; }
.act-amount .amt { font-family: 'Geist Mono', monospace; font-size: 14px; color: var(--ink); }
.act-amount .sub { font-size: 12px; color: var(--ink-4); }

/* ---------------------------------------------------------------- alerts */

.alert {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: var(--surface);
    font-size: 13.5px;
    color: var(--ink-2);
    margin-bottom: 18px;
}
.alert svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.alert .alert-title { font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.alert.success { border-color: rgba(79, 195, 138, 0.3); background: var(--green-tint); color: #bfe9d3; }
.alert.success svg { color: var(--green); }
.alert.error { border-color: rgba(224, 80, 80, 0.3); background: var(--red-tint); color: #f2c3c3; }
.alert.error svg { color: var(--red); }
.alert.warning { border-color: rgba(230, 201, 114, 0.3); background: var(--amber-tint); color: #f0e2bd; }
.alert.warning svg { color: var(--amber); }
.alert.info { border-color: var(--line-2); }
.alert.info svg { color: var(--gold-2); }

/* ---------------------------------------------------------------- misc */

.progress { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--gold), var(--gold-bright)); }

.empty { text-align: center; padding: 54px 24px; }
.empty .empty-icon { width: 54px; height: 54px; margin: 0 auto 16px; border-radius: 15px; display: grid; place-items: center; background: var(--surface-2); color: var(--gold-2); }
.empty .empty-icon svg { width: 24px; height: 24px; }
.empty h3 { font-size: 18px; margin-bottom: 6px; }
.empty p { color: var(--ink-3); font-size: 14px; max-width: 420px; margin: 0 auto; }

.divider { height: 1px; background: var(--line); margin: 20px 0; border: none; }
.dot-sep { color: var(--ink-4); margin: 0 8px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { padding: 10px 14px; color: var(--ink-3); font-size: 14px; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); border-bottom-color: var(--gold-2); }

.wallet-box {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
}
.wallet-box .addr { font-family: 'Geist Mono', monospace; font-size: 13px; word-break: break-all; color: var(--ink); }

.qr { width: 168px; height: 168px; padding: 12px; border-radius: var(--radius); background: #fff; display: grid; place-items: center; }
.qr img, .qr canvas { width: 144px !important; height: 144px !important; }

.chart-wrap { position: relative; width: 100%; }
.chart-wrap svg { display: block; width: 100%; height: auto; }

.toast-stack { position: fixed; right: 22px; bottom: 22px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
    display: flex; align-items: center; gap: 10px;
    min-width: 240px; max-width: 360px;
    padding: 13px 15px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-2);
    background: var(--surface-2);
    box-shadow: var(--shadow);
    font-size: 13.5px;
    animation: toast-in 0.25s ease;
}
.toast.success { border-color: rgba(79, 195, 138, 0.4); }
.toast.error { border-color: rgba(224, 80, 80, 0.4); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.skeleton { border-radius: 8px; background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 37%, var(--surface-2) 63%); background-size: 400% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* ---------------------------------------------------------------- modal */

.modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(4, 5, 6, 0.68);
    backdrop-filter: blur(4px);
}
.modal.open { display: flex; }
.modal-panel {
    width: 100%;
    max-width: 460px;
    background: linear-gradient(180deg, var(--surface-2), var(--bg-soft));
    border: 1px solid var(--line-2);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 24px;
    animation: toast-in 0.2s ease;
}
.modal-title { font-size: 18px; margin-bottom: 6px; }
.modal-sub { color: var(--ink-3); font-size: 13.5px; margin-bottom: 18px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

.pagination { display: flex; justify-content: center; margin-top: 22px; }
.pagination-list { display: inline-flex; align-items: center; gap: 4px; }
.page-item {
    min-width: 34px; height: 34px;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--ink-2);
    font-family: 'Geist Mono', monospace;
    font-size: 13px;
}
a.page-item:hover { border-color: var(--line-2); color: var(--ink); }
.page-item.active { background: var(--gold-tint); border-color: var(--gold); color: var(--gold-3); }
.page-item.disabled { opacity: 0.4; }

.mobile-only { display: none; }
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(2px); z-index: 80; display: none; }

/* ---------------------------------------------------------------- guest shell */

.guest {
    position: relative; z-index: 1;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 40px 20px;
}
.guest-card {
    width: 100%;
    max-width: 440px;
    background: linear-gradient(180deg, var(--surface), var(--bg-soft));
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow);
}
.guest-head { text-align: center; margin-bottom: 28px; }
.guest-head .brand { justify-content: center; font-size: 26px; }
.guest-title { font-size: 23px; margin-top: 18px; }
.guest-sub { color: var(--ink-3); font-size: 14px; margin-top: 6px; }
.guest-foot { text-align: center; margin-top: 22px; color: var(--ink-3); font-size: 14px; }
.guest-aside { color: var(--ink-3); font-size: 13px; margin-top: 22px; text-align: center; }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1080px) {
    .shell { grid-template-columns: 1fr; }
    .sidebar {
        position: fixed;
        z-index: 90;
        width: var(--sidebar-w);
        transform: translateX(-100%);
        transition: transform 0.25s ease;
    }
    .shell.nav-open .sidebar { transform: none; }
    .shell.nav-open .scrim { display: block; }
    .mobile-only { display: inline-grid; }
    .topbar { padding: 0 20px; }
    .content { padding: 24px 20px 70px; }
    .split, .split-wide { grid-template-columns: 1fr; }
    .cols-3, .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
    .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
    .topbar-title { display: none; }
    .ticker .ticker-sym { display: none; }
    .user-chip .user-meta { display: none; }
    .page-head h1 { font-size: 24px; }
    .hero-value { font-size: 34px; }
    .stat .stat-value { font-size: 22px; }
    .guest-card { padding: 26px; }
    .hide-sm { display: none; }
    .content { padding: 20px 16px 64px; }
    .card { padding: 18px; }
    .card.flush .card-head, .card-body, .card-foot { padding-left: 18px; padding-right: 18px; }
    .table th, .table td { padding: 12px 14px; }
    .page-head { margin-bottom: 20px; }
    .row-between { flex-wrap: wrap; }
}

@media (max-width: 420px) {
    .cols-3, .cols-4 { grid-template-columns: 1fr; }
    .hero-value { font-size: 30px; }
    .segmented button { padding: 6px 10px; }
}

@media (min-width: 721px) {
    .show-sm { display: none; }
}
