/* ── Design tokens ─────────────────────────────────────────────────────────── */
:root {
    --bg:           #070708;
    --bg-subtle:    #0d0d10;
    --bg-card:      rgba(20, 20, 24, 0.82);
    --bg-hover:     rgba(255,255,255,0.065);
    --accent:       #00c853;
    --accent-dim:   rgba(0,200,83,0.10);
    --accent-border:rgba(0,200,83,0.25);
    --amber:        #f59e0b;
    --red:          #ef4444;
    --text:         #fafafa;
    --text-2:       #a1a1aa;
    --text-muted:   #52525b;
    --border:       rgba(255,255,255,0.105);
    --border-subtle:rgba(255,255,255,0.065);
    --nav-h:        60px;
    --radius:       8px;
    --radius-sm:    6px;
    --font:         'Inter', -apple-system, sans-serif;
}

/* ── Reset ──────────────────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100dvh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: var(--font); cursor: pointer; }

/* ── Auth gate ──────────────────────────────────────────────────────────────── */
.auth-main {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 36px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 28px 80px rgba(0,0,0,0.34);
}

.auth-logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}
.auth-logo span { color: var(--accent); }

.auth-subtitle {
    font-size: 14px;
    color: var(--text-2);
    margin-bottom: 28px;
    line-height: 1.5;
}

.auth-input {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 13px 14px;
    font-size: 15px;
    color: var(--text);
    font-family: 'SF Mono', Monaco, monospace;
    letter-spacing: 0.08em;
    outline: none;
    margin-bottom: 12px;
    transition: border-color 0.15s;
}
.auth-input:focus { border-color: var(--accent); }
.auth-input::placeholder { color: var(--text-muted); letter-spacing: 0; font-family: var(--font); }
.auth-input-email {
    font-family: var(--font);
    letter-spacing: 0;
}

.auth-help {
    min-height: 18px;
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-2);
}

.license-fallback {
    margin-top: 16px;
    color: var(--text-2);
    font-size: 13px;
}
.license-fallback summary {
    cursor: pointer;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.license-fallback[open] summary { color: var(--text-2); }

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    color: var(--text-muted);
    font-size: 12px;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.error-msg {
    color: var(--red);
    font-size: 13px;
    margin-top: 10px;
    display: none;
}

.payment-required {
    margin-top: 14px;
    padding: 16px;
    border: 1px solid rgba(245, 158, 11, 0.35);
    background: rgba(245, 158, 11, 0.08);
    border-radius: var(--radius);
}
.payment-required h2 {
    font-size: 16px;
    margin-bottom: 6px;
}
.payment-required p {
    color: var(--text-2);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 12px;
}

/* ── Buttons ─────────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    white-space: nowrap;
    width: 100%;
}
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { background: #00e676; }

.btn-ghost {
    background: transparent;
    color: var(--text-2);
    border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-hover); color: var(--text); }

.btn-sm {
    padding: 7px 14px;
    font-size: 13px;
    width: auto;
    border-radius: var(--radius-sm);
}

/* ── Nav ─────────────────────────────────────────────────────────────────────── */
#app-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: var(--nav-h);
    background: rgba(7,7,8,0.76);
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 max(18px, env(safe-area-inset-left)) 0 max(18px, env(safe-area-inset-right));
    gap: 12px;
}

.nav-logo {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    text-decoration: none;
    flex-shrink: 0;
}
.nav-logo span { color: var(--accent); }

.nav-tabs {
    display: flex;
    align-items: center;
    gap: 3px;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    background: rgba(255,255,255,0.045);
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    padding: 4px;
}
.nav-tabs::-webkit-scrollbar { display: none; }

.nav-tab {
    padding: 7px 12px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    border-radius: 999px;
    transition: color 0.15s, background 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.nav-icon { color: currentColor; font-weight: 700; font-size: 12px; }
.nav-tab:hover { color: var(--text-2); background: rgba(255,255,255,0.055); }
.nav-tab.active {
    color: var(--text);
    background: rgba(255,255,255,0.12);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06), 0 6px 18px rgba(0,0,0,0.24);
}

.bottom-nav {
    position: fixed;
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 120;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    padding: 7px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(7,7,8,0.88);
    backdrop-filter: blur(24px) saturate(145%);
    -webkit-backdrop-filter: blur(24px) saturate(145%);
    box-shadow: 0 18px 50px rgba(0,0,0,0.42);
}

.bottom-nav-tab {
    flex: 1;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    border-radius: 16px;
    padding: 8px 6px 7px;
    font-size: 11px;
    font-weight: 700;
    display: grid;
    gap: 3px;
    justify-items: center;
}
.bottom-nav-tab span { font-size: 15px; line-height: 1; }
.bottom-nav-tab.active {
    color: var(--accent);
    background: rgba(0,200,83,0.10);
    box-shadow: inset 0 0 0 1px rgba(0,200,83,0.18);
}

/* ── Demo banner ─────────────────────────────────────────────────────────────── */
.demo-banner {
    background: rgba(0,200,83,0.07);
    border-bottom: 1px solid var(--accent-border);
    padding: 9px 16px;
    text-align: center;
    font-size: 13px;
    color: var(--accent);
    padding-top: calc(var(--nav-h) + 9px);
}
.demo-banner-link { color: var(--accent); font-weight: 600; }

/* ── Panels ──────────────────────────────────────────────────────────────────── */
#app-panels main {
    padding-top: var(--nav-h);
    min-height: 100dvh;
    max-width: 1040px;
    margin: 0 auto;
    padding-left: clamp(16px, 4vw, 34px);
    padding-right: clamp(16px, 4vw, 34px);
    padding-bottom: 64px;
}

.panel { display: none; padding-top: 28px; }
.panel.active { display: block; }

/* ── PLAN panel ──────────────────────────────────────────────────────────────── */
.plan-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 12px;
}
.plan-page-header h2 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.plan-page-sub { font-size: 14px; color: var(--text-2); margin-top: 4px; }
.plan-goal-meta { font-size: 13px; color: var(--text-muted); margin-top: 3px; }

