/* ═══════════════════════════════════════════════════════════════════════════
   trainer.css — Poker Trainer Course Styles
   All selectors scoped under .trainer-shell to avoid conflicts with HUD.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── SCROLLBAR (scoped) ─────────────────────────────────────────────────── */
.trainer-shell ::-webkit-scrollbar { width: 5px; height: 5px; }
.trainer-shell ::-webkit-scrollbar-track { background: transparent; }
.trainer-shell ::-webkit-scrollbar-thumb { background: #1e2a3a; border-radius: 3px; }
.trainer-shell ::-webkit-scrollbar-thumb:hover { background: #2d3f55; }

/* ═══════════════════════════════════════════════════════════════════════════
   1. TRAINER SHELL
   ═══════════════════════════════════════════════════════════════════════════ */
.trainer-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #e8edf5;
}

.trainer-shell *, .trainer-shell *::before, .trainer-shell *::after {
  box-sizing: border-box;
}

.trainer-shell a { color: #3b82f6; text-decoration: none; }
.trainer-shell a:hover { text-decoration: underline; }
.trainer-shell button { font-family: 'Outfit', system-ui, sans-serif; cursor: pointer; }
.trainer-shell input, .trainer-shell select, .trainer-shell textarea { font-family: 'Outfit', system-ui, sans-serif; }

/* ═══════════════════════════════════════════════════════════════════════════
   2. TOPBAR
   ═══════════════════════════════════════════════════════════════════════════ */
.trainer-shell .tr-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  height: 44px;
  background: #0c1019;
  border-bottom: 1px solid #1e2a3a;
  flex-shrink: 0;
  z-index: 50;
}

.trainer-shell .tr-topbar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #e8edf5;
  white-space: nowrap;
}

.trainer-shell .tr-topbar-logo .logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  border-radius: 5px;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}

.trainer-shell .tr-topbar-logo .logo-text { color: #e8edf5; }
.trainer-shell .tr-topbar-logo .logo-sub {
  color: #3d5068;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .04em;
}

/* Breadcrumb */
.trainer-shell .tr-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #6b7f96;
}
.trainer-shell .tr-breadcrumb span { cursor: pointer; transition: color .15s; }
.trainer-shell .tr-breadcrumb span:hover { color: #a8b8cc; }
.trainer-shell .tr-breadcrumb .bc-sep { color: #3d5068; font-size: 10px; }
.trainer-shell .tr-breadcrumb .bc-current { color: #e8edf5; font-weight: 600; cursor: default; }

/* XP cluster */
.trainer-shell .tr-xp-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.trainer-shell .tr-xp-bar-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trainer-shell .tr-xp-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: #f59e0b;
  white-space: nowrap;
}

.trainer-shell .tr-xp-track {
  width: 120px;
  height: 6px;
  background: #1e2a3a;
  border-radius: 3px;
  overflow: hidden;
}

.trainer-shell .tr-xp-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #f97316);
  border-radius: 3px;
  transition: width .4s ease;
}

/* Rank badge */
.trainer-shell .tr-rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  background: rgba(139, 92, 246, .12);
  border: 1px solid rgba(139, 92, 246, .25);
  border-radius: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  color: #a78bfa;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.trainer-shell .tr-rank-badge .rank-icon { font-size: 12px; }

/* Session timer */
.trainer-shell .tr-session-timer {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #3d5068;
  letter-spacing: .04em;
}

/* ═══════════════════════════════════════════════════════════════════════════
   3. BODY (NAV + VIEWS)
   ═══════════════════════════════════════════════════════════════════════════ */
.trainer-shell .tr-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════════════════
   4. LEFT NAV SIDEBAR
   ═══════════════════════════════════════════════════════════════════════════ */
.trainer-shell .tr-nav {
  width: 228px;
  flex-shrink: 0;
  background: #0c1019;
  border-right: 1px solid #1e2a3a;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all .3s ease;
}

.trainer-shell .tr-nav.hidden {
  opacity: 0;
  pointer-events: none;
  width: 0;
  border-right-width: 0;
}

/* Nav header */
.trainer-shell .tr-nav-header {
  padding: 16px 16px 12px;
  border-bottom: 1px solid #1e2a3a;
  flex-shrink: 0;
}

.trainer-shell .tr-nav-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #6b7f96;
  margin-bottom: 12px;
}

/* Player profile card */
.trainer-shell .tr-player-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #101620;
  border: 1px solid #1e2a3a;
  border-radius: 8px;
}

.trainer-shell .tr-player-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.trainer-shell .tr-player-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.trainer-shell .tr-player-name {
  font-size: 13px;
  font-weight: 600;
  color: #e8edf5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trainer-shell .tr-player-rank {
  font-size: 10px;
  color: #6b7f96;
  font-weight: 500;
}

/* Nav items (Dashboard, Tools, Drills) */
.trainer-shell .tr-nav-items {
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}

.trainer-shell .tr-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #a8b8cc;
  cursor: pointer;
  transition: all .15s ease;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.trainer-shell .tr-nav-item:hover {
  background: #18202f;
  color: #e8edf5;
}

.trainer-shell .tr-nav-item.active {
  background: rgba(59, 130, 246, .1);
  color: #3b82f6;
  font-weight: 600;
}

.trainer-shell .tr-nav-item .nav-icon {
  font-size: 15px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.trainer-shell .tr-nav-item .nav-badge {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  background: rgba(59, 130, 246, .15);
  color: #3b82f6;
}

/* Nav divider */
.trainer-shell .tr-nav-divider {
  height: 1px;
  background: #1e2a3a;
  margin: 6px 16px;
  flex-shrink: 0;
}

/* Module list */
.trainer-shell .tr-nav-modules {
  flex: 1;
  overflow-y: auto;
  padding: 8px 10px 16px;
}

.trainer-shell .tr-nav-mod-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #3d5068;
  padding: 4px 12px 8px;
}

.trainer-shell .tr-nav-mod-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all .15s ease;
}

.trainer-shell .tr-nav-mod-row:hover { background: #18202f; }

.trainer-shell .tr-nav-mod-row.active {
  background: rgba(59, 130, 246, .08);
}

.trainer-shell .tr-nav-mod-row.locked { opacity: .4; cursor: not-allowed; }

.trainer-shell .tr-nav-mod-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1e2a3a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  color: #6b7f96;
  flex-shrink: 0;
}

.trainer-shell .tr-nav-mod-row.completed .tr-nav-mod-num {
  background: rgba(34, 197, 94, .15);
  color: #22c55e;
}

.trainer-shell .tr-nav-mod-row.active .tr-nav-mod-num {
  background: rgba(59, 130, 246, .2);
  color: #3b82f6;
}

.trainer-shell .tr-nav-mod-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}

