:root{--bg:#0f172a;--panel:#111827;--muted:#94a3b8;--text:#f8fafc;--accent:#eab308;--good:#22c55e;--bad:#ef4444;--line:#263244;--white:#fff}*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at top,#172554,#0f172a 45%,#020617);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;line-height:1.5}.site-header{display:flex;justify-content:space-between;align-items:center;padding:18px 28px;border-bottom:1px solid var(--line);background:rgba(2,6,23,.78);backdrop-filter:blur(10px);position:sticky;top:0;z-index:3}.brand{font-weight:800;color:var(--white);font-size:22px;text-decoration:none}nav{display:flex;gap:14px;flex-wrap:wrap}nav a{color:#cbd5e1;text-decoration:none;font-weight:650}.container{width:min(1060px,92vw);margin:0 auto;padding:38px 0 70px}.hero{display:grid;grid-template-columns:1.25fr .75fr;gap:28px;align-items:center;padding:42px 0}.eyebrow{color:var(--accent);font-weight:800;letter-spacing:.08em;text-transform:uppercase;font-size:13px}h1{font-size:clamp(40px,7vw,72px);line-height:.95;margin:10px 0 18px}h2{font-size:32px;margin-top:36px}p{color:#dbeafe;font-size:18px}.muted{color:var(--muted)}.btnrow{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}.btn,button{background:var(--accent);border:0;color:#1f2937;font-weight:800;border-radius:12px;padding:13px 18px;text-decoration:none;cursor:pointer;font-size:16px}.btn.secondary,button.secondary{background:#1f2937;color:#e5e7eb;border:1px solid #334155}.panel{background:rgba(15,23,42,.86);border:1px solid #334155;border-radius:20px;padding:24px;box-shadow:0 20px 60px rgba(0,0,0,.25)}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.card{background:#111827;border:1px solid #334155;border-radius:18px;padding:20px}.value-table{width:100%;border-collapse:collapse;overflow:hidden;border-radius:14px}.value-table th,.value-table td{border-bottom:1px solid #334155;padding:12px;text-align:left}.value-table th{color:var(--accent)}.trainer-shell{display:grid;grid-template-columns:260px 1fr;gap:20px}.tabs{display:flex;flex-direction:column;gap:10px}.tab{background:#111827;color:#e5e7eb;border:1px solid #334155;text-align:left}.tab.active{background:var(--accent);color:#111827}.drill{display:none}.drill.active{display:block}.playing-card{width:150px;height:210px;border-radius:5px;background:#f8fafc;color:#0f172a;margin:20px auto;display:flex;align-items:center;justify-content:center;font-size:74px;font-weight:900;box-shadow:0 22px 40px rgba(0,0,0,.35)}.red{color:#dc2626}.choices{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}.feedback{text-align:center;font-size:20px;font-weight:800;min-height:34px}.good{color:var(--good)}.bad{color:var(--bad)}input{width:100%;padding:14px;border-radius:12px;border:1px solid #475569;background:#020617;color:#f8fafc;font-size:17px}label{display:block;margin:12px 0 7px;font-weight:700}.form{max-width:460px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.stat{background:#0b1220;border:1px solid #334155;border-radius:15px;padding:16px}.stat strong{display:block;font-size:28px;color:var(--accent)}.sequence{font-size:36px;text-align:center;min-height:60px}.site-footer{border-top:1px solid var(--line);padding:22px 28px;text-align:center;background:#020617}.site-footer p{font-size:14px;color:#94a3b8;margin:0}.notice{padding:14px;border-radius:12px;background:#172554;border:1px solid #2563eb}.error{padding:14px;border-radius:12px;background:#450a0a;border:1px solid #991b1b}@media(max-width:760px){.site-header{align-items:flex-start;gap:12px;flex-direction:column}.hero,.trainer-shell,.grid{grid-template-columns:1fr}.stats{grid-template-columns:repeat(2,1fr)}h1{font-size:46px}.playing-card{width:130px;height:184px}.tabs{flex-direction:row;overflow:auto}.tab{white-space:nowrap}}


/* Phase 1.1 UX updates */
.tap-feedback-wrap{position:relative;min-height:42px;margin:2px auto 8px;display:flex;align-items:center;justify-content:center;pointer-events:none}.tap-float{position:absolute;font-size:30px;font-weight:900;color:var(--accent);animation:tapRiseFade .65s ease-out forwards;text-shadow:0 8px 18px rgba(0,0,0,.35)}@keyframes tapRiseFade{0%{opacity:0;transform:translateY(14px) scale(.92)}20%{opacity:1;transform:translateY(0) scale(1)}100%{opacity:0;transform:translateY(-34px) scale(1.08)}}.control-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0 4px}.control-row label{margin:0}.control-row select{appearance:none;background:#020617;color:#f8fafc;border:1px solid #475569;border-radius:12px;padding:12px 40px 12px 14px;font-size:16px;font-weight:700;background-image:linear-gradient(45deg,transparent 50%,#f8fafc 50%),linear-gradient(135deg,#f8fafc 50%,transparent 50%);background-position:calc(100% - 18px) 18px,calc(100% - 12px) 18px;background-size:6px 6px,6px 6px;background-repeat:no-repeat}.learn-note{background:#0b1220;border:1px solid #334155;border-radius:18px;padding:20px;margin:22px 0}.learn-note p:last-child{margin-bottom:0}

/* Phase 2 multi-card trainer and speed metrics */
.mini-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:18px 0 4px}.mini-stats span{background:#0b1220;border:1px solid #334155;border-radius:12px;padding:10px 12px;color:#cbd5e1;font-size:14px}.mini-stats strong{display:block;color:var(--accent);font-size:18px;margin-top:2px}.multi-card-grid{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;align-items:center;max-width:420px;margin:18px auto 8px}.playing-card.mini-card{width:76px;height:106px;font-size:34px;border-radius:5px;margin:0;box-shadow:0 12px 22px rgba(0,0,0,.28);flex:0 0 auto}.playing-card.mini-card small{font-size:.58em}

.number-line.multi-count-selector{display:flex;flex-direction:column;align-items:center;gap:12px;max-width:760px;margin:6px auto 18px}
.mc-zero-wrap{position:relative;display:flex;justify-content:center;align-items:center;min-height:auto}


.mc-zero-button{min-width:58px}.mc-count-row{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;max-width:720px}.number-line button{padding:11px 6px;border-radius:10px;font-size:15px;min-width:52px;flex:0 0 52px}.number-line button:active,.choices button:active{transform:translateY(1px) scale(.985)}
@media(max-width:760px){.mini-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.multi-card-grid{gap:7px;max-width:288px}.playing-card.mini-card{width:52px;height:74px;font-size:24px;border-radius:5px}.number-line.multi-count-selector{gap:10px}.mc-count-row{max-width:188px;gap:6px}.number-line button{font-size:13px;padding:9px 3px;border-radius:9px;min-width:54px;flex-basis:54px}}
@media(max-width:390px){.playing-card.mini-card{width:46px;height:66px;font-size:21px}.multi-card-grid{max-width:258px}.mc-count-row{max-width:178px;gap:5px}.number-line button{min-width:52px;flex-basis:52px}.mini-stats span{font-size:13px;padding:9px}.mini-stats strong{font-size:16px}}


/* Phase 2.2 count value color system - applies to all trainers */
:root{--count-negative:#A85555;--count-positive:#5B8C62;--count-zero:#64748b}
button.value-negative,.choices button.value-negative,.number-line button.value-negative{background:rgba(168,85,85,.18)!important;color:#F1D6D6!important;border:1px solid rgba(168,85,85,.72)!important}
button.value-negative:hover,.choices button.value-negative:hover,.number-line button.value-negative:hover{background:rgba(168,85,85,.26)!important}
button.value-positive,.choices button.value-positive,.number-line button.value-positive{background:rgba(91,140,98,.20)!important;color:#DCEEDF!important;border:1px solid rgba(91,140,98,.74)!important}
button.value-positive:hover,.choices button.value-positive:hover,.number-line button.value-positive:hover{background:rgba(91,140,98,.30)!important}
button.value-zero,.choices button.value-zero,.number-line button.value-zero{background:#1f2937!important;color:#e5e7eb!important;border:1px solid #475569!important}
.tap-float.value-negative{color:#F1D6D6!important}
.tap-float.value-positive{color:#DCEEDF!important}
.tap-float.value-zero{color:#e5e7eb!important}


/* Phase 3.1 Hann Betting Trainer */
.bet-scenario{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0 10px}.bet-scenario-item{background:#0b1220;border:1px solid #334155;border-radius:16px;padding:16px;text-align:center}.bet-scenario-item span{display:block;color:#94a3b8;font-size:14px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;margin-bottom:6px}.bet-scenario-item strong{font-size:28px;color:#f8fafc}.bet-scenario-item strong.value-negative{color:#F1D6D6}.bet-scenario-item strong.value-positive{color:#DCEEDF}.bet-scenario-item strong.value-zero{color:#e5e7eb}.bet-unit-choices button{min-width:96px}.bet-explanation{min-height:58px;background:#0b1220;border:1px solid #334155;border-radius:14px;padding:14px;margin:10px 0 14px;color:#cbd5e1;opacity:1;transition:opacity .55s ease}.bet-explanation.dimmed{opacity:.35}.bet-explanation.dimmed:hover,.bet-explanation.dimmed:active,.bet-explanation.dimmed:focus-within{opacity:1}.bet-explanation:empty{display:none}
@media(max-width:760px){.bet-scenario{grid-template-columns:1fr}.bet-unit-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.bet-unit-choices button{min-width:0;width:100%}.bet-unit-choices button:last-child{grid-column:1 / -1}}

/* Phase 3.1.2 betting trainer refinements */
.learn-link{display:inline-block;color:#fde68a;text-decoration:none;font-weight:800;border-bottom:1px solid rgba(253,230,138,.45);font-size:15px}.learn-link:hover{border-bottom-color:#fde68a}.bet-scenario{transition:opacity .35s ease,filter .35s ease}.bet-scenario.answered{opacity:.32;filter:grayscale(.45)}


/* Phase 3.1.3 Learn modal */
body.modal-open{overflow:hidden}.learn-modal{display:none;position:fixed;inset:0;z-index:50}.learn-modal.open{display:block}.learn-modal-backdrop{position:absolute;inset:0;background:rgba(2,6,23,.72);backdrop-filter:blur(6px)}.learn-modal-panel{position:relative;width:min(820px,92vw);max-height:82vh;margin:8vh auto 0;background:rgba(15,23,42,.98);border:1px solid #334155;border-radius:20px;box-shadow:0 30px 90px rgba(0,0,0,.55);overflow:auto;padding:22px}.learn-modal-close{position:sticky;top:0;float:right;z-index:2;width:42px;height:42px;border-radius:999px;padding:0;font-size:28px;line-height:1;background:#1f2937!important;color:#e5e7eb!important;border:1px solid #475569!important}.learn-modal-content .learn-note{margin:0;border:0;background:transparent;padding:0}.learn-modal-content h2{margin-top:0;padding-right:54px}.learn-modal-content p{font-size:17px}.learn-modal-content .value-table{margin-top:12px}@media(max-width:760px){.learn-modal-panel{width:94vw;max-height:86vh;margin:6vh auto 0;padding:18px}.learn-modal-content p{font-size:16px}.learn-modal-close{width:38px;height:38px;font-size:26px}}


/* Phase 3.2 Playing Decision Trainer */
.play-scenario{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0 10px;transition:opacity .35s ease,filter .35s ease}.play-scenario.answered{opacity:.32;filter:grayscale(.45)}.play-scenario-item{background:#0b1220;border:1px solid #334155;border-radius:16px;padding:16px;text-align:center}.play-scenario-item span{display:block;color:#94a3b8;font-size:14px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;margin-bottom:6px}.play-scenario-item strong{font-size:28px;color:#f8fafc}.play-scenario-item strong.value-negative{color:#F1D6D6}.play-scenario-item strong.value-positive{color:#DCEEDF}.play-scenario-item strong.value-zero{color:#e5e7eb}.play-choice-buttons button{min-width:112px}.play-explanation{min-height:70px;background:#0b1220;border:1px solid #334155;border-radius:14px;padding:14px;margin:10px 0 14px;color:#cbd5e1;opacity:1;transition:opacity .55s ease}.play-explanation.dimmed{opacity:.35}.play-explanation.dimmed:hover,.play-explanation.dimmed:active,.play-explanation.dimmed:focus-within{opacity:1}.play-explanation:empty{display:none}.play-explanation em{color:#94a3b8;font-size:14px}
@media(max-width:760px){.play-scenario{grid-template-columns:1fr}.play-choice-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.play-choice-buttons button{min-width:0;width:100%}}

/* Phase 3.2.1 Playing Decisions card visuals and persistent feedback */
.play-scenario .play-count-item{display:flex;flex-direction:column;justify-content:center;min-height:150px}.pd-card-row{display:flex;justify-content:center;align-items:center;gap:8px;min-height:92px;margin:8px 0 6px}.pd-card-row.dealer-row{position:relative}.playing-card.decision-card{width:58px;height:82px;font-size:25px;border-radius:5px;margin:0;box-shadow:0 10px 18px rgba(0,0,0,.25)}.playing-card.decision-card small{font-size:.56em}.playing-card.card-back{background:linear-gradient(135deg,#1e3a8a,#0f172a);border:2px solid #e5e7eb;color:transparent;position:relative;overflow:hidden}.playing-card.card-back:before{content:"";position:absolute;inset:8px;border:2px solid rgba(255,255,255,.72);border-radius:7px}.playing-card.card-back:after{content:"";position:absolute;inset:17px;background:repeating-linear-gradient(45deg,rgba(255,255,255,.28) 0 4px,rgba(255,255,255,.08) 4px 8px);border-radius:4px}.feedback.dimmed{opacity:.35;transition:opacity .55s ease}.feedback.dimmed:hover,.feedback.dimmed:active{opacity:1}
@media(max-width:760px){.play-scenario .play-count-item{min-height:auto}.pd-card-row{min-height:82px}.playing-card.decision-card{width:54px;height:76px;font-size:23px}}
.pd-card-row.dealer-row .decision-card:first-child{position:relative;z-index:2}.pd-card-row.dealer-row .card-back{margin-left:-34px;transform:translate(13px,-5px);z-index:1}

/* Phase 3.2.2 Playing Decisions deck context and card readability */
.play-count-item em{display:block;color:#94a3b8;font-size:14px;font-style:normal;font-weight:700;margin-top:6px;text-transform:none;letter-spacing:0}
.playing-card.decision-card{width:68px;height:94px;font-size:31px;display:flex;flex-direction:column;gap:2px;line-height:1;align-items:center;justify-content:center}
.playing-card.decision-card .card-rank{display:block;font-size:1em;font-weight:950;line-height:.95}
.playing-card.decision-card .card-suit{display:block;font-size:.82em;font-weight:950;line-height:.9;margin-top:3px}
.playing-card.decision-card.suit-red{color:#dc2626}
.playing-card.decision-card.suit-black{color:#111827}
.playing-card.decision-card.card-back{color:transparent}
@media(max-width:760px){.playing-card.decision-card{width:62px;height:86px;font-size:29px}.play-count-item em{font-size:13px}}


/* Phase 3.3 Insurance Trainer */
.insurance-scenario{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0 10px;transition:opacity .35s ease,filter .35s ease}.insurance-scenario.answered{opacity:.32;filter:grayscale(.45)}.insurance-scenario-item{background:#0b1220;border:1px solid #334155;border-radius:16px;padding:16px;text-align:center}.insurance-scenario-item span{display:block;color:#94a3b8;font-size:14px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;margin-bottom:6px}.insurance-scenario-item strong{font-size:28px;color:#f8fafc}.insurance-scenario-item strong.value-negative{color:#F1D6D6}.insurance-scenario-item strong.value-positive{color:#DCEEDF}.insurance-scenario-item strong.value-zero{color:#e5e7eb}.insurance-count-item{display:flex;flex-direction:column;justify-content:center;min-height:150px}.insurance-count-item em{display:block;color:#94a3b8;font-size:14px;font-style:normal;font-weight:700;margin-top:6px;text-transform:none;letter-spacing:0}.insurance-choice-buttons button{min-width:128px}.insurance-explanation{min-height:70px;background:#0b1220;border:1px solid #334155;border-radius:14px;padding:14px;margin:10px 0 14px;color:#cbd5e1;opacity:1;transition:opacity .55s ease}.insurance-explanation.dimmed{opacity:.35}.insurance-explanation.dimmed:hover,.insurance-explanation.dimmed:active,.insurance-explanation.dimmed:focus-within{opacity:1}.insurance-explanation:empty{display:none}.insurance-explanation em{color:#94a3b8;font-size:14px}
@media(max-width:760px){.insurance-scenario{grid-template-columns:1fr}.insurance-count-item{min-height:auto}.insurance-choice-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.insurance-choice-buttons button{min-width:0;width:100%}}

/* Phase 3.3.1: restore suit/rank color inside scenario cards.
   Scenario label rules target span elements, so these direct child rules must win. */
.playing-card.decision-card.suit-red .card-rank,
.playing-card.decision-card.suit-red .card-suit{
  color:#dc2626!important;
}
.playing-card.decision-card.suit-black .card-rank,
.playing-card.decision-card.suit-black .card-suit{
  color:#111827!important;
}
.playing-card.decision-card.card-back .card-rank,
.playing-card.decision-card.card-back .card-suit{
  color:transparent!important;
}

/* Phase 3.5 Full Count Challenge */
.full-count-status{background:#0b1220;border:1px solid #334155;border-radius:14px;padding:12px 14px;margin:16px 0 10px;color:#cbd5e1;font-weight:800;text-align:center}.full-count-grid{min-height:116px}.full-count-done{color:#fde68a;font-weight:900;font-size:28px;text-align:center;padding:28px 0}.full-count-explanation{min-height:70px;background:#0b1220;border:1px solid #334155;border-radius:14px;padding:14px;margin:10px 0 14px;color:#cbd5e1}.full-count-explanation:empty{display:none}.full-count-explanation em{color:#94a3b8;font-size:14px}
@media(max-width:760px){.full-count-grid{min-height:84px}.full-count-done{font-size:24px;padding:20px 0}}


/* Phase 4.1 Table Count Simulator */
.table-count-status{background:#0b1220;border:1px solid #334155;border-radius:14px;padding:12px 14px;margin:14px 0;color:#cbd5e1;font-weight:700;text-align:center}.blackjack-table{background:radial-gradient(circle at top,#17335f,#071020 70%);border:1px solid #334155;border-radius:22px;padding:18px;margin:18px 0 14px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.03),0 18px 45px rgba(0,0,0,.22)}.tc-dealer-zone{text-align:center;margin-bottom:20px}.tc-player-zone{display:flex;flex-direction:row-reverse;flex-wrap:wrap;justify-content:center;gap:14px}.tc-seat{background:rgba(15,23,42,.72);border:1px solid #334155;border-radius:16px;padding:12px;text-align:center;min-height:132px;flex:1 1 145px;max-width:180px}.tc-seat-label{color:#bfdbfe;font-size:13px;font-weight:900;text-transform:uppercase;letter-spacing:.06em;margin-bottom:8px}.tc-hand{display:flex;justify-content:center;align-items:center;gap:6px;min-height:92px}.playing-card.decision-card.tc-card{width:54px;height:76px;font-size:25px;margin:0}.table-count-explanation{min-height:70px;background:#0b1220;border:1px solid #334155;border-radius:14px;padding:14px;margin:10px 0 14px;color:#cbd5e1;opacity:1;transition:opacity .55s ease}.table-count-explanation.dimmed{opacity:.35}.table-count-explanation.dimmed:hover,.table-count-explanation.dimmed:active,.table-count-explanation.dimmed:focus-within{opacity:1}.table-count-explanation:empty{display:none}.tc-card-breakdown{display:block;color:#94a3b8;font-size:13px;line-height:1.45;margin-top:8px}
@media(max-width:900px){.tc-seat{flex-basis:130px;max-width:165px}}
@media(max-width:760px){.blackjack-table{padding:12px}.tc-player-zone{gap:10px;justify-content:center}.tc-seat{min-height:104px;padding:10px;flex:1 1 128px;max-width:155px}.tc-hand{min-height:78px}.playing-card.decision-card.tc-card{width:46px;height:64px;font-size:22px}.tc-dealer-zone{margin-bottom:14px}}

/* Phase 4.2 round flow simulator refinements */
.hidden{display:none!important}
button:disabled,select:disabled{opacity:.55;cursor:not-allowed}
.tc-hand{flex-wrap:wrap}
.tc-seat{transition:opacity .25s ease,transform .25s ease}

/* Phase 4.2.1: highlight cards added after the initial deal */
.playing-card.tc-card.tc-new-card{
  animation:tcNewCardGlow 2s ease-out forwards;
  box-shadow:0 0 0 2px rgba(234,179,8,.72),0 0 18px rgba(234,179,8,.38),0 12px 24px rgba(0,0,0,.28)!important;
}
@keyframes tcNewCardGlow{
  0%{transform:translateY(-3px) scale(1.03);filter:brightness(1.15)}
  18%{transform:translateY(0) scale(1);filter:brightness(1.08)}
  70%{box-shadow:0 0 0 2px rgba(234,179,8,.62),0 0 16px rgba(234,179,8,.28),0 12px 24px rgba(0,0,0,.28)}
  100%{box-shadow:0 12px 22px rgba(0,0,0,.28);filter:brightness(1)}
}

/* Phase 4.2.2: optional count picker for mobile-friendly count entry */
.count-picker{margin:10px 0 8px;background:rgba(11,18,32,.62);border:1px solid #263244;border-radius:14px;padding:10px;max-width:100%;overflow:hidden;contain:layout paint}
.count-picker-signs{display:flex;gap:8px;align-items:center;margin-bottom:10px}
.count-picker-signs button{min-width:54px;padding:10px 14px;border-radius:11px;font-size:18px;line-height:1}
.count-picker-signs button.active{outline:2px solid rgba(248,250,252,.52);outline-offset:2px}
.count-picker-rail{display:flex;gap:8px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;-ms-overflow-style:none;touch-action:pan-x;cursor:grab;padding:3px 1px 6px;width:100%;max-width:100%;user-select:none;overscroll-behavior-x:contain}
.count-picker-rail::-webkit-scrollbar{display:none}
.count-picker-rail.dragging{cursor:grabbing}
.count-picker-rail button{flex:0 0 48px;min-width:48px;padding:10px 0;border-radius:10px;background:#1f2937;color:#e5e7eb;border:1px solid #475569;font-size:15px}
.count-picker-rail.is-disabled{opacity:.42;filter:grayscale(.45)}
.count-picker-rail.is-disabled button,.count-picker-rail button:disabled{cursor:not-allowed}
.count-picker.is-negative .count-picker-rail button{background:rgba(168,85,85,.18)!important;color:#F1D6D6!important;border:1px solid rgba(168,85,85,.72)!important}
.count-picker.is-positive .count-picker-rail button{background:rgba(91,140,98,.20)!important;color:#DCEEDF!important;border:1px solid rgba(91,140,98,.74)!important}
.count-picker-rail button.active{outline:2px solid rgba(248,250,252,.58);outline-offset:1px;transform:translateY(-1px)}
@media(max-width:760px){.count-picker{padding:9px}.count-picker-signs button{min-width:50px}.count-picker-rail button{flex-basis:46px;min-width:46px}}


/* Phase 4.2.6 count picker containment/layout fix */
.trainer-shell,.trainer-shell .panel,.drill{min-width:0}
.count-picker{width:100%;max-width:100%;min-width:0;overflow:hidden;box-sizing:border-box}
.count-picker-rail{width:100%;max-width:100%;min-width:0;display:flex;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;white-space:nowrap}
.count-picker-rail button{flex:0 0 48px}
.count-picker + input{margin-top:10px}
@media(max-width:760px){.count-picker-rail button{flex-basis:46px}}

/* Phase 4.2.7 picker rollout + inline full-count result */
.answer-check-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:14px}.answer-check-row .inline-feedback{margin:0;text-align:left;min-height:auto;display:flex;align-items:center}.count-picker{width:100%;max-width:100%;min-width:0;overflow:hidden;box-sizing:border-box}.count-picker-rail{width:100%;max-width:100%;min-width:0;display:flex;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;white-space:nowrap}.count-picker-rail button{flex:0 0 48px;min-width:48px}@media(max-width:760px){.answer-check-row{gap:10px}.answer-check-row .inline-feedback{font-size:18px}.count-picker-rail button{flex-basis:46px;min-width:46px}}


/* Phase 4.2.8 inline Correct/Incorrect feedback beside Check Answer */
.answer-check-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:14px}
.answer-check-row .inline-feedback{margin:0;text-align:left;min-height:auto;display:inline-flex;align-items:center;justify-content:flex-start}
@media(max-width:760px){.answer-check-row{gap:10px}.answer-check-row .inline-feedback{font-size:18px}}

/* Phase 4.3 table betting integration */
.table-bet-panel{margin-top:18px;background:#0b1220;border:1px solid #334155;border-radius:16px;padding:16px;overflow:hidden}.table-bet-panel.hidden{display:none}.table-bet-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px}.table-bet-head h3{margin:0 0 4px;font-size:22px}.table-bet-head p{margin:0;font-size:14px}.table-bet-scenario{margin:12px 0}.table-bet-panel .bet-unit-choices{margin-top:12px}.table-bet-panel .answer-check-row{margin-top:10px}.table-bet-panel .table-count-explanation{margin-top:10px}
@media(max-width:760px){.table-bet-head{align-items:flex-start;flex-direction:column}.table-bet-head .secondary{width:auto}.table-bet-panel{padding:14px}}

/* Phase 4.3.1 continuous shoe flow */
.tc-shoe-status{font-size:14px;color:#cbd5e1;background:#0b1220;border:1px solid #334155;border-radius:12px;padding:10px 12px;margin-top:8px}
#tc-next-round.hidden{display:none!important}

/* Phase 4.3.2 table simulator UX refinements */
.tc-action-row{justify-content:center;margin:14px 0 12px}.tc-view-tabs{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin:12px 0 8px}.tc-view-tabs.hidden,.tc-view-panel.hidden{display:none!important}.tc-view-tabs button.active{background:var(--accent);color:#111827;border-color:var(--accent)}.tc-view-panel .blackjack-table{margin-top:8px}.tc-view-panel .table-bet-panel{margin:8px 0 14px}
@media(max-width:760px){.tc-action-row{align-items:stretch}.tc-action-row button{flex:1 1 160px}.tc-view-tabs button{flex:1 1 120px}}


/* Phase 4.3.4 table simulator answer/action row refinement */
.tc-count-submit-row{align-items:center;gap:10px;flex-wrap:wrap}
.tc-count-submit-row #tc-answer{width:104px;max-width:104px;flex:0 0 104px;text-align:center}
.tc-count-submit-row .tc-view-tabs{display:inline-flex;align-items:center;gap:8px;margin:0;flex-wrap:wrap}
.tc-count-submit-row .tc-view-tabs.hidden{display:none!important}
.tc-count-submit-row .tc-view-tabs button{white-space:nowrap}
.tc-count-submit-row .inline-feedback{margin-left:2px}
.tc-action-row{justify-content:center;margin:14px 0 12px}
#tc-check:disabled{opacity:.48;cursor:not-allowed;filter:grayscale(.35)}
@media(max-width:760px){.tc-count-submit-row #tc-answer{width:92px;max-width:92px;flex-basis:92px}.tc-count-submit-row{gap:8px}.tc-count-submit-row .tc-view-tabs{gap:6px}.tc-count-submit-row button{padding:11px 12px}}

/* Phase 4.3.5 table UI refinements */
.count-picker.is-locked{opacity:.55;filter:grayscale(.35)}
.count-picker.is-locked button,
.count-picker button:disabled{cursor:not-allowed}
.count-picker.is-locked .count-picker-rail{cursor:not-allowed}
#tc-answer:disabled{opacity:.55;cursor:not-allowed;filter:grayscale(.35)}
.tc-next-round-bet-row{justify-content:center;margin-top:14px}
.table-bet-panel #tc-next-round{margin:0 auto}

/* Phase 4.3.6 table shoe/reset UX refinements */
.tc-action-row #tc-deal.hidden,.tc-start-over-row .hidden,#tc-new-shoe-end.hidden{display:none!important}
.tc-start-over-row{justify-content:center;margin-top:18px}
.table-bet-panel.needs-action{border-color:rgba(234,179,8,.72);box-shadow:0 0 0 1px rgba(234,179,8,.28),0 0 24px rgba(234,179,8,.16)}


/* Phase 4.3.7 Table Count UX refinements */
#tc-check:not(:disabled){
  box-shadow:0 0 0 1px rgba(234,179,8,.32),0 0 18px rgba(234,179,8,.16);
}
#tc-check:disabled{
  box-shadow:none!important;
}
#tc-next-round:not(.hidden){
  border-color:rgba(234,179,8,.72)!important;
  box-shadow:0 0 0 1px rgba(234,179,8,.28),0 0 22px rgba(234,179,8,.18);
}
#tc-view-toggle.hidden{display:none!important}
#tc-view-toggle{white-space:nowrap}
#tc-answer::placeholder{color:#94a3b8;opacity:.85}


/* Phase 4.3.8 Table action glow + response row refinement */
#tc-continue:not(.hidden),
#tc-view-toggle.needs-action:not(.hidden){
  border-color:rgba(234,179,8,.72)!important;
  box-shadow:0 0 0 1px rgba(234,179,8,.28),0 0 22px rgba(234,179,8,.18);
}
.tc-response-row{
  display:block;
  width:100%;
  text-align:left;
  margin:8px 0 0;
  min-height:30px;
}
.tc-response-row:empty{
  margin-top:0;
}
@media(max-width:760px){
  .tc-response-row{
    text-align:left;
    margin-top:8px;
  }
}

/* Phase 4.3.10 count-input UX normalization */
.count-submit-row{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin-top:10px;
}
.count-answer-input,
.count-submit-row input,
.tc-count-submit-row input{
  width:110px!important;
  max-width:110px!important;
  text-align:center;
  font-weight:800;
  font-size:18px;
}
.count-check-button.needs-action:not(:disabled),
#rc-check.needs-action:not(:disabled),
#dc-check.needs-action:not(:disabled),
#fc-check.needs-action:not(:disabled),
#tc-check.needs-action:not(:disabled){
  border-color:rgba(234,179,8,.72)!important;
  box-shadow:0 0 0 1px rgba(234,179,8,.28),0 0 22px rgba(234,179,8,.18);
}
.response-row{
  display:block;
  width:100%;
  text-align:left;
  margin:8px 0 0;
  min-height:30px;
}
.response-row:empty{margin-top:0}
.count-picker.is-locked,
input:disabled{
  opacity:.55;
}
button:disabled{
  opacity:.55;
  cursor:not-allowed;
  box-shadow:none!important;
}
@media(max-width:760px){
  .count-submit-row{gap:10px}
  .count-answer-input,
  .count-submit-row input,
  .tc-count-submit-row input{
    width:96px!important;
    max-width:96px!important;
  }
  .count-submit-row button{flex:1 1 150px}
}

/* Phase 4.4 table playing decision integration */
.tc-decision-panel{margin:14px 0;background:#0b1220;border:1px solid #334155;border-radius:16px;padding:16px;overflow:hidden}
.tc-decision-panel.hidden{display:none!important}
.table-decision-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px}
.table-decision-head h3{margin:0 0 4px;font-size:22px}
.table-decision-head p{margin:0;font-size:14px}
.tc-decision-choices{margin-top:12px}
.tc-decision-choices button.needs-action{box-shadow:0 0 0 1px rgba(234,179,8,.32),0 0 18px rgba(234,179,8,.14)}
.tc-decision-panel .table-count-explanation{margin-top:10px}
@media(max-width:760px){.table-decision-head{align-items:flex-start;flex-direction:column}.tc-decision-panel{padding:14px}}
/* Phase 4.4 feedback pass: selectable user seats and persistent decision feedback */
.tc-play-seats-row{align-items:center;margin-top:4px}
.tc-play-seats-label{font-weight:900;color:#bfdbfe;text-transform:uppercase;letter-spacing:.04em;font-size:13px}
.tc-play-seats-row label{display:inline-flex;align-items:center;gap:6px;background:#0b1220;border:1px solid #334155;border-radius:10px;padding:8px 10px;font-weight:900;color:#f8fafc}
.tc-play-seats-row label.is-disabled{opacity:.38}
.tc-play-seats-row input{width:auto;margin:0;accent-color:#eab308}
.tc-last-decision{font-size:14px;margin-top:8px}
.tc-last-decision.hidden{display:none!important}
.tc-last-decision.dimmed{opacity:.5}

/* Phase 4.4 tabbed table interaction panel */
.tc-interaction-panel{background:rgba(15,23,42,.55);border:1px solid #334155;border-radius:16px;padding:12px;margin:14px 0}
.tc-tabbar{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 12px}
.tc-tabbar button{background:#111827;border:1px solid #334155;color:#cbd5e1;border-radius:12px;padding:10px 14px;font-weight:900}
.tc-tabbar button.active{background:var(--accent);border-color:var(--accent);color:#111827;box-shadow:0 0 16px rgba(234,179,8,.24)}
.tc-tab-panel.hidden{display:none!important}
.tc-hand-result{margin:7px auto 0;padding:5px 8px;border-radius:5px;font-size:12px;font-weight:900;line-height:1.2;max-width:max-content;background:#1e293b;border:1px solid #475569;color:#e2e8f0}
.tc-hand-result.hidden{display:none!important}
.tc-hand-result.win{background:rgba(22,101,52,.25);border-color:#22c55e;color:#86efac}
.tc-hand-result.lose{background:rgba(127,29,29,.25);border-color:#ef4444;color:#fecaca}
.tc-hand-result.push{background:rgba(51,65,85,.55);border-color:#94a3b8;color:#e2e8f0}
.table-count-explanation.dimmed{opacity:.5}
@media(max-width:760px){.tc-interaction-panel{padding:10px}.tc-tabbar button{flex:1 1 130px}}

.tc-insurance-choices.hidden{display:none!important}
.tc-decision-choices.hidden{display:none!important}
.tc-hand-result{display:flex;flex-direction:column;gap:2px;align-items:center}
.tc-hand-total{font-size:12px;font-weight:900;color:#e2e8f0}
.tc-hand-outcome{font-size:12px;font-weight:900}
.tc-cheat-modal.hidden{display:none!important}
.tc-cheat-modal{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;padding:20px}
.tc-cheat-backdrop{position:absolute;inset:0;background:rgba(2,6,23,.72);backdrop-filter:blur(3px)}
.tc-cheat-dialog{position:relative;width:min(460px,92vw);background:#0b1220;border:1px solid #334155;border-radius:18px;box-shadow:0 24px 80px rgba(0,0,0,.5);padding:24px;color:#f8fafc}
.tc-cheat-dialog h3{margin:0 34px 12px 0}
.tc-cheat-body{line-height:1.55;color:#dbeafe}
.tc-cheat-close{position:absolute;top:12px;right:12px;width:34px;height:34px;border-radius:999px;padding:0}
button.tc-selected-bet:disabled{
  opacity:.85;
  border-color:rgba(234,179,8,.75)!important;
  background:rgba(234,179,8,.18)!important;
  color:#fde68a!important;
}

/* Phase 4.4 split-hand support */
.tc-hand{align-items:flex-start}
.tc-single-hand{display:flex;justify-content:center;align-items:center;gap:6px;flex-wrap:wrap}
.tc-hand-cards{display:flex;justify-content:center;align-items:center;gap:6px;flex-wrap:wrap}
.tc-split-hand{width:100%;display:flex;flex-direction:column;align-items:center;gap:5px;padding:6px 0;border-top:1px solid rgba(148,163,184,.18)}
.tc-split-hand:first-child{border-top:0;padding-top:0}
.tc-split-hand-label{font-size:11px;font-weight:900;color:#bfdbfe;text-transform:uppercase;letter-spacing:.05em}
.tc-split-result{margin-top:2px}
#tc-decision-cheat:disabled{opacity:.45;filter:grayscale(.35);cursor:not-allowed;box-shadow:none}

/* Phase 4.6 Full Blackjack Game Simulator */
.blackjack-game-page{width:min(1500px,96vw);margin-left:calc(50% - min(1500px,96vw)/2)}
.blackjack-game-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:18px}.blackjack-game-head h1{font-size:clamp(34px,5vw,58px)}
.bj-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:18px;align-items:start}.bj-main{min-width:0}.bj-info{position:sticky;top:88px}.bj-setup h2,.bj-action-panel h2,.bj-info h2{margin-top:0}.bj-setup-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.bj-seat-select{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:12px}.bj-seat-select label{display:inline-flex;align-items:center;justify-content:center;gap:6px;margin:0;background:#0b1220;border:1px solid #334155;border-radius:10px;padding:7px 10px;min-height:36px;line-height:1}.bj-seat-select label.disabled{opacity:.35;filter:grayscale(.7);cursor:not-allowed}.bj-seat-select input{width:auto;margin:0}.bj-seat-select span{font-weight:900}.hidden{display:none!important}
.bj-table-wrap{display:grid;gap:14px}.bj-top-actions{display:flex;gap:10px;justify-content:flex-end}.bj-table{background:radial-gradient(circle at 50% 0,#17406f,#06381f 52%,#052116 100%);border:1px solid rgba(148,163,184,.45);border-radius:34px;padding:24px;min-height:500px;box-shadow:inset 0 0 0 2px rgba(255,255,255,.03),0 24px 70px rgba(0,0,0,.28)}.bj-dealer-area{text-align:center;margin-bottom:30px}.bj-hand{display:flex;justify-content:center;align-items:center;gap:7px;min-height:98px}.bj-player-area{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:start}.bj-seat{background:rgba(15,23,42,.72);border:1px solid rgba(148,163,184,.35);border-radius:18px;padding:12px;min-height:190px;text-align:center}.bj-seat.user-seat{box-shadow:0 0 0 1px rgba(234,179,8,.35)}.bj-seat-hand{border-radius:14px;padding:8px;margin:0 0 8px}.bj-seat-hand.active{background:rgba(234,179,8,.12);box-shadow:0 0 0 1px rgba(234,179,8,.55)}.bj-bet-pill{margin:7px auto 0;padding:4px 8px;border-radius:999px;background:#020617;border:1px solid #334155;color:#cbd5e1;font-size:12px;font-weight:800;max-width:max-content}.bj-action-panel{padding:20px}.bj-action-panel p{margin-top:0}.bj-chip-row{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}.bj-chip{width:66px;height:66px;border-radius:999px;padding:0;background:#f8fafc!important;color:#111827!important;border:7px dashed #111827!important;box-shadow:0 8px 22px rgba(0,0,0,.35);font-size:15px}.bj-chip-1{background:#f8fafc!important}.bj-chip-5{background:#ef4444!important;color:#fff!important;border-color:#fff!important}.bj-chip-25{background:#22c55e!important;color:#06230f!important;border-color:#f8fafc!important}.bj-chip-100{background:#111827!important;color:#f8fafc!important;border-color:#f8fafc!important}.bj-chip-500{background:#7c3aed!important;color:#fff!important;border-color:#f8fafc!important}.bj-chip-1000{background:#f59e0b!important;color:#111827!important;border-color:#fff!important}.bj-chip-5000{background:#06b6d4!important;color:#06202a!important;border-color:#fff!important}.bj-current-bets{display:flex;gap:10px;flex-wrap:wrap;margin:8px 0 12px}.bj-current-bets span{background:#0b1220;border:1px solid #334155;border-radius:999px;padding:6px 10px;color:#cbd5e1}.bj-play-buttons button:disabled,.bj-insurance-buttons button:disabled{opacity:.45;cursor:not-allowed;filter:grayscale(.6)}.bj-info-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.bj-info-grid div{background:#0b1220;border:1px solid #334155;border-radius:14px;padding:12px}.bj-info-grid span{display:block;color:#94a3b8;font-size:12px;text-transform:uppercase;font-weight:900;letter-spacing:.04em}.bj-info-grid strong{font-size:22px;color:#f8fafc}.bj-info h3{margin:18px 0 8px}.bj-log{background:#0b1220;border:1px solid #334155;border-radius:14px;min-height:160px;max-height:280px;overflow:auto;padding:10px}.bj-log div{border-bottom:1px solid rgba(148,163,184,.16);padding:7px 0;color:#cbd5e1;font-size:14px}.bj-log div:first-child{color:#fde68a}.new-card{box-shadow:0 0 0 2px #eab308,0 0 18px rgba(234,179,8,.85)!important}
@media(max-width:1050px){.bj-layout{grid-template-columns:1fr}.bj-info{position:static}.bj-player-area{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.blackjack-game-head{flex-direction:column}.bj-setup-grid{grid-template-columns:1fr}.bj-table{padding:14px;border-radius:24px}.bj-player-area{grid-template-columns:1fr}.bj-chip{width:58px;height:58px;font-size:13px}.bj-info-grid{grid-template-columns:1fr 1fr}}
.blackjack-game-page{width:96vw;max-width:1500px;margin-left:50%;transform:translateX(-50%)}

/* Phase 4.6 blackjack shoe/settings polish */
.bj-setup label{display:flex;flex-direction:column;gap:7px;font-weight:900;color:#f8fafc}
.bj-setup input,.bj-setup select{width:100%;background:#020617;color:#f8fafc;border:1px solid #475569;border-radius:12px;padding:12px 14px;font:inherit;font-weight:800;min-height:48px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.02)}
.bj-setup select{appearance:none;background-image:linear-gradient(45deg,transparent 50%,#e2e8f0 50%),linear-gradient(135deg,#e2e8f0 50%,transparent 50%);background-position:calc(100% - 18px) 20px,calc(100% - 12px) 20px;background-size:6px 6px,6px 6px;background-repeat:no-repeat;padding-right:38px}
.bj-setup input:focus,.bj-setup select:focus{outline:none;border-color:#eab308;box-shadow:0 0 0 3px rgba(234,179,8,.18)}
.bj-shuffle-notice{border:1px solid rgba(234,179,8,.65);background:rgba(234,179,8,.12);color:#fde68a;border-radius:16px;padding:12px 14px;font-weight:900;text-align:center;box-shadow:0 0 22px rgba(234,179,8,.12)}
@media(max-width:1050px){.bj-setup-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.bj-setup-grid{grid-template-columns:1fr}}

/* Phase 4.6 blackjack table simulator polish */
.bj-head-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.bj-table{position:relative;overflow:hidden}
.bj-shoe-overlay{position:absolute;inset:0;z-index:10;display:flex;align-items:flex-start;justify-content:center;padding:28px;background:rgba(2,6,23,.62);backdrop-filter:blur(1px);opacity:1;transition:opacity .45s ease;pointer-events:auto}
.bj-shoe-overlay.fade-out{opacity:0}
.bj-shoe-overlay-card{width:min(520px,92%);background:rgba(15,23,42,.86);border:1px solid rgba(234,179,8,.72);border-radius:22px;padding:18px 22px;box-shadow:0 18px 50px rgba(0,0,0,.38),0 0 28px rgba(234,179,8,.12);text-align:left;color:#f8fafc}
.bj-shoe-overlay-card h2{margin:0 0 10px;color:#fde68a;font-size:28px;text-align:center}
.bj-shoe-overlay-card ul{list-style:none;margin:0;padding:0;display:grid;gap:7px}
.bj-shoe-overlay-card li{opacity:0;transform:translateY(6px);transition:opacity .25s ease,transform .25s ease;font-weight:900;color:#cbd5e1}
.bj-shoe-overlay-card li.visible{opacity:1;transform:translateY(0);color:#fde68a}

/* Blackjack simulator player decision panel redesign */
.bj-action-panel{
  position:relative;
  display:grid;
  grid-template-columns:220px minmax(0,1fr);
  grid-template-areas:
    "head actions"
    "head bets"
    "hint hint";
  align-items:center;
  gap:10px 24px;
  background:linear-gradient(180deg,rgba(12,15,18,.96),rgba(6,10,13,.98))!important;
  border:1px solid rgba(186,132,42,.7)!important;
  border-radius:20px!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 20px 46px rgba(0,0,0,.38)!important;
  padding:18px 28px 16px!important;
  overflow:hidden;
}
.bj-action-panel::before{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(circle at 50% 0,rgba(255,255,255,.08),transparent 42%),linear-gradient(90deg,rgba(0,0,0,.34),transparent 20%,transparent 80%,rgba(0,0,0,.34));
  pointer-events:none;
}
.bj-action-panel > *{position:relative;z-index:1}
.bj-action-panel h2{
  grid-area:head;
  margin:0 0 4px!important;
  color:#f7d37b!important;
  font-size:22px!important;
  line-height:1.15;
  text-transform:uppercase;
  letter-spacing:.02em;
}
.bj-action-panel p{
  grid-area:head;
  align-self:end;
  margin:38px 0 0!important;
  color:#f6f1e4!important;
  font-size:18px;
  font-weight:500;
}
.bj-action-panel .bj-play-buttons,
.bj-action-panel .bj-insurance-buttons{
  grid-area:actions;
  display:grid;
  grid-template-columns:repeat(5,minmax(130px,1fr));
  gap:18px;
  margin:0;
}
.bj-action-panel .bj-insurance-buttons{grid-template-columns:repeat(2,minmax(170px,260px));justify-content:start}
.bj-action-panel .choices.hidden{display:none!important}
.bj-play-buttons button,
.bj-insurance-buttons button{
  min-height:64px;
  border-radius:9px!important;
  border:1px solid rgba(255,255,255,.18)!important;
  color:#fff!important;
  font-size:16px!important;
  font-weight:900!important;
  letter-spacing:.02em;
  text-transform:uppercase;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 9px 20px rgba(0,0,0,.38)!important;
}
.bj-play-buttons [data-bj-action="hit"]{background:linear-gradient(#169542,#087429)!important}
.bj-play-buttons [data-bj-action="stand"]{background:linear-gradient(#d33429,#a61c16)!important}
.bj-play-buttons [data-bj-action="double"]{background:linear-gradient(#204f7d,#123354)!important}
.bj-play-buttons [data-bj-action="split"]{background:linear-gradient(#573188,#35174f)!important}
.bj-play-buttons [data-bj-action="surrender"]{background:linear-gradient(#2f3a45,#1b242d)!important;color:#d7dde4!important}
.bj-insurance-buttons [data-bj-insurance="yes"]{background:linear-gradient(#b7791f,#8b5a13)!important}
.bj-insurance-buttons [data-bj-insurance="no"]{background:linear-gradient(#2f3a45,#1b242d)!important;color:#d7dde4!important}
.bj-action-panel .bj-chip-row{
  grid-area:bets;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:20px;
  margin:4px auto 0;
  padding:20px 34px 12px;
  min-width:min(820px,100%);
  border:1px solid rgba(186,132,42,.22);
  border-radius:22px 22px 8px 8px;
  background:rgba(5,8,11,.48);
}
.bj-action-panel .bj-chip-row.hidden{display:none!important}
.bj-action-panel .bj-chip-row::before{
  content:"CHOOSE BET AMOUNT";
  position:absolute;
  transform:translateY(-42px);
  padding:0 14px;
  background:#090d10;
  color:#f2d98a;
  font-size:12px;
  font-weight:900;
  letter-spacing:.05em;
}
.bj-chip{
  width:48px!important;
  height:48px!important;
  border-radius:50%!important;
  font-size:14px!important;
  font-weight:1000!important;
  border:6px dashed #111827!important;
  box-shadow:inset 0 0 0 3px rgba(255,255,255,.45),0 8px 16px rgba(0,0,0,.45)!important;
}
.bj-chip-25{box-shadow:inset 0 0 0 3px rgba(255,255,255,.45),0 0 0 3px rgba(245,178,55,.85),0 8px 16px rgba(0,0,0,.45)!important}
.bj-action-panel .bj-current-bets{
  grid-area:head;
  align-self:end;
  margin:78px 0 0!important;
}
.bj-current-bets span{
  background:#0a0f12!important;
  border:1px solid rgba(186,132,42,.65)!important;
  color:#f6e9bd!important;
  font-size:14px;
  font-weight:900;
  padding:8px 17px!important;
}
.bj-current-bets strong{color:#35d46b}
.bj-action-panel .btnrow{
  grid-area:bets;
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:26px;
  margin:0;
}
.bj-action-panel #bj-clear-bet,
.bj-action-panel #bj-rebet,
.bj-action-panel #bj-deal{
  min-width:134px;
  min-height:40px;
  border-radius:10px!important;
  text-transform:uppercase;
  font-weight:900!important;
  letter-spacing:.02em;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 7px 15px rgba(0,0,0,.3)!important;
}
.bj-action-panel #bj-clear-bet{background:linear-gradient(#202a34,#111820)!important;color:#f4f4f5!important;border:1px solid rgba(255,255,255,.12)!important}
.bj-action-panel #bj-rebet{background:linear-gradient(#bd852c,#8c5a15)!important;color:#fff!important;border:1px solid rgba(255,205,110,.35)!important}
.bj-action-panel #bj-deal{background:linear-gradient(#179248,#087333)!important;color:#fff!important;border:1px solid rgba(150,255,190,.28)!important}
.bj-action-panel .table-count-explanation{
  grid-area:hint;
  margin:2px 0 0!important;
}
@media(max-width:1120px){
  .bj-action-panel{grid-template-columns:1fr;grid-template-areas:"head" "actions" "bets" "hint"}
  .bj-action-panel p{margin:6px 0 0!important}.bj-action-panel .bj-current-bets{grid-area:bets;margin:0!important;justify-content:center}.bj-action-panel .bj-play-buttons{grid-template-columns:repeat(2,minmax(130px,1fr))}.bj-action-panel .bj-chip-row{min-width:0;flex-wrap:wrap}.bj-action-panel .btnrow{justify-content:center;flex-wrap:wrap}
}

/* 2026-06-30 fix: prevent decision/betting panel overlap and make betting controls testable */
.bj-action-panel{
  display:grid!important;
  grid-template-columns:220px minmax(360px,1fr) 320px!important;
  grid-template-areas:
    "head chips controls"
    "hint hint hint"!important;
  align-items:center!important;
  column-gap:22px!important;
  row-gap:10px!important;
  min-height:112px!important;
}
.bj-action-panel h2{
  grid-area:head!important;
  align-self:start!important;
  margin:0!important;
}
.bj-action-panel p{
  grid-area:head!important;
  align-self:start!important;
  margin:38px 0 0!important;
  font-size:15px!important;
  line-height:1.25!important;
  max-width:220px!important;
}
.bj-action-panel .bj-current-bets{
  grid-area:head!important;
  align-self:end!important;
  margin:74px 0 0!important;
  max-width:220px!important;
  justify-content:flex-start!important;
}
.bj-action-panel .bj-current-bets.hidden{display:none!important}
.bj-action-panel .bj-chip-row{
  grid-area:chips!important;
  position:relative!important;
  min-width:0!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:22px 14px 14px!important;
  gap:12px!important;
  flex-wrap:nowrap!important;
  overflow:visible!important;
}
.bj-action-panel .bj-chip-row::before{
  top:-8px!important;
  left:50%!important;
  transform:translateX(-50%)!important;
  white-space:nowrap!important;
}
.bj-action-panel .btnrow{
  grid-area:controls!important;
  justify-content:flex-end!important;
  gap:14px!important;
  flex-wrap:nowrap!important;
  margin:0!important;
}
.bj-action-panel #bj-clear-bet,
.bj-action-panel #bj-rebet,
.bj-action-panel #bj-deal{
  min-width:96px!important;
  padding-left:14px!important;
  padding-right:14px!important;
}
.bj-action-panel .bj-play-buttons,
.bj-action-panel .bj-insurance-buttons{
  grid-area:chips!important;
  grid-column:2 / 4!important;
  width:100%!important;
}
.bj-action-panel .btnrow:has(#bj-clear-bet.hidden):has(#bj-rebet.hidden):has(#bj-deal.hidden):has(#bj-next.hidden){display:none!important}
.bj-action-panel .table-count-explanation{grid-area:hint!important}
@media(max-width:1240px){
  .bj-action-panel{grid-template-columns:1fr!important;grid-template-areas:"head" "chips" "controls" "hint"!important;padding:16px!important}
  .bj-action-panel h2,.bj-action-panel p,.bj-action-panel .bj-current-bets{grid-area:auto!important;max-width:none!important;margin:0!important;align-self:auto!important}
  .bj-action-panel p{margin-top:4px!important}
  .bj-action-panel .bj-current-bets{margin-top:8px!important;justify-content:center!important}
  .bj-action-panel .bj-chip-row{grid-area:chips!important;flex-wrap:wrap!important;justify-content:center!important;padding-top:22px!important}
  .bj-action-panel .btnrow{grid-area:controls!important;justify-content:center!important;flex-wrap:wrap!important}
  .bj-action-panel .bj-play-buttons,.bj-action-panel .bj-insurance-buttons{grid-area:chips!important;grid-column:auto!important}
}
@media(max-width:760px){
  .bj-action-panel .bj-play-buttons{grid-template-columns:1fr!important}
  .bj-action-panel .bj-insurance-buttons{grid-template-columns:1fr!important}
}

/* 2026-06-30 betting panel polish: bet summary under chips, compact controls */
.bj-chip-25{
  box-shadow:inset 0 0 0 3px rgba(255,255,255,.45),0 8px 16px rgba(0,0,0,.45)!important;
}
.bj-action-panel{
  grid-template-columns:210px minmax(430px,1fr) 324px!important;
  grid-template-areas:
    "head chips controls"
    "head bets controls"
    "hint hint hint"!important;
  min-height:132px!important;
}
.bj-action-panel h2{grid-area:head!important;align-self:start!important;margin:0!important}
.bj-action-panel p{
  grid-area:head!important;
  align-self:start!important;
  margin:36px 0 0!important;
  max-width:200px!important;
  font-size:14px!important;
  line-height:1.25!important;
}
.bj-action-panel .bj-chip-row{
  grid-area:chips!important;
  padding:20px 12px 12px!important;
  gap:10px!important;
}
.bj-action-panel .bj-current-bets{
  grid-area:bets!important;
  align-self:start!important;
  justify-content:center!important;
  gap:10px!important;
  max-width:none!important;
  margin:8px 0 0!important;
}
.bj-current-bets span{
  white-space:nowrap!important;
  font-size:13px!important;
  padding:6px 13px!important;
}
.bj-action-panel .btnrow{
  grid-area:controls!important;
  justify-content:flex-end!important;
  gap:12px!important;
}
.bj-action-panel #bj-clear-bet,
.bj-action-panel #bj-rebet,
.bj-action-panel #bj-deal{
  width:96px!important;
  min-width:96px!important;
  max-width:96px!important;
  height:42px!important;
  min-height:42px!important;
  padding:0 8px!important;
  white-space:nowrap!important;
  font-size:13px!important;
  line-height:1!important;
}
.bj-action-panel #bj-clear-bet{font-size:12px!important}
.bj-action-panel #bj-clear-bet:disabled{
  opacity:.42!important;
  cursor:not-allowed!important;
  filter:grayscale(.45)!important;
}
.bj-action-panel #bj-next{
  min-width:260px!important;
  height:52px!important;
  border-radius:12px!important;
  text-transform:uppercase!important;
  font-weight:1000!important;
  letter-spacing:.02em!important;
}
.bj-action-panel:has(#bj-next:not(.hidden)){
  grid-template-columns:1fr 300px!important;
  grid-template-areas:
    "head controls"
    "hint controls"!important;
  min-height:125px!important;
}
.bj-action-panel:has(#bj-next:not(.hidden)) .btnrow{justify-content:flex-end!important}
@media(max-width:1240px){
  .bj-action-panel{grid-template-columns:1fr!important;grid-template-areas:"head" "chips" "bets" "controls" "hint"!important}
  .bj-action-panel h2,.bj-action-panel p,.bj-action-panel .bj-current-bets{max-width:none!important;margin-left:0!important;margin-right:0!important}
  .bj-action-panel p{margin-top:4px!important}
  .bj-action-panel .bj-current-bets{justify-content:center!important;margin-top:6px!important}
  .bj-action-panel .btnrow{justify-content:center!important}
}

/* 2026-06-30 action panel layout patch: betting controls below chips, bet info right, cleaner decision/next states */
.bj-action-panel{
  grid-template-columns:210px minmax(420px,1fr) 220px!important;
  grid-template-areas:
    "head chips bets"
    "head controls bets"
    "hint hint hint"!important;
  align-items:center!important;
  min-height:144px!important;
  column-gap:24px!important;
  row-gap:10px!important;
}
.bj-action-panel h2{
  grid-area:head!important;
  align-self:start!important;
  margin:0!important;
  max-width:210px!important;
  line-height:1.08!important;
}
.bj-action-panel p{
  grid-area:head!important;
  align-self:start!important;
  margin:58px 0 0!important;
  max-width:210px!important;
  font-size:14px!important;
  line-height:1.22!important;
}
.bj-action-panel .bj-chip-row{
  grid-area:chips!important;
  justify-content:center!important;
  margin:0!important;
  padding:19px 10px 11px!important;
  gap:9px!important;
  max-width:100%!important;
}
.bj-action-panel .bj-current-bets{
  grid-area:bets!important;
  align-self:center!important;
  justify-content:flex-start!important;
  align-content:center!important;
  flex-direction:column!important;
  gap:10px!important;
  margin:0!important;
  max-width:220px!important;
}
.bj-action-panel .bj-current-bets span{
  min-width:132px!important;
  text-align:center!important;
}
.bj-action-panel .btnrow{
  grid-area:controls!important;
  justify-content:center!important;
  align-items:center!important;
  gap:12px!important;
  margin:0!important;
}
.bj-action-panel #bj-deal,
.bj-action-panel #bj-rebet,
.bj-action-panel #bj-clear-bet{
  width:104px!important;
  min-width:104px!important;
  max-width:104px!important;
  height:42px!important;
  min-height:42px!important;
  white-space:nowrap!important;
}
.bj-action-panel #bj-clear-bet{font-size:11px!important;letter-spacing:0!important;}

/* Decision/insurance states: keep hand info under title and buttons in the main action zone. */
.bj-action-panel .bj-play-buttons,
.bj-action-panel .bj-insurance-buttons{
  grid-area:chips!important;
  grid-column:2 / 4!important;
  align-self:center!important;
  margin:0!important;
}
.bj-action-panel:has(#bj-play-buttons:not(.hidden)),
.bj-action-panel:has(#bj-insurance-buttons:not(.hidden)){
  grid-template-columns:190px minmax(0,1fr)!important;
  grid-template-areas:
    "head chips"
    "hint hint"!important;
  min-height:118px!important;
}
.bj-action-panel:has(#bj-play-buttons:not(.hidden)) h2,
.bj-action-panel:has(#bj-insurance-buttons:not(.hidden)) h2{
  max-width:190px!important;
}
.bj-action-panel:has(#bj-play-buttons:not(.hidden)) p,
.bj-action-panel:has(#bj-insurance-buttons:not(.hidden)) p{
  margin-top:54px!important;
  max-width:190px!important;
  font-size:13px!important;
  line-height:1.18!important;
}

/* Round-complete state: center the large button where the player already taps/clicks. */
.bj-action-panel:has(#bj-next:not(.hidden)){
  grid-template-columns:210px minmax(0,1fr) 210px!important;
  grid-template-areas:
    "head controls spacer"
    "hint controls spacer"!important;
  min-height:124px!important;
}
.bj-action-panel:has(#bj-next:not(.hidden)) .btnrow{
  grid-area:controls!important;
  justify-content:center!important;
  width:100%!important;
}
.bj-action-panel #bj-next{
  width:min(520px,100%)!important;
  min-width:420px!important;
  height:58px!important;
  min-height:58px!important;
  border-radius:12px!important;
  text-transform:uppercase!important;
  font-weight:1000!important;
  font-size:15px!important;
  letter-spacing:.02em!important;
}

@media(max-width:1240px){
  .bj-action-panel{
    grid-template-columns:1fr!important;
    grid-template-areas:"head" "chips" "bets" "controls" "hint"!important;
  }
  .bj-action-panel h2,
  .bj-action-panel p{max-width:none!important;}
  .bj-action-panel p{margin-top:6px!important;}
  .bj-action-panel .bj-current-bets{flex-direction:row!important;justify-content:center!important;max-width:none!important;}
  .bj-action-panel .bj-play-buttons,
  .bj-action-panel .bj-insurance-buttons{grid-column:auto!important;}
  .bj-action-panel:has(#bj-next:not(.hidden)){
    grid-template-columns:1fr!important;
    grid-template-areas:"head" "controls" "hint"!important;
  }
  .bj-action-panel #bj-next{min-width:min(420px,100%)!important;width:min(520px,100%)!important;}
}
@media(max-width:760px){
  .bj-action-panel .bj-current-bets{flex-direction:column!important;}
  .bj-action-panel #bj-deal,
  .bj-action-panel #bj-rebet,
  .bj-action-panel #bj-clear-bet{width:96px!important;min-width:96px!important;}
  .bj-action-panel #bj-next{min-width:100%!important;width:100%!important;}
}

/* 2026-06-30 six-player bet summary patch */
.bj-action-panel .bj-current-bets{
  align-self:stretch!important;
  display:flex!important;
  justify-content:center!important;
  align-items:center!important;
  min-width:230px!important;
  max-width:260px!important;
  overflow:visible!important;
}
.bj-action-panel .bj-bet-status-stack{
  width:100%!important;
  display:flex!important;
  flex-direction:column!important;
  gap:4px!important;
  padding:8px 10px!important;
  border:1px solid rgba(184,134,37,.74)!important;
  border-radius:14px!important;
  background:rgba(0,0,0,.16)!important;
}
.bj-action-panel .bj-current-bets span,
.bj-action-panel .bj-bet-status-row{
  min-width:0!important;
  text-align:left!important;
}
.bj-action-panel .bj-bet-status-row{
  display:grid!important;
  grid-template-columns:minmax(72px,1fr) auto!important;
  align-items:center!important;
  column-gap:8px!important;
  white-space:nowrap!important;
  color:#fff!important;
  font-size:12px!important;
  line-height:1.1!important;
  font-weight:900!important;
}
.bj-action-panel .bj-bet-status-row span{color:#ffe08a!important;}
.bj-action-panel .bj-bet-status-row strong{color:#22c55e!important;}
.bj-action-panel .bj-last-bet-row{
  margin-top:5px!important;
  padding-top:6px!important;
  border-top:1px solid rgba(184,134,37,.55)!important;
}
.bj-action-panel .bj-last-bet-row strong{color:#ffe08a!important;}

@media(max-width:1240px){
  .bj-action-panel .bj-current-bets{max-width:none!important;width:100%!important;}
  .bj-action-panel .bj-bet-status-stack{max-width:320px!important;margin:0 auto!important;}
}

/* 2026-06-30 tiny layout fix: keep betting chips/buttons pinned to top when 3-6 player bet stack grows */
.bj-action-panel{
  align-items:start!important;
}
.bj-action-panel .bj-chip-row{
  align-self:start!important;
}
.bj-action-panel .btnrow{
  align-self:start!important;
}
.bj-action-panel .bj-current-bets{
  align-self:start!important;
  justify-content:flex-start!important;
  align-items:stretch!important;
}
.bj-action-panel .bj-bet-status-stack{
  align-self:start!important;
}

/* Keep non-betting decision/insurance buttons vertically centered in their shorter state. */
.bj-action-panel:has(#bj-play-buttons:not(.hidden)),
.bj-action-panel:has(#bj-insurance-buttons:not(.hidden)){
  align-items:center!important;
}
.bj-action-panel:has(#bj-play-buttons:not(.hidden)) .bj-play-buttons,
.bj-action-panel:has(#bj-insurance-buttons:not(.hidden)) .bj-insurance-buttons{
  align-self:center!important;
}


/* Final betting panel spacing fix: keep buttons close under chips */
.bj-action-panel:has(.bj-chip-row:not(.hidden)) .btnrow{
  grid-area:chips!important;
  justify-self:center!important;
  align-self:start!important;
  margin-top:88px!important;
  transform:none!important;
}

.bj-action-panel:has(.bj-chip-row:not(.hidden)){
  row-gap:0!important;
}

/* Keep the chip tray pinned at the top */
.bj-action-panel:has(.bj-chip-row:not(.hidden)) .bj-chip-row{
  align-self:start!important;
  margin-bottom:0!important;
}

/* Keep the right player stack from pushing the center controls downward */
.bj-action-panel:has(.bj-chip-row:not(.hidden)) .bj-current-bets{
  grid-area:bets!important;
  align-self:start!important;
}
/* 2026-06-30 round-complete player result stack */
.bj-action-panel:has(#bj-next:not(.hidden)){
  grid-template-columns:210px minmax(0,1fr) 230px!important;
  grid-template-areas:
    "head controls bets"
    "hint controls bets"!important;
  align-items:start!important;
}
.bj-action-panel:has(#bj-next:not(.hidden)) .bj-current-bets{
  grid-area:bets!important;
  display:flex!important;
  align-self:start!important;
  justify-content:flex-start!important;
  align-items:stretch!important;
  min-width:220px!important;
  max-width:260px!important;
  margin:0!important;
}
.bj-round-results-stack{
  width:100%!important;
}
.bj-round-result-row strong{
  font-size:12px!important;
}
.bj-round-result-row.win strong{color:#22c55e!important;}
.bj-round-result-row.lose strong{color:#f87171!important;}
.bj-round-result-row.push strong{color:#ffe08a!important;}
@media(max-width:1240px){
  .bj-action-panel:has(#bj-next:not(.hidden)){
    grid-template-columns:1fr!important;
    grid-template-areas:"head" "controls" "bets" "hint"!important;
  }
  .bj-action-panel:has(#bj-next:not(.hidden)) .bj-current-bets{
    max-width:none!important;
    width:100%!important;
    justify-content:center!important;
  }
}

/* 2026-07-01 blackjack seat bet-chip display + bottom player labels */
.bj-seat-hand{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:flex-start!important;
}
.bj-seat-hand .tc-seat-label{
  order:99!important;
  margin-top:8px!important;
  margin-bottom:0!important;
  color:#f7d37b!important;
  font-size:12px!important;
  font-weight:1000!important;
  letter-spacing:.05em!important;
}
.bj-seat-chip-stack{
  display:flex!important;
  justify-content:center!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  gap:4px!important;
  max-width:100%!important;
  margin:5px auto 0!important;
  min-height:22px!important;
}
.bj-seat-chip{
  width:22px!important;
  height:22px!important;
  border-radius:50%!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0!important;
  font-size:8px!important;
  line-height:1!important;
  font-weight:1000!important;
  border:3px dashed #111827!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.45),0 3px 7px rgba(0,0,0,.35)!important;
  color:#111827!important;
  background:#f8fafc!important;
}
.bj-seat-chip-5{background:#ef4444!important;color:#fff!important;border-color:#fff!important;}
.bj-seat-chip-25{background:#22c55e!important;color:#06230f!important;border-color:#f8fafc!important;}
.bj-seat-chip-100{background:#111827!important;color:#f8fafc!important;border-color:#f8fafc!important;}
.bj-seat-chip-500{background:#7c3aed!important;color:#fff!important;border-color:#f8fafc!important;}
.bj-seat-chip-1000{background:#f59e0b!important;color:#111827!important;border-color:#fff!important;}
.bj-seat-chip-5000{background:#06b6d4!important;color:#06202a!important;border-color:#fff!important;}
@media(max-width:760px){
  .bj-seat-chip{width:20px!important;height:20px!important;font-size:7px!important;border-width:3px!important;}
  .bj-seat-hand .tc-seat-label{font-size:11px!important;}
}

/* 2026-07-01 casino chip payout UX polish */
.bj-seat{
  display:flex!important;
  align-items:stretch!important;
  min-height:244px!important;
}
.bj-seat-hand{
  width:100%!important;
  min-height:216px!important;
  flex:1 1 auto!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:flex-start!important;
}
.bj-seat-hand .bj-hand{
  min-height:96px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.bj-seat-hand .tc-seat-label{
  margin-top:auto!important;
  padding-top:8px!important;
}
.bj-seat-chip-layout{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  width:100%!important;
  max-width:100%!important;
  min-height:26px!important;
  margin-top:5px!important;
}
.bj-seat-chip-layout .bj-seat-chip-stack{
  margin:0!important;
}
.bj-seat-chip-stack{
  min-height:24px!important;
}
.bj-wager-chip-stack,
.bj-payout-chip-stack{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex-wrap:wrap!important;
  gap:4px!important;
}
.bj-payout-chip-stack{
  padding-left:2px!important;
}
.bj-chip-plus{
  color:#f7d37b!important;
  font-size:13px!important;
  font-weight:1000!important;
  line-height:1!important;
  opacity:.95!important;
}
.bj-seat-chip-0-5{
  background:#d1d5db!important;
  color:#111827!important;
  border-color:#6b7280!important;
  font-size:7px!important;
}
.bj-seat-chip-0-25{
  background:#b7791f!important;
  color:#fff7ed!important;
  border-color:#fde68a!important;
  font-size:6px!important;
}
.bj-seat-chip-layout-win .bj-payout-chip-stack .bj-seat-chip{
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.48),0 0 0 1px rgba(34,197,94,.32),0 3px 8px rgba(0,0,0,.38)!important;
}
@media(max-width:760px){
  .bj-seat{min-height:230px!important;}
  .bj-seat-hand{min-height:204px!important;}
  .bj-seat-chip-layout{gap:5px!important;}
}

/* 2026-07-01 payout amount beside Bet + fixed chip tray space */
.bj-seat-hand{
  min-height:232px!important;
}
.bj-seat-hand .bj-bet-pill{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  min-height:24px!important;
  white-space:nowrap!important;
}
.bj-bet-result-amount{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:999px!important;
  padding:2px 6px!important;
  font-size:11px!important;
  font-weight:1000!important;
  line-height:1.05!important;
  border:1px solid rgba(255,255,255,.12)!important;
}
.bj-bet-result-amount.win{
  color:#86efac!important;
  background:rgba(22,101,52,.38)!important;
  border-color:rgba(34,197,94,.78)!important;
}
.bj-bet-result-amount.lose{
  color:#fecaca!important;
  background:rgba(127,29,29,.38)!important;
  border-color:rgba(248,113,113,.72)!important;
}
.bj-bet-result-amount.push{
  color:#fde68a!important;
  background:rgba(120,83,22,.34)!important;
  border-color:rgba(234,179,8,.62)!important;
}
.bj-seat-chip-layout,
.bj-seat-chip-layout-empty{
  min-height:30px!important;
  height:30px!important;
}
.bj-seat-chip-layout-empty{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  margin-top:5px!important;
}
.bj-seat-chip-layout-swept::after{
  content:"";
  display:block;
  width:1px;
  height:1px;
}
.bj-seat-hand .tc-seat-label{
  margin-top:auto!important;
}
@media(max-width:760px){
  .bj-seat-hand{min-height:218px!important;}
  .bj-seat-hand .bj-bet-pill{gap:4px!important;}
  .bj-bet-result-amount{font-size:10px!important;padding:2px 5px!important;}
}

/* 2026-07-01 Session Stats v1 */
.bj-session-stats{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin:8px 0 14px;
}
.bj-session-stats div{
  background:#0b1220;
  border:1px solid #334155;
  border-radius:12px;
  padding:9px 10px;
  min-height:58px;
}
.bj-session-stats div:first-child,
.bj-session-stats div:nth-child(2){
  min-height:64px;
}
.bj-session-stats span{
  display:block;
  color:#94a3b8;
  font-size:11px;
  text-transform:uppercase;
  font-weight:900;
  letter-spacing:.04em;
  line-height:1.15;
  margin-bottom:4px;
}
.bj-session-stats strong{
  display:block;
  color:#f8fafc;
  font-size:18px;
  line-height:1.15;
}
.bj-session-stats div:first-child strong,
.bj-session-stats div:nth-child(2) strong{
  color:#fde68a;
  font-size:22px;
}
@media(max-width:1050px){
  .bj-session-stats{grid-template-columns:repeat(4,minmax(0,1fr));}
}
@media(max-width:760px){
  .bj-session-stats{grid-template-columns:1fr 1fr;}
}

/* 2026-07-01 stat help buttons and popup */
.bj-info-grid span,
.bj-session-stats span{
  display:flex!important;
  align-items:center!important;
  gap:5px!important;
}
.bj-help-btn{
  width:16px!important;
  height:16px!important;
  min-width:16px!important;
  min-height:16px!important;
  padding:0!important;
  border-radius:999px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:#172033!important;
  border:1px solid rgba(148,163,184,.65)!important;
  color:#dbeafe!important;
  font-size:10px!important;
  line-height:1!important;
  font-weight:1000!important;
  cursor:pointer!important;
  box-shadow:none!important;
  opacity:.88!important;
}
.bj-help-btn:hover,
.bj-help-btn:focus{
  background:#23314a!important;
  border-color:#fde68a!important;
  color:#fde68a!important;
  outline:none!important;
}
.bj-help-modal.hidden{display:none!important;}
.bj-help-modal{
  position:fixed;
  inset:0;
  z-index:10000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
}
.bj-help-backdrop{
  position:absolute;
  inset:0;
  background:rgba(2,6,23,.72);
  backdrop-filter:blur(4px);
}
.bj-help-dialog{
  position:relative;
  width:min(420px,92vw);
  background:#0b1220;
  border:1px solid rgba(234,179,8,.72);
  border-radius:18px;
  padding:22px 24px;
  color:#f8fafc;
  box-shadow:0 24px 80px rgba(0,0,0,.55),0 0 28px rgba(234,179,8,.12);
}
.bj-help-dialog h3{
  margin:0 34px 10px 0!important;
  color:#fde68a;
  font-size:22px;
}
.bj-help-dialog p{
  margin:0!important;
  color:#dbeafe!important;
  font-size:15px!important;
  line-height:1.45!important;
}
.bj-help-close{
  position:absolute;
  top:10px;
  right:10px;
  width:32px!important;
  height:32px!important;
  min-width:32px!important;
  min-height:32px!important;
  padding:0!important;
  border-radius:999px!important;
  background:#1f2937!important;
  color:#e5e7eb!important;
  border:1px solid #475569!important;
  font-size:24px!important;
  line-height:1!important;
  box-shadow:none!important;
}

/* 2026-07-01 setup option help buttons + larger help modal text */
.bj-setup .bj-setting-label{
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
  margin:0 0 7px!important;
  font-weight:900!important;
  color:#f8fafc!important;
  line-height:1.2!important;
}
.bj-seat-select .bj-setting-label{
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
  margin-right:4px!important;
}
.bj-setup .bj-help-btn,
.bj-seat-select .bj-help-btn{
  width:17px!important;
  height:17px!important;
  min-width:17px!important;
  min-height:17px!important;
  font-size:11px!important;
  transform:translateY(-1px);
}
.bj-help-dialog{
  width:min(560px,92vw)!important;
  padding:28px 30px!important;
}
.bj-help-dialog h3{
  font-size:28px!important;
  line-height:1.15!important;
  margin-bottom:14px!important;
}
.bj-help-dialog p{
  font-size:19px!important;
  line-height:1.55!important;
}
.bj-help-close{
  width:36px!important;
  height:36px!important;
  min-width:36px!important;
  min-height:36px!important;
}
@media(max-width:760px){
  .bj-help-dialog{padding:24px 22px!important;}
  .bj-help-dialog h3{font-size:24px!important;}
  .bj-help-dialog p{font-size:17px!important;}
}


/* 2026-07-01 Even Money gameplay buttons */
.bj-even-money-buttons.hidden{display:none!important}
.bj-action-panel .bj-even-money-buttons{
  grid-area:chips!important;
  grid-column:2 / 4!important;
  display:grid;
  grid-template-columns:repeat(2,minmax(190px,280px));
  gap:18px;
  justify-content:start;
  margin:0!important;
}
.bj-even-money-buttons button{
  min-height:64px;
  border-radius:9px!important;
  border:1px solid rgba(255,255,255,.18)!important;
  color:#fff!important;
  font-size:16px!important;
  font-weight:900!important;
  letter-spacing:.02em;
  text-transform:uppercase;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 9px 20px rgba(0,0,0,.38)!important;
}
.bj-even-money-buttons [data-bj-even-money="yes"]{background:linear-gradient(#b7791f,#8b5a13)!important}
.bj-even-money-buttons [data-bj-even-money="no"]{background:linear-gradient(#2f3a45,#1b242d)!important;color:#d7dde4!important}
.bj-even-money-buttons button:disabled{opacity:.45;cursor:not-allowed;filter:grayscale(.6)}
.bj-action-panel:has(#bj-even-money-buttons:not(.hidden)){
  grid-template-columns:190px minmax(0,1fr)!important;
  grid-template-areas:
    "head chips"
    "hint hint"!important;
  min-height:118px!important;
  align-items:center!important;
}
.bj-action-panel:has(#bj-even-money-buttons:not(.hidden)) h2{max-width:190px!important}
.bj-action-panel:has(#bj-even-money-buttons:not(.hidden)) p{margin-top:54px!important;max-width:190px!important;font-size:13px!important;line-height:1.18!important}
@media(max-width:1240px){.bj-action-panel .bj-even-money-buttons{grid-column:auto!important;justify-content:center!important}}
@media(max-width:760px){.bj-action-panel .bj-even-money-buttons{grid-template-columns:1fr!important}}

/* 2026-07-01 hint recommendation + Why popup */
.bj-hint-line{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
}
.bj-hint-line > span{
  min-width:0!important;
  font-weight:850!important;
}
.bj-why-btn{
  width:auto!important;
  min-width:54px!important;
  height:28px!important;
  padding:0 10px!important;
  border-radius:999px!important;
  font-size:12px!important;
  line-height:1!important;
  flex:0 0 auto!important;
}
@media(max-width:760px){
  .bj-hint-line{align-items:flex-start!important;flex-direction:column!important;}
}

/* 2026-07-01 keyboard shortcuts + round summary help */
.bj-action-help-row{
  grid-area:hint!important;
  display:flex!important;
  justify-content:center!important;
  align-items:center!important;
  gap:14px!important;
  margin:0 0 2px!important;
  color:#f6e9bd!important;
  font-size:13px!important;
  font-weight:900!important;
  text-transform:uppercase!important;
  letter-spacing:.03em!important;
}
.bj-action-help-row .hidden{display:none!important}
.bj-shortcuts-help,
.bj-round-summary-help{
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
  padding:4px 9px!important;
  border:1px solid rgba(186,132,42,.38)!important;
  border-radius:999px!important;
  background:rgba(0,0,0,.18)!important;
  white-space:nowrap!important;
}
.bj-action-help-row .bj-help-btn{
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
  min-height:18px!important;
  font-size:12px!important;
  line-height:1!important;
}
.bj-help-dialog p{
  white-space:pre-line!important;
}
.bj-action-panel:has(#bj-next:not(.hidden)) .bj-action-help-row{
  grid-area:hint!important;
  align-self:start!important;
}
@media(max-width:760px){
  .bj-action-help-row{flex-wrap:wrap!important;font-size:12px!important;}
}

/* 2026-07-01 move keyboard shortcuts and round summary links to right Game Info panel */
.bj-action-panel .bj-action-help-row{
  display:none!important;
}
.bj-info-help-links{
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  gap:8px!important;
  margin:8px 0 14px!important;
}
.bj-info-help-links .hidden{display:none!important;}
.bj-info-help-links .bj-shortcuts-help,
.bj-info-help-links .bj-round-summary-help{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  width:100%!important;
  padding:8px 10px!important;
  border:1px solid rgba(186,132,42,.38)!important;
  border-radius:12px!important;
  background:rgba(0,0,0,.18)!important;
  color:#f6e9bd!important;
  font-size:13px!important;
  font-weight:900!important;
  text-transform:uppercase!important;
  letter-spacing:.03em!important;
}
.bj-info-help-links .bj-help-btn{
  width:22px!important;
  height:22px!important;
  min-width:22px!important;
  min-height:22px!important;
  padding:0!important;
  border-radius:999px!important;
  font-size:13px!important;
  line-height:1!important;
}

/* 2026-07-01 Phase 4.9.1 Player Dashboard */
.bj-player-dashboard{
  margin-top:18px!important;
  background:linear-gradient(180deg,rgba(15,23,42,.94),rgba(5,9,18,.96))!important;
  border:1px solid rgba(148,163,184,.34)!important;
  border-radius:20px!important;
  box-shadow:0 18px 44px rgba(0,0,0,.24)!important;
}
.bj-dashboard-head{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:18px!important;
  margin-bottom:16px!important;
}
.bj-dashboard-head h2{margin:0 0 4px!important;color:#f8fafc!important;font-size:24px!important;}
.bj-dashboard-head p{margin:0!important;color:#cbd5e1!important;font-size:14px!important;max-width:560px!important;}
.bj-dashboard-tabs{
  display:flex!important;
  flex-wrap:wrap!important;
  justify-content:flex-end!important;
  gap:8px!important;
}
.bj-dashboard-tabs button{
  background:#0b1220!important;
  color:#cbd5e1!important;
  border:1px solid #334155!important;
  border-radius:999px!important;
  padding:9px 14px!important;
  min-height:0!important;
  font-size:13px!important;
  font-weight:950!important;
  text-transform:uppercase!important;
  letter-spacing:.04em!important;
}
.bj-dashboard-tabs button.active{
  background:linear-gradient(#f4c21b,#d4940d)!important;
  color:#111827!important;
  border-color:rgba(255,218,98,.72)!important;
  box-shadow:0 0 18px rgba(234,179,8,.18)!important;
}
.bj-dashboard-panel.hidden{display:none!important;}
.bj-dashboard-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(220px,1fr)) minmax(330px,1.3fr)!important;
  gap:14px!important;
  align-items:stretch!important;
}
.bj-dashboard-feature,
.bj-learning-card,
.bj-learning-note-grid > div,
.bj-achievement-card,
.bj-history-head{
  background:#0b1220!important;
  border:1px solid #334155!important;
  border-radius:16px!important;
  padding:16px!important;
}
.bj-dashboard-feature span,
.bj-achievement-card span,
.bj-learning-kicker,
.bj-history-head span{
  display:block!important;
  color:#9fb7d7!important;
  font-size:12px!important;
  font-weight:950!important;
  text-transform:uppercase!important;
  letter-spacing:.06em!important;
}
.bj-dashboard-feature strong{
  display:block!important;
  margin:8px 0!important;
  color:#fde68a!important;
  font-size:38px!important;
  line-height:1!important;
}
.bj-dashboard-feature em{
  display:block!important;
  margin-top:10px!important;
  color:#cbd5e1!important;
  font-size:13px!important;
  font-style:normal!important;
}
.bj-progress-bar{
  width:100%!important;
  height:10px!important;
  border-radius:999px!important;
  overflow:hidden!important;
  background:rgba(51,65,85,.72)!important;
  box-shadow:inset 0 1px 2px rgba(0,0,0,.3)!important;
}
.bj-progress-bar i{
  display:block!important;
  height:100%!important;
  width:0;
  border-radius:inherit!important;
  background:linear-gradient(90deg,#22c55e,#f4c21b)!important;
  transition:width .35s ease!important;
}
.bj-player-dashboard .bj-session-stats{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:10px!important;
  align-content:start!important;
}
.bj-player-dashboard .bj-session-stats div{
  background:#0b1220!important;
  border:1px solid #334155!important;
  border-radius:14px!important;
  padding:11px 12px!important;
}
.bj-player-dashboard .bj-session-stats span{
  display:flex!important;
  align-items:center!important;
  gap:5px!important;
  color:#9fb7d7!important;
  font-size:11px!important;
  font-weight:950!important;
  text-transform:uppercase!important;
  letter-spacing:.05em!important;
}
.bj-player-dashboard .bj-session-stats strong{
  display:block!important;
  margin-top:5px!important;
  color:#f8fafc!important;
  font-size:20px!important;
  line-height:1.05!important;
}
.bj-achievement-layout{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:12px!important;
}
.bj-achievement-card{
  min-height:132px!important;
  position:relative!important;
  opacity:.72;
}
.bj-achievement-card.unlocked{
  opacity:1;
  border-color:rgba(34,197,94,.72)!important;
  box-shadow:0 0 0 1px rgba(34,197,94,.18),0 0 22px rgba(34,197,94,.10)!important;
}
.bj-achievement-card strong{
  display:block!important;
  color:#fde68a!important;
  font-size:17px!important;
  margin-bottom:8px!important;
}
.bj-achievement-card span{
  color:#dbeafe!important;
  text-transform:none!important;
  letter-spacing:0!important;
  font-size:13px!important;
  line-height:1.35!important;
}
.bj-achievement-card .bj-progress-bar{margin-top:14px!important;}
.bj-learning-card h3{margin:7px 0 8px!important;color:#fde68a!important;font-size:24px!important;line-height:1.15!important;}
.bj-learning-card p{margin:0 0 14px!important;font-size:17px!important;line-height:1.45!important;color:#e0edff!important;}
.bj-learning-note-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:12px!important;
  margin-top:12px!important;
}
.bj-learning-note-grid strong{display:block!important;color:#f8fafc!important;font-size:16px!important;margin-bottom:6px!important;}
.bj-learning-note-grid p{margin:0!important;color:#cbd5e1!important;font-size:14px!important;line-height:1.4!important;}
.bj-history-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  margin-bottom:10px!important;
}
.bj-history-head strong{color:#fde68a!important;font-size:18px!important;}
.bj-player-dashboard .bj-log{
  max-height:260px!important;
  min-height:170px!important;
  background:#050914!important;
}
@media(max-width:1200px){
  .bj-dashboard-head{flex-direction:column!important;}
  .bj-dashboard-tabs{justify-content:flex-start!important;}
  .bj-dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .bj-player-dashboard .bj-session-stats{grid-column:1 / -1!important;}
  .bj-achievement-layout{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .bj-learning-note-grid{grid-template-columns:1fr!important;}
}
@media(max-width:760px){
  .bj-player-dashboard{display:none!important;}
}

/* Phase 4.9.2 Responsive Hand Layout: split hands stay inside the player seat */
.bj-seat{
  overflow:hidden!important;
}
.bj-seat.bj-seat-split{
  display:block!important;
  padding:10px!important;
}
.bj-seat-hands-scroll{
  width:100%!important;
  max-width:100%!important;
  display:flex!important;
  flex-wrap:nowrap!important;
  gap:10px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  padding:0 4px 8px!important;
  scroll-snap-type:x proximity!important;
  scrollbar-width:thin!important;
  scrollbar-color:rgba(234,179,8,.72) rgba(15,23,42,.55)!important;
}
.bj-seat-hands-scroll::-webkit-scrollbar{height:8px!important;}
.bj-seat-hands-scroll::-webkit-scrollbar-track{background:rgba(15,23,42,.55)!important;border-radius:999px!important;}
.bj-seat-hands-scroll::-webkit-scrollbar-thumb{background:rgba(234,179,8,.72)!important;border-radius:999px!important;}
.bj-seat.bj-seat-split .bj-seat-hand{
  flex:0 0 154px!important;
  width:154px!important;
  min-width:154px!important;
  max-width:154px!important;
  min-height:224px!important;
  scroll-snap-align:center!important;
  border:1px solid rgba(148,163,184,.22)!important;
  background:rgba(2,6,23,.16)!important;
}
.bj-seat.bj-seat-split .bj-seat-hand.active{
  border-color:rgba(234,179,8,.85)!important;
  background:rgba(234,179,8,.11)!important;
  box-shadow:0 0 0 1px rgba(234,179,8,.38),0 0 18px rgba(234,179,8,.18)!important;
}
.bj-split-hand-kicker{
  color:#fde68a!important;
  font-size:10px!important;
  line-height:1!important;
  font-weight:1000!important;
  letter-spacing:.05em!important;
  text-transform:uppercase!important;
  min-height:12px!important;
  margin:0 0 4px!important;
  opacity:.95!important;
}
.bj-seat.bj-seat-split .bj-hand{
  width:100%!important;
  min-height:82px!important;
  padding-left:8px!important;
  padding-right:6px!important;
  justify-content:center!important;
  overflow:visible!important;
}
.bj-seat.bj-seat-split .playing-card.decision-card.tc-card{
  width:46px!important;
  height:64px!important;
  font-size:22px!important;
  border-radius:5px!important;
}
.bj-hand.bj-overlap-cards{
  justify-content:flex-start!important;
  padding-left:18px!important;
}
.bj-hand.bj-overlap-cards .playing-card.decision-card.tc-card{
  margin-left:-18px!important;
  box-shadow:0 10px 18px rgba(0,0,0,.28)!important;
}
.bj-hand.bj-overlap-cards .playing-card.decision-card.tc-card:first-child{
  margin-left:0!important;
}
.bj-hand.bj-overlap-cards .playing-card.decision-card.tc-card.new-card{
  box-shadow:0 0 0 2px #eab308,0 0 18px rgba(234,179,8,.85),0 10px 18px rgba(0,0,0,.28)!important;
}
.bj-seat.bj-seat-split .tc-hand-result{
  max-width:132px!important;
  font-size:10px!important;
  line-height:1.12!important;
  padding:4px 6px!important;
}
.bj-seat.bj-seat-split .bj-bet-pill{
  font-size:11px!important;
  min-height:22px!important;
  gap:4px!important;
}
.bj-seat.bj-seat-split .bj-bet-result-amount{
  font-size:9px!important;
  padding:2px 4px!important;
}
.bj-seat.bj-seat-split .bj-seat-chip-layout,
.bj-seat.bj-seat-split .bj-seat-chip-layout-empty{
  min-height:26px!important;
  height:26px!important;
}
.bj-seat.bj-seat-split .bj-seat-chip{
  width:18px!important;
  height:18px!important;
  font-size:6px!important;
  border-width:3px!important;
}
.bj-seat.bj-seat-split .tc-seat-label{
  font-size:10px!important;
  line-height:1.15!important;
  padding-top:5px!important;
  white-space:normal!important;
}
/* A subtle visual cue that split seats can scroll horizontally. */
.bj-seat.bj-seat-split::after{
  content:"Scroll split hands →";
  display:block;
  margin:3px auto 0;
  color:rgba(253,230,138,.72);
  font-size:9.5px;
  font-weight:900;
  letter-spacing:.04em;
  text-transform:uppercase;
}
@media(max-width:1050px){
  .bj-seat.bj-seat-split .bj-seat-hand{flex-basis:148px!important;width:148px!important;min-width:148px!important;max-width:148px!important;}
}
@media(max-width:760px){
  .bj-seat.bj-seat-split .bj-seat-hand{flex-basis:142px!important;width:142px!important;min-width:142px!important;max-width:142px!important;}
  .bj-seat.bj-seat-split .playing-card.decision-card.tc-card{width:42px!important;height:58px!important;font-size:20px!important;}
}

/* Phase 5.2 Lifetime Dashboard */
.dashboard-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px}.dashboard-hero h1{margin-bottom:8px}.dashboard-hero-actions{display:flex;gap:12px;flex-wrap:wrap;justify-content:flex-end}.dashboard-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:18px 0}.overview-stat span,.dashboard-stat-grid .stat span{display:block;color:var(--muted);font-size:14px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}.dashboard-stats-panel,.recent-activity-panel{margin-top:18px}.dashboard-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}.dashboard-section-head h2{margin:0 0 6px}.dashboard-section-head p{margin:0}.stats-toggle{display:flex;gap:8px;background:#0b1220;border:1px solid #334155;border-radius:14px;padding:6px;flex:0 0 auto}.stats-toggle button{padding:10px 12px;border-radius:10px;font-size:14px}.stats-toggle button.active{background:var(--accent);color:#111827;border-color:transparent}.dashboard-stats-view.hidden{display:none}.dashboard-stat-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.dashboard-drill-grid .card h3{margin:0 0 8px;font-size:20px;color:var(--accent)}.dashboard-drill-grid .card p{margin-bottom:0}.activity-table-wrap{overflow:auto;border-radius:14px}.activity-table{width:100%;border-collapse:collapse;table-layout:auto}.activity-table th,.activity-table td{white-space:nowrap;vertical-align:middle}.activity-table th:nth-child(4),.activity-table th:nth-child(5),.activity-table th:nth-child(6),.activity-table td:nth-child(4),.activity-table td:nth-child(5),.activity-table td:nth-child(6){text-align:right}.activity-table th:nth-child(1){width:178px}.activity-table th:nth-child(2){width:126px}.activity-table th:nth-child(3){min-width:220px}.activity-table th:nth-child(4){width:130px}.activity-table th:nth-child(5){width:96px}.activity-table th:nth-child(6){width:92px}.activity-table th:nth-child(7){width:42px}.activity-session-name{font-weight:800}.activity-count{font-weight:900;color:var(--accent)}@media(max-width:900px){.dashboard-overview,.dashboard-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-hero,.dashboard-section-head{flex-direction:column}.dashboard-hero-actions{justify-content:flex-start}.stats-toggle{width:100%}.stats-toggle button{flex:1}}@media(max-width:560px){.dashboard-overview,.dashboard-stat-grid{grid-template-columns:1fr}}

/* Phase 5.3 Session Review */
.text-link{color:var(--accent);font-weight:900;text-decoration:none;white-space:nowrap}.text-link:hover{text-decoration:underline}.session-review-hero{margin-bottom:18px}.session-review-panel{margin-top:18px}.session-detail-table th{width:220px;color:var(--muted);text-align:left}.session-detail-table td{text-align:right;font-weight:900}.activity-table td:last-child{text-align:right}

/* Phase 5.5 Achievement Engine */
.achievements-panel { margin-top: 1.25rem; }
.achievement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.achievement-card {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
}
.achievement-card.locked { opacity: 0.72; }
.achievement-card.earned {
  border-color: rgba(245, 191, 0, 0.55);
  box-shadow: 0 0 0 1px rgba(245, 191, 0, 0.12), 0 10px 28px rgba(0, 0, 0, 0.18);
}
.achievement-badge {
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #07111f;
  background: linear-gradient(135deg, #facc15, #f59e0b);
  letter-spacing: -0.03em;
}
.achievement-card.locked .achievement-badge {
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.28);
}
.achievement-body { min-width: 0; width: 100%; }
.achievement-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.75rem;
}
.achievement-title-row h3 {
  margin: 0;
  font-size: 1.02rem;
}
.achievement-status {
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #facc15;
}
.achievement-card.locked .achievement-status { color: #94a3b8; }
.achievement-body p {
  margin: 0.35rem 0 0.75rem;
  color: #b7c8e8;
  line-height: 1.45;
}
.achievement-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.18);
}
.achievement-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #facc15, #f59e0b);
}
.achievement-meta {
  margin-top: 0.45rem;
  font-size: 0.82rem;
  color: #93a7c7;
}

/* Phase 5.6 Dashboard UX Tabs */
.dashboard-tabs{
  display:flex;
  gap:10px;
  padding:8px;
  margin:18px 0 18px;
  border:1px solid rgba(148,163,184,.28);
  border-radius:18px;
  background:rgba(2,6,23,.52);
  position:sticky;
  top:74px;
  z-index:2;
  backdrop-filter:blur(10px);
}
.dashboard-tabs button{
  flex:1;
  border:1px solid transparent;
  border-radius:13px;
  background:transparent;
  color:#cbd5e1;
  padding:13px 16px;
  font-weight:900;
  letter-spacing:.01em;
}
.dashboard-tabs button:hover{border-color:rgba(148,163,184,.34);background:rgba(15,23,42,.8)}
.dashboard-tabs button.active{background:var(--accent);color:#07111f;border-color:transparent;box-shadow:0 8px 24px rgba(234,179,8,.18)}
.dashboard-tab-panel{display:none;animation:dashboardFade .16s ease-out}
.dashboard-tab-panel.active{display:block}
@keyframes dashboardFade{from{opacity:.35;transform:translateY(4px)}to{opacity:1;transform:none}}
.dashboard-overview-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:18px}
.dashboard-mini-panel{margin-top:18px}.dashboard-mini-panel h2{font-size:26px}.dashboard-section-head.compact{margin-bottom:14px}.dashboard-section-head.compact h2{margin:0 0 4px}.compact-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.compact-achievement{margin-top:6px}.button-link{appearance:none;border:0;background:transparent;cursor:pointer;padding:0;font:inherit}.activity-list-preview{display:grid;gap:10px}.activity-preview-item{display:grid;grid-template-columns:1.5fr .7fr .7fr .7fr;gap:12px;align-items:center;padding:13px 14px;border:1px solid rgba(148,163,184,.22);border-radius:14px;background:rgba(15,23,42,.62);color:var(--text);text-decoration:none}.activity-preview-item:hover{border-color:rgba(234,179,8,.45);background:rgba(15,23,42,.9)}.activity-preview-item strong{display:block;color:#fff}.activity-preview-item small{display:block;color:var(--muted);font-weight:700}.activity-preview-item span:not(:first-child){text-align:right;font-weight:900;color:#facc15}.achievement-count-pill{align-self:flex-start;border:1px solid rgba(234,179,8,.35);background:rgba(234,179,8,.12);color:#facc15;border-radius:999px;padding:10px 14px;font-weight:900;white-space:nowrap}
@media(max-width:900px){.dashboard-tabs{position:static;overflow:auto}.dashboard-tabs button{min-width:135px}.dashboard-overview-grid{grid-template-columns:1fr}.activity-preview-item{grid-template-columns:1fr 1fr}.activity-preview-item span:nth-child(3),.activity-preview-item span:nth-child(4){text-align:left}}
@media(max-width:560px){.dashboard-tabs{gap:6px;padding:6px}.dashboard-tabs button{padding:10px 12px;min-width:118px}.compact-grid{grid-template-columns:1fr}.activity-preview-item{grid-template-columns:1fr}.activity-preview-item span:not(:first-child){text-align:left}}

/* Phase 6.0 dashboard clarity + coaching */
.overview-stat small{display:block;margin-top:6px;color:#94a3b8;font-size:12px;font-weight:700;text-transform:none;letter-spacing:0}
.coach-panel{margin-top:18px}.coach-panel .dashboard-section-head{align-items:center}.coach-panel .eyebrow{margin-bottom:5px}.coach-recommendation{display:flex;align-items:center;justify-content:space-between;gap:18px;border:1px solid rgba(234,179,8,.28);background:rgba(234,179,8,.08);border-radius:16px;padding:14px 16px;margin-top:14px}.coach-recommendation span{color:#bfdbfe;font-weight:900;text-transform:uppercase;letter-spacing:.05em;font-size:12px}.coach-recommendation strong{color:#facc15;font-size:20px}.coach-warning{border-color:rgba(251,191,36,.45);background:rgba(251,191,36,.1)}.coach-positive{border-color:rgba(34,197,94,.35);background:rgba(34,197,94,.08)}
.activity-source{display:inline-flex;align-items:center;gap:7px;font-size:13px;font-weight:900;color:#cbd5e1}.activity-source.simulator-source{color:#facc15}.activity-source.trainer-source{color:#bfdbfe}.activity-click-row{cursor:pointer;transition:background .18s ease,transform .18s ease}.activity-click-row:hover td,.activity-click-row:focus td{background:rgba(15,23,42,.76)}.activity-click-row:focus{outline:2px solid rgba(250,204,21,.55);outline-offset:-2px}.activity-open-cell{color:var(--accent);font-size:24px;font-weight:900;line-height:1}.activity-open-link{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:999px;color:var(--accent);text-decoration:none}.activity-click-row:hover .activity-open-link,.activity-open-link:hover{background:rgba(250,204,21,.12);text-decoration:none}
.achievement-category{margin-top:22px}.achievement-category:first-of-type{margin-top:0}.achievement-category-head{display:flex;justify-content:space-between;gap:16px;align-items:center;margin:0 0 12px}.achievement-category-head h3{margin:0;color:#f8fafc;font-size:22px}.achievement-category-head span{color:#facc15;font-weight:900;border:1px solid rgba(234,179,8,.25);border-radius:999px;padding:7px 11px;background:rgba(234,179,8,.08)}
.account-track-notice{margin:16px 0;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.notice-actions{display:flex;gap:10px;flex-wrap:wrap}.btn.small{padding:8px 12px;font-size:13px;border-radius:10px}.dashboard-drill-grid .eyebrow{font-size:11px;margin-bottom:8px;color:#bfdbfe}.dashboard-drill-grid .card{background:rgba(15,23,42,.5)}
@media(max-width:720px){.coach-panel .dashboard-section-head,.coach-recommendation{align-items:flex-start;flex-direction:column}.account-track-notice{align-items:flex-start}.activity-source{font-size:12px}}

/* Phase 6.0.2 Activity History Polish */
.activity-filter-bar{
  display:flex;
  align-items:end;
  gap:12px;
  flex-wrap:wrap;
  margin:0 0 18px;
  padding:14px;
  border:1px solid rgba(148,163,184,.18);
  border-radius:16px;
  background:rgba(15,23,42,.38);
}
.activity-filter-bar label{display:grid;gap:6px;color:var(--muted);font-weight:800;font-size:13px;letter-spacing:.03em;text-transform:uppercase}
.activity-filter-bar input[type="date"]{
  min-height:42px;
  padding:9px 12px;
  border-radius:12px;
  border:1px solid rgba(148,163,184,.28);
  background:#0b1220;
  color:var(--text);
  font:inherit;
}
.activity-count-summary{margin-left:auto;color:var(--muted);font-weight:800;white-space:nowrap}
.activity-table-polished{border-collapse:separate;border-spacing:0}
.activity-table-polished th{
  padding:12px 12px 14px;
  color:#dbeafe;
  font-weight:800;
  border-bottom:1px solid rgba(148,163,184,.22);
}
.activity-table-polished td{
  padding:15px 12px;
  border-bottom:1px solid rgba(148,163,184,.14);
  font-weight:500;
}
.activity-table-polished tbody tr:last-child td{border-bottom:0}
.activity-table-polished .activity-session-name{font-weight:650;color:#f8fafc}
.activity-table-polished .activity-count{font-weight:750;color:#facc15}
.activity-table-polished .activity-source{font-weight:650;color:#cbd5e1}
.activity-table-polished .activity-source.trainer-source{color:#bfdbfe}
.activity-table-polished .activity-source.simulator-source{color:#fde68a}
.activity-click-row:hover td,.activity-click-row:focus td{background:rgba(15,23,42,.55)}
.activity-pagination{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:14px;
  margin-top:18px;
  color:var(--muted);
  font-weight:800;
}
.btn.disabled{opacity:.45;cursor:not-allowed;filter:grayscale(.3)}
@media(max-width:760px){.activity-count-summary{margin-left:0;width:100%}.activity-pagination{justify-content:flex-start;flex-wrap:wrap}}

/* Phase 6.0.3 attempt detail review */
.session-attempts-table th,
.session-attempts-table td {
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  vertical-align: top;
}
.session-attempts-table tbody tr {
  border-top: 1px solid rgba(160, 190, 230, 0.16);
}
.session-attempts-table tbody tr:first-child {
  border-top: 0;
}
.session-attempts-table td {
  font-weight: 500;
}
.attempt-result {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: rgba(148, 163, 184, 0.14);
  color: #dbeafe;
}
.attempt-result.good {
  background: rgba(34, 197, 94, 0.16);
  color: #86efac;
}
.attempt-result.bad {
  background: rgba(239, 68, 68, 0.16);
  color: #fecaca;
}
.attempt-result.neutral {
  background: rgba(251, 191, 36, 0.13);
  color: var(--gold);
}

/* Phase 6.0.5 simulator round replay */
.simulator-rounds-table th:nth-child(1){width:76px;text-align:left}
.simulator-rounds-table th:nth-child(2){min-width:260px;text-align:left}
.simulator-rounds-table th:nth-child(3){min-width:190px;text-align:left}
.simulator-rounds-table th:nth-child(4),
.simulator-rounds-table th:nth-child(5),
.simulator-rounds-table th:nth-child(6),
.simulator-rounds-table td:nth-child(4),
.simulator-rounds-table td:nth-child(5),
.simulator-rounds-table td:nth-child(6){text-align:right}
.simulator-rounds-table th:nth-child(7),
.simulator-rounds-table td:nth-child(7){text-align:right;width:110px}
.session-hand-summary{white-space:normal;line-height:1.35;font-weight:650;color:#f8fafc}
.session-click-row{cursor:pointer}
.session-click-row:hover td{background:rgba(251,191,36,.055)}
.session-round-template-row.hidden{display:none!important}
.session-round-modal.hidden{display:none!important}
.session-round-modal{position:fixed;inset:0;z-index:10000;display:flex;align-items:center;justify-content:center;padding:22px}
.session-round-modal-backdrop{position:absolute;inset:0;background:rgba(2,6,23,.76);backdrop-filter:blur(6px)}
.session-round-modal-panel{position:relative;width:min(980px,94vw);max-height:86vh;overflow:auto;background:rgba(15,23,42,.98);border:1px solid rgba(148,163,184,.34);border-radius:22px;box-shadow:0 30px 90px rgba(0,0,0,.58);padding:26px}
.session-round-modal-close{position:sticky;top:0;float:right;z-index:2;width:42px;height:42px;border-radius:999px;padding:0;font-size:28px;line-height:1;background:#1f2937!important;color:#e5e7eb!important;border:1px solid #475569!important}
.round-modal-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:14px 0 20px}
.round-modal-card{border:1px solid rgba(148,163,184,.24);background:rgba(2,6,23,.28);border-radius:14px;padding:14px}
.round-modal-label{display:block;text-transform:uppercase;letter-spacing:.06em;color:#bfdbfe;font-size:.76rem;font-weight:800;margin-bottom:5px}
.round-modal-card strong{font-size:1.05rem;color:#fff}
.round-hand-list{display:grid;gap:14px;margin:12px 0 22px}
.round-hand-card{border:1px solid rgba(148,163,184,.24);border-radius:16px;padding:16px;background:rgba(2,6,23,.22)}
.round-hand-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px}
.round-hand-line{display:flex;justify-content:space-between;gap:14px;padding:8px 0;border-top:1px solid rgba(148,163,184,.16)}
.round-hand-line span{color:#bfdbfe;font-weight:800}
.round-hand-tags{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}
.round-hand-tags span{border:1px solid rgba(251,191,36,.4);color:#facc15;background:rgba(251,191,36,.08);border-radius:999px;padding:3px 8px;font-size:.78rem;font-weight:800}
.round-actions{margin-top:14px;border-top:1px solid rgba(148,163,184,.16);padding-top:12px}
.round-actions h4{margin:0 0 8px;color:#facc15}.round-actions ol{margin:0;padding-left:22px}.round-actions li{margin:0 0 12px}.round-actions li span{display:block;color:#dbeafe;font-weight:700}.round-actions li small{display:block;color:#93c5fd;margin-top:2px}.round-actions li p{margin:5px 0 0;color:#cbd5e1;font-size:.95rem}
@media(max-width:760px){.round-modal-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.session-round-modal-panel{padding:20px}.round-hand-head,.round-hand-line{flex-direction:column;align-items:flex-start}.simulator-rounds-table{min-width:920px}}


/* Phase 6.1 coach carousel + saved simulator settings */
.coach-controls{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-top:16px;
  color:var(--muted);
  font-size:14px;
}
.coach-controls .small,
.bj-saved-settings .small{padding:8px 11px;font-size:13px;border-radius:10px}
.panel-lite{
  background:rgba(15,23,42,.58);
  border:1px solid rgba(148,163,184,.26);
  border-radius:18px;
  padding:16px;
}
.bj-saved-settings{
  margin-top:18px;
}
.bj-saved-settings-head{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:flex-start;
  margin-bottom:12px;
}
.bj-saved-settings-head p{margin:6px 0 0;font-size:14px}
.bj-saved-settings-list{
  display:grid;
  gap:10px;
}
.bj-saved-setting-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  border:1px solid rgba(148,163,184,.22);
  background:rgba(2,6,23,.24);
  border-radius:14px;
  padding:12px;
}
.bj-saved-setting-row strong{display:block;color:#f8fafc}
.bj-saved-setting-row small{display:block;color:var(--muted);font-size:12px;margin-top:3px}
.bj-saved-setting-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.saved-default-pill{
  display:inline-block;
  vertical-align:middle;
  color:#111827;
  background:var(--accent);
  border-radius:999px;
  padding:2px 7px;
  font-size:11px;
  margin-left:6px;
}
.danger-button{border-color:rgba(248,113,113,.4)!important;color:#fecaca!important}
.session-round-open{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:96px;
  padding:8px 12px;
  border-radius:12px;
  background:rgba(251,191,36,.13);
  color:var(--accent);
  border:1px solid rgba(251,191,36,.35);
  font-weight:800;
  text-decoration:none;
}
.session-round-open:hover{background:rgba(251,191,36,.24);text-decoration:none}
.simulator-rounds-table .session-round-open{white-space:nowrap}
.account-track-notice{
  line-height:1.45;
}
.account-track-notice strong{
  display:inline-block;
  margin-right:6px;
}
@media(max-width:760px){
  .bj-saved-settings-head,.bj-saved-setting-row{flex-direction:column;align-items:stretch}
  .bj-saved-setting-actions{justify-content:flex-start}
}

/* Phase 6.1.1 saved table settings modal polish */
.bj-saved-settings-current,
.bj-saved-settings-empty{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  border:1px solid rgba(148,163,184,.22);
  background:rgba(2,6,23,.24);
  border-radius:14px;
  padding:13px 14px;
}
.bj-saved-settings-current strong{display:block;color:#f8fafc;font-size:1rem}
.bj-saved-settings-current small{display:block;color:var(--muted);font-size:12px;margin-top:4px}
.bj-saved-settings-eyebrow{
  display:block;
  color:#93c5fd;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:900;
  margin-bottom:3px;
}
.bj-saved-settings-message{
  border:1px solid rgba(34,197,94,.35);
  background:rgba(34,197,94,.08);
  color:#bbf7d0;
  border-radius:12px;
  padding:9px 11px;
  font-size:13px;
  margin-bottom:10px;
}
.bj-saved-settings-message.error{
  border-color:rgba(248,113,113,.42);
  background:rgba(248,113,113,.09);
  color:#fecaca;
}
.bj-settings-modal.hidden{display:none}
.bj-settings-modal{
  position:fixed;
  inset:0;
  z-index:10000;
  display:grid;
  place-items:center;
  padding:22px;
}
.bj-settings-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(2,6,23,.72);
  backdrop-filter:blur(6px);
}
.bj-settings-modal-panel{
  position:relative;
  width:min(680px,100%);
  max-height:min(82vh,760px);
  overflow:auto;
  background:linear-gradient(180deg,rgba(15,23,42,.98),rgba(2,6,23,.98));
  border:1px solid rgba(148,163,184,.32);
  border-radius:22px;
  box-shadow:0 30px 90px rgba(0,0,0,.55);
  padding:24px;
  color:#f8fafc;
}
.bj-settings-modal-x{
  position:absolute;
  top:14px;
  right:14px;
  width:36px;
  height:36px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.28);
  background:rgba(15,23,42,.72);
  color:#cbd5e1;
  font-size:22px;
  line-height:1;
  cursor:pointer;
}
.bj-settings-modal-kicker{
  color:var(--accent);
  text-transform:uppercase;
  letter-spacing:.1em;
  font-size:12px;
  font-weight:900;
  margin-bottom:8px;
}
.bj-settings-modal-panel h3{margin:0 44px 10px 0;font-size:1.8rem}
.bj-settings-modal-panel p{line-height:1.5}
.bj-settings-modal-label{display:block;margin-top:18px;color:#bfdbfe;font-weight:800}
.bj-settings-name-input{
  display:block;
  width:100%;
  margin-top:8px;
  background:rgba(2,6,23,.72);
  border:1px solid rgba(148,163,184,.38);
  border-radius:12px;
  color:#f8fafc;
  padding:12px 13px;
  font:inherit;
  font-weight:700;
}
.bj-settings-name-input:focus{outline:none;border-color:rgba(251,191,36,.75);box-shadow:0 0 0 3px rgba(251,191,36,.12)}
.bj-settings-name-input.input-error{border-color:#f87171;box-shadow:0 0 0 3px rgba(248,113,113,.14)}
.bj-settings-modal-note{font-size:13px;color:var(--muted);margin-top:10px!important}
.bj-settings-modal-actions{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  flex-wrap:wrap;
  border-top:1px solid rgba(148,163,184,.16);
  margin-top:20px;
  padding-top:16px;
}
.bj-settings-chooser-list{display:grid;gap:10px;margin-top:16px}
.bj-settings-chooser-row{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
  align-items:stretch;
  border:1px solid rgba(148,163,184,.22);
  background:rgba(15,23,42,.46);
  border-radius:15px;
  padding:12px;
}
.bj-settings-chooser-main{
  appearance:none;
  border:0;
  background:transparent;
  padding:0;
  color:#f8fafc;
  text-align:left;
  cursor:pointer;
}
.bj-settings-chooser-main strong{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  font-size:1rem;
  line-height:1.25;
}
.bj-settings-chooser-main small{display:block;color:var(--muted);font-size:12px;margin-top:4px}
.bj-settings-chooser-main:hover strong{color:var(--accent)}
.bj-settings-chooser-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-start;
}
.bj-settings-chooser-actions .small{
  min-width:98px;
}
body.bj-modal-open{overflow:hidden}
@media(max-width:760px){
  .bj-saved-settings-current,.bj-saved-settings-empty,.bj-settings-chooser-row{grid-template-columns:1fr;display:grid;align-items:stretch}
  .bj-settings-chooser-actions,.bj-settings-modal-actions{justify-content:flex-start}
}
@media(max-width:520px){
  .bj-settings-modal{padding:12px}
  .bj-settings-modal-panel{padding:18px}
  .bj-settings-chooser-actions .small{flex:1 1 130px;min-width:0}
}


/* Phase 6.2.2 saved preset manager definitive layout fix
   Keeps the preset name/details above actions so long button rows never squeeze the title column. */
.bj-settings-modal-panel{
  width:min(760px,100%) !important;
}
.bj-settings-chooser-list{
  display:grid !important;
  gap:12px !important;
  margin-top:18px !important;
}
.bj-settings-modal-panel .bj-settings-chooser-row{
  display:flex !important;
  flex-direction:column !important;
  align-items:stretch !important;
  justify-content:flex-start !important;
  gap:12px !important;
  min-width:0 !important;
  overflow:hidden !important;
}
.bj-settings-modal-panel .bj-settings-chooser-main{
  display:block !important;
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  flex:0 0 auto !important;
}
.bj-settings-modal-panel .bj-settings-chooser-main strong{
  display:flex !important;
  align-items:center !important;
  flex-wrap:wrap !important;
  gap:8px !important;
  max-width:100% !important;
  overflow-wrap:anywhere !important;
  word-break:normal !important;
  line-height:1.25 !important;
}
.bj-settings-modal-panel .bj-settings-chooser-main small{
  display:block !important;
  max-width:100% !important;
  overflow-wrap:anywhere !important;
  line-height:1.35 !important;
}
.bj-settings-modal-panel .bj-settings-chooser-actions{
  display:grid !important;
  grid-template-columns:repeat(auto-fit,minmax(104px,1fr)) !important;
  gap:8px !important;
  width:100% !important;
  justify-content:stretch !important;
}
.bj-settings-modal-panel .bj-settings-chooser-actions .small{
  width:100% !important;
  min-width:0 !important;
  justify-content:center !important;
  text-align:center !important;
  white-space:nowrap !important;
}
@media(max-width:520px){
  .bj-settings-modal-panel .bj-settings-chooser-actions{
    grid-template-columns:1fr 1fr !important;
  }
  .bj-settings-modal-panel .bj-settings-chooser-actions .danger-button{
    grid-column:1 / -1;
  }
}

/* Phase 6.2.3 preset workflow polish */
.bj-settings-modal-check{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:14px;
  color:#dbeafe;
  font-weight:800;
}
.bj-settings-modal-check input{
  width:18px;
  height:18px;
  accent-color:#fbbc05;
}
.bj-settings-chooser-main{cursor:default}
.bj-settings-chooser-main:hover strong{color:#f8fafc}
.bj-saved-setting-actions .secondary[disabled]{
  opacity:.55;
  cursor:not-allowed;
}


/* Phase 6.2.4 preset workflow button placement polish */
.bj-saved-settings-head-actions{
  display:flex;
  align-items:flex-start;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
  flex:0 0 auto;
}
.bj-saved-settings-head-actions .small{
  white-space:nowrap;
}
.bj-save-settings-primary{
  min-width:185px;
}
.bj-saved-settings-current{
  align-items:center;
}
.bj-saved-setting-actions .small{
  white-space:nowrap;
}
@media(max-width:760px){
  .bj-saved-settings-head-actions{
    justify-content:flex-start;
    width:100%;
  }
  .bj-save-settings-primary,
  .bj-saved-settings-head-actions .small{
    width:100%;
  }
}

/* Phase 6.3 round replay foundation */
.round-replay-timeline{
  list-style:none;
  margin:12px 0 22px;
  padding:0;
  display:grid;
  gap:10px;
}
.round-replay-step{
  display:grid;
  grid-template-columns:38px 1fr;
  gap:12px;
  align-items:start;
  border:1px solid rgba(148,163,184,.22);
  background:rgba(2,6,23,.24);
  border-radius:16px;
  padding:12px;
}
.round-replay-number{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:32px;
  height:32px;
  border-radius:999px;
  background:rgba(148,163,184,.16);
  color:#dbeafe;
  font-weight:900;
  font-size:.86rem;
}
.round-replay-step strong{display:block;color:#f8fafc;margin-bottom:3px}
.round-replay-step p{margin:0;color:#cbd5e1;line-height:1.42}
.round-replay-step.good{border-color:rgba(34,197,94,.34);background:rgba(34,197,94,.08)}
.round-replay-step.bad{border-color:rgba(248,113,113,.34);background:rgba(248,113,113,.08)}
.round-replay-step.cards{border-color:rgba(96,165,250,.34);background:rgba(96,165,250,.08)}
.round-replay-step.context{border-color:rgba(251,191,36,.32);background:rgba(251,191,36,.07)}
.round-log-details{
  margin:0 0 24px;
  border:1px solid rgba(148,163,184,.2);
  border-radius:14px;
  padding:10px 12px;
  background:rgba(15,23,42,.38);
}
.round-log-details summary{cursor:pointer;color:#bfdbfe;font-weight:900}
.round-log-details ul{margin:10px 0 0;padding-left:20px;color:#cbd5e1}
.round-log-details li{margin:0 0 6px}

/* Phase 6.3.2: captured simulator replay events */
.round-replay-step.result{border-color:rgba(251,191,36,.38);background:rgba(251,191,36,.08)}
.round-replay-step.decision{border-color:rgba(167,139,250,.35);background:rgba(167,139,250,.08)}

/* Phase 6.3.3: In-simulator replay mode foundation */
.bj-action-panel .btnrow #bj-replay-last {
  white-space: nowrap;
}
.bj-replay-mode-active .bj-table {
  box-shadow: 0 0 0 2px rgba(255, 204, 0, .22), 0 24px 70px rgba(0,0,0,.45);
}
.bj-replay-panel {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(145, 178, 220, .24);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(13, 24, 45, .96), rgba(7, 13, 28, .96));
}
.bj-replay-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.bj-replay-head h3 {
  margin: 4px 0 0;
  font-size: 1.25rem;
}
 .bj-replay-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 12px;
}
.bj-replay-controls .bj-replay-autoplay.active {
  border-color: rgba(251, 191, 36, .65);
  color: #facc15;
}
.bj-replay-speed {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(145, 178, 220, .18);
  border-radius: 12px;
  background: rgba(15, 23, 42, .72);
  color: var(--muted, #b9cff2);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .03em;
}
.bj-replay-speed select {
  min-height: 30px;
  border-radius: 9px;
  border: 1px solid rgba(145, 178, 220, .22);
  background: rgba(3, 9, 23, .9);
  color: #fff;
  font-weight: 800;
  padding: 3px 8px;
}
.bj-replay-current,
.bj-replay-coach {
  border: 1px solid rgba(145, 178, 220, .18);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(3, 9, 23, .45);
  margin-bottom: 12px;
}
.bj-replay-current strong,
.bj-replay-current span {
  display: block;
}
.bj-replay-current span {
  margin-top: 4px;
  color: var(--muted, #b9cff2);
  line-height: 1.45;
}
.bj-replay-coach span {
  display: block;
  color: var(--gold, #ffcc00);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
  font-size: .78rem;
  margin-bottom: 5px;
}
.bj-replay-coach p {
  margin: 0;
  color: #e9f2ff;
  line-height: 1.45;
}
.bj-replay-timeline {
  display: grid;
  gap: 8px;
  max-height: 280px;
  overflow: auto;
  padding-right: 4px;
}
.bj-replay-event {
  width: 100%;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  align-items: start;
  text-align: left;
  border-radius: 14px;
  border: 1px solid rgba(145, 178, 220, .18);
  background: rgba(20, 32, 52, .72);
  color: #fff;
  padding: 10px 12px;
  cursor: pointer;
}
.bj-replay-event:hover,
.bj-replay-event.active {
  border-color: rgba(255, 204, 0, .62);
  background: rgba(43, 45, 38, .88);
}
.bj-replay-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 204, 0, .14);
  color: var(--gold, #ffcc00);
  font-weight: 900;
}
.bj-replay-event strong,
.bj-replay-event em {
  display: block;
}
.bj-replay-event em {
  margin-top: 2px;
  color: var(--muted, #b9cff2);
  font-style: normal;
  font-size: .9rem;
  line-height: 1.35;
}
.bj-replay-empty {
  color: var(--muted, #b9cff2);
  padding: 12px;
  border: 1px dashed rgba(145, 178, 220, .22);
  border-radius: 14px;
}
@media (max-width: 720px) {
  .bj-replay-head {
    flex-direction: column;
  }
  .bj-replay-head .secondary,
  .bj-replay-controls button,
  .bj-replay-speed {
    width: 100%;
    justify-content: space-between;
  }
}

/* Phase 6.3.4: visual replay table rendering */
.bj-replay-seat .tc-hand-result{
  color:#bfdbfe;
}
.bj-replay-seat-tag{
  display:inline-flex;
  align-items:center;
  padding:2px 8px;
  border-radius:999px;
  border:1px solid rgba(251,191,36,.45);
  color:#facc15;
  font-size:.72rem;
  font-weight:900;
  letter-spacing:.02em;
  margin-left:8px;
}
.bj-replay-mode-active .bj-action-panel #bj-action-prompt{
  color:#bfdbfe;
}
.round-replay-coach{
  margin-top:10px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(251,191,36,.22);
  background:rgba(251,191,36,.07);
  color:#fef3c7;
  font-size:.92rem;
  line-height:1.4;
}

/* Phase 6.3.6 - Contextual Replay Coach */
.bj-replay-coach {
  padding: 0;
  background: transparent;
  border: 0;
}
.bj-replay-coach-card {
  border: 1px solid rgba(145, 178, 220, .2);
  border-radius: 16px;
  padding: 13px 14px;
  background: linear-gradient(180deg, rgba(15, 28, 50, .92), rgba(6, 14, 28, .88));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.bj-replay-coach-card.good {
  border-color: rgba(36, 204, 125, .36);
  background: linear-gradient(180deg, rgba(18, 55, 42, .92), rgba(6, 22, 19, .88));
}
.bj-replay-coach-card.bad {
  border-color: rgba(255, 104, 104, .42);
  background: linear-gradient(180deg, rgba(67, 30, 34, .92), rgba(29, 11, 15, .88));
}
.bj-replay-coach-card > strong {
  display: block;
  color: var(--gold, #ffcc00);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 900;
  font-size: .78rem;
  margin-bottom: 6px;
}
.bj-replay-coach-card p {
  margin: 0;
  color: #e9f2ff;
  line-height: 1.45;
}
.bj-replay-coach-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.bj-replay-coach-grid div {
  border: 1px solid rgba(145, 178, 220, .16);
  border-radius: 12px;
  background: rgba(3, 9, 23, .35);
  padding: 8px 9px;
}
.bj-replay-coach-grid span {
  display: block;
  margin: 0 0 3px;
  color: var(--muted, #b9cff2);
  text-transform: uppercase;
  letter-spacing: .07em;
  font-size: .66rem;
  font-weight: 800;
}
.bj-replay-coach-grid strong {
  display: block;
  color: #fff;
  font-size: .88rem;
  font-weight: 900;
}
.round-replay-coach {
  margin-top: 9px;
  border: 1px solid rgba(145, 178, 220, .18);
  border-left: 3px solid var(--gold, #ffcc00);
  border-radius: 12px;
  background: rgba(5, 13, 28, .58);
  color: #e9f2ff;
  padding: 9px 10px;
  line-height: 1.45;
  font-size: .92rem;
}
@media (max-width: 560px) {
  .bj-replay-coach-grid {
    grid-template-columns: 1fr;
  }
}


/* Phase 6.3.7a - Replay UX polish */
.bj-replay-panel{
  position:relative;
  overflow:hidden;
}
.bj-replay-panel::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:3px;
  background:linear-gradient(90deg, rgba(255,204,0,.95), rgba(96,165,250,.85), rgba(34,197,94,.75));
  pointer-events:none;
}
.bj-replay-head{
  padding-top:4px;
}
.bj-replay-head h3{
  letter-spacing:-.02em;
}
.bj-replay-controls{
  border:1px solid rgba(145,178,220,.16);
  background:rgba(4,12,26,.32);
  border-radius:16px;
  padding:9px;
}
.bj-replay-current{
  border-color:rgba(255,204,0,.34);
  background:linear-gradient(180deg, rgba(255,204,0,.1), rgba(4,12,26,.58));
}
.bj-replay-current-kicker{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
  margin-bottom:6px;
  color:var(--muted,#b9cff2);
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:.68rem;
  font-weight:900;
}
.bj-replay-mini-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:54px;
  padding:3px 8px;
  border-radius:999px;
  border:1px solid rgba(145,178,220,.2);
  background:rgba(145,178,220,.09);
  color:#dbeafe;
  font-size:.64rem;
}
.bj-replay-mini-badge.cards{border-color:rgba(96,165,250,.34);background:rgba(96,165,250,.13);color:#bfdbfe}
.bj-replay-mini-badge.good{border-color:rgba(34,197,94,.34);background:rgba(34,197,94,.13);color:#bbf7d0}
.bj-replay-mini-badge.bad{border-color:rgba(248,113,113,.38);background:rgba(248,113,113,.13);color:#fecaca}
.bj-replay-mini-badge.result{border-color:rgba(251,191,36,.38);background:rgba(251,191,36,.13);color:#fef3c7}
.bj-replay-timeline{
  gap:9px;
}
.bj-replay-event{
  position:relative;
  transition:transform .14s ease, border-color .14s ease, background .14s ease, opacity .14s ease;
}
.bj-replay-event.completed{
  opacity:.72;
  border-color:rgba(34,197,94,.24);
  background:rgba(34,197,94,.055);
}
.bj-replay-event.completed .bj-replay-icon{
  background:rgba(34,197,94,.16);
  color:#86efac;
}
.bj-replay-event.upcoming{
  opacity:.54;
  background:rgba(3,9,23,.22);
}
.bj-replay-event.active{
  transform:translateX(3px);
  border-color:rgba(255,204,0,.58);
  box-shadow:0 0 0 1px rgba(255,204,0,.14), 0 10px 24px rgba(0,0,0,.18);
}
.bj-replay-event.active::before{
  content:"";
  position:absolute;
  left:-1px;
  top:10px;
  bottom:10px;
  width:3px;
  border-radius:999px;
  background:var(--gold,#ffcc00);
}
.bj-replay-event-body{
  display:block;
  min-width:0;
}
.bj-replay-event-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.bj-replay-event-top small{
  flex:0 0 auto;
  color:rgba(219,234,254,.62);
  font-size:.68rem;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:900;
}
.bj-replay-coach-card{
  position:relative;
}
.bj-replay-coach-card::before{
  content:"Coach";
  position:absolute;
  top:10px;
  right:12px;
  border:1px solid rgba(255,204,0,.22);
  background:rgba(255,204,0,.08);
  color:#fef3c7;
  border-radius:999px;
  padding:3px 8px;
  font-size:.62rem;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.round-replay-step{
  position:relative;
}
.round-replay-step::after{
  content:"";
  position:absolute;
  left:22px;
  top:46px;
  bottom:-14px;
  width:1px;
  background:rgba(145,178,220,.14);
}
.round-replay-step:last-child::after{display:none}
.round-replay-step .round-replay-number{
  box-shadow:0 0 0 4px rgba(255,204,0,.06);
}

/* Phase 6.3.7b - Replay animation polish */
@keyframes bjReplayCardIn {
  0% { opacity: 0; transform: translateY(-14px) scale(.92) rotate(-2deg); }
  58% { opacity: 1; transform: translateY(3px) scale(1.04) rotate(.8deg); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
}
@keyframes bjReplayTableStepForward {
  0% { filter: brightness(1); }
  45% { filter: brightness(1.08) saturate(1.05); }
  100% { filter: brightness(1); }
}
@keyframes bjReplayTableStepBack {
  0% { filter: brightness(1); }
  45% { filter: brightness(.92) saturate(.94); }
  100% { filter: brightness(1); }
}
@keyframes bjReplayCountPulse {
  0% { transform: translateY(0); box-shadow: none; }
  40% { transform: translateY(-1px); box-shadow: 0 0 0 3px rgba(255,255,255,.04), 0 0 22px rgba(255,204,0,.18); }
  100% { transform: translateY(0); box-shadow: none; }
}
.bj-replay-mode-active .bj-table.bj-replay-step-forward{
  animation: bjReplayTableStepForward .32s ease both;
}
.bj-replay-mode-active .bj-table.bj-replay-step-back{
  animation: bjReplayTableStepBack .32s ease both;
}
.bj-replay-mode-active .playing-card.decision-card.tc-card.new-card{
  animation: bjReplayCardIn .34s cubic-bezier(.2,.85,.25,1.25) both;
  box-shadow:0 0 0 2px #eab308,0 0 22px rgba(234,179,8,.95),0 14px 28px rgba(0,0,0,.34)!important;
}
.bj-replay-mode-active .bj-bet-pill{
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.bj-replay-mode-active .bj-replay-seat:hover .bj-bet-pill,
.bj-replay-mode-active .bj-replay-seat .bj-bet-pill:focus-within{
  transform: translateY(-1px);
  border-color: rgba(251,191,36,.42);
  box-shadow:0 0 18px rgba(251,191,36,.12);
}
.bj-replay-mode-active .bj-action-panel #bj-action-prompt.bj-replay-count-pulse{
  animation: bjReplayCountPulse .52s ease both;
  border-radius:12px;
  padding:8px 10px;
}
.bj-replay-mode-active .bj-action-panel #bj-action-prompt.bj-replay-count-rise{
  color:#bbf7d0;
}
.bj-replay-mode-active .bj-action-panel #bj-action-prompt.bj-replay-count-fall{
  color:#fecaca;
}
@media (prefers-reduced-motion: reduce){
  .bj-replay-mode-active .playing-card.decision-card.tc-card.new-card,
  .bj-replay-mode-active .bj-table.bj-replay-step-forward,
  .bj-replay-mode-active .bj-table.bj-replay-step-back,
  .bj-replay-mode-active .bj-action-panel #bj-action-prompt.bj-replay-count-pulse{
    animation:none!important;
  }
}

/* Phase 6.4.4 Recommendation Cards */
.coach-card-panel{
  overflow:hidden;
}
.coach-card-head{
  align-items:flex-start;
}
.coach-score-summary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(250,204,21,.32);
  background:rgba(250,204,21,.1);
  color:#facc15;
  border-radius:999px;
  padding:9px 13px;
  font-size:13px;
  font-weight:900;
  white-space:nowrap;
}
.coach-card-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin-top:16px;
}
.coach-card{
  position:relative;
  display:flex;
  flex-direction:column;
  gap:12px;
  min-height:100%;
  border:1px solid rgba(148,163,184,.22);
  background:linear-gradient(180deg,rgba(15,23,42,.92),rgba(15,23,42,.64));
  border-radius:20px;
  padding:16px;
  box-shadow:0 16px 38px rgba(0,0,0,.18);
}
.coach-card::before{
  content:"";
  position:absolute;
  inset:0 0 auto;
  height:4px;
  border-radius:20px 20px 0 0;
  background:rgba(96,165,250,.6);
}
.coach-card-warning{
  border-color:rgba(251,191,36,.38);
  background:linear-gradient(180deg,rgba(68,47,11,.72),rgba(15,23,42,.72));
}
.coach-card-warning::before{background:linear-gradient(90deg,#f59e0b,#facc15)}
.coach-card-positive{
  border-color:rgba(34,197,94,.32);
  background:linear-gradient(180deg,rgba(20,83,45,.34),rgba(15,23,42,.72));
}
.coach-card-positive::before{background:linear-gradient(90deg,#22c55e,#86efac)}
.coach-card-topline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.coach-rank{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  border-radius:12px;
  background:rgba(15,23,42,.9);
  color:#f8fafc;
  border:1px solid rgba(148,163,184,.28);
  font-weight:1000;
}
.coach-priority-badge{
  color:#facc15;
  border:1px solid rgba(250,204,21,.28);
  background:rgba(250,204,21,.1);
  border-radius:999px;
  padding:6px 9px;
  font-size:12px;
  font-weight:900;
  white-space:nowrap;
}
.coach-card h3{
  margin:0;
  color:#fff;
  font-size:20px;
  line-height:1.1;
}
.coach-card p{
  margin:0;
  color:#cbd5e1;
  line-height:1.45;
  font-size:14px;
}
.coach-card-practice{
  margin-top:auto;
  border:1px solid rgba(148,163,184,.2);
  background:rgba(2,6,23,.38);
  border-radius:16px;
  padding:12px;
}
.coach-card-practice span{
  display:block;
  color:#93c5fd;
  font-size:11px;
  letter-spacing:.055em;
  text-transform:uppercase;
  font-weight:900;
  margin-bottom:4px;
}
.coach-card-practice strong{
  display:block;
  color:#facc15;
  font-size:16px;
  line-height:1.25;
}
.coach-card-meta{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  min-height:0;
}
.coach-card-meta span{
  display:inline-flex;
  align-items:center;
  border:1px solid rgba(148,163,184,.2);
  background:rgba(15,23,42,.58);
  color:#bfdbfe;
  border-radius:999px;
  padding:5px 8px;
  font-size:12px;
  font-weight:800;
}
.coach-card-actions{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
}
.coach-empty-message{
  margin-top:14px;
  border:1px dashed rgba(148,163,184,.34);
  border-radius:16px;
  padding:14px;
  background:rgba(15,23,42,.45);
}
@media(max-width:980px){
  .coach-card-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:680px){
  .coach-card-head{flex-direction:column;align-items:flex-start}
  .coach-card-grid{grid-template-columns:1fr}
  .coach-score-summary{white-space:normal}
}

/* Phase 6.4.5 Coach Recommendation Pagination + Snooze */
.coach-card-explainer{
  margin-top:10px;
  color:#bfdbfe;
  font-size:14px;
  line-height:1.45;
  max-width:880px;
}
.coach-card-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.coach-priority-badge{
  color:#bfdbfe;
  border-color:rgba(96,165,250,.28);
  background:rgba(37,99,235,.12);
}
.coach-card-warning .coach-priority-badge:first-letter,
.coach-priority-badge:first-letter{
  text-transform:uppercase;
}
.coach-snooze-menu-wrap{
  position:relative;
  display:inline-flex;
}
.coach-snooze-menu{
  position:absolute;
  right:0;
  top:calc(100% + 8px);
  z-index:25;
  min-width:170px;
  border:1px solid rgba(148,163,184,.28);
  background:#0f172a;
  border-radius:14px;
  padding:6px;
  box-shadow:0 18px 42px rgba(0,0,0,.38);
}
.coach-snooze-menu button{
  display:block;
  width:100%;
  border:0;
  background:transparent;
  color:#e5f0ff;
  text-align:left;
  border-radius:10px;
  padding:10px 11px;
  font-weight:900;
  cursor:pointer;
}
.coach-snooze-menu button:hover{
  background:rgba(96,165,250,.16);
}
.coach-card-pagination{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  margin-top:16px;
  padding-top:14px;
  border-top:1px solid rgba(148,163,184,.18);
}
.coach-card-pagination span{
  color:#bfdbfe;
  font-weight:900;
  font-size:13px;
}
.coach-card-pagination button:disabled{
  opacity:.45;
  cursor:not-allowed;
}
.coach-card-dismissed{
  display:none!important;
}
@media(max-width:980px){
  .coach-card-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:680px){
  .coach-card-grid{grid-template-columns:1fr}
  .coach-card-pagination{justify-content:flex-start;flex-wrap:wrap}
}

/* Phase 6.4.5b Coach Card UI refinement */
.coach-card-panel{
  overflow:visible;
}
.coach-card-grid{
  align-items:stretch;
}
.coach-card{
  height:100%;
  gap:10px;
}
.coach-card h3{
  min-height:44px;
  display:flex;
  align-items:flex-start;
}
.coach-card > p{
  min-height:72px;
}
.coach-card-practice{
  margin-top:0;
}
.coach-card-actions{
  margin-top:auto;
}
.coach-card-actions .btn.small{
  min-width:86px;
  justify-content:center;
}
.coach-snooze-menu{
  top:auto;
  bottom:calc(100% + 8px);
  right:0;
}
.coach-snooze-menu::after{
  content:"";
  position:absolute;
  right:22px;
  bottom:-7px;
  width:12px;
  height:12px;
  transform:rotate(45deg);
  background:#0f172a;
  border-right:1px solid rgba(148,163,184,.28);
  border-bottom:1px solid rgba(148,163,184,.28);
}
@media(max-width:980px){
  .coach-card h3,.coach-card > p{min-height:0}
}

/* Phase 6.4.5c Coach card micro UI tweaks */
.coach-card-practice span{
  display:flex;
  align-items:center;
  gap:5px;
}
.coach-card-practice span em{
  color:inherit;
  font-style:normal;
  font-size:inherit;
  letter-spacing:inherit;
  text-transform:uppercase;
  font-weight:900;
}
.coach-card-actions .btn.small{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  line-height:1;
}
.coach-snooze-menu{
  min-width:150px;
  padding:6px;
}
.coach-snooze-menu button{
  font-size:13px;
  line-height:1.25;
  padding:8px 10px;
  font-weight:800;
}

/* Phase 6.4.6 - Coach Memory / trend notes */
.coach-memory-panel{
  margin-top:1.5rem;
  padding-top:1.25rem;
  border-top:1px solid rgba(148,163,184,.18);
}
.coach-memory-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:1rem;
  margin-bottom:.85rem;
}
.coach-memory-head h3{
  margin:0 0 .2rem;
  font-size:1.15rem;
}
.coach-memory-head p{
  margin:0;
  color:#b8d4ff;
  font-size:.9rem;
}
.coach-memory-head > span{
  flex:0 0 auto;
  border:1px solid rgba(250,204,21,.45);
  background:rgba(250,204,21,.10);
  color:#ffd84a;
  border-radius:999px;
  padding:.45rem .7rem;
  font-weight:900;
  font-size:.76rem;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.coach-memory-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:.85rem;
}
.coach-memory-card{
  min-height:132px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:.8rem;
  padding:1rem;
  border-radius:18px;
  background:rgba(15,23,42,.72);
  border:1px solid rgba(96,165,250,.24);
  box-shadow:0 14px 30px rgba(0,0,0,.18);
}
.coach-memory-card h4{
  margin:0 0 .45rem;
  font-size:1rem;
}
.coach-memory-card p{
  margin:0;
  color:#dbeafe;
  font-size:.9rem;
  line-height:1.45;
}
.coach-memory-card strong{
  align-self:flex-start;
  border-radius:999px;
  padding:.38rem .62rem;
  font-size:.8rem;
  font-weight:900;
  color:#fff;
  background:rgba(59,130,246,.22);
  border:1px solid rgba(96,165,250,.35);
}
.coach-memory-positive{border-color:rgba(34,197,94,.38);}
.coach-memory-positive strong{background:rgba(34,197,94,.22);border-color:rgba(34,197,94,.42);}
.coach-memory-warning{border-color:rgba(250,204,21,.42);}
.coach-memory-warning strong{background:rgba(250,204,21,.16);border-color:rgba(250,204,21,.42);color:#fde68a;}
@media (max-width: 900px){
  .coach-memory-grid{grid-template-columns:1fr;}
  .coach-memory-head{flex-direction:column;}
}

/* Phase 6.5.1 - Progress Analytics foundation */
.analytics-foundation{
  margin-bottom:1.4rem;
  padding:1.1rem;
  border:1px solid rgba(96,165,250,.20);
  border-radius:22px;
  background:linear-gradient(180deg,rgba(15,23,42,.72),rgba(2,6,23,.45));
  box-shadow:0 20px 40px rgba(0,0,0,.18);
}
.analytics-head{
  margin-bottom:1rem;
}
.analytics-head h3{
  margin:.1rem 0 .25rem;
  font-size:1.45rem;
}
.analytics-pill{
  flex:0 0 auto;
  align-self:flex-start;
  border:1px solid rgba(250,204,21,.42);
  background:rgba(250,204,21,.10);
  color:#fde047;
  border-radius:999px;
  padding:.48rem .72rem;
  font-size:.75rem;
  line-height:1;
  font-weight:900;
  letter-spacing:.045em;
  text-transform:uppercase;
}
.analytics-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:.95rem;
}
.analytics-card{
  position:relative;
  overflow:hidden;
  border:1px solid rgba(148,163,184,.22);
  border-radius:20px;
  background:rgba(15,23,42,.76);
  padding:1rem;
  min-height:270px;
}
.analytics-card::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:3px;
  background:linear-gradient(90deg,#facc15,rgba(96,165,250,.85));
  opacity:.9;
}
.analytics-card-wide{
  grid-column:1 / -1;
}
.analytics-card-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:.85rem;
  margin-bottom:.85rem;
}
.analytics-card-head h4{
  margin:0 0 .2rem;
  font-size:1.05rem;
}
.analytics-card-head p{
  margin:0;
  color:#bfdbfe;
  font-size:.88rem;
  line-height:1.35;
}
.analytics-card-head span{
  flex:0 0 auto;
  border-radius:999px;
  border:1px solid rgba(96,165,250,.35);
  background:rgba(59,130,246,.16);
  color:#dbeafe;
  padding:.38rem .58rem;
  font-size:.74rem;
  font-weight:900;
  white-space:nowrap;
}
.hc-chart{
  display:block;
  width:100%;
  max-width:100%;
  border-radius:16px;
  background:rgba(2,6,23,.22);
}
.analytics-empty{
  min-height:170px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  border:1px dashed rgba(148,163,184,.28);
  border-radius:16px;
  color:#bfdbfe;
  padding:1rem;
  background:rgba(2,6,23,.22);
  font-weight:800;
}
@media(max-width:900px){
  .analytics-grid{grid-template-columns:1fr;}
  .analytics-card-wide{grid-column:auto;}
  .analytics-card-head{flex-direction:column;}
}

/* Phase 6.5.1b - Statistics tab hierarchy polish */
.dashboard-detail-controls{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:1rem;
  margin:1.2rem 0 1rem;
  padding-top:1.15rem;
  border-top:1px solid rgba(148,163,184,.18);
}
.dashboard-detail-controls h3{
  margin:.12rem 0 .22rem;
  font-size:1.4rem;
}
.dashboard-detail-controls p{
  margin:0;
}
.stats-toggle.stats-toggle-tabs{
  background:rgba(2,6,23,.56);
  border:1px solid rgba(148,163,184,.28);
  border-radius:16px;
  padding:6px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}
.stats-toggle.stats-toggle-tabs button{
  background:rgba(30,41,59,.72);
  color:#dbeafe;
  border:1px solid rgba(148,163,184,.25);
  box-shadow:none;
  min-width:152px;
  white-space:nowrap;
  transition:background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.stats-toggle.stats-toggle-tabs button:hover{
  transform:translateY(-1px);
  background:rgba(51,65,85,.86);
  border-color:rgba(96,165,250,.38);
}
.stats-toggle.stats-toggle-tabs button.active{
  background:var(--accent);
  color:#111827;
  border-color:rgba(250,204,21,.82);
  box-shadow:0 10px 22px rgba(250,204,21,.18);
}
.dashboard-stats-view{
  animation:hcStatsFade .18s ease both;
}
@keyframes hcStatsFade{
  from{opacity:.35;transform:translateY(4px);}
  to{opacity:1;transform:translateY(0);}
}
@media(max-width:900px){
  .dashboard-detail-controls{flex-direction:column;align-items:stretch;}
  .stats-toggle.stats-toggle-tabs{width:100%;}
  .stats-toggle.stats-toggle-tabs button{min-width:0;flex:1;}
}

/* Phase 6.5.2 - Trainer-by-trainer trend charts */
.analytics-pill.subtle{
  border-color:rgba(96,165,250,.35);
  background:rgba(59,130,246,.13);
  color:#bfdbfe;
}
.trainer-trends-block{
  margin-top:1.1rem;
  padding-top:1.05rem;
  border-top:1px solid rgba(148,163,184,.16);
}
.trainer-trends-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:1rem;
  margin-bottom:.95rem;
}
.trainer-trends-head h4{
  margin:.1rem 0 .2rem;
  font-size:1.2rem;
}
.trainer-trend-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:.85rem;
}
.trainer-trend-card{
  position:relative;
  overflow:hidden;
  border:1px solid rgba(96,165,250,.20);
  border-radius:18px;
  background:linear-gradient(180deg,rgba(15,23,42,.78),rgba(2,6,23,.38));
  padding:.9rem;
  min-width:0;
}
.trainer-trend-card::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:2px;
  background:linear-gradient(90deg,rgba(96,165,250,.9),rgba(250,204,21,.75));
}
.trainer-trend-meta{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:.75rem;
  margin-bottom:.75rem;
}
.trainer-trend-meta h5{
  margin:0 0 .25rem;
  font-size:.98rem;
  line-height:1.18;
}
.trainer-trend-meta p{
  margin:0;
  color:#bfdbfe;
  font-size:.78rem;
  font-weight:800;
}
.trainer-trend-score{
  flex:0 0 auto;
  text-align:right;
}
.trainer-trend-score strong{
  display:block;
  color:#facc15;
  font-size:1.05rem;
  line-height:1.1;
}
.trainer-trend-score span{
  display:inline-flex;
  margin-top:.28rem;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.24);
  background:rgba(15,23,42,.70);
  color:#dbeafe;
  padding:.22rem .42rem;
  font-size:.68rem;
  font-weight:900;
  white-space:nowrap;
}
.trainer-trend-score span.up{color:#bbf7d0;border-color:rgba(34,197,94,.36);background:rgba(34,197,94,.13);}
.trainer-trend-score span.down{color:#fecaca;border-color:rgba(248,113,113,.36);background:rgba(248,113,113,.12);}
.trainer-trend-score span.flat{color:#bfdbfe;}
.hc-trend-spark{
  height:120px !important;
}
.trainer-trends-empty{
  min-height:110px;
}
@media(max-width:1050px){
  .trainer-trend-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:760px){
  .trainer-trends-head{flex-direction:column;}
  .trainer-trend-grid{grid-template-columns:1fr;}
}


/* Phase 6.5.3 - Decision accuracy trend charts */
.decision-trends-block{
  margin-top:1.1rem;
  padding-top:1.05rem;
  border-top:1px solid rgba(148,163,184,.16);
}
.decision-trend-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:.85rem;
}
.decision-trend-card::before{
  background:linear-gradient(90deg,rgba(167,139,250,.9),rgba(96,165,250,.85));
}
@media(max-width:1180px){
  .decision-trend-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:760px){
  .decision-trend-grid{grid-template-columns:1fr;}
}

/* Phase 6.5.4 - Simulator performance analytics */
.simulator-performance-block{
  margin-top:1.1rem;
  padding-top:1.05rem;
  border-top:1px solid rgba(148,163,184,.16);
}
.sim-performance-summary{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:.85rem;
  margin-bottom:.95rem;
}
.sim-performance-stat{
  border:1px solid rgba(96,165,250,.22);
  border-radius:18px;
  background:linear-gradient(180deg,rgba(15,23,42,.82),rgba(2,6,23,.42));
  padding:1rem;
  min-width:0;
  position:relative;
  overflow:hidden;
}
.sim-performance-stat::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:2px;
  background:linear-gradient(90deg,rgba(250,204,21,.92),rgba(96,165,250,.78));
}
.sim-performance-stat span{
  display:block;
  color:#bfdbfe;
  font-size:.76rem;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
  margin-bottom:.45rem;
}
.sim-performance-stat strong{
  display:block;
  color:#facc15;
  font-size:1.65rem;
  line-height:1.05;
  margin-bottom:.35rem;
}
.sim-performance-stat small{
  display:block;
  color:#93c5fd;
  font-size:.76rem;
  line-height:1.3;
  font-weight:800;
}
.sim-bankroll-card{
  margin-top:.3rem;
}
@media(max-width:1050px){
  .sim-performance-summary{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:640px){
  .sim-performance-summary{grid-template-columns:1fr;}
}

/* Phase 6.5.5 - Mistake heat maps */
.mistake-heatmap-block{
  margin-top:1.1rem;
  padding-top:1.05rem;
  border-top:1px solid rgba(148,163,184,.16);
}
.heatmap-card-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:.9rem;
}
.heatmap-card{
  border:1px solid rgba(96,165,250,.22);
  border-radius:18px;
  background:linear-gradient(180deg,rgba(15,23,42,.80),rgba(2,6,23,.42));
  padding:.95rem;
  overflow:hidden;
  position:relative;
}
.heatmap-card::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:2px;
  background:linear-gradient(90deg,rgba(248,113,113,.85),rgba(250,204,21,.72),rgba(96,165,250,.65));
}
.heatmap-card-head{
  margin-bottom:.8rem;
}
.heatmap-card-head h5{
  margin:0 0 .25rem;
  font-size:1rem;
}
.heatmap-card-head p{
  margin:0;
  color:#bfdbfe;
  font-size:.8rem;
  line-height:1.35;
  font-weight:800;
}
.heatmap-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:.5rem;
}
.heatmap-cell{
  min-height:74px;
  border-radius:14px;
  border:1px solid rgba(148,163,184,.22);
  background:rgba(15,23,42,.75);
  padding:.6rem .52rem;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:.16rem;
  text-align:center;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}
.heatmap-cell strong{
  color:#f8fafc;
  font-size:1rem;
  line-height:1.05;
}
.heatmap-cell span{
  color:#dbeafe;
  font-size:.72rem;
  font-weight:900;
}
.heatmap-cell small{
  color:#93c5fd;
  font-size:.67rem;
  font-weight:900;
}
.heatmap-cell.heatmap-high{
  border-color:rgba(248,113,113,.55);
  background:rgba(127,29,29,var(--heat,.65));
}
.heatmap-cell.heatmap-medium{
  border-color:rgba(251,191,36,.52);
  background:rgba(113,63,18,var(--heat,.45));
}
.heatmap-cell.heatmap-low{
  border-color:rgba(96,165,250,.38);
  background:rgba(30,64,175,var(--heat,.28));
}
.heatmap-cell.heatmap-clean{
  border-color:rgba(34,197,94,.30);
  background:rgba(20,83,45,.22);
}
.heatmap-empty{
  min-height:170px;
}
@media(max-width:1100px){
  .heatmap-card-grid{grid-template-columns:1fr;}
  .heatmap-grid{grid-template-columns:repeat(4,minmax(0,1fr));}
}
@media(max-width:640px){
  .heatmap-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}

/* Phase 6.5.6 - Skill radar */
.skill-radar-block{
  margin-top:1.1rem;
  padding-top:1.05rem;
  border-top:1px solid rgba(148,163,184,.16);
}
.skill-radar-layout{
  display:grid;
  grid-template-columns:minmax(280px,.82fr) minmax(0,1.18fr);
  gap:1rem;
  align-items:stretch;
}
.skill-radar-chart-card,
.skill-radar-skill{
  border:1px solid rgba(96,165,250,.22);
  border-radius:18px;
  background:linear-gradient(180deg,rgba(15,23,42,.80),rgba(2,6,23,.42));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}
.skill-radar-chart-card{
  padding:1rem;
  display:flex;
  flex-direction:column;
  gap:.85rem;
  justify-content:center;
  position:relative;
  overflow:hidden;
}
.skill-radar-chart-card.skill-radar-chart-card{
  overflow:visible;
}
.skill-radar-chart-card::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:2px;
  background:linear-gradient(90deg,rgba(250,204,21,.92),rgba(96,165,250,.82),rgba(167,139,250,.78));
}
.skill-radar-svg{
  width:100%;
  max-width:420px;
  margin:0 auto;
  display:block;
  overflow:visible;
}
.skill-radar-grid-line{
  fill:none;
  stroke:rgba(147,197,253,.18);
  stroke-width:1;
}
.skill-radar-axis{
  stroke:rgba(147,197,253,.16);
  stroke-width:1;
}
.skill-radar-fill{
  fill:rgba(250,204,21,.20);
  stroke:none;
}
.skill-radar-stroke{
  fill:none;
  stroke:#facc15;
  stroke-width:3;
  stroke-linejoin:round;
  filter:drop-shadow(0 0 7px rgba(250,204,21,.26));
}
.skill-radar-label{
  fill:#bfdbfe;
  font-size:9.5px;
  font-weight:900;
  letter-spacing:.02em;
}
.skill-radar-summary{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:.55rem;
}
.skill-radar-summary div{
  border:1px solid rgba(148,163,184,.16);
  border-radius:14px;
  background:rgba(2,6,23,.34);
  padding:.68rem;
  min-width:0;
}
.skill-radar-summary span{
  display:block;
  color:#93c5fd;
  text-transform:uppercase;
  letter-spacing:.06em;
  font-size:.66rem;
  font-weight:900;
  margin-bottom:.25rem;
}
.skill-radar-summary strong{
  color:#f8fafc;
  font-size:.92rem;
  line-height:1.1;
}
.skill-radar-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:.75rem;
}
.skill-radar-skill{
  padding:.85rem;
}
.skill-radar-skill-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.75rem;
  margin-bottom:.45rem;
}
.skill-radar-skill-head strong{
  color:#f8fafc;
  font-size:.95rem;
}
.skill-radar-skill-head span{
  border:1px solid rgba(96,165,250,.34);
  border-radius:999px;
  background:rgba(37,99,235,.18);
  color:#dbeafe;
  font-size:.72rem;
  font-weight:900;
  padding:.22rem .5rem;
  white-space:nowrap;
}
.skill-radar-bar{
  height:9px;
  border-radius:999px;
  background:rgba(15,23,42,.78);
  border:1px solid rgba(148,163,184,.16);
  overflow:hidden;
  margin-bottom:.5rem;
}
.skill-radar-bar i{
  display:block;
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,#60a5fa,#facc15);
  box-shadow:0 0 12px rgba(250,204,21,.22);
}
.skill-radar-skill p{
  margin:0;
  color:#bfdbfe;
  font-size:.78rem;
  line-height:1.35;
  font-weight:800;
}
@media(max-width:1050px){
  .skill-radar-layout{grid-template-columns:1fr;}
  .skill-radar-svg{max-width:320px;}
}
@media(max-width:640px){
  .skill-radar-list,
  .skill-radar-summary{grid-template-columns:1fr;}
}

/* Phase 6.6.1 - Practice streaks and goals foundation */
.practice-goals-panel {
  margin-top: 1rem;
}
.practice-goals-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.practice-goal-card {
  background: rgba(8, 16, 34, 0.72);
  border: 1px solid rgba(104, 151, 216, 0.28);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}
.practice-goal-card.complete {
  border-color: rgba(0, 210, 132, 0.52);
  background: linear-gradient(180deg, rgba(0, 120, 76, 0.20), rgba(8, 16, 34, 0.74));
}
.practice-goal-card.streak-card {
  border-color: rgba(255, 200, 0, 0.42);
  background: linear-gradient(180deg, rgba(255, 193, 7, 0.12), rgba(8, 16, 34, 0.74));
}
.practice-goal-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .6rem;
}
.practice-goal-topline span {
  color: #8fc5ff;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.practice-goal-topline strong {
  background: rgba(35, 87, 153, 0.5);
  border: 1px solid rgba(113, 166, 241, 0.45);
  border-radius: 999px;
  color: #fff;
  font-size: .85rem;
  padding: .22rem .55rem;
}
.practice-goal-card h3 {
  margin: 0 0 .7rem;
  font-size: 1.12rem;
  color: #ffd400;
}
.practice-goal-card p,
.practice-goal-card small {
  color: #cfe7ff;
  font-size: .92rem;
  line-height: 1.35;
  margin: .7rem 0 0;
}
.practice-goal-card small {
  display: block;
  color: #9bb9d9;
}
.practice-goal-meter {
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}
.practice-goal-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5aa9ff, #ffd400);
  transition: width .25s ease;
}
.practice-goal-card.complete .practice-goal-meter span {
  background: linear-gradient(90deg, #00d284, #ffd400);
}

@media (max-width: 980px) {
  .practice-goals-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .practice-goals-grid {
    grid-template-columns: 1fr;
  }
}

/* Phase 6.6.2 — Practice milestones and consistency */
.practice-consistency-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}
.practice-consistency-card {
  border: 1px solid rgba(96, 165, 250, 0.26);
  border-radius: 16px;
  background: rgba(6, 16, 34, 0.62);
  padding: 1rem;
}
.practice-subsection-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: .9rem;
}
.practice-subsection-head h3 {
  margin: 0 0 .25rem;
  color: #fff;
  font-size: 1.05rem;
}
.practice-subsection-head p {
  margin: 0;
  color: #9bb9d9;
  font-size: .88rem;
  line-height: 1.35;
}
.practice-subsection-head > span {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 212, 0, 0.45);
  background: rgba(255, 212, 0, 0.10);
  color: #ffd400;
  border-radius: 999px;
  padding: .35rem .65rem;
  font-weight: 900;
  font-size: .75rem;
  white-space: nowrap;
}
.practice-week-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: .55rem;
}
.practice-day-pill {
  min-height: 86px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.035);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: .25rem;
  color: #8fb4dc;
  text-align: center;
}
.practice-day-pill span {
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.practice-day-pill strong {
  color: #fff;
  font-size: 1.05rem;
}
.practice-day-pill small {
  color: #9bb9d9;
  font-size: .7rem;
}
.practice-day-pill.active {
  border-color: rgba(0, 210, 132, 0.55);
  background: rgba(0, 210, 132, 0.11);
}
.practice-day-pill.active strong {
  color: #00d284;
}
.practice-day-pill.today {
  box-shadow: inset 0 0 0 1px rgba(255, 212, 0, 0.50);
}
.practice-milestone-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
}
.practice-milestone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  background: rgba(255,255,255,0.035);
  padding: .75rem;
}
.practice-milestone strong {
  color: #fff;
  display: block;
  margin-bottom: .22rem;
}
.practice-milestone p {
  margin: 0;
  color: #9bb9d9;
  font-size: .8rem;
  line-height: 1.3;
}
.practice-milestone > span {
  flex: 0 0 auto;
  min-width: 48px;
  text-align: center;
  border: 1px solid rgba(96,165,250,0.45);
  background: rgba(96,165,250,0.14);
  color: #cfe7ff;
  border-radius: 999px;
  padding: .35rem .5rem;
  font-size: .78rem;
  font-weight: 900;
}
.practice-milestone.reached {
  border-color: rgba(0,210,132,0.42);
  background: rgba(0,210,132,0.08);
}
.practice-milestone.reached > span {
  border-color: rgba(0,210,132,0.55);
  background: rgba(0,210,132,0.16);
  color: #7dffcf;
}
@media (max-width: 980px) {
  .practice-consistency-wrap {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  .practice-week-strip,
  .practice-milestone-grid {
    grid-template-columns: 1fr;
  }
  .practice-subsection-head {
    flex-direction: column;
  }
}

/* Phase 6.7.3 Achievement progress filters */
.achievement-overview-strip{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin:18px 0;
}
.achievement-overview-card{
  border:1px solid rgba(148,163,184,.24);
  border-radius:18px;
  background:rgba(15,23,42,.62);
  padding:16px;
  min-height:106px;
}
.achievement-overview-card span{
  display:block;
  color:#bfdbfe;
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
  margin-bottom:8px;
}
.achievement-overview-card strong{
  display:block;
  color:#facc15;
  font-size:32px;
  line-height:1;
  margin-bottom:8px;
}
.achievement-overview-card small{
  color:#b7c8e8;
  font-weight:800;
}
.achievement-overview-card.earned{border-color:rgba(34,197,94,.42);background:rgba(6,78,59,.22)}
.achievement-overview-card.near{border-color:rgba(250,204,21,.42);background:rgba(113,63,18,.18)}
.achievement-overview-card.hidden{border-color:rgba(168,85,247,.34);background:rgba(88,28,135,.18)}
.achievement-filter-bar{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:0 0 18px;
  padding:8px;
  border:1px solid rgba(148,163,184,.22);
  border-radius:18px;
  background:rgba(2,6,23,.34);
}
.achievement-filter-bar button{
  appearance:none;
  border:1px solid rgba(148,163,184,.28);
  background:rgba(30,41,59,.72);
  color:#e2e8f0;
  border-radius:999px;
  padding:10px 14px;
  font-weight:900;
  cursor:pointer;
  transition:background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease;
}
.achievement-filter-bar button:hover{border-color:rgba(250,204,21,.48);transform:translateY(-1px)}
.achievement-filter-bar button.active{background:#facc15;border-color:#facc15;color:#07111f;box-shadow:0 8px 24px rgba(250,204,21,.18)}
.achievement-filter-hidden{display:none!important}
.achievement-empty-state{
  border:1px dashed rgba(148,163,184,.32);
  border-radius:18px;
  padding:22px;
  color:#b7c8e8;
  font-weight:800;
  text-align:center;
  background:rgba(15,23,42,.42);
}
@media(max-width:900px){.achievement-overview-strip{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.achievement-overview-strip{grid-template-columns:1fr}.achievement-filter-bar button{flex:1 1 auto}}

/* Phase 6.7.4 - Achievement detail modal */
.achievement-card{cursor:pointer;transition:transform .16s ease,border-color .16s ease,background .16s ease,box-shadow .16s ease}
.achievement-card:hover,.achievement-card:focus-visible{transform:translateY(-2px);border-color:rgba(250,204,21,.55);box-shadow:0 16px 34px rgba(2,6,23,.34);outline:none}
.achievement-detail-modal{position:fixed;inset:0;z-index:1200;display:none;align-items:center;justify-content:center;padding:24px}
.achievement-detail-modal[aria-hidden="false"]{display:flex}
.achievement-detail-backdrop{position:absolute;inset:0;background:rgba(2,6,23,.72);backdrop-filter:blur(8px)}
.achievement-detail-dialog{position:relative;width:min(620px,calc(100vw - 32px));border:1px solid rgba(148,163,184,.32);border-top:3px solid #facc15;border-radius:24px;background:linear-gradient(180deg,rgba(15,23,42,.98),rgba(2,6,23,.98));box-shadow:0 30px 90px rgba(0,0,0,.54);padding:28px;color:#f8fafc}
.achievement-detail-close{position:absolute;top:18px;right:18px;width:42px;height:42px;border-radius:999px;border:1px solid rgba(148,163,184,.32);background:rgba(30,41,59,.88);color:#fff;font-size:28px;line-height:1;cursor:pointer;font-weight:900}
.achievement-detail-close:hover{border-color:rgba(250,204,21,.55);background:rgba(51,65,85,.95)}
.achievement-detail-kicker{color:#facc15;text-transform:uppercase;letter-spacing:.12em;font-size:13px;font-weight:1000;margin:0 56px 18px 0}
.achievement-detail-head{display:grid;grid-template-columns:auto 1fr;gap:18px;align-items:center;margin-bottom:18px}
.achievement-detail-icon{width:74px;height:74px;border-radius:22px;display:grid;place-items:center;background:linear-gradient(135deg,rgba(250,204,21,.24),rgba(96,165,250,.16));border:1px solid rgba(250,204,21,.38);color:#facc15;font-size:26px;font-weight:1000;box-shadow:inset 0 0 24px rgba(250,204,21,.08)}
.achievement-detail-head h2{margin:0 0 8px;font-size:30px;line-height:1.05}
.achievement-detail-status{display:inline-flex;align-items:center;border:1px solid rgba(96,165,250,.42);background:rgba(37,99,235,.18);color:#bfdbfe;border-radius:999px;padding:7px 11px;font-weight:1000;font-size:12px;text-transform:uppercase;letter-spacing:.05em}
.achievement-detail-modal.earned .achievement-detail-status{border-color:rgba(34,197,94,.46);background:rgba(6,78,59,.32);color:#86efac}
.achievement-detail-modal.hidden-achievement .achievement-detail-status{border-color:rgba(168,85,247,.42);background:rgba(88,28,135,.26);color:#d8b4fe}
.achievement-detail-dialog p{margin:0 0 22px;color:#dbeafe;font-size:17px;line-height:1.55}
.achievement-detail-progress{border:1px solid rgba(148,163,184,.22);border-radius:18px;background:rgba(15,23,42,.72);padding:18px}
.achievement-detail-progress-top{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-bottom:12px;color:#93c5fd;font-weight:1000;text-transform:uppercase;letter-spacing:.08em;font-size:12px}
.achievement-detail-progress-top strong{color:#facc15;letter-spacing:0;text-transform:none;font-size:14px}
.achievement-detail-progress small{display:block;margin-top:12px;color:#bfdbfe;font-weight:800}
body.achievement-modal-open{overflow:hidden}
@media(max-width:560px){.achievement-detail-dialog{padding:22px}.achievement-detail-head{grid-template-columns:1fr}.achievement-detail-icon{width:62px;height:62px}.achievement-detail-head h2{font-size:24px}}

/* Phase 6.8.1 Admin Console Foundation */
.admin-hero {
  align-items: center;
  justify-content: space-between;
}

.admin-shell,
.admin-panel {
  border: 1px solid rgba(147, 197, 253, 0.22);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
  padding: 24px;
  margin: 22px 0;
}

.admin-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.admin-section-head.compact {
  margin-bottom: 14px;
}

.admin-section-head h2 {
  margin: 0 0 6px;
  font-size: 1.65rem;
}

.admin-section-head p {
  margin: 0;
  color: var(--muted, #bfdbfe);
}

.admin-pill,
.admin-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(147, 197, 253, 0.28);
  background: rgba(37, 99, 235, 0.18);
  color: #dbeafe;
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  padding: 7px 12px;
  white-space: nowrap;
}

.admin-pill,
.admin-status.gold {
  border-color: rgba(245, 158, 11, 0.58);
  background: rgba(245, 158, 11, 0.14);
  color: var(--accent, #facc15);
}

.admin-status.blue {
  border-color: rgba(96, 165, 250, 0.44);
  background: rgba(37, 99, 235, 0.18);
  color: #bfdbfe;
}

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

.admin-metric-card {
  border: 1px solid rgba(147, 197, 253, 0.2);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.42);
  padding: 16px;
  min-height: 122px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.admin-metric-card.highlight {
  border-color: rgba(245, 158, 11, 0.65);
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.16), rgba(2, 6, 23, 0.5));
}

.admin-metric-card span {
  color: #93c5fd;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 900;
}

.admin-metric-card strong {
  display: block;
  color: var(--accent, #facc15);
  font-size: 2rem;
  line-height: 1;
  margin: 12px 0 8px;
}

.admin-metric-card small,
.admin-table small,
.admin-mini-table small {
  display: block;
  color: #bfdbfe;
  font-size: 0.82rem;
}

.admin-grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 22px 0;
}

.admin-bar-stack {
  display: grid;
  gap: 18px;
}

.admin-bar-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  color: #dbeafe;
  font-weight: 800;
}

.admin-bar-row .admin-bar {
  grid-column: 1 / -1;
}

.admin-bar {
  height: 11px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  border: 1px solid rgba(147, 197, 253, 0.16);
  overflow: hidden;
}

.admin-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #fbbf24, #facc15);
}

.admin-bar.blue span {
  background: linear-gradient(90deg, #2563eb, #60a5fa);
}

.admin-mini-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.admin-mini-table > div {
  border: 1px solid rgba(147, 197, 253, 0.18);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.34);
  padding: 12px;
}

.admin-mini-table span {
  color: #dbeafe;
  font-weight: 900;
}

.admin-mini-table strong {
  display: block;
  color: var(--accent, #facc15);
  font-size: 1.35rem;
  margin: 6px 0 2px;
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(147, 197, 253, 0.18);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.32);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

.admin-table th,
.admin-table td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(147, 197, 253, 0.12);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: #93c5fd;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 900;
  background: rgba(15, 23, 42, 0.78);
}

.admin-table td {
  color: #eff6ff;
  font-size: 0.92rem;
}

.admin-table tbody tr:hover {
  background: rgba(96, 165, 250, 0.07);
}

.admin-table a {
  color: var(--accent, #facc15);
  font-weight: 900;
  text-decoration: none;
}

.admin-roadmap-panel {
  border-style: dashed;
}

@media (max-width: 980px) {
  .admin-metric-grid,
  .admin-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .admin-hero,
  .admin-section-head {
    flex-direction: column;
  }

  .admin-metric-grid,
  .admin-grid-two,
  .admin-mini-table {
    grid-template-columns: 1fr;
  }

  .admin-shell,
  .admin-panel {
    padding: 18px;
  }
}

/* Phase 6.8.2 — Admin User Management */
.admin-user-tools {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
  margin-top: 18px;
}

.admin-user-tools label {
  display: grid;
  gap: 7px;
  min-width: 220px;
  flex: 1;
}

.admin-user-tools label span {
  color: #93c5fd;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 900;
}

.admin-user-tools input,
.admin-user-tools select {
  width: 100%;
  border: 1px solid rgba(147, 197, 253, 0.22);
  border-radius: 13px;
  background: rgba(2, 6, 23, 0.6);
  color: #eff6ff;
  padding: 12px 13px;
  font: inherit;
  outline: none;
}

.admin-user-tools input:focus,
.admin-user-tools select:focus {
  border-color: rgba(250, 204, 21, 0.75);
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.12);
}

.admin-users-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 20px;
  align-items: start;
  margin: 22px 0;
}

.admin-user-card-list {
  display: grid;
  gap: 12px;
}

.admin-user-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 13px;
  padding: 14px;
  border: 1px solid rgba(147, 197, 253, 0.18);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.34);
  text-decoration: none;
  color: inherit;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.admin-user-card:hover,
.admin-user-card.active {
  transform: translateY(-1px);
  border-color: rgba(250, 204, 21, 0.62);
  background: linear-gradient(145deg, rgba(250, 204, 21, 0.12), rgba(2, 6, 23, 0.46));
}

.admin-user-avatar {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(250, 204, 21, 0.95), rgba(245, 158, 11, 0.78));
  color: #111827;
  font-weight: 1000;
  box-shadow: 0 10px 25px rgba(0,0,0,0.22);
}

.admin-user-main {
  min-width: 0;
}

.admin-user-title-row,
.admin-user-footer-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.admin-user-title-row strong {
  color: #eff6ff;
  font-size: 1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-main small,
.admin-user-footer-row {
  color: #bfdbfe;
  font-size: 0.82rem;
}

.admin-user-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.admin-user-meta-grid span {
  border: 1px solid rgba(147, 197, 253, 0.14);
  border-radius: 12px;
  padding: 8px;
  background: rgba(15, 23, 42, 0.48);
  color: #dbeafe;
  font-size: 0.78rem;
}

.admin-user-meta-grid b {
  display: block;
  color: var(--accent, #facc15);
  font-size: 0.95rem;
}

.admin-user-detail-panel {
  position: sticky;
  top: 18px;
}

.admin-empty-detail {
  min-height: 360px;
  display: grid;
  align-content: center;
  text-align: center;
}

.admin-detail-kv {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.admin-detail-kv > div {
  border: 1px solid rgba(147, 197, 253, 0.18);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.34);
  padding: 12px;
}

.admin-detail-kv span {
  display: block;
  color: #93c5fd;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 900;
}

.admin-detail-kv strong {
  display: block;
  color: #eff6ff;
  margin-top: 5px;
  font-size: 0.96rem;
}

.admin-detail-kv small {
  color: #bfdbfe;
}

.compact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 16px 0;
}

.compact-grid .admin-metric-card {
  min-height: 104px;
}

.admin-detail-section {
  margin-top: 22px;
}

.admin-detail-section h3 {
  color: #eff6ff;
  margin: 0 0 12px;
}

.admin-mini-table.one-col {
  grid-template-columns: 1fr;
}

.admin-achievement-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-achievement-chips > span {
  border: 1px solid rgba(250, 204, 21, 0.32);
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.1);
  color: #fde68a;
  padding: 8px 10px;
  font-weight: 800;
  font-size: 0.82rem;
}

.admin-achievement-chips small {
  display: block;
  color: #bfdbfe;
  font-size: 0.7rem;
  font-weight: 700;
}

.btn.small {
  padding: 9px 12px;
  font-size: 0.88rem;
}

@media (max-width: 1080px) {
  .admin-users-layout {
    grid-template-columns: 1fr;
  }
  .admin-user-detail-panel {
    position: static;
  }
}

@media (max-width: 700px) {
  .admin-user-card {
    grid-template-columns: 1fr;
  }
  .admin-user-avatar {
    width: 42px;
    height: 42px;
  }
  .admin-user-title-row,
  .admin-user-footer-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .admin-user-meta-grid,
  .admin-detail-kv,
  .compact-grid {
    grid-template-columns: 1fr;
  }
}

/* Phase 6.8.3 — Admin Usage Analytics + admin navigation polish */
.admin-hero .admin-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  max-width: 560px;
}

.admin-hero .admin-nav-btn {
  min-width: auto;
  white-space: nowrap;
  padding: 10px 13px;
  line-height: 1.1;
  font-size: 0.9rem;
  border-radius: 12px;
}

.admin-hero .admin-nav-btn.active {
  border-color: rgba(250, 204, 21, 0.58);
  background: rgba(250, 204, 21, 0.16);
  color: #fde68a;
  box-shadow: inset 0 0 0 1px rgba(250, 204, 21, 0.1);
}

.admin-daily-bars {
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  min-height: 220px;
  padding: 18px;
  border: 1px solid rgba(147, 197, 253, 0.18);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.28);
}

.admin-daily-bar {
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: 7px;
  min-height: 180px;
  text-align: center;
}

.admin-daily-bar > div {
  position: relative;
  height: 120px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.76);
  border: 1px solid rgba(147, 197, 253, 0.14);
  overflow: hidden;
}

.admin-daily-bar > div span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 10px 10px 0 0;
  background: linear-gradient(180deg, #60a5fa, #2563eb);
  box-shadow: 0 0 18px rgba(96, 165, 250, 0.22);
}

.admin-daily-bar strong {
  color: #facc15;
  font-size: 0.9rem;
  line-height: 1;
}

.admin-daily-bar small {
  color: #bfdbfe;
  font-weight: 800;
  font-size: 0.72rem;
  white-space: nowrap;
}

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

.admin-hour-cell {
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(147, 197, 253, 0.18);
  background: rgba(37, 99, 235, calc(0.06 + (var(--heat) * 0.38)));
  display: grid;
  place-items: center;
  color: #dbeafe;
  font-weight: 900;
  font-size: 0.78rem;
}

.admin-hour-cell[style*="--heat: 0"] {
  background: rgba(15, 23, 42, 0.52);
  color: rgba(191, 219, 254, 0.72);
}

.compact-admin-table .admin-table {
  min-width: 620px;
}

@media (max-width: 900px) {
  .admin-hero .admin-hero-actions {
    justify-content: flex-start;
    max-width: none;
    width: 100%;
  }
  .admin-daily-bars {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
  .admin-hour-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .admin-hero .admin-nav-btn {
    flex: 1 1 calc(50% - 8px);
    text-align: center;
    justify-content: center;
  }
  .admin-daily-bars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-hour-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Phase 6.8.4 — Admin Memberships + fixed admin top navigation */
.admin-hero {
  align-items: flex-start;
}

.admin-nav-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: -8px 0 22px;
  padding: 10px;
  border: 1px solid rgba(147, 197, 253, 0.22);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.54);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.20);
}

.admin-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(147, 197, 253, 0.20);
  background: rgba(30, 41, 59, 0.70);
  color: #dbeafe;
  font-weight: 900;
  font-size: 0.9rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.admin-nav-link:hover,
.admin-nav-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(250, 204, 21, 0.48);
  color: #fff7cc;
  outline: none;
}

.admin-nav-link.active {
  border-color: rgba(250, 204, 21, 0.72);
  background: linear-gradient(180deg, #facc15, #eab308);
  color: #111827;
  box-shadow: 0 10px 24px rgba(250, 204, 21, 0.18);
}

.admin-nav-link.player {
  border-color: rgba(147, 197, 253, 0.30);
  background: rgba(15, 23, 42, 0.74);
}

.admin-nav-link.simulator {
  border-color: rgba(250, 204, 21, 0.62);
  background: rgba(250, 204, 21, 0.14);
  color: #fde68a;
}

.admin-nav-spacer {
  flex: 1 1 auto;
  min-width: 20px;
}

.admin-readiness-list {
  display: grid;
  gap: 12px;
}

.admin-readiness-list > div {
  border: 1px solid rgba(147, 197, 253, 0.18);
  border-radius: 15px;
  background: rgba(2, 6, 23, 0.34);
  padding: 13px 14px;
}

.admin-readiness-list strong {
  display: block;
  color: #facc15;
  margin-bottom: 4px;
}

.admin-readiness-list span {
  color: #bfdbfe;
  line-height: 1.4;
}

.admin-membership-table-wrap .admin-table {
  min-width: 1060px;
}

@media (max-width: 980px) {
  .admin-nav-strip {
    margin-top: 0;
  }
  .admin-nav-spacer {
    display: none;
  }
  .admin-nav-link {
    flex: 1 1 calc(33.333% - 10px);
  }
}

@media (max-width: 620px) {
  .admin-nav-strip {
    gap: 8px;
    padding: 8px;
  }
  .admin-nav-link {
    flex: 1 1 100%;
  }
}

/* Phase 6.8.5 — Admin Achievement & Support Tools */
.admin-nav-strip {
  position: relative;
  z-index: 5;
}

.admin-nav-link {
  min-width: 0;
}

.admin-tool-notice {
  margin: 0 0 18px;
}

.notice.success {
  border-color: rgba(16, 185, 129, 0.55);
  background: rgba(6, 78, 59, 0.28);
  color: #d1fae5;
}

.notice.danger {
  border-color: rgba(248, 113, 113, 0.55);
  background: rgba(127, 29, 29, 0.24);
  color: #fee2e2;
}

.admin-metric-grid.compact-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 16px;
}

.admin-tool-category-list {
  display: grid;
  gap: 12px;
}

.admin-tool-category-list > div {
  padding: 14px;
  border: 1px solid rgba(147, 197, 253, 0.18);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.32);
}

.admin-tool-category-list strong,
.admin-tool-category-list span {
  display: block;
}

.admin-tool-category-list strong {
  color: #fff;
  font-size: 1.02rem;
  margin-bottom: 4px;
}

.admin-tool-category-list span {
  color: #bfdbfe;
  font-weight: 800;
  margin-bottom: 10px;
}

.admin-list-stack {
  display: grid;
  gap: 10px;
}

.admin-support-item {
  display: block;
  padding: 13px 14px;
  border: 1px solid rgba(147, 197, 253, 0.18);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.62);
  color: inherit;
  text-decoration: none;
  transition: border-color 150ms ease, transform 150ms ease, background 150ms ease;
}

.admin-support-item:hover,
.admin-support-item:focus-visible {
  border-color: rgba(250, 204, 21, 0.48);
  background: rgba(30, 41, 59, 0.72);
  transform: translateY(-1px);
  outline: none;
}

.admin-support-item.static:hover,
.admin-support-item.static:focus-visible {
  transform: none;
}

.admin-support-item strong,
.admin-support-item span,
.admin-support-item small {
  display: block;
}

.admin-support-item strong {
  color: #fff;
  margin-bottom: 4px;
}

.admin-support-item span {
  color: #bfdbfe;
  line-height: 1.45;
}

.admin-support-item small {
  color: #93c5fd;
  margin-top: 5px;
  font-weight: 800;
}

.admin-filter-form,
.admin-note-form {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
  margin: 10px 0 18px;
}

.admin-filter-form label,
.admin-note-form label {
  flex: 1 1 280px;
  display: grid;
  gap: 7px;
  color: #93c5fd;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
}

.admin-filter-form input,
.admin-note-form textarea {
  width: 100%;
  border: 1px solid rgba(147, 197, 253, 0.26);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  padding: 12px 13px;
  font: inherit;
  font-weight: 800;
  outline: none;
}

.admin-filter-form input:focus,
.admin-note-form textarea:focus {
  border-color: rgba(250, 204, 21, 0.72);
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.12);
}

.admin-note-form {
  align-items: stretch;
  padding: 16px;
  border: 1px solid rgba(147, 197, 253, 0.18);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.30);
}

.admin-note-form button {
  align-self: end;
}

.admin-note-history {
  margin-top: 14px;
}

.admin-support-search-results {
  margin-top: 12px;
}

@media (max-width: 900px) {
  .admin-metric-grid.compact-two {
    grid-template-columns: 1fr;
  }
  .admin-filter-form,
  .admin-note-form {
    align-items: stretch;
  }
  .admin-filter-form .btn,
  .admin-note-form .btn {
    width: 100%;
  }
}

/* Phase 6.8.6 — Admin Feature Flags */
.admin-flag-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-flag-card {
  border: 1px solid rgba(147, 197, 253, 0.22);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(2, 6, 23, 0.58));
  padding: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.admin-flag-card.enabled {
  border-color: rgba(250, 204, 21, 0.40);
  background: linear-gradient(180deg, rgba(36, 31, 16, 0.78), rgba(2, 6, 23, 0.62));
}

.admin-flag-card-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.admin-flag-card h3 {
  margin: 0;
  color: #fff;
  font-size: 1.15rem;
}

.admin-flag-card p:not(.eyebrow) {
  color: #bfdbfe;
  line-height: 1.45;
  margin: 0 0 14px;
}

.admin-flag-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.admin-flag-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 9px;
  border: 1px solid rgba(147, 197, 253, 0.18);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.70);
  color: #bfdbfe;
  font-size: .8rem;
  font-weight: 900;
}

.admin-flag-meta strong {
  color: #facc15;
}

.admin-flag-form {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding-top: 14px;
  border-top: 1px solid rgba(147, 197, 253, 0.14);
}

.admin-flag-form label {
  display: grid;
  gap: 7px;
  color: #93c5fd;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .74rem;
}

.admin-flag-form input[type="number"] {
  width: 100%;
  border: 1px solid rgba(147, 197, 253, 0.26);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  padding: 11px 12px;
  font: inherit;
  font-weight: 900;
  outline: none;
}

.admin-flag-form input[type="number"]:focus {
  border-color: rgba(250, 204, 21, 0.72);
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.12);
}

.admin-toggle-label {
  min-height: 42px;
  display: inline-flex !important;
  grid-template-columns: none !important;
  flex-direction: row;
  align-items: center;
  gap: 8px !important;
  padding: 11px 12px;
  border: 1px solid rgba(147, 197, 253, 0.22);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.60);
  cursor: pointer;
}

.admin-toggle-label input {
  accent-color: #facc15;
}

.admin-flag-form button[disabled],
.admin-flag-form input[disabled] {
  opacity: .56;
  cursor: not-allowed;
}

@media (max-width: 920px) {
  .admin-flag-grid {
    grid-template-columns: 1fr;
  }
  .admin-flag-form {
    grid-template-columns: 1fr;
  }
}

/* Phase 7.1 — Membership pricing foundation */
.membership-settings-shell {
  border-color: rgba(250, 204, 21, 0.28);
}

.membership-price-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(147, 197, 253, 0.18);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.32);
}

.membership-price-preview h3 {
  margin: 0 0 6px;
  color: #ffffff;
  font-size: 1.35rem;
}

.membership-price-preview p {
  margin: 0;
  color: #bfdbfe;
}

.membership-price-box {
  min-width: 190px;
  padding: 16px;
  border: 1px solid rgba(250, 204, 21, 0.45);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(250, 204, 21, 0.12), rgba(15, 23, 42, 0.70));
  text-align: right;
}

.membership-price-box .old-price,
.membership-public-price span {
  display: block;
  color: #93a4bc;
  text-decoration: line-through;
  font-weight: 800;
  margin-bottom: 3px;
}

.membership-price-box strong,
.membership-public-price strong {
  display: block;
  color: #facc15;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.03em;
}

.membership-price-box small,
.membership-public-price small,
.membership-public-actions small {
  display: block;
  margin-top: 6px;
  color: #bfdbfe;
  font-weight: 800;
}

.membership-settings-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.membership-settings-form label {
  display: grid;
  gap: 7px;
}

.membership-settings-form label span {
  color: #93c5fd;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.membership-settings-form input[type="text"],
.membership-settings-form input[type="datetime-local"] {
  width: 100%;
  border: 1px solid rgba(147, 197, 253, 0.25);
  border-radius: 13px;
  background: rgba(15, 23, 42, 0.78);
  color: #ffffff;
  font-weight: 900;
  padding: 12px 13px;
}

.membership-settings-form .wide {
  grid-column: span 2;
}

.membership-settings-form .toggle-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid rgba(147, 197, 253, 0.20);
  border-radius: 13px;
  background: rgba(2, 6, 23, 0.28);
}

.membership-settings-form .toggle-check span {
  text-transform: none;
  letter-spacing: 0;
  color: #dbeafe;
}

.membership-settings-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}

.membership-settings-actions .btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.membership-hero {
  margin-bottom: 22px;
}

.membership-public-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 22px;
  align-items: stretch;
}

.membership-public-card,
.membership-benefit-grid article {
  border: 1px solid rgba(147, 197, 253, 0.22);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.76);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
}

.membership-public-card {
  padding: 28px;
  border-color: rgba(250, 204, 21, 0.38);
}

.membership-public-card h2 {
  margin: 0 0 10px;
  font-size: 2rem;
}

.membership-public-card p {
  color: #bfdbfe;
  line-height: 1.55;
}

.membership-public-price {
  margin: 24px 0;
  padding: 22px;
  border: 1px solid rgba(250, 204, 21, 0.42);
  border-radius: 20px;
  background: rgba(250, 204, 21, 0.10);
}

.membership-public-actions {
  display: grid;
  gap: 8px;
}

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

.membership-benefit-grid article {
  padding: 20px;
}

.membership-benefit-grid strong {
  display: block;
  color: #facc15;
  margin-bottom: 8px;
}

.membership-benefit-grid span {
  color: #bfdbfe;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .membership-price-preview,
  .membership-public-shell {
    display: grid;
    grid-template-columns: 1fr;
  }
  .membership-price-box {
    text-align: left;
  }
  .membership-settings-form {
    grid-template-columns: 1fr;
  }
  .membership-settings-form .wide {
    grid-column: auto;
  }
  .membership-settings-actions {
    justify-content: stretch;
    flex-wrap: wrap;
  }
  .membership-settings-actions .btn {
    flex: 1 1 auto;
  }
}

@media (max-width: 640px) {
  .membership-benefit-grid {
    grid-template-columns: 1fr;
  }
}

/* Phase 7.2 Stripe checkout foundation */
.membership-public-shell.narrow { max-width: 820px; }
.membership-public-notice { margin-bottom: 1rem; }
.membership-public-actions form { display: inline-flex; flex-direction: column; gap: .5rem; align-items: stretch; }
.membership-public-actions form .btn { min-width: 220px; }
.membership-checkout-readiness .admin-metric-card.success { border-color: rgba(0, 214, 143, .55); background: linear-gradient(180deg, rgba(0, 214, 143, .10), rgba(10, 20, 40, .96)); }
.membership-checkout-readiness .admin-metric-card.warning { border-color: rgba(255, 196, 0, .45); background: linear-gradient(180deg, rgba(255, 196, 0, .08), rgba(10, 20, 40, .96)); }
.membership-checkout-readiness .admin-metric-card.success strong { color: #25e6a0; }
.membership-checkout-readiness .admin-metric-card.warning strong { color: var(--gold); }

/* Phase 7.3 discount codes */
.membership-discounts-shell .discount-code-form {
  margin-top: 1rem;
}
.admin-discount-table-wrap {
  margin-top: 1rem;
}
.admin-table .btn.small {
  min-height: 34px;
  padding: 8px 12px;
  font-size: .8rem;
}
.membership-discount-apply {
  margin: 1rem 0 1.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .75rem;
  align-items: end;
  padding: 14px;
  border: 1px solid rgba(147, 197, 253, .20);
  border-radius: 16px;
  background: rgba(15, 23, 42, .68);
}
.membership-discount-apply label {
  display: grid;
  gap: .35rem;
}
.membership-discount-apply span {
  color: #93c5fd;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .72rem;
  font-weight: 900;
}
.membership-discount-apply input {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(147, 197, 253, .28);
  background: rgba(2, 6, 23, .55);
  color: #fff;
  padding: 0 12px;
  font-weight: 800;
}
.membership-public-price em {
  display: block;
  margin-top: .45rem;
  color: #25e6a0;
  font-style: normal;
  font-weight: 900;
}
.membership-public-price em.membership-discount-error {
  color: #fecaca;
}
@media (max-width: 680px) {
  .membership-discount-apply {
    grid-template-columns: 1fr;
  }
}

/* Phase 7.4 Membership access foundation */
.membership-status-card {
  margin: 0 0 1rem;
  padding: 16px;
  border: 1px solid rgba(0, 214, 143, .42);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(0, 214, 143, .12), rgba(10, 20, 40, .92));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.membership-status-card strong {
  display: block;
  color: #fff;
  font-size: 1.05rem;
}
.membership-status-card span {
  display: block;
  margin-top: .25rem;
  color: #bfdbfe;
  line-height: 1.45;
}
.membership-status-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(0, 214, 143, .55);
  background: rgba(0, 214, 143, .14);
  color: #25e6a0;
  font-weight: 900;
  padding: 8px 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .76rem;
}
.premium-gate-card {
  border: 1px solid rgba(255, 196, 0, .35);
  background: linear-gradient(180deg, rgba(255, 196, 0, .08), rgba(10, 20, 40, .96));
}
.premium-feature-grid {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.premium-feature-grid article {
  border: 1px solid rgba(147, 197, 253, .20);
  border-radius: 18px;
  padding: 16px;
  background: rgba(15, 23, 42, .72);
}
.premium-feature-grid strong { color: #fff; display: block; margin-bottom: .35rem; }
.premium-feature-grid span { color: #bfdbfe; line-height: 1.45; }
@media (max-width: 760px) {
  .membership-status-card { align-items: flex-start; flex-direction: column; }
  .premium-feature-grid { grid-template-columns: 1fr; }
}

/* Phase 7.5.1 Session Security Foundation */
.security-hero h1{font-size:clamp(38px,6vw,62px)}
.security-panel{margin-top:22px}
.security-notice{margin:18px 0}
.security-table td,.security-table th{vertical-align:middle}
.security-stats .stat strong{font-size:24px}
@media(max-width:760px){.security-panel .dashboard-section-head{align-items:flex-start;flex-direction:column}.security-panel .dashboard-section-head form,.security-panel .dashboard-section-head button{width:100%}.security-table{min-width:720px}}

/* Phase 7.5.2 Email verification foundation */
.email-verification-banner {
  margin: 0 auto;
  padding: 12px clamp(16px, 4vw, 32px);
  border-bottom: 1px solid rgba(250, 204, 21, .30);
  background: linear-gradient(90deg, rgba(250, 204, 21, .14), rgba(37, 99, 235, .12));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #fff;
}
.email-verification-banner div {
  max-width: 980px;
  display: grid;
  gap: 2px;
}
.email-verification-banner strong { color: #facc15; }
.email-verification-banner span { color: #dbeafe; font-size: .92rem; line-height: 1.35; }
.email-verification-banner form { margin: 0; }
.email-verification-banner button {
  border: 1px solid rgba(250, 204, 21, .55);
  background: rgba(250, 204, 21, .16);
  color: #fff;
  border-radius: 999px;
  padding: 9px 13px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}
.email-status-panel {
  border-color: rgba(250, 204, 21, .32);
  background: linear-gradient(180deg, rgba(250, 204, 21, .08), rgba(10, 20, 40, .94));
}
.security-account-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.security-account-item {
  padding: 14px;
  border: 1px solid rgba(147, 197, 253, .20);
  border-radius: 16px;
  background: rgba(15, 23, 42, .70);
}
.security-account-item span {
  display: block;
  color: #93c5fd;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .72rem;
  font-weight: 900;
  margin-bottom: 6px;
}
.security-account-item strong { color: #fff; overflow-wrap: anywhere; }
.verify-email-shell { margin-top: 30px; }
.verify-email-result {
  margin: 18px 0;
  padding: 18px;
  border-radius: 18px;
  display: grid;
  gap: 6px;
}
.verify-email-result.success {
  border: 1px solid rgba(0, 214, 143, .45);
  background: rgba(0, 214, 143, .12);
}
.verify-email-result.warning {
  border: 1px solid rgba(250, 204, 21, .42);
  background: rgba(250, 204, 21, .10);
}
.verify-email-result strong { color: #fff; }
.verify-email-result span { color: #bfdbfe; }
@media(max-width:760px){
  .email-verification-banner{align-items:stretch;flex-direction:column;gap:10px}
  .email-verification-banner button{width:100%}
  .security-account-grid{grid-template-columns:1fr}
}

/* Phase 7.5.3 Optional two-factor authentication */
.two-factor-card {
  border-color: rgba(96, 165, 250, .35);
  background: linear-gradient(180deg, rgba(37, 99, 235, .10), rgba(10, 20, 40, .94));
}
.two-factor-summary {
  display: grid;
  gap: 6px;
  margin: 16px 0;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(147, 197, 253, .22);
  background: rgba(15, 23, 42, .70);
}
.two-factor-summary strong { color: #fff; }
.two-factor-summary span { color: #bfdbfe; }
.two-factor-setup-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 12px;
  margin: 16px 0;
}
.two-factor-key-box {
  display: grid;
  gap: 8px;
  padding: 15px;
  border: 1px solid rgba(147, 197, 253, .22);
  border-radius: 16px;
  background: rgba(15, 23, 42, .72);
}
.two-factor-key-box span {
  color: #93c5fd;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 900;
  font-size: .72rem;
}
.two-factor-key-box code,
.recovery-code-grid code {
  display: block;
  color: #fff;
  white-space: normal;
  word-break: break-all;
  font-size: .92rem;
}
.two-factor-form { margin-top: 14px; }
.security-check-row {
  display: flex !important;
  align-items: center;
  gap: 8px;
  color: #bfdbfe;
  font-weight: 800;
}
.security-check-row input { width: auto !important; }
.recovery-codes-panel {
  border-color: rgba(250, 204, 21, .38);
  background: linear-gradient(180deg, rgba(250, 204, 21, .10), rgba(10, 20, 40, .94));
}
.recovery-code-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.recovery-code-grid code {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(250, 204, 21, .25);
  background: rgba(15, 23, 42, .78);
  text-align: center;
  font-weight: 900;
  letter-spacing: .04em;
}
.danger-lite {
  border-color: rgba(248, 113, 113, .45) !important;
  color: #fecaca !important;
}
.two-factor-disable-form { margin-top: 16px; max-width: 460px; }
.two-factor-shell { max-width: 680px; }
@media(max-width:760px){
  .two-factor-setup-grid,.recovery-code-grid{grid-template-columns:1fr}
}

/* Phase 7.5.3B Email 2FA Backup */
.two-factor-login-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:22px 0}.panel-lite{border:1px solid rgba(148,163,184,.22);background:rgba(15,23,42,.42);border-radius:16px;padding:18px}.panel-lite h2{margin:0 0 8px;font-size:1.25rem}.email-2fa-backup{margin-top:18px}.inline-security-form{margin:12px 0 16px}@media(max-width:800px){.two-factor-login-grid{grid-template-columns:1fr}}

/* Phase 7.5.3 polish: QR-based 2FA setup */
.two-factor-setup-wizard{margin-top:18px}.two-factor-setup-steps{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 18px}.two-factor-setup-steps span{border:1px solid rgba(148,163,184,.28);background:rgba(15,23,42,.6);border-radius:999px;padding:8px 13px;font-weight:800;color:#b9d4ff;font-size:.86rem}.two-factor-setup-steps span.is-active{background:rgba(246,190,0,.16);border-color:rgba(246,190,0,.55);color:#ffd84d}.two-factor-setup-layout{display:grid;grid-template-columns:minmax(280px,430px) 1fr;gap:18px;align-items:start}.two-factor-qr-card,.two-factor-manual-card{border:1px solid rgba(96,165,250,.28);border-radius:18px;background:rgba(15,23,42,.52);padding:18px}.two-factor-qr-card h3,.two-factor-manual-card h3{margin:0 0 6px}.two-factor-qr-wrap{width:min(100%,340px);aspect-ratio:1/1;background:#fff;border-radius:18px;padding:14px;margin:16px auto;display:flex;align-items:center;justify-content:center;box-shadow:0 18px 50px rgba(0,0,0,.24)}.two-factor-qr-wrap .hc-qr-svg{width:100%;height:100%;display:block;border-radius:8px}.two-factor-app-list{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.two-factor-app-list span{font-size:.78rem;border:1px solid rgba(148,163,184,.25);border-radius:999px;padding:6px 9px;color:#b9d4ff;background:rgba(2,6,23,.25)}.two-factor-manual-card .two-factor-key-box{margin:12px 0 14px}.two-factor-uri-details{margin:0 0 18px;color:#b9d4ff}.two-factor-uri-details summary{cursor:pointer;font-weight:800;color:#ffd84d;margin-bottom:8px}.two-factor-uri-details code{display:block;white-space:normal;word-break:break-all;border:1px solid rgba(148,163,184,.25);border-radius:12px;padding:12px;background:rgba(2,6,23,.38)}.recovery-code-actions{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}@media(max-width:850px){.two-factor-setup-layout{grid-template-columns:1fr}.two-factor-qr-wrap{max-width:300px}}

/* Phase 7.5.4 Trusted Devices */
.security-check-row{
  display:flex;
  align-items:center;
  gap:.55rem;
  color:var(--muted,#b9c5d8);
  font-weight:700;
  margin:.85rem 0 .35rem;
}
.security-check-row input{width:auto;min-width:auto;accent-color:#f6c200;}
.trusted-current-device{
  display:flex;
  align-items:center;
  gap:1rem;
  flex-wrap:wrap;
  margin:1rem 0 1.25rem;
  padding:1rem;
  border:1px solid rgba(255,255,255,.12);
  border-radius:16px;
  background:rgba(255,255,255,.035);
}
.trusted-devices-table td{vertical-align:top;}
.trusted-device-actions{min-width:260px;}
.trusted-device-actions form{margin:0 0 .45rem;}
.trusted-device-rename{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap;}
.trusted-device-rename input{
  max-width:170px;
  padding:.65rem .75rem;
  border-radius:12px;
  border:1px solid rgba(180,205,255,.25);
  background:rgba(0,0,0,.22);
  color:#fff;
}
.admin-status.is-warning{background:rgba(255,196,0,.12);border-color:rgba(255,196,0,.45);color:#ffd84d;}
@media (max-width: 760px){
  .trusted-device-actions{min-width:0;}
  .trusted-device-rename input{max-width:100%;}
}

/* Phase 7.5.4 UI fix: Trusted Devices action column should not be squeezed by global activity-table widths */
.trusted-devices-panel .activity-table-wrap{
  width:100%;
  max-width:100%;
  overflow-x:auto;
  padding-bottom:6px;
}
.trusted-devices-table{
  min-width:980px;
  table-layout:auto;
}
.trusted-devices-table th:nth-child(1),
.trusted-devices-table td:nth-child(1){width:150px;min-width:150px;}
.trusted-devices-table th:nth-child(2),
.trusted-devices-table td:nth-child(2){width:92px;min-width:92px;}
.trusted-devices-table th:nth-child(3),
.trusted-devices-table td:nth-child(3){width:130px;min-width:130px;}
.trusted-devices-table th:nth-child(4),
.trusted-devices-table td:nth-child(4){width:120px;min-width:120px;text-align:left;}
.trusted-devices-table th:nth-child(5),
.trusted-devices-table td:nth-child(5),
.trusted-devices-table th:nth-child(6),
.trusted-devices-table td:nth-child(6){width:150px;min-width:150px;text-align:left;}
.trusted-devices-table th:nth-child(7),
.trusted-devices-table td:nth-child(7){width:190px;min-width:190px;text-align:left;}
.trusted-device-actions{
  min-width:190px;
  max-width:190px;
  overflow:visible;
}
.trusted-device-actions form{
  width:100%;
  margin:0 0 .5rem;
}
.trusted-device-rename{
  display:grid;
  grid-template-columns:1fr;
  gap:.5rem;
  align-items:stretch;
}
.trusted-device-rename input{
  width:100%;
  max-width:100%;
  box-sizing:border-box;
}
.trusted-device-actions .secondary{
  width:100%;
  justify-content:center;
  text-align:center;
}
@media (max-width: 760px){
  .trusted-devices-table{min-width:900px;}
  .trusted-device-actions{min-width:170px;max-width:170px;}
}

/* Phase 7.5.5 Account Sharing Detection */
.account-sharing-panel .sharing-signal-note,
.account-sharing-panel .sharing-safe-note {
  margin: 16px 0;
}
.sharing-events-list {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}
.sharing-events-list h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}
.sharing-event-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.45);
}
.account-sharing-stats .stat strong {
  color: var(--accent, #facc15);
}
@media (max-width: 720px) {
  .sharing-event-row { flex-direction: column; }
}

/* Phase 7.5.6 Impossible Travel Detection */
.impossible-travel-panel .impossible-travel-note {
  margin: 14px 0 18px;
}
.impossible-travel-table td:nth-child(2) {
  min-width: 320px;
}
.impossible-travel-table td:nth-child(2) strong {
  line-height: 1.45;
}
@media (max-width: 760px) {
  .impossible-travel-table td:nth-child(2) { min-width: 240px; }
}

/* Phase 7.5.7 — Admin Security Dashboard */
.admin-pill.danger,
.admin-status.danger {
  border-color: rgba(248, 113, 113, 0.58);
  background: rgba(127, 29, 29, 0.28);
  color: #fecaca;
}

.admin-status.warning {
  border-color: rgba(251, 191, 36, 0.55);
  background: rgba(146, 64, 14, 0.22);
  color: #fde68a;
}

.security-command-center {
  position: relative;
  overflow: hidden;
}

.security-command-center::before {
  content: "";
  position: absolute;
  inset: -120px auto auto -120px;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.10), transparent 68%);
  pointer-events: none;
}

.security-metric-grid .admin-metric-card strong {
  font-variant-numeric: tabular-nums;
}

.security-grid-two {
  align-items: stretch;
}

.security-readiness-list,
.security-event-list {
  display: grid;
  gap: 12px;
}

.security-readiness-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  align-items: center;
  border: 1px solid rgba(147, 197, 253, 0.18);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.28);
  padding: 12px;
}

.security-readiness-row small {
  grid-column: 2;
  color: var(--muted, #bfdbfe);
}

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

.security-risk-summary > div {
  border: 1px solid rgba(147, 197, 253, 0.18);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.28);
  padding: 14px;
}

.security-risk-summary h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.security-risk-summary p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0;
}

.security-risk-summary .muted {
  color: var(--muted, #bfdbfe);
  justify-content: flex-start;
}

.security-event-card {
  border: 1px solid rgba(147, 197, 253, 0.20);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.34);
  padding: 14px;
}

.security-event-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.security-event-card strong {
  display: block;
  margin-bottom: 8px;
}

.security-event-card p {
  margin: 0 0 10px;
  color: #dbeafe;
}

.security-event-card small {
  display: block;
  color: var(--muted, #bfdbfe);
  line-height: 1.45;
}

.security-inline-review {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  flex-wrap: wrap;
}

.security-inline-review input[type="text"] {
  flex: 1 1 190px;
  min-width: 0;
}

.btn.tiny {
  min-height: 32px;
  padding: 7px 11px;
  font-size: 0.78rem;
}

@media (max-width: 780px) {
  .security-risk-summary {
    grid-template-columns: 1fr;
  }

  .security-readiness-row {
    grid-template-columns: 1fr;
  }

  .security-readiness-row small {
    grid-column: auto;
  }
}

/* Phase 7.5.8 Security Notifications */
.security-notifications-panel .security-notification-settings {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
.security-toggle-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}
.security-toggle-row input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
.security-toggle-row span {
  display: grid;
  gap: 3px;
}
.security-toggle-row small {
  color: var(--muted, #64748b);
  line-height: 1.4;
}
.security-notification-history {
  margin-top: 18px;
}
.security-notification-history h3 {
  margin: 0 0 10px;
}

/* Phase 7.7 Coupon & Promotion System */
.admin-promo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 18px 0 22px;
}
.admin-promo-card {
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.035);
  border-radius: 18px;
  padding: 18px;
}
.membership-settings-form.compact-form {
  margin-top: 12px;
}
.membership-settings-form textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(5, 12, 19, .72);
  color: inherit;
  padding: 11px 12px;
  font: inherit;
  resize: vertical;
}
.admin-inline-note {
  display: block;
  margin-top: 4px;
  color: #f2c46d;
}
.membership-promo-badge,
.membership-promo-note {
  display: block;
  margin-top: 6px;
}
.membership-promo-badge {
  color: #f2c46d;
  font-weight: 800;
  letter-spacing: .02em;
}
.membership-promo-note {
  opacity: .88;
}
@media (max-width: 900px) {
  .admin-promo-grid { grid-template-columns: 1fr; }
}

/* Phase 7.8 Launch Readiness */
.footer-links{display:flex;gap:14px;justify-content:center;flex-wrap:wrap;margin-top:8px;font-size:.9rem}
.footer-links a{color:rgba(255,255,255,.72);text-decoration:none}
.footer-links a:hover{color:#fff;text-decoration:underline}
.launch-readiness-shell{display:grid;gap:18px;margin:22px 0 44px}
.launch-readiness-score{display:flex;align-items:center;justify-content:space-between;gap:18px;border:1px solid rgba(255,255,255,.12)}
.launch-readiness-score h2{font-size:3rem;line-height:1;margin:.1em 0;color:#f5d36b}
.launch-progress-ring{width:112px;height:112px;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle at center,rgba(6,22,14,.98) 0 55%,transparent 56%),conic-gradient(#f5d36b 0 75%,rgba(255,255,255,.12) 0);border:1px solid rgba(245,211,107,.35);box-shadow:0 18px 40px rgba(0,0,0,.22)}
.launch-progress-ring span{font-weight:800;color:#f5d36b}
.launch-metrics-grid{margin:0}
.launch-check-group h2,.launch-final-checklist h2{margin-top:0}
.launch-check-list{display:grid;gap:10px}
.launch-check-row{display:grid;grid-template-columns:34px 1fr;gap:12px;align-items:start;padding:13px 14px;border-radius:16px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.035)}
.launch-check-row.ready{border-color:rgba(72,211,132,.28);background:rgba(72,211,132,.06)}
.launch-check-row.needs-work{border-color:rgba(245,211,107,.3);background:rgba(245,211,107,.07)}
.launch-check-icon{width:28px;height:28px;border-radius:999px;display:grid;place-items:center;font-weight:900;background:rgba(255,255,255,.08);color:#f5d36b}
.launch-check-row.ready .launch-check-icon{background:rgba(72,211,132,.16);color:#48d384}
.launch-check-copy{display:grid;gap:3px}
.launch-check-copy strong{color:#fff}
.launch-check-copy span{color:rgba(255,255,255,.75)}
.launch-check-copy small{color:#f5d36b}
.launch-final-checklist ol{margin-bottom:0;color:rgba(255,255,255,.78)}
.launch-final-checklist li{margin:.45em 0}
.legal-page-shell,.support-page-shell,.error-page-shell{max-width:880px;margin:24px auto 48px;padding:28px}
.legal-page-shell h1,.support-page-shell h1,.error-page-shell h1{margin-top:0}
.legal-page-shell h2{margin-top:1.3em;color:#fff}
.legal-updated,.legal-note{color:rgba(255,255,255,.58);font-size:.95rem}
.support-form{display:grid;gap:14px;margin-top:18px}
.support-form label{display:grid;gap:7px;color:rgba(255,255,255,.78);font-weight:700}
.support-form input,.support-form textarea{width:100%;box-sizing:border-box;border-radius:14px;border:1px solid rgba(255,255,255,.14);background:rgba(0,0,0,.22);color:#fff;padding:12px 13px;font:inherit}
.support-form textarea{resize:vertical;min-height:150px}
.error-page-shell .btnrow{margin-top:18px}
@media (max-width:700px){.launch-readiness-score{align-items:flex-start;flex-direction:column}.launch-progress-ring{width:92px;height:92px}.launch-readiness-score h2{font-size:2.4rem}}

/* Phase 7.8.2 — System & Error Experience */
.system-page-body {
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(circle at 20% 0%, rgba(34, 197, 94, 0.12), transparent 34%), #071226;
  color: #f8fafc;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.system-page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
  box-sizing: border-box;
}
.system-error-card {
  width: min(720px, 100%);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(10, 17, 32, 0.98));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  padding: clamp(28px, 5vw, 54px);
}
.system-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  color: #facc15;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}
.system-error-card .eyebrow {
  color: #facc15;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.system-error-card h1 {
  font-size: clamp(36px, 7vw, 64px);
  line-height: 0.96;
  margin: 0 0 18px;
}
.system-error-message {
  color: #cbd5e1;
  font-size: 1.12rem;
  line-height: 1.65;
  margin: 0 0 12px;
}
.system-error-details {
  color: #93a4bd;
  border-left: 3px solid rgba(250, 204, 21, 0.65);
  padding-left: 14px;
  margin: 18px 0 0;
}
.system-error-actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.launch-system-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.system-preview-card {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  padding: 18px;
  background: rgba(15, 23, 42, 0.35);
}
.system-preview-card strong {
  display: block;
  color: #f8fafc;
  margin-bottom: 6px;
}
.system-preview-card span {
  display: block;
  color: #aebbd0;
  margin-bottom: 14px;
  line-height: 1.45;
}
.system-status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 900;
  font-size: 0.78rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
}
.system-status-pill.good { color: #86efac; border-color: rgba(34,197,94,.45); background: rgba(34,197,94,.12); }
.system-status-pill.warn { color: #fde68a; border-color: rgba(250,204,21,.45); background: rgba(250,204,21,.12); }
@media (max-width: 720px) {
  .system-error-actions .btn { width: 100%; justify-content: center; }
}

/* Phase 7.8.3 — Admin Health & performance polish */
.health-score-grid .admin-metric-card.danger,
.admin-metric-card.danger {
  border-color: rgba(248, 113, 113, .55);
  background: linear-gradient(180deg, rgba(127, 29, 29, .28), rgba(15, 23, 42, .86));
}
.health-grid { align-items: start; }
.health-check-list { display: grid; gap: 12px; }
.health-check-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 16px;
  background: rgba(15, 23, 42, .45);
}
.health-check-row strong { display: block; color: #fff; margin-bottom: 3px; }
.health-check-row span { display: block; color: rgba(203, 213, 225, .86); line-height: 1.45; }
.health-dot {
  width: 12px;
  height: 12px;
  margin-top: 5px;
  border-radius: 50%;
  background: #facc15;
  box-shadow: 0 0 0 4px rgba(250, 204, 21, .12);
}
.health-check-row.good .health-dot { background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .13); }
.health-check-row.bad .health-dot { background: #ef4444; box-shadow: 0 0 0 4px rgba(239, 68, 68, .15); }
.health-check-row.good { border-color: rgba(34, 197, 94, .25); }
.health-check-row.warn { border-color: rgba(250, 204, 21, .25); }
.health-check-row.bad { border-color: rgba(239, 68, 68, .30); }
.health-detail-list { display: grid; gap: 10px; margin: 0; }
.health-detail-list div {
  display: grid;
  grid-template-columns: minmax(140px, .55fr) 1fr;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(148, 163, 184, .16);
}
.health-detail-list dt { color: #facc15; font-weight: 800; }
.health-detail-list dd { margin: 0; color: rgba(241, 245, 249, .94); }
.health-count-table code { color: #facc15; }
.health-backup-list { display: grid; gap: 10px; }
.health-backup-row {
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  border: 1px solid rgba(148, 163, 184, .20);
  border-radius: 14px;
  background: rgba(15, 23, 42, .42);
}
.health-backup-row strong { color: #fff; }
.health-backup-row span { color: rgba(203, 213, 225, .84); }
.health-note-box {
  margin-top: 14px;
  padding: 15px;
  border-radius: 16px;
  border: 1px solid rgba(250, 204, 21, .22);
  background: rgba(250, 204, 21, .08);
  display: grid;
  gap: 5px;
}
.health-note-box strong { color: #facc15; }
.health-note-box span { color: rgba(241, 245, 249, .88); }
.health-performance-pass { margin-top: 22px; }
@media (max-width: 760px) {
  .health-detail-list div { grid-template-columns: 1fr; gap: 4px; }
}

/* Phase 7.8.4 Final Launch Audit */
.audit-scoreboard {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  gap: 18px;
  margin: 22px 0;
}
.audit-score-card {
  border: 1px solid rgba(90, 135, 210, .45);
  background: linear-gradient(135deg, rgba(18, 40, 88, .92), rgba(9, 18, 38, .96));
  border-radius: 22px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  box-shadow: 0 20px 50px rgba(0,0,0,.22);
}
.audit-score-card.success { border-color: rgba(47, 181, 106, .55); }
.audit-score-card.warning { border-color: rgba(255, 204, 0, .55); }
.audit-score-card h2 { font-size: clamp(44px, 7vw, 76px); margin: 0 0 4px; }
.audit-score-card p { color: var(--muted, #aebbd3); max-width: 640px; }
.audit-metrics-grid { margin: 0; align-content: stretch; }
.audit-action-grid { margin: 22px 0; }
.audit-manual-list { margin: 0; padding-left: 22px; color: var(--muted, #aebbd3); line-height: 1.75; }
.audit-manual-list li { margin: 4px 0; }
.audit-next-links .system-preview-card { text-decoration: none; color: inherit; }
.audit-group { margin: 18px 0; }
.audit-check-list { display: grid; gap: 10px; }
.audit-check-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.035);
}
.audit-check-row.ready { border-color: rgba(47, 181, 106, .28); }
.audit-check-row.needs-work.high { border-color: rgba(255, 83, 83, .45); background: rgba(255, 83, 83, .075); }
.audit-check-row.needs-work.medium { border-color: rgba(255, 204, 0, .35); background: rgba(255, 204, 0, .055); }
.audit-check-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 900;
  background: rgba(255, 204, 0, .14);
  color: #ffd84d;
  border: 1px solid rgba(255, 204, 0, .32);
}
.audit-check-row.ready .audit-check-icon {
  background: rgba(47, 181, 106, .15);
  border-color: rgba(47, 181, 106, .45);
  color: #80f2ad;
}
.audit-check-copy { display: grid; gap: 4px; }
.audit-check-copy strong { color: #fff; }
.audit-check-copy span, .audit-check-copy small { color: var(--muted, #aebbd3); }
.audit-check-copy small { color: #ffd84d; }
.audit-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  border: 1px solid rgba(255,255,255,.16);
}
.audit-status-pill.ready { color: #80f2ad; border-color: rgba(47, 181, 106, .42); background: rgba(47, 181, 106, .12); }
.audit-status-pill.review { color: #ffd84d; border-color: rgba(255, 204, 0, .42); background: rgba(255, 204, 0, .12); }
.audit-phase-complete { margin: 22px 0 34px; }
@media (max-width: 900px) {
  .audit-scoreboard, .audit-action-grid { grid-template-columns: 1fr; }
  .audit-score-card { align-items: flex-start; flex-direction: column; }
  .audit-check-row { grid-template-columns: 32px minmax(0, 1fr); }
  .audit-status-pill { grid-column: 2; justify-self: flex-start; }
}

/* Phase 8.1 Homepage Redesign */
.landing-section{margin-bottom:34px}.home-hero{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(380px,.95fr);gap:30px;align-items:center;padding:30px 0 42px}.home-hero h1{font-size:clamp(48px,7.4vw,86px);letter-spacing:-.055em;line-height:.9;max-width:900px}.home-hero-lede{font-size:clamp(18px,2.1vw,22px);max-width:760px;color:#bfdbfe}.home-hero-actions .btn{min-width:168px;text-align:center}.home-proof-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}.home-proof-row span{display:inline-flex;gap:7px;align-items:center;background:rgba(15,23,42,.74);border:1px solid rgba(148,163,184,.28);border-radius:999px;padding:9px 13px;color:#cbd5e1;font-weight:800}.home-proof-row strong{color:var(--accent)}.home-hero-product{min-width:0}.home-table-preview{background:linear-gradient(180deg,rgba(15,23,42,.88),rgba(2,6,23,.92));border:1px solid rgba(96,165,250,.35);border-radius:30px;padding:18px;box-shadow:0 28px 80px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.05)}.home-table-felt{position:relative;overflow:hidden;min-height:360px;border-radius:26px;background:radial-gradient(circle at 50% 4%,#1d4d82 0,#075335 48%,#052117 100%);border:1px solid rgba(255,255,255,.16);box-shadow:inset 0 0 0 3px rgba(255,255,255,.03);display:grid;grid-template-rows:1fr auto 1fr;place-items:center;padding:28px}.home-table-felt:before{content:"HANNCOUNT";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:42px;font-weight:950;letter-spacing:.08em;color:rgba(255,255,255,.07)}.home-dealer-row,.home-player-row{display:flex;gap:8px;position:relative;z-index:1}.home-card{width:68px;height:96px;border-radius:10px;background:#f8fafc;color:#0f172a;display:flex;align-items:flex-start;justify-content:flex-start;padding:8px;font-weight:950;font-size:24px;box-shadow:0 16px 32px rgba(0,0,0,.28);border:1px solid rgba(2,6,23,.2)}.home-card.red{color:#dc2626}.home-count-badge{position:relative;z-index:1;background:rgba(2,6,23,.8);border:1px solid rgba(234,179,8,.7);border-radius:999px;color:#fde68a;font-weight:950;padding:9px 14px;box-shadow:0 14px 30px rgba(0,0,0,.24)}.home-chip-row{position:absolute;bottom:20px;left:0;right:0;display:flex;justify-content:center;gap:8px;z-index:1}.home-chip-row span{width:48px;height:48px;border-radius:999px;display:grid;place-items:center;background:#f8fafc;color:#111827;border:5px dashed #111827;font-size:13px;font-weight:950;box-shadow:0 10px 22px rgba(0,0,0,.25)}.home-chip-row span:nth-child(2){background:#111827;color:#f8fafc;border-color:#f8fafc}.home-chip-row span:nth-child(3){background:#7c3aed;color:#fff;border-color:#fff}.home-chip-row span:nth-child(4){background:#f59e0b;color:#111827;border-color:#fff}.home-coach-card{margin-top:14px;background:#0b1220;border:1px solid rgba(148,163,184,.25);border-radius:20px;padding:16px}.home-coach-card span,.home-kicker{display:block;color:var(--accent);font-size:12px;font-weight:950;text-transform:uppercase;letter-spacing:.08em;margin-bottom:6px}.home-coach-card strong{display:block;font-size:18px;line-height:1.25}.home-coach-card em{display:block;color:#94a3b8;font-style:normal;margin-top:8px}.home-feature-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.home-feature-strip>div,.home-showcase-card,.home-trainer-card,.home-benefit-list>div,.home-price-card,.home-faq-grid details,.home-final-cta{background:rgba(15,23,42,.78);border:1px solid rgba(148,163,184,.25);border-radius:22px;padding:22px;box-shadow:0 18px 55px rgba(0,0,0,.16)}.home-feature-strip strong{display:block;font-size:22px;margin-bottom:8px}.home-feature-strip p,.home-showcase-card p,.home-benefit-list span,.home-price-card small,.home-faq-grid p{font-size:16px;color:#cbd5e1;margin:0}.home-section-head{max-width:820px}.home-section-head h2{font-size:clamp(34px,5vw,56px);line-height:.98;letter-spacing:-.04em;margin:8px 0 12px}.home-section-head p{color:#bfdbfe}.home-section-head.compact{margin-bottom:16px}.home-showcase-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.home-showcase-card h3{font-size:28px;line-height:1.08;margin:8px 0 12px}.home-wide-card{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:22px;align-items:center;background:linear-gradient(135deg,rgba(30,64,175,.36),rgba(15,23,42,.86))}.home-mini-dashboard{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.home-mini-dashboard div{background:rgba(2,6,23,.55);border:1px solid rgba(148,163,184,.22);border-radius:17px;padding:16px}.home-mini-dashboard span{display:block;color:#94a3b8;text-transform:uppercase;font-size:12px;font-weight:900;letter-spacing:.05em}.home-mini-dashboard strong{display:block;color:#f8fafc;font-size:30px;margin-top:4px}.home-inline-link{display:inline-block;color:#fde68a;text-decoration:none;font-weight:900;margin-top:16px}.home-trainer-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.home-trainer-card{text-decoration:none;color:#f8fafc;transition:transform .18s ease,border-color .18s ease,background .18s ease}.home-trainer-card:hover{transform:translateY(-2px);border-color:rgba(234,179,8,.55);background:rgba(30,41,59,.85)}.home-trainer-card span{display:inline-flex;width:34px;height:34px;border-radius:999px;background:#172554;border:1px solid #2563eb;align-items:center;justify-content:center;color:#fde68a;font-weight:950;margin-bottom:12px}.home-trainer-card strong{display:block;font-size:18px}.home-trainer-card em{display:block;font-style:normal;color:#94a3b8;margin-top:5px}.home-split-section{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:20px;align-items:start}.home-benefit-list{display:grid;gap:12px}.home-benefit-list strong{display:block;font-size:20px;margin-bottom:4px}.home-pricing-cta{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:24px;align-items:center;background:linear-gradient(135deg,rgba(234,179,8,.14),rgba(37,99,235,.14));border:1px solid rgba(234,179,8,.22);border-radius:28px;padding:28px}.home-price-card{text-align:center;position:relative}.home-regular-price{
  display:block;
  color:#94a3b8;
  text-decoration:line-through;
  font-size:20px;
  font-weight:950;
  margin-bottom:-6px;
}
.home-price-card strong{display:block;font-size:62px;letter-spacing:-.05em;color:#f8fafc}.home-price-card em{display:block;color:#cbd5e1;font-style:normal;margin:-4px 0 16px}.home-price-card .btn{display:block;margin-bottom:12px}.home-sale-pill{display:inline-block;background:#fde68a;color:#1f2937;border-radius:999px;padding:6px 10px;font-weight:950;font-size:12px;text-transform:uppercase;letter-spacing:.06em;margin-bottom:8px}.home-faq-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.home-faq-grid summary{cursor:pointer;font-size:18px;font-weight:900;color:#f8fafc}.home-faq-grid details p{margin-top:10px}.home-final-cta{text-align:center;padding:34px}.home-final-cta h2{font-size:clamp(32px,5vw,52px);line-height:1;letter-spacing:-.04em;margin:0 auto 12px;max-width:820px}.home-final-cta p{max-width:720px;margin:0 auto 22px;color:#bfdbfe}.home-final-cta .btnrow{justify-content:center}
@media(max-width:1040px){.home-hero{grid-template-columns:1fr}.home-hero-product{max-width:680px}.home-wide-card,.home-split-section,.home-pricing-cta{grid-template-columns:1fr}.home-trainer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-mini-dashboard{max-width:520px}.home-feature-strip{grid-template-columns:1fr}}
@media(max-width:760px){.landing-section{margin-bottom:24px}.home-hero{padding-top:10px}.home-hero h1{font-size:44px}.home-hero-actions .btn{width:100%}.home-proof-row span{flex:1 1 100%;justify-content:center}.home-table-felt{min-height:310px;padding:20px}.home-card{width:56px;height:80px;font-size:20px}.home-chip-row span{width:42px;height:42px;font-size:12px}.home-showcase-grid,.home-faq-grid,.home-trainer-grid{grid-template-columns:1fr}.home-pricing-cta{padding:20px;border-radius:22px}.home-price-card strong{font-size:48px}.home-feature-strip>div,.home-showcase-card,.home-trainer-card,.home-benefit-list>div,.home-price-card,.home-faq-grid details,.home-final-cta{padding:18px}}

/* Phase 8.2 homepage copy + visual polish */
.home-hero h1{
  line-height:1.02 !important;
  letter-spacing:-.052em;
  max-width:920px;
}
.home-hero-lede{
  line-height:1.55;
  max-width:720px;
}
.home-visual-showcase{gap:20px}
.home-product-shot{margin:0;background:rgba(2,6,23,.5);border:1px solid rgba(148,163,184,.22);border-radius:22px;padding:12px;box-shadow:0 18px 45px rgba(0,0,0,.24)}
.home-product-shot img{display:block;width:100%;height:auto;border-radius:16px;border:1px solid rgba(255,255,255,.12)}
.home-product-shot figcaption{color:#94a3b8;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.06em;margin-top:10px;text-align:center}
.home-simulator-showcase{grid-template-columns:minmax(0,.86fr) minmax(320px,1.14fr)}
.home-dashboard-showcase{grid-template-columns:minmax(0,.95fr) minmax(320px,1.05fr)}
.home-visual-card{display:grid;grid-template-rows:auto 1fr;gap:18px;min-height:360px}
.home-trainer-preview{position:relative;min-height:190px;border-radius:22px;background:linear-gradient(135deg,rgba(37,99,235,.22),rgba(2,6,23,.72));border:1px solid rgba(96,165,250,.28);padding:18px;display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:start;overflow:hidden}
.home-trainer-preview:before{content:"Trainer Preview";position:absolute;right:16px;bottom:14px;color:rgba(255,255,255,.12);font-weight:950;text-transform:uppercase;letter-spacing:.08em}
.trainer-preview-card{height:112px;border-radius:16px;background:#f8fafc;color:#0f172a;box-shadow:0 18px 34px rgba(0,0,0,.28);padding:12px;display:flex;flex-direction:column;justify-content:space-between;font-weight:950}
.trainer-preview-card span{font-size:30px}.trainer-preview-card strong{font-size:24px;color:#16a34a}.trainer-preview-card:nth-child(2) strong{color:#dc2626}
.trainer-preview-panel{grid-column:1/-1;border-radius:16px;background:rgba(2,6,23,.68);border:1px solid rgba(148,163,184,.22);padding:14px;display:grid;grid-template-columns:1fr auto;gap:4px 12px;align-items:center}
.trainer-preview-panel em{font-style:normal;color:#94a3b8;font-weight:900;text-transform:uppercase;font-size:12px;letter-spacing:.05em}.trainer-preview-panel strong{font-size:32px;color:#facc15}.trainer-preview-panel small{color:#cbd5e1}
.home-replay-preview{min-height:190px;border-radius:22px;background:linear-gradient(135deg,rgba(15,23,42,.9),rgba(30,64,175,.22));border:1px solid rgba(96,165,250,.28);padding:22px;display:grid;gap:14px;align-content:center}
.replay-step{position:relative;border-radius:999px;background:rgba(15,23,42,.75);border:1px solid rgba(148,163,184,.24);padding:12px 16px 12px 44px;color:#cbd5e1;font-weight:900}
.replay-step:before{content:"";position:absolute;left:16px;top:50%;width:12px;height:12px;border-radius:999px;transform:translateY(-50%);background:#64748b;box-shadow:0 0 0 4px rgba(100,116,139,.14)}
.replay-step.done:before{background:#22c55e;box-shadow:0 0 0 4px rgba(34,197,94,.14)}
.replay-step.active{border-color:rgba(250,204,21,.62);color:#fff;background:rgba(234,179,8,.12)}
.replay-step.active:before{background:#facc15;box-shadow:0 0 0 4px rgba(250,204,21,.16)}
.home-feature-strip p,.home-showcase-card p,.home-benefit-list span,.home-price-card small,.home-faq-grid p{line-height:1.55}
.home-showcase-card h3{line-height:1.15}.home-section-head h2{line-height:1.08}.home-final-cta h2{line-height:1.08}
@media(max-width:1040px){.home-simulator-showcase,.home-dashboard-showcase{grid-template-columns:1fr}.home-product-shot{max-width:760px}.home-hero h1{max-width:780px}}
@media(max-width:760px){.home-hero h1{font-size:clamp(42px,12vw,58px);line-height:1.04 !important}.home-visual-card{min-height:auto}.home-trainer-preview,.home-replay-preview{min-height:170px}.home-trainer-preview:before{display:none}}


/* Phase 8.3 homepage simulator screenshot integration */
.home-simulator-showcase .home-product-shot{
  padding:10px;
  background:linear-gradient(180deg,rgba(15,23,42,.82),rgba(2,6,23,.92));
  border-color:rgba(96,165,250,.32);
}
.home-simulator-showcase .home-product-shot img{
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  box-shadow:0 20px 50px rgba(0,0,0,.28);
}
@media(max-width:760px){
  .home-simulator-showcase .home-product-shot{padding:8px;border-radius:18px}
  .home-simulator-showcase .home-product-shot img{border-radius:12px}
}

/* Phase 8.4 homepage visual credibility pass */
.home-stacked-shot{
  align-self:stretch;
  display:flex;
  flex-direction:column;
  justify-content:center;
  margin-top:4px;
}
.home-stacked-shot img,
.home-dashboard-shot img{
  box-shadow:0 18px 45px rgba(0,0,0,.24);
}
.home-dashboard-shot{
  margin:0;
}
.home-dashboard-showcase{
  grid-template-columns:minmax(0,.86fr) minmax(360px,1.14fr);
}
.home-visual-card .home-product-shot{
  padding:10px;
}
.home-visual-card .home-product-shot img{
  border-radius:14px;
}
@media(max-width:1040px){
  .home-dashboard-showcase{grid-template-columns:1fr}
  .home-dashboard-shot{max-width:760px}
}
@media(max-width:760px){
  .home-stacked-shot,.home-dashboard-shot{margin-top:0}
  .home-visual-card .home-product-shot{padding:8px;border-radius:18px}
}

/* Phase 8.5 Homepage SEO + conversion polish */
.home-conversion-band{
  display:grid;
  grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
  gap:22px;
  align-items:start;
  background:linear-gradient(135deg,rgba(15,23,42,.78),rgba(30,64,175,.20));
  border:1px solid rgba(96,165,250,.24);
  border-radius:28px;
  padding:28px;
}
.home-conversion-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.home-conversion-grid>div{
  border:1px solid rgba(148,163,184,.22);
  background:rgba(2,6,23,.42);
  border-radius:18px;
  padding:18px;
}
.home-conversion-grid strong{display:block;color:#f8fafc;font-size:19px;margin-bottom:6px}
.home-conversion-grid span{display:block;color:#cbd5e1;line-height:1.5}
.home-trust-strip{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:10px;
  padding:18px;
  border-radius:22px;
  border:1px solid rgba(234,179,8,.22);
  background:rgba(234,179,8,.07);
}
.home-trust-strip span{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border:1px solid rgba(250,204,21,.22);
  background:rgba(15,23,42,.74);
  color:#fde68a;
  border-radius:999px;
  padding:9px 12px;
  font-size:13px;
  font-weight:900;
}
.home-trust-strip span:before{content:"✓";color:#86efac;font-weight:950}
.home-price-list{
  list-style:none;
  padding:0;
  margin:0 0 18px;
  display:grid;
  gap:8px;
  text-align:left;
}
.home-price-list li{
  position:relative;
  padding-left:24px;
  color:#dbeafe;
  font-weight:800;
  line-height:1.35;
}
.home-price-list li:before{
  content:"✓";
  position:absolute;
  left:0;
  top:0;
  color:#86efac;
  font-weight:950;
}
.home-mobile-sticky-cta{display:none}
@media(max-width:1040px){
  .home-conversion-band{grid-template-columns:1fr}
}
@media(max-width:760px){
  .home-conversion-band{padding:20px;border-radius:22px}
  .home-conversion-grid{grid-template-columns:1fr}
  .home-mobile-sticky-cta{
    position:fixed;
    left:10px;
    right:10px;
    bottom:10px;
    z-index:80;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
    padding:10px;
    border-radius:18px;
    border:1px solid rgba(148,163,184,.26);
    background:rgba(2,6,23,.92);
    box-shadow:0 18px 48px rgba(0,0,0,.38);
    backdrop-filter:blur(14px);
    display:none !important;
  }
  .home-mobile-sticky-cta .btn{padding:12px 10px;text-align:center;font-size:14px}
  body{padding-bottom:72px}
}

/* Phase 8.6 Homepage final conversion polish */
.home-how-it-works{
  background:linear-gradient(135deg,rgba(15,23,42,.82),rgba(2,6,23,.72));
  border:1px solid rgba(148,163,184,.22);
  border-radius:28px;
  padding:28px;
}
.home-steps-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin-top:18px;
}
.home-steps-grid article{
  position:relative;
  overflow:hidden;
  border:1px solid rgba(148,163,184,.22);
  border-radius:20px;
  padding:20px;
  background:rgba(15,23,42,.72);
  min-height:190px;
}
.home-steps-grid article:after{
  content:"";
  position:absolute;
  inset:auto -20px -36px auto;
  width:110px;
  height:110px;
  border-radius:999px;
  background:rgba(234,179,8,.08);
}
.home-steps-grid span{
  display:inline-flex;
  width:38px;
  height:38px;
  border-radius:999px;
  align-items:center;
  justify-content:center;
  background:#172554;
  border:1px solid rgba(96,165,250,.48);
  color:#fde68a;
  font-weight:950;
  margin-bottom:16px;
}
.home-steps-grid strong{
  display:block;
  color:#f8fafc;
  font-size:20px;
  line-height:1.16;
  margin-bottom:9px;
}
.home-steps-grid p{
  color:#cbd5e1;
  line-height:1.52;
  margin:0;
}
.home-fit-section{
  display:grid;
  grid-template-columns:minmax(0,1.22fr) minmax(280px,.78fr);
  gap:18px;
  align-items:stretch;
}
.home-fit-card{
  border:1px solid rgba(148,163,184,.22);
  border-radius:26px;
  padding:26px;
  background:rgba(15,23,42,.78);
  box-shadow:0 18px 55px rgba(0,0,0,.16);
}
.home-fit-card.primary{
  background:linear-gradient(135deg,rgba(30,64,175,.22),rgba(15,23,42,.82));
}
.home-fit-card h2{
  font-size:clamp(30px,4.3vw,48px);
  line-height:1.06;
  letter-spacing:-.04em;
  margin:8px 0 12px;
}
.home-fit-card p{
  color:#bfdbfe;
  line-height:1.58;
  margin:0;
}
.home-fit-tags{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:20px;
}
.home-fit-tags span{
  display:inline-flex;
  border:1px solid rgba(96,165,250,.24);
  background:rgba(2,6,23,.38);
  color:#dbeafe;
  border-radius:999px;
  padding:9px 12px;
  font-size:13px;
  font-weight:900;
}
.home-fit-card.compact-card{
  display:flex;
  flex-direction:column;
  justify-content:center;
  border-color:rgba(234,179,8,.24);
  background:rgba(234,179,8,.07);
}
.home-fit-card.compact-card strong{
  display:block;
  color:#fde68a;
  font-size:24px;
  line-height:1.14;
  margin-bottom:12px;
}
.home-fit-card.compact-card p{color:#e5e7eb}
@media(max-width:1040px){
  .home-steps-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .home-fit-section{grid-template-columns:1fr}
}
@media(max-width:760px){
  .home-how-it-works,.home-fit-card{padding:20px;border-radius:22px}
  .home-steps-grid{grid-template-columns:1fr}
  .home-steps-grid article{min-height:auto;padding:18px}
}


/* Phase 8.7 homepage final UX polish */
.home-quick-nav{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.home-quick-nav a{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;color:#bfdbfe;background:rgba(15,23,42,.62);border:1px solid rgba(96,165,250,.28);border-radius:999px;padding:8px 12px;font-weight:900;font-size:13px}
.home-quick-nav a:hover{border-color:rgba(234,179,8,.55);color:#fde68a;background:rgba(30,41,59,.82)}
.home-path-section{background:linear-gradient(135deg,rgba(15,23,42,.82),rgba(30,64,175,.22));border:1px solid rgba(96,165,250,.2);border-radius:28px;padding:26px}
.home-path-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:18px}
.home-path-card{background:rgba(2,6,23,.48);border:1px solid rgba(148,163,184,.24);border-radius:22px;padding:22px;min-height:230px;display:flex;flex-direction:column;box-shadow:0 18px 48px rgba(0,0,0,.14)}
.home-path-card.featured{border-color:rgba(234,179,8,.42);background:linear-gradient(180deg,rgba(30,64,175,.32),rgba(2,6,23,.52))}
.home-path-card span{align-self:flex-start;color:#0f172a;background:#facc15;border-radius:999px;padding:6px 10px;font-weight:950;font-size:12px;text-transform:uppercase;letter-spacing:.05em;margin-bottom:16px}
.home-path-card h3{font-size:25px;line-height:1.08;margin:0 0 10px;letter-spacing:-.025em}
.home-path-card p{color:#cbd5e1;line-height:1.55;margin:0 0 18px}
.home-path-card a{margin-top:auto;color:#fde68a;text-decoration:none;font-weight:950}
.home-path-card a:hover{text-decoration:underline}
.home-hero h1{max-width:980px}
.home-showcase-card p,.home-section-head p,.home-fit-card p{max-width:760px}
@media(max-width:1040px){.home-path-grid{grid-template-columns:1fr}.home-path-card{min-height:auto}.home-path-section{padding:22px;border-radius:24px}}
@media(max-width:760px){.home-quick-nav a{flex:1 1 auto}.home-path-section{padding:18px;border-radius:20px}.home-path-card{padding:18px}.home-path-card h3{font-size:22px}}

/* Phase 8 membership/profile polish */
.profile-intro-panel {
  margin-bottom: 1rem;
}
.profile-intro-panel h2 {
  margin: .25rem 0 .35rem;
}
.dashboard-tab-panel[data-dashboard-panel="profile"] .security-hero {
  display: none;
}
.dashboard-tab-panel[data-dashboard-panel="profile"] .security-panel,
.dashboard-tab-panel[data-dashboard-panel="profile"] .profile-intro-panel {
  max-width: 100%;
}
.membership-tier-section {
  margin-top: 1.25rem;
}
.membership-tier-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.1rem 0 1.25rem;
}
.membership-tier-card {
  border: 1px solid rgba(15, 23, 42, .10);
  border-radius: 20px;
  background: rgba(255,255,255,.82);
  padding: 1.15rem;
  box-shadow: 0 12px 34px rgba(15, 23, 42, .06);
}
.membership-tier-card h3 {
  margin: .25rem 0 .45rem;
  font-size: 1.22rem;
}
.membership-tier-card p {
  margin: 0 0 .8rem;
  color: var(--muted, #64748b);
  line-height: 1.55;
}
.membership-tier-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: #334155;
  line-height: 1.75;
}
.membership-tier-kicker {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(20, 83, 45, .08);
  color: #14532d;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .32rem .62rem;
}
.membership-tier-card.member-tier {
  border-color: rgba(234, 179, 8, .42);
  background: linear-gradient(180deg, rgba(255,251,235,.95), rgba(255,255,255,.92));
}
.membership-tier-card.featured-free {
  border-color: rgba(20, 83, 45, .22);
}
.membership-comparison-wrap {
  overflow-x: auto;
  border: 1px solid rgba(15, 23, 42, .10);
  border-radius: 18px;
  background: #fff;
}
.membership-comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
.membership-comparison-table th,
.membership-comparison-table td {
  padding: .85rem .95rem;
  border-bottom: 1px solid rgba(15, 23, 42, .08);
  text-align: center;
}
.membership-comparison-table th:first-child,
.membership-comparison-table td:first-child {
  text-align: left;
  font-weight: 700;
  color: #0f172a;
}
.membership-comparison-table thead th {
  background: rgba(15, 23, 42, .035);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .045em;
  color: #475569;
}
.membership-comparison-table tbody tr:last-child td {
  border-bottom: 0;
}
.membership-gating-note {
  display: grid;
  gap: .25rem;
  margin-top: 1rem;
  border-radius: 18px;
  padding: 1rem 1.1rem;
  background: rgba(20, 83, 45, .07);
  border: 1px solid rgba(20, 83, 45, .16);
  color: #14532d;
}
.membership-gating-note span {
  color: #334155;
  line-height: 1.55;
}
@media (max-width: 860px) {
  .membership-tier-cards {
    grid-template-columns: 1fr;
  }
}

/* Membership page UI/UX repair — wider layout, dark tier cards, no cramped columns */
.membership-hero {
  margin-bottom: 24px;
  overflow: hidden;
}
.membership-hero h1 {
  line-height: 1.04;
  letter-spacing: -0.045em;
}
.membership-page-wrap {
  display: grid;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
}
.membership-top-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(520px, 1.18fr);
  gap: 22px;
  align-items: stretch;
}
.membership-checkout-card {
  align-self: stretch;
}
.membership-value-panel {
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.26), rgba(15, 23, 42, 0.86));
  border-color: rgba(96, 165, 250, 0.24);
}
.membership-value-panel h2 {
  max-width: 780px;
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.07;
  letter-spacing: -0.04em;
}
.membership-value-panel .muted {
  max-width: 760px;
  color: #bfdbfe;
  line-height: 1.6;
}
.membership-benefit-grid.refined {
  margin-top: 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.membership-benefit-grid.refined article {
  min-height: 138px;
  background: rgba(2, 6, 23, 0.34);
  border-color: rgba(147, 197, 253, 0.20);
}
.membership-tier-section {
  margin-top: 0;
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.70));
  border: 1px solid rgba(96, 165, 250, 0.22);
}
.membership-tier-section .dashboard-section-head h2 {
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0 0 10px;
}
.membership-tier-section .dashboard-section-head .muted {
  color: #bfdbfe;
  max-width: 760px;
}
.membership-tier-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0;
}
.membership-tier-card {
  border: 1px solid rgba(147, 197, 253, 0.20);
  border-radius: 22px;
  background: rgba(2, 6, 23, 0.36);
  padding: 22px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  color: #f8fafc;
}
.membership-tier-card h3 {
  color: #f8fafc;
  font-size: 1.35rem;
  line-height: 1.12;
  margin: 10px 0 10px;
}
.membership-tier-card p,
.membership-tier-card ul {
  color: #cbd5e1;
}
.membership-tier-card ul {
  padding-left: 1.15rem;
  line-height: 1.65;
}
.membership-tier-kicker {
  background: rgba(250, 204, 21, 0.13);
  border: 1px solid rgba(250, 204, 21, 0.25);
  color: #fde68a;
}
.membership-tier-card.featured-free {
  border-color: rgba(96, 165, 250, 0.34);
  background: linear-gradient(180deg, rgba(30, 64, 175, 0.23), rgba(2, 6, 23, 0.38));
}
.membership-tier-card.member-tier {
  border-color: rgba(250, 204, 21, 0.54);
  background: linear-gradient(180deg, rgba(250, 204, 21, 0.14), rgba(2, 6, 23, 0.44));
}
.membership-comparison-wrap {
  overflow-x: auto;
  border: 1px solid rgba(147, 197, 253, 0.18);
  border-radius: 20px;
  background: rgba(2, 6, 23, 0.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.membership-comparison-table {
  min-width: 860px;
}
.membership-comparison-table th,
.membership-comparison-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(147, 197, 253, 0.14);
  color: #e5e7eb;
}
.membership-comparison-table th:first-child,
.membership-comparison-table td:first-child {
  color: #f8fafc;
  font-weight: 900;
}
.membership-comparison-table thead th {
  background: rgba(15, 23, 42, 0.62);
  color: #fde68a;
}
.membership-comparison-table td:not(:first-child) {
  font-size: 1rem;
  font-weight: 900;
  color: #dbeafe;
}
.membership-comparison-table tbody tr:hover td {
  background: rgba(96, 165, 250, 0.06);
}
.membership-gating-note {
  margin-top: 16px;
  background: rgba(34, 197, 94, 0.10);
  border: 1px solid rgba(34, 197, 94, 0.22);
  color: #bbf7d0;
}
.membership-gating-note span {
  color: #d1fae5;
}
@media (max-width: 1040px) {
  .membership-top-grid {
    grid-template-columns: 1fr;
  }
  .membership-value-panel h2 {
    max-width: 900px;
  }
}
@media (max-width: 860px) {
  .membership-tier-cards,
  .membership-benefit-grid.refined {
    grid-template-columns: 1fr;
  }
  .membership-tier-section,
  .membership-value-panel,
  .membership-public-card {
    padding: 20px;
    border-radius: 22px;
  }
}
@media (max-width: 560px) {
  .membership-page-wrap {
    gap: 18px;
  }
  .membership-discount-apply {
    grid-template-columns: 1fr;
  }
  .membership-public-actions form .btn,
  .membership-public-actions .btn {
    width: 100%;
  }
}

/* Daily Simulator Challenge demo mode */
.daily-demo-banner {
  margin: 1rem auto 1.25rem;
  max-width: 1180px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px) auto;
  gap: 1rem;
  align-items: center;
  border-color: rgba(245, 190, 0, 0.45);
  background: linear-gradient(135deg, rgba(245, 190, 0, 0.12), rgba(18, 38, 84, 0.7));
}
.daily-demo-banner strong { display:block; color:#fff; margin-bottom:.25rem; }
.daily-demo-banner span { color: var(--muted); line-height:1.5; }
.daily-demo-progress { min-width: 180px; }
.daily-demo-progress > span { display:block; font-weight:800; color:#fff; margin-bottom:.35rem; }
.daily-demo-progress small { display:block; margin-top:.35rem; color:#f5be00; font-weight:800; }
.bj-demo-mode .bj-demo-locked-setting,
.bj-demo-mode .bj-demo-locked-seat { position:relative; opacity:.72; }
.bj-demo-mode .bj-demo-editable-setting select { border-color: rgba(245,190,0,.65); box-shadow: 0 0 0 1px rgba(245,190,0,.25); }
.bj-demo-lock-badge {
  display:inline-flex;
  width: fit-content;
  margin-top:.35rem;
  padding:.2rem .55rem;
  border-radius:999px;
  background:rgba(245,190,0,.12);
  border:1px solid rgba(245,190,0,.35);
  color:#f5be00;
  font-size:.72rem;
  font-weight:900;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.bj-demo-lock-note { display:inline-flex; align-items:center; margin-left:.65rem; font-size:.9rem; }
.bj-demo-locked-control { border-color: rgba(245,190,0,.45) !important; color:#f5be00 !important; }
.bj-demo-mode .bj-saved-settings { border-color: rgba(245,190,0,.35); }
@media (max-width: 820px) {
  .daily-demo-banner { grid-template-columns:1fr; }
  .daily-demo-banner .btn { width:100%; }
}
.daily-demo-dashboard-card { margin-top: 1.25rem; border-color: rgba(245,190,0,.35); }
.dashboard-demo-progress { max-width: 420px; }

/* Email Template Admin UX polish */
.email-admin-hero {
  display: block;
  text-align: left;
  padding-bottom: 18px;
}
.email-admin-hero h1 {
  max-width: none;
  white-space: nowrap;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
  margin: 0.25rem 0 1rem;
}
.email-admin-hero .hero-subtitle {
  max-width: 760px;
}
.email-admin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
.email-settings-form,
.email-template-edit-form,
.email-template-picker,
.email-test-form {
  --email-field-bg: rgba(2, 6, 23, 0.72);
  --email-field-border: rgba(147, 197, 253, 0.30);
}
.email-settings-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
}
.email-settings-form label,
.email-template-edit-form label,
.email-template-picker label,
.email-test-form label {
  color: #f8fafc;
  font-weight: 900;
  font-size: 0.86rem;
}
.email-settings-form input,
.email-settings-form select,
.email-template-edit-form input,
.email-template-edit-form select,
.email-template-edit-form textarea,
.email-template-picker select,
.email-test-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--email-field-border);
  border-radius: 13px;
  background: var(--email-field-bg);
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  padding: 12px 13px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.email-settings-form select,
.email-template-edit-form select,
.email-template-picker select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #facc15 50%), linear-gradient(135deg, #facc15 50%, transparent 50%);
  background-position: calc(100% - 18px) 20px, calc(100% - 12px) 20px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 38px;
}
.email-settings-form input:focus,
.email-settings-form select:focus,
.email-template-edit-form input:focus,
.email-template-edit-form select:focus,
.email-template-edit-form textarea:focus,
.email-template-picker select:focus,
.email-test-form input:focus {
  outline: none;
  border-color: rgba(250, 204, 21, 0.75);
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.12);
}
.email-settings-form > label:nth-of-type(1),
.email-settings-form > label:nth-of-type(2),
.email-settings-form > label:nth-of-type(3),
.email-settings-form > label:nth-of-type(4),
.email-settings-form > label:nth-of-type(5) {
  grid-column: span 1;
}
.email-smtp-box {
  grid-column: span 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(147, 197, 253, 0.20);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.28);
}
.email-smtp-box h3,
.email-smtp-box .muted {
  grid-column: 1 / -1;
  margin: 0;
}
.email-smtp-box .muted {
  max-width: 620px;
  line-height: 1.55;
}
.email-settings-form .membership-settings-actions {
  grid-column: 1 / 3;
  justify-content: flex-start;
  align-self: end;
}
.email-settings-form > .muted {
  grid-column: 3 / -1;
  align-self: end;
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(147, 197, 253, 0.16);
}
.email-template-shell {
  display: grid;
  gap: 18px;
}
.email-template-picker {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
}
.email-template-picker label {
  min-width: min(420px, 100%);
  display: grid;
  gap: 8px;
}
.email-template-edit-form {
  display: grid;
  gap: 14px;
}
.email-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.email-template-edit-form textarea {
  min-height: 260px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92rem;
  line-height: 1.45;
}
.email-template-actions,
.email-test-form {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
}
.email-test-form label {
  flex: 1 1 360px;
  display: grid;
  gap: 8px;
}
.email-preview-meta {
  padding: 14px 16px;
  border: 1px solid rgba(147, 197, 253, 0.18);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.32);
  color: #dbeafe;
  line-height: 1.6;
}
.email-preview-frame {
  width: 100%;
  min-height: 680px;
  border: 1px solid rgba(147, 197, 253, 0.22);
  border-radius: 18px;
  background: #ffffff;
}
.email-template-hints {
  line-height: 1.8;
  color: #bfdbfe;
}
.email-template-hints code {
  display: inline-block;
  margin: 2px 4px 2px 0;
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(147,197,253,.12);
  color: #fde68a;
}
.admin-table td small {
  display: block;
  margin-top: 5px;
  color: #fca5a5;
  line-height: 1.35;
}
@media (max-width: 980px) {
  .email-settings-form,
  .email-smtp-box,
  .email-editor-grid {
    grid-template-columns: 1fr;
  }
  .email-smtp-box,
  .email-settings-form .membership-settings-actions,
  .email-settings-form > .muted {
    grid-column: 1 / -1;
  }
  .email-admin-hero h1 { white-space: normal; }
}

/* Admin Users membership control + denser user list */
.admin-user-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.95fr);
  gap: 12px;
  align-items: center;
  margin-top: 6px;
}

.admin-user-identity {
  min-width: 0;
}

.admin-user-meta-grid.compact {
  grid-template-columns: repeat(4, minmax(56px, 1fr));
  gap: 6px;
  margin: 0;
}

.admin-user-meta-grid.compact span {
  padding: 7px 8px;
  min-width: 0;
}

.admin-user-meta-grid.compact b {
  font-size: 0.9rem;
}

.admin-membership-inline {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(130px, 0.7fr) minmax(130px, 0.7fr) auto;
  gap: 12px;
  align-items: end;
  margin: 16px 0;
  padding: 14px;
  border: 1px solid rgba(250, 204, 21, 0.28);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(250, 204, 21, 0.08), rgba(15, 23, 42, 0.38));
}

.admin-membership-inline strong {
  display: block;
  color: #eff6ff;
  margin-bottom: 3px;
}

.admin-membership-inline small {
  display: block;
  color: #bfdbfe;
  line-height: 1.35;
}

.admin-membership-inline label {
  display: grid;
  gap: 6px;
}

.admin-membership-inline label span {
  color: #93c5fd;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 900;
}

.admin-membership-inline select {
  width: 100%;
  border: 1px solid rgba(147, 197, 253, 0.22);
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.78);
  color: #eff6ff;
  padding: 10px 12px;
  font: inherit;
  outline: none;
}

.admin-membership-inline select:focus {
  border-color: rgba(250, 204, 21, 0.75);
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.12);
}

.notice.success {
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(22, 101, 52, 0.18);
}

.notice.error {
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(127, 29, 29, 0.18);
}

@media (max-width: 1100px) {
  .admin-user-card-body,
  .admin-membership-inline {
    grid-template-columns: 1fr;
  }

  .admin-user-meta-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Admin users list and membership control polish */
.admin-user-card-body.compact-list {
  display: block;
  margin-top: 7px;
}

.admin-user-footer-row.simple {
  justify-content: flex-start;
  gap: 14px;
  flex-wrap: wrap;
  color: #bfdbfe;
  font-size: 0.82rem;
}

.admin-user-footer-row.simple span:first-child {
  color: #e0f2fe;
}

.admin-user-card .admin-user-title-row {
  gap: 8px;
}

.admin-user-card .admin-user-title-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-membership-inline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: stretch;
  padding: 16px;
}

.admin-membership-copy {
  display: grid;
  gap: 3px;
}

.admin-membership-copy .eyebrow {
  margin-bottom: 2px;
}

.admin-membership-copy small {
  max-width: 58ch;
}

.admin-membership-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.admin-membership-controls label {
  min-width: 0;
}

.admin-membership-controls .btn {
  min-height: 44px;
  padding-inline: 18px;
}

@media (max-width: 760px) {
  .admin-membership-controls {
    grid-template-columns: 1fr;
  }
}

/* Embedded Stripe checkout polish */
.membership-embedded-shell {
  max-width: 1180px;
  margin: 0 auto;
}
.membership-embedded-layout {
  display: grid;
  grid-template-columns: minmax(280px, .78fr) minmax(520px, 1.22fr);
  gap: 22px;
  align-items: start;
}
.membership-embedded-summary {
  position: sticky;
  top: 90px;
}
.membership-public-price.compact {
  margin: 20px 0;
}
.membership-public-price.compact strong {
  font-size: clamp(2rem, 5vw, 3.4rem);
}
.membership-embedded-list {
  margin: 18px 0 22px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: #bfdbfe;
}
.membership-embedded-list li {
  position: relative;
  padding-left: 26px;
}
.membership-embedded-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: #25e6a0;
  font-weight: 900;
}
.membership-embedded-card {
  min-height: 660px;
  padding: 24px;
  border: 1px solid rgba(147, 197, 253, 0.22);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.82);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
}
.membership-embedded-heading {
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.membership-embedded-heading h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
}
.membership-stripe-frame {
  min-height: 560px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(2, 6, 23, 0.34);
}
.membership-embedded-error {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(248, 113, 113, .45);
  border-radius: 16px;
  color: #fecaca;
  background: rgba(127, 29, 29, .24);
}
@media (max-width: 900px) {
  .membership-embedded-layout {
    grid-template-columns: 1fr;
  }
  .membership-embedded-summary {
    position: static;
  }
  .membership-embedded-card {
    min-height: 600px;
  }
}

/* Signup page polish */
.signup-polish-page {
  max-width: 1180px;
  margin: 0 auto;
}
.signup-polish-grid {
  display: grid;
  grid-template-columns: minmax(320px, .82fr) minmax(520px, 1.18fr);
  gap: 24px;
  align-items: start;
}
.signup-copy-panel h1 {
  margin-bottom: 12px;
}
.signup-copy-panel .hero-subtitle {
  max-width: 640px;
  margin-bottom: 18px;
}
.signup-login-note {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 18px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.10);
  border: 1px solid rgba(96, 165, 250, 0.22);
  color: #dbeafe;
}
.signup-login-note a {
  color: #fde68a;
  font-weight: 900;
  text-decoration: none;
}
.signup-login-note a:hover {
  text-decoration: underline;
}
.signup-form-card {
  max-width: 460px;
}
.signup-password-hint {
  display: block;
  margin-top: -6px;
  color: #94a3b8;
}
.signup-access-panel {
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.22), rgba(15, 23, 42, 0.82));
  border-color: rgba(96, 165, 250, 0.24);
}
.signup-access-panel h2 {
  margin: 0 0 16px;
  max-width: 720px;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.signup-tier-cards {
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 18px 0;
}
.signup-tier-cards .membership-tier-card {
  padding: 18px;
}
.signup-tier-cards .membership-tier-card h3 {
  font-size: 1.18rem;
}
.signup-membership-link {
  width: fit-content;
}
@media (max-width: 1040px) {
  .signup-polish-grid {
    grid-template-columns: 1fr;
  }
  .signup-form-card {
    max-width: 100%;
  }
}
@media (max-width: 560px) {
  .signup-access-panel,
  .signup-form-card {
    padding: 20px;
    border-radius: 22px;
  }
  .signup-login-note {
    border-radius: 18px;
  }
  .signup-membership-link,
  .signup-copy-panel .btnrow button {
    width: 100%;
  }
}

/* Login + password reset polish */
.auth-polish-page {
  max-width: 1180px;
  margin: 0 auto;
}
.auth-polish-grid {
  display: grid;
  grid-template-columns: minmax(360px, .92fr) minmax(380px, .72fr);
  gap: 28px;
  align-items: start;
}
.auth-copy-panel h1 {
  margin-bottom: 12px;
}
.auth-copy-panel .hero-subtitle {
  max-width: 650px;
  margin-bottom: 22px;
}
.auth-form-card {
  max-width: 500px;
  width: 100%;
  padding: 26px;
}
.auth-form-card .form {
  max-width: none;
}
.auth-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 12px 0 7px;
}
.auth-label-row label {
  margin: 0;
}
.auth-label-row a,
.auth-switch-note a {
  color: #fde68a;
  font-weight: 900;
  text-decoration: none;
}
.auth-label-row a:hover,
.auth-switch-note a:hover {
  text-decoration: underline;
}
.auth-switch-note {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, .22);
  color: #cbd5e1;
  font-weight: 750;
}
.auth-benefit-list {
  display: grid;
  gap: 12px;
  max-width: 650px;
}
.auth-benefit-item,
.auth-note-card {
  background: rgba(15, 23, 42, .66);
  border: 1px solid rgba(96, 165, 250, .20);
  border-radius: 18px;
  padding: 16px 18px;
}
.auth-benefit-item strong,
.auth-note-card strong {
  display: block;
  color: #f8fafc;
  font-size: 1.02rem;
  margin-bottom: 4px;
}
.auth-benefit-item span,
.auth-note-card p {
  color: #bfdbfe;
  font-size: .98rem;
  margin: 0;
}
.auth-field-hint {
  display: block;
  margin-top: 7px;
  color: #94a3b8;
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: #f8fafc;
  -webkit-box-shadow: 0 0 0 1000px #020617 inset;
  transition: background-color 9999s ease-in-out 0s;
}
@media (max-width: 900px) {
  .auth-polish-grid {
    grid-template-columns: 1fr;
  }
  .auth-form-card {
    max-width: 100%;
  }
}
@media (max-width: 560px) {
  .auth-form-card,
  .auth-benefit-item,
  .auth-note-card {
    padding: 20px;
    border-radius: 20px;
  }
  .auth-label-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  .auth-form-card .btnrow .btn,
  .auth-form-card .btnrow button {
    width: 100%;
  }
}

/* Balanced login layout refinement */
.auth-page-head {
  max-width: 720px;
  margin-bottom: 24px;
}
.auth-page-head h1 {
  margin-bottom: 12px;
}
.auth-page-head .hero-subtitle {
  max-width: 650px;
  margin-bottom: 0;
}
.login-balanced-grid {
  grid-template-columns: minmax(360px, .98fr) minmax(420px, .82fr);
  align-items: start;
}
.login-form-card {
  max-width: 540px;
}
.auth-benefit-list.compact {
  gap: 12px;
}
.auth-benefit-list.compact .auth-benefit-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.auth-benefit-list.compact .auth-benefit-item:hover {
  transform: translateY(-2px);
  border-color: rgba(234, 179, 8, .42);
  background: rgba(30, 41, 59, .72);
}
.auth-check {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(22, 163, 74, .16);
  border: 1px solid rgba(74, 222, 128, .34);
  color: #86efac;
  font-weight: 950;
  line-height: 1;
}
.auth-benefit-list.compact .auth-benefit-item strong {
  margin-bottom: 3px;
}
.auth-benefit-list.compact .auth-benefit-item span:not(.auth-check) {
  line-height: 1.45;
}
@media (max-width: 900px) {
  .auth-page-head {
    margin-bottom: 18px;
  }
  .login-balanced-grid {
    grid-template-columns: 1fr;
  }
  .login-form-card {
    max-width: 100%;
  }
}

/* Dashboard access level + upgrade polish */
.dashboard-hero-actions {
  flex: 0 0 min(100%, 420px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 12px;
}
.dashboard-hero-actions .btn {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 150px;
  min-height: 46px;
  padding: 12px 18px;
  text-align: center;
}

.dashboard-access-card {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  text-align: left;
}
.dashboard-access-card span {
  display: block;
  font-size: 0.72rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 900;
  margin-bottom: 7px;
}
.dashboard-access-card strong {
  display: block;
  color: #fff;
  font-size: 1rem;
  line-height: 1.15;
  margin-bottom: 7px;
}
.dashboard-access-card small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}
.dashboard-access-card.free {
  border-color: rgba(245, 158, 11, 0.34);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(15, 23, 42, 0.74));
}
.dashboard-access-card.pro {
  border-color: rgba(34, 197, 94, 0.36);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(15, 23, 42, 0.74));
}
.dashboard-upgrade-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px 28px;
  align-items: center;
  border-color: rgba(245, 158, 11, 0.34);
  background:
    radial-gradient(circle at 8% 0%, rgba(245, 158, 11, 0.14), transparent 34%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.78));
  margin: 18px 0 18px;
  padding: 26px;
}
.dashboard-upgrade-main h2 {
  margin: 0 0 9px;
  font-size: clamp(1.45rem, 2.7vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.dashboard-upgrade-main p {
  max-width: 780px;
  margin-bottom: 0;
}
.dashboard-upgrade-action {
  display: grid;
  justify-items: end;
  gap: 8px;
  min-width: 230px;
}
.dashboard-upgrade-action small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}
.dashboard-upgrade-cta {
  white-space: nowrap;
  padding-inline: 22px;
}
.dashboard-upgrade-benefits {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #dbeafe;
  font-weight: 900;
  font-size: 0.9rem;
}
.dashboard-upgrade-benefits span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.54);
  white-space: nowrap;
}
@media (max-width: 980px) {
  .dashboard-upgrade-card {
    grid-template-columns: 1fr;
  }
  .dashboard-upgrade-action {
    justify-items: start;
    min-width: 0;
  }
}
@media (max-width: 720px) {
  .dashboard-access-card {
    width: 100%;
  }
  .dashboard-upgrade-card {
    padding: 20px;
  }
  .dashboard-upgrade-benefits span {
    width: 100%;
    white-space: normal;
  }
}

/* Lifetime Pro gate for dashboard coach recommendations */
.coach-locked-panel{
  position:relative;
  min-height:520px;
  overflow:hidden;
}
.coach-locked-panel > :not(.coach-pro-overlay){
  filter:blur(4px);
  opacity:.42;
  pointer-events:none;
  user-select:none;
}
.coach-pro-overlay{
  position:absolute;
  z-index:1;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:min(620px,calc(100% - 40px));
  border:1px solid rgba(250,204,21,.4);
  background:linear-gradient(135deg,rgba(15,23,42,.96),rgba(30,41,59,.94));
  box-shadow:0 28px 80px rgba(0,0,0,.42);
  border-radius:24px;
  padding:28px;
  text-align:left;
}
.coach-pro-overlay h3{
  margin:4px 0 10px;
  font-size:clamp(28px,4vw,42px);
  line-height:1;
  letter-spacing:-.04em;
}
.coach-pro-overlay p{
  color:#cbd5e1;
  font-size:16px;
  line-height:1.55;
  margin:0 0 18px;
}
.coach-pro-overlay ul{
  display:grid;
  gap:10px;
  margin:0 0 22px;
  padding:0;
  list-style:none;
}
.coach-pro-overlay li{
  color:#e5e7eb;
  font-weight:900;
}
.coach-pro-overlay li::before{
  content:"✓";
  color:#facc15;
  margin-right:8px;
}
.coach-pro-overlay .btn{
  width:100%;
  justify-content:center;
}
@media(max-width:680px){
  .coach-locked-panel{min-height:620px}
  .coach-pro-overlay{top:42%;padding:22px;width:calc(100% - 28px)}
}

/* Public profile + Hall of Fame */
.public-profile-panel { border-color: rgba(246, 183, 0, .28); }
.public-profile-form { display: grid; gap: 1rem; margin-top: 1rem; }
.public-profile-form label { display: grid; gap: .45rem; }
.public-profile-form input[type="text"] { max-width: 360px; }
.public-profile-form small { color: var(--muted); font-weight: 700; }
.public-profile-toggle { display: flex !important; align-items: center; gap: .75rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.03); max-width: 680px; }
.public-profile-toggle input { width: auto; transform: scale(1.1); }
.public-profile-note { max-width: 760px; padding: .9rem 1rem; border: 1px solid rgba(31,185,111,.35); background: rgba(31,185,111,.08); border-radius: 16px; color: var(--muted); line-height: 1.5; }
.public-profile-note strong { color: var(--text); }
.home-hall-section { border: 1px solid var(--line); border-radius: 20px; padding: 2rem; background: linear-gradient(135deg, rgba(246,183,0,.08), rgba(31,185,111,.04), rgba(255,255,255,.02)); }
.home-hall-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.home-hall-card { position: relative; border: 1px solid var(--line); border-radius: 18px; padding: 1.1rem; background: rgba(8,14,32,.78); min-height: 180px; display: grid; gap: .65rem; align-content: start; }
.home-hall-card.leader { border-color: rgba(246,183,0,.55); box-shadow: 0 18px 50px rgba(246,183,0,.08); }
.home-hall-rank { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: rgba(246,183,0,.16); color: var(--gold); font-weight: 900; border: 1px solid rgba(246,183,0,.35); }
.home-hall-card strong { font-size: 1.25rem; color: var(--text); overflow-wrap: anywhere; }
.home-hall-card div b { display: block; font-size: 2rem; color: var(--gold); line-height: 1; }
.home-hall-card div small { color: var(--muted); font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.home-hall-card p, .home-hall-empty p { color: var(--muted); margin: 0; line-height: 1.55; }
.home-hall-empty { margin-top: 1rem; }
.home-hall-empty strong { display: block; font-size: 1.25rem; margin-bottom: .35rem; }
@media (max-width: 900px) { .home-hall-grid { grid-template-columns: 1fr; } .home-hall-section { padding: 1.25rem; } }

/* Hall of Fame Lifetime Pro polish */
.home-hall-head { align-items: flex-start; gap: .75rem; }
.hall-eyebrow { display: inline-flex; align-items: center; gap: .5rem; }
.hall-info-button {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(246,183,0,.55);
  background: rgba(246,183,0,.13);
  color: var(--gold);
  font-weight: 900;
  font-size: .82rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
  vertical-align: middle;
}
.hall-info-button:hover { background: rgba(246,183,0,.24); transform: translateY(-1px); }
.hall-info-modal[hidden] { display: none; }
.hall-info-modal { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 1.25rem; }
.hall-info-backdrop { position: absolute; inset: 0; background: rgba(2,6,18,.74); backdrop-filter: blur(7px); }
.hall-info-dialog {
  position: relative;
  width: min(720px, 100%);
  border: 1px solid rgba(246,183,0,.28);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(15,24,48,.98), rgba(8,14,32,.98));
  box-shadow: 0 28px 90px rgba(0,0,0,.55);
  padding: 2rem;
  color: var(--text);
}
.hall-info-dialog h3 { margin: .2rem 0 .7rem; font-size: clamp(1.7rem, 4vw, 2.4rem); }
.hall-info-dialog p { color: var(--muted); line-height: 1.6; }
.hall-info-close {
  position: absolute;
  top: .8rem;
  right: .9rem;
  width: 42px;
  height: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
  transition: color .18s ease, opacity .18s ease;
}
.hall-info-close:hover { color: var(--gold); background: transparent; }
.hall-info-close:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.hall-info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; margin: 1.2rem 0; }
.hall-info-grid div { border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.035); padding: 1rem; }
.hall-info-grid strong { display: block; margin-bottom: .4rem; color: var(--gold); }
.hall-info-grid span { display: block; color: var(--muted); line-height: 1.5; }
.public-profile-locked { border-color: rgba(246,183,0,.32); }
.public-profile-upgrade-card {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(246,183,0,.28);
  border-radius: 18px;
  padding: 1.1rem;
  background: linear-gradient(135deg, rgba(246,183,0,.10), rgba(255,255,255,.03));
}
.public-profile-upgrade-card strong { display: block; color: var(--text); font-size: 1.1rem; margin-bottom: .35rem; }
.public-profile-upgrade-card p { margin: 0; color: var(--muted); line-height: 1.55; }
.public-profile-upgrade-card .btn { white-space: nowrap; }
@media (max-width: 800px) {
  .home-hall-head { display: flex; }
  .hall-info-grid { grid-template-columns: 1fr; }
  .hall-info-dialog { padding: 1.35rem; }
  .public-profile-upgrade-card { flex-direction: column; align-items: flex-start; }
}

/* Counting system preference controls */
.counting-system-panel{display:flex;align-items:center;justify-content:space-between;gap:1.25rem;margin-bottom:1rem;flex-wrap:wrap}
.counting-system-panel h2{margin:.15rem 0 .35rem}
.counting-system-controls{display:flex;align-items:end;gap:.65rem;flex-wrap:wrap}
.counting-system-controls label{display:block;font-size:.8rem;font-weight:700;color:var(--muted);margin-bottom:.25rem}
.counting-system-controls select{min-width:220px}
.counting-system-description{flex-basis:100%;margin:.2rem 0 0}
@media (max-width:760px){.counting-system-panel{align-items:stretch}.counting-system-controls{width:100%}.counting-system-controls select{min-width:0;flex:1}}


/* Counting system polish */
.public-profile-form select,
.trainer-counting-row select,
.counting-system-controls select{
  appearance:none;
  background-color:#020617;
  color:#f8fafc;
  border:1px solid #475569;
  border-radius:12px;
  padding:12px 40px 12px 14px;
  font:inherit;
  font-weight:800;
  min-height:48px;
  background-image:linear-gradient(45deg,transparent 50%,#e2e8f0 50%),linear-gradient(135deg,#e2e8f0 50%,transparent 50%);
  background-position:calc(100% - 18px) 20px,calc(100% - 12px) 20px;
  background-size:6px 6px,6px 6px;
  background-repeat:no-repeat;
}
.public-profile-form select:focus,
.trainer-counting-row select:focus,
.counting-system-controls select:focus{
  outline:none;
  border-color:#eab308;
  box-shadow:0 0 0 3px rgba(234,179,8,.18);
}
.trainer-counting-row{
  display:flex;
  align-items:center;
  gap:12px;
  justify-content:flex-end;
  margin:0 0 16px;
}
.trainer-counting-row label{
  margin:0;
  color:#cbd5e1;
  font-size:14px;
  font-weight:900;
}
.trainer-counting-row select{
  width:auto;
  min-width:230px;
}
.counting-system-profile-description{
  display:block;
  margin-top:10px;
  padding:12px 14px;
  border:1px solid rgba(148,163,184,.24);
  background:rgba(2,6,23,.35);
  border-radius:12px;
  color:#cbd5e1;
  font-weight:750;
}
@media(max-width:760px){
  .trainer-counting-row{justify-content:stretch;align-items:stretch;flex-direction:column}
  .trainer-counting-row select{width:100%;min-width:0}
}

/* Trainer saved stats panel restore */
.trainer-progress-panel{
  margin-top:18px;
  border:1px solid var(--line);
  border-radius:18px;
  background:rgba(8,14,32,.62);
  padding:16px;
  color:var(--text);
}
.trainer-progress-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:14px;
}
.trainer-progress-kicker{
  display:block;
  color:var(--muted);
  font-size:12px;
  font-weight:900;
  letter-spacing:.04em;
  text-transform:uppercase;
  margin-bottom:4px;
}
.trainer-progress-head strong,
.trainer-progress-copy strong{
  display:block;
  color:var(--text);
  font-size:18px;
  line-height:1.2;
}
.trainer-progress-link{
  color:var(--gold);
  font-weight:900;
  text-decoration:none;
  white-space:nowrap;
}
.trainer-progress-link:hover{
  text-decoration:underline;
}
.trainer-progress-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:10px;
}
.trainer-progress-grid span{
  display:block;
  min-width:0;
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(2,6,23,.36);
  padding:12px 13px;
}
.trainer-progress-grid em{
  display:block;
  margin-bottom:6px;
  color:var(--muted);
  font-size:12px;
  font-style:normal;
  font-weight:800;
}
.trainer-progress-grid strong{
  display:block;
  color:var(--gold);
  font-size:18px;
  line-height:1.1;
}
.trainer-progress-panel.visitor{
  display:grid;
  gap:14px;
  border-color:rgba(246,183,0,.28);
  background:linear-gradient(135deg,rgba(246,183,0,.08),rgba(255,255,255,.025));
}
.trainer-progress-copy p,
.trainer-progress-pro-note span,
.trainer-progress-upgrade span{
  color:var(--muted);
  line-height:1.5;
}
.trainer-progress-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.trainer-progress-upgrade{
  margin-top:14px;
  border:1px solid rgba(246,183,0,.28);
  border-radius:14px;
  padding:12px 13px;
  background:rgba(246,183,0,.07);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.trainer-progress-upgrade a{
  color:var(--gold);
  font-weight:900;
  white-space:nowrap;
}
@media(max-width:900px){
  .trainer-progress-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .trainer-progress-head,
  .trainer-progress-upgrade{flex-direction:column;align-items:flex-start;}
  .trainer-progress-link{white-space:normal;}
}
@media(max-width:520px){
  .trainer-progress-grid{grid-template-columns:1fr;}
}


/* Counting system reference modal */
.counting-info-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:20px;
  height:20px;
  margin-left:6px;
  border-radius:999px;
  padding:0;
  border:1px solid rgba(234,179,8,.7);
  background:rgba(234,179,8,.14);
  color:var(--gold);
  font-size:12px;
  font-weight:1000;
  line-height:1;
  vertical-align:middle;
  cursor:pointer;
}
.counting-info-button:hover,
.counting-info-button:focus{
  background:var(--gold);
  color:#0f172a;
  outline:none;
  box-shadow:0 0 0 3px rgba(234,179,8,.18);
}
.counting-systems-modal{display:none;position:fixed;inset:0;z-index:70}
.counting-systems-modal.open{display:block}
.counting-systems-backdrop{position:absolute;inset:0;background:rgba(2,6,23,.74);backdrop-filter:blur(6px)}
.counting-systems-panel{
  position:relative;
  width:min(980px,92vw);
  max-height:84vh;
  margin:7vh auto 0;
  overflow:auto;
  border:1px solid #334155;
  border-radius:22px;
  background:rgba(15,23,42,.98);
  box-shadow:0 30px 90px rgba(0,0,0,.58);
  padding:24px;
}
.counting-systems-close{
  position:sticky;
  top:0;
  float:right;
  z-index:2;
  width:42px;
  height:42px;
  border-radius:999px;
  padding:0;
  font-size:28px;
  line-height:1;
  background:#1f2937!important;
  color:#e5e7eb!important;
  border:1px solid #475569!important;
}
.counting-systems-content h2{margin:0 54px 8px 0}
.modal-kicker{
  margin:0 0 8px;
  color:var(--gold);
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:12px;
  font-weight:1000;
}
.counting-system-modal-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin-top:18px;
}
.counting-system-card{
  border:1px solid rgba(148,163,184,.24);
  border-radius:18px;
  background:rgba(2,6,23,.38);
  padding:16px;
}
.counting-system-card.active{border-color:rgba(234,179,8,.55);box-shadow:0 0 0 1px rgba(234,179,8,.16) inset}
.counting-system-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.counting-system-card h3{margin:0;font-size:18px}
.counting-system-card-head span{
  border:1px solid rgba(234,179,8,.4);
  background:rgba(234,179,8,.14);
  color:var(--gold);
  border-radius:999px;
  padding:4px 8px;
  font-size:11px;
  font-weight:900;
}
.counting-system-card p{margin:0 0 12px;color:var(--muted);font-size:14px;line-height:1.45}
.counting-system-values{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.counting-system-values span{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  border:1px solid rgba(148,163,184,.18);
  border-radius:10px;
  background:rgba(15,23,42,.55);
  padding:8px 9px;
  min-width:0;
}
.counting-system-values em{color:var(--muted);font-style:normal;font-weight:900}
.counting-system-values strong{color:var(--text);font-weight:1000;font-size:13px;text-align:right;overflow-wrap:anywhere}
@media(max-width:820px){
  .counting-system-modal-grid{grid-template-columns:1fr}
  .counting-system-values{grid-template-columns:repeat(2,minmax(0,1fr))}
  .counting-systems-panel{width:94vw;max-height:86vh;margin:6vh auto 0;padding:18px}
}

/* Dashboard Lifetime Pro locked feature overlays */
.dashboard-pro-locked,
.dashboard-pro-locked-section{
  position:relative;
  overflow:hidden;
}
.dashboard-pro-locked > :not(.dashboard-pro-lock-overlay),
.dashboard-pro-locked-section > :not(.dashboard-pro-lock-overlay){
  filter:blur(4px);
  opacity:.42;
  pointer-events:none;
  user-select:none;
}
.dashboard-pro-lock-overlay{
  position:absolute;
  inset:0;
  z-index:1;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:14px;
  text-align:center;
  background:linear-gradient(135deg,rgba(2,6,23,.58),rgba(15,23,42,.78));
  backdrop-filter:blur(2px);
}
.dashboard-pro-lock-overlay > div{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  max-width:280px;
  padding:14px;
  border:1px solid rgba(234,179,8,.36);
  border-radius:16px;
  background:rgba(15,23,42,.86);
  box-shadow:0 18px 50px rgba(0,0,0,.28);
}
.dashboard-pro-lock-overlay strong{
  color:var(--text);
  font-size:14px;
  line-height:1.25;
  font-weight:1000;
}
.dashboard-pro-lock-overlay span{
  color:var(--muted);
  font-size:12px;
  line-height:1.35;
}
.stat.dashboard-pro-locked .dashboard-pro-lock-overlay{padding:8px}
.stat.dashboard-pro-locked .dashboard-pro-lock-overlay > div{gap:6px;padding:10px;border-radius:13px}
.stat.dashboard-pro-locked .dashboard-pro-lock-overlay strong{font-size:12px}
.stat.dashboard-pro-locked .dashboard-pro-lock-overlay span{display:none}
.stat.dashboard-pro-locked .dashboard-pro-lock-overlay .btn{padding:7px 10px;font-size:11px}
.achievement-card.dashboard-pro-locked .dashboard-pro-lock-overlay > div{max-width:240px}
.achievement-overview-card.dashboard-pro-locked .dashboard-pro-lock-overlay > div{padding:10px;gap:6px}
.achievement-overview-card.dashboard-pro-locked .dashboard-pro-lock-overlay strong{font-size:12px}
.achievement-overview-card.dashboard-pro-locked .dashboard-pro-lock-overlay span{display:none}
@media(max-width:720px){
  .dashboard-pro-lock-overlay{padding:10px}
  .dashboard-pro-lock-overlay > div{max-width:240px;padding:12px}
}

/* Dashboard hero action hierarchy */
.dashboard-primary-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.dashboard-hero-actions .dashboard-primary-actions .btn,
.dashboard-hero-actions .dashboard-coach-action {
  width: 100%;
  min-width: 0;
  align-self: stretch;
}
.dashboard-coach-action {
  opacity: 0.92;
}
@media (max-width: 560px) {
  .dashboard-primary-actions {
    grid-template-columns: 1fr;
  }
}


/* Blackjack table: subtle live card dealing motion */
@keyframes bjLiveCardDealIn {
  0% {
    opacity: 0;
    transform: translate(16px, -18px) rotate(1.5deg) scale(.97);
  }
  68% {
    opacity: 1;
    transform: translate(-1px, 1px) rotate(-.25deg) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translate(0, 0) rotate(0) scale(1);
  }
}
.bj-table-wrap:not(.bj-replay-mode-active) .playing-card.decision-card.tc-card.new-card {
  transform-origin: 80% 0;
  animation: bjLiveCardDealIn .24s cubic-bezier(.22,.76,.32,1) both;
  will-change: transform, opacity;
  box-shadow:0 0 0 1px rgba(234,179,8,.7),0 8px 20px rgba(0,0,0,.24)!important;
}
@media (prefers-reduced-motion: reduce) {
  .bj-table-wrap:not(.bj-replay-mode-active) .playing-card.decision-card.tc-card.new-card {
    animation:none!important;
  }
}

/* Table configuration: deck-dependent automated player card rule */
.bj-setting-unavailable { opacity: .58; }
.bj-setting-unavailable select { cursor: not-allowed; }

/* Blackjack simulator: full-width table and Game Info dashboard tab */
#bj-game .bj-layout{grid-template-columns:minmax(0,1fr)!important;}
#bj-game .bj-main{width:100%;}
#bj-game .bj-table-wrap{width:100%;}
#bj-game .bj-table{width:100%;}
#bj-game .bj-dashboard-info-grid{grid-template-columns:repeat(4,minmax(0,1fr));}
#bj-game .bj-dashboard-info-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px;}
#bj-game .bj-dashboard-info-details h3{margin:0 0 8px;}
#bj-game .bj-info-help-links{margin-top:12px;display:flex;gap:10px;flex-wrap:wrap;}

@media (min-width:901px){
  #bj-game .bj-player-area{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;align-items:start;}
  #bj-game .bj-player-area.bj-player-count-1{grid-template-columns:minmax(0,1fr);max-width:25%;margin-inline:auto;}
  #bj-game .bj-player-area.bj-player-count-2{grid-template-columns:repeat(2,minmax(0,1fr));max-width:50%;margin-inline:auto;}
  #bj-game .bj-player-area.bj-player-count-3{grid-template-columns:repeat(3,minmax(0,1fr));max-width:75%;margin-inline:auto;}
  #bj-game .bj-player-area.bj-player-count-4{grid-template-columns:repeat(4,minmax(0,1fr));}

  /* Five players: Player 1 upper-right beside dealer; Players 2-5 in one row. */
  #bj-game .bj-player-area.bj-player-count-5{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:auto auto;margin-top:-104px;padding-top:0;}
  #bj-game .bj-player-area.bj-player-count-5 .bj-seat-1{grid-column:4;grid-row:1;}
  #bj-game .bj-player-area.bj-player-count-5 .bj-seat-2{grid-column:4;grid-row:2;}
  #bj-game .bj-player-area.bj-player-count-5 .bj-seat-3{grid-column:3;grid-row:2;}
  #bj-game .bj-player-area.bj-player-count-5 .bj-seat-4{grid-column:2;grid-row:2;}
  #bj-game .bj-player-area.bj-player-count-5 .bj-seat-5{grid-column:1;grid-row:2;}

  /* Six players: Player 6 upper-left, Player 1 upper-right; Players 2-5 below. */
  #bj-game .bj-player-area.bj-player-count-6{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:auto auto;margin-top:-104px;padding-top:0;}
  #bj-game .bj-player-area.bj-player-count-6 .bj-seat-6{grid-column:1;grid-row:1;}
  #bj-game .bj-player-area.bj-player-count-6 .bj-seat-1{grid-column:4;grid-row:1;}
  #bj-game .bj-player-area.bj-player-count-6 .bj-seat-2{grid-column:4;grid-row:2;}
  #bj-game .bj-player-area.bj-player-count-6 .bj-seat-3{grid-column:3;grid-row:2;}
  #bj-game .bj-player-area.bj-player-count-6 .bj-seat-4{grid-column:2;grid-row:2;}
  #bj-game .bj-player-area.bj-player-count-6 .bj-seat-5{grid-column:1;grid-row:2;}
}

@media (max-width:1100px){
  #bj-game .bj-dashboard-info-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media (max-width:900px){
  #bj-game .bj-player-area{grid-template-columns:repeat(2,minmax(0,1fr))!important;max-width:none!important;margin:0!important;padding:0!important;}
  #bj-game .bj-player-area .bj-seat{grid-column:auto!important;grid-row:auto!important;}
  #bj-game .bj-dashboard-info-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:640px){
  #bj-game .bj-player-area{grid-template-columns:1fr!important;}
  #bj-game .bj-dashboard-info-grid,
  #bj-game .bj-dashboard-info-details{grid-template-columns:1fr;}
}

/* 2026-07-10 blackjack seat layout refinement
   1-4 seats remain centered along the lower row.
   5 seats place Player 1 upper-right and Players 2-5 right-to-left below.
   6 seats additionally place Player 6 upper-left. */
@media (min-width:901px){
  #bj-game .bj-player-area{
    width:100%;
    max-width:none;
    margin-inline:auto;
    justify-content:center;
  }

  #bj-game .bj-player-area.bj-player-count-1{
    width:25%;
    max-width:none;
    grid-template-columns:minmax(0,1fr);
  }
  #bj-game .bj-player-area.bj-player-count-2{
    width:50%;
    max-width:none;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  #bj-game .bj-player-area.bj-player-count-3{
    width:75%;
    max-width:none;
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  #bj-game .bj-player-area.bj-player-count-4{
    width:100%;
    grid-template-columns:repeat(4,minmax(0,1fr));
  }

  #bj-game .bj-player-area.bj-player-count-5,
  #bj-game .bj-player-area.bj-player-count-6{
    width:100%;
    grid-template-columns:repeat(4,minmax(0,1fr));
    grid-template-rows:minmax(160px,auto) minmax(160px,auto);
    margin-top:-104px;
  }

  #bj-game .bj-player-area.bj-player-count-5 .bj-seat-1,
  #bj-game .bj-player-area.bj-player-count-6 .bj-seat-1{
    grid-column:4;
    grid-row:1;
  }
  #bj-game .bj-player-area.bj-player-count-6 .bj-seat-6{
    grid-column:1;
    grid-row:1;
  }
  #bj-game .bj-player-area.bj-player-count-5 .bj-seat-2,
  #bj-game .bj-player-area.bj-player-count-6 .bj-seat-2{
    grid-column:4;
    grid-row:2;
  }
  #bj-game .bj-player-area.bj-player-count-5 .bj-seat-3,
  #bj-game .bj-player-area.bj-player-count-6 .bj-seat-3{
    grid-column:3;
    grid-row:2;
  }
  #bj-game .bj-player-area.bj-player-count-5 .bj-seat-4,
  #bj-game .bj-player-area.bj-player-count-6 .bj-seat-4{
    grid-column:2;
    grid-row:2;
  }
  #bj-game .bj-player-area.bj-player-count-5 .bj-seat-5,
  #bj-game .bj-player-area.bj-player-count-6 .bj-seat-5{
    grid-column:1;
    grid-row:2;
  }
}

/* Game Info: current hint now lives in the stat grid. */
.bj-dashboard-info-details-single { grid-template-columns: 1fr; }


/* Keep the Game Info Current Hint on one line and scale it to fit. */
#bj-hint {
  display: block;
  width: 100%;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  line-height: 1.15;
}

/* Homepage trainer screenshot showcase */
.home-trainer-carousel{background:linear-gradient(180deg,rgba(15,23,42,.94),rgba(2,6,23,.96));border:1px solid rgba(96,165,250,.35);border-radius:28px;padding:16px;box-shadow:0 28px 80px rgba(0,0,0,.34)}
.home-carousel-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px;padding:2px 2px 0}
.home-carousel-head strong{display:block;font-size:22px;line-height:1.15}
.home-carousel-controls{display:flex;gap:8px;flex:0 0 auto}
.home-carousel-controls button{display:inline-flex;align-items:center;justify-content:center;width:34px;height:40px;padding:0;border:0;border-radius:0;background:transparent;color:#f8fafc;font-size:30px;line-height:1;cursor:pointer;font-weight:900;transition:color .18s ease,transform .18s ease}
.home-carousel-controls button:hover{color:#fde68a;transform:translateY(-1px)}
.home-carousel-viewport{overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;border-radius:20px;outline:none}
.home-carousel-viewport::-webkit-scrollbar{display:none}
.home-carousel-track{display:flex}
.home-carousel-slide{flex:0 0 100%;scroll-snap-align:start;position:relative;overflow:hidden;border-radius:20px;background:#020617;min-height:470px;border:1px solid rgba(148,163,184,.22)}
.home-carousel-slide img{display:block;width:100%;height:390px;object-fit:cover;object-position:top center;background:#0f172a}
.home-carousel-slide div{position:absolute;left:0;right:0;bottom:0;padding:54px 20px 20px;background:linear-gradient(180deg,transparent,rgba(2,6,23,.96) 42%)}
.home-carousel-slide strong{display:block;font-size:25px;line-height:1.1;margin-bottom:7px}
.home-carousel-slide p{margin:0;color:#cbd5e1;line-height:1.45;font-size:15px;max-width:560px}
.home-carousel-dots{display:flex;justify-content:center;flex-wrap:wrap;gap:7px;margin-top:13px}
.home-carousel-dots button{width:8px;height:8px;padding:0;border:0;border-radius:999px;background:#475569;cursor:pointer;transition:width .18s ease,background .18s ease}
.home-carousel-dots button[aria-current="true"]{width:24px;background:#facc15}
.home-trainer-visual-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.home-trainer-visual-card{position:relative;min-height:255px;overflow:hidden;border-radius:22px;border:1px solid rgba(148,163,184,.25);background:#0f172a;text-decoration:none;color:#fff;box-shadow:0 18px 45px rgba(0,0,0,.18);transition:transform .18s ease,border-color .18s ease}
.home-trainer-visual-card:hover{transform:translateY(-3px);border-color:rgba(250,204,21,.62)}
.home-trainer-visual-card img{width:100%;height:205px;object-fit:cover;object-position:top center;display:block;opacity:.92;transition:transform .25s ease,opacity .25s ease}
.home-trainer-visual-card:hover img{transform:scale(1.025);opacity:1}
.home-trainer-visual-card div{position:absolute;left:0;right:0;bottom:0;padding:48px 16px 16px;background:linear-gradient(180deg,transparent,rgba(2,6,23,.98) 42%)}
.home-trainer-visual-card strong{display:block;font-size:18px;line-height:1.15}
.home-trainer-visual-card span{display:block;color:#cbd5e1;font-size:13px;margin-top:4px}
.home-trainer-visual-card.featured{grid-column:span 2;border-color:rgba(250,204,21,.36)}
.home-trainer-visual-card.featured img{height:260px}
.home-trainer-section .home-section-head{max-width:900px}
@media(max-width:1040px){.home-trainer-visual-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-carousel-slide{min-height:440px}.home-carousel-slide img{height:360px}}
@media(max-width:760px){.home-trainer-carousel{padding:10px;border-radius:22px}.home-carousel-head strong{font-size:18px}.home-carousel-controls button{width:36px;height:36px}.home-carousel-slide{min-height:390px;border-radius:16px}.home-carousel-slide img{height:315px}.home-carousel-slide div{padding:48px 16px 16px}.home-carousel-slide strong{font-size:21px}.home-trainer-visual-grid{grid-template-columns:1fr}.home-trainer-visual-card.featured{grid-column:auto}.home-trainer-visual-card,.home-trainer-visual-card.featured{min-height:270px}.home-trainer-visual-card img,.home-trainer-visual-card.featured img{height:220px}}
@media(prefers-reduced-motion:reduce){.home-carousel-viewport{scroll-behavior:auto}.home-trainer-visual-card,.home-trainer-visual-card img{transition:none}}

/* Homepage hero carousel alignment and stable controls */
.home-hero{align-items:start}
.home-hero-product{align-self:start}
.home-showcase-actions{margin-top:14px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.home-showcase-actions .btn{width:100%;min-width:0;text-align:center}
.home-carousel-controls button{display:inline-flex;align-items:center;justify-content:center;padding:0;line-height:1;font-family:inherit}
.home-carousel-controls button > span{display:block;line-height:1}
.home-carousel-dots{flex-wrap:nowrap;gap:2px;min-height:14px;align-items:center}
.home-carousel-dots button{position:relative;width:18px;height:12px;flex:0 0 18px;background:transparent;border:0;padding:0}
.home-carousel-dots button::before{content:"";position:absolute;top:50%;left:50%;width:7px;height:7px;border-radius:999px;background:#475569;transform:translate(-50%,-50%);transition:width .18s ease,background .18s ease}
.home-carousel-dots button[aria-current="true"]{width:18px;background:transparent}
.home-carousel-dots button[aria-current="true"]::before{width:18px;background:#facc15}
@media(max-width:1040px){.home-showcase-actions{grid-template-columns:1fr 1fr}.home-showcase-actions .btn:first-child{grid-column:1/-1}}
@media(max-width:760px){.home-showcase-actions{grid-template-columns:1fr}.home-showcase-actions .btn:first-child{grid-column:auto}}

/* Simplified, fixed hero actions */
.home-showcase-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;width:100%;margin-top:12px}
.home-showcase-actions .btn{width:100%;min-width:0;text-align:center;justify-content:center}
@media(max-width:760px){.home-showcase-actions{grid-template-columns:1fr 1fr}.home-showcase-actions .btn{width:100%}.home-carousel-controls button{width:30px;height:36px;font-size:28px}}

/* Hall of Fame profile rating summary */
.public-profile-rating-card {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: minmax(190px, .75fr) minmax(0, 2fr);
  gap: 1rem;
  align-items: stretch;
  border: 1px solid rgba(246,183,0,.28);
  border-radius: 20px;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(246,183,0,.10), rgba(255,255,255,.025));
}
.public-profile-rating-main {
  display: grid;
  align-content: center;
  justify-items: start;
  min-height: 150px;
  padding: 1rem;
  border: 1px solid rgba(246,183,0,.24);
  border-radius: 16px;
  background: rgba(8,14,32,.7);
}
.hall-rating-label { display: inline-flex; align-items: center; gap: .45rem; color: var(--muted); font-size: .8rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.public-profile-rating-value { margin-top: .45rem; color: var(--gold); font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 900; line-height: .95; }
.public-profile-rating-tier { margin-top: .5rem; color: var(--text); font-weight: 900; font-size: 1.05rem; }
.public-profile-public-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .75rem; align-content: center; }
.public-profile-public-stats > div { display: grid; gap: .35rem; padding: 1rem; border: 1px solid var(--line); border-radius: 16px; background: rgba(8,14,32,.68); }
.public-profile-public-stats span { color: var(--muted); font-weight: 800; font-size: .8rem; }
.public-profile-public-stats strong { color: var(--text); font-size: 1.45rem; }
.public-profile-rating-card > p { grid-column: 1 / -1; margin: 0; color: var(--muted); line-height: 1.5; }
.home-hall-card div small { line-height: 1.35; }
.hall-info-grid-rating { grid-template-columns: repeat(2,minmax(0,1fr)); }
.hall-tier-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .55rem .85rem; margin: 1rem 0 1.2rem; }
.hall-tier-list span { display: flex; gap: .55rem; align-items: baseline; padding: .65rem .75rem; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.025); color: var(--text); }
.hall-tier-list b { color: var(--gold); white-space: nowrap; }
@media (max-width: 800px) {
  .public-profile-rating-card { grid-template-columns: 1fr; }
  .public-profile-public-stats { grid-template-columns: 1fr; }
  .hall-info-grid-rating, .hall-tier-list { grid-template-columns: 1fr; }
}


/* Mobile primary navigation */
.site-menu-toggle{display:none;background:transparent;border:0;border-radius:10px;padding:9px;width:44px;height:44px;align-items:center;justify-content:center;flex-direction:column;gap:5px;color:var(--white)}
.site-menu-toggle span{display:block;width:24px;height:2px;border-radius:999px;background:currentColor;transition:transform .2s ease,opacity .2s ease}
.site-menu-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.site-menu-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
.site-menu-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
@media(max-width:760px){
  .site-header{position:sticky;display:grid;grid-template-columns:1fr auto;align-items:center;gap:12px;padding:14px 20px}
  .site-menu-toggle{display:flex;justify-self:end}
  .site-header .site-nav{display:none;grid-column:1/-1;flex-direction:column;align-items:stretch;gap:0;width:100%;padding:8px 0 4px;border-top:1px solid var(--line)}
  .site-header .site-nav.is-open{display:flex}
  .site-header .site-nav a{display:block;padding:12px 4px;border-bottom:1px solid rgba(148,163,184,.14)}
  .site-header .site-nav a:last-child{border-bottom:0}
}
@media(prefers-reduced-motion:reduce){.site-menu-toggle span{transition:none}}

/* Phase 9: community reviews */
.review-submission-form textarea{width:100%;resize:vertical;min-height:130px}
.review-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:14px}
.review-form-grid label,.review-submission-form>label{display:grid;gap:7px}
.home-reviews-section{overflow:hidden}
.home-reviews-section .home-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px}
.home-review-controls{display:flex;gap:12px;flex:0 0 auto}
.home-review-controls button{appearance:none;border:0;background:transparent;color:var(--text,#fff);font-size:38px;line-height:1;padding:6px 10px;cursor:pointer;transition:color .18s ease,transform .18s ease}
.home-review-controls button:hover{color:var(--gold,#f6c453);transform:translateY(-1px)}
.home-review-viewport{overflow:hidden;scroll-behavior:smooth;outline:none}
.home-review-track{display:flex;gap:18px}
.home-review-card{flex:0 0 calc((100% - 36px)/3);box-sizing:border-box;background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.025));border:1px solid rgba(255,255,255,.1);border-radius:20px;padding:24px;min-height:285px;display:flex;flex-direction:column;box-shadow:0 18px 50px rgba(0,0,0,.18)}
.review-stars{color:#f6c453;letter-spacing:2px;font-size:18px}
.home-review-card blockquote{margin:18px 0 24px;font-size:1.02rem;line-height:1.7;color:var(--text,#fff);flex:1}
.home-review-person{border-top:1px solid rgba(255,255,255,.09);padding-top:16px;display:grid;gap:7px}
.home-review-person>div{display:flex;align-items:center;justify-content:space-between;gap:12px}
.home-review-person small{color:var(--muted,#aeb4c2)}
.review-account-badge{font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.06em;padding:5px 8px;border-radius:999px;white-space:nowrap}
.review-account-badge.is-pro{background:rgba(246,196,83,.13);color:#f6c453;border:1px solid rgba(246,196,83,.28)}
.review-account-badge.is-free{background:rgba(80,200,140,.11);color:#73dca8;border:1px solid rgba(80,200,140,.25)}
.home-review-dots{display:flex;justify-content:center;gap:8px;margin-top:20px;min-height:12px}
.home-review-dots button{width:8px;height:8px;border-radius:50%;border:0;background:rgba(255,255,255,.28);padding:0;cursor:pointer;transition:background .18s ease,transform .18s ease}
.home-review-dots button[aria-current="true"]{background:#f6c453;transform:scale(1.3)}
.admin-review-list{display:grid;gap:16px;margin-top:18px}
.admin-review-card blockquote{margin:16px 0;font-size:1rem;line-height:1.6}
.admin-review-head{display:flex;justify-content:space-between;align-items:center;gap:16px}
.admin-review-head>div:first-child{display:flex;align-items:center;gap:10px}
.review-status{font-size:.72rem;text-transform:uppercase;font-weight:800;padding:4px 8px;border-radius:999px}
.review-status-approved{background:rgba(80,200,140,.13);color:#73dca8}.review-status-pending{background:rgba(246,196,83,.13);color:#f6c453}.review-status-rejected{background:rgba(240,90,90,.13);color:#ff9292}
.admin-review-form{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.admin-review-form label{display:grid;gap:5px}.admin-review-form .grow{flex:1;min-width:220px}.admin-filter-row{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}
@media(max-width:900px){.home-review-card{flex-basis:calc((100% - 18px)/2)}.review-form-grid{grid-template-columns:1fr}}
@media(max-width:620px){.home-reviews-section .home-section-head{align-items:flex-start}.home-review-card{flex-basis:100%;min-height:unset}.home-review-controls{align-self:flex-start}}

/* Homepage review carousel navigation alignment */
.home-reviews-section .home-section-head{
  max-width:none;
  width:100%;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
}
.home-reviews-section .home-review-controls{
  margin-left:auto;
  flex:0 0 auto;
  align-self:flex-end;
  padding-bottom:8px;
}
@media(max-width:700px){
  .home-reviews-section .home-section-head{align-items:flex-start;}
  .home-reviews-section .home-review-controls{align-self:flex-start;padding-bottom:0;}
}

/* Website analytics settings */
.admin-settings-form{display:grid;gap:16px;margin-top:18px}
.admin-settings-form>label>span{display:block;color:#f8fafc;font-weight:900;margin-bottom:8px}
.admin-settings-form input[type="text"]{width:100%;border:1px solid rgba(148,163,184,.35);border-radius:12px;background:#020617;color:#f8fafc;padding:13px 14px;font:inherit}
.admin-settings-form input[type="text"]:focus{outline:2px solid rgba(234,179,8,.55);outline-offset:2px}
.admin-settings-form .security-inline-review{display:flex;align-items:flex-start;gap:12px;padding:14px;border:1px solid rgba(148,163,184,.22);border-radius:14px;background:rgba(2,6,23,.35)}
.admin-settings-form .security-inline-review>span{margin:0}
.admin-settings-form .security-inline-review strong,.admin-settings-form .security-inline-review small{display:block}
.admin-settings-form .security-inline-review small{color:#94a3b8;margin-top:3px}

/* Learn center */
.learn-hero{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr);gap:34px;align-items:center;padding:24px 0 34px}.learn-hero h1{font-size:clamp(44px,7vw,76px);max-width:820px}.learn-hero-copy{max-width:760px;font-size:20px}.learn-hero-visual{background:linear-gradient(145deg,rgba(30,58,138,.68),rgba(2,6,23,.94));border:1px solid #334155;border-radius:26px;padding:28px 18px;min-height:330px;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:0 26px 70px rgba(0,0,0,.3)}.learn-card-fan{display:flex;justify-content:center;align-items:center;height:180px}.learn-card-fan .learn-playing-card:nth-child(1){transform:rotate(-12deg) translate(17px,10px)}.learn-card-fan .learn-playing-card:nth-child(2){z-index:2;transform:translateY(-6px)}.learn-card-fan .learn-playing-card:nth-child(3){transform:rotate(12deg) translate(-17px,10px)}.learn-playing-card{width:92px;height:132px;border-radius:13px;background:#fff;color:#111827;border:1px solid #d1d5db;box-shadow:0 16px 32px rgba(0,0,0,.32);display:inline-flex;flex-direction:column;align-items:center;justify-content:center;font-size:42px;font-weight:950;line-height:.9;flex:0 0 auto}.learn-playing-card small{font-size:29px;margin-top:5px}.learn-playing-card.is-red{color:#dc2626}.learn-playing-card.is-black{color:#111827}.learn-count-result{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;width:min(280px,100%);text-align:center}.learn-count-result span{font-size:22px;font-weight:900;color:#fde68a}.learn-count-result strong{grid-column:1/-1;background:#0b1220;border:1px solid #475569;border-radius:999px;padding:9px 12px;margin-top:4px}.learn-section-tabs{display:flex;gap:10px;position:sticky;top:76px;z-index:2;background:rgba(2,6,23,.88);backdrop-filter:blur(12px);border:1px solid #334155;border-radius:18px;padding:9px;margin:4px 0 30px;overflow:auto}.learn-section-tab{white-space:nowrap;flex:1;background:transparent;color:#cbd5e1;border:1px solid transparent}.learn-section-tab:hover{background:#172554;color:#fff}.learn-section-tab.active{background:var(--accent);color:#111827}.learn-section-panel{animation:learnFade .22s ease}.learn-section-panel[hidden]{display:none!important}@keyframes learnFade{from{opacity:.35;transform:translateY(5px)}to{opacity:1;transform:none}}.learn-section-heading{max-width:850px;margin:0 0 24px}.learn-section-heading h2{margin:5px 0 10px}.learn-callout{background:linear-gradient(135deg,rgba(234,179,8,.16),rgba(30,58,138,.2));border:1px solid rgba(234,179,8,.42);border-radius:18px;padding:20px 22px;margin:20px 0}.learn-callout strong{font-size:21px;color:#fde68a}.learn-callout p{margin-bottom:0}.learn-system-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.learn-system-card{background:#0b1220;border:1px solid #334155;border-radius:20px;padding:21px}.learn-system-card.featured{border-color:#eab308;box-shadow:inset 0 0 0 1px rgba(234,179,8,.18)}.learn-system-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.learn-system-card h3{font-size:24px;margin:0}.learn-badge{border:1px solid #475569;background:#172554;color:#bfdbfe;border-radius:999px;padding:5px 9px;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}.learn-system-card dl{margin:16px 0 0}.learn-system-card dl div{padding:10px 0;border-top:1px solid #263244}.learn-system-card dt{color:#94a3b8;font-size:13px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.learn-system-card dd{margin:3px 0 0;color:#e5e7eb;font-weight:650}.learn-table-wrap{overflow:auto;background:#0b1220;border:1px solid #334155;border-radius:20px;padding:20px;margin:22px 0}.learn-table-wrap h3{font-size:24px;margin:0 0 12px}.learn-comparison-table,.learn-value-matrix{min-width:760px}.learn-value-matrix{font-size:14px}.learn-value-matrix th,.learn-value-matrix td{text-align:center;padding:9px}.learn-value-matrix th:first-child,.learn-value-matrix td:first-child{text-align:left;position:sticky;left:0;background:#0b1220}.count-value.positive{color:#86efac;font-weight:900}.count-value.negative{color:#fca5a5;font-weight:900}.count-value.neutral{color:#94a3b8}.learn-ev-example{display:grid;grid-template-columns:150px 1fr;gap:24px;align-items:center}.learn-coin{width:130px;height:130px;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle at 35% 30%,#fde68a,#eab308 55%,#854d0e);color:#422006;border:5px double #713f12;font-size:27px;font-weight:950;box-shadow:0 18px 34px rgba(0,0,0,.35)}.learn-ev-example h3,.learn-card-story h3{font-size:26px;margin:0 0 8px}.learn-ev-math{display:flex;gap:10px;flex-wrap:wrap}.learn-ev-math span,.learn-ev-math strong{background:#020617;border:1px solid #334155;border-radius:11px;padding:9px 11px}.learn-ev-math strong{color:#86efac}.learn-ev-scale{display:grid;grid-template-columns:repeat(3,1fr);border-radius:18px;overflow:hidden;margin:24px 0;border:1px solid #334155}.learn-ev-scale>div{padding:20px;min-height:125px}.learn-ev-scale strong,.learn-ev-scale span{display:block}.learn-ev-scale strong{font-size:20px}.learn-ev-scale span{margin-top:7px;color:#e2e8f0}.learn-ev-scale .negative{background:rgba(127,29,29,.72)}.learn-ev-scale .neutral{background:rgba(30,41,59,.95)}.learn-ev-scale .positive{background:rgba(20,83,45,.78)}.learn-card-story{display:grid;grid-template-columns:1.2fr .8fr;gap:26px;align-items:center;background:#0b1220;border:1px solid #334155;border-radius:20px;padding:22px;margin:22px 0}.learn-card-equation{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap}.learn-card-equation .learn-playing-card{width:66px;height:94px;font-size:30px}.learn-card-equation .learn-playing-card small{font-size:21px}.learn-card-equation>span{font-size:27px;font-weight:900;color:#94a3b8}.learn-card-equation>strong{width:100%;text-align:center;color:#86efac;font-size:25px}.learn-section-panel .grid{grid-template-columns:repeat(4,minmax(0,1fr))}.learn-section-panel .grid .card{min-height:150px}.learn-section-panel .grid .card strong{color:#fde68a;font-size:18px}
@media(max-width:900px){.learn-hero{grid-template-columns:1fr}.learn-hero-visual{min-height:270px}.learn-section-panel .grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.learn-section-tabs{top:105px}.learn-section-tab{flex:0 0 auto}.learn-system-grid,.learn-card-story,.learn-ev-example{grid-template-columns:1fr}.learn-coin{margin:0 auto}.learn-ev-scale{grid-template-columns:1fr}.learn-section-panel .grid{grid-template-columns:1fr}.learn-hero h1{font-size:46px}.learn-playing-card{width:78px;height:112px;font-size:35px}.learn-playing-card small{font-size:25px}}

/* Count Mode terminology/help */
#bj-help-text, #count-mode-help-text { white-space: pre-line; }
.trainer-setting-label { display:inline-flex; align-items:center; gap:6px; }
.trainer-help-btn { width:20px; height:20px; border-radius:50%; padding:0; display:inline-flex; align-items:center; justify-content:center; font-size:12px; line-height:1; }


/* Player Dashboard sound mixer */
.dashboard-sound-panel{max-width:900px}
.dashboard-sound-mixer{display:grid;gap:18px;margin-top:20px}
.dashboard-sound-control{display:grid;gap:10px;padding:18px 20px;border:1px solid rgba(148,163,184,.24);border-radius:16px;background:rgba(2,6,23,.34)}
.dashboard-sound-control>span{display:flex;align-items:center;justify-content:space-between;gap:16px}
.dashboard-sound-control strong{font-size:1.05rem;color:#f8fafc}
.dashboard-sound-control output{font-weight:900;color:#fde68a;min-width:48px;text-align:right}
.dashboard-sound-control input[type="range"]{width:100%;accent-color:#eab308;cursor:pointer}
.dashboard-sound-control small{color:#94a3b8;line-height:1.45}

.dashboard-sound-mute{margin-top:14px;min-width:180px}
.dashboard-sound-mute.is-muted{border-color:#ef4444;color:#fecaca;background:rgba(127,29,29,.28)}

/* 2026-07-15 portrait-phone blackjack simulator layout
   Desktop/tablet layouts are intentionally unchanged. */
@media (max-width: 600px) and (orientation: portrait) {
  html, body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  #bj-game.blackjack-game-page {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    margin-inline: 0 !important;
    transform: none !important;
    padding: 4px 6px 28px !important;
    overflow-x: hidden !important;
  }
  #bj-game .blackjack-game-head {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) auto !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 0 0 5px !important;
  }
  #bj-game .blackjack-game-head .eyebrow {font-size: 8px !important; line-height: 1 !important;}
  #bj-game .blackjack-game-head h1 {
    font-size: clamp(21px,7vw,29px) !important;
    line-height: 1.02 !important;
    margin: 3px 0 0 !important;
  }
  #bj-game .blackjack-game-head p {display:none !important;}
  #bj-game .bj-head-actions button {
    padding: 7px 9px !important;
    border-radius: 8px !important;
    font-size: 10px !important;
  }
  #bj-game .bj-layout,
  #bj-game .bj-main,
  #bj-game .bj-table-wrap {width:100% !important; min-width:0 !important; gap:6px !important;}

  /* Mobile configurator: still full-featured, but denser. */
  #bj-game .bj-setup {padding:14px 10px !important; border-radius:16px !important;}
  #bj-game .bj-setup h2 {font-size:23px !important; margin-bottom:10px !important;}
  #bj-game .bj-setup-grid {grid-template-columns:1fr !important; gap:8px !important;}
  #bj-game .bj-setup label {gap:4px !important; margin:0 !important; font-size:13px !important;}
  #bj-game .bj-setup select {min-height:42px !important; padding:8px 10px !important; font-size:14px !important;}
  #bj-game .bj-seat-select {gap:6px !important;}
  #bj-game .bj-seat-select label {padding:7px 11px !important;}
  #bj-game .bj-mobile-player-note {
    display:block;
    width:100%;
    color:#fde68a;
    font-size:12px;
    line-height:1.35;
    margin:2px 0 0;
  }

  /* Compact table viewport: dealer + one/two seats remain visible above decisions. */
  #bj-game .bj-table {
    min-height: 0 !important;
    height: auto !important;
    padding: 5px 5px 7px !important;
    border-radius: 15px !important;
  }
  #bj-game .bj-dealer-area {margin:0 0 3px !important;}
  #bj-game .bj-dealer-area > .tc-seat-label {
    font-size:8px !important;
    margin:0 0 1px !important;
    line-height:1 !important;
  }
  #bj-game .bj-dealer-area .bj-hand {min-height:48px !important; gap:3px !important;}
  #bj-game .bj-dealer-area .tc-hand-result {
    margin-top:1px !important;
    padding:2px 5px !important;
    font-size:8px !important;
  }
  #bj-game .playing-card.decision-card.tc-card {
    width:34px !important;
    height:47px !important;
    min-width:34px !important;
    font-size:16px !important;
    border-radius:5px !important;
  }
  #bj-game .playing-card.decision-card.card-back:before {inset:4px !important; border-radius:3px !important;}
  #bj-game .playing-card.decision-card.card-back:after {inset:9px !important; border-radius:2px !important;}
  #bj-game .bj-player-area,
  #bj-game .bj-player-area.bj-player-count-1,
  #bj-game .bj-player-area.bj-player-count-2,
  #bj-game .bj-player-area.bj-player-count-3,
  #bj-game .bj-player-area.bj-player-count-4,
  #bj-game .bj-player-area.bj-player-count-5,
  #bj-game .bj-player-area.bj-player-count-6 {
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    grid-template-rows:auto !important;
    gap:4px !important;
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding:0 !important;
  }
  #bj-game .bj-player-area.bj-player-count-1 {grid-template-columns:minmax(0,1fr) !important; max-width:54% !important; margin-inline:auto !important;}
  #bj-game .bj-seat,
  #bj-game .bj-seat.bj-seat-split {
    min-height:88px !important;
    height:auto !important;
    padding:3px !important;
    border-radius:9px !important;
    grid-column:auto !important;
    grid-row:auto !important;
  }
  #bj-game .bj-seat-hand,
  #bj-game .bj-seat.bj-seat-split .bj-seat-hand {
    min-height:80px !important;
    padding:2px !important;
    margin:0 !important;
    border-radius:7px !important;
  }
  #bj-game .bj-seat-hand .bj-hand {min-height:47px !important; gap:2px !important; flex-wrap:nowrap !important;}
  #bj-game .bj-seat-hand .tc-hand-result {
    margin:1px auto 0 !important;
    padding:1px 4px !important;
    font-size:7px !important;
    min-height:0 !important;
  }
  #bj-game .bj-seat-hand .tc-seat-label {
    margin-top:auto !important;
    padding-top:2px !important;
    font-size:7px !important;
    line-height:1 !important;
  }
  #bj-game .bj-bet-pill {
    margin:1px auto 0 !important;
    padding:1px 4px !important;
    font-size:7px !important;
    line-height:1 !important;
  }
  #bj-game .bj-seat-chip-layout {display:none !important;}
  #bj-game .bj-split-hand-kicker {font-size:7px !important; line-height:1 !important; margin-bottom:1px !important;}
  #bj-game .bj-seat-hands-scroll {gap:3px !important;}
  #bj-game .bj-seat.bj-seat-split .bj-seat-hand {min-width:86px !important;}
  #bj-game .bj-hand.bj-overlap-cards .playing-card.decision-card.tc-card {margin-left:-16px !important;}
  #bj-game .bj-hand.bj-overlap-cards .playing-card.decision-card.tc-card:first-child {margin-left:0 !important;}

  /* Decisions and betting controls directly below the cards. */
  #bj-game .bj-action-panel,
  #bj-game .bj-action-panel:has(.bj-chip-row:not(.hidden)),
  #bj-game .bj-action-panel:has(#bj-play-buttons:not(.hidden)),
  #bj-game .bj-action-panel:has(#bj-insurance-buttons:not(.hidden)),
  #bj-game .bj-action-panel:has(#bj-next:not(.hidden)) {
    display:grid !important;
    grid-template-columns:1fr !important;
    grid-template-areas:"head" "chips" "controls" "bets" "hint" !important;
    gap:3px !important;
    padding:6px !important;
    min-height:0 !important;
    border-radius:12px !important;
  }
  #bj-game .bj-action-panel h2 {
    grid-area:head !important;
    font-size:14px !important;
    line-height:1.05 !important;
    margin:0 !important;
  }
  #bj-game .bj-action-panel p {
    display:none !important;
  }
  #bj-game .bj-action-panel .bj-chip-row {
    grid-area:chips !important;
    min-height:0 !important;
    padding:10px 3px 2px !important;
    margin:0 !important;
    gap:4px !important;
    flex-wrap:nowrap !important;
    overflow-x:auto !important;
    justify-content:center !important;
  }
  #bj-game .bj-action-panel .bj-chip-row::before {
    font-size:8px !important;
    top:0 !important;
    padding:0 6px !important;
  }
  #bj-game .bj-chip {
    width:34px !important;
    height:34px !important;
    min-width:34px !important;
    border-width:4px !important;
    font-size:8px !important;
  }
  #bj-game .bj-action-panel .btnrow,
  #bj-game .bj-action-panel:has(.bj-chip-row:not(.hidden)) .btnrow,
  #bj-game .bj-action-panel:has(#bj-next:not(.hidden)) .btnrow {
    grid-area:controls !important;
    display:flex !important;
    justify-content:center !important;
    gap:5px !important;
    margin:0 !important;
    transform:none !important;
  }
  #bj-game .bj-action-panel #bj-deal,
  #bj-game .bj-action-panel #bj-rebet,
  #bj-game .bj-action-panel #bj-clear-bet,
  #bj-game .bj-action-panel #bj-next,
  #bj-game .bj-action-panel #bj-replay-last {
    width:auto !important;
    min-width:72px !important;
    min-height:31px !important;
    height:31px !important;
    padding:5px 8px !important;
    border-radius:7px !important;
    font-size:9px !important;
  }
  #bj-game .bj-action-panel #bj-next {width:min(260px,100%) !important;}
  #bj-game .bj-action-panel .bj-play-buttons,
  #bj-game .bj-action-panel .bj-insurance-buttons,
  #bj-game .bj-action-panel .bj-even-money-buttons {
    grid-area:chips !important;
    grid-template-columns:repeat(5,minmax(0,1fr)) !important;
    gap:3px !important;
    width:100% !important;
  }
  #bj-game .bj-action-panel .bj-insurance-buttons,
  #bj-game .bj-action-panel .bj-even-money-buttons {grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
  #bj-game .bj-play-buttons button,
  #bj-game .bj-insurance-buttons button,
  #bj-game .bj-even-money-buttons button {
    min-width:0 !important;
    width:100% !important;
    min-height:34px !important;
    padding:5px 2px !important;
    border-radius:7px !important;
    font-size:clamp(10px,3vw,12px) !important;
    line-height:1.05 !important;
    letter-spacing:.01em !important;
  }
  #bj-game .bj-action-panel .bj-current-bets {
    grid-area:bets !important;
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    margin:0 !important;
    align-self:start !important;
    justify-content:center !important;
  }
  #bj-game .bj-action-panel .bj-bet-status-stack,
  #bj-game .bj-round-results-stack {
    max-width:240px !important;
    padding:3px 6px !important;
    gap:1px !important;
    margin:0 auto !important;
  }
  #bj-game .bj-action-panel .bj-bet-status-row {font-size:8px !important; line-height:1 !important;}
  #bj-game .bj-action-panel .table-count-explanation {
    grid-area:hint !important;
    min-height:0 !important;
    margin:0 !important;
    padding:5px 7px !important;
    font-size:9px !important;
    line-height:1.25 !important;
  }

  /* The dashboard was previously hidden on phones. It now follows decisions. */
  #bj-game .bj-player-dashboard {
    display:block !important;
    margin-top:6px !important;
    padding:8px !important;
    border-radius:13px !important;
  }
  #bj-game .bj-dashboard-head {gap:6px !important; margin-bottom:7px !important;}
  #bj-game .bj-dashboard-head h2 {font-size:16px !important;}
  #bj-game .bj-dashboard-tabs {
    width:100% !important;
    display:flex !important;
    flex-wrap:nowrap !important;
    overflow-x:auto !important;
    gap:4px !important;
    padding-bottom:2px !important;
  }
  #bj-game .bj-dashboard-tabs button {
    flex:0 0 auto !important;
    padding:5px 8px !important;
    font-size:8px !important;
  }
  #bj-game .bj-dashboard-info-grid {grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:5px !important;}
  #bj-game .bj-info-grid div {padding:6px !important; border-radius:9px !important;}
  #bj-game .bj-info-grid span {font-size:8px !important; line-height:1.15 !important;}
  #bj-game .bj-info-grid strong {font-size:14px !important; line-height:1.05 !important;}
  #bj-game .bj-dashboard-info-details {grid-template-columns:1fr !important; gap:6px !important; margin-top:6px !important;}
  #bj-game .bj-dashboard-info-details h3 {font-size:13px !important; margin-bottom:4px !important;}
  #bj-game .bj-dashboard-info-details .table-count-explanation {min-height:0 !important; padding:7px !important; font-size:10px !important;}
  #bj-game .bj-info-help-links {margin:6px 0 0 !important; gap:4px !important;}
  #bj-game .bj-info-help-links .bj-shortcuts-help,
  #bj-game .bj-info-help-links .bj-round-summary-help {padding:5px 7px !important; font-size:8px !important;}
  #bj-game .bj-dashboard-grid,
  #bj-game .bj-achievement-layout,
  #bj-game .bj-learning-note-grid {grid-template-columns:1fr !important; gap:7px !important;}
  #bj-game .bj-player-dashboard .bj-session-stats {grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:5px !important;}
}

/* 2026-07-15 iPhone portrait width correction.
   Let the simulator own the full phone viewport and prevent nested panels from
   retaining desktop intrinsic widths. Desktop and tablet remain unchanged. */
@media (max-width: 600px) and (orientation: portrait) {
  main.container:has(> #bj-game) {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 20px 0 48px !important;
    overflow-x: clip !important;
  }

  main.container:has(> #bj-game) > #bj-game,
  #bj-game .bj-layout,
  #bj-game .bj-main,
  #bj-game .bj-table-wrap,
  #bj-game .bj-table,
  #bj-game .bj-action-panel,
  #bj-game .bj-player-dashboard {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  #bj-game.blackjack-game-page {
    padding-left: 4px !important;
    padding-right: 4px !important;
  }

  #bj-game .bj-player-area,
  #bj-game .bj-dealer-area,
  #bj-game .bj-action-panel > *,
  #bj-game .bj-dashboard-head,
  #bj-game .bj-dashboard-panel,
  #bj-game .bj-dashboard-info-grid,
  #bj-game .bj-info-grid {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  #bj-game .bj-play-buttons {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  #bj-game .bj-play-buttons button {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
    font-size: clamp(12px, 3.65vw, 15px) !important;
    padding-left: 1px !important;
    padding-right: 1px !important;
  }
}

/* 2026-07-20 Learn page tab navigation — definitive overflow fix */
.learn-section-tabs{
  display:grid!important;
  grid-template-columns:
    minmax(108px,1fr)
    minmax(104px,1fr)
    minmax(82px,.82fr)
    minmax(128px,1.22fr)
    minmax(132px,1.25fr)
    minmax(126px,1.2fr)
    minmax(82px,.82fr)!important;
  align-items:stretch!important;
  gap:7px!important;
  width:100%!important;
  max-width:100%!important;
  padding:8px!important;
  overflow:visible!important;
  box-sizing:border-box!important;
}

.learn-section-tabs .learn-section-tab{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  min-height:52px!important;
  padding:8px 5px!important;
  margin:0!important;
  box-sizing:border-box!important;
  border:1px solid #334155!important;
  border-radius:11px!important;
  background:#17233d!important;
  color:#d7e1f0!important;
  font-size:clamp(10px,1.05vw,14px)!important;
  line-height:1.12!important;
  font-weight:900!important;
  text-align:center!important;
  white-space:normal!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
  hyphens:none!important;
  overflow:hidden!important;
}

.learn-section-tabs .learn-section-tab:hover{
  background:#213154!important;
  color:#fff!important;
}

.learn-section-tabs .learn-section-tab.active{
  background:var(--accent)!important;
  border-color:var(--accent)!important;
  color:#111827!important;
}

/* Smaller desktop/tablet: keep one row, but make it scrollable instead of crushing labels. */
@media(max-width:960px){
  .learn-section-tabs{
    display:flex!important;
    flex-wrap:nowrap!important;
    justify-content:flex-start!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scroll-behavior:smooth!important;
    scrollbar-width:thin!important;
    -webkit-overflow-scrolling:touch!important;
    overscroll-behavior-x:contain!important;
  }

  .learn-section-tabs .learn-section-tab{
    flex:0 0 auto!important;
    width:auto!important;
    min-width:118px!important;
    max-width:none!important;
    padding:9px 14px!important;
    font-size:13px!important;
    white-space:nowrap!important;
    overflow:visible!important;
  }

  .learn-section-tabs .learn-section-tab:nth-child(4),
  .learn-section-tabs .learn-section-tab:nth-child(5),
  .learn-section-tabs .learn-section-tab:nth-child(6){
    min-width:148px!important;
  }
}

@media(max-width:600px){
  .learn-section-tabs{
    gap:6px!important;
    padding:7px!important;
  }

  .learn-section-tabs .learn-section-tab{
    min-width:108px!important;
    min-height:48px!important;
    padding:8px 12px!important;
    font-size:12px!important;
  }

  .learn-section-tabs .learn-section-tab:nth-child(4),
  .learn-section-tabs .learn-section-tab:nth-child(5),
  .learn-section-tabs .learn-section-tab:nth-child(6){
    min-width:140px!important;
  }
}


/* 2026-07-21 trainer correct/wrong sound controls */
.trainer-toolbar{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:18px;
  flex-wrap:wrap;
  margin:0 0 16px;
}
.trainer-toolbar .trainer-counting-row{margin:0}
.trainer-sound-control{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:48px;
  padding:6px 10px;
  border:1px solid rgba(71,85,105,.72);
  border-radius:12px;
  background:#020617;
}
.trainer-sound-control label{
  margin:0;
  color:#cbd5e1;
  font-size:13px;
  font-weight:900;
}
.trainer-sound-toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:30px;
  height:30px;
  min-width:30px;
  padding:0!important;
  border:0!important;
  border-radius:8px!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#f8fafc!important;
  font-size:18px!important;
  line-height:1!important;
}
.trainer-sound-toggle:hover,.trainer-sound-toggle:focus-visible{background:rgba(148,163,184,.14)!important;outline:1px solid rgba(234,179,8,.58)}
.trainer-sound-control input[type=range]{
  width:112px;
  min-width:90px;
  padding:0;
  border:0;
  background:transparent;
  accent-color:var(--accent);
  cursor:pointer;
}
.trainer-toolbar-guest{justify-content:flex-end}
@media(max-width:760px){
  .trainer-toolbar{align-items:stretch;gap:10px}
  .trainer-toolbar .trainer-counting-row{width:100%}
  .trainer-sound-control{margin-left:auto}
}

/* Authentication bot honeypot: available to form-filling bots, off-screen for people. */
.hc-auth-honeypot{
  position:absolute!important;
  left:-10000px!important;
  top:auto!important;
  width:1px!important;
  height:1px!important;
  overflow:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
}


/* Login password visibility control */
.auth-password-wrap{position:relative}
.auth-password-wrap input{width:100%;padding-right:52px!important}
.auth-password-toggle{position:absolute;right:8px;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;padding:0!important;border:0!important;border-radius:9px!important;background:transparent!important;color:#cbd5e1!important;box-shadow:none!important;cursor:pointer}
.auth-password-toggle:hover,.auth-password-toggle:focus-visible{background:rgba(148,163,184,.13)!important;color:#fff!important;outline:1px solid rgba(234,179,8,.55)}
.auth-password-toggle svg{width:22px;height:22px;fill:currentColor}
.auth-password-toggle .auth-eye-hide{display:none}
.auth-password-toggle[aria-pressed="true"] .auth-eye-show{display:none}
.auth-password-toggle[aria-pressed="true"] .auth-eye-hide{display:block}

/* Membership page mobile responsiveness — 2026-07-21 */
@media (max-width: 640px) {
  /* Keep the page inside the physical viewport even when long checkout copy is present. */
  main.container:has(> .membership-hero) {
    width: 100%;
    max-width: 100%;
    padding: 24px 14px 54px;
    overflow-x: clip;
  }

  .membership-hero,
  .membership-page-wrap,
  .membership-top-grid,
  .membership-checkout-card,
  .membership-value-panel,
  .membership-tier-section,
  .membership-tier-cards,
  .membership-tier-card,
  .membership-benefit-grid,
  .membership-benefit-grid.refined,
  .membership-benefit-grid.refined article,
  .membership-public-price,
  .membership-discount-apply,
  .membership-public-actions,
  .membership-gating-note {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .membership-hero {
    display: block;
    padding: 18px 0 24px;
    margin-bottom: 10px;
  }

  .membership-hero h1 {
    margin: 7px 0 14px;
    font-size: clamp(42px, 13vw, 56px);
    line-height: 1;
    overflow-wrap: anywhere;
  }

  .membership-hero .hero-subtitle {
    max-width: none;
    margin: 0;
    font-size: 17px;
    line-height: 1.52;
  }

  .membership-page-wrap {
    margin: 0;
    gap: 16px;
  }

  .membership-top-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .membership-tier-section,
  .membership-value-panel,
  .membership-public-card {
    padding: 18px;
    border-radius: 18px;
    overflow: hidden;
  }

  .membership-public-card h2,
  .membership-value-panel h2,
  .membership-tier-section .dashboard-section-head h2 {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .membership-public-card h2 {
    font-size: clamp(27px, 8.5vw, 36px);
    line-height: 1.08;
  }

  .membership-public-card p,
  .membership-value-panel p,
  .membership-tier-section p,
  .membership-gating-note span {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .membership-public-price {
    margin: 18px 0;
    padding: 18px;
    border-radius: 17px;
  }

  .membership-public-price strong {
    font-size: 1.9rem;
  }

  .membership-discount-apply {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    padding: 12px;
  }

  .membership-discount-apply label,
  .membership-discount-apply input,
  .membership-discount-apply .btn,
  .membership-public-actions form,
  .membership-public-actions form .btn,
  .membership-public-actions > .btn {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .membership-benefit-grid.refined,
  .membership-tier-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .membership-benefit-grid.refined article,
  .membership-tier-card {
    min-height: 0;
    padding: 18px;
  }

  /* The comparison has four meaningful columns; keep it readable and locally scrollable
     instead of forcing the entire page wider than the phone. */
  .membership-comparison-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  .membership-comparison-table {
    width: max-content;
    min-width: 690px;
  }

  .membership-comparison-table th,
  .membership-comparison-table td {
    padding: 11px 12px;
    white-space: normal;
  }

  .membership-comparison-table th:first-child,
  .membership-comparison-table td:first-child {
    min-width: 190px;
  }
}

/* Membership comparison: compact aligned mobile feature list — 2026-07-21 */
.membership-comparison-mobile {
  display: none;
}

@media (max-width: 640px) {
  .membership-comparison-wrap {
    display: none;
  }

  .membership-comparison-mobile {
    display: grid;
    gap: 10px;
    width: 100%;
    min-width: 0;
  }

  .membership-feature-mobile {
    min-width: 0;
    padding: 15px 14px;
    border: 1px solid rgba(147, 197, 253, 0.18);
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.32);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.035);
  }

  .membership-feature-mobile h3 {
    margin: 0 0 11px;
    color: #f8fafc;
    font-size: 1rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }

  .membership-tier-status {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: 5px;
    width: 100%;
  }

  .membership-tier-status strong,
  .membership-tier-status span {
    display: block;
    min-width: 0;
    text-align: center;
    font-size: clamp(.68rem, 3vw, .78rem);
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .membership-tier-status strong {
    color: #fde68a;
    font-weight: 950;
  }

  .membership-tier-status span {
    color: #64748b;
    font-weight: 750;
    opacity: .48;
  }

  .membership-feature-details {
    display: grid;
    gap: 6px;
    margin-top: 12px;
    padding-top: 11px;
    border-top: 1px solid rgba(147, 197, 253, 0.13);
    color: #cbd5e1;
    font-size: .82rem;
    line-height: 1.4;
  }

  .membership-feature-details span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .membership-feature-details b {
    color: #f8fafc;
  }
}

/* Membership feature information buttons and modal — 2026-07-21 */
.membership-feature-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  vertical-align: middle;
}
.membership-feature-label > span {
  min-width: 0;
}
.membership-feature-info {
  display: inline-grid;
  place-items: center;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  min-width: 20px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid #64748b;
  background: #111c31;
  color: #bfdbfe;
  font: 900 12px/1 system-ui, sans-serif;
  cursor: pointer;
  box-shadow: none;
}
.membership-feature-info:hover,
.membership-feature-info:focus-visible {
  border-color: #facc15;
  color: #fde68a;
  background: #1e293b;
  transform: none;
  outline: none;
}
.membership-feature-modal[hidden] { display: none !important; }
.membership-feature-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 20px;
}
.membership-feature-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, .82);
  backdrop-filter: blur(6px);
}
.membership-feature-modal-dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: min(82vh, 680px);
  overflow: auto;
  padding: 28px;
  border: 1px solid rgba(250, 204, 21, .42);
  border-radius: 22px;
  background: linear-gradient(145deg, #111c31, #070d1c);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .62);
}
.membership-feature-modal-dialog h2 {
  margin: 4px 44px 12px 0;
  overflow-wrap: anywhere;
}
.membership-feature-modal-copy {
  color: #dbeafe;
  font-size: 1rem;
  line-height: 1.65;
}
.membership-feature-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid #475569;
  background: #172033;
  color: #f8fafc;
  font-size: 26px;
  line-height: 1;
}
.membership-feature-modal-done {
  width: 100%;
  margin-top: 22px;
}
body.membership-feature-modal-open { overflow: hidden; }

@media (max-width: 640px) {
  .membership-feature-mobile h3 .membership-feature-label {
    align-items: flex-start;
  }
  .membership-feature-mobile h3 .membership-feature-info {
    margin-top: 1px;
  }
  .membership-feature-modal {
    padding: 12px;
  }
  .membership-feature-modal-dialog {
    padding: 23px 18px 18px;
    border-radius: 18px;
  }
  .membership-feature-modal-dialog h2 {
    font-size: 1.45rem;
  }
}


/* Visitor counting-system access on Training Drills */
.trainer-counting-guest-note {
  display:block;
  margin-top:.45rem;
  max-width:34rem;
  color:var(--muted, #a9b7ce);
  font-size:.82rem;
  line-height:1.4;
}
#trainer-counting-system option:disabled {
  color:#7c8799;
}
.counting-systems-access-note {
  margin:1rem 0 1.25rem;
  padding:.85rem 1rem;
  border:1px solid rgba(244,187,0,.35);
  border-radius:12px;
  background:rgba(244,187,0,.07);
  line-height:1.5;
}

/* Stripe Payment Element — fully themed HannCount checkout */
.payment-element-card{min-height:0}
.membership-payment-form{display:grid;gap:18px}
.membership-payment-element{width:100%;min-height:260px;padding:18px;border:1px solid rgba(71,85,105,.75);border-radius:18px;background:#0b1220}
.membership-payment-submit{width:100%;min-height:54px;display:flex;align-items:center;justify-content:center;gap:10px;font-size:17px}
.membership-payment-submit:disabled{opacity:.72}
.membership-payment-spinner{display:none;width:19px;height:19px;border:3px solid rgba(31,41,55,.35);border-top-color:#1f2937;border-radius:50%;animation:hcPaymentSpin .75s linear infinite}
.membership-payment-submit.is-loading .membership-payment-spinner{display:inline-block}
.membership-payment-trust{margin:0;text-align:center;color:#94a3b8;font-size:13px;line-height:1.5}
@keyframes hcPaymentSpin{to{transform:rotate(360deg)}}
@media(max-width:900px){
  .membership-embedded-shell{width:100%;max-width:100%;overflow:hidden}
  .membership-embedded-layout{width:100%;min-width:0}
  .membership-embedded-card,.membership-embedded-summary{width:100%;min-width:0}
  .membership-payment-element{padding:14px}
}
@media(max-width:560px){
  .membership-embedded-card{padding:17px;border-radius:18px}
  .membership-embedded-heading{margin-bottom:14px}
  .membership-payment-element{padding:12px;border-radius:14px}
  .membership-payment-submit{min-height:52px}
}


/* Stripe Payment Element mobile rendering safeguards */
.membership-payment-element{position:relative;contain:layout style;width:100%;max-width:100%;box-sizing:border-box}
.membership-payment-element.is-loading{display:flex;align-items:center;justify-content:center;min-height:260px}
.membership-payment-loader{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:#cbd5e1;font-weight:700;text-align:center}
.membership-payment-loader-spinner{width:30px;height:30px;border:3px solid rgba(203,213,225,.25);border-top-color:#eab308;border-radius:50%;animation:hc-payment-loader-spin .8s linear infinite}
@keyframes hc-payment-loader-spin{to{transform:rotate(360deg)}}
.membership-payment-element iframe{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important}
@media (max-width:640px){
  .membership-payment-element{min-height:0;padding:12px;overflow:visible}
  .membership-payment-element.is-loading{min-height:220px}
  .membership-payment-form,.payment-element-card{min-width:0;width:100%;max-width:100%}
}


/* Stripe Card Element — card-only checkout on desktop and mobile */
.membership-payment-element{min-height:0!important;padding:18px!important;display:block!important}
.membership-payment-element.is-loading{min-height:88px!important;display:flex!important;align-items:center!important;justify-content:center!important}
.membership-payment-element:not(.is-loading){min-height:58px!important}
.membership-payment-element .StripeElement{width:100%;min-height:24px}
.membership-payment-element .StripeElement--focus{}
@media(max-width:640px){
  .membership-payment-element{padding:16px 14px!important}
  .membership-payment-element.is-loading{min-height:82px!important}
}

/* Stripe Card Element mobile reliability + responsive sizing */
.membership-payment-element{
  position:relative;
  min-height:132px!important;
  padding:24px!important;
  display:flex!important;
  align-items:center;
  border-radius:18px;
}
.membership-payment-element.is-loading{min-height:132px!important}
.membership-card-element{width:100%;min-width:0}
.membership-card-element .StripeElement{width:100%;min-height:30px}
.membership-payment-loader[hidden]{display:none!important}
.payment-element-card .membership-payment-form{gap:20px}
@media(max-width:640px){
  .membership-payment-element{
    min-height:72px!important;
    padding:16px 14px!important;
    border-radius:14px;
  }
  .membership-payment-element.is-loading{min-height:82px!important}
  .membership-card-element .StripeElement{min-height:24px}
}

/* 2026-07-21 Stripe Card Element iPhone/CSP correction */
.membership-payment-element{
  display:block!important;
  min-height:0!important;
  padding:26px!important;
  border-radius:18px;
}
.membership-card-label{
  display:block;
  margin:0 0 12px;
  color:#e2e8f0;
  font-size:15px;
  font-weight:800;
  letter-spacing:.01em;
}
.membership-card-element{
  width:100%;
  min-height:72px;
  padding:19px 18px;
  border:1px solid rgba(100,116,139,.85);
  border-radius:13px;
  background:#08111f;
  box-sizing:border-box;
  transition:border-color .18s ease,box-shadow .18s ease;
}
.membership-card-element.is-ready{border-color:rgba(100,116,139,.9)}
.membership-card-element:focus-within{
  border-color:#eab308;
  box-shadow:0 0 0 3px rgba(234,179,8,.14);
}
.membership-card-element .StripeElement{width:100%;min-height:34px}
.membership-card-status{
  margin:12px 2px 0;
  color:#94a3b8;
  font-size:13px;
  line-height:1.45;
}
.membership-card-status.is-error{color:#fecaca}
.membership-payment-loader{display:none!important}
@media(max-width:640px){
  .membership-payment-element{padding:18px!important;border-radius:15px}
  .membership-card-label{font-size:14px;margin-bottom:10px}
  .membership-card-element{min-height:68px;padding:18px 15px;border-radius:12px}
  .membership-card-element .StripeElement{min-height:32px}
  .membership-card-status{font-size:12px;margin-top:10px}
}

/* Affiliate program */
.affiliate-stat-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:16px 0}.affiliate-stat-grid>div{padding:16px;border:1px solid var(--border,#d8dee8);border-radius:14px;background:rgba(255,255,255,.035)}.affiliate-stat-grid span{display:block;font-size:.78rem;color:var(--muted,#6b7280);margin-bottom:6px}.affiliate-stat-grid strong{font-size:1.25rem}.affiliate-dashboard-stats{grid-template-columns:repeat(4,minmax(0,1fr))}.affiliate-dashboard-hero,.affiliate-link-card,.affiliate-admin-head,.affiliate-payout-row{display:flex;align-items:center;justify-content:space-between;gap:18px}.affiliate-link-card strong{display:block;overflow-wrap:anywhere;margin-top:5px}.affiliate-payout-settings,.affiliate-admin-form{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.affiliate-payout-settings label,.affiliate-admin-form label{min-width:150px}.affiliate-payout-settings .grow,.affiliate-admin-form .grow{flex:1;min-width:240px}.affiliate-table-wrap{overflow-x:auto}.affiliate-admin-card{margin-top:18px}.affiliate-admin-balance{text-align:right}.affiliate-admin-balance span{display:block;color:var(--muted,#6b7280);font-size:.8rem}.affiliate-admin-balance strong{font-size:1.5rem}.affiliate-payout-row{justify-content:flex-end;margin-top:12px}.affiliate-payout-row input{max-width:380px}.affiliate-status{display:inline-flex;padding:4px 9px;border-radius:999px;font-size:.75rem;font-weight:700;background:rgba(148,163,184,.18)}.affiliate-status-paid{background:rgba(34,197,94,.16)}.affiliate-status-approved{background:rgba(59,130,246,.16)}.affiliate-status-void{background:rgba(239,68,68,.16)}.hidden{display:none!important}
@media(max-width:850px){.affiliate-stat-grid,.affiliate-dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.affiliate-dashboard-hero,.affiliate-link-card,.affiliate-admin-head{align-items:flex-start;flex-direction:column}.affiliate-admin-balance{text-align:left}.affiliate-payout-settings,.affiliate-admin-form{display:grid;grid-template-columns:1fr;width:100%}.affiliate-payout-settings label,.affiliate-admin-form label,.affiliate-payout-settings .grow,.affiliate-admin-form .grow{min-width:0;width:100%}}

/* Affiliate phase 2 */
.affiliate-link-card small{display:block;margin-top:6px;color:var(--muted,#94a3b8);font-weight:500}.affiliate-link-actions{display:flex;gap:8px;flex-wrap:wrap}.affiliate-code-settings .dashboard-section-head{align-items:center}.affiliate-qr-preview{width:132px;height:132px;background:#fff;border-radius:14px;padding:7px;flex:0 0 auto}.affiliate-qr-preview .hc-qr-svg{display:block;width:100%;height:100%}.affiliate-code-input{display:flex;align-items:center;border:1px solid rgba(148,163,184,.32);border-radius:10px;overflow:hidden;background:rgba(2,6,23,.28)}.affiliate-code-input span{padding:11px 0 11px 12px;color:#b9d4ff;white-space:nowrap}.affiliate-code-input input{border:0!important;border-radius:0!important;background:transparent!important;padding-left:2px!important;min-width:140px}@media(max-width:700px){.affiliate-code-settings .dashboard-section-head{align-items:flex-start}.affiliate-qr-preview{width:112px;height:112px}.affiliate-code-input span{font-size:.86rem}.affiliate-link-actions{width:100%}.affiliate-link-actions .btn{flex:1}}


/* Affiliate controls polish + scalable admin user search */
.affiliate-payout-settings select,.affiliate-admin-form select,.hc-select{
  width:100%;min-height:52px;padding:0 46px 0 15px;border:1px solid rgba(100,116,139,.82);border-radius:13px;
  background-color:#08111f;background-image:linear-gradient(45deg,transparent 50%,#f4bb00 50%),linear-gradient(135deg,#f4bb00 50%,transparent 50%);
  background-position:calc(100% - 20px) 22px,calc(100% - 14px) 22px;background-size:6px 6px,6px 6px;background-repeat:no-repeat;
  color:#f8fafc;font:inherit;font-weight:700;appearance:none;-webkit-appearance:none;cursor:pointer;box-sizing:border-box;
  transition:border-color .18s ease,box-shadow .18s ease,background-color .18s ease;
}
.affiliate-payout-settings select:hover,.affiliate-admin-form select:hover,.hc-select:hover{border-color:rgba(244,187,0,.72)}
.affiliate-payout-settings select:focus,.affiliate-admin-form select:focus,.hc-select:focus{outline:none;border-color:#f4bb00;box-shadow:0 0 0 3px rgba(244,187,0,.14)}
.affiliate-payout-settings select option,.affiliate-admin-form select option,.hc-select option{background:#0f1a2e;color:#f8fafc}
.affiliate-user-search-label{min-width:300px!important}
.affiliate-user-search{position:relative;width:100%}
.affiliate-user-search input[type=search]{width:100%;min-height:52px;padding:0 44px 0 15px;border:1px solid rgba(100,116,139,.82);border-radius:13px;background:#08111f;color:#f8fafc;font:inherit;box-sizing:border-box}
.affiliate-user-search input[type=search]::placeholder{color:#8fa2bf}
.affiliate-user-search input[type=search]:focus{outline:none;border-color:#f4bb00;box-shadow:0 0 0 3px rgba(244,187,0,.14)}
.affiliate-user-search input.has-selection{border-color:rgba(34,197,94,.78)}
.affiliate-user-results{position:absolute;z-index:50;top:calc(100% + 7px);left:0;right:0;max-height:320px;overflow:auto;padding:7px;border:1px solid rgba(100,116,139,.85);border-radius:14px;background:#0b1527;box-shadow:0 20px 55px rgba(0,0,0,.5)}
.affiliate-user-result{display:flex;width:100%;flex-direction:column;align-items:flex-start;gap:3px;padding:11px 12px;border:0;border-radius:10px;background:transparent;color:#f8fafc;text-align:left;cursor:pointer}
.affiliate-user-result:hover,.affiliate-user-result:focus{outline:none;background:rgba(244,187,0,.12)}
.affiliate-user-result strong{font-size:.95rem}.affiliate-user-result span{color:#9fb2cf;font-size:.82rem;overflow-wrap:anywhere}
.affiliate-user-empty{padding:12px;color:#9fb2cf;font-size:.9rem}
.affiliate-field-help{display:block;margin-top:6px;color:#8fa2bf;font-size:.78rem;font-weight:500}
@media(max-width:850px){.affiliate-user-search-label{min-width:0!important}.affiliate-user-results{position:static;margin-top:7px}}

/* Affiliate payout alignment */
.affiliate-payout-settings .affiliate-save-preference{align-self:flex-end;min-height:52px;margin:0 0 1px;white-space:nowrap}
@media(max-width:850px){.affiliate-payout-settings .affiliate-save-preference{width:100%;margin:0}}


/* Affiliate Phase 3 */
.affiliate-public-page{max-width:1100px;margin:2rem auto;padding:0 1rem}.affiliate-public-hero{text-align:center;padding:3rem 2rem}.affiliate-public-avatar{width:112px;height:112px;border-radius:50%;object-fit:cover;border:3px solid var(--accent,#f3b800);margin-bottom:1rem}.affiliate-public-intro{max-width:720px;margin:1rem auto;font-size:1.15rem}.affiliate-public-hero blockquote{max-width:720px;margin:1.5rem auto;padding:1rem 1.25rem;border-left:4px solid #f3b800;background:rgba(255,255,255,.03);text-align:left}.affiliate-count-badge{display:inline-block;padding:.55rem .9rem;border:1px solid rgba(255,255,255,.16);border-radius:999px}.affiliate-public-actions,.affiliate-social-public{display:flex;gap:.75rem;justify-content:center;flex-wrap:wrap;margin-top:1.5rem}.affiliate-social-public a{display:inline-flex;align-items:center;gap:.45rem;padding:.55rem .8rem;border:1px solid rgba(255,255,255,.15);border-radius:999px;text-decoration:none}.affiliate-benefit-grid,.affiliate-assets-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.affiliate-benefit-grid>div,.affiliate-assets-grid>a{color:#fff;display:flex;flex-direction:column;gap:.4rem;padding:1rem;border:1px solid rgba(255,255,255,.12);border-radius:12px}.affiliate-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.affiliate-form-grid .span-2{grid-column:1/-1}.affiliate-toggle-row{display:flex;gap:.8rem;align-items:flex-start;padding:1rem;border:1px solid rgba(255,255,255,.12);border-radius:12px;margin-bottom:1rem}.affiliate-toggle-row span{display:flex;flex-direction:column}.affiliate-profile-tools,.affiliate-social-add,.affiliate-social-list>div,.affiliate-moderation-form{display:flex;gap:1rem;align-items:end;flex-wrap:wrap}.affiliate-photo-preview{width:76px;height:76px;border-radius:50%;object-fit:cover}.affiliate-social-list{display:grid;gap:.75rem;margin-top:1rem}.affiliate-social-list>div{justify-content:space-between;padding:.75rem;border:1px solid rgba(255,255,255,.12);border-radius:10px}.affiliate-social-list a{display:flex;align-items:center;gap:.6rem}.affiliate-social-list small{opacity:.7}.affiliate-checks{display:grid;gap:.5rem;align-content:center}.affiliate-copy-box{margin-top:1rem;padding:1rem;border:1px solid rgba(255,255,255,.12);border-radius:12px}.affiliate-landing-settings textarea{width:100%}@media(max-width:760px){.affiliate-form-grid,.affiliate-benefit-grid,.affiliate-assets-grid{grid-template-columns:1fr}.affiliate-form-grid .span-2{grid-column:auto}.affiliate-public-hero{padding:2rem 1rem}}

/* Affiliate dashboard Phase 3 UI refinements */
.affiliate-landing-mode{display:grid;grid-template-columns:minmax(190px,260px) minmax(120px,180px);gap:.45rem 1rem;align-items:end;margin-bottom:1rem}.affiliate-landing-mode>small{grid-column:1/-1;color:var(--muted,#a8b4c9);font-weight:400;line-height:1.5}.affiliate-landing-settings .hc-textarea{display:block;width:100%;min-height:88px;padding:.85rem 1rem;color:var(--text,#fff);background:#081225;border:1px solid #44516c;border-radius:12px;font:inherit;line-height:1.45;resize:vertical;box-sizing:border-box}.affiliate-landing-settings .hc-textarea:focus{outline:none;border-color:#f3b800;box-shadow:0 0 0 2px rgba(243,184,0,.14)}.affiliate-checks{display:grid;gap:.65rem;align-content:start;padding-top:1.55rem}.affiliate-checks label{display:flex;align-items:center;justify-content:flex-start;gap:.65rem;min-height:28px;cursor:pointer}.affiliate-checks input[type=checkbox]{width:18px;height:18px;min-width:18px;margin:0;accent-color:#f3b800}.affiliate-checks span{line-height:1.3}.affiliate-profile-tools{margin:1rem 0;align-items:center}.affiliate-profile-tools h3{margin:0 0 .5rem}.affiliate-profile-tools form{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}.affiliate-landing-save{margin-top:.25rem}.affiliate-social-add,.affiliate-payout-settings{display:grid;grid-template-columns:minmax(150px,220px) minmax(240px,1fr) auto;gap:.75rem;align-items:end}.affiliate-social-add label,.affiliate-payout-settings label{margin:0}.affiliate-social-add .btn,.affiliate-payout-settings .btn{align-self:end;margin:0;min-height:46px;white-space:nowrap}.affiliate-save-preference{align-self:end!important}@media(max-width:760px){.affiliate-landing-mode{grid-template-columns:1fr}.affiliate-landing-mode>small{grid-column:auto}.affiliate-social-add,.affiliate-payout-settings{grid-template-columns:1fr}.affiliate-social-add .btn,.affiliate-payout-settings .btn{width:100%}.affiliate-checks{padding-top:0}}

/* Affiliate dashboard refinements: 2026-07-22 */
.affiliate-code-form{display:grid;grid-template-columns:minmax(320px,1fr) auto;gap:.75rem;align-items:end;width:100%}
.affiliate-code-form label{min-width:0;margin:0}
.affiliate-code-form .btn{width:auto;min-width:150px;min-height:46px;white-space:nowrap}
.affiliate-code-form .affiliate-code-input input{min-width:260px;width:100%}
.affiliate-notification-preferences{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem 1rem;padding-top:.25rem}
.affiliate-notification-preferences label{display:flex;align-items:center;gap:.65rem;min-width:0;margin:0;cursor:pointer}
.affiliate-notification-preferences input[type=checkbox]{width:18px;height:18px;min-width:18px;margin:0;accent-color:#f3b800}
.affiliate-social-list a{color:var(--text,#f8fafc)!important;text-decoration:none;font-size:1rem}
.affiliate-social-list a:hover{color:#fff!important}
.affiliate-social-list a strong{font-size:1rem;color:inherit}
.affiliate-social-list a small{font-size:.9rem;color:#d8e2f2;opacity:1}
.affiliate-social-public a:hover{color:#fff!important}
.affiliate-social-public a strong{font-size:1rem;color:inherit}
.affiliate-social-public a small{font-size:.9rem;color:#d8e2f2;opacity:1}
.affiliate-social-public a{color:var(--text,#f8fafc)!important;text-decoration:none;font-size:1rem}
@media(max-width:760px){.affiliate-code-form{grid-template-columns:1fr}.affiliate-code-form .btn{width:100%}.affiliate-code-form .affiliate-code-input input{min-width:0}.affiliate-notification-preferences{grid-template-columns:1fr}}

/* Affiliate preferred counting method display */
.affiliate-counting-preference{display:flex;flex-direction:column;gap:.35rem;padding:.8rem 1rem;background:#081225;border:1px solid #44516c;border-radius:12px;min-height:72px;box-sizing:border-box}.affiliate-counting-preference .affiliate-field-label{font-size:.9rem;font-weight:700;color:var(--text,#fff)}.affiliate-counting-preference strong{font-size:1rem;color:var(--text,#fff)}.affiliate-counting-preference small{color:var(--muted,#a8b4c9);font-weight:400;line-height:1.4}

/* Public affiliate application UI refinements — 2026-07-22 */
.affiliate-how-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.affiliate-how-grid>div{display:flex;flex-direction:column;align-items:flex-start;min-height:112px}
.affiliate-how-grid>div span{margin-bottom:.55rem}
.affiliate-how-grid>div strong{display:block;line-height:1.15;margin-bottom:.55rem}
.affiliate-how-grid>div small{display:block;line-height:1.45;color:var(--muted,#a8b4c9)}
.affiliate-application-form label{display:flex;flex-direction:column;gap:.45rem}
.affiliate-promotion-field>span{display:block;font-weight:700;color:var(--text,#f8fafc)}
.affiliate-application-form .affiliate-application-textarea{display:block;width:100%;min-height:150px;padding:.9rem 1rem;background:#081225!important;color:var(--text,#f8fafc)!important;border:1px solid #44516c!important;border-radius:12px!important;font:inherit;line-height:1.5;resize:vertical;box-sizing:border-box}
.affiliate-application-form .affiliate-application-textarea:focus{outline:none;border-color:#f3b800!important;box-shadow:0 0 0 3px rgba(243,184,0,.14)}
.affiliate-check-row{display:flex!important;flex-direction:row!important;align-items:center;justify-content:flex-start;gap:.65rem;margin:1rem 0;cursor:pointer}
.affiliate-check-row input[type=checkbox]{width:18px;height:18px;min-width:18px;margin:0;accent-color:#f3b800}
.affiliate-check-row span{line-height:1.4}
.affiliate-agreement-link{display:inline;padding:0;border:0;background:transparent;color:#fff!important;text-decoration:underline;text-underline-offset:3px;font:inherit;font-weight:700;cursor:pointer}
.affiliate-agreement-link:hover,.affiliate-agreement-link:focus{color:#fff!important;text-decoration-thickness:2px;outline:none}
.affiliate-agreement-modal[hidden]{display:none!important}
.affiliate-agreement-modal{position:fixed;inset:0;z-index:12000;display:grid;place-items:center;padding:1rem}
.affiliate-agreement-backdrop{position:absolute;inset:0;background:rgba(2,6,23,.8);backdrop-filter:blur(6px)}
.affiliate-agreement-dialog{position:relative;width:min(760px,94vw);max-height:86vh;overflow:auto;padding:1.5rem;background:#0f1a2e;border:1px solid rgba(148,163,184,.42);border-radius:18px;box-shadow:0 28px 90px rgba(0,0,0,.6)}
.affiliate-agreement-dialog h2{margin:.15rem 3rem .35rem 0}
.affiliate-agreement-dialog h3{margin:1.25rem 0 .35rem;color:#fff}
.affiliate-agreement-dialog p{line-height:1.6}
.affiliate-agreement-close{position:absolute;top:1rem;right:1rem;width:40px;height:40px;padding:0;border-radius:999px;border:1px solid #475569;background:#1f2937;color:#fff;font-size:1.6rem;line-height:1;cursor:pointer}
.affiliate-agreement-actions{display:flex;justify-content:flex-end;margin-top:1.25rem}
body.affiliate-agreement-modal-open{overflow:hidden}
@media(max-width:760px){.affiliate-how-grid{grid-template-columns:1fr 1fr}.affiliate-agreement-dialog{padding:1.15rem}.affiliate-check-row{align-items:flex-start}}
@media(max-width:480px){.affiliate-how-grid{grid-template-columns:1fr}}

/* Affiliate Phase 5 admin workflow */
.affiliate-admin-hero-actions,.affiliate-application-actions,.affiliate-section-head,.affiliate-inline-actions,.affiliate-payout-submit{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.affiliate-admin-hero-actions{justify-content:flex-end}.affiliate-list-toolbar,.affiliate-section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;margin-bottom:18px}.affiliate-list-filters{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.affiliate-list-filters input[type=search]{min-width:270px}.affiliate-directory-table td:first-child strong,.affiliate-payout-center-table td strong{display:block}.affiliate-directory-table td:first-child small,.affiliate-payout-center-table td small{display:block;color:var(--muted);margin-top:4px}.affiliate-directory-table td{white-space:nowrap}.affiliate-directory-table td:first-child{white-space:normal;min-width:210px}.affiliate-pagination{display:flex;gap:7px;flex-wrap:wrap;margin-top:18px}.affiliate-pagination a{display:inline-flex;align-items:center;justify-content:center;min-width:36px;height:36px;border:1px solid var(--border);border-radius:9px;text-decoration:none}.affiliate-pagination a.active{border-color:#f4bb00;background:rgba(244,187,0,.12);color:#fff}.affiliate-admin-create details summary{cursor:pointer;font-size:1.05rem;font-weight:700}.affiliate-create-expanded{margin-top:16px}.affiliate-application-admin{padding:16px 0;border-top:1px solid var(--border)}.affiliate-application-admin:first-of-type{border-top:0}.affiliate-account-meta{display:flex;gap:24px;flex-wrap:wrap;margin-top:18px;color:var(--muted)}.affiliate-status-guide{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0 20px}.affiliate-status-guide>div{padding:14px;border:1px solid var(--border);border-radius:12px;background:rgba(255,255,255,.025)}.affiliate-status-guide strong,.affiliate-status-guide span{display:block}.affiliate-status-guide span{color:var(--muted);font-size:.86rem;margin-top:5px}.affiliate-detail-settings{align-items:end}.affiliate-inline-actions form{margin:0}.affiliate-payout-center-table td{vertical-align:middle}.affiliate-payout-center-table input[type=text],.affiliate-payout-center-table input:not([type]){min-width:220px}.affiliate-payout-submit{justify-content:space-between;margin-top:18px}.affiliate-status-active,.affiliate-status-approved,.affiliate-status-paid{background:rgba(34,197,94,.16)}.affiliate-status-pending{background:rgba(244,187,0,.16)}.affiliate-status-disabled,.affiliate-status-void{background:rgba(239,68,68,.16)}
@media(max-width:900px){.affiliate-list-toolbar,.affiliate-section-head{align-items:stretch;flex-direction:column}.affiliate-list-filters{display:grid;grid-template-columns:1fr 1fr}.affiliate-list-filters input[type=search]{min-width:0;grid-column:1/-1}.affiliate-status-guide{grid-template-columns:1fr 1fr}.affiliate-admin-hero-actions{justify-content:flex-start}}
@media(max-width:600px){.affiliate-list-filters,.affiliate-status-guide{grid-template-columns:1fr}.affiliate-payout-submit{align-items:stretch;flex-direction:column}.affiliate-payout-submit .btn{width:100%}}

/* Affiliate admin table alignment and payout-center spacing */
.affiliate-directory-table,
.affiliate-commission-table,
.affiliate-payout-center-table{width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed}
.affiliate-directory-table th,.affiliate-directory-table td,
.affiliate-commission-table th,.affiliate-commission-table td,
.affiliate-payout-center-table th,.affiliate-payout-center-table td{padding:12px 10px;text-align:left;vertical-align:middle}
.affiliate-directory-table th,.affiliate-commission-table th,.affiliate-payout-center-table th{white-space:nowrap}
.affiliate-number-cell{text-align:right!important;font-variant-numeric:tabular-nums;white-space:nowrap}
.affiliate-directory-table th:nth-child(n+4):nth-child(-n+10),
.affiliate-commission-table th:nth-child(3),.affiliate-commission-table th:nth-child(4),.affiliate-commission-table th:nth-child(5),
.affiliate-payout-center-table th:nth-child(5),.affiliate-payout-center-table th:nth-child(6){text-align:right}
.affiliate-directory-table .col-affiliate{width:22%}.affiliate-directory-table .col-status{width:9%}.affiliate-directory-table .col-code{width:13%}.affiliate-directory-table .col-cut{width:7%}.affiliate-directory-table .col-stat{width:6%}.affiliate-directory-table .col-money{width:8%}.affiliate-directory-table .col-open{width:7%}
.affiliate-commission-table{min-width:980px}.affiliate-commission-table .col-date{width:13%}.affiliate-commission-table .col-buyer{width:28%}.affiliate-commission-table .col-money{width:10%}.affiliate-commission-table .col-rate{width:9%}.affiliate-commission-table .col-commission{width:12%}.affiliate-commission-table .col-status{width:11%}.affiliate-commission-table .col-actions{width:17%}
.affiliate-email-cell{overflow-wrap:anywhere}.affiliate-commission-note{margin:-5px 0 18px}
.affiliate-payout-center-table{min-width:1180px}.affiliate-payout-center-table .col-record{width:7%}.affiliate-payout-center-table .col-affiliate{width:20%}.affiliate-payout-center-table .col-method{width:16%}.affiliate-payout-center-table .col-schedule{width:11%}.affiliate-payout-center-table .col-minimum{width:10%}.affiliate-payout-center-table .col-approved{width:11%}.affiliate-payout-center-table .col-eligibility{width:12%}.affiliate-payout-center-table .col-reference{width:23%}
.affiliate-payout-center-table td:first-child,.affiliate-payout-center-table th:first-child{text-align:center}.affiliate-payout-center-table input[type=text],.affiliate-payout-center-table input:not([type]){width:100%;min-width:0}.affiliate-payout-center-table small{line-height:1.35}.affiliate-table-wrap{scrollbar-gutter:stable}
@media(max-width:1100px){.affiliate-directory-table{min-width:1060px}}
