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

:root {
  /* Cyberpunk Premium Palette - Dark Mode */
  --bg: #050505;
  /* Deep Space Black */
  --surface: #0d0d0d;
  /* Carbon Fiber Surface */
  --surface2: #151515;
  /* Alternative surface */
  --border: #222;
  /* Dark border */
  --border-b: #333;
  /* Stronger border */
  --accent: #ff00ff;
  /* Neon Fuchsia (Brand Signature) */
  --accent-glow: rgba(255, 0, 255, 0.3);
  --accent2: #00d4ff;
  /* Cyber Cyan (Secondary) */
  --accent3: #ffff00;
  /* Cyberpunk Yellow */
  --text: #ffffff;
  /* Pure white text */
  --dim: #888;
  /* Dimmed text */
  --mid: #bbb;
  /* Mid text */
  --green: #00ff94;
  /* Neon Green */
  --orange: #ff9000;
  /* Neon Orange */
  --red: #ff2d55;
  --premium: #7b2fff;
  /* Royal Purple Premium */
  --premium-glow: rgba(123, 47, 255, 0.4);
  --yankees: #1c1e6b;
  /* Yankees Dark Blue */
  --dodgers: #005a9c;
  /* Dodgers Blue */
  --fh: 'Bebas Neue', sans-serif;
  --fc: 'Barlow Condensed', sans-serif;
  --fb: 'Barlow', sans-serif;
  --fm: 'DM Mono', monospace;
  --tap: 44px;
  /* Neon Glows */
  --glow-cyan: 0 0 15px rgba(0, 212, 255, 0.4);
  --glow-cyan-sm: 0 0 8px rgba(0, 212, 255, 0.3);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.8);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--fb);
  min-height: 100dvh;
  overflow-x: hidden
}

/* Scanline + grid */
.scanline {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.2) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
  z-index: 100;
  background-size: 100% 4px, 3px 100%;
  pointer-events: none
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(rgba(0, 212, 255, 0.15) 0.5px, transparent 0.5px);
  background-size: 30px 30px;
  opacity: 0.6;
}

/* Glitch Effect - Refined for Movement */
.glitch {
  position: relative;
  display: inline-block;
  font-family: var(--fh);
  letter-spacing: 2px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

.glitch .slash {
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent-glow);
  font-weight: 900;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
}

.glitch::before {
  left: 2px;
  text-shadow: -2px 0 #ff00ff;
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim 2s infinite linear alternate-reverse;
}

.glitch::after {
  left: -2px;
  text-shadow: 2px 0 #00d4ff;
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
  0% {
    clip: rect(31px, 9999px, 94px, 0);
    transform: skew(0.3deg);
  }

  20% {
    clip: rect(62px, 9999px, 42px, 0);
    transform: skew(0.1deg);
  }

  40% {
    clip: rect(16px, 9999px, 78px, 0);
    transform: skew(0.4deg);
  }

  60% {
    clip: rect(81px, 9999px, 13px, 0);
    transform: skew(0.2deg);
  }

  80% {
    clip: rect(45px, 9999px, 92px, 0);
    transform: skew(0.5deg);
  }

  100% {
    clip: rect(53px, 9999px, 21px, 0);
    transform: skew(0.1deg);
  }
}

@keyframes glitch-anim2 {
  0% {
    clip: rect(65px, 9999px, 100px, 0);
    transform: translateX(1px);
  }

  20% {
    clip: rect(12px, 9999px, 54px, 0);
    transform: translateX(-1px);
  }

  40% {
    clip: rect(89px, 9999px, 23px, 0);
    transform: translateX(2px);
  }

  60% {
    clip: rect(34px, 9999px, 76px, 0);
    transform: translateX(-2px);
  }

  80% {
    clip: rect(57px, 9999px, 12px, 0);
    transform: translateX(1px);
  }

  100% {
    clip: rect(2px, 9999px, 88px, 0);
    transform: translateX(0);
  }
}

/* ── Header ──────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 13, 13, 0.9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  padding: 0 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right))
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0
}

.logo-icon {
  font-size: 22px;
  flex-shrink: 0
}

.logo-text {
  font-family: var(--fh);
  font-size: 21px;
  letter-spacing: 2px;
  line-height: 1;
  white-space: nowrap;
  color: var(--text)
}

.logo-text .slash {
  color: var(--accent);
  text-shadow: var(--glow-cyan-sm)
}

.logo-text .brand {
  color: var(--accent);
  text-shadow: var(--glow-cyan-sm)
}

.logo-sub {
  font-family: var(--fm);
  font-size: 8px;
  color: var(--dim);
  letter-spacing: 3px;
  margin-top: 2px
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 2s infinite;
  flex-shrink: 0
}

.live-dot.online {
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent)
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .3
  }
}

.live-label {
  font-family: var(--fm);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--dim);
  white-space: nowrap
}

.date-display {
  font-family: var(--fm);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 1px;
  padding: 3px 7px;
  border: 1px solid rgba(0, 212, 255, .2);
  border-radius: 4px;
  white-space: nowrap;
  text-shadow: var(--glow-cyan-sm)
}

/* ── Tab bar ─────────────────────────────────────────── */
.tab-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none
}

.tab-bar::-webkit-scrollbar {
  display: none
}

.tab-bar-inner {
  display: flex;
  padding: 0 16px;
  min-width: max-content
}

.tab {
  font-family: var(--fc);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 12px 16px;
  border: none;
  background: transparent;
  color: var(--dim);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all .15s;
  white-space: nowrap;
  min-height: var(--tap);
  display: flex;
  align-items: center;
  gap: 5px
}