.plan-goal-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.plan-goal-btn {
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-2);
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.15s;
}
.plan-goal-btn:hover { border-color: var(--text-muted); }
.plan-goal-btn.active { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }

.plan-select {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: 14px;
    color: var(--text);
    font-family: var(--font);
    appearance: none;
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
}
.plan-select:focus { border-color: var(--accent); }

.week-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 16px;
}
.week-day {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 4px;
    text-align: center;
}
.week-day.today { border-color: var(--accent-border); }
.week-day.done { background: var(--accent-dim); border-color: var(--accent-border); }
.week-day.missed { opacity: 0.45; }
.week-day-name {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.week-day.done .week-day-name { color: var(--accent); }
.week-day-dot { font-size: 13px; color: var(--accent); min-height: 16px; line-height: 1; }

.today-drill-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}
.today-drill-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
}
.today-drill-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.today-drill-value { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.today-drill-pct { font-size: 22px; font-weight: 800; color: var(--accent); letter-spacing: -0.02em; }
.today-drill-acc { font-size: 12px; color: var(--text-2); margin-top: 8px; }

.plan-progress-track {
    height: 4px;
    background: var(--border);
    border-radius: 100px;
    overflow: hidden;
}
.plan-progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 100px;
    transition: width 0.4s;
}
.plan-week-stat { font-size: 13px; color: var(--text-2); }

/* ── ANALYZE panel ───────────────────────────────────────────────────────────── */
.analyze-empty {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 20px;
    text-align: center;
}
.analyze-empty-title { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.analyze-empty-sub {
    font-size: 13px;
    color: var(--text-2);
    margin-bottom: 20px;
    line-height: 1.65;
}
.analyze-actions { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.analyze-actions .btn { width: auto; min-width: 180px; }

.analyze-leaks { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.analyze-leak-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    cursor: pointer;
    transition: border-color 0.15s;
}
.analyze-leak-card:hover { border-color: var(--text-muted); }
.analyze-leak-header { display: flex; align-items: flex-start; justify-content: space-between; }
.analyze-leak-cat { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.analyze-leak-meta { font-size: 11px; color: var(--text-muted); }
.analyze-leak-badge { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.analyze-leak-priority { font-size: 11px; color: var(--text-muted); margin-top: 8px; }

.analyze-import-stub {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}
.analyze-import-count { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.analyze-import-sub { font-size: 13px; color: var(--text-2); }

.analyze-import-cta {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: border-color 0.15s;
    margin-top: 8px;
}
.analyze-import-cta:hover { border-color: var(--accent); }
.analyze-import-cta-info { flex: 1; }
.analyze-import-cta-title { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.analyze-import-cta-sub { font-size: 12px; color: var(--text-2); }

/* ── ANALYZE panel – stats grid ─────────────────────────────────────────────── */
.analyze-stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 8px;
}
.analyze-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 10px;
    text-align: center;
}
.analyze-stat-val { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 2px; }
.analyze-stat-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 4px; }
.analyze-stat-tag { font-size: 10px; font-weight: 500; }

.analyze-pots { display: flex; flex-direction: column; gap: 6px; }
.analyze-pot-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.analyze-pot-cards { display: flex; gap: 3px; }
.analyze-pot-board { display: flex; gap: 2px; flex: 1; }
.analyze-pot-size { font-size: 13px; font-weight: 700; flex-shrink: 0; }
.analyze-pot-row[onclick] { cursor: pointer; transition: border-color 0.15s; }
.analyze-pot-row[onclick]:hover { border-color: var(--accent); }

.real-hand-queue {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
}
.real-hand-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(180deg, rgba(0, 255, 126, 0.06), rgba(255, 255, 255, 0.015));
    border: 1px solid rgba(0, 255, 126, 0.22);
    border-radius: var(--radius);
    padding: 12px 14px;
}
.real-hand-main {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}
.real-hand-cards {
    display: flex;
    gap: 3px;
    flex-shrink: 0;
}
.real-hand-copy {
    min-width: 0;
}
.real-hand-title {
    font-size: 13px;
    font-weight: 750;
    margin-bottom: 2px;
}
.real-hand-tag {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin-left: 6px;
    padding: 2px 6px;
    border-radius: 100px;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 9px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.real-hand-tag.mistake { color: var(--red); border-color: rgba(239,68,68,0.3); background: rgba(239,68,68,0.1); }
.real-hand-tag.drill { color: var(--amber); border-color: rgba(245,158,11,0.3); background: rgba(245,158,11,0.1); }
.real-hand-tag.review { color: #60a5fa; border-color: rgba(96,165,250,0.3); background: rgba(96,165,250,0.1); }
.real-hand-tag.good { color: var(--accent); border-color: var(--accent-border); background: var(--accent-dim); }
.real-hand-meta {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.study-plan-panel {
    background: linear-gradient(180deg, rgba(0, 255, 126, 0.08), rgba(255, 255, 255, 0.015));
    border: 1px solid rgba(0, 255, 126, 0.26);
    border-radius: var(--radius);
    padding: 14px;
    margin: 18px 0 8px;
}
.study-plan-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}
.study-plan-sub {
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 4px;
}
.study-plan-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.study-plan-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 10px;
}
.study-plan-index {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--accent);
    color: #00150a;
    font-size: 12px;
    font-weight: 900;
}
.study-plan-copy { min-width: 0; }
.study-plan-title {
    font-size: 13px;
    font-weight: 750;
    margin-bottom: 2px;
}
.study-plan-detail {
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.45;
}
.import-leak-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 8px;
}
.import-leak-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 13px;
}
.import-leak-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}
.import-leak-title {
    font-size: 14px;
    font-weight: 750;
    margin-bottom: 3px;
}
.import-leak-meta {
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.45;
}
.import-leak-count {
    color: var(--accent);
    text-align: right;
    min-width: 74px;
}
.import-leak-count strong {
    display: block;
    font-size: 22px;
    line-height: 1;
    font-weight: 850;
}
.import-leak-count span {
    display: block;
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
}
.import-leak-analysis {
    margin-top: 10px;
}
.import-leak-analysis p {
    margin: 0 0 7px;
    color: var(--text-2);
    font-size: 12px;
    line-height: 1.5;
}
.import-leak-analysis p:last-child { margin-bottom: 0; }
.import-leak-metrics {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    margin-top: 12px;
}
.import-leak-metric {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 2px 10px;
    align-items: start;
    padding: 9px 10px;
    background: var(--bg);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
}
.import-leak-metric strong {
    grid-row: span 2;
    color: var(--accent);
    font-size: 15px;
    font-weight: 850;
    line-height: 1.25;
}
.import-leak-metric span {
    color: var(--text);
    font-size: 11px;
    font-weight: 800;
}
.import-leak-metric small {
    color: var(--text-muted);
    font-size: 10px;
    line-height: 1.4;
}
.import-leak-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0;
}
.import-leak-example {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--bg);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 5px 7px;
    color: var(--text-2);
}
.import-leak-example:hover { border-color: var(--accent); }
.import-leak-example .mini-card {
    width: 20px;
    height: 26px;
    font-size: 10px;
}
.import-leak-example span {
    font-size: 11px;
    font-weight: 700;
}
.import-leak-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.session-focus-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 8px;
}
.session-focus-card {
    text-align: left;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 13px 12px;
    color: var(--text);
    transition: border-color 0.15s, background 0.15s;
}
.session-focus-card:hover {
    border-color: var(--accent);
    background: rgba(0, 255, 126, 0.04);
}
.session-focus-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
    font-weight: 750;
    margin-bottom: 6px;
}
.session-focus-head strong {
    color: var(--accent);
    font-size: 16px;
}
.session-focus-reason {
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.45;
}

