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

/* ── Base ───────────────────────────────────────────────────────────────────── */
:root {
  --top-nav-h: 50px;
  --sidebar-w: 220px;
  --bg:        #1a1a1a;
  --bg2:       #111;
  --bg3:       #222;
  --bg4:       #2a2a2a;
  --border:    #2e2e2e;
  --text:      #e0e0e0;
  --muted:     #666;
  --accent:    #7b8cde;
  --accent2:   #5a6bc9;
  --danger:    #c44;
  --success:   #23cd5e;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
}

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

/* ── Top Nav ────────────────────────────────────────────────────────────────── */
#top-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--top-nav-h);
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0;
  z-index: 200;
  padding: 0 20px;
}

.top-nav-logo {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  margin-right: 28px;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}
.top-nav-logo:hover { text-decoration: none; }

#top-nav-tabs {
  display: flex;
  align-items: stretch;
  height: 100%;
  gap: 2px;
}

.top-tab {
  display: flex;
  align-items: center;
  padding: 0 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.top-tab:hover { color: #fff; text-decoration: none; }
.top-tab.active { color: #fff; border-bottom-color: var(--accent); }

#top-nav-user {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}

/* ── App wrapper ────────────────────────────────────────────────────────────── */
#app {
  padding-top: var(--top-nav-h);
  min-height: 100vh;
}

#content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 36px;
}

/* Wide layout (draft room) */
#content.wide {
  max-width: 100%;
  padding: 24px 28px;
}

/* ── League sub-nav ─────────────────────────────────────────────────────────── */
#league-subnav {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 28px;
  overflow-x: auto;
}

