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

:root {
  --orange: #F97316;
  --orange-dim: #ea6c0a;
  --blue: #1D4ED8;
  --blue-dim: #1a44c8;
  --gold: #D4A017;
  --gold-dim: #b88a10;
  --bg: #0a0a0a;
  --surface: #141414;
  --surface2: #1e1e1e;
  --surface3: #252525;
  --text: #f0f0f0;
  --muted: #888;
  --live: #F97316;
  --success: #22c55e;
  --error: #ef4444;
}

/* Prevent horizontal overflow on iOS/Android */
html, body { width: 100%; overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh;
}

/* Scale media so nothing forces horizontal scroll */
img, video, svg, canvas { max-width: 100%; height: auto; }

/* ── PRIMARY NAV ── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 2rem;
  background: var(--surface);
  border-bottom: 2px solid var(--orange);
  position: sticky;
  top: 0;
  z-index: 200;
}

/* ── NAV TELEGRAM LINK ── */
.nav-telegram {
  color: #38bdf8 !important;
}
.nav-telegram:hover {
  color: #7dd3fc !important;
  background: rgba(14,165,233,0.1) !important;
}

.nav-logo {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.8rem;
  color: var(--orange);
  letter-spacing: 3px;
  text-decoration: none;
}

.nav-logo .ch-blue { color: var(--blue); }

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--orange);
  background: rgba(249, 115, 22, 0.1);
}

/* ── MAIN ── */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
}

/* ── HERO ── */
.hero {
  text-align: center;
  padding: 3.5rem 1rem 2.5rem;
}

.hero h1 {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: 5px;
  line-height: 1;
}

.hero h1 .ch-orange { color: var(--orange); }
.hero h1 .ch-blue   { color: var(--blue); }

.hero p {
  color: var(--muted);
  font-size: 1.1rem;
  margin-top: 0.75rem;
}

/* ── SECTION HEADING ── */
.section-heading {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.6rem;
  letter-spacing: 2px;
  color: var(--orange);
  border-bottom: 1px solid var(--surface2);
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
}

/* ── PICK CARDS ── */
.picks-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
}