/* ── Session review ─────────────────────────────────────────────────────────── */
.review-session-list,
.review-hand-list,
.hand-street-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.review-session-row,
.review-hand-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 13px 14px;
    cursor: pointer;
    transition: border-color 0.15s;
}
.review-session-row:hover,
.review-hand-row:hover { border-color: var(--accent); }
.review-session-row.muted {
    cursor: default;
    opacity: 0.62;
}
.review-session-row.muted:hover { border-color: var(--border); }
.review-session-main,
.review-hand-info { flex: 1; min-width: 0; }
.review-session-name,
.review-hand-title {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.review-session-meta,
.review-hand-meta,
.review-subtitle,
.review-muted {
    font-size: 11px;
    color: var(--text-muted);
}
.review-session-action {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.review-toolbar {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}
.guided-toolbar-copy {
    flex: 1;
    min-width: 0;
}
.guided-progress {
    height: 6px;
    margin-top: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    overflow: hidden;
}
.guided-progress span {
    display: block;
    height: 100%;
    background: var(--accent);
    border-radius: inherit;
}
.review-title {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
}
.review-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.review-summary-card,
.hand-review-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: 0 14px 40px rgba(0,0,0,0.18);
}
.review-summary-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--accent);
}
.review-summary-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.review-hand-cards,
.hand-review-cards,
.hand-street-board {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-wrap: wrap;
}
.review-hand-tag {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 100px;
    padding: 4px 8px;
    border: 1px solid var(--border);
    color: var(--text-2);
}
.review-hand-tag.good { color: var(--accent); border-color: var(--accent-border); background: var(--accent-dim); }
.review-hand-tag.review { color: #60a5fa; border-color: rgba(96,165,250,0.28); background: rgba(96,165,250,0.10); }
.review-hand-tag.mistake { color: var(--red); border-color: rgba(239,68,68,0.28); background: rgba(239,68,68,0.10); }
.review-hand-tag.drill { color: var(--amber); border-color: rgba(245,158,11,0.28); background: rgba(245,158,11,0.10); }
.hand-review-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}
.hand-review-card { margin-bottom: 10px; }
.guided-review-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
    gap: 18px;
    align-items: start;
}
.guided-coach-card {
    border-color: rgba(0, 200, 83, 0.28);
}
.guided-coach-card h3 {
    margin: 0 0 9px;
    color: var(--text);
    font-size: 17px;
    line-height: 1.25;
}
.guided-coach-card p {
    margin: 0 0 9px;
    color: var(--text-2);
    font-size: 13px;
    line-height: 1.55;
}
.guided-coach-card p:last-child { margin-bottom: 0; }
.guided-step-list {
    display: grid;
    gap: 8px;
}
.guided-step {
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 10px;
    align-items: start;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 11px;
    opacity: 0.68;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.guided-step.active {
    opacity: 1;
    border-color: rgba(0, 200, 83, 0.24);
}
.guided-step-index {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid var(--accent-border);
    font-size: 12px;
    font-weight: 850;
}
.guided-step-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}
.guided-step-head strong {
    color: var(--accent);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.guided-step-head span {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-wrap: wrap;
    justify-content: flex-end;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
}
.guided-step-head .mini-card {
    width: 21px;
    height: 28px;
    font-size: 10px;
}
.guided-step p {
    margin: 0;
    color: var(--text-2);
    font-size: 12px;
    line-height: 1.45;
}
.guided-action-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.guided-action-row .btn[disabled] {
    opacity: 0.42;
    pointer-events: none;
}
.guided-queue-strip {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.guided-queue-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-2);
    padding: 6px 8px;
}
.guided-queue-chip.active,
.guided-queue-chip:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
}
.guided-queue-chip .mini-card {
    width: 20px;
    height: 27px;
    font-size: 10px;
}
.guided-queue-chip span {
    font-size: 11px;
    font-weight: 800;
}
.review-table-graphic {
    margin-bottom: 12px;
}
.review-felt {
    position: relative;
    min-height: 330px;
    border-radius: 999px;
    background:
        radial-gradient(circle at 50% 50%, rgba(38, 132, 77, 0.95), rgba(9, 86, 48, 0.98) 55%, #062b1c 100%);
    border: 16px solid #171717;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.08), 0 26px 68px rgba(0,0,0,0.32);
    overflow: hidden;
}
.review-felt::after {
    content: "";
    position: absolute;
    inset: 22px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.13);
    pointer-events: none;
}
.review-felt-center {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 51%;
    transform: translate(-50%, -50%);
    display: grid;
    justify-items: center;
    gap: 9px;
    width: min(82%, 420px);
}
.review-pot-pill {
    color: rgba(255,255,255,0.9);
    background: rgba(0,0,0,0.28);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 800;
}
.review-board-row,
.review-hero-cards {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
}
.review-hero-cards .mini-card {
    width: 44px;
    height: 58px;
    font-size: 17px;
    border-color: rgba(255,255,255,0.52);
    box-shadow: 0 8px 18px rgba(0,0,0,0.24);
}
.review-hero-caption,
.review-table-muted {
    color: rgba(255,255,255,0.78);
    font-size: 12px;
    font-weight: 800;
}
.review-table-seat {
    position: absolute;
    z-index: 4;
    min-width: 76px;
    max-width: 136px;
    display: grid;
    justify-items: center;
    gap: 2px;
    color: rgba(255,255,255,0.82);
    background: rgba(9, 9, 11, 0.72);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 999px;
    padding: 8px 12px;
    text-align: center;
}
.review-table-seat span {
    max-width: 94px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 800;
}
.review-table-seat.positioned {
    min-width: 88px;
    max-width: 128px;
    padding: 7px 10px;
}
.review-table-seat.positioned span {
    max-width: 104px;
}
.review-table-seat small {
    color: rgba(255,255,255,0.58);
    font-size: 10px;
    max-width: 108px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.review-table-seat b {
    position: absolute;
    right: -6px;
    top: -6px;
    width: 21px;
    height: 21px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111;
    background: #f8fafc;
    border-radius: 50%;
    font-size: 11px;
}
.review-table-seat.hero {
    color: var(--accent);
    border-color: rgba(0, 200, 83, 0.62);
    background: rgba(0, 48, 24, 0.82);
}
.review-table-seat.top { top: 16px; left: 50%; transform: translateX(-50%); }
.review-table-seat.upper-right { top: 28%; right: 18px; transform: translateY(-50%); }
.review-table-seat.lower-right { bottom: 20%; right: 34px; }
.review-table-seat.bottom { bottom: 16px; left: 50%; transform: translateX(-50%); }
.review-table-seat.lower-left { bottom: 20%; left: 34px; }
.review-table-seat.upper-left { top: 28%; left: 18px; transform: translateY(-50%); }
.decision-spotlight {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
    gap: 14px;
    align-items: center;
    margin-top: 14px;
    padding: 16px;
    background:
        linear-gradient(135deg, rgba(0, 200, 83, 0.12), rgba(255,255,255,0.025)),
        var(--bg-card);
    border: 1px solid rgba(0, 200, 83, 0.32);
    border-radius: var(--radius-lg);
}
.decision-kicker {
    color: var(--accent);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 7px;
}
.decision-title {
    color: var(--text);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.25;
}
.decision-copy {
    color: var(--text-2);
    font-size: 13px;
    line-height: 1.55;
    margin-top: 8px;
}
.decision-board {
    display: grid;
    gap: 9px;
    justify-items: end;
}
.decision-board span {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.decision-board div {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 5px;
}
.decision-board small {
    color: var(--text-muted);
    font-size: 12px;
}
.action-flow-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}
.action-flow-street {
    min-height: 168px;
    padding: 12px;
    background: rgba(255,255,255,0.025);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.action-flow-street.reached {
    background: var(--bg-card);
    border-color: rgba(255,255,255,0.12);
}
.action-flow-head {
    display: grid;
    gap: 8px;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.action-flow-head strong {
    color: var(--text);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.action-flow-head span {
    min-height: 25px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 11px;
}
.action-flow-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 260px;
    overflow: auto;
    padding-right: 2px;
}
.action-flow-pill {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(52px, 0.8fr) auto;
    gap: 8px;
    align-items: center;
    min-height: 31px;
    padding: 7px 9px;
    color: var(--text-2);
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 9px;
    font-size: 11px;
}
.action-flow-pill strong {
    overflow: hidden;
    color: var(--text);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.action-flow-pill span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.action-flow-pill small {
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 800;
    min-width: 0;
    overflow: hidden;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.action-flow-pill.hero {
    border-color: rgba(0, 200, 83, 0.38);
    box-shadow: inset 3px 0 0 var(--accent);
}
.action-flow-pill.aggressive {
    background: rgba(245, 158, 11, 0.09);
    border-color: rgba(245, 158, 11, 0.26);
}
.action-flow-pill.call {
    background: rgba(59, 130, 246, 0.09);
    border-color: rgba(59, 130, 246, 0.24);
}
.action-flow-pill.fold {
    background: rgba(148, 163, 184, 0.06);
}
.action-flow-pill.check {
    background: rgba(0, 200, 83, 0.07);
    border-color: rgba(0, 200, 83, 0.20);
}
.action-flow-empty {
    color: var(--text-muted);
    font-size: 12px;
    padding: 8px 0;
}
.hand-review-card-title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
}
.hand-raw-timeline {
    margin-top: 14px;
}
.hand-raw-timeline summary {
    color: var(--text-2);
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
}
.hand-raw-timeline .hand-street-list {
    margin-top: 12px;
}
.hand-review-copy {
    color: var(--text-2);
    font-size: 13px;
    line-height: 1.55;
}
.hand-context-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.45;
}
.hand-context-line span {
    color: var(--accent);
    font-weight: 700;
    white-space: nowrap;
}
.hand-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 10px;
}
.hand-tag {
    color: var(--text-2);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
}
.hand-tag.active,
.hand-tag:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-dim);
}
.hand-note-input {
    width: 100%;
    min-height: 92px;
    resize: vertical;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    padding: 11px 12px;
    font: inherit;
    font-size: 13px;
}
.hand-note-input:focus {
    outline: none;
    border-color: var(--accent);
}
.hand-note-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    color: var(--accent);
    font-size: 12px;
}
.hand-street-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 13px;
    opacity: 0.68;
}
.hand-street-card.active { opacity: 1; }
.hand-street-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.hand-street-name {
    font-size: 11px;
    font-weight: 800;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.hand-street-summary {
    color: var(--text-2);
    font-size: 12px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hand-action-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.hand-action {
    font-size: 12px;
    color: var(--text-2);
    background: var(--bg);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 7px 9px;
}
.hand-action.hero {
    color: var(--accent);
    border-color: var(--accent-border);
    background: var(--accent-dim);
}
.attention-card {
    border-color: rgba(0, 200, 83, 0.28);
}
.attention-list {
    display: grid;
    gap: 9px;
}
.attention-item {
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 10px;
    align-items: start;
    background: var(--bg);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 10px;
}
.attention-index {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid var(--accent-border);
    font-size: 12px;
    font-weight: 800;
}
.attention-item strong {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
}
.attention-item span {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.5;
}

@media (max-width: 520px) {
    .review-summary-grid,
    .session-focus-grid,
    .import-leak-list,
    .guided-review-layout,
    .hand-review-hero { grid-template-columns: 1fr; }
    .guided-action-row .btn { flex: 1 1 auto; }
    .review-felt {
        min-height: 270px;
        border-width: 10px;
    }
    .review-table-seat {
        min-width: 58px;
        padding: 6px 8px;
    }
    .review-table-seat span { max-width: 66px; font-size: 10px; }
    .review-table-seat small { display: none; }
    .decision-spotlight,
    .action-flow-grid { grid-template-columns: 1fr; }
    .decision-board { justify-items: start; }
    .decision-board div { justify-content: flex-start; }
    .action-flow-street { min-height: auto; }
    .review-hero-cards .mini-card {
        width: 36px;
        height: 50px;
        font-size: 14px;
    }
    .review-felt-center {
        width: 72%;
        gap: 6px;
    }
    .study-plan-item { grid-template-columns: auto 1fr; }
    .study-plan-item .btn { grid-column: 1 / -1; }
    .review-toolbar { flex-direction: column; }
}

/* Mini cards (reused for analyze pots) */
.mini-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px; height: 34px;
    background: #fff;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    flex-shrink: 0;
}
.mini-card.red { color: #dc2626; }
.mini-card.black { color: #111; }
.mini-card.hidden-card { background: var(--border); color: var(--text-muted); }

/* ── IMPORT panel ────────────────────────────────────────────────────────────── */
.upload-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 36px 20px;
    cursor: pointer;
    text-align: center;
    gap: 6px;
    transition: border-color 0.15s;
    margin-bottom: 4px;
}
.upload-drop:hover { border-color: var(--accent); }
.upload-icon-wrap { font-size: 26px; color: var(--text-muted); margin-bottom: 2px; }
.upload-title { font-size: 14px; font-weight: 600; }
.upload-sub { font-size: 12px; color: var(--text-2); }

.import-feedback { padding: 10px 0; font-size: 13px; color: var(--accent); }

.import-list { display: flex; flex-direction: column; gap: 6px; }
.import-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.15s;
}
.import-row[onclick] { cursor: pointer; }
.import-row[onclick]:hover { border-color: var(--accent); }
.import-row-info { flex: 1; }
.import-filename { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.import-meta { font-size: 11px; color: var(--text-muted); margin-bottom: 5px; }
.import-stats-row { display: flex; gap: 6px; flex-wrap: wrap; }
.import-stat {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid var(--accent-border);
    border-radius: 4px;
    padding: 2px 7px;
}

/* ── BANKROLL panel ──────────────────────────────────────────────────────────── */
.bankroll-overview { margin-bottom: 20px; }

.bankroll-dashboard-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 14px;
    margin-bottom: 4px;
}

.bankroll-chart-card,
.bankroll-recommendation {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}

.bankroll-chart {
    height: 180px;
    margin-top: 10px;
}

.bankroll-chart svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.bankroll-chart line {
    stroke: var(--border);
    stroke-width: 1;
}

.bankroll-chart polyline {
    fill: none;
    stroke: var(--accent);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bankroll-chart circle {
    fill: var(--accent);
    stroke: var(--bg-card);
    stroke-width: 1.5;
}

.stake-rec-main {
    font-size: 34px;
    line-height: 1;
    font-weight: 800;
    margin: 18px 0 10px;
}

.stake-rec-copy {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.55;
}

.stake-rec-rule {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

.bankroll-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bankroll-setup {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-field { display: flex; flex-direction: column; gap: 5px; }
.form-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.form-input {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: 15px;
    color: var(--text);
    font-family: var(--font);
    outline: none;
    transition: border-color 0.15s;
    width: 100%;
}
.form-input:focus { border-color: var(--accent); }

.onboarding-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.personal-plan-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 20px;
}

.personal-plan-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.personal-plan-title {
    font-size: 24px;
    line-height: 1.1;
    font-weight: 800;
    margin-top: 4px;
}

.personal-plan-meta {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 12px;
}

.personal-signal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
}

.personal-signal {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 10px;
    background: var(--bg);
}

.personal-signal-title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 3px;
}

.personal-signal-copy {
    color: var(--text-2);
    font-size: 12px;
    line-height: 1.45;
}

@media (max-width: 720px) {
    .onboarding-grid,
    .personal-signal-grid { grid-template-columns: 1fr; }
    .personal-plan-head { flex-direction: column; }
}

.bankroll-list { display: flex; flex-direction: column; gap: 6px; }
.bankroll-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    gap: 12px;
}
.bankroll-site { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.bankroll-date { font-size: 11px; color: var(--text-muted); }
.bankroll-pnl { font-size: 16px; font-weight: 700; flex-shrink: 0; }
.bankroll-imports { display: flex; flex-direction: column; gap: 8px; }
.bankroll-import-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.bankroll-import-row.needs-confirmation {
    border-color: rgba(245, 158, 11, 0.38);
    background: rgba(245, 158, 11, 0.06);
}
.bankroll-import-profit { display: flex; flex-direction: column; gap: 5px; }
.bankroll-confirm-row {
    display: flex;
    gap: 8px;
    align-items: center;
}
.bankroll-confirm-row .btn {
    width: auto;
    min-height: 30px;
    padding: 7px 10px;
}

@media (max-width: 720px) {
    .bankroll-dashboard-grid { grid-template-columns: 1fr; }
    .bankroll-chart { height: 150px; }
    .bankroll-setup { grid-template-columns: 1fr; }
    .bankroll-import-row { grid-template-columns: 1fr; }
    .drill-result-grid { grid-template-columns: 1fr; }
}

/* ── DRILL panel ─────────────────────────────────────────────────────────────── */
.drill-meta-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    min-height: 22px;
    margin-bottom: 12px;
}
.drill-score { font-size: 13px; color: var(--text-2); }
.drill-streak {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid var(--accent-border);
    border-radius: 999px;
    padding: 4px 9px;
}