.tab:hover {
  color: var(--text)
}

.tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  text-shadow: var(--glow-cyan-sm)
}

.tab-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: filter .15s
}

.tab.active .tab-icon {
  filter: drop-shadow(0 0 4px var(--accent))
}

/* ── Daily Dashboard ─────────────────────────────────── */
.daily-dashboard {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 16px 0;
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 12px
}

@media(max-width:700px) {
  .daily-dashboard {
    grid-template-columns: 1fr
  }
}

.dash-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  position: relative;
  overflow: hidden
}

.dash-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, .4), transparent)
}

.dash-label {
  font-family: var(--fm);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--dim);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 9px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--border)
}

.dash-post {
  cursor: pointer
}

.dash-post-title {
  font-family: var(--fc);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 5px;
  color: var(--text)
}

.dash-post-excerpt {
  font-size: 11px;
  color: var(--mid);
  line-height: 1.5;
  margin-bottom: 8px
}

.dash-post-cta {
  font-family: var(--fm);
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap .15s
}

.dash-post:hover .dash-post-cta {
  gap: 7px;
  text-shadow: var(--glow-cyan-sm)
}

.dash-hot-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px
}

@media(max-width:500px) {
  .dash-hot-cols {
    grid-template-columns: 1fr
  }
}

.dash-hot-col {}

.dash-hot-col-title {
  font-family: var(--fm);
  font-size: 8px;
  letter-spacing: 2px;
  color: var(--dim);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 7px
}

.dash-hot-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border)
}

.dash-hot-item:last-child {
  border-bottom: none
}

.dash-hot-rank {
  font-family: var(--fm);
  font-size: 10px;
  color: var(--accent);
  width: 18px;
  flex-shrink: 0;
  text-shadow: var(--glow-cyan-sm)
}

.dash-hot-info {
  flex: 1;
  min-width: 0
}

.dash-hot-name {
  font-family: var(--fc);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.dash-hot-sub {
  font-family: var(--fm);
  font-size: 9px;
  color: var(--dim);
  margin-top: 1px
}

/* ── Controls ────────────────────────────────────────── */
.controls-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch
}

.filter-group {
  display: flex;
  gap: 5px;
  flex-wrap: nowrap;
  flex-shrink: 0
}

.filter-btn {
  font-family: var(--fc);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: transparent;
  color: var(--dim);
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
  min-height: 36px
}

.filter-btn:hover {
  border-color: var(--border-b);
  color: var(--text)
}

.filter-btn.active {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--glow-cyan-sm)
}

.filter-btn[data-focus="yankees"].active,
.filter-btn[data-prop-team="147"].active {
  border-color: var(--yankees);
  color: var(--yankees);
  box-shadow: none
}

.filter-btn[data-focus="dodgers"].active,
.filter-btn[data-prop-team="119"].active {
  border-color: var(--dodgers);
  color: var(--dodgers);
  box-shadow: none
}

.filter-btn[data-news-cat].active {
  border-color: var(--accent);
  color: var(--accent)
}

.refresh-btn {
  font-family: var(--fc);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 6px 12px;
  border: 1px solid var(--border-b);
  border-radius: 4px;
  background: transparent;
  color: var(--mid);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all .15s;
  min-height: 36px;
  flex-shrink: 0
}

.refresh-btn:hover {
  color: var(--accent);
  border-color: rgba(0, 212, 255, .3)
}

.refresh-btn.spinning .refresh-icon {
  animation: spin .7s linear infinite
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

.btn-label {
  display: none
}

.pill-group {
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
  flex-shrink: 0
}

.pill {
  font-family: var(--fm);
  font-size: 10px;
  letter-spacing: 1px;
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: transparent;
  color: var(--dim);
  cursor: pointer;
  transition: all .15s;
  min-height: 32px;
  white-space: nowrap
}

.pill:hover {
  border-color: var(--border-b);
  color: var(--text)
}

.pill.active {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--glow-cyan-sm)
}

/* ── Layout ──────────────────────────────────────────── */
main {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1
}

.tab-content {
  display: none
}

.tab-content.active {
  display: block
}

.tab-body {
  padding: 16px 16px 110px
}

/* ── Premium Banner ─────────────────────────────────── */
.premium-banner {
  background: linear-gradient(135deg, rgba(123, 47, 255, 0.1), rgba(75, 0, 130, 0.2));
  border: 1px solid rgba(123, 47, 255, 0.5);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all .2s;
  box-shadow: 0 0 20px rgba(123, 47, 255, 0.15)
}

.premium-banner:hover {
  border-color: rgba(123, 47, 255, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(123, 47, 255, 0.25)
}

.premium-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(123, 47, 255, 0.1) 60deg, transparent 120deg);
  animation: shimmer 4s linear infinite;
  pointer-events: none
}

@keyframes shimmer {
  to {
    transform: rotate(360deg)
  }
}

.premium-banner-left {
  position: relative;
  z-index: 1;
  min-width: 0
}

.premium-banner-crown {
  font-size: 24px;
  margin-bottom: 3px;
  filter: drop-shadow(0 0 8px var(--premium))
}

.premium-banner-title {
  font-family: var(--fh);
  font-size: 20px;
  letter-spacing: 2px;
  color: #c4a0ff;
  text-shadow: 0 0 10px rgba(123, 47, 255, 0.5)
}

.premium-banner-sub {
  font-size: 11px;
  color: rgba(196, 160, 255, 0.6);
  margin-top: 1px
}