/* Legacy .pick-card (kept for compatibility) */
.pick-card {
  background: var(--surface);
  border: 1px solid var(--surface2);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: border-color 0.2s;
}
.pick-card:hover { border-color: var(--orange); }
.pick-card .pick-title { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.pick-card .pick-meta { font-size: 0.85rem; color: var(--muted); margin-top: 0.3rem; }
.pick-card .pick-pick { font-size: 0.9rem; color: var(--orange); margin-top: 0.25rem; font-weight: 600; }

/* New Covers-style pick card */
.pick-card-new {
  background: var(--surface);
  border: 1px solid var(--surface2);
  border-left: 3px solid var(--orange);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: border-color 0.2s, background 0.2s;
}
.pick-card-new:hover {
  border-color: var(--orange);
  background: rgba(249,115,22,0.04);
}
.pick-card-new .pick-left { flex: 1; min-width: 0; }
.pick-sport-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(29,78,216,0.12);
  border: 1px solid rgba(29,78,216,0.25);
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
  margin-bottom: 0.4rem;
}
.pick-matchup-new {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pick-meta-new {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.2rem;
}
.pick-value-new {
  font-size: 0.88rem;
  color: var(--orange);
  font-weight: 700;
  margin-top: 0.3rem;
}
.pick-note-new {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.3rem;
  line-height: 1.4;
  font-style: italic;
}
.pick-handicapper {
  font-size: 0.72rem;
  color: var(--gold);
  font-weight: 600;
  margin-top: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.result-badge {
  flex-shrink: 0;
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.result-badge.win    { background: rgba(34,197,94,0.15);  color: #4ade80; border: 1px solid rgba(34,197,94,0.3); }
.result-badge.loss   { background: rgba(239,68,68,0.15);  color: #f87171; border: 1px solid rgba(239,68,68,0.3); }
.result-badge.pending { background: rgba(249,115,22,0.12); color: var(--orange); border: 1px solid rgba(249,115,22,0.3); }
.result-badge.push   { background: rgba(212,160,23,0.15); color: var(--gold);   border: 1px solid rgba(212,160,23,0.3); }

.badge {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-ml {
  background: rgba(29, 78, 216, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(29, 78, 216, 0.4);
}

.badge-live {
  background: rgba(249, 115, 22, 0.15);
  color: var(--orange);
  border: 1px solid rgba(249, 115, 22, 0.4);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}

.empty-msg {
  color: var(--muted);
  font-size: 0.95rem;
  padding: 1.5rem 0;
  text-align: center;
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  nav { padding: 0.75rem 1rem; }
  main { padding: 1.5rem 1rem; }
  .pick-card { flex-direction: column; align-items: flex-start; }
  .pick-card-new { flex-direction: column; align-items: flex-start; }
}

/* ── LANDING — NAV ADDITIONS ── */
.btn-login {
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 0.45rem 1.1rem;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-login:hover { background: var(--orange-dim); }

/* ── TELEGRAM BUTTON ── */
.btn-telegram {
  background: rgba(14,165,233,0.15);
  color: #38bdf8;
  border: 1px solid rgba(14,165,233,0.35);
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
  display: inline-block;
}
.btn-telegram:hover {
  background: rgba(14,165,233,0.28);
  color: #7dd3fc;
}

/* ── LANDING — HERO ── */
section.hero {
  text-align: center;
  padding: 4rem 1.5rem 2.5rem;
  background: radial-gradient(ellipse at 50% 0%, rgba(29,78,216,0.15) 0%, transparent 70%);
}
section.hero h1 {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(3.5rem, 10vw, 7rem);
  letter-spacing: 6px;
  line-height: 1;
}
section.hero h1 .ch-orange { color: var(--orange); }
section.hero h1 .ch-blue   { color: var(--blue); }
section.hero p {
  color: var(--muted);
  font-size: 1.15rem;
  margin-top: 0.75rem;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--orange);
  color: #fff;
  padding: 0.7rem 1.8rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.2s;
  display: inline-block;
}
.btn-primary:hover { background: var(--orange-dim); }
.btn-secondary {
  background: transparent;
  color: var(--text);
  padding: 0.7rem 1.8rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid var(--surface2);
  transition: border-color 0.2s, color 0.2s;
  display: inline-block;
}
.btn-secondary:hover { border-color: var(--orange); color: var(--orange); }
.btn-full { width: 100%; text-align: center; }

/* ── LANDING — MAIN ── */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}
main section { margin-bottom: 3rem; }

/* ── HOME TWO-COLUMN GRID ── */
.home-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
  margin-bottom: 3rem;
}
.home-main { min-width: 0; }
.home-sidebar { min-width: 0; }

@media (max-width: 960px) {
  .home-grid {
    grid-template-columns: 1fr;
  }
  .home-sidebar { order: -1; }
}

/* ── LOADING/ERROR ── */
.loading-msg {
  color: var(--muted);
  font-size: 0.95rem;
  padding: 1.5rem 0;
  text-align: center;
}
.error-msg {
  color: #f87171;
  font-size: 0.9rem;
  padding: 1rem 0;
  text-align: center;
}

/* ── LIVE BETS GRID ── */

/* Sportsbook toggle row above the live-bets grid */
.bookmaker-toggle {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.bookmaker-toggle-btn {
  background: var(--surface2);
  color: var(--muted);
  border: 1px solid var(--surface2);
  padding: 0.35rem 0.9rem;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.bookmaker-toggle-btn:hover {
  color: var(--text);
}
.bookmaker-toggle-btn.active {
  background: rgba(249,115,22,0.15);
  color: var(--orange);
  border-color: rgba(249,115,22,0.4);
}

.bets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.bet-card {
  background: var(--surface);
  border: 1px solid var(--surface2);
  border-top: 2px solid var(--blue);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  transition: border-color 0.2s, transform 0.15s;
}
.bet-card:hover { border-color: var(--orange); transform: translateY(-2px); }
.bet-card .bet-matchup {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}
.bet-card .bet-sport {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}
.bet-card .bet-time {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.bet-odds-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.odds-pill {
  background: var(--surface2);
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  color: var(--text);
  flex: 1;
  min-width: 80px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.odds-pill:hover { border-color: var(--orange); }
.odds-pill--added {
  border-color: var(--success) !important;
  background: rgba(34,197,94,0.08);
}
.odds-pill .odds-label {
  display: block;
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.2rem;
}
.odds-pill .odds-value {
  font-weight: 700;
  color: var(--orange);
}
/* Label showing which sportsbook's odds are displayed on a bet card */
.bet-source {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── SPORTS NEWS ── */
.news-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.news-item {
  background: transparent;
  border-bottom: 1px solid var(--surface2);
  padding: 0.75rem 0;
  transition: background 0.15s;
}
.news-item:first-child { border-top: 1px solid var(--surface2); }
.news-item:hover { background: rgba(255,255,255,0.02); }
.news-item a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.45;
  display: block;
}
.news-item a:hover { color: var(--orange); }
.news-meta {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* ── HANDICAPPER BLOG FEED ── */
#handicapper-news { margin-top: 1.5rem; }
.blog-feed-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.blog-feed-item {
  border-top: 1px solid var(--surface2);
}
.blog-feed-item:last-child {
  border-bottom: 1px solid var(--surface2);
}
.blog-feed-link {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 0.8rem 0;
  transition: background 0.15s;
}
.blog-feed-link:hover { background: rgba(255,255,255,0.02); }
.blog-feed-title {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
}
.blog-feed-link:hover .blog-feed-title { color: var(--orange); }
.blog-feed-meta {
  font-size: 0.72rem;
  color: var(--gold);
  margin-top: 0.25rem;
}
.blog-feed-snippet {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.35rem;
  line-height: 1.45;
}

/* ── BLOG POST PAGE ── */
.blog-post-wrapper {
  max-width: 860px;
  margin: 0 auto;
}
.blog-post-card {
  background: var(--surface);
  border: 1px solid var(--surface2);
  border-radius: 12px;
  padding: 1.5rem;
}
.blog-post-title {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.blog-post-meta {
  color: var(--gold);
  font-size: 0.88rem;
  margin-bottom: 1rem;
}
.blog-post-body {
  color: var(--text);
  line-height: 1.75;
  font-size: 0.96rem;
}
.blog-post-body p { margin-bottom: 1rem; }
.blog-post-body h1, .blog-post-body h2, .blog-post-body h3 { line-height: 1.3; margin: 1rem 0 0.6rem; }
.blog-post-body ul, .blog-post-body ol { margin: 0.8rem 0 1rem 1.4rem; }

/* ── PRICING ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  align-items: start;
}
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--surface2);
  border-radius: 12px;
  padding: 2rem 1.75rem;
  text-align: center;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}
.pricing-card:hover { border-color: var(--orange); transform: translateY(-3px); }
.pricing-card.featured {
  border-color: var(--orange);
  background: linear-gradient(160deg, rgba(249,115,22,0.08) 0%, var(--surface) 60%);
}
.pricing-badge {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.4rem;
  letter-spacing: 2px;
  color: var(--orange);
  margin-bottom: 0.5rem;
}
.pricing-label {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}
.pricing-price {
  font-family: 'Bebas Neue', cursive;
  font-size: 3.5rem;
  color: var(--text);
  line-height: 1;
  margin-bottom: 1.25rem;
}
.pricing-price span {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  color: var(--muted);
}
.pricing-features {
  list-style: none;
  padding: 0;
  margin-bottom: 1.75rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.pricing-features li {
  font-size: 0.9rem;
  color: var(--text);
}
.pricing-features li.disabled { color: var(--muted); }
.btn-plan {
  display: block;
  background: var(--surface2);
  color: var(--text);
  text-decoration: none;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
}
.btn-plan:hover { background: var(--orange); color: #fff; }
.btn-plan-featured {
  background: var(--orange);
  color: #fff;
}
.btn-plan-featured:hover { background: var(--orange-dim); }

/* ── FOOTER ── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--surface2);
  padding: 1.5rem 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ── LOGIN MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal-box {
  background: var(--surface);
  border: 1px solid var(--surface2);
  border-radius: 14px;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 420px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.25s;
}
.modal-overlay.open .modal-box { transform: translateY(0); }
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.2rem 0.5rem;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--text); }
.modal-title {
  font-family: 'Bebas Neue', cursive;
  font-size: 2rem;
  letter-spacing: 2px;
  color: var(--orange);
  margin-bottom: 0.25rem;
}
.modal-subtitle {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.modal-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.modal-form input {
  display: block;
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--surface2);
  border-radius: 8px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  padding: 0.65rem 0.9rem;
  margin-bottom: 1rem;
  outline: none;
  transition: border-color 0.2s;
}
.modal-form input:focus { border-color: var(--orange); }
.modal-form .btn-primary { border: none; cursor: pointer; font-family: 'DM Sans', sans-serif; }
.modal-footer-text {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 1rem;
}
.modal-footer-text a { color: var(--orange); text-decoration: none; }
.modal-footer-text a:hover { text-decoration: underline; }

/* ── MODAL TABS ── */
.modal-tabs {
  display: flex;
  border-bottom: 2px solid var(--surface2);
  margin-bottom: 1.5rem;
}
.modal-tab {
  flex: 1;
  background: none;
  border: none;
  padding: 0.65rem 0;
  font-family: 'Bebas Neue', cursive;
  font-size: 1.15rem;
  letter-spacing: 2px;
  color: var(--muted);
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}
.modal-tab::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transition: transform 0.2s;
}
.modal-tab.active {
  color: var(--orange);
}
.modal-tab.active::after {
  transform: scaleX(1);
}

/* ── FORM PANELS ── */
.form-panel { display: none; }
.form-panel.active { display: block; }

/* ── ALERT MESSAGES ── */
.form-alert {
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
  font-size: 0.87rem;
  margin-bottom: 1rem;
  display: none;
  line-height: 1.4;
}
.form-alert.show { display: block; }
.form-alert.error {
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.35);
  color: #f87171;
}
.form-alert.success {
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.35);
  color: #4ade80;
}
.form-alert.info {
  background: rgba(212,160,23,0.12);
  border: 1px solid rgba(212,160,23,0.35);
  color: var(--gold);
}

/* ── GOLD ACCENT ELEMENTS ── */
.ch-gold { color: var(--gold); }
.divider-gold {
  border: none;
  border-top: 1px solid var(--gold);
  opacity: 0.25;
  margin: 1rem 0;
}

/* ── NAV USER STATE ── */
.nav-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav-greeting {
  font-size: 0.88rem;
  color: var(--gold);
  font-weight: 600;
}
.btn-logout {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--surface2);
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.btn-logout:hover { border-color: var(--orange); color: var(--orange); }

/* ── ADMIN ROLE-SWITCHER ──────────────────────────────────────────────────── */
/* Only visible to admin users. Allows simulating Handicapper or Sports Bettor */
/* views for evaluation/QA without changing the admin's actual account.         */
.admin-role-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--surface2);
  border-radius: 8px;
  padding: 0.2rem 0.4rem;
}
.role-sw-btn {
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0.25rem 0.55rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.role-sw-btn:hover {
  background: var(--surface2);
  color: var(--text);
}
.role-sw-btn.role-sw-active {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
}

/* ── ROLE SELECTION CARDS ── */
.role-selection {
  margin-bottom: 1.25rem;
}
.role-selection-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.6rem;
}
.role-cards {
  display: flex;
  gap: 0.75rem;
}
.role-card {
  flex: 1;
  background: var(--surface2);
  border: 2px solid var(--surface3);
  border-radius: 10px;
  padding: 0.9rem 0.6rem;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
  user-select: none;
}
.role-card:hover { border-color: var(--muted); }
.role-card.selected {
  border-color: var(--orange);
  background: rgba(249,115,22,0.08);
}
.role-card .role-icon { font-size: 1.6rem; display: block; margin-bottom: 0.35rem; }
.role-card .role-name { font-weight: 700; font-size: 0.9rem; display: block; color: var(--text); margin-bottom: 0.2rem; }
.role-card .role-desc { font-size: 0.75rem; color: var(--muted); display: block; line-height: 1.3; }

/* ── CONFIRMATION CODE BOX ── */
.confirm-code-box {
  background: var(--surface2);
  border: 1px solid var(--gold);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  margin-top: 0.75rem;
}
.confirm-code-box .code-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.35rem;
}
.confirm-code-box .code-value {
  font-family: 'Bebas Neue', cursive;
  font-size: 2.2rem;
  letter-spacing: 6px;
  color: var(--gold);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .bets-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .modal-box { width: calc(100% - 2rem); max-width: 520px; }
  .betslip-box { width: calc(100% - 2rem); }
}
@media (max-width: 600px) {
  nav { padding: 0.75rem 1rem; flex-wrap: wrap; gap: 0.5rem; }
  .nav-links { flex-wrap: wrap; gap: 0.4rem; justify-content: flex-end; }
  main { padding: 1.5rem 1rem; }
  .pick-card { flex-direction: column; align-items: flex-start; }
  /* Prevent iOS Safari from zooming on input focus */
  input, select, textarea { font-size: 16px !important; }
  .betslip-fab { right: 1rem; bottom: 1rem; }
  .betslip-fab-label { display: none; }
}
@media (max-width: 500px) {
  section.hero { padding: 3rem 1rem 2rem; }
  .modal-box { margin: 1rem; padding: 2rem 1.25rem; }
  .hero-cta a, .hero-cta button { width: 100%; justify-content: center; text-align: center; }
}

/* ── TELEGRAM BUTTON ── */
.btn-telegram {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #2ca5e0;
  color: #fff;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.15s;
}
.btn-telegram:hover { background: #1a94cf; transform: translateY(-1px); }

/* ── ADMIN PANEL ── */
.admin-form {
  background: var(--surface);
  border: 1px solid var(--surface2);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.admin-form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.admin-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
  min-width: 180px;
}
.admin-field label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
}
.admin-field input,
.admin-field select {
  background: var(--surface2);
  border: 1px solid var(--surface2);
  border-radius: 6px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  outline: none;
  transition: border-color 0.2s;
}
.admin-field input:focus,
.admin-field select:focus { border-color: var(--orange); }

.admin-picks-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.admin-pick-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--surface2);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  flex-wrap: wrap;
}
.admin-pick-info { flex: 1; }
.admin-pick-matchup { font-size: 0.95rem; font-weight: 700; color: var(--text); }
.admin-pick-meta { font-size: 0.8rem; color: var(--muted); margin-top: 0.2rem; }
.admin-pick-value { font-size: 0.9rem; color: var(--orange); font-weight: 600; margin-top: 0.2rem; }
.btn-delete-pick {
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.35);
  color: #f87171;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-delete-pick:hover { background: rgba(239,68,68,0.25); }

/* ── PICKS SECTION ── */
.picks-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.pick-card-new {
  background: var(--surface);
  border: 1px solid var(--surface2);
  border-radius: 10px;
  padding: 1.1rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  transition: border-color 0.2s;
}
.pick-card-new:hover { border-color: var(--orange); }
.pick-card-new .pick-left { flex: 1; }
.pick-card-new .pick-matchup-new {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.pick-card-new .pick-meta-new {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.2rem;
}
.pick-card-new .pick-value-new {
  font-size: 0.92rem;
  color: var(--orange);
  font-weight: 700;
  margin-top: 0.3rem;
}
.pick-card-new .pick-note-new {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.2rem;
  font-style: italic;
}
.pick-confidence-stars { color: var(--gold); font-size: 0.85rem; margin-top: 0.15rem; }

/* Homepage Hard Rock style preview card */
.pick-card-hardrock {
  background: linear-gradient(145deg, #121212 0%, #1a1a1a 55%, #0f0f0f 100%);
  border: 1px solid rgba(212,160,23,0.45);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04), 0 10px 24px rgba(0,0,0,0.35);
}
.pick-card-hardrock:hover {
  border-color: rgba(212,160,23,0.8);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06), 0 12px 26px rgba(0,0,0,0.45);
}
.pick-card-hardrock .pick-value-new {
  color: #f6d37a;
}
.pick-hardrock-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.6rem;
}
.pick-hardrock-stat {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(212,160,23,0.25);
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.pick-hardrock-label {
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  font-weight: 700;
}
.pick-hardrock-value {
  font-size: 0.92rem;
  color: var(--gold);
  font-weight: 700;
}
@media (max-width: 560px) {
  .pick-hardrock-stats {
    grid-template-columns: 1fr;
  }
}
.pick-lock-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  flex-shrink: 0;
}
.pick-lock-badge.free {
  background: rgba(34,197,94,0.12);
  color: #22c55e;
  border: 1px solid rgba(34,197,94,0.3);
}
.pick-lock-badge.locked {
  background: rgba(249,115,22,0.12);
  color: var(--orange);
  border: 1px solid rgba(249,115,22,0.35);
}
.pick-sport-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.18rem 0.55rem;
  border-radius: 20px;
  margin-bottom: 0.3rem;
  background: rgba(29,78,216,0.15);
  color: #60a5fa;
  border: 1px solid rgba(29,78,216,0.3);
}

/* ── BET SLIP CALCULATOR ── */
.betslip-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.75rem 1.2rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(249,115,22,0.4);
  z-index: 500;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.betslip-fab:hover {
  background: var(--orange-dim);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(249,115,22,0.5);
}
.betslip-fab-label { font-size: 0.85rem; }

.betslip-box {
  max-width: 480px;
  width: 100%;
  height: 100%;
  max-height: 100vh;
  overflow-y: auto;
  border-radius: 14px 0 0 14px;
  /* Slide-in from right */
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@media (max-width: 480px) {
  .betslip-box { border-radius: 0; }
}
/* Override the generic modal-box translateY animation for the drawer */
#betslip-modal {
  justify-content: flex-end;
  align-items: stretch;
  overflow: hidden;
}
#betslip-modal.open .betslip-box {
  transform: translateX(0);
}
.betslip-add-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}
.bs-input {
  background: var(--surface2);
  border: 1px solid var(--surface3);
  border-radius: 6px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  padding: 0.45rem 0.7rem;
  outline: none;
  transition: border-color 0.2s;
  flex: 1;
  min-width: 120px;
}
.bs-input:focus { border-color: var(--orange); }
.bs-odds  { max-width: 110px; min-width: 90px; }
.bs-wager { max-width: 100px; min-width: 80px; }
.bs-add-btn {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  align-self: flex-end;
}