.locked-spot-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--accent-dim);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    margin-bottom: 12px;
    gap: 12px;
}
.locked-spot-label { font-size: 13px; font-weight: 500; color: var(--accent); flex: 1; }

.filter-row {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding-bottom: 2px;
    margin-bottom: 20px;
}
.filter-row::-webkit-scrollbar { display: none; }

.filter-btn {
    padding: 6px 13px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.15s;
    flex-shrink: 0;
}
.filter-btn:hover { color: var(--text-2); border-color: var(--text-muted); }
.filter-btn.active { background: var(--accent); border-color: var(--accent); color: #000; font-weight: 600; }

.drill-context {
    text-align: center;
    margin: 0 auto 18px;
    max-width: 620px;
}
.drill-position-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid var(--accent-border);
    padding: 4px 10px;
    border-radius: 100px;
    margin-bottom: 10px;
}
.drill-title {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 6px;
}
.drill-meta-line { font-size: 13px; color: var(--text-2); }

.drill-hand-display {
    display: flex;
    gap: 14px;
    justify-content: center;
    align-items: center;
    min-height: 224px;
    width: min(100%, 680px);
    margin: 0 auto 22px;
    padding: 42px 24px;
    position: relative;
    overflow: hidden;
    border-radius: 999px;
    background:
        radial-gradient(circle at 50% 48%, rgba(42, 150, 88, 0.98), rgba(10, 93, 53, 0.98) 58%, #062d1d 100%);
    border: 14px solid #151515;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.08), 0 22px 52px rgba(0,0,0,0.28);
}
.drill-hand-display::before {
    content: "Vision Poker Drill";
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.68);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.drill-hand-display::after {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(255,255,255,0.13);
    border-radius: inherit;
    pointer-events: none;
}
.drill-hand-display .playing-card {
    position: relative;
    z-index: 2;
}

/* Playing cards */
.playing-card {
    width: 74px;
    height: 98px;
    background: #fff;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.45), 0 1px 4px rgba(0,0,0,0.3);
    user-select: none;
    flex-shrink: 0;
}
.card-rank { font-size: 28px; font-weight: 800; line-height: 1; }
.card-suit { font-size: 22px; line-height: 1; }
.suit-s .card-rank, .suit-s .card-suit,
.suit-c .card-rank, .suit-c .card-suit { color: #111; }
.suit-h .card-rank, .suit-h .card-suit,
.suit-d .card-rank, .suit-d .card-suit { color: #dc2626; }

.drill-action-row {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.action-btn {
    width: 100%;
    padding: 17px 18px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    text-align: left;
    transition: border-color 0.12s, background 0.12s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
}
.action-btn:hover:not(:disabled) { border-color: var(--text-muted); background: var(--bg-hover); }
.action-btn:active:not(:disabled) { transform: scale(0.99); }
.action-btn:disabled { cursor: default; opacity: 0.9; }
.action-btn.action-fold { border-left: 3px solid rgba(239, 68, 68, 0.7); }
.action-btn.action-call { border-left: 3px solid rgba(245, 158, 11, 0.7); }
.action-btn.action-raise,
.action-btn.action-bet,
.action-btn.action-3bet,
.action-btn.action-push { border-left: 3px solid rgba(34, 197, 94, 0.75); }
.action-btn.action-check { border-left: 3px solid rgba(100, 116, 139, 0.75); }
.action-btn .btn-freq {
    font-size: 14px;
    font-weight: 700;
    opacity: 0.85;
    margin-left: 8px;
}

/* ── Drill reveal ────────────────────────────────────────────────────────────── */
.drill-reveal { margin-top: 16px; }

.drill-verdict-row { margin-bottom: 14px; }
.verdict {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
}
.verdict-correct { background: rgba(0,200,83,0.12); color: var(--accent); border: 1px solid var(--accent-border); }
.verdict-ok      { background: rgba(245,158,11,0.10); color: var(--amber); border: 1px solid rgba(245,158,11,0.28); }
.verdict-miss    { background: rgba(239,68,68,0.10); color: #f87171; border: 1px solid rgba(239,68,68,0.25); }
.verdict-blunder { background: rgba(239,68,68,0.18); color: var(--red); border: 1px solid rgba(239,68,68,0.4); }

.drill-result-panel {
    background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 12px;
}
.drill-result-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 13px;
}
.drill-result-kicker {
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.drill-result-title {
    color: var(--text);
    font-size: 18px;
    font-weight: 800;
}
.drill-result-score {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 800;
    border-radius: 999px;
    padding: 6px 10px;
    white-space: nowrap;
}
.drill-result-score.good { color: var(--accent); background: var(--accent-dim); }
.drill-result-score.mixed { color: var(--amber); background: rgba(245,158,11,0.10); }
.drill-result-score.bad { color: var(--red); background: rgba(239,68,68,0.12); }
.drill-result-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}
.drill-result-grid > div {
    background: rgba(0,0,0,0.18);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-sm);
    padding: 10px;
}
.drill-result-grid span,
.drill-result-grid small {
    display: block;
    color: var(--text-muted);
    font-size: 11px;
}
.drill-result-grid strong {
    display: block;
    color: var(--text);
    font-size: 14px;
    margin: 3px 0;
}
.drill-result-note {
    color: var(--text-2);
    font-size: 13px;
    line-height: 1.55;
    border-top: 1px solid rgba(255,255,255,0.07);
    padding-top: 11px;
}

.drill-freq-table {
    display: flex;
    gap: 7px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.freq-col {
    flex: 1;
    min-width: 64px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px;
    text-align: center;
}
.freq-col.chosen { border-color: var(--text-2); }
.freq-action {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}
.freq-pct { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.freq-pts { font-size: 11px; margin-top: 3px; }

.drill-strategy-details {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
}
.drill-strategy-summary {
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-2);
    cursor: pointer;
    user-select: none;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.drill-strategy-summary::-webkit-details-marker { display: none; }
.drill-strategy-summary::after { content: '+'; color: var(--text-muted); font-size: 16px; }
.drill-strategy-details[open] .drill-strategy-summary::after { content: '−'; }
.drill-matrix-inner { padding: 10px 14px 16px; }

.drill-return-panel {
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid rgba(0, 200, 83, 0.28);
    border-radius: var(--radius);
    padding: 12px;
    margin-bottom: 12px;
}
.drill-return-copy {
    min-width: 0;
}
.drill-return-copy strong {
    display: block;
    font-size: 13px;
    margin-bottom: 3px;
}
.drill-return-copy span {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.45;
}
.drill-return-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.drill-next-btn {
    width: 100%;
    padding: 15px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.drill-next-btn:hover { background: var(--bg-hover); border-color: var(--text-muted); }

/* ── Hand matrix ─────────────────────────────────────────────────────────────── */
.matrix-legend-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: var(--text-2);
}
.legend-dot {
    width: 10px; height: 10px;
    border-radius: 2px;
    flex-shrink: 0;
}

.hand-matrix-wrap { width: 100%; overflow-x: auto; }
.hand-matrix {
    display: grid;
    grid-template-columns: 18px repeat(13, 1fr);
    gap: 2px;
    min-width: 280px;
}
.hm-axis {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 20px;
}
.hm-cell {
    height: 20px;
    border-radius: 2px;
    background: rgba(239,68,68,0.18);
}
.hm-cell.current { outline: 2px solid rgba(255,255,255,0.7); outline-offset: -1px; }

/* ── Subtabs (Drill panel) ───────────────────────────────────────────────────── */
.subtab-row {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}
.subtab-btn {
    padding: 9px 18px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.15s, border-color 0.15s;
}
.subtab-btn.active { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }
.subtab-btn:hover { color: var(--text-2); }
.subtab-panel { display: none; }
.subtab-panel.active { display: block; }

/* ── Shared section label ────────────────────────────────────────────────────── */
.section-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 10px;
}

/* ── Spots browser ───────────────────────────────────────────────────────────── */
.drill-category { margin-bottom: 28px; }
.drill-cat-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.drill-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
}
.drill-spot-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    font-family: var(--font);
}
.drill-spot-card:hover { border-color: var(--accent); background: var(--bg-hover); }

.position-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    background: var(--accent-dim);
    color: var(--accent);
    border-radius: 4px;
    padding: 2px 6px;
    margin-bottom: 6px;
}
.drill-spot-sub { font-size: 12px; color: var(--text-2); margin-bottom: 8px; line-height: 1.4; }
.drill-spot-stats { display: flex; flex-direction: column; gap: 2px; }
.stat-total { font-size: 11px; color: var(--text-muted); }
.stat-row { display: flex; gap: 4px; font-size: 11px; }
.stat-correct { color: var(--accent); }
.stat-wrong { color: var(--red); }

/* ── Glossary ────────────────────────────────────────────────────────────────── */
.glossary-section { margin-bottom: 28px; }
.glossary-section-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.glossary-grid { display: flex; flex-direction: column; gap: 6px; }
.glossary-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
}
.glossary-term { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.glossary-abbr { color: var(--text-muted); font-weight: 400; font-size: 12px; }
.glossary-def { font-size: 13px; color: var(--text-2); line-height: 1.55; }

/* ── Upgrade gate ────────────────────────────────────────────────────────────── */
.upgrade-gate {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
}
.upgrade-gate h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.upgrade-gate p { font-size: 13px; color: var(--text-2); line-height: 1.65; }

/* ── PROGRESS panel ──────────────────────────────────────────────────────────── */
.prog-overview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}
.prog-stat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 12px;
    text-align: center;
}
.prog-stat-val { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 4px; }
.prog-stat-label { font-size: 10px; color: var(--text-muted); }