.premium-banner-teaser {
  position: relative;
  z-index: 1;
  text-align: center;
  flex-shrink: 0
}

.premium-banner-conf {
  font-family: var(--fh);
  font-size: 18px;
  letter-spacing: 1px;
  color: var(--accent2)
}

.premium-banner-game {
  font-size: 10px;
  color: var(--dim);
  margin-top: 1px;
  font-family: var(--fm)
}

.premium-banner-btn {
  position: relative;
  z-index: 1;
  background: var(--accent);
  color: #fff;
  font-family: var(--fc);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
  flex-shrink: 0;
  min-height: var(--tap);
  box-shadow: var(--shadow-md)
}

.premium-banner-btn:hover {
  background: var(--accent2);
  transform: scale(1.05)
}

/* ── Picks grid ──────────────────────────────────────── */
.picks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 16px
}

/* ── Pick card ───────────────────────────────────────── */
.pick-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all .2s;
  position: relative;
  box-shadow: var(--shadow-sm)
}

@media(hover:hover) {
  .pick-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px)
  }
}

.pick-card.priority-yankees {
  border-color: rgba(196, 30, 58, .4)
}

.pick-card.priority-dodgers {
  border-color: rgba(30, 111, 232, .4)
}

/* Subtle top accent line per card */
.pick-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, .4), transparent)
}

.priority-badge {
  position: absolute;
  top: 0;
  right: 0;
  font-family: var(--fc);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 0 8px 0 6px
}

.priority-badge.yankees {
  background: var(--yankees);
  color: #fff
}

.priority-badge.dodgers {
  background: var(--dodgers);
  color: #fff
}

.card-header {
  padding: 13px 14px 11px;
  border-bottom: 1px solid var(--border)
}

.matchup-label {
  font-family: var(--fm);
  font-size: 9px;
  color: var(--dim);
  letter-spacing: 2px;
  margin-bottom: 5px
}

.matchup-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px
}

.team-name {
  font-family: var(--fc);
  font-size: 17px;
  font-weight: 900;
  flex: 1;
  line-height: 1.1
}

.team-name.home {
  text-align: right
}

.vs-badge {
  font-family: var(--fm);
  font-size: 10px;
  color: var(--dim);
  padding: 2px 5px;
  border: 1px solid var(--border);
  border-radius: 4px;
  flex-shrink: 0
}

.game-time {
  font-family: var(--fm);
  font-size: 10px;
  color: var(--dim);
  margin-top: 5px
}

.card-body {
  padding: 12px 14px
}

.pick-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px
}

.pick-label {
  font-family: var(--fm);
  font-size: 9px;
  color: var(--dim);
  letter-spacing: 2px;
  margin-bottom: 3px
}

.pick-value {
  font-family: var(--fc);
  font-size: 20px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  text-shadow: var(--glow-cyan-sm)
}

.pick-prob {
  font-family: var(--fh);
  font-size: 26px;
  color: var(--text);
  line-height: 1;
  text-align: right
}

.pick-prob-label {
  font-family: var(--fm);
  font-size: 9px;
  color: var(--dim);
  letter-spacing: 1px;
  text-align: right;
  margin-top: 2px
}

.conf-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px
}

.conf-label-sm {
  font-family: var(--fm);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--dim)
}

.conf-badge {
  font-family: var(--fc);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px
}

.conf-badge.elite {
  color: var(--green);
  text-shadow: 0 0 6px rgba(0, 255, 148, .3)
}

.conf-badge.high {
  color: var(--accent);
  text-shadow: var(--glow-cyan-sm)
}

.conf-badge.medium {
  color: var(--orange)
}

.conf-badge.low {
  color: var(--red)
}

.conf-bar {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 10px
}

.conf-fill {
  height: 100%;
  border-radius: 2px;
  transition: width .8s cubic-bezier(.4, 0, .2, 1)
}

.conf-fill.elite {
  background: var(--green);
  box-shadow: 0 0 4px rgba(0, 255, 148, .5)
}

.conf-fill.high {
  background: var(--accent);
  box-shadow: 0 0 4px rgba(0, 212, 255, .5)
}

.conf-fill.medium {
  background: var(--orange)
}

.conf-fill.low {
  background: var(--red)
}

.reasoning {
  margin-bottom: 10px
}

.reasoning-item {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  font-size: 11px;
  color: var(--mid);
  line-height: 1.4;
  margin-bottom: 4px
}

.reasoning-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 4px;
  flex-shrink: 0;
  box-shadow: 0 0 4px var(--accent)
}

.admin-analysis-box {
  background: rgba(0, 212, 255, .04);
  border: 1px solid rgba(0, 212, 255, .15);
  border-radius: 5px;
  padding: 8px 10px;
  margin-bottom: 10px;
  border-left: 2px solid var(--accent)
}

.admin-analysis-label {
  font-family: var(--fm);
  font-size: 9px;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 3px
}

.admin-analysis-text {
  font-size: 12px;
  color: var(--text);
  line-height: 1.5
}

.props-section {
  border-top: 1px solid var(--border);
  padding-top: 8px
}

.props-title {
  font-family: var(--fm);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--dim);
  margin-bottom: 5px
}

.prop-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 8px;
  background: var(--surface2);
  border-radius: 4px;
  margin-bottom: 4px;
  border: 1px solid var(--border)
}

.prop-player {
  font-family: var(--fc);
  font-size: 13px;
  font-weight: 700
}

.prop-name {
  font-size: 10px;
  color: var(--mid);
  margin-top: 1px
}

.prop-odds {
  font-family: var(--fm);
  font-size: 11px;
  color: var(--accent);
  font-weight: 500
}

