/* --- THEME 1: MIDNIGHT (DEFAULT) --- */
body[data-theme="midnight"], :root {
  --bg-primary: #07090E;
  --bg-card: #0E131B;
  --bg-card-hover: #1B2230;
  --bg-card-header: #0B0F16;
  --border-color: #2A3543;
  --text-main: #FFF;
  --text-muted: #94a3b8;
  --accent-gold: #00B4D8;
  --accent-green: #34d399;
  --accent-red: #f87171;
  --accent-blue: #2563eb;
  --pos-qb: #ef4444;
  --pos-rb: #10b981;
  --pos-wr: #3b82f6;
  --pos-te: #f59e0b;
  --pos-k: #8b5cf6;
  --pos-def: #64748b;
  --shadow-sm: 0 2px 6px rgb(0 0 0 / 40%);
  --shadow-md: 0 4px 16px rgb(37 99 235 / 20%);
  --shadow-lg: 0 18px 40px -24px rgb(0 0 0 / 85%);
  --grad-brand: linear-gradient(135deg, #00B4D8 0%, #2563eb 100%);
  --grad-btn: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  --grad-header: linear-gradient(180deg, #0E131B 0%, #07090E 100%);
  --grad-team-header: linear-gradient(180deg, #12171F 0%, #0E131B 100%);
  --grad-budget: linear-gradient(90deg, #34d399, #00B4D8, #2563eb);
  --grad-filled: linear-gradient(135deg, rgb(18 23 31 / 95%) 0%, rgb(11 15 22 / 95%) 100%);
  --filled-border: #2A3543;
  --modal-bg: #0E131B;
  --btn-primary-text: #fff;
  --input-bg: rgb(22 28 38 / 80%);
}

/* --- THEME 2: CYBER NEON --- */
body[data-theme="cyber"] {
  --bg-primary: #090714;
  --bg-card: #130f26;
  --bg-card-hover: #1e173b;
  --bg-card-header: #0d0a1d;
  --border-color: #2d2359;
  --text-main: #f8fafc;
  --text-muted: #a78bfa;
  --accent-gold: #38bdf8;
  --accent-green: #34d399;
  --accent-red: #f43f5e;
  --accent-blue: #818cf8;
  --grad-brand: linear-gradient(135deg, #c084fc 0%, #f472b6 50%, #38bdf8 100%);
  --grad-btn: linear-gradient(135deg, #9333ea 0%, #c026d3 100%);
  --grad-header: linear-gradient(180deg, #120e29 0%, #090714 100%);
  --grad-team-header: linear-gradient(180deg, #1c163b 0%, #120f29 100%);
  --grad-budget: linear-gradient(90deg, #34d399, #38bdf8, #c084fc);
  --grad-filled: linear-gradient(135deg, rgb(30 20 55 / 95%) 0%, rgb(15 10 30 / 95%) 100%);
  --filled-border: #4c3b88;
  --modal-bg: #120e27;
  --btn-primary-text: #fff;
  --input-bg: rgb(0 0 0 / 40%);
}

/* --- THEME 3: CRIMSON --- */
body[data-theme="crimson"] {
  --bg-primary: #0f1115;
  --bg-card: #171a21;
  --bg-card-hover: #222630;
  --bg-card-header: #12151b;
  --border-color: #2d3342;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent-gold: #ef4444;
  --accent-green: #10b981;
  --accent-red: #f87171;
  --accent-blue: #38bdf8;
  --grad-brand: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #f87171 100%);
  --grad-btn: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  --grad-header: linear-gradient(180deg, #171a21 0%, #0f1115 100%);
  --grad-team-header: linear-gradient(180deg, #20242e 0%, #171a21 100%);
  --grad-budget: linear-gradient(90deg, #10b981, #ef4444, #f87171);
  --grad-filled: linear-gradient(135deg, rgb(34 38 48 / 95%) 0%, rgb(20 24 32 / 95%) 100%);
  --filled-border: #3f475a;
  --modal-bg: #151820;
  --btn-primary-text: #fff;
  --input-bg: rgb(0 0 0 / 30%);
}

/* --- THEME 4: CHAMPIONSHIP (EMERALD & GOLD) --- */
body[data-theme="championship"] {
  --bg-primary: #061912;
  --bg-card: #0d281e;
  --bg-card-hover: #14382b;
  --bg-card-header: #091f17;
  --border-color: #1e4d3b;
  --text-main: #f0fdf4;
  --text-muted: #86efac;
  --accent-gold: #fbbf24;
  --accent-green: #34d399;
  --accent-red: #f87171;
  --accent-blue: #38bdf8;
  --grad-brand: linear-gradient(135deg, #fbbf24 0%, #eab308 50%, #f59e0b 100%);
  --grad-btn: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
  --grad-header: linear-gradient(180deg, #0d281e 0%, #061912 100%);
  --grad-team-header: linear-gradient(180deg, #113326 0%, #0d281e 100%);
  --grad-budget: linear-gradient(90deg, #10b981, #fbbf24, #f59e0b);
  --grad-filled: linear-gradient(135deg, rgb(13 40 30 / 95%) 0%, rgb(6 25 18 / 95%) 100%);
  --filled-border: #1e4d3b;
  --modal-bg: #0d281e;
  --btn-primary-text: #000;
  --input-bg: rgb(0 0 0 / 30%);
}

/* --- THEME 5: SUNSET AMBER --- */
body[data-theme="sunset"] {
  --bg-primary: #140d0b;
  --bg-card: #1f1411;
  --bg-card-hover: #2b1b17;
  --bg-card-header: #170e0c;
  --border-color: #42261e;
  --text-main: #fff7ed;
  --text-muted: #fdba74;
  --accent-gold: #f97316;
  --accent-green: #34d399;
  --accent-red: #f87171;
  --accent-blue: #38bdf8;
  --grad-brand: linear-gradient(135deg, #f97316 0%, #ea580c 50%, #fb923c 100%);
  --grad-btn: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  --grad-header: linear-gradient(180deg, #1f1411 0%, #140d0b 100%);
  --grad-team-header: linear-gradient(180deg, #261915 0%, #1f1411 100%);
  --grad-budget: linear-gradient(90deg, #10b981, #f97316, #fb923c);
  --grad-filled: linear-gradient(135deg, rgb(31 20 17 / 95%) 0%, rgb(20 13 11 / 95%) 100%);
  --filled-border: #42261e;
  --modal-bg: #1f1411;
  --btn-primary-text: #fff;
  --input-bg: rgb(0 0 0 / 30%);
}

/* --- THEME 6: MONOCHROME --- */
body[data-theme="monochrome"] {
  --bg-primary: #0a0a0a;
  --bg-card: #171717;
  --bg-card-hover: #262626;
  --bg-card-header: #121212;
  --border-color: #333;
  --text-main: #fff;
  --text-muted: #a3a3a3;
  --accent-gold: #fff;
  --accent-green: #d4d4d4;
  --accent-red: #737373;
  --accent-blue: #a3a3a3;
  --grad-brand: linear-gradient(135deg, #fff 0%, #d4d4d4 50%, #a3a3a3 100%);
  --grad-btn: linear-gradient(135deg, #404040 0%, #262626 100%);
  --grad-header: linear-gradient(180deg, #171717 0%, #0a0a0a 100%);
  --grad-team-header: linear-gradient(180deg, #262626 0%, #171717 100%);
  --grad-budget: linear-gradient(90deg, #a3a3a3, #fff, #525252);
  --grad-filled: linear-gradient(135deg, rgb(38 38 38 / 95%) 0%, rgb(18 18 18 / 95%) 100%);
  --filled-border: #404040;
  --modal-bg: #171717;
  --btn-primary-text: #fff;
  --input-bg: rgb(0 0 0 / 40%);
}



/* --- LIGHT MODE: MIDNIGHT (DEFAULT) --- */
body[data-theme="midnight"].light-mode, body.light-mode {
  --bg-primary: #e2e8f0;
  --bg-card: #fff;
  --bg-card-hover: #cbd5e1;
  --bg-card-header: #f1f5f9;
  --border-color: #94a3b8;
  --text-main: #0f172a;
  --text-muted: #334155;
  --accent-gold: #d97706;
  --accent-green: #047857;
  --accent-red: #dc2626;
  --accent-blue: #1d4ed8;
  --modal-bg: #fff;
  --input-bg: #fff;
  --filled-border: #94a3b8;
  --grad-brand: linear-gradient(135deg, #0284c7 0%, #1d4ed8 100%);
  --grad-btn: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  --grad-header: linear-gradient(180deg, #fff 0%, #f1f5f9 100%);
  --grad-team-header: linear-gradient(180deg, #fff 0%, #e2e8f0 100%);
  --grad-budget: linear-gradient(90deg, #047857, #0284c7, #1d4ed8);
  --grad-filled: linear-gradient(135deg, #fff 0%, #f1f5f9 100%);
  --shadow-sm: 0 2px 4px rgb(15 23 42 / 8%);
  --shadow-md: 0 4px 12px rgb(15 23 42 / 12%);
  --shadow-lg: 0 8px 24px rgb(15 23 42 / 20%);
}

/* --- LIGHT MODE: CYBER --- */
body[data-theme="cyber"].light-mode {
  --bg-primary: #f3e8ff;
  --bg-card: #fff;
  --bg-card-hover: #e9d5ff;
  --bg-card-header: #faf5ff;
  --border-color: #c084fc;
  --text-main: #2e1065;
  --text-muted: #581c87;
  --accent-gold: #7e22ce;
  --accent-green: #047857;
  --accent-red: #e11d48;
  --accent-blue: #4338ca;
  --modal-bg: #fff;
  --input-bg: #fff;
  --filled-border: #c084fc;
  --grad-brand: linear-gradient(135deg, #a855f7 0%, #ec4899 50%, #0284c7 100%);
  --grad-btn: linear-gradient(135deg, #9333ea 0%, #c026d3 100%);
  --grad-header: linear-gradient(180deg, #fff 0%, #faf5ff 100%);
  --grad-team-header: linear-gradient(180deg, #fff 0%, #f3e8ff 100%);
  --grad-budget: linear-gradient(90deg, #047857, #9333ea, #c026d3);
  --grad-filled: linear-gradient(135deg, #fff 0%, #faf5ff 100%);
}

/* --- LIGHT MODE: CRIMSON --- */
body[data-theme="crimson"].light-mode {
  --bg-primary: #fee2e2;
  --bg-card: #fff;
  --bg-card-hover: #fecaca;
  --bg-card-header: #fef2f2;
  --border-color: #f87171;
  --text-main: #450a0a;
  --text-muted: #7f1d1d;
  --accent-gold: #b91c1c;
  --accent-green: #047857;
  --accent-red: #b91c1c;
  --accent-blue: #0369a1;
  --modal-bg: #fff;
  --input-bg: #fff;
  --filled-border: #f87171;
  --grad-brand: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  --grad-btn: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  --grad-header: linear-gradient(180deg, #fff 0%, #fef2f2 100%);
  --grad-team-header: linear-gradient(180deg, #fff 0%, #fee2e2 100%);
  --grad-budget: linear-gradient(90deg, #047857, #dc2626, #991b1b);
  --grad-filled: linear-gradient(135deg, #fff 0%, #fef2f2 100%);
}

/* --- LIGHT MODE: CHAMPIONSHIP --- */
body[data-theme="championship"].light-mode {
  --bg-primary: #dcfce7;
  --bg-card: #fff;
  --bg-card-hover: #bbf7d0;
  --bg-card-header: #f0fdf4;
  --border-color: #4ade80;
  --text-main: #052e16;
  --text-muted: #14532d;
  --accent-gold: #b45309;
  --accent-green: #15803d;
  --accent-red: #dc2626;
  --accent-blue: #0369a1;
  --modal-bg: #fff;
  --input-bg: #fff;
  --filled-border: #4ade80;
  --grad-brand: linear-gradient(135deg, #d97706 0%, #15803d 100%);
  --grad-btn: linear-gradient(135deg, #15803d 0%, #166534 100%);
  --grad-header: linear-gradient(180deg, #fff 0%, #f0fdf4 100%);
  --grad-team-header: linear-gradient(180deg, #fff 0%, #dcfce7 100%);
  --grad-budget: linear-gradient(90deg, #15803d, #d97706, #047857);
  --grad-filled: linear-gradient(135deg, #fff 0%, #f0fdf4 100%);
}

/* --- LIGHT MODE: SUNSET --- */
body[data-theme="sunset"].light-mode {
  --bg-primary: #ffedd5;
  --bg-card: #fff;
  --bg-card-hover: #fed7aa;
  --bg-card-header: #fff7ed;
  --border-color: #fb923c;
  --text-main: #431407;
  --text-muted: #7c2d12;
  --accent-gold: #c2410c;
  --accent-green: #047857;
  --accent-red: #dc2626;
  --accent-blue: #0369a1;
  --modal-bg: #fff;
  --input-bg: #fff;
  --filled-border: #fb923c;
  --grad-brand: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  --grad-btn: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  --grad-header: linear-gradient(180deg, #fff 0%, #fff7ed 100%);
  --grad-team-header: linear-gradient(180deg, #fff 0%, #ffedd5 100%);
  --grad-budget: linear-gradient(90deg, #047857, #ea580c, #c2410c);
  --grad-filled: linear-gradient(135deg, #fff 0%, #fff7ed 100%);
}

/* --- LIGHT MODE: MONOCHROME --- */
body[data-theme="monochrome"].light-mode {
  --bg-primary: #e5e5e5;
  --bg-card: #fff;
  --bg-card-hover: #d4d4d4;
  --bg-card-header: #f5f5f5;
  --border-color: #737373;
  --text-main: #0a0a0a;
  --text-muted: #404040;
  --accent-gold: #171717;
  --accent-green: #262626;
  --accent-red: #525252;
  --accent-blue: #404040;
  --modal-bg: #fff;
  --input-bg: #fff;
  --filled-border: #737373;
  --grad-header: linear-gradient(180deg, #fff 0%, #f5f5f5 100%);
  --grad-team-header: linear-gradient(180deg, #fff 0%, #e5e5e5 100%);
  --grad-filled: linear-gradient(135deg, #fff 0%, #f5f5f5 100%);
  --grad-brand: linear-gradient(135deg, #404040 0%, #0a0a0a 100%);
  --grad-btn: linear-gradient(135deg, #262626 0%, #0a0a0a 100%);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: auto;
}

/* Header & Top Navigation */
.app-header {
  background: var(--grad-header);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  font-size: 28px;
}

.brand-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: var(--grad-brand);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn {
  background-color: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--accent-gold);
}

.btn-primary {
  background: var(--grad-btn);
  color: var(--btn-primary-text);
  border: none;
  font-weight: 700;
}

.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 12px rgb(245 158 11 / 40%);
}

.btn-danger {
  border-color: rgb(239 68 68 / 40%);
  color: var(--accent-red);
}

.btn-danger:hover {
  background-color: rgb(239 68 68 / 15%);
  border-color: var(--accent-red);
}

/* Global Board Summary Bar */
.summary-bar {
  display: flex;
  gap: 20px;
  padding: 12px 24px;
  background: var(--bg-card-header);
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
  overflow-x: auto;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  white-space: nowrap;
}

.stat-pill.clickable-pill {
  cursor: pointer;
  transition: all 0.2s ease;
  border-color: rgb(251 191 36 / 40%);
}

.stat-pill.clickable-pill:hover {
  background: rgb(251 191 36 / 12%);
  border-color: var(--accent-gold);
}

.stat-label {
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 600;
}

.stat-val {
  font-weight: 700;
  color: var(--accent-gold);
}

/* Board Container & 8-Team Grid */
.board-wrapper {
  flex: 1;
  padding: 16px 24px;
  overflow-x: auto;
}

.draft-board {
  display: grid;
  grid-template-columns: repeat(8, minmax(220px, 1fr));
  gap: 12px;
  min-width: 1760px; /* Ensures 8 full columns cleanly rendered */
}

/* Team Column Header Card */
.team-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-card-header);
  border-radius: 12px;
  padding: 8px;
  border: 1px solid var(--border-color);
}

.team-header-card {
  background: var(--grad-team-header);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  margin-bottom: 8px;
  box-shadow: var(--shadow-md);
}

.team-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.team-name-input {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-main);
  font-size: 16px;
  font-weight: 800;
  width: 140px;
  padding: 2px 4px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.team-name-input:focus, .team-name-input:hover {
  border-color: var(--accent-gold);
  background: var(--input-bg);
  outline: none;
}

.team-id-badge {
  font-size: 10px;
  background: rgb(251 191 36 / 15%);
  color: var(--accent-gold);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

/* Budget Cards inside Header (.metric-grid/.metric-cell are the mode-neutral
   aliases used by snake mode, which has no budget) */
.budget-grid,
.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  font-size: 11px;
}

.budget-metric,
.metric-cell {
  background: var(--input-bg);
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.bm-label {
  color: var(--text-muted);
  font-size: 10px;
  text-transform: uppercase;
}

.bm-val {
  font-size: 14px;
  font-weight: 700;
  margin-top: 2px;
}

.val-remaining { color: var(--accent-green); }
.val-spent { color: var(--accent-red); }

.val-maxbid {
  color: var(--accent-gold);
  font-size: 15px;
  font-weight: 800;
}
.val-avg { color: var(--accent-blue); }

/* Budget Bar Indicator */
.budget-progress-bg {
  height: 6px;
  background: var(--border-color);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 4px;
}

.budget-progress-fill {
  height: 100%;
  background: var(--grad-budget);
  width: 0%;
  transition: width 0.3s ease;
}

.budget-progress-fill.overbudget {
  background: var(--accent-red);
}

/* Draft Slots */
.team-slots-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pick-slot-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px 10px;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: all 0.15s ease;
  position: relative;
}

.pick-slot-card:hover {
  border-color: rgb(251 191 36 / 50%);
  background: var(--bg-card-hover);
}

.pick-slot-card.filled {
  background: var(--grad-filled);
  border-color: var(--filled-border);
}

.slot-number {
  font-size: 12px;
  font-weight: 800;
  color: var(--accent-gold);
  width: 28px;
  flex-shrink: 0;
  display: inline-block;
  text-align: center;
  background: rgb(251 191 36 / 10%);
  padding: 2px 4px;
  border-radius: 4px;
  border: 1px solid rgb(251 191 36 / 25%);
}

/* Slot Player Info */
.slot-player-container {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.slot-empty-btn {
  background: transparent;
  border: 1px dashed var(--border-color);
  color: var(--text-muted);
  width: 100%;
  padding: 6px;
  border-radius: 6px;
  font-size: 11px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.slot-empty-btn:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background: rgb(251 191 36 / 5%);
}

.player-main-info {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pos-badge {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 4px;
  color: #fff;
  text-transform: uppercase;
  flex-shrink: 0;
}

.pos-qb { background-color: var(--pos-qb); }
.pos-rb { background-color: var(--pos-rb); }
.pos-wr { background-color: var(--pos-wr); }
.pos-te { background-color: var(--pos-te); }
.pos-k { background-color: var(--pos-k); }
.pos-def { background-color: var(--pos-def); }

.player-name {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-main);
}

.player-sub-info {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 1px;
}

/* Pick Price Input */
.pick-price-box {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 2px 4px;
}

.currency-symbol {
  font-size: 11px;
  color: var(--accent-gold);
  font-weight: 700;
}

.price-input {
  width: 38px;
  background: transparent;
  border: none;
  color: var(--accent-gold);
  font-weight: 800;
  font-size: 13px;
  text-align: right;
}

.price-input:focus {
  outline: none;
  background: rgb(255 255 255 / 5%);
}

.slot-clear-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  font-size: 14px;
  opacity: 0.4;
  transition: opacity 0.15s ease, color 0.15s ease;
}

.slot-clear-btn:focus {
  opacity: 1;
}

.slot-clear-btn:hover {
  color: var(--accent-red);
  opacity: 1;
}

.pick-slot-card.filled:hover .slot-clear-btn {
  opacity: 1;
}

/* On touch devices, always show the remove button */
@media (hover: none) {
  .slot-clear-btn {
    opacity: 0.7;
  }
}

/* Modal Overlay for Player Picker */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgb(0 0 0 / 75%);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.picker-modal {
  background: var(--modal-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  width: 90%;
  max-width: 580px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card-header);
}

.modal-title {
  font-size: 16px;
  font-weight: 700;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
}

.modal-close:hover { color: var(--accent-gold); }

.sync-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.sync-badge.syncing {
  color: var(--accent-gold);
}

.sync-badge.success {
  color: var(--accent-green);
}

.sync-badge.error {
  color: var(--accent-red);
}

.modal-body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

/* Filter & Search Bar */
.picker-search-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--text-main);
  font-size: 14px;
}

.picker-search-input:focus {
  outline: none;
  border-color: var(--accent-gold);
}

.pos-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.pos-tab {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.pos-tab.active {
  background: var(--accent-gold);
  color: #000;
  border-color: var(--accent-gold);
}

/* Custom Player Entry option */
.custom-player-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: rgb(251 191 36 / 5%);
  border: 1px dashed rgb(251 191 36 / 30%);
  padding: 8px;
  border-radius: 8px;
  align-items: center;
}

.custom-player-row input, .custom-player-row select {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 6px;
  border-radius: 6px;
  font-size: 12px;
}

/* Player List Items */
.player-results-list {
  flex: 1;
  overflow-y: auto;
  max-height: 380px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.player-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.player-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-gold);
}

.player-item.drafted {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--bg-card-header);
}

.player-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.player-item-team {
  font-size: 11px;
  color: var(--text-muted);
}

.drafted-tag {
  font-size: 10px;
  color: var(--accent-red);
  font-weight: 700;
  text-transform: uppercase;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2000;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  box-shadow: var(--shadow-lg);
  animation: slide-up 0.2s ease;
}

@keyframes slide-up {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Pick Log Drawer / Modal */
.pick-log-container {
  max-height: 250px;
  overflow-y: auto;
  background: var(--bg-card);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  padding: 8px;
}

.log-item {
  display: flex;
  justify-content: space-between;
  padding: 6px 10px;
  border-bottom: 1px solid var(--border-color);
  font-size: 12px;
}

.log-item:last-child { border-bottom: none; }

/* ==========================================================================
   SNAKE DRAFT MODE
   ========================================================================== */

/* On the Clock Banner */
.clock-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 10px 24px;
  background: var(--bg-card-header);
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
}

/* Required: the display:flex above would otherwise beat the UA [hidden] rule */
.clock-banner[hidden] { display: none; }

.clock-label {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.clock-team {
  color: var(--accent-gold);
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
}

.clock-pick {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}

.clock-next {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.clock-banner.complete .clock-team { color: var(--accent-green); }

/* Pick timer countdown */
.clock-timer {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--accent-green);
  background: rgb(16 185 129 / 12%);
  border: 1px solid rgb(16 185 129 / 30%);
}

/* Required: the display:inline-flex above would otherwise beat [hidden] */
.clock-timer[hidden] { display: none; }

.clock-timer.clock-timer-warning {
  color: var(--accent-gold);
  background: rgb(251 191 36 / 12%);
  border-color: rgb(251 191 36 / 30%);
}

.clock-timer.clock-timer-critical {
  color: var(--accent-red);
  background: rgb(239 68 68 / 14%);
  border-color: rgb(239 68 68 / 35%);
  animation: clock-pulse 1s ease-in-out infinite;
}

/* Board highlighting */
.team-column.on-the-clock-column {
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-md);
}

.pick-slot-card.on-the-clock {
  border-color: var(--accent-gold);
  background: rgb(251 191 36 / 8%);
  animation: clock-pulse 1.8s ease-in-out infinite;
}

@keyframes clock-pulse {
  0%,
  100% { box-shadow: 0 0 0 0 rgb(251 191 36 / 35%); }
  50% { box-shadow: 0 0 0 4px rgb(251 191 36 / 0%); }
}

@media (prefers-reduced-motion: reduce) {
  .pick-slot-card.on-the-clock {
    animation: none;
    box-shadow: 0 0 0 2px rgb(251 191 36 / 35%);
  }

  .clock-timer.clock-timer-critical {
    animation: none;
    box-shadow: 0 0 0 2px rgb(239 68 68 / 35%);
  }
}

/* Locked slots (Locked enforcement). :hover still matches disabled elements,
   so these overrides are required or locked slots look clickable. */
.pick-slot-card.locked:hover {
  border-color: var(--border-color);
  background: var(--bg-card);
}

.slot-empty-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  border-style: dotted;
}

.slot-empty-btn:disabled:hover {
  border-color: var(--border-color);
  color: var(--text-muted);
  background: transparent;
}

/* Wider pick badge - "12.04" clips at the default 28px */
.slot-number.snake-pick-label {
  width: auto;
  min-width: 44px;
  font-size: 11px;
  letter-spacing: -0.2px;
}

/* ==========================================================================
   DRAFT SETTINGS MODAL
   ========================================================================== */

.settings-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.settings-group[hidden] { display: none; }

.settings-group-label {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.settings-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 4px;
}

.settings-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s ease;
}

.settings-option:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-gold);
}

.settings-option input[type="radio"] {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: var(--accent-gold);
  cursor: pointer;
  flex-shrink: 0;
}

.settings-hint {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 400;
}

.settings-note {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.5;
  padding-top: 4px;
  border-top: 1px solid var(--border-color);
}

/* Draft Order modal - reorder list */
.custom-order-list {
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}

.custom-order-list .btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Room code bar */
#room-code-display {
  letter-spacing: 2px;
  font-weight: 800;
}

/* ==========================================================================
   AUCTION MODE — NOMINATION & BIDDING
   ========================================================================== */

.auction-banner {
  background: var(--bg-card-header);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auction-banner[hidden] { display: none; }

/* --- Nomination state (no active bid) --- */
.auction-nominate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.auction-nominate-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.auction-nominate-label {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.auction-nominate-team {
  color: var(--accent-gold);
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
}

.auction-nominate-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* --- Active bid state --- */
.auction-bid-area {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auction-bid-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.auction-bid-player {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auction-bid-player-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
}

.auction-bid-player-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.auction-bid-current {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auction-bid-amount {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent-green);
  font-variant-numeric: tabular-nums;
}

.auction-bid-leader {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-gold);
}

.auction-bid-timer {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--accent-green);
  background: rgb(16 185 129 / 12%);
  border: 1px solid rgb(16 185 129 / 30%);
}

.auction-bid-timer.timer-warning {
  color: var(--accent-gold);
  background: rgb(251 191 36 / 12%);
  border-color: rgb(251 191 36 / 30%);
}

.auction-bid-timer.timer-critical {
  color: var(--accent-red);
  background: rgb(239 68 68 / 14%);
  border-color: rgb(239 68 68 / 35%);
  animation: clock-pulse 1s ease-in-out infinite;
}

/* --- Bid buttons row (single device) --- */
.auction-bid-buttons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 6px 0;
}

.auction-bid-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-main);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: all 0.15s ease;
  min-width: 90px;
}

.auction-bid-btn:hover:not(:disabled) {
  border-color: var(--accent-gold);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}

/* ── Lobby / draft rooms ─────────────────────────────────────────────── */

/* Component display rules (.btn, .stat-pill) are author styles and therefore
   beat the browser's built-in [hidden] { display: none }. Without this the
   league pill and lock button stay on screen while hidden="" is set. */
[hidden] {
  display: none !important;
}

.lobby-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.lobby-field {
  width: 100%;
  margin-bottom: 6px;
}

/* Room codes are case-sensitive, so never transform what the user typed. */
.lobby-code-field {
  text-transform: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 1px;
}

.lobby-hint {
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.lobby-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--text-main);
  word-spacing: -2px;
}

.lobby-error {
  font-size: 12px;
  color: var(--accent-red, #ef4444);
  margin: 0 0 10px;
}

.lobby-btn {
  width: 100%;
  padding: 12px;
  font-size: 15px;
}

.lobby-btn-create {
  border: 1px solid var(--accent-green);
  color: var(--accent-green);
}

.lobby-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 14px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lobby-divider::before,
.lobby-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.lobby-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 4px 0 14px;
  font-size: 13px;
  color: var(--text-main);
  cursor: pointer;
}

.lobby-check input {
  margin-top: 3px;
  flex-shrink: 0;
  cursor: pointer;
}

.lobby-lobbies-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.lobby-lobbies-list {
  max-height: 190px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 6px;
  background: var(--bg-dark);
}

.lobby-lobby-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
}

.lobby-lobby-row + .lobby-lobby-row {
  border-top: 1px solid var(--border-color);
}

.lobby-lobby-row:hover {
  background: var(--bg-card);
}

.lobby-lobby-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700;
  color: var(--accent-gold);
  word-break: break-all;
}

.lobby-lobby-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

@media (width <= 520px) {
  .lobby-divider { margin: 18px 0 12px; }
  .lobby-lobbies-list { max-height: 150px; }
}

/* ── Accounts ────────────────────────────────────────────────────────── */

.auth-why {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 18px;
}

.auth-why-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.auth-compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.auth-compare th,
.auth-compare td {
  text-align: left;
  padding: 5px 6px;
  border-bottom: 1px solid var(--border-color);
}

.auth-compare thead th {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.auth-compare td:first-child {
  color: var(--text-muted);
}

.auth-compare th:not(:first-child),
.auth-compare td:not(:first-child) {
  width: 86px;
  text-align: center;
}

.auth-compare tbody tr:last-child td {
  border-bottom: none;
}

.auth-compare .yes {
  color: var(--accent-green);
  font-weight: 700;
}

.auth-compare .no {
  color: var(--text-muted);
}

.auth-notice {
  font-size: 12px;
  color: var(--accent-green);
  border: 1px solid var(--accent-green);
  border-radius: 8px;
  padding: 9px 12px;
  margin-bottom: 12px;
}

.auth-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  color: #1f1f1f;
  border: 1px solid #dadce0;
  font-weight: 700;
}

.auth-google:hover { background: #f4f5f7; }

.auth-g {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: conic-gradient(#ea4335 0 25%, #fbbc05 0 50%, #34a853 0 75%, #4285f4 0);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
}

.auth-guest-btn {
  margin-top: 14px;
  border: 1px dashed var(--border-color);
  color: var(--text-muted);
}

.auth-switch {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.linkish {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent-gold);
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
}

.linkish:hover { opacity: 0.8; }

.lobby-whoami {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.lobby-whoami strong { color: var(--accent-gold); }

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

.account-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent-gold);
  color: #0b0f19;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  flex-shrink: 0;
}

.account-username {
  font-weight: 700;
  font-size: 16px;
  color: var(--text-main);
  word-break: break-all;
}

.account-email {
  font-size: 12px;
  color: var(--text-muted);
  word-break: break-all;
}

.draft-row-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.draft-row-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.badge-host {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--accent-gold);
  color: #0b0f19;
  margin-left: 6px;
  vertical-align: middle;
}

.auction-bid-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.auction-bid-btn.leading {
  border-color: var(--accent-gold);
  background: rgb(251 191 36 / 10%);
}

.auction-bid-btn .bid-team-name {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auction-bid-btn .bid-amount-label {
  font-size: 14px;
  font-weight: 800;
  color: var(--accent-green);
}

/* --- Multiplayer: my bid controls --- */
.auction-mp-bid-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 6px 0;
}

.auction-mp-bid-row .bid-increment-btns {
  display: flex;
  gap: 4px;
}

.auction-mp-bid-row .bid-increment-btn {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--accent-green);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  transition: all 0.15s ease;
}

.auction-mp-bid-row .bid-increment-btn:hover:not(:disabled) {
  border-color: var(--accent-green);
  background: rgb(16 185 129 / 12%);
}

.auction-mp-bid-row .bid-increment-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* --- Auction sold/won animation --- */
.auction-sold-flash {
  animation: auction-sold 0.6s ease;
}

@keyframes auction-sold {
  0% { background: rgb(52 211 153 / 25%); }
  100% { background: transparent; }
}

/* --- Complete / all budgets gone --- */
.auction-banner.fill-mode {
  border-left: 3px solid var(--accent-gold);
}

.auction-fill-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.auction-fill-notice strong {
  color: var(--accent-gold);
}

/* Chat Drawer Styles */
.chat-drawer {
  position: fixed;
  bottom: 85px;
  right: 20px;
  width: 320px;
  max-height: 450px;
  height: 60vh;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgb(0 0 0 / 60%);
  z-index: 9800;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(120%);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-drawer.open {
  transform: translateY(0);
}

.chat-header {
  background: var(--bg-dark);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-msg {
  font-size: 13px;
  line-height: 1.4;
  background: rgb(255 255 255 / 5%);
  padding: 8px 12px;
  border-radius: 8px;
  word-wrap: break-word;
}

.chat-msg.self {
  background: rgb(251 191 36 / 15%); /* Accent gold tint */
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.chat-msg.other {
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.chat-msg-sender {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.chat-msg.self .chat-msg-sender {
  color: var(--accent-gold);
}

.chat-input-area {
  display: flex;
  padding: 10px;
  background: var(--bg-dark);
  border-top: 1px solid var(--border-color);
  gap: 8px;
}

.chat-input-area input {
  flex: 1;
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 13px;
  outline: none;
}

.chat-input-area input:focus {
  border-color: var(--accent-gold);
}