.trainer-shell .tr-nav-mod-name {
  font-size: 12px;
  font-weight: 500;
  color: #a8b8cc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trainer-shell .tr-nav-mod-row.active .tr-nav-mod-name { color: #e8edf5; font-weight: 600; }

.trainer-shell .tr-nav-mod-sub {
  font-size: 10px;
  color: #3d5068;
}

.trainer-shell .tr-nav-mod-check {
  font-size: 12px;
  color: #22c55e;
  flex-shrink: 0;
}

.trainer-shell .tr-nav-mod-lock {
  font-size: 11px;
  color: #3d5068;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   5. VIEWS (generic)
   ═══════════════════════════════════════════════════════════════════════════ */
.trainer-shell .tr-view {
  display: none;
  flex: 1;
  overflow-y: auto;
}

.trainer-shell .tr-view.show {
  display: flex;
  flex-direction: column;
}

.trainer-shell .tr-view-pad {
  padding: 32px 36px;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════════════════
   6. ONBOARDING VIEW
   ═══════════════════════════════════════════════════════════════════════════ */
.trainer-shell .tr-view-onboard {
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
}

.trainer-shell .tr-onboard-card {
  width: 100%;
  max-width: 520px;
  background: #131a26;
  border: 1px solid #1e2a3a;
  border-radius: 14px;
  padding: 40px 36px;
  text-align: center;
}

.trainer-shell .tr-onboard-card h2 {
  font-size: 22px;
  font-weight: 700;
  color: #e8edf5;
  margin-bottom: 6px;
}

.trainer-shell .tr-onboard-card .ob-sub {
  font-size: 13px;
  color: #6b7f96;
  margin-bottom: 28px;
}

/* Step track / pips */
.trainer-shell .tr-step-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}

.trainer-shell .tr-step-pip {
  width: 32px;
  height: 4px;
  border-radius: 2px;
  background: #1e2a3a;
  transition: background .3s ease;
}

.trainer-shell .tr-step-pip.active {
  background: #3b82f6;
}

.trainer-shell .tr-step-pip.done {
  background: #22c55e;
}

/* Onboarding form */
.trainer-shell .tr-ob-step { display: none; }
.trainer-shell .tr-ob-step.show { display: block; }

.trainer-shell .tr-ob-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #a8b8cc;
  margin-bottom: 6px;
  text-align: left;
}

.trainer-shell .tr-ob-input {
  width: 100%;
  height: 40px;
  padding: 0 14px;
  background: #0c1019;
  border: 1px solid #1e2a3a;
  border-radius: 8px;
  color: #e8edf5;
  font-size: 14px;
  outline: none;
  transition: border-color .15s;
  margin-bottom: 16px;
}

.trainer-shell .tr-ob-input:focus { border-color: #3b82f6; }

.trainer-shell .tr-ob-input::placeholder { color: #3d5068; }

.trainer-shell .tr-ob-select {
  width: 100%;
  height: 40px;
  padding: 0 14px;
  background: #0c1019;
  border: 1px solid #1e2a3a;
  border-radius: 8px;
  color: #e8edf5;
  font-size: 14px;
  outline: none;
  margin-bottom: 16px;
  appearance: none;
  cursor: pointer;
}

.trainer-shell .tr-ob-select:focus { border-color: #3b82f6; }

/* Skill grid (onboarding step) */
.trainer-shell .tr-skill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
  text-align: left;
}

.trainer-shell .tr-skill-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 10px;
  background: #0c1019;
  border: 1px solid #1e2a3a;
  border-radius: 10px;
  cursor: pointer;
  transition: all .15s ease;
  text-align: center;
}

.trainer-shell .tr-skill-tile:hover { border-color: #243245; background: #101620; }

.trainer-shell .tr-skill-tile.selected {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, .08);
}

.trainer-shell .tr-skill-tile .skill-icon { font-size: 22px; }

.trainer-shell .tr-skill-tile .skill-name {
  font-size: 11px;
  font-weight: 600;
  color: #a8b8cc;
}

.trainer-shell .tr-skill-tile.selected .skill-name { color: #e8edf5; }

/* Goal list (onboarding step) */
.trainer-shell .tr-goal-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  text-align: left;
}

.trainer-shell .tr-goal-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #0c1019;
  border: 1px solid #1e2a3a;
  border-radius: 10px;
  cursor: pointer;
  transition: all .15s ease;
}

.trainer-shell .tr-goal-tile:hover { border-color: #243245; background: #101620; }

.trainer-shell .tr-goal-tile.selected {
  border-color: #22c55e;
  background: rgba(34, 197, 94, .06);
}

.trainer-shell .tr-goal-tile .goal-icon { font-size: 18px; flex-shrink: 0; }

.trainer-shell .tr-goal-tile .goal-text {
  font-size: 13px;
  color: #a8b8cc;
  font-weight: 500;
}

.trainer-shell .tr-goal-tile.selected .goal-text { color: #e8edf5; }

.trainer-shell .tr-goal-tile .goal-check {
  margin-left: auto;
  font-size: 14px;
  color: #22c55e;
  opacity: 0;
  transition: opacity .15s;
}

.trainer-shell .tr-goal-tile.selected .goal-check { opacity: 1; }

/* ═══════════════════════════════════════════════════════════════════════════
   7. DASHBOARD VIEW
   ═══════════════════════════════════════════════════════════════════════════ */

/* Stats row */
.trainer-shell .tr-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.trainer-shell .tr-stat-card {
  background: #131a26;
  border: 1px solid #1e2a3a;
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.trainer-shell .tr-stat-label {
  font-size: 11px;
  font-weight: 600;
  color: #6b7f96;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.trainer-shell .tr-stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  font-weight: 700;
  color: #e8edf5;
}

.trainer-shell .tr-stat-sub {
  font-size: 11px;
  color: #3d5068;
}

/* Hero card */
.trainer-shell .tr-hero-card {
  background: linear-gradient(135deg, #101620, #131a26);
  border: 1px solid #1e2a3a;
  border-radius: 14px;
  padding: 28px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.trainer-shell .tr-hero-text { flex: 1; }

.trainer-shell .tr-hero-text h3 {
  font-size: 18px;
  font-weight: 700;
  color: #e8edf5;
  margin-bottom: 6px;
}

.trainer-shell .tr-hero-text p {
  font-size: 13px;
  color: #6b7f96;
  line-height: 1.6;
  margin-bottom: 16px;
}

/* Modules grid */
.trainer-shell .tr-modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

/* Module card */
.trainer-shell .tr-mod-card {
  background: #131a26;
  border: 1px solid #1e2a3a;
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all .2s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.trainer-shell .tr-mod-card:hover {
  border-color: #243245;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}

.trainer-shell .tr-mod-card.locked {
  opacity: .45;
  cursor: not-allowed;
}

.trainer-shell .tr-mod-card.locked:hover {
  transform: none;
  box-shadow: none;
}

.trainer-shell .tr-mod-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trainer-shell .tr-mod-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(59, 130, 246, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.trainer-shell .tr-mod-card-header h4 {
  font-size: 14px;
  font-weight: 700;
  color: #e8edf5;
}

.trainer-shell .tr-mod-card-header .mod-num {
  font-size: 10px;
  font-weight: 600;
  color: #3d5068;
}

.trainer-shell .tr-mod-desc {
  font-size: 12px;
  color: #6b7f96;
  line-height: 1.5;
}

.trainer-shell .tr-mod-lessons {
  font-size: 11px;
  color: #3d5068;
}

/* Module progress bar */
.trainer-shell .tr-mod-progress {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.trainer-shell .tr-mod-prog-track {
  flex: 1;
  height: 4px;
  background: #1e2a3a;
  border-radius: 2px;
  overflow: hidden;
}

.trainer-shell .tr-mod-prog-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #22c55e);
  border-radius: 2px;
  transition: width .4s ease;
}

.trainer-shell .tr-mod-prog-pct {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: #6b7f96;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════════════════════
   8. TOOLS VIEW
   ═══════════════════════════════════════════════════════════════════════════ */

/* Tools grid */
.trainer-shell .tr-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.trainer-shell .tr-tool-card {
  background: #131a26;
  border: 1px solid #1e2a3a;
  border-radius: 10px;
  padding: 18px;
  cursor: pointer;
  transition: all .15s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.trainer-shell .tr-tool-card:hover {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, .04);
}

.trainer-shell .tr-tool-card.active {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, .08);
}

.trainer-shell .tr-tool-card .tool-icon { font-size: 24px; }

.trainer-shell .tr-tool-card .tool-name {
  font-size: 12px;
  font-weight: 600;
  color: #e8edf5;
}

.trainer-shell .tr-tool-card .tool-desc {
  font-size: 10px;
  color: #6b7f96;
  line-height: 1.4;
}

/* Tool panels container */
.trainer-shell .tr-tool-panels { flex: 1; }

.trainer-shell .tr-tool-panel {
  display: none;
  background: #131a26;
  border: 1px solid #1e2a3a;
  border-radius: 12px;
  padding: 24px;
}

.trainer-shell .tr-tool-panel.show { display: block; }

.trainer-shell .tr-tool-panel h3 {
  font-size: 16px;
  font-weight: 700;
  color: #e8edf5;
  margin-bottom: 6px;
}

.trainer-shell .tr-tool-panel .tp-desc {
  font-size: 12px;
  color: #6b7f96;
  margin-bottom: 20px;
}

/* Tool form rows */
.trainer-shell .tr-tool-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.trainer-shell .tr-tool-row label {
  font-size: 12px;
  font-weight: 600;
  color: #a8b8cc;
  width: 120px;
  flex-shrink: 0;
}

.trainer-shell .tr-tool-input {
  flex: 1;
  height: 36px;
  padding: 0 12px;
  background: #0c1019;
  border: 1px solid #1e2a3a;
  border-radius: 6px;
  color: #e8edf5;
  font-size: 13px;
  outline: none;
  font-family: 'JetBrains Mono', monospace;
  transition: border-color .15s;
}

.trainer-shell .tr-tool-input:focus { border-color: #3b82f6; }

.trainer-shell .tr-tool-select {
  flex: 1;
  height: 36px;
  padding: 0 12px;
  background: #0c1019;
  border: 1px solid #1e2a3a;
  border-radius: 6px;
  color: #e8edf5;
  font-size: 13px;
  outline: none;
  appearance: none;
  cursor: pointer;
}

/* Tool result display */
.trainer-shell .tr-tool-result {
  margin-top: 16px;
  padding: 16px;
  background: #0c1019;
  border: 1px solid #1e2a3a;
  border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #e8edf5;
}

.trainer-shell .tr-tool-result .result-label {
  font-size: 10px;
  font-weight: 700;
  color: #6b7f96;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 8px;
}

.trainer-shell .tr-tool-result .result-big {
  font-size: 28px;
  font-weight: 700;
  color: #22c55e;
}

/* Equity calculator */
.trainer-shell .tr-equity-vs {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.trainer-shell .tr-equity-vs .vs-label {
  font-size: 14px;
  font-weight: 700;
  color: #6b7f96;
}

.trainer-shell .tr-equity-bar {
  height: 12px;
  background: #1e2a3a;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  margin-top: 8px;
}

.trainer-shell .tr-equity-bar .eq-hero {
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  transition: width .4s ease;
}

.trainer-shell .tr-equity-bar .eq-villain {
  background: linear-gradient(90deg, #ef4444, #dc2626);
  transition: width .4s ease;
}

.trainer-shell .tr-equity-bar .eq-tie {
  background: #6b7f96;
  transition: width .4s ease;
}

/* Combos panel */
.trainer-shell .tr-combos-display {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 12px;
}

.trainer-shell .tr-combo-cell {
  padding: 6px;
  background: #0c1019;
  border: 1px solid #1e2a3a;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  color: #a8b8cc;
}

/* Pot odds calculator */
.trainer-shell .tr-pot-odds-result {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.trainer-shell .tr-pot-odds-box {
  padding: 14px;
  background: #0c1019;
  border: 1px solid #1e2a3a;
  border-radius: 8px;
  text-align: center;
}

.trainer-shell .tr-pot-odds-box .po-label {
  font-size: 10px;
  font-weight: 700;
  color: #6b7f96;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.trainer-shell .tr-pot-odds-box .po-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  font-weight: 700;
  color: #e8edf5;
}

/* Range builder (13x13 grid) */
.trainer-shell .tr-range-grid {
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  gap: 2px;
  margin-top: 12px;
}

.trainer-shell .tr-range-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 600;
  background: #0c1019;
  border: 1px solid #1e2a3a;
  border-radius: 2px;
  cursor: pointer;
  transition: all .1s ease;
  color: #6b7f96;
  user-select: none;
}

.trainer-shell .tr-range-cell:hover { border-color: #3b82f6; }

.trainer-shell .tr-range-cell.in-range {
  background: rgba(59, 130, 246, .25);
  color: #e8edf5;
  border-color: rgba(59, 130, 246, .4);
}

.trainer-shell .tr-range-cell.in-range-green {
  background: rgba(34, 197, 94, .2);
  color: #e8edf5;
  border-color: rgba(34, 197, 94, .35);
}

.trainer-shell .tr-range-cell.in-range-red {
  background: rgba(239, 68, 68, .2);
  color: #e8edf5;
  border-color: rgba(239, 68, 68, .35);
}

.trainer-shell .tr-range-cell.in-range-yellow {
  background: rgba(245, 158, 11, .2);
  color: #e8edf5;
  border-color: rgba(245, 158, 11, .35);
}

/* SPR calculator */
.trainer-shell .tr-spr-gauge {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
}

.trainer-shell .tr-spr-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 32px;
  font-weight: 700;
  color: #3b82f6;
}

.trainer-shell .tr-spr-label {
  font-size: 13px;
  color: #6b7f96;
  line-height: 1.5;
}

/* ICM panel */
.trainer-shell .tr-icm-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.trainer-shell .tr-icm-table th {
  font-size: 10px;
  font-weight: 700;
  color: #6b7f96;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid #1e2a3a;
}

.trainer-shell .tr-icm-table td {
  font-size: 12px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(30, 42, 58, .5);
  color: #a8b8cc;
}

.trainer-shell .tr-icm-table td:first-child { font-weight: 600; color: #e8edf5; }

/* GTO Scenarios */
.trainer-shell .tr-scenario-card {
  background: #0c1019;
  border: 1px solid #1e2a3a;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
}

.trainer-shell .tr-scenario-card h4 {
  font-size: 13px;
  font-weight: 700;
  color: #e8edf5;
  margin-bottom: 4px;
}

.trainer-shell .tr-scenario-card .sc-meta {
  font-size: 11px;
  color: #6b7f96;
  margin-bottom: 10px;
}

.trainer-shell .tr-scenario-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.trainer-shell .tr-scenario-btn {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #1e2a3a;
  background: #131a26;
  color: #a8b8cc;
  cursor: pointer;
  transition: all .15s;
}

.trainer-shell .tr-scenario-btn:hover {
  border-color: #3b82f6;
  color: #e8edf5;
}

.trainer-shell .tr-scenario-btn.correct {
  border-color: #22c55e;
  background: rgba(34, 197, 94, .1);
  color: #22c55e;
}

.trainer-shell .tr-scenario-btn.wrong {
  border-color: #ef4444;
  background: rgba(239, 68, 68, .08);
  color: #ef4444;
}

/* ═══════════════════════════════════════════════════════════════════════════
   9. LESSON VIEW
   ═══════════════════════════════════════════════════════════════════════════ */

/* Lesson header */
.trainer-shell .tr-lesson-header {
  padding: 24px 36px 0;
  flex-shrink: 0;
}

.trainer-shell .tr-lesson-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: #e8edf5;
  margin-bottom: 4px;
}

.trainer-shell .tr-lesson-header .lh-meta {
  font-size: 12px;
  color: #6b7f96;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.trainer-shell .tr-lesson-header .lh-meta .lh-mod {
  color: #3b82f6;
  font-weight: 600;
}

/* Progress strip (dots) */
.trainer-shell .tr-progress-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 36px 16px;
  flex-shrink: 0;
}

.trainer-shell .tr-prog-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1e2a3a;
  transition: all .2s ease;
  cursor: pointer;
}

.trainer-shell .tr-prog-dot.done { background: #22c55e; }
.trainer-shell .tr-prog-dot.current { background: #3b82f6; transform: scale(1.3); }

.trainer-shell .tr-prog-line {
  flex: 1;
  height: 2px;
  background: #1e2a3a;
  max-width: 20px;
}

/* Lesson content */
.trainer-shell .tr-lesson-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 0 36px 40px;
}

.trainer-shell .tr-lesson-card {
  background: #131a26;
  border: 1px solid #1e2a3a;
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 20px;
}

.trainer-shell .tr-lesson-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #e8edf5;
  margin-bottom: 12px;
}

/* Lesson body text */
.trainer-shell .tr-lesson-body {
  font-size: 14px;
  color: #a8b8cc;
  line-height: 1.75;
}

.trainer-shell .tr-lesson-body p {
  margin-bottom: 14px;
}

.trainer-shell .tr-lesson-body strong { color: #e8edf5; font-weight: 600; }

.trainer-shell .tr-lesson-body em { color: #f59e0b; font-style: italic; }

.trainer-shell .tr-lesson-body code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  background: #0c1019;
  padding: 2px 6px;
  border-radius: 4px;
  color: #3b82f6;
}

.trainer-shell .tr-lesson-body ul,
.trainer-shell .tr-lesson-body ol {
  margin: 10px 0 14px 20px;
}

.trainer-shell .tr-lesson-body li {
  margin-bottom: 6px;
}

.trainer-shell .tr-lesson-body blockquote {
  border-left: 3px solid #3b82f6;
  padding: 10px 16px;
  margin: 14px 0;
  background: rgba(59, 130, 246, .04);
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  color: #a8b8cc;
}

/* Concept callout */
.trainer-shell .tr-concept {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(139, 92, 246, .06);
  border: 1px solid rgba(139, 92, 246, .2);
  border-radius: 10px;
  margin: 16px 0;
}

.trainer-shell .tr-concept .concept-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.trainer-shell .tr-concept .concept-text {
  font-size: 13px;
  color: #a8b8cc;
  line-height: 1.6;
}

.trainer-shell .tr-concept .concept-text strong { color: #c4b5fd; }

/* Key takeaway */
.trainer-shell .tr-key-takeaway {
  padding: 14px 16px;
  background: rgba(34, 197, 94, .06);
  border: 1px solid rgba(34, 197, 94, .2);
  border-radius: 10px;
  margin: 16px 0;
  font-size: 13px;
  color: #a8b8cc;
  line-height: 1.6;
}

.trainer-shell .tr-key-takeaway strong { color: #22c55e; }

/* Warning callout */
.trainer-shell .tr-warning {
  padding: 14px 16px;
  background: rgba(239, 68, 68, .06);
  border: 1px solid rgba(239, 68, 68, .2);
  border-radius: 10px;
  margin: 16px 0;
  font-size: 13px;
  color: #a8b8cc;
  line-height: 1.6;
}

.trainer-shell .tr-warning strong { color: #ef4444; }

/* Quiz section */
.trainer-shell .tr-quiz-section {
  margin-top: 24px;
}

.trainer-shell .tr-quiz-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #f59e0b;
  margin-bottom: 12px;
}

.trainer-shell .tr-quiz-question {
  font-size: 15px;
  font-weight: 600;
  color: #e8edf5;
  margin-bottom: 16px;
  line-height: 1.5;
}

.trainer-shell .tr-quiz-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trainer-shell .tr-quiz-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #0c1019;
  border: 1px solid #1e2a3a;
  border-radius: 8px;
  cursor: pointer;
  transition: all .15s ease;
  font-size: 13px;
  color: #a8b8cc;
}

.trainer-shell .tr-quiz-opt:hover {
  border-color: #243245;
  background: #101620;
  color: #e8edf5;
}

.trainer-shell .tr-quiz-opt .opt-key {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #1e2a3a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: #6b7f96;
  flex-shrink: 0;
}

.trainer-shell .tr-quiz-opt .opt-text { flex: 1; }

/* Keyboard hint badge */
.trainer-shell .tr-quiz-opt .key-hint {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  color: #3d5068;
  background: #1e2a3a;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: .06em;
  flex-shrink: 0;
}

.trainer-shell .tr-quiz-opt.correct {
  border-color: #22c55e;
  background: rgba(34, 197, 94, .08);
  color: #e8edf5;
}

.trainer-shell .tr-quiz-opt.correct .opt-key {
  background: rgba(34, 197, 94, .2);
  color: #22c55e;
}

.trainer-shell .tr-quiz-opt.wrong {
  border-color: #ef4444;
  background: rgba(239, 68, 68, .06);
  color: #ef4444;
}

.trainer-shell .tr-quiz-opt.wrong .opt-key {
  background: rgba(239, 68, 68, .15);
  color: #ef4444;
}

.trainer-shell .tr-quiz-opt.disabled {
  pointer-events: none;
  opacity: .5;
}

/* Quiz explanation */
.trainer-shell .tr-quiz-explain {
  margin-top: 12px;
  padding: 14px 16px;
  background: rgba(59, 130, 246, .06);
  border: 1px solid rgba(59, 130, 246, .15);
  border-radius: 8px;
  font-size: 13px;
  color: #a8b8cc;
  line-height: 1.6;
  display: none;
}

.trainer-shell .tr-quiz-explain.show { display: block; }

/* Lesson nav buttons */
.trainer-shell .tr-lesson-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0 0;
  margin-top: 16px;
  border-top: 1px solid #1e2a3a;
}

/* ═══════════════════════════════════════════════════════════════════════════
   10. INTERACTIVE EXERCISE PANEL (end of lessons)
   ═══════════════════════════════════════════════════════════════════════════ */
.trainer-shell .tr-exercise {
  border-top: 2px solid #3b82f6;
  padding: 24px 28px;
  background: rgba(59, 130, 246, .04);
  border-radius: 0 0 12px 12px;
  margin-top: 0;
}

.trainer-shell .tr-exercise-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  color: #3b82f6;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.trainer-shell .tr-exercise-title {
  font-size: 16px;
  font-weight: 700;
  color: #e8edf5;
  margin-bottom: 8px;
}

.trainer-shell .tr-exercise-desc {
  font-size: 13px;
  color: #a8b8cc;
  line-height: 1.6;
  margin-bottom: 16px;
}

.trainer-shell .tr-exercise-inputs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.trainer-shell .tr-exercise-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trainer-shell .tr-exercise-row label {
  font-size: 12px;
  font-weight: 600;
  color: #a8b8cc;
  width: 100px;
  flex-shrink: 0;
}

.trainer-shell .tr-exercise-input {
  flex: 1;
  height: 36px;
  padding: 0 12px;
  background: #0c1019;
  border: 1px solid #1e2a3a;
  border-radius: 6px;
  color: #e8edf5;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  outline: none;
  transition: border-color .15s;
}

.trainer-shell .tr-exercise-input:focus { border-color: #3b82f6; }

.trainer-shell .tr-exercise-result {
  padding: 12px 16px;
  background: #0c1019;
  border: 1px solid #1e2a3a;
  border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #e8edf5;
  margin-top: 10px;
}

.trainer-shell .tr-exercise-feedback {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  display: none;
}

.trainer-shell .tr-exercise-feedback.show { display: block; }

.trainer-shell .tr-exercise-feedback.correct {
  background: rgba(34, 197, 94, .08);
  border: 1px solid rgba(34, 197, 94, .2);
  color: #22c55e;
}

.trainer-shell .tr-exercise-feedback.wrong {
  background: rgba(239, 68, 68, .06);
  border: 1px solid rgba(239, 68, 68, .2);
  color: #ef4444;
}

/* ═══════════════════════════════════════════════════════════════════════════
   11. DRILLS VIEW
   ═══════════════════════════════════════════════════════════════════════════ */

/* Drill select grid */
.trainer-shell .tr-drill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.trainer-shell .tr-drill-card {
  background: #131a26;
  border: 1px solid #1e2a3a;
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all .2s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trainer-shell .tr-drill-card:hover {
  border-color: #243245;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
}

.trainer-shell .tr-drill-card .drill-icon { font-size: 24px; }

.trainer-shell .tr-drill-card h4 {
  font-size: 14px;
  font-weight: 700;
  color: #e8edf5;
}

.trainer-shell .tr-drill-card .drill-desc {
  font-size: 12px;
  color: #6b7f96;
  line-height: 1.5;
}

.trainer-shell .tr-drill-card .drill-meta {
  font-size: 11px;
  color: #3d5068;
  display: flex;
  gap: 12px;
}

/* Drill arena */
.trainer-shell .tr-drill-arena {
  display: none;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.trainer-shell .tr-drill-arena.show {
  display: flex;
}

/* Drill HUD bar */
.trainer-shell .tr-drill-hud {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 20px;
  background: #0c1019;
  border-bottom: 1px solid #1e2a3a;
  flex-shrink: 0;
}

.trainer-shell .tr-drill-hud .dh-title {
  font-size: 14px;
  font-weight: 700;
  color: #e8edf5;
}

.trainer-shell .tr-drill-hud .dh-stat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #a8b8cc;
}

.trainer-shell .tr-drill-hud .dh-stat b { color: #e8edf5; }

.trainer-shell .tr-drill-hud .dh-correct { color: #22c55e; }
.trainer-shell .tr-drill-hud .dh-wrong { color: #ef4444; }

.trainer-shell .tr-drill-hud .dh-timer {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  color: #f59e0b;
}

/* Timer bar */
.trainer-shell .tr-timer-bar {
  height: 3px;
  background: #1e2a3a;
  flex-shrink: 0;
  overflow: hidden;
}

.trainer-shell .tr-timer-fill {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #f59e0b, #ef4444);
  transition: width .1s linear;
}

/* Drill split (question + range panel) */
.trainer-shell .drill-split {
  display: flex;
  gap: 16px;
  flex: 1;
  overflow: hidden;
  padding: 16px 20px;
}

/* Drill question area */
.trainer-shell .drill-question-area {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.trainer-shell .tr-drill-qcard {
  background: #131a26;
  border: 1px solid #1e2a3a;
  border-radius: 14px;
  padding: 28px;
  max-width: 560px;
  width: 100%;
  text-align: center;
}

.trainer-shell .tr-drill-qcard .dq-scenario {
  font-size: 12px;
  color: #6b7f96;
  margin-bottom: 12px;
  line-height: 1.5;
}

.trainer-shell .tr-drill-qcard .dq-question {
  font-size: 16px;
  font-weight: 700;
  color: #e8edf5;
  margin-bottom: 20px;
  line-height: 1.5;
}

.trainer-shell .tr-drill-qcard .dq-hand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.trainer-shell .tr-drill-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.trainer-shell .tr-drill-opt {
  padding: 12px 16px;
  background: #0c1019;
  border: 1px solid #1e2a3a;
  border-radius: 8px;
  cursor: pointer;
  transition: all .15s;
  font-size: 13px;
  font-weight: 600;
  color: #a8b8cc;
  text-align: center;
}

.trainer-shell .tr-drill-opt:hover {
  border-color: #243245;
  background: #101620;
  color: #e8edf5;
}

.trainer-shell .tr-drill-opt.correct {
  border-color: #22c55e;
  background: rgba(34, 197, 94, .1);
  color: #22c55e;
  animation: pulseCorrect .4s ease;
}

.trainer-shell .tr-drill-opt.wrong {
  border-color: #ef4444;
  background: rgba(239, 68, 68, .08);
  color: #ef4444;
  animation: shakeWrong .4s ease;
}

.trainer-shell .tr-drill-opt.disabled { pointer-events: none; opacity: .5; }

/* Drill answer explanation */
.trainer-shell .tr-drill-explain {
  margin-top: 16px;
  padding: 14px 16px;
  background: rgba(59, 130, 246, .06);
  border: 1px solid rgba(59, 130, 246, .15);
  border-radius: 8px;
  font-size: 13px;
  color: #a8b8cc;
  text-align: left;
  line-height: 1.6;
  display: none;
}

.trainer-shell .tr-drill-explain.show { display: block; }

/* Drill results panel */
.trainer-shell .tr-drill-results {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  flex: 1;
}

.trainer-shell .tr-drill-results.show {
  display: flex;
}

.trainer-shell .tr-drill-results .dr-score {
  font-family: 'JetBrains Mono', monospace;
  font-size: 56px;
  font-weight: 700;
  color: #22c55e;
  margin-bottom: 8px;
}

.trainer-shell .tr-drill-results .dr-grade {
  font-size: 18px;
  font-weight: 700;
  color: #e8edf5;
  margin-bottom: 4px;
}

.trainer-shell .tr-drill-results .dr-sub {
  font-size: 13px;
  color: #6b7f96;
  margin-bottom: 24px;
}

.trainer-shell .tr-drill-results .dr-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.trainer-shell .tr-drill-results .dr-stat-box {
  padding: 14px;
  background: #131a26;
  border: 1px solid #1e2a3a;
  border-radius: 10px;
  text-align: center;
}

.trainer-shell .tr-drill-results .dr-stat-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  font-weight: 700;
  color: #e8edf5;
}

.trainer-shell .tr-drill-results .dr-stat-lbl {
  font-size: 10px;
  color: #6b7f96;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: 2px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   12. DRILL RANGE PANEL
   ═══════════════════════════════════════════════════════════════════════════ */
.trainer-shell .drill-range-panel {
  width: 320px;
  flex-shrink: 0;
  background: #131a26;
  border: 1px solid #1e2a3a;
  border-radius: 10px;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trainer-shell .drp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.trainer-shell .drp-title {
  font-size: 13px;
  font-weight: 700;
  color: #e8edf5;
}

.trainer-shell .drp-arch-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(59, 130, 246, .12);
  color: #3b82f6;
  letter-spacing: .04em;
}

.trainer-shell .drp-selector {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.trainer-shell .drp-sel-btn {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid #1e2a3a;
  background: #0c1019;
  color: #6b7f96;
  cursor: pointer;
  transition: all .15s;
}

.trainer-shell .drp-sel-btn:hover { border-color: #243245; color: #a8b8cc; }

.trainer-shell .drp-sel-btn.active {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, .1);
  color: #3b82f6;
}

/* Range grid (13x13 for drill panel) */
.trainer-shell .drp-grid {
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  gap: 1px;
}

.trainer-shell .drp-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  font-weight: 600;
  background: #0c1019;
  border-radius: 2px;
  color: #3d5068;
  cursor: default;
  transition: background .15s;
}

.trainer-shell .drp-cell.raise {
  background: rgba(239, 68, 68, .3);
  color: #fca5a5;
}

.trainer-shell .drp-cell.call {
  background: rgba(34, 197, 94, .25);
  color: #86efac;
}

.trainer-shell .drp-cell.fold {
  background: rgba(107, 127, 150, .12);
  color: #6b7f96;
}

.trainer-shell .drp-cell.mixed {
  background: linear-gradient(135deg, rgba(239, 68, 68, .3) 50%, rgba(34, 197, 94, .25) 50%);
  color: #e8edf5;
}

/* Legend */
.trainer-shell .drp-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid #1e2a3a;
}

.trainer-shell .drp-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: #6b7f96;
}

.trainer-shell .drp-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.trainer-shell .drp-legend-dot.raise-dot { background: rgba(239, 68, 68, .5); }
.trainer-shell .drp-legend-dot.call-dot  { background: rgba(34, 197, 94, .4); }
.trainer-shell .drp-legend-dot.fold-dot  { background: rgba(107, 127, 150, .25); }

/* ═══════════════════════════════════════════════════════════════════════════
   13. LIVE PLAY ARENA
   ═══════════════════════════════════════════════════════════════════════════ */
.trainer-shell .tr-live-arena {
  display: none;
  height: 100%;
  overflow: hidden;
}

.trainer-shell .tr-live-arena.show {
  display: grid;
  grid-template-columns: 260px 1fr 300px;
  grid-template-rows: 1fr;
  gap: 0;
}

/* Live sidebar */
.trainer-shell .lp-sidebar {
  background: #0c1019;
  border-right: 1px solid #1e2a3a;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.trainer-shell .lp-sidebar-header {
  padding: 14px 16px;
  border-bottom: 1px solid #1e2a3a;
  flex-shrink: 0;
}

.trainer-shell .lp-sidebar-header h3 {
  font-size: 13px;
  font-weight: 700;
  color: #e8edf5;
  margin-bottom: 2px;
}

.trainer-shell .lp-sidebar-header .lp-sub {
  font-size: 11px;
  color: #6b7f96;
}

.trainer-shell .lp-hand-info {
  padding: 12px 16px;
  border-bottom: 1px solid #1e2a3a;
  flex-shrink: 0;
}

.trainer-shell .lp-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: 12px;
}

.trainer-shell .lp-info-row .lp-key { color: #6b7f96; }
.trainer-shell .lp-info-row .lp-val { color: #e8edf5; font-weight: 600; }

/* GTO feedback section */
.trainer-shell .lp-gto-section {
  padding: 14px 16px;
  border-bottom: 1px solid #1e2a3a;
  flex-shrink: 0;
}

.trainer-shell .lp-gto-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #6b7f96;
  margin-bottom: 8px;
}

.trainer-shell .lp-gto-score {
  font-family: 'JetBrains Mono', monospace;
  font-size: 28px;
  font-weight: 700;
  color: #22c55e;
  margin-bottom: 4px;
}

.trainer-shell .lp-gto-bar {
  height: 6px;
  background: #1e2a3a;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.trainer-shell .lp-gto-fill {
  height: 100%;
  border-radius: 3px;
  transition: width .4s ease;
}

.trainer-shell .lp-gto-fill.good { background: linear-gradient(90deg, #22c55e, #16a34a); }
.trainer-shell .lp-gto-fill.ok   { background: linear-gradient(90deg, #f59e0b, #d97706); }
.trainer-shell .lp-gto-fill.bad  { background: linear-gradient(90deg, #ef4444, #dc2626); }

.trainer-shell .lp-gto-text {
  font-size: 12px;
  color: #a8b8cc;
  line-height: 1.5;
}

/* Equity bar in sidebar */
.trainer-shell .lp-equity-section {
  padding: 14px 16px;
  border-bottom: 1px solid #1e2a3a;
  flex-shrink: 0;
}

.trainer-shell .lp-equity-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 12px;
}

.trainer-shell .lp-equity-row .lp-eq-label { color: #6b7f96; }
.trainer-shell .lp-equity-row .lp-eq-val { font-family: 'JetBrains Mono', monospace; font-weight: 700; color: #e8edf5; }

.trainer-shell .lp-equity-bar {
  height: 8px;
  background: #1e2a3a;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
}

.trainer-shell .lp-eq-hero-fill { background: #3b82f6; transition: width .4s; }
.trainer-shell .lp-eq-villain-fill { background: #ef4444; transition: width .4s; }

/* Hand history */
.trainer-shell .lp-history {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
}

.trainer-shell .lp-history-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #3d5068;
  margin-bottom: 8px;
}

.trainer-shell .lp-history-entry {
  padding: 8px 10px;
  margin-bottom: 4px;
  border-radius: 6px;
  font-size: 11px;
  color: #a8b8cc;
  background: #101620;
  border: 1px solid transparent;
  transition: border-color .15s;
}

.trainer-shell .lp-history-entry:hover { border-color: #1e2a3a; }

.trainer-shell .lp-history-entry .hh-street {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  color: #6b7f96;
  text-transform: uppercase;
}

.trainer-shell .lp-history-entry .hh-action { color: #a8b8cc; }
.trainer-shell .lp-history-entry .hh-amount { color: #f59e0b; font-weight: 600; }

/* Live center column */
.trainer-shell .lp-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  position: relative;
}

/* Poker table (green felt) */
.trainer-shell .lp-table-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
}

.trainer-shell .lp-table {
  position: relative;
  width: 620px;
  height: 380px;
  background: radial-gradient(ellipse at center, #1a5c2e 0%, #14472a 60%, #0f3520 100%);
  border-radius: 180px;
  border: 8px solid #1a3a28;
  box-shadow:
    0 0 0 3px #0d2418,
    0 0 40px rgba(0, 0, 0, .5),
    inset 0 0 60px rgba(0, 0, 0, .2);
  flex-shrink: 0;
}

/* Table felt pattern overlay */
.trainer-shell .lp-table::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 172px;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, .03) 2px,
    rgba(0, 0, 0, .03) 4px
  );
  pointer-events: none;
}

/* Seat positions (absolute on table) */
.trainer-shell .lp-seat {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transform: translate(-50%, -50%);
  z-index: 5;
}

.trainer-shell .lp-seat-name {
  font-size: 10px;
  font-weight: 600;
  color: #a8b8cc;
  background: rgba(0, 0, 0, .5);
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.trainer-shell .lp-seat-stack {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  color: #f59e0b;
  background: rgba(0, 0, 0, .5);
  padding: 1px 6px;
  border-radius: 3px;
}

.trainer-shell .lp-seat-cards {
  display: flex;
  gap: 3px;
}

.trainer-shell .lp-seat-bet {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  color: #e8edf5;
  position: absolute;
}

.trainer-shell .lp-seat-btn-marker {
  font-size: 9px;
  font-weight: 800;
  color: #080b12;
  background: #f59e0b;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
}

/* Seat positions: 6-max layout */
.trainer-shell .lp-seat-0 { top: 88%; left: 50%; }
.trainer-shell .lp-seat-1 { top: 75%; left: 15%; }
.trainer-shell .lp-seat-2 { top: 20%; left: 15%; }
.trainer-shell .lp-seat-3 { top: 8%;  left: 50%; }
.trainer-shell .lp-seat-4 { top: 20%; left: 85%; }
.trainer-shell .lp-seat-5 { top: 75%; left: 85%; }

/* Community cards on table */
.trainer-shell .lp-community {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 6px;
  z-index: 4;
}

/* Pot display */
.trainer-shell .lp-pot {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: #f59e0b;
  background: rgba(0, 0, 0, .55);
  padding: 4px 14px;
  border-radius: 14px;
  white-space: nowrap;
  z-index: 6;
}

/* Action panel below table */
.trainer-shell .lp-action-panel {
  padding: 12px 24px 16px;
  background: #0c1019;
  border-top: 1px solid #1e2a3a;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  width: 100%;
}

.trainer-shell .lp-action-info {
  font-size: 12px;
  color: #6b7f96;
  text-align: center;
}

.trainer-shell .lp-action-buttons {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.trainer-shell .lp-act-btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  border: 2px solid;
  cursor: pointer;
  transition: all .15s ease;
  font-family: 'Outfit', system-ui, sans-serif;
  min-width: 80px;
  text-align: center;
}

.trainer-shell .lp-fold-btn {
  background: #1e2a3a;
  border-color: #3d5068;
  color: #a8b8cc;
}
.trainer-shell .lp-fold-btn:hover { background: #243245; color: #e8edf5; }

.trainer-shell .lp-call-btn {
  background: rgba(59, 130, 246, .15);
  border-color: #3b82f6;
  color: #3b82f6;
}
.trainer-shell .lp-call-btn:hover { background: rgba(59, 130, 246, .25); }

.trainer-shell .lp-raise-btn {
  background: rgba(34, 197, 94, .15);
  border-color: #22c55e;
  color: #22c55e;
}
.trainer-shell .lp-raise-btn:hover { background: rgba(34, 197, 94, .25); }

.trainer-shell .lp-allin-btn {
  background: rgba(239, 68, 68, .15);
  border-color: #ef4444;
  color: #ef4444;
}
.trainer-shell .lp-allin-btn:hover { background: rgba(239, 68, 68, .25); }

/* Raise slider */
.trainer-shell .lp-raise-row {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.trainer-shell .lp-raise-slider {
  width: 200px;
  accent-color: #22c55e;
}

.trainer-shell .lp-raise-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: #e8edf5;
  min-width: 60px;
  text-align: center;
}

/* Size presets */
.trainer-shell .lp-size-presets {
  display: flex;
  gap: 4px;
  justify-content: center;
}

.trainer-shell .lp-size-btn {
  padding: 4px 10px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  border: 1px solid #1e2a3a;
  background: #101620;
  color: #6b7f96;
  cursor: pointer;
  transition: all .15s;
}

.trainer-shell .lp-size-btn:hover { border-color: #3b82f6; color: #a8b8cc; }
.trainer-shell .lp-size-btn.active { border-color: #22c55e; color: #22c55e; }

/* Reasoning panel (right column) */
.trainer-shell .lp-reasoning {
  background: #0c1019;
  border-left: 1px solid #1e2a3a;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.trainer-shell .lp-reasoning-header {
  padding: 14px 16px;
  border-bottom: 1px solid #1e2a3a;
  flex-shrink: 0;
}

.trainer-shell .lp-reasoning-header h3 {
  font-size: 13px;
  font-weight: 700;
  color: #e8edf5;
}

.trainer-shell .lp-reasoning-tabs {
  display: flex;
  border-bottom: 1px solid #1e2a3a;
  flex-shrink: 0;
}

.trainer-shell .lp-reasoning-tab {
  flex: 1;
  padding: 8px;
  border: none;
  background: none;
  color: #6b7f96;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  text-align: center;
}

.trainer-shell .lp-reasoning-tab:hover { color: #a8b8cc; }

.trainer-shell .lp-reasoning-tab.active {
  color: #e8edf5;
  box-shadow: inset 0 -2px 0 #3b82f6;
}

.trainer-shell .lp-reasoning-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
}

.trainer-shell .lp-reason-entry {
  padding: 10px 12px;
  margin-bottom: 8px;
  background: #101620;
  border: 1px solid #1e2a3a;
  border-radius: 8px;
  font-size: 12px;
  color: #a8b8cc;
  line-height: 1.5;
}

.trainer-shell .lp-reason-entry .re-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  color: #3b82f6;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 4px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   14. PLAYING CARDS
   ═══════════════════════════════════════════════════════════════════════════ */

/* Small inline card (pcard) — used in lesson text and drills */
.trainer-shell .pcard {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 22px;
  padding: 0 5px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  background: #e8edf5;
  color: #080b12;
  vertical-align: middle;
  line-height: 1;
}

.trainer-shell .pcard.heart, .trainer-shell .pcard.diamond { color: #dc2626; }
.trainer-shell .pcard.club, .trainer-shell .pcard.spade { color: #080b12; }

/* Table-sized card (lp-card) */
.trainer-shell .lp-card {
  width: 44px;
  height: 62px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 800;
  background: #f8fafc;
  color: #080b12;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
  flex-shrink: 0;
}

.trainer-shell .lp-card.heart, .trainer-shell .lp-card.diamond { color: #dc2626; }
.trainer-shell .lp-card.club, .trainer-shell .lp-card.spade { color: #1e293b; }

.trainer-shell .lp-card.face-down {
  background: linear-gradient(135deg, #1e40af, #3730a3);
  color: transparent;
  border: 2px solid #2563eb;
}

.trainer-shell .lp-card.face-down::after {
  content: '';
  width: 24px;
  height: 34px;
  border: 2px solid rgba(255, 255, 255, .15);
  border-radius: 3px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   15. BUTTONS
   ═══════════════════════════════════════════════════════════════════════════ */
.trainer-shell .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Outfit', system-ui, sans-serif;
  border: 1px solid #1e2a3a;
  border-radius: 8px;
  background: #101620;
  color: #a8b8cc;
  cursor: pointer;
  transition: all .15s ease;
  white-space: nowrap;
}

.trainer-shell .btn:hover { border-color: #243245; color: #e8edf5; background: #18202f; }
.trainer-shell .btn:active { transform: translateY(1px); }

.trainer-shell .btn-primary {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #fff;
}
.trainer-shell .btn-primary:hover { background: #2563eb; border-color: #2563eb; color: #fff; }

.trainer-shell .btn-green {
  background: #22c55e;
  border-color: #22c55e;
  color: #fff;
}
.trainer-shell .btn-green:hover { background: #16a34a; border-color: #16a34a; color: #fff; }

.trainer-shell .btn-yellow {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #080b12;
}
.trainer-shell .btn-yellow:hover { background: #d97706; border-color: #d97706; color: #080b12; }

.trainer-shell .btn-red {
  background: rgba(239, 68, 68, .15);
  border-color: #ef4444;
  color: #ef4444;
}
.trainer-shell .btn-red:hover { background: rgba(239, 68, 68, .25); }

.trainer-shell .btn-sm {
  height: 30px;
  padding: 0 12px;
  font-size: 12px;
  border-radius: 6px;
}

.trainer-shell .btn-lg {
  height: 42px;
  padding: 0 24px;
  font-size: 14px;
  border-radius: 10px;
}

.trainer-shell .btn-icon {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 8px;
  font-size: 14px;
}

.trainer-shell .btn:disabled,
.trainer-shell .btn.disabled {
  opacity: .4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   16. TAGS & CHIPS
   ═══════════════════════════════════════════════════════════════════════════ */
.trainer-shell .tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
}

.trainer-shell .tag-blue {
  background: rgba(59, 130, 246, .12);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, .25);
}

.trainer-shell .tag-green {
  background: rgba(34, 197, 94, .1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, .2);
}

.trainer-shell .tag-red {
  background: rgba(239, 68, 68, .1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, .2);
}

.trainer-shell .tag-yellow {
  background: rgba(245, 158, 11, .1);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, .2);
}

.trainer-shell .tag-purple {
  background: rgba(139, 92, 246, .1);
  color: #8b5cf6;
  border: 1px solid rgba(139, 92, 246, .2);
}

.trainer-shell .tag-xp {
  background: rgba(245, 158, 11, .1);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, .2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════════════════
   17. STATUS BAR
   ═══════════════════════════════════════════════════════════════════════════ */
.trainer-shell .tr-statusbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  height: 28px;
  background: #080b12;
  border-top: 1px solid #1e2a3a;
  flex-shrink: 0;
  font-size: 10px;
  color: #3d5068;
}

.trainer-shell .tr-statusbar .sb-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.trainer-shell .tr-statusbar .sb-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
}

.trainer-shell .tr-statusbar .sb-spacer { flex: 1; }

.trainer-shell .tr-statusbar .sb-save {
  color: #3d5068;
  transition: color .2s;
}

.trainer-shell .tr-statusbar .sb-save.flash { color: #22c55e; }

/* ═══════════════════════════════════════════════════════════════════════════
   18. TOAST NOTIFICATIONS
   ═══════════════════════════════════════════════════════════════════════════ */
.trainer-shell .tr-toast-container {
  position: fixed;
  top: 60px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.trainer-shell .tr-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: #131a26;
  border: 1px solid #1e2a3a;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
  font-size: 13px;
  color: #e8edf5;
  pointer-events: auto;
  animation: toastIn .3s ease forwards;
  min-width: 240px;
}

.trainer-shell .tr-toast.leaving { animation: toastOut .3s ease forwards; }

.trainer-shell .tr-toast .toast-icon { font-size: 16px; flex-shrink: 0; }
.trainer-shell .tr-toast .toast-msg { flex: 1; }

.trainer-shell .tr-toast.toast-success { border-left: 3px solid #22c55e; }
.trainer-shell .tr-toast.toast-error   { border-left: 3px solid #ef4444; }
.trainer-shell .tr-toast.toast-info    { border-left: 3px solid #3b82f6; }
.trainer-shell .tr-toast.toast-xp      { border-left: 3px solid #f59e0b; }

/* ═══════════════════════════════════════════════════════════════════════════
   19. SAVE FLASH INDICATOR
   ═══════════════════════════════════════════════════════════════════════════ */
.trainer-shell .tr-save-indicator {
  position: fixed;
  bottom: 36px;
  right: 16px;
  font-size: 11px;
  color: #22c55e;
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
  z-index: 200;
}

.trainer-shell .tr-save-indicator.show { opacity: 1; }

/* ═══════════════════════════════════════════════════════════════════════════
   20. ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════════ */

/* Fade up (general entry) */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.trainer-shell .anim-fade-up { animation: fadeUp .35s ease forwards; }

/* XP float */
@keyframes xpFloat {
  0%   { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-30px) scale(1.2); }
}

.trainer-shell .xp-float {
  position: absolute;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  color: #f59e0b;
  pointer-events: none;
  animation: xpFloat .8s ease forwards;
  z-index: 999;
}

/* Toast in/out */
@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(40px); }
}

/* Shake wrong */
@keyframes shakeWrong {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-6px); }
  40%      { transform: translateX(6px); }
  60%      { transform: translateX(-4px); }
  80%      { transform: translateX(4px); }
}

/* Pulse correct */
@keyframes pulseCorrect {
  0%  { box-shadow: 0 0 0 0 rgba(34, 197, 94, .4); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100%{ box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Card deal animation */
@keyframes cardDeal {
  from { opacity: 0; transform: translateY(-20px) rotateY(90deg); }
  to   { opacity: 1; transform: translateY(0) rotateY(0); }
}

.trainer-shell .anim-card-deal { animation: cardDeal .3s ease forwards; }

/* Spin loader */
@keyframes trSpin {
  to { transform: rotate(360deg); }
}

.trainer-shell .tr-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #1e2a3a;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: trSpin .6s linear infinite;
}

/* ═══════════════════════════════════════════════════════════════════════════
   21. UTILITY CLASSES
   ═══════════════════════════════════════════════════════════════════════════ */
.trainer-shell .text-blue   { color: #3b82f6; }
.trainer-shell .text-green  { color: #22c55e; }
.trainer-shell .text-red    { color: #ef4444; }
.trainer-shell .text-yellow { color: #f59e0b; }
.trainer-shell .text-purple { color: #8b5cf6; }
.trainer-shell .text-muted  { color: #6b7f96; }
.trainer-shell .text-dim    { color: #3d5068; }

.trainer-shell .font-mono { font-family: 'JetBrains Mono', monospace; }
.trainer-shell .font-bold { font-weight: 700; }

.trainer-shell .flex { display: flex; }
.trainer-shell .flex-col { flex-direction: column; }
.trainer-shell .items-center { align-items: center; }
.trainer-shell .justify-center { justify-content: center; }
.trainer-shell .justify-between { justify-content: space-between; }
.trainer-shell .gap-4  { gap: 4px; }
.trainer-shell .gap-8  { gap: 8px; }
.trainer-shell .gap-12 { gap: 12px; }
.trainer-shell .gap-16 { gap: 16px; }

.trainer-shell .mt-8  { margin-top: 8px; }
.trainer-shell .mt-16 { margin-top: 16px; }
.trainer-shell .mt-24 { margin-top: 24px; }
.trainer-shell .mb-8  { margin-bottom: 8px; }
.trainer-shell .mb-16 { margin-bottom: 16px; }

.trainer-shell .hidden { display: none !important; }

/* ═══════════════════════════════════════════════════════════════════════════
   22. SECTION HEADERS (reusable)
   ═══════════════════════════════════════════════════════════════════════════ */
.trainer-shell .tr-section-title {
  font-size: 16px;
  font-weight: 700;
  color: #e8edf5;
  margin-bottom: 4px;
}

.trainer-shell .tr-section-sub {
  font-size: 12px;
  color: #6b7f96;
  margin-bottom: 20px;
}

.trainer-shell .tr-divider {
  height: 1px;
  background: #1e2a3a;
  margin: 20px 0;
}