.prop-conf {
  font-size: 10px;
  color: var(--dim);
  margin-top: 1px;
  text-align: right
}

.card-footer {
  padding: 9px 14px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 5px
}

.card-btn {
  flex: 1;
  font-family: var(--fc);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 7px 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: all .15s;
  border: none;
  text-align: center;
  min-height: 36px
}

.card-btn-primary {
  background: var(--accent);
  color: #000
}

.card-btn-primary:hover {
  box-shadow: var(--glow-cyan)
}

.card-btn-secondary {
  background: var(--surface2);
  color: var(--mid);
  border: 1px solid var(--border)
}

.card-btn-secondary:hover {
  border-color: rgba(0, 212, 255, .3);
  color: var(--text)
}

.card-btn-facts {
  background: transparent;
  color: var(--mid);
  border: 1px solid var(--border)
}

.card-btn-facts:hover {
  border-color: rgba(0, 212, 255, .3);
  color: var(--text)
}

/* ── Props tab ───────────────────────────────────────── */
.props-team-section {
  margin-bottom: 24px
}

.props-team-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap
}

.props-team-name {
  font-family: var(--fh);
  font-size: 26px;
  letter-spacing: 2px
}

.props-team-name.nyy {
  color: var(--yankees)
}

.props-team-name.lad {
  color: var(--dodgers)
}

.props-team-name.other {
  color: var(--accent)
}

.props-team-game {
  font-family: var(--fm);
  font-size: 10px;
  color: var(--dim);
  letter-spacing: 1px
}

.props-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 11px
}

.prop-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 13px;
  transition: border-color .15s, box-shadow .15s;
  position: relative;
  overflow: hidden
}

@media(hover:hover) {
  .prop-card:hover {
    border-color: rgba(0, 212, 255, .2);
    box-shadow: 0 0 15px rgba(0, 212, 255, .05)
  }
}

.prop-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px
}

.prop-card.nyy::before {
  background: var(--yankees)
}

.prop-card.lad::before {
  background: var(--dodgers)
}

.prop-card.other::before {
  background: linear-gradient(90deg, var(--accent), var(--accent2))
}

.prop-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 7px
}

.prop-card-player {
  font-family: var(--fc);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.1
}

.prop-card-odds {
  font-family: var(--fh);
  font-size: 26px;
  color: var(--accent);
  line-height: 1;
  text-shadow: var(--glow-cyan-sm)
}

.prop-card-type {
  display: inline-block;
  font-family: var(--fm);
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--text);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  margin-bottom: 6px
}

.prop-card-stat {
  font-size: 11px;
  color: var(--mid);
  margin-bottom: 6px
}

.prop-card-ops {
  font-family: var(--fm);
  font-size: 10px;
  color: var(--dim)
}

.conf-tag {
  font-family: var(--fc);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 2px 6px;
  border-radius: 3px
}

.conf-tag.elite {
  background: rgba(0, 255, 148, .1);
  color: var(--green);
  border: 1px solid rgba(0, 255, 148, .3)
}

.conf-tag.high {
  background: rgba(0, 212, 255, .1);
  color: var(--accent);
  border: 1px solid rgba(0, 212, 255, .3)
}

.conf-tag.medium {
  background: rgba(255, 144, 0, .1);
  color: var(--orange);
  border: 1px solid rgba(255, 144, 0, .3)
}

.conf-tag.low {
  background: rgba(255, 45, 85, .1);
  color: var(--red);
  border: 1px solid rgba(255, 45, 85, .3)
}

/* ── News ────────────────────────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 16px
}

.news-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
  cursor: pointer;
  position: relative
}

@media(hover:hover) {
  .news-card:hover {
    border-color: rgba(0, 212, 255, .25);
    box-shadow: 0 0 20px rgba(0, 212, 255, .05)
  }
}

.news-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, .3), transparent)
}

.news-card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  background: var(--surface2)
}

.news-card-img-placeholder {
  width: 100%;
  height: 120px;
  background: linear-gradient(135deg, var(--surface2), var(--bg));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--dim)
}

.news-card-cat {
  font-family: var(--fm);
  font-size: 9px;
  letter-spacing: 2px;
  padding: 10px 14px 0;
  color: var(--dim)
}

.news-card-cat.news {
  color: var(--accent2)
}

.news-card-cat.prediction {
  color: var(--green)
}

.news-card-cat.blog {
  color: var(--accent)
}

.news-card-title {
  font-family: var(--fc);
  font-size: 20px;
  font-weight: 700;
  padding: 7px 14px;
  line-height: 1.2
}

.news-card-excerpt {
  font-size: 12px;
  color: var(--mid);
  padding: 0 14px 10px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden
}

.news-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 14px;
  border-top: 1px solid var(--border)
}

.news-card-date {
  font-family: var(--fm);
  font-size: 10px;
  color: var(--dim)
}

.news-card-tags {
  display: flex;
  gap: 4px
}

.news-tag {
  font-family: var(--fm);
  font-size: 9px;
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--dim)
}

.post-view {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  max-width: 680px;
  margin: 0 auto
}

.post-view-img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 16px;
  display: block
}

.post-view-back {
  font-family: var(--fc);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--dim);
  cursor: pointer;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  transition: color .15s
}

.post-view-back:hover {
  color: var(--accent)
}

.post-view-cat {
  font-family: var(--fm);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--dim);
  margin-bottom: 8px
}

.post-view-title {
  font-family: var(--fh);
  font-size: 28px;
  letter-spacing: 1px;
  line-height: 1.2;
  margin-bottom: 12px
}

.post-view-date {
  font-family: var(--fm);
  font-size: 10px;
  color: var(--dim);
  margin-bottom: 18px
}

.post-view-body {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  white-space: pre-wrap
}

/* ── History ─────────────────────────────────────────── */
.hist-filters {
  flex-wrap: wrap;
  gap: 6px
}