.league-tab {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
  cursor: pointer;
}
.league-tab:hover { color: #fff; text-decoration: none; }
.league-tab.active { color: #fff; border-bottom-color: var(--accent); }

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s, background 0.15s;
  text-decoration: none;
}
.btn:hover { opacity: 0.88; text-decoration: none; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-primary  { background: var(--accent); color: #fff; }
.btn-danger   { background: var(--danger); color: #fff; }
.btn-ghost    { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn-sm       { padding: 6px 12px; font-size: 13px; }
.btn-small    { padding: 5px 12px; font-size: 12px; font-weight: 600;
                background: var(--bg4); color: var(--text);
                border: 1px solid var(--border); border-radius: 5px; cursor: pointer;
                transition: background 0.15s; }
.btn-small:hover { background: #333; }

/* ── Forms ──────────────────────────────────────────────────────────────────── */
.form-group {
  margin-bottom: 18px;
}

label {
  display: block;
  font-size: 13px;
  color: #aaa;
  margin-bottom: 6px;
  font-weight: 500;
}

input[type=text],
input[type=email],
input[type=password],
input[type=number],
input[type=tel],
select,
textarea {
  width: 100%;
  padding: 9px 12px;
  background: var(--bg3);
  border: 1px solid #3a3a3a;
  border-radius: 6px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
  font-family: inherit;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
input::placeholder, textarea::placeholder { color: #555; }
select option { background: var(--bg3); }
input[type=checkbox] { width: auto; margin-right: 6px; accent-color: var(--accent); }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.form-error {
  font-size: 13px;
  color: #e06060;
  margin-top: 6px;
}

/* ── Cards ──────────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg3);
  border-radius: 8px;
  padding: 22px 24px;
  margin-bottom: 20px;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* ── Page title ─────────────────────────────────────────────────────────────── */
.page-title {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Tables ─────────────────────────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border-radius: 8px;
  background: var(--bg3);
  margin-bottom: 20px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table th {
  text-align: left;
  padding: 9px 14px;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #252525;
  vertical-align: middle;
}
.data-table tbody tr:hover td { background: #252525; }
.data-table tbody tr:last-child td { border-bottom: none; }

.num-cell { text-align: right; font-variant-numeric: tabular-nums; color: #bbb; }

/* ── Auth ───────────────────────────────────────────────────────────────────── */
.auth-wrap {
  min-height: calc(100vh - var(--top-nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-box {
  width: 100%;
  max-width: 400px;
  background: var(--bg3);
  border-radius: 10px;
  padding: 36px 32px;
}

.auth-box h2 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.auth-box p { color: var(--muted); font-size: 13px; margin-bottom: 24px; }

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

.discord-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 18px;
  background: #5865F2;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.discord-btn:hover { background: #4752c4; }

/* ── Dashboard ──────────────────────────────────────────────────────────────── */
.league-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.league-card {
  background: var(--bg3);
  border-radius: 8px;
  padding: 20px;
  text-decoration: none;
  display: block;
  transition: background 0.15s;
  border: 1px solid var(--border);
  cursor: pointer;
}
.league-card:hover { background: var(--bg4); text-decoration: none; }

.league-card-name {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.league-card-meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.status-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: capitalize;
}
.status-setup     { background: #3a3a1a; color: #cccc44; }
.status-drafting  { background: #1a3a2a; color: #44cc88; }
.status-active    { background: #1a2a3a; color: #44aacc; }
.status-completed { background: #2a2a2a; color: var(--muted); }

/* ── Draft room ─────────────────────────────────────────────────────────────── */
.draft-room {
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--top-nav-h) - 41px); /* subtract subnav */
  overflow: hidden;
}

.draft-header {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.draft-round-info {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.draft-turn-info {
  font-size: 14px;
  color: var(--muted);
}
.draft-turn-info strong { color: var(--accent); }

.draft-timer {
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--success);
}
.draft-timer.urgent { color: #ff7f0f; }
.draft-timer.critical { color: var(--danger); animation: pulse 0.5s ease infinite alternate; }

@keyframes pulse { from { opacity: 1; } to { opacity: 0.5; } }

.draft-order-strip {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 8px 20px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  flex-shrink: 0;
}

.pick-chip {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  background: var(--bg4);
  color: var(--muted);
  border: 1px solid transparent;
}
.pick-chip.current {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.pick-chip.you { border-color: var(--accent); color: var(--accent); }
.pick-chip.done { opacity: 0.4; }

.draft-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.draft-pool {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  overflow: hidden;
}

.draft-pool-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

.draft-pool-header input {
  flex: 1;
  padding: 7px 10px;
  background: var(--bg2);
  border: 1px solid #3a3a3a;
  border-radius: 5px;
  color: var(--text);
  font-size: 13px;
  outline: none;
}
.draft-pool-header input:focus { border-color: var(--accent); }

.draft-pool-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
  align-content: start;
}

.pool-card {
  background: var(--bg4);
  border-radius: 7px;
  padding: 10px 12px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.1s, border-color 0.1s;
  position: relative;
}
.pool-card:hover { background: #333; border-color: var(--accent); }
.pool-card.watchlisted { border-color: #cc9922; }
.pool-card.not-your-turn { cursor: default; }
.pool-card.not-your-turn:hover { background: var(--bg4); border-color: transparent; }

.pool-card-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-transform: capitalize;
  margin-bottom: 5px;
}
.pool-card-cost {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.pool-card-types {
  display: flex;
  gap: 4px;
  margin-top: 5px;
  flex-wrap: wrap;
}

.draft-team-panel {
  width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.team-panel-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.team-panel-header h3 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.team-panel-budget {
  font-size: 12px;
  color: var(--muted);
}
.team-panel-budget span { color: var(--success); font-weight: 700; }

.team-panel-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

.team-pokemon-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 6px;
  margin-bottom: 4px;
  background: var(--bg4);
}
.team-pokemon-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-transform: capitalize;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.team-pokemon-cost {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  flex-shrink: 0;
}
.team-pokemon-types {
  display: flex;
  gap: 3px;
  flex-shrink: 0;
}

.watchlist-section {
  padding: 10px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.watchlist-section h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
  margin-bottom: 6px;
}

/* ── Type badge ─────────────────────────────────────────────────────────────── */
.type-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  text-transform: capitalize;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
  white-space: nowrap;
}

/* ── Team chip strip (draft room) ───────────────────────────────────────────── */
.team-chip {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  background: var(--bg4);
  color: var(--muted);
  border: 1px solid transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  transition: background 0.1s, border-color 0.1s;
}
.team-chip:hover { background: #333; }
.team-chip.current  { background: var(--accent); color: #fff; border-color: var(--accent); }
.team-chip.you      { border-color: var(--accent); color: var(--accent); }
.team-chip.viewing  { background: #2a2a2a; border-color: #666; color: #fff; }
.team-chip.current.viewing { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip-name  { font-size: 12px; font-weight: 600; }
.chip-picks { font-size: 10px; font-weight: 400; opacity: 0.75; }

/* ── Team split view (team page) ─────────────────────────────────────────────── */
.team-split-view {
  display: flex;
  gap: 0;
  height: calc(100vh - 220px);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.team-roster-col {
  flex: 1;
  overflow-y: auto;
  border-right: 1px solid var(--border);
}

.team-detail-col {
  width: 540px;
  flex-shrink: 0;
  overflow-y: auto;
  background: var(--bg2);
}

.roster-row.active-row td { background: var(--bg2); }

/* ── Pokémon detail panel ─────────────────────────────────────────────────────── */
.poke-detail {
  padding: 20px 16px;
}

.poke-detail-sprite {
  display: block;
  width: 140px;
  height: 140px;
  object-fit: contain;
  margin: 0 auto 8px;
}

.poke-detail-name {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  text-transform: capitalize;
  margin-bottom: 6px;
}

.poke-detail-types {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 16px;
}

.poke-detail-section {
  margin-bottom: 18px;
}

.poke-detail-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--muted);
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}

.stat-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}
.stat-label { font-size: 12px; color: var(--muted); width: 52px; flex-shrink: 0; }
.stat-num   { font-size: 12px; font-weight: 700; color: #fff; width: 28px; text-align: right; flex-shrink: 0; }
.stat-bar-bg  { flex: 1; height: 6px; background: var(--bg4); border-radius: 3px; overflow: hidden; }
.stat-bar-fill { height: 100%; border-radius: 3px; transition: width 0.3s; }

.ability-tag {
  background: var(--bg4);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 3px 10px;
  font-size: 12px;
  color: #ddd;
  text-transform: capitalize;
}

/* ── Tooltip ─────────────────────────────────────────────────────────────────── */
.has-tooltip {
  position: relative;
  cursor: default;
}
.has-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  top: 50%;
  left: calc(100% + 8px);
  transform: translateY(-50%);
  background: #1a1a2e;
  color: #e2e2e2;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 12px;
  line-height: 1.45;
  white-space: normal;
  width: 260px;
  max-width: 90vw;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 200;
  text-align: left;
  font-weight: normal;
  text-transform: none;
  letter-spacing: 0;
}
.has-tooltip:hover::after {
  opacity: 1;
}

.moves-list {
  max-height: 240px;
  overflow-y: auto;
}
.moves-list-full {
  max-height: none;
  overflow-y: visible;
}
.move-row {
  display: grid;
  grid-template-columns: 1fr 70px 58px 36px 1fr;
  gap: 8px;
  align-items: center;
  padding: 4px 2px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.move-row:last-child { border-bottom: none; }
.move-row-header { opacity: 0.7; }
.move-level { width: 36px; color: var(--muted); flex-shrink: 0; font-variant-numeric: tabular-nums; }
.move-name  { text-transform: capitalize; color: #ddd; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.move-link:hover { color: var(--accent) !important; }
.move-type-col  { min-width: 0; }
.move-cat-col   { min-width: 0; }
.move-power-col { text-align: right; font-variant-numeric: tabular-nums; }
.move-effect-col { color: var(--muted); font-size: 11px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Pokémon detail modal (mobile) ───────────────────────────────────────────── */
.poke-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 400;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.poke-modal-box {
  position: relative;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px 14px 0 0;
  width: 100%;
  max-width: 600px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 16px 0 24px;
}
.poke-modal-close {
  position: sticky;
  top: 0;
  float: right;
  margin: 0 14px 0 0;
  background: var(--bg4);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 14px;
  color: #ccc;
  cursor: pointer;
  z-index: 1;
  line-height: 30px;
  text-align: center;
}
.poke-modal-close:hover { background: var(--bg3); color: #fff; }

@media (max-width: 750px) {
  .team-detail-col { display: none; }
  .team-roster-col { border-right: none; }
  .team-split-view { height: auto; }
}

/* ── Team view ──────────────────────────────────────────────────────────────── */
.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.roster-card {
  background: var(--bg3);
  border-radius: 8px;
  padding: 14px 16px;
  border: 1px solid var(--border);
}
.roster-card-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-transform: capitalize;
  margin-bottom: 6px;
}
.roster-card-cost {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.roster-card-types { display: flex; gap: 4px; flex-wrap: wrap; }

/* ── Misc ───────────────────────────────────────────────────────────────────── */
.loading-msg, .error-msg {
  color: var(--muted);
  font-size: 15px;
  text-align: center;
  margin-top: 80px;
}
.error-msg { color: #c44; }

.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 60px 20px;
}
.empty-state h3 { font-size: 18px; color: #888; margin-bottom: 8px; }
.empty-state p  { font-size: 14px; }

.invite-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.invite-box code {
  flex: 1;
  font-family: monospace;
  font-size: 13px;
  color: var(--accent);
  overflow-x: auto;
}

/* ── Free agent filters ──────────────────────────────────────────────────────── */
.fa-filters {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fa-filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.fa-filter-input {
  padding: 6px 10px;
  background: var(--bg4);
  border: 1px solid #3a3a3a;
  border-radius: 5px;
  color: var(--text);
  font-size: 13px;
  outline: none;
  min-width: 120px;
}
.fa-filter-input:focus { border-color: var(--accent); }

.fa-filter-check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}

.fa-stat-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.fa-stat-filter {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg4);
  border: 1px solid #3a3a3a;
  border-radius: 5px;
  padding: 4px 8px;
}

.fa-stat-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  width: 26px;
}

.fa-stat-op {
  background: transparent;
  border: none;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 0 2px;
  outline: none;
}

.fa-stat-val {
  width: 44px;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 13px;
  outline: none;
  text-align: right;
}
.fa-stat-val::-webkit-inner-spin-button { opacity: 0; }

/* Sort indicators */
.fa-th.sort-asc::after  { content: ' ↑'; color: var(--accent); font-size: 11px; }
.fa-th.sort-desc::after { content: ' ↓'; color: var(--accent); font-size: 11px; }
.fa-th:hover { color: #fff; }

.alert {
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 16px;
}
.alert-info    { background: #1a2a3a; color: #88bbdd; border: 1px solid #2a4a6a; }
.alert-success { background: #1a3a2a; color: #66cc88; border: 1px solid #2a5a3a; }
.alert-danger  { background: #3a1a1a; color: #cc6666; border: 1px solid #5a2a2a; }

.badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}
.badge-pending  { background: #3a3a1a; color: #cccc44; }
.badge-accepted { background: #1a3a2a; color: #44cc88; }
.badge-rejected { background: #3a1a1a; color: #cc6666; }

/* ── Wizard steps ───────────────────────────────────────────────────────────── */
.wizard-steps {
  display: flex;
  gap: 0;
  margin-bottom: 32px;
  border-radius: 8px;
  overflow: hidden;
}

.wizard-step {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  background: var(--bg3);
  border-right: 1px solid var(--border);
}
.wizard-step:last-child { border-right: none; }
.wizard-step.active  { background: var(--accent); color: #fff; font-weight: 600; }
.wizard-step.done    { background: #1a3a2a; color: #44cc88; }

/* ── Confirm modal ──────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
}

.modal-box {
  background: var(--bg3);
  border-radius: 10px;
  padding: 28px 28px;
  width: 100%;
  max-width: 380px;
  border: 1px solid var(--border);
}
.modal-box h3 { font-size: 18px; color: #fff; margin-bottom: 10px; }
.modal-box p  { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* ── Matchup page ─────────────────────────────────────────────────────────────── */
.matchup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.matchup-panel {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.matchup-panel-header {
  padding: 12px 16px;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
}
.matchup-row:hover td { background: var(--bg3); }