.prog-cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 24px; }
.prog-cat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 13px;
    cursor: pointer;
    transition: border-color 0.15s;
}
.prog-cat-card:hover { border-color: var(--accent); }
.prog-cat-label { font-size: 12px; font-weight: 600; color: var(--text-2); margin-bottom: 10px; }
.prog-cat-bar-track { height: 3px; background: var(--border); border-radius: 100px; margin-bottom: 8px; overflow: hidden; }
.prog-cat-bar-fill { height: 100%; border-radius: 100px; transition: width 0.4s; }
.prog-cat-stats { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }

.prog-paths { display: flex; flex-direction: column; gap: 6px; }
.prog-path-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 13px 14px;
    cursor: pointer;
    transition: border-color 0.15s;
    gap: 14px;
}
.prog-path-row:hover { border-color: var(--accent); }
.prog-path-info { flex: 1; }
.prog-path-label { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.prog-path-meta { font-size: 12px; color: var(--text-muted); }
.prog-path-bar { font-size: 12px; letter-spacing: 2px; color: var(--accent); font-family: monospace; flex-shrink: 0; }

/* ── ACCOUNT panel ───────────────────────────────────────────────────────────── */
.account-profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 16px;
}

.account-profile-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.account-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-dim);
    border: 1px solid var(--accent-border);
    color: var(--accent);
    font-size: 17px;
    font-weight: 800;
    flex-shrink: 0;
}

.account-profile-name {
    font-size: 18px;
    line-height: 1.2;
    font-weight: 800;
}

.account-profile-handle {
    margin-top: 3px;
    font-size: 13px;
    color: var(--text-muted);
}

.account-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.account-profile-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

#profile-save-status {
    color: var(--accent);
    font-size: 13px;
}

.account-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 16px;
}
.account-access-alert {
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
    padding: 14px;
    background: rgba(245, 158, 11, 0.10);
    border: 1px solid rgba(245, 158, 11, 0.32);
    border-radius: var(--radius);
}
.account-access-alert strong {
    display: block;
    margin-bottom: 3px;
    color: var(--text);
    font-size: 14px;
}
.account-access-alert span {
    display: block;
    color: var(--text-2);
    font-size: 13px;
    line-height: 1.45;
}
.account-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    border-bottom: 1px solid var(--border-subtle);
    gap: 12px;
}
.account-row:last-child { border-bottom: none; }
.account-label { font-size: 12px; font-weight: 500; color: var(--text-muted); flex-shrink: 0; }
.account-value { font-size: 13px; font-weight: 500; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.account-value.mono { font-family: 'SF Mono', Monaco, monospace; font-size: 12px; letter-spacing: 0.06em; }

/* ── Loading / empty states ──────────────────────────────────────────────────── */
.loading { text-align: center; padding: 48px 20px; color: var(--text-muted); font-size: 14px; }
.empty-state { text-align: center; padding: 40px 20px; color: var(--text-muted); font-size: 14px; line-height: 1.65; }

/* ── Engagement sprint components ───────────────────────────────────────────── */
.onboarding-shell {
    background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(18px, 4vw, 28px);
    box-shadow: 0 24px 70px rgba(0,0,0,0.25);
}

.onboarding-progress {
    height: 5px;
    background: rgba(255,255,255,0.08);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 24px;
}
.onboarding-progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #8fffb7);
    border-radius: inherit;
    transition: width 0.25s ease-out;
}