.hist-select {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--fb);
  font-size: 12px;
  padding: 6px 10px;
  outline: none;
  transition: border-color .15s;
  cursor: pointer;
  min-height: 36px
}

.hist-select:focus {
  border-color: rgba(0, 212, 255, .3)
}

.hist-summary-pub {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 16px
}

.hsp-stat {
  text-align: center
}

.hsp-val {
  font-family: var(--fh);
  font-size: 26px;
  color: var(--accent);
  text-shadow: var(--glow-cyan-sm)
}

.hsp-lbl {
  font-family: var(--fm);
  font-size: 9px;
  color: var(--dim);
  letter-spacing: 1px;
  margin-top: 2px
}

.hist-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch
}

.hist-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 400px
}

.hist-table th {
  font-family: var(--fm);
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--dim);
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap
}

.hist-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  font-size: 12px
}

.hist-table tr:last-child td {
  border-bottom: none
}

.hist-table tr:hover td {
  background: rgba(0, 212, 255, .02)
}

.result-w {
  color: var(--green);
  font-family: var(--fc);
  font-size: 14px;
  font-weight: 700
}

.result-l {
  color: var(--red);
  font-family: var(--fc);
  font-size: 14px;
  font-weight: 700
}

/* ── AI Chat ─────────────────────────────────────────── */
.ai-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 14px;
  height: calc(100dvh - 240px);
  min-height: 460px
}

.ai-sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto
}

.ai-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden
}

.ai-panel::before {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, .3), transparent)
}

.ai-panel-label {
  font-family: var(--fm);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--dim);
  padding: 8px 12px;
  border-bottom: 1px solid var(--border)
}

.ai-context-body {
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--mid);
  max-height: 160px;
  overflow-y: auto
}

.ctx-game {
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border)
}

.ctx-game:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0
}

.ctx-matchup {
  font-family: var(--fc);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px
}

.ctx-pick {
  font-family: var(--fm);
  font-size: 10px;
  color: var(--accent)
}

.ctx-dim {
  color: var(--dim);
  font-size: 11px
}

.suggestions {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 6px
}

.sug-btn {
  font-family: var(--fb);
  font-size: 11px;
  text-align: left;
  padding: 7px 8px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--mid);
  cursor: pointer;
  transition: all .12s;
  line-height: 1.3;
  min-height: var(--tap)
}

.sug-btn:hover {
  border-color: rgba(0, 212, 255, .3);
  color: var(--text)
}

.ai-chat-col {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  min-height: 0;
  position: relative
}

.ai-chat-col::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, .4), transparent)
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0
}

.chat-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  text-align: center;
  height: 100%
}

.chat-welcome-icon {
  font-size: 40px;
  margin-bottom: 10px
}

.chat-welcome-title {
  font-family: var(--fh);
  font-size: 20px;
  letter-spacing: 2px;
  margin-bottom: 6px;
  color: var(--accent);
  text-shadow: var(--glow-cyan-sm)
}

.chat-welcome-sub {
  font-size: 12px;
  color: var(--mid);
  max-width: 280px;
  line-height: 1.6
}

.chat-msg {
  display: flex;
  gap: 8px;
  animation: fadeSlideUp .3s ease both
}

.chat-msg.user {
  flex-direction: row-reverse
}

.chat-bubble {
  max-width: 82%;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.6
}

.chat-msg.user .chat-bubble {
  background: var(--accent);
  color: #fff;
  font-weight: 500;
  border-radius: 12px 2px 12px 12px
}

.chat-msg.ai .chat-bubble {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 2px 12px 12px 12px;
  box-shadow: var(--shadow-sm)
}

.chat-msg.ai .chat-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1px solid rgba(0, 212, 255, .3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 2px
}

.chat-typing {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 9px 13px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 2px 8px 8px 8px;
  width: fit-content
}

.chat-typing span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: typing 1.2s infinite
}

.chat-typing span:nth-child(2) {
  animation-delay: .2s
}

.chat-typing span:nth-child(3) {
  animation-delay: .4s
}

@keyframes typing {

  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: .4
  }

  30% {
    transform: translateY(-4px);
    opacity: 1
  }
}

.chat-input-row {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid var(--border);
  padding-bottom: max(10px, env(safe-area-inset-bottom))
}

.chat-input {
  flex: 1;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--fb);
  font-size: 14px;
  padding: 10px 12px;
  outline: none;
  transition: border-color .15s;
  min-height: var(--tap);
  -webkit-appearance: none
}

.chat-input:focus {
  border-color: rgba(0, 212, 255, .4);
  box-shadow: 0 0 8px rgba(0, 212, 255, .08)
}

.chat-input::placeholder {
  color: var(--dim)
}

.chat-send {
  width: var(--tap);
  height: var(--tap);
  border-radius: 6px;
  background: var(--accent);
  border: none;
  color: #000;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
  flex-shrink: 0
}

.chat-send:hover {
  box-shadow: var(--glow-cyan)
}

.chat-send:disabled {
  background: var(--border);
  color: var(--dim);
  cursor: not-allowed;
  box-shadow: none
}

/* ── Facts Drawer ────────────────────────────────────── */
.facts-drawer {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: none;
  align-items: flex-end
}