.bs-legs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.bs-leg {
  background: var(--surface2);
  border: 1px solid var(--surface3);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.bs-leg-info { flex: 1; }
.bs-leg-matchup { font-size: 0.85rem; font-weight: 700; color: var(--text); }
.bs-leg-pick    { font-size: 0.8rem;  color: var(--orange); }
.bs-leg-calc    { font-size: 0.78rem; color: var(--muted); margin-top: 0.1rem; }
.bs-leg-stake-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
}
.bs-stake-label {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}
.bs-leg-stake {
  max-width: 90px;
  min-width: 70px;
  padding: 0.3rem 0.5rem;
  font-size: 0.8rem;
  flex: none;
}
.bs-leg-remove {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.1rem 0.3rem;
  transition: color 0.2s;
}
.bs-leg-remove:hover { color: #f87171; }

.bs-parlay-row {
  border-top: 1px solid var(--surface2);
  padding-top: 0.75rem;
  margin-bottom: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-start;
}
.bs-toggle-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}
.bs-toggle-label input[type="checkbox"] {
  accent-color: var(--orange);
  width: 1rem;
  height: 1rem;
  cursor: pointer;
}

.bs-summary {
  background: var(--surface);
  border: 1px solid var(--surface2);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.bs-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--muted);
}
.bs-summary-row.highlight {
  font-size: 1rem;
  font-weight: 700;
  color: var(--success);
}

/* ── HANDICAPPER DASHBOARD ── */
.handicapper-panel { margin-bottom: 2.5rem; }

.hcp-stats-bar {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.hcp-stat-card {
  flex: 1;
  min-width: 110px;
  background: var(--surface);
  border: 1px solid var(--surface2);
  border-radius: 10px;
  padding: 0.9rem 1.2rem;
  text-align: center;
}
.hcp-stat-value {
  font-family: 'Bebas Neue', cursive;
  font-size: 2rem;
  letter-spacing: 1px;
  color: var(--orange);
  line-height: 1;
}
.hcp-stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* Result badges */
.result-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.18rem 0.6rem;
  border-radius: 20px;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.result-badge.win {
  background: rgba(34,197,94,0.15);
  color: #22c55e;
  border: 1px solid rgba(34,197,94,0.35);
}
.result-badge.loss {
  background: rgba(239,68,68,0.12);
  color: #f87171;
  border: 1px solid rgba(239,68,68,0.3);
}
.result-badge.pending {
  background: rgba(212,160,23,0.1);
  color: var(--gold);
  border: 1px solid rgba(212,160,23,0.3);
}

/* Result selector inline in admin pick item */
.result-select {
  background: var(--surface2);
  border: 1px solid var(--surface2);
  border-radius: 6px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  padding: 0.3rem 0.5rem;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}
.result-select:focus { border-color: var(--orange); }

/* Handicapper attribution on public today's picks */
.pick-handicapper {
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 700;
  margin-top: 0.2rem;
}

/* Today's picks page standalone layout */
.todays-picks-page main {
  max-width: 860px;
}
.tp-filter-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  align-items: center;
}
.tp-filter-btn {
  background: var(--surface);
  border: 1px solid var(--surface2);
  color: var(--muted);
  border-radius: 20px;
  padding: 0.3rem 0.9rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.tp-filter-btn.active,
.tp-filter-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(249,115,22,0.1);
}
.tp-empty {
  color: var(--muted);
  font-size: 0.95rem;
  padding: 2rem 0;
  text-align: center;
}


/* ════════════════════════════════════════════════════════════════
   HANDICAPPER BOARD MANAGEMENT PORTAL
   ════════════════════════════════════════════════════════════════ */

/* ── Portal Header ── */
.portal-header {
  background: var(--surface);
  border-bottom: 1px solid var(--surface2);
  padding: 1.25rem 2rem;
}
.portal-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.portal-title {
  font-family: 'Bebas Neue', cursive;
  font-size: 2rem;
  color: var(--orange);
  letter-spacing: 1px;
}
.portal-subtitle {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.15rem;
}
.portal-stats-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.portal-stat-card {
  background: var(--surface2);
  border: 1px solid var(--surface3);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  text-align: center;
  min-width: 70px;
}
.portal-stat-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  font-family: 'Bebas Neue', cursive;
}
.portal-stat-label {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.1rem;
}

/* ── Two-panel layout ── */
.portal-layout {
  display: flex;
  gap: 0;
  max-width: 1400px;
  margin: 0 auto;
  min-height: calc(100vh - 130px);
}
.portal-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.portal-panel--left {
  flex: 0 0 58%;
  border-right: 2px solid var(--surface2);
  overflow-y: auto;
  max-height: calc(100vh - 130px);
  position: sticky;
  top: 72px; /* height of sticky nav */
}
.portal-panel--right {
  flex: 1;
  overflow-y: auto;
  max-height: calc(100vh - 130px);
  position: sticky;
  top: 72px;
}

/* ── Panel headers ── */
.panel-header {
  padding: 1.25rem 1.5rem 0.75rem;
  border-bottom: 1px solid var(--surface2);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}
.panel-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}
.panel-desc {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

/* ── Sport filter tabs ── */
.portal-sport-tabs {
  display: flex;
  gap: 0.35rem;
  padding: 0.75rem 1.5rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--surface2);
  background: var(--bg);
  position: sticky;
  top: 72px;
  z-index: 9;
}
.portal-sport-tab {
  background: var(--surface2);
  border: 1px solid var(--surface3);
  color: var(--muted);
  border-radius: 20px;
  padding: 0.3rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
}
.portal-sport-tab:hover,
.portal-sport-tab.active {
  background: rgba(249,115,22,0.15);
  border-color: var(--orange);
  color: var(--orange);
}

/* ── Sportsbook filter ── */
.portal-book-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.5rem;
  border-bottom: 1px solid var(--surface2);
  flex-wrap: wrap;
}
.portal-book-label {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}
.portal-book-tabs {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}
.portal-book-btn {
  background: var(--surface2);
  border: 1px solid var(--surface3);
  color: var(--muted);
  border-radius: 6px;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  font-family: 'DM Sans', sans-serif;
}
.portal-book-btn:hover,
.portal-book-btn.active {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(29,78,216,0.1);
}

/* ── Search input ── */
.portal-search-row {
  padding: 0.6rem 1.5rem;
  border-bottom: 1px solid var(--surface2);
}
.portal-search-input {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--surface3);
  border-radius: 8px;
  padding: 0.45rem 0.85rem;
  color: var(--text);
  font-size: 0.85rem;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color 0.18s;
}
.portal-search-input:focus {
  border-color: var(--orange);
}
.portal-search-input::placeholder { color: var(--muted); }

/* ── Odds Board ── */
.portal-odds-board {
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ── Game Card ── */
.portal-game-card {
  background: var(--surface);
  border: 1px solid var(--surface2);
  border-radius: 10px;
  padding: 1rem;
  transition: border-color 0.18s;
}
.portal-game-card:hover { border-color: var(--surface3); }

.portal-game-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}
.portal-game-sport {
  background: var(--orange);
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.portal-game-time {
  font-size: 0.75rem;
  color: var(--muted);
}
.portal-game-book {
  font-size: 0.72rem;
  color: var(--muted);
  margin-left: auto;
}
.portal-game-matchup {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.vs-text {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.9rem;
}
.portal-game-odds { display: flex; flex-direction: column; gap: 0.5rem; }

.portal-odds-row-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}
.portal-odds-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ── Odds Pill (clickable) ── */
.portal-odds-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--surface2);
  border: 1px solid var(--surface3);
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  transition: all 0.18s;
  flex: 1;
  min-width: 130px;
  user-select: none;
}
.portal-odds-pill:hover {
  border-color: var(--orange);
  background: rgba(249,115,22,0.12);
}
.portal-odds-pill:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
.portal-odds-pill--added {
  border-color: var(--success) !important;
  background: rgba(34,197,94,0.15) !important;
}
.portal-odds-label {
  font-size: 0.78rem;
  color: var(--muted);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.portal-odds-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.portal-odds-type-tag {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--blue);
  background: rgba(29,78,216,0.15);
  border-radius: 4px;
  padding: 0.1rem 0.3rem;
  white-space: nowrap;
}

