:root {
  /* Stadium-night palette: deep navy base, field-green primary action,
     gold for best-odds highlights (so it doesn't fight the P&L green),
     warmer white text for scoreboard-ish contrast. */
  --bg: #0a0f1c;
  --surface: #121a2e;
  --surface-2: #1a2440;
  --border: #2a3654;
  --text: #f0f2f7;
  --muted: #8591ac;

  /* Field green as the primary brand action color */
  --accent: #22c55e;
  --accent-hover: #16a34a;

  /* Gold for "best odds" markers and winner indicators */
  --gold: #fbbf24;
  --gold-bg: rgba(251, 191, 36, 0.12);

  /* P&L colors */
  --positive: #4ade80;
  --positive-bg: rgba(74, 222, 128, 0.10);
  --negative: #f87171;
  --negative-bg: rgba(248, 113, 113, 0.10);
  --warn: #fbbf24;

  /* Stadium-lights gradient used on the header */
  --header-glow: radial-gradient(ellipse 80% 100% at 50% -20%, rgba(34, 197, 94, 0.10), transparent 60%);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
  max-width: 100%;
}

/* Shrink any wide form controls so they don't force horizontal scroll on mobile */
input, select, textarea { max-width: 100%; min-width: 0; }

/* Selects and inputs inside form-rows should fill the row — otherwise
   native selects size to their longest option (breaking mobile layout
   for long game-picker strings). */
.form-row select, .form-row input { width: 100%; }
.form-row { min-width: 0; }

/* Wide tables (arbitrage, My Bets history) need horizontal scroll on
   mobile rather than overflowing the viewport. */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table-scroll table { min-width: max-content; }
body {
  background-image: var(--header-glow);
  background-repeat: no-repeat;
  background-size: 100% 600px;
}

header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 28px;
  background: linear-gradient(180deg, #0e1628, var(--surface));
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(34, 197, 94, 0.08), 0 8px 20px rgba(0, 0, 0, 0.3);
}
header .brand {
  font-weight: 800;
  font-size: 0.95em;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: var(--text);
}
header .brand > span {
  background: linear-gradient(90deg, #ffffff, #22c55e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
header nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92em;
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
header nav a:hover { color: var(--text); }
header nav a.active { color: var(--text); border-bottom-color: var(--accent); }
header .user-email { color: var(--muted); font-size: 0.88em; }
header form { margin: 0; }

main { padding: 28px; max-width: 1280px; margin: 0 auto; }

h1 {
  font-size: 1.9em;
  font-weight: 800;
  margin: 0 0 8px 0;
  letter-spacing: -0.015em;
  background: linear-gradient(180deg, #ffffff, #a8b3c7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
h2 { font-size: 1.1em; font-weight: 600; margin: 0 0 12px 0; }
.page-subtitle { color: var(--muted); margin-bottom: 24px; }

/* Buttons / forms */
.btn,
button,
.btn-primary-link {
  padding: 8px 16px;
  background: var(--accent);
  color: #0b0d12;
  border: 0;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.92em;
  text-decoration: none;
  display: inline-block;
}
.btn:hover, button:hover, .btn-primary-link:hover { background: var(--accent-hover); }
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--surface-2); }

input[type="email"], input[type="password"], input[type="text"], input[type="number"], input[type="date"], select {
  padding: 8px 12px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.92em;
  font-family: inherit;
}
input:focus, select:focus { outline: none; border-color: var(--accent); }
label { display: block; margin-bottom: 4px; color: var(--muted); font-size: 0.85em; font-weight: 500; }

.form-row { margin-bottom: 14px; }

/* Cards & tables */
.card {
  background: linear-gradient(180deg, var(--surface), #0f1628);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.03) inset, 0 4px 16px rgba(0,0,0,0.2);
}
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.92em; }
th { font-weight: 600; color: var(--muted); font-size: 0.78em; text-transform: uppercase; letter-spacing: 0.06em; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }

/* Flash */
.flash { padding: 12px 16px; margin-bottom: 16px; border-radius: 6px; border: 1px solid; }
.flash.error { background: var(--negative-bg); border-color: var(--negative); color: var(--negative); }
.flash.info  { background: rgba(110, 168, 255, 0.10); border-color: var(--accent); color: var(--accent); }

/* Best-odds highlight — gold so it doesn't collide with P&L green */
.best-odds {
  background: var(--gold-bg);
  color: var(--gold);
  font-weight: 700;
  border-radius: 4px;
  padding: 2px 6px;
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.35);
}

/* Scoreboard-style odds numerics */
.odds-table td.num {
  font-weight: 600;
  font-size: 0.96em;
  letter-spacing: 0.01em;
}

/* Filter bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 20px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.filter-bar .form-row { margin-bottom: 0; }

/* Game card */
.game {
  margin-bottom: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.game-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: 14px;
  background: var(--surface-2);
}
.game-header .teams { font-weight: 600; font-size: 1.02em; }
.game-header .meta { color: var(--muted); font-size: 0.85em; }
.game-header .sport-tag {
  padding: 3px 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.72em;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.market-section {
  padding: 0;
}
.market-label {
  padding: 8px 18px;
  font-size: 0.74em;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: var(--bg);
  border-top: 1px solid var(--border);
}

/* Metric display (EV, parlay summary) */
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.metric {
  background: linear-gradient(180deg, var(--surface-2), #141c34);
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.metric::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.5), transparent);
}
.metric .label { color: var(--muted); font-size: 0.78em; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.metric .value { font-size: 1.5em; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.metric.positive .value { color: var(--positive); }
.metric.negative .value { color: var(--negative); }

.tooltip-help {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
  font-size: 0.7em;
  line-height: 12px;
  cursor: help;
  margin-left: 4px;
}

.empty-state { padding: 40px; text-align: center; color: var(--muted); }

.disclaimer { color: var(--muted); font-size: 0.85em; padding: 12px 16px; background: var(--surface-2); border-left: 3px solid var(--warn); border-radius: 4px; margin-bottom: 20px; }

.parlay-leg { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 10px; align-items: end; margin-bottom: 8px; }
.parlay-leg input { width: 100%; }
.btn-remove { background: transparent; color: var(--negative); border: 1px solid var(--border); }
.btn-remove:hover { background: var(--negative-bg); }

/* Footer */
footer {
  margin-top: 60px;
  padding: 24px 28px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85em;
  text-align: center;
}
footer a { color: var(--muted); text-decoration: underline; }
footer a:hover { color: var(--text); }
.footer-disclaimer { margin-top: 6px; font-size: 0.88em; opacity: 0.8; }

/* ============ Header layout (desktop + mobile) ============ */

/* Desktop: nav-panel is a flex container spanning the remaining row */
.nav-panel {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  min-width: 0;
}
.nav-panel nav { display: flex; gap: 18px; flex-wrap: wrap; }
.auth-section {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.auth-link { color: var(--muted); text-decoration: none; font-size: 0.92em; }
.auth-link:hover { color: var(--text); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 12px;
  font-size: 1.1em;
  line-height: 1;
  border-radius: 6px;
  cursor: pointer;
}

/* Mobile: stack cleanly so nothing overflows the right edge */
@media (max-width: 900px) {
  header {
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px;
  }
  header .brand { flex-shrink: 1; min-width: 0; }
  header .brand > span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .nav-toggle { display: inline-flex; margin-left: auto; order: 2; }

  /* Search goes full-width below row 1 */
  .search-wrap {
    order: 3;
    max-width: none;
    flex-basis: 100%;
  }

  /* Nav + auth collapse behind the hamburger */
  .nav-panel {
    order: 4;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    display: none;
    padding-top: 10px;
    border-top: 1px solid var(--border);
  }
  .nav-panel.open { display: flex; }
  .nav-panel nav {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }
  .nav-panel nav a {
    padding: 10px 4px;
    border-bottom: 1px solid var(--border);
  }
  .nav-panel nav a.active { border-bottom-color: var(--border); color: var(--accent); }
  .auth-section {
    flex-direction: row;
    flex-wrap: wrap;
    margin-left: 0;
    margin-top: 8px;
    gap: 8px;
  }
  .auth-section .user-email { width: 100%; }

  main { padding: 16px; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .parlay-leg { grid-template-columns: 1fr; }
  table { font-size: 0.82em; }
  th, td { padding: 8px 6px; }
  .game-header { flex-wrap: wrap; }

  /* Stack any two-column grids used in forms (EV, parlay, bets) */
  main [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* Loading shimmer */
.loading { color: var(--muted); font-style: italic; padding: 16px; }

/* ============ Live Odds redesign ============ */

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

/* Sport pill bar */
.pill-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.88em;
  font-weight: 500;
  transition: all 0.15s ease;
}
.pill:hover { background: var(--surface-2); border-color: var(--muted); }
.pill.active {
  background: var(--accent);
  color: #0b0d12;
  border-color: var(--accent);
}
.pill.active .pill-count {
  background: rgba(11, 13, 18, 0.25);
  color: #0b0d12;
}
.pill.muted { opacity: 0.45; }
.pill-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  background: var(--bg);
  border-radius: 10px;
  font-size: 0.78em;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* Sport accent colors — left border on game cards + pill dot */
.sport-americanfootball_nfl     { --sport-color: #22c55e; }
.sport-basketball_nba           { --sport-color: #f97316; }
.sport-baseball_mlb             { --sport-color: #3b82f6; }
.sport-icehockey_nhl            { --sport-color: #06b6d4; }
.sport-americanfootball_ncaaf   { --sport-color: #eab308; }
.sport-basketball_ncaab         { --sport-color: #a855f7; }
.sport-soccer_usa_mls           { --sport-color: #10b981; }

.pill.sport-americanfootball_nfl::before,
.pill.sport-basketball_nba::before,
.pill.sport-baseball_mlb::before,
.pill.sport-icehockey_nhl::before,
.pill.sport-americanfootball_ncaaf::before,
.pill.sport-basketball_ncaab::before,
.pill.sport-soccer_usa_mls::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sport-color, var(--muted));
}
.pill.active::before { display: none; }

/* Collapsible secondary filters */
.filter-details {
  margin-bottom: 20px;
}
.filter-details summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.88em;
  padding: 8px 0;
  user-select: none;
  list-style: none;
}
.filter-details summary::-webkit-details-marker { display: none; }
.filter-details summary::before {
  content: "▸ ";
  display: inline-block;
  transition: transform 0.2s;
}
.filter-details[open] summary::before { transform: rotate(90deg); }
.filter-details summary:hover { color: var(--text); }
.filter-badge {
  display: inline-block;
  padding: 1px 8px;
  background: var(--accent);
  color: #0b0d12;
  border-radius: 999px;
  font-size: 0.75em;
  font-weight: 600;
  margin-left: 4px;
}

/* Horizontal checkbox chips */
.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.checkbox-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.85em;
  color: var(--text);
  font-weight: 500;
  margin: 0;
}
.checkbox-pill:has(input:checked) {
  background: var(--accent);
  color: #0b0d12;
  border-color: var(--accent);
}
.checkbox-pill input { display: none; }

/* Game card — refreshed */
.game {
  border-left: 3px solid var(--sport-color, var(--border));
}
.game-header {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
}
.sport-tag {
  background: var(--sport-color, var(--bg)) !important;
  color: #0b0d12 !important;
  border: 0 !important;
  font-weight: 700;
}
.teams-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.3;
}
.team-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.team-name {
  font-size: 1.08em;
  font-weight: 600;
  color: var(--text);
}
.team-indicator {
  font-size: 0.68em;
  color: var(--muted);
  letter-spacing: 0.1em;
  font-weight: 600;
}
.vs-divider {
  font-size: 0.72em;
  color: var(--muted);
  font-weight: 600;
  padding-left: 2px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.game-meta {
  text-align: right;
  color: var(--muted);
  font-size: 0.85em;
  font-variant-numeric: tabular-nums;
}
.game-meta .time-utc { font-size: 0.9em; opacity: 0.8; }

.btn-small { font-size: 0.78em; padding: 6px 10px; }

/* Odds table */
.odds-table-wrapper { overflow-x: auto; }
.odds-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.015); }
.odds-table .book-cell { font-weight: 500; }
.odds-table .captured { color: var(--muted); font-size: 0.82em; white-space: nowrap; }

.market-label {
  font-weight: 600;
  color: var(--text);
  opacity: 0.85;
}

/* Mobile */
@media (max-width: 700px) {
  .game-header {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .game-meta { text-align: left; }
  .pill { font-size: 0.82em; padding: 6px 12px; }
  .page-header { flex-direction: column; align-items: stretch; gap: 8px; }
}

/* ============ Header icon + search ============ */

header .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.25), 0 0 12px rgba(34, 197, 94, 0.15);
}

.search-wrap {
  position: relative;
  flex: 1;
  max-width: 420px;
  margin: 0;
}
.search-wrap input[type="search"] {
  width: 100%;
  padding: 9px 14px 9px 36px;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238591ac' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") no-repeat 10px center / 16px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.92em;
  font-family: inherit;
}
.search-wrap input[type="search"]::-webkit-search-cancel-button { display: none; }
.search-wrap input[type="search"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  z-index: 50;
  max-height: 420px;
  overflow-y: auto;
}
.search-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  font-size: 0.9em;
  border-left: 3px solid var(--sport-color, transparent);
}
.search-item:last-child { border-bottom: 0; }
.search-item:hover, .search-item.active {
  background: var(--surface-2);
}
.search-sport {
  font-size: 0.7em;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sport-color, var(--muted));
}
.search-teams { font-weight: 500; }
.search-teams .muted { color: var(--muted); font-weight: 400; }
.search-time { color: var(--muted); font-size: 0.82em; white-space: nowrap; }
.search-empty {
  padding: 16px;
  color: var(--muted);
  font-size: 0.88em;
  text-align: center;
}

/* Reorder header on mobile so search is full-width under the brand */
@media (max-width: 900px) {
  .search-wrap {
    order: 3;
    max-width: none;
    flex-basis: 100%;
  }
}

/* ============ Search results banner (Live Odds with ?q=) ============ */

.search-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  margin-bottom: 22px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.10), rgba(34, 197, 94, 0.02));
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.search-banner-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 197, 94, 0.15);
  color: var(--accent);
  border-radius: 10px;
}
.search-banner-body { flex: 1; min-width: 0; }
.search-banner-title {
  font-size: 1.02em;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.search-banner-query {
  color: var(--text);
  font-weight: 700;
  margin-left: 4px;
  word-break: break-word;
}
.search-banner-sub {
  font-size: 0.85em;
  color: var(--muted);
  margin-top: 2px;
}
.search-banner-clear {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.88em;
  font-weight: 600;
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.15s ease;
}
.search-banner-clear:hover { background: var(--surface-2); border-color: var(--muted); }

@media (max-width: 700px) {
  .search-banner { flex-wrap: wrap; padding: 14px 16px; }
  .search-banner-clear { width: 100%; justify-content: center; }
}

/* ============ User avatar menu ============ */

.user-menu {
  position: relative;
}
.user-avatar {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #16a34a);
  color: #0b0d12;
  font-weight: 800;
  font-size: 0.95em;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.15);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.user-avatar:hover {
  transform: scale(1.04);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
  background: linear-gradient(135deg, #26d068, #22c55e);
}
.user-avatar:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.45);
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  padding: 12px;
  z-index: 40;
  display: none;
}
.user-menu.open .user-dropdown { display: block; }
.user-dropdown-label {
  font-size: 0.72em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.user-dropdown-email {
  font-size: 0.9em;
  color: var(--text);
  word-break: break-all;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.user-dropdown form { margin: 0; }
.user-dropdown-action {
  width: 100%;
  padding: 8px 12px;
  background: transparent;
  color: var(--negative);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.88em;
  text-align: left;
}
.user-dropdown-action:hover {
  background: var(--negative-bg);
  border-color: var(--negative);
}

/* Mobile: dropdown inside the collapsible nav panel should render inline
   rather than as a floating dropdown — it's already inside a hidden menu. */
@media (max-width: 900px) {
  .user-menu { width: 100%; }
  .user-avatar { display: none; }
  .user-dropdown {
    position: static;
    display: block;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 8px 0;
    min-width: 0;
  }
}