.facts-drawer.open {
  display: flex
}

.facts-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .75);
  backdrop-filter: blur(4px)
}

.facts-panel {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border-top: 1px solid rgba(0, 212, 255, .2);
  border-radius: 16px 16px 0 0;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  max-height: 88dvh;
  display: flex;
  flex-direction: column;
  animation: slideUp .3s ease;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -10px 40px rgba(0, 212, 255, .05)
}

@keyframes slideUp {
  from {
    transform: translateY(100%)
  }

  to {
    transform: translateY(0)
  }
}

.facts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border)
}

.facts-team-badge {
  font-family: var(--fh);
  font-size: 20px;
  letter-spacing: 2px
}

.facts-close {
  background: none;
  border: none;
  color: var(--dim);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  min-height: var(--tap);
  min-width: var(--tap);
  display: flex;
  align-items: center;
  justify-content: center
}

.facts-close:hover {
  color: var(--text)
}

.facts-body {
  overflow-y: auto;
  padding: 16px 18px 28px;
  -webkit-overflow-scrolling: touch
}

.facts-section {
  margin-bottom: 18px
}

.facts-section-title {
  font-family: var(--fm);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--dim);
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 5px
}

.facts-season-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-bottom: 4px
}

.facts-season-stat {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 9px 10px;
  text-align: center
}

.facts-season-val {
  font-family: var(--fh);
  font-size: 20px;
  color: var(--accent);
  text-shadow: var(--glow-cyan-sm)
}

.facts-season-lbl {
  font-family: var(--fm);
  font-size: 9px;
  color: var(--dim);
  letter-spacing: 1px;
  margin-top: 2px
}

.facts-streak {
  font-family: var(--fc);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  padding: 5px;
  background: var(--surface2);
  border-radius: 4px;
  margin-top: 5px
}

.facts-record-item {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  font-size: 12px;
  color: var(--mid);
  line-height: 1.5;
  margin-bottom: 5px
}

.facts-record-dot {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
  text-shadow: var(--glow-cyan-sm)
}

.facts-legend-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 7px 9px;
  background: var(--surface2);
  border-radius: 5px;
  margin-bottom: 4px;
  border: 1px solid var(--border);
  gap: 8px
}

.facts-legend-name {
  font-family: var(--fc);
  font-size: 14px;
  font-weight: 700
}

.facts-legend-era {
  font-family: var(--fm);
  font-size: 9px;
  color: var(--dim);
  flex-shrink: 0
}

.facts-legend-note {
  font-size: 11px;
  color: var(--mid);
  margin-top: 1px
}

.facts-star-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  background: var(--surface2);
  border-radius: 5px;
  margin-bottom: 4px;
  border: 1px solid var(--border)
}

.facts-star-pos {
  font-family: var(--fm);
  font-size: 10px;
  color: var(--accent);
  width: 26px;
  flex-shrink: 0;
  text-shadow: var(--glow-cyan-sm)
}

.facts-star-name {
  font-family: var(--fc);
  font-size: 14px;
  font-weight: 700
}

.facts-star-note {
  font-size: 11px;
  color: var(--mid);
  margin-top: 1px
}

.facts-h2h-box {
  background: linear-gradient(135deg, rgba(196, 30, 58, .08), rgba(30, 111, 232, .08));
  border: 1px solid var(--border-b);
  border-radius: 8px;
  padding: 12px;
  text-align: center
}

.facts-h2h-score {
  font-family: var(--fh);
  font-size: 36px;
  letter-spacing: 4px;
  margin-bottom: 3px
}

.facts-h2h-label {
  font-family: var(--fm);
  font-size: 9px;
  color: var(--dim);
  letter-spacing: 2px
}

.facts-h2h-note {
  font-size: 12px;
  color: var(--mid);
  margin-top: 6px
}