/* ── Pick Slip (right panel) ── */
.portal-slip-list {
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1;
}
.slip-empty {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 1.5rem 0;
  text-align: center;
}
.slip-empty-hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.4rem;
  line-height: 1.5;
}

/* ── Slip Item ── */
.slip-item {
  background: var(--surface);
  border: 1px solid var(--surface2);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.slip-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.slip-sport-badge {
  background: var(--orange);
  color: #000;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 0.3rem;
}
.slip-type-badge {
  background: rgba(29,78,216,0.2);
  color: #93c5fd;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.slip-remove-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  border-radius: 4px;
  transition: color 0.15s;
}
.slip-remove-btn:hover { color: #f87171; }

.slip-matchup {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}
.slip-pick {
  font-size: 0.88rem;
  color: var(--orange);
  font-weight: 600;
}
.slip-controls {
  display: flex;
  gap: 0.5rem;
}
.slip-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.slip-label {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.slip-confidence,
.slip-visibility {
  background: var(--surface2);
  border: 1px solid var(--surface3);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.8rem;
  padding: 0.3rem 0.5rem;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
}
.slip-confidence:focus,
.slip-visibility:focus { outline: 1px solid var(--orange); }

.slip-note-row { display: flex; }
.slip-note-input {
  flex: 1;
  background: var(--surface2);
  border: 1px solid var(--surface3);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.82rem;
  padding: 0.35rem 0.65rem;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color 0.18s;
}
.slip-note-input:focus { border-color: var(--orange); }
.slip-note-input::placeholder { color: var(--muted); }

.slip-post-btn {
  width: 100%;
  margin-top: 0.15rem;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
}

/* ── Manual Entry ── */
.portal-manual-btn {
  margin: 0 1.25rem 0.75rem;
  width: calc(100% - 2.5rem);
  font-size: 0.85rem;
}
.portal-manual-form {
  background: var(--surface);
  border: 1px solid var(--surface2);
  border-radius: 10px;
  padding: 1rem;
  margin: 0 1.25rem 0.75rem;
}
.manual-form-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.manual-form-desc {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

/* ── Post Feedback ── */
.portal-post-feedback {
  margin: 0 1.25rem 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  display: none;
}
.portal-post-feedback.show { display: block; }
.portal-post-feedback--success {
  background: rgba(34,197,94,0.15);
  border: 1px solid rgba(34,197,94,0.4);
  color: var(--success);
}
.portal-post-feedback--error {
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.3);
  color: #f87171;
}
.portal-post-feedback--info {
  background: rgba(249,115,22,0.12);
  border: 1px solid rgba(249,115,22,0.35);
  color: var(--orange);
}

/* ── Pick History (collapsible) ── */
.portal-history {
  border-top: 1px solid var(--surface2);
  margin-top: 0.5rem;
}
.portal-history-toggle {
  width: 100%;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  padding: 0.9rem 1.25rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.18s;
}
.portal-history-toggle:hover { color: var(--text); }
.history-chevron { margin-left: auto; font-size: 0.75rem; }

.portal-history-list {
  padding: 0 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.history-pick-item {
  background: var(--surface);
  border: 1px solid var(--surface2);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.history-pick-info { flex: 1; }
.history-pick-matchup {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}
.history-pick-meta {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.15rem;
}
.history-pick-value {
  font-size: 0.85rem;
  color: var(--orange);
  font-weight: 600;
  margin-top: 0.15rem;
}
.history-pick-note {
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 0.15rem;
}
.history-pick-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-end;
  flex-shrink: 0;
}

/* ── Responsive: stack panels on smaller screens ── */
@media (max-width: 900px) {
  .portal-layout {
    flex-direction: column;
  }
  .portal-panel--left,
  .portal-panel--right {
    flex: none;
    max-height: none;
    position: static;
    border-right: none;
    border-bottom: 2px solid var(--surface2);
    overflow-y: visible;
  }
  .portal-panel--right {
    border-bottom: none;
  }
  .portal-sport-tabs {
    position: static;
  }
  .portal-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