.onboarding-step-card h3 {
    margin: 0 0 8px;
    font-size: clamp(24px, 5vw, 38px);
    line-height: 1.02;
    letter-spacing: -0.04em;
}
.onboarding-step-card p {
    max-width: 620px;
    margin: 0 0 20px;
    color: var(--text-muted);
    line-height: 1.6;
}
.onboarding-step-kicker {
    margin-bottom: 10px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.choice-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice-card {
    text-align: left;
    min-height: 132px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.035);
    color: var(--text);
    transition: border 0.15s, background 0.15s, transform 0.15s;
}
.choice-card:hover { transform: translateY(-1px); border-color: rgba(255,255,255,0.18); }
.choice-card.active {
    border-color: var(--accent-border);
    background: rgba(0,200,83,0.10);
    box-shadow: inset 0 0 0 1px rgba(0,200,83,0.10);
}
.choice-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
}
.choice-card span {
    display: block;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.45;
}
.choice-card.compact {
    min-height: 0;
    text-align: center;
    font-weight: 700;
}
.stakes-bridge {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: end;
    gap: 14px;
    margin-bottom: 18px;
}
.stakes-bridge label {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
}
.stakes-bridge .plan-select { margin-top: 8px; }
.stakes-arrow {
    color: var(--accent);
    font-size: 24px;
    font-weight: 800;
    padding-bottom: 9px;
}
.onboarding-grid.tight {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.onboarding-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
}
.onboarding-actions .btn[disabled] {
    opacity: 0.4;
    pointer-events: none;
}
.onboarding-teaser {
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    background: rgba(0,0,0,0.18);
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
}
.onboarding-teaser strong {
    display: block;
    color: var(--text);
    margin-bottom: 4px;
}

.unlock-preview {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1.05fr);
    gap: clamp(18px, 4vw, 34px);
    align-items: center;
    text-align: left;
    min-height: 420px;
}
.unlock-preview-copy { max-width: 440px; }
.unlock-teaser-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}
.unlock-teaser-row span {
    padding: 7px 10px;
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    color: var(--text-2);
    font-size: 12px;
}
.ghost-dashboard {
    position: relative;
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at 50% 0%, rgba(0,200,83,0.14), transparent 48%), rgba(255,255,255,0.035);
    filter: saturate(0.85);
}
.ghost-dashboard::after {
    content: "Import hands to unlock";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(7,7,8,0.46);
    backdrop-filter: blur(2px);
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: inherit;
}
.ghost-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.ghost-card {
    min-height: 96px;
    padding: 14px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    background: rgba(0,0,0,0.24);
}
.ghost-card span {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.ghost-card strong {
    color: var(--text);
    font-size: 22px;
}
.ghost-bars {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}
.ghost-bars i {
    display: block;
    height: 7px;
    border-radius: 999px;
    background: rgba(0,200,83,0.55);
}
.ghost-felt {
    height: 82px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(0,200,83,0.45), rgba(0,80,42,0.55));
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.ghost-felt b {
    width: 34px;
    height: 48px;
    border-radius: 6px;
    background: rgba(255,255,255,0.8);
}
.me-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}
.me-header h2 {
    margin: 2px 0 0;
    font-size: 24px;
    letter-spacing: -0.03em;
}

/* ── Mobile ──────────────────────────────────────────────────────────────────── */
@media (max-width: 380px) {
    .prog-overview { grid-template-columns: 1fr 1fr; }
    .prog-cat-grid { grid-template-columns: 1fr; }
    .playing-card { width: 64px; height: 86px; }
    .card-rank { font-size: 24px; }
    .card-suit { font-size: 18px; }
    .drill-freq-table { flex-direction: column; }
    .drill-return-panel {
        align-items: stretch;
        flex-direction: column;
    }
    .drill-return-actions .btn { flex: 1 1 auto; }
    .freq-col { min-width: unset; }
    .week-day-name { font-size: 8px; }
    .plan-goal-btn { padding: 8px 14px; font-size: 14px; }
}

@media (max-width: 720px) {
    #app-nav {
        justify-content: center;
        height: 52px;
    }
    #app-nav .nav-tabs { display: none; }
    #app-panels main {
        padding-top: 52px;
        padding-bottom: 108px;
    }
    .bottom-nav { display: flex !important; }
    .choice-grid,
    .choice-grid.two,
    .onboarding-grid.tight,
    .unlock-preview {
        grid-template-columns: 1fr;
    }
    .stakes-bridge {
        grid-template-columns: 1fr;
    }
    .stakes-arrow {
        padding: 0;
        transform: rotate(90deg);
        text-align: center;
    }
    .account-settings-grid { grid-template-columns: 1fr; }
    .account-profile-actions { align-items: stretch; flex-direction: column; }
    .account-access-alert {
        align-items: stretch;
        flex-direction: column;
    }
}