/* ── Premium modal ───────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  padding-bottom: max(16px, env(safe-area-inset-bottom))
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .92);
  backdrop-filter: blur(4px)
}

.modal-box {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--border-b);
  border-radius: 10px;
  padding: 20px;
  max-width: 480px;
  width: 100%;
  max-height: 92dvh;
  overflow-y: auto
}

.premium-modal-box {
  background: linear-gradient(160deg, #0a0318, #0b0d18 60%);
  border-color: rgba(123, 47, 255, .5) !important;
  max-width: 420px;
  box-shadow: 0 0 40px rgba(123, 47, 255, .15)
}

.modal-close-x {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: var(--dim);
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  z-index: 1;
  min-height: var(--tap);
  min-width: var(--tap);
  display: flex;
  align-items: center;
  justify-content: center
}

.modal-close-x:hover {
  color: var(--text)
}

.premium-header {
  text-align: center;
  margin-bottom: 18px
}

.premium-crown {
  font-size: 36px;
  margin-bottom: 7px
}

.premium-title {
  font-family: var(--fh);
  font-size: 24px;
  letter-spacing: 3px;
  color: #c4a0ff
}

.premium-subtitle {
  font-size: 12px;
  color: rgba(196, 160, 255, .5);
  margin-top: 3px
}

.premium-teaser {
  background: rgba(123, 47, 255, .08);
  border: 1px solid rgba(123, 47, 255, .25);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  margin-bottom: 14px
}

.premium-teaser-conf {
  font-family: var(--fh);
  font-size: 18px;
  color: #c4a0ff;
  letter-spacing: 1px
}

.premium-teaser-game {
  font-family: var(--fm);
  font-size: 10px;
  color: rgba(196, 160, 255, .5);
  margin-top: 3px;
  letter-spacing: 1px
}

.premium-includes {
  margin-bottom: 16px
}

.premium-include-title {
  font-family: var(--fm);
  font-size: 9px;
  letter-spacing: 2px;
  color: rgba(196, 160, 255, .4);
  margin-bottom: 7px
}

.premium-include-item {
  font-size: 12px;
  color: rgba(196, 160, 255, .75);
  padding: 4px 0;
  border-bottom: 1px solid rgba(123, 47, 255, .12)
}

.premium-include-item:last-child {
  border-bottom: none
}

.premium-price-tag {
  font-family: var(--fh);
  font-size: 34px;
  color: #c4a0ff;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: 1px
}

.premium-price-tag span {
  font-size: 14px;
  color: rgba(196, 160, 255, .4)
}

.premium-input {
  width: 100%;
  background: rgba(0, 0, 0, .3);
  border: 1px solid rgba(123, 47, 255, .3);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--fb);
  font-size: 14px;
  padding: 11px 12px;
  outline: none;
  transition: border-color .15s;
  margin-bottom: 9px;
  -webkit-appearance: none;
  min-height: var(--tap)
}

.premium-input:focus {
  border-color: rgba(123, 47, 255, .7)
}

.premium-input::placeholder {
  color: rgba(196, 160, 255, .25)
}

.token-input {
  font-family: var(--fm);
  font-size: 16px;
  text-align: center;
  letter-spacing: 4px
}

.premium-pay-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--premium), #4a1aaa);
  color: #fff;
  font-family: var(--fc);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 13px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all .15s;
  margin-bottom: 9px;
  min-height: var(--tap);
  box-shadow: 0 0 15px var(--premium-glow)
}

.premium-pay-btn:hover {
  box-shadow: 0 0 25px var(--premium-glow)
}

.premium-divider {
  text-align: center;
  font-size: 11px;
  color: rgba(196, 160, 255, .3);
  margin: 5px 0
}

.premium-unlock-btn {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(123, 47, 255, .3);
  color: rgba(196, 160, 255, .6);
  font-family: var(--fc);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all .15s;
  min-height: var(--tap)
}

.premium-unlock-btn:hover {
  border-color: rgba(123, 47, 255, .6);
  color: #c4a0ff
}

.premium-back-btn {
  width: 100%;
  background: transparent;
  border: none;
  color: rgba(196, 160, 255, .3);
  font-size: 12px;
  cursor: pointer;
  padding: 6px;
  margin-top: 3px;
  min-height: 36px
}

.premium-back-btn:hover {
  color: #c4a0ff
}

.unlock-error {
  background: rgba(255, 45, 85, .08);
  border: 1px solid rgba(255, 45, 85, .25);
  border-radius: 5px;
  padding: 9px 12px;
  font-size: 12px;
  color: var(--red);
  margin-top: 7px
}

.premium-reveal {
  background: rgba(123, 47, 255, .06);
  border: 1px solid rgba(123, 47, 255, .25);
  border-radius: 8px;
  padding: 14px
}

.premium-reveal-winner {
  font-family: var(--fh);
  font-size: 30px;
  color: #c4a0ff;
  letter-spacing: 2px;
  text-align: center;
  margin-bottom: 3px
}

.premium-reveal-prob {
  font-family: var(--fm);
  font-size: 13px;
  color: rgba(196, 160, 255, .6);
  text-align: center;
  margin-bottom: 10px
}

.premium-reveal-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(123, 47, 255, .12);
  font-size: 12px;
  gap: 10px
}

.premium-reveal-row:last-child {
  border-bottom: none
}

.premium-reveal-key {
  color: rgba(196, 160, 255, .4);
  font-family: var(--fm);
  font-size: 10px;
  letter-spacing: 1px;
  margin-top: 1px;
  flex-shrink: 0
}

.premium-reveal-val {
  color: #c4a0ff;
  font-weight: 600;
  text-align: right
}

.premium-reveal-reasons {
  margin-top: 10px
}

.premium-reveal-reason {
  display: flex;
  gap: 6px;
  font-size: 11px;
  color: rgba(196, 160, 255, .6);
  margin-bottom: 4px;
  line-height: 1.4
}

.premium-admin-analysis {
  background: rgba(0, 212, 255, .04);
  border: 1px solid rgba(0, 212, 255, .15);
  border-radius: 6px;
  padding: 10px;
  margin-top: 10px;
  border-left: 2px solid var(--accent)
}

.premium-admin-label {
  font-family: var(--fm);
  font-size: 9px;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 5px;
  text-shadow: var(--glow-cyan-sm)
}

.premium-admin-text {
  font-size: 12px;
  color: var(--text);
  line-height: 1.6
}

/* ── Image modal ─────────────────────────────────────── */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px
}

.modal-title {
  font-family: var(--fc);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--dim)
}

.modal-close {
  background: none;
  border: none;
  color: var(--dim);
  font-size: 16px;
  cursor: pointer;
  width: var(--tap);
  height: var(--tap);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px
}

.modal-close:hover {
  color: var(--text)
}

#exportCanvas {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  border: 1px solid var(--border)
}

.modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px
}

.dl-btn,
.copy-btn {
  flex: 1;
  font-family: var(--fc);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all .15s;
  border: none;
  min-height: var(--tap)
}

.dl-btn {
  background: var(--accent);
  color: #000
}

.dl-btn:hover {
  box-shadow: var(--glow-cyan)
}

.copy-btn {
  background: var(--surface2);
  color: var(--mid);
  border: 1px solid var(--border)
}

.copy-btn:hover {
  border-color: rgba(0, 212, 255, .3);
  color: var(--text)
}

.modal-hint {
  font-family: var(--fm);
  font-size: 10px;
  color: var(--dim);
  letter-spacing: 1px;
  text-align: center;
  margin-top: 7px
}

/* ── States ──────────────────────────────────────────── */
.loader,
.empty-state,
.error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center
}

.loader-ball {
  font-size: 38px;
  animation: bounce .6s infinite alternate
}

@keyframes bounce {
  from {
    transform: translateY(0)
  }

  to {
    transform: translateY(-12px)
  }
}

.loader-text {
  font-family: var(--fh);
  font-size: 18px;
  letter-spacing: 3px;
  margin-top: 12px;
  color: var(--accent);
  text-shadow: var(--glow-cyan-sm)
}

.loader-sub {
  font-family: var(--fm);
  font-size: 10px;
  color: var(--dim);
  margin-top: 4px;
  letter-spacing: 1px
}

.empty-icon,
.error-icon {
  font-size: 44px
}

.empty-title,
.error-title {
  font-family: var(--fh);
  font-size: 22px;
  letter-spacing: 2px;
  margin-top: 12px
}

.error-sub {
  font-size: 13px;
  color: var(--dim);
  margin-top: 5px;
  max-width: 280px
}

.retry-btn {
  margin-top: 14px;
  font-family: var(--fc);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 9px 20px;
  border: 1px solid rgba(0, 212, 255, .3);
  background: transparent;
  color: var(--accent);
  border-radius: 4px;
  cursor: pointer;
  min-height: var(--tap)
}

.retry-btn:hover {
  border-color: var(--accent);
  box-shadow: var(--glow-cyan-sm)
}

/* ── Footer ──────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 24px 16px;
  position: relative;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(12px);
  z-index: 10;
  margin-top: 40px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px
}

.footer-brand {
  font-family: var(--fh);
  font-size: 14px;
  letter-spacing: 3px;
  color: var(--accent);
  text-shadow: var(--glow-cyan-sm)
}

.footer-disclaimer {
  font-family: var(--fm);
  font-size: 9px;
  color: var(--dim);
  letter-spacing: 1px
}

.footer-admin {
  color: var(--dim);
  text-decoration: none;
  font-size: 13px;
  opacity: .3;
  transition: opacity .15s;
  padding: 4px
}

.footer-admin:hover {
  opacity: 1;
  color: var(--accent)
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(10px)
  }

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

/* ── Responsive ──────────────────────────────────────── */
@media(min-width:640px) {
  .btn-label {
    display: inline
  }

  .tab-body {
    padding: 20px 20px 100px
  }

  header {
    padding: 0 20px
  }
}

@media(min-width:1024px) {
  .tab-body {
    padding: 24px 24px 100px
  }

  header {
    padding: 0 24px
  }

  .ai-layout {
    grid-template-columns: 250px 1fr
  }

  .ai-sidebar {
    display: flex
  }
}

@media(max-width:639px) {
  .ai-layout {
    grid-template-columns: 1fr;
    height: calc(100dvh - 220px)
  }

  .ai-sidebar {
    display: none
  }

  .picks-grid {
    grid-template-columns: 1fr
  }

  .footer-disclaimer {
    display: none
  }

  .date-display {
    display: none
  }

  .logo-sub {
    display: none
  }

  .premium-banner {
    flex-direction: column;
    text-align: center;
    gap: 10px
  }

  .premium-banner-btn {
    width: 100%
  }

  .hist-filters {
    flex-direction: column;
    align-items: stretch
  }

  .hist-select {
    width: 100%
  }

  /* Player Radar Mobile Adaptatauions */
  #radarResults .dash-section {
    padding: 15px !important;
    gap: 12px !important;
  }

  #radarResults .dash-section:first-of-type {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  #radarPlayerName {
    font-size: 1.4rem !important;
    text-align: center !important;
  }

  #radarPlayerMeta {
    font-size: 0.75rem !important;
    text-align: center !important;
    margin-bottom: 8px !important;
  }

  #radarResults .stat-card {
    padding: 6px 4px !important;
  }

  #radarResults .stat-card div:first-child {
    font-size: 0.55rem !important;
  }

  #radarResults .stat-card div:last-child {
    font-size: 0.9rem !important;
  }

  #radarSeasonStatsGrid {
    gap: 8px !important;
  }

  #radarTableHead th,
  #radarTableBody td {
    padding: 8px 4px !important;
    font-size: 0.75rem !important;
  }

  .history-table {
    min-width: 100% !important;
  }
}

@media(max-width:380px) {
  .tab {
    font-size: 11px;
    padding: 10px 12px;
    letter-spacing: 1px
  }

  .card-footer {
    flex-wrap: wrap
  }

  .card-btn {
    min-width: calc(50% - 4px)
  }
}

/* ── Extra Responsive Fixes ──────────────────────────── */
@media(max-width:600px) {
  .picks-grid {
    grid-template-columns: 1fr
  }

  .tab-body {
    padding: 12px 10px 100px
  }

  .controls-bar {
    padding: 8px 10px;
    flex-wrap: wrap;
    gap: 6px
  }

  .filter-group {
    flex-wrap: wrap
  }

  .pill-group {
    flex-wrap: wrap
  }

  .props-grid {
    grid-template-columns: 1fr
  }

  .daily-dashboard {
    padding: 10px 10px 0
  }

  /* Trends responsive */
  .trend-card {
    padding: 12px !important
  }
}

@media(min-width:601px) and (max-width:900px) {
  .picks-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr))
  }
}