/* World Cup Pool 2026 — Premium styles (ref: localhost/wc/) */

:root {
  --gold: #F4B400;
  --gold-light: #FFD54F;
  --gold-dark: #C49000;
  --blue: #0A3D91;
  --green: #00C853;
  --dark: #111827;
  --dark-card: #1a2332;
}

* { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background:
    radial-gradient(ellipse 120% 70% at 50% -10%, rgba(10, 61, 145, 0.42) 0%, transparent 52%),
    radial-gradient(ellipse 60% 40% at 100% 80%, rgba(244, 180, 0, 0.07) 0%, transparent 50%),
    linear-gradient(165deg, #0a1628 0%, #0e2240 38%, #111827 72%, #0f1a2e 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Box layout */
.layout-boxed .site-box-outer {
  max-width: 1380px;
  margin: 0 auto;
  padding: 18px;
  min-height: 100vh;
  background: transparent;
}

.layout-boxed .site-box {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(10, 61, 145, 0.22) 0%, transparent 48%),
    linear-gradient(180deg, #0a1628 0%, #0e2240 30%, #111827 100%);
  border: 1px solid rgba(244, 180, 0, 0.22);
  border-radius: 22px;
  overflow: hidden;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(10, 61, 145, 0.15) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
}

.layout-boxed #navbar {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
}

.layout-boxed .site-header {
  position: sticky;
  top: 0;
  z-index: 300;
}

/* Header / footer / hero full-width background images (inside box) */
.site-header,
.site-footer,
.hero-section {
  position: relative;
  isolation: isolate;
}

.site-header-bg,
.site-footer-bg,
.hero-section-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  pointer-events: none;
}

.hero-section {
  z-index: 1;
  overflow: hidden;
}

.hero-section-bg {
  background-image: var(--hero-bg-image, none);
}

.hero-section-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, var(--hero-overlay, 0.45));
}

.hero-section:not(.has-hero-bg) .hero-section-bg {
  display: none;
}

.hero-fx-layer {
  pointer-events: none !important;
  z-index: 2;
}

.hero-section .relative.z-10 {
  z-index: 10;
}

.site-header-bg {
  background-image: var(--header-bg-image, none);
}

.site-header-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, var(--header-overlay, 0.55));
}

.site-footer-bg {
  background-image: var(--footer-bg-image, none);
}

.site-footer-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 24, var(--footer-overlay, 0.65));
}

.site-header-inner,
.site-footer-inner {
  position: relative;
  z-index: 2;
}

.site-header {
  z-index: 300;
}

.site-header:not(.has-header-bg) .site-header-bg {
  background: linear-gradient(180deg, rgba(10, 22, 40, 0.95) 0%, rgba(17, 24, 39, 0.92) 100%);
}

.site-header:not(.has-header-bg) .site-header-bg::after {
  background: rgba(17, 24, 39, 0.35);
}

.site-footer:not(.has-footer-bg) .site-footer-bg {
  background: #0a0f18;
}

.site-footer:not(.has-footer-bg) .site-footer-bg::after {
  background: transparent;
}

.hero-worldcup-wrap {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 0.5rem 0;
}

.hero-worldcup-img {
  display: block;
  width: clamp(260px, 46vw, 520px);
  max-width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 28px rgba(244, 180, 0, 0.55));
}

.font-display { font-family: 'Space Grotesk', 'Inter', sans-serif; }

.text-gradient-gold {
  background: linear-gradient(135deg, #FFD54F 0%, #F4B400 40%, #C49000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glow-gold {
  box-shadow: 0 0 20px rgba(244, 180, 0, 0.3), 0 0 60px rgba(244, 180, 0, 0.1);
}

.glow-gold-hover:hover {
  box-shadow: 0 0 30px rgba(244, 180, 0, 0.5), 0 0 80px rgba(244, 180, 0, 0.2);
  transform: translateY(-4px) scale(1.02);
}

.hero-bg {
  background: transparent;
  position: relative;
  overflow: hidden;
}

.hero-section {
  padding: 2rem 0 2.5rem;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(10, 61, 145, 0.18) 0%, transparent 65%);
  pointer-events: none;
}

.hero-stadium-art {
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, transparent 85%);
}

/* Hero stats — equal grid, centered */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 960px;
  margin: 2.5rem auto 0;
}

@media (min-width: 768px) {
  .hero-stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }
}

.hero-stats-grid .stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  padding: 1.15rem 0.85rem;
  text-align: center;
}

.hero-stats-grid .stat-label {
  color: #9ca3af;
  font-size: 0.78rem;
  margin: 0 0 0.45rem;
  line-height: 1.35;
}

.hero-stats-grid .stat-value {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  line-height: 1.25;
  margin: 0;
}

.hero-stats-grid .stat-unit {
  font-size: 0.72rem;
  color: var(--gold);
  font-weight: 600;
}

.countdown-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  flex-wrap: nowrap;
  width: 100%;
}

.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 2.1rem;
}

.cd-num {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  line-height: 1.15;
  color: var(--gold);
}

.cd-num.cd-num-alt { color: #fff; }

.cd-lbl {
  font-size: 0.58rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-top: 2px;
}

.cd-sep {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  padding-bottom: 0.85rem;
}

.section-market {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0) 0%, rgba(13, 21, 32, 0.35) 100%);
  border-top: 1px solid rgba(244, 180, 0, 0.08);
}

.section-panel-a {
  background: rgba(10, 22, 40, 0.28);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.section-panel-b {
  background: rgba(17, 24, 39, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.stadium-lights {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.08) 0%, transparent 30%),
    radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.08) 0%, transparent 30%),
    radial-gradient(circle at 50% 0%, rgba(244, 180, 0, 0.1) 0%, transparent 40%);
  pointer-events: none;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-12px) rotate(1deg); }
  75% { transform: translateY(-6px) rotate(-1deg); }
}

.animate-float { animation: float 4s ease-in-out infinite; }

@keyframes ballBounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

.animate-ball-bounce { animation: ballBounce 2s ease-in-out infinite; }

@keyframes pulseGlow {
  0%, 100% { filter: drop-shadow(0 0 24px rgba(244, 180, 0, 0.45)) drop-shadow(0 0 48px rgba(244, 180, 0, 0.2)); }
  50% { filter: drop-shadow(0 0 36px rgba(244, 180, 0, 0.85)) drop-shadow(0 0 72px rgba(244, 180, 0, 0.35)); }
}

.animate-pulse-glow { animation: pulseGlow 3s ease-in-out infinite; }

.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible { opacity: 1; transform: translateY(0); }

.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }

.stat-card {
  background: linear-gradient(135deg, rgba(26, 35, 50, 0.9) 0%, rgba(17, 24, 39, 0.95) 100%);
  border: 1px solid rgba(244, 180, 0, 0.2);
  backdrop-filter: blur(12px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-card:hover {
  border-color: rgba(244, 180, 0, 0.5);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(244, 180, 0, 0.15);
}

.team-card {
  background: linear-gradient(145deg, rgba(26, 35, 50, 0.95) 0%, rgba(17, 24, 39, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.team-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(244, 180, 0, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.35s;
}

.team-card:hover {
  border-color: rgba(244, 180, 0, 0.4);
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(244, 180, 0, 0.2);
}

.team-card:hover::before { opacity: 1; }

.team-card.rank-top { border-color: rgba(244, 180, 0, 0.35); }

.team-card.rank-top::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}

.flag-img {
  width: 48px;
  height: 32px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.progress-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--gold) 100%);
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
  width: 0;
}

.progress-fill.animated { width: var(--progress-width); }

.podium-block { transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.podium-block:hover { transform: scale(1.05); }

.podium-gold { background: linear-gradient(180deg, #FFD54F 0%, #F4B400 50%, #C49000 100%); }
.podium-silver { background: linear-gradient(180deg, #E8E8E8 0%, #B0B0B0 50%, #8A8A8A 100%); }
.podium-bronze { background: linear-gradient(180deg, #CD7F32 0%, #A0522D 50%, #8B4513 100%); }

.step-card {
  background: linear-gradient(145deg, rgba(10, 61, 145, 0.3) 0%, rgba(17, 24, 39, 0.95) 100%);
  border: 1px solid rgba(10, 61, 145, 0.4);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-card:hover {
  border-color: var(--gold);
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(10, 61, 145, 0.3);
}

.step-number {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(26, 35, 50, 0.6);
  transition: border-color 0.3s;
  overflow: hidden;
}

.faq-item.active { border-color: rgba(244, 180, 0, 0.3); }

.faq-question {
  background: transparent;
  border: 0;
  cursor: pointer;
  margin: 0;
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  padding: 0;
  margin: 0;
  transition: grid-template-rows 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer-inner {
  overflow: hidden;
  min-height: 0;
}

.faq-answer-inner p {
  margin: 0;
  padding: 0 1.25rem 1.25rem;
}

.faq-item.active .faq-answer {
  grid-template-rows: 1fr;
}

.faq-icon { transition: transform 0.3s; flex-shrink: 0; line-height: 1; }
.faq-item.active .faq-icon { transform: rotate(45deg); }

.faq-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.faq-tab-btn {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.25);
  color: #9ca3af;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.faq-tab-btn:hover {
  border-color: rgba(244, 180, 0, 0.3);
  color: #e5e7eb;
}

.faq-tab-btn.active {
  background: rgba(244, 180, 0, 0.15);
  border-color: rgba(244, 180, 0, 0.45);
  color: var(--gold);
}

.faq-tab-panel {
  display: none;
}

.faq-tab-panel.active {
  display: block;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--dark);
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.5s;
}

.btn-primary:hover::before { transform: translateX(100%); }

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(244, 180, 0, 0.4);
  color: var(--dark);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-weight: 700;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background: rgba(244, 180, 0, 0.1);
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(244, 180, 0, 0.3);
  color: var(--gold);
}

#coin-rain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 5;
}

.coin {
  position: absolute;
  width: 24px;
  height: 24px;
  animation: coinFall linear infinite;
  opacity: 0.7;
}

@keyframes coinFall {
  0% { transform: translateY(-50px) rotate(0deg); opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.6; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

#confetti-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 6;
}

.sentiment-row { transition: all 0.3s; }
.sentiment-row:hover {
  background: rgba(244, 180, 0, 0.05);
  transform: translateX(4px);
}

.prize-flow-arrow {
  stroke-dasharray: 8 4;
  animation: dashFlow 1s linear infinite;
}

@keyframes dashFlow { to { stroke-dashoffset: -12; } }

.nav-blur {
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(244, 180, 0, 0.1);
}

.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.open { transform: translateX(0); }

.cta-bg {
  background: linear-gradient(180deg, #111827 0%, #0A3D91 50%, #111827 100%);
  position: relative;
}

.rank-badge {
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
}

.rank-badge.gold { background: rgba(244, 180, 0, 0.2); color: var(--gold); }
.rank-badge.silver { background: rgba(192, 192, 192, 0.2); color: #C0C0C0; }
.rank-badge.bronze { background: rgba(205, 127, 50, 0.2); color: #CD7F32; }

.info-banner {
  background: linear-gradient(90deg, rgba(10, 61, 145, 0.5), rgba(244, 180, 0, 0.12));
  border-bottom: 1px solid rgba(244, 180, 0, 0.2);
  padding: 10px 16px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--gold-light);
}

.info-banner strong { color: #fff; }

.view-only-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  padding: 6px 14px;
  background: rgba(0, 200, 83, 0.12);
  border: 1px solid rgba(0, 200, 83, 0.35);
  border-radius: 999px;
  color: #69f0ae;
  margin-top: 16px;
}

.lang-dropdown {
  position: relative;
  z-index: 400;
}

.lang-dropdown-btn {
  background: transparent;
  border: 1px solid rgba(244, 180, 0, 0.4);
  color: var(--gold);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  z-index: 401;
}

.lang-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 140px;
  background: var(--dark-card);
  border: 1px solid rgba(244, 180, 0, 0.2);
  border-radius: 12px;
  padding: 6px;
  z-index: 500;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.lang-dropdown.open .lang-dropdown-menu { display: block; }

.lang-dropdown-menu a {
  display: block;
  padding: 8px 12px;
  color: #d1d5db;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.85rem;
}

.lang-dropdown-menu a:hover {
  background: rgba(244, 180, 0, 0.1);
  color: var(--gold);
}

.market-toolbar {
  background: linear-gradient(135deg, rgba(26, 35, 50, 0.9) 0%, rgba(17, 24, 39, 0.95) 100%);
  border: 1px solid rgba(244, 180, 0, 0.2);
  border-radius: 16px;
  padding: 16px;
}

.search-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 16px;
  color: #fff;
  font-size: 0.9rem;
}

.search-input:focus {
  outline: none;
  border-color: rgba(244, 180, 0, 0.5);
  box-shadow: 0 0 0 3px rgba(244, 180, 0, 0.12);
}

.btn-sort {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-sort.active,
.btn-sort:hover {
  background: rgba(244, 180, 0, 0.15);
  color: var(--gold);
  border-color: rgba(244, 180, 0, 0.4);
}

.float-back-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(244, 180, 0, 0.45);
  z-index: 200;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.float-back-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.float-back-top:hover {
  transform: translateY(0) scale(1.08);
  color: var(--dark);
}

.sentiment-predictions-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  align-items: stretch;
}

@media (min-width: 1024px) {
  .sentiment-predictions-row {
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: 2.5rem;
  }
}

.sentiment-panel,
.predictions-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  max-width: 100%;
}

.sentiment-card,
.predictions-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 640px;
}

.cta-trophy-img {
  display: block;
  width: clamp(140px, 26vw, 200px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 32px rgba(244, 180, 0, 0.55));
}

.sentiment-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sentiment-total-pill {
  flex-shrink: 0;
  text-align: right;
  padding: 0.5rem 0.85rem;
  border-radius: 12px;
  background: rgba(244, 180, 0, 0.08);
  border: 1px solid rgba(244, 180, 0, 0.2);
}

.sentiment-total-label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 2px;
}

.sentiment-total-value {
  font-family: var(--font-display, inherit);
  font-weight: 700;
  font-size: 1.1rem;
  white-space: nowrap;
}

.sentiment-table-head,
.sentiment-row {
  display: grid;
  grid-template-columns: 32px 36px minmax(0, 1fr) minmax(64px, 1.2fr) minmax(72px, 88px) 48px;
  gap: 0.5rem 0.65rem;
  align-items: center;
}

.sentiment-table-head {
  padding: 0 0.75rem 0.65rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6b7280;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sentiment-col-bar { text-align: center; }
.sentiment-col-amount,
.sentiment-col-pct { text-align: right; }

.sentiment-body {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  padding: 0.5rem 0.25rem 0.25rem;
}

.sentiment-row {
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  margin-bottom: 4px;
}

.sentiment-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #9ca3af;
  background: rgba(255, 255, 255, 0.06);
}

.sentiment-rank-gold {
  color: #1a1a1a;
  background: linear-gradient(135deg, #FFD54F, #F4B400);
}

.sentiment-rank-silver {
  color: #1a1a1a;
  background: linear-gradient(135deg, #E8E8E8, #B0B0B0);
}

.sentiment-rank-bronze {
  color: #fff;
  background: linear-gradient(135deg, #CD7F32, #8B4513);
}

.sentiment-team-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sentiment-bar-wrap .progress-bar { height: 10px; }

.sentiment-volume {
  font-size: 0.72rem;
  color: #9ca3af;
  text-align: right;
  white-space: nowrap;
}

.sentiment-pct {
  font-size: 0.82rem;
  font-weight: 700;
  text-align: right;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sentiment-tickets {
  display: block;
  font-size: 0.62rem;
  color: #6b7280;
}

.sentiment-loading {
  padding: 2rem 1rem;
  text-align: center;
  color: #6b7280;
  font-size: 0.875rem;
}

.sentiment-empty {
  padding: 2.5rem 1rem;
  text-align: center;
  color: #6b7280;
}

.predictions-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.predictions-tz-pill {
  margin-top: 2px;
}

.prediction-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.prediction-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  min-height: 52px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.2s, background 0.2s;
}

.prediction-item:hover {
  border-color: rgba(244, 180, 0, 0.25);
  background: rgba(244, 180, 0, 0.05);
}

.prediction-item img {
  align-self: center;
  width: 32px;
  height: 22px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.prediction-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  font-size: 0.82rem;
}

.prediction-body span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prediction-address {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prediction-time {
  flex-shrink: 0;
  align-self: center;
  text-align: right;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  line-height: 1.3;
}

.prediction-date {
  display: block;
  font-size: 0.72rem;
  color: #9ca3af;
}

.prediction-clock {
  display: block;
  font-size: 0.62rem;
  color: #6b7280;
}

.challenge-card,
.advantage-card {
  transition: transform 0.25s, border-color 0.25s;
}

.challenge-card:hover,
.advantage-card:hover {
  transform: translateY(-4px);
  border-color: rgba(244, 180, 0, 0.35);
}

.telegram-panel {
  background: linear-gradient(135deg, rgba(10, 61, 145, 0.35) 0%, rgba(17, 24, 39, 0.95) 100%);
}

.telegram-features {
  list-style: none;
  margin: 0;
  padding: 0;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 4px; }

/* Mobile: sentiment + latest predictions */
@media (max-width: 639px) {
  .sentiment-card,
  .predictions-card {
    min-height: 0;
  }

  .sentiment-card,
  .predictions-card,
  .sentiment-body,
  .prediction-list {
    min-width: 0;
    max-width: 100%;
  }

  .sentiment-card-head,
  .predictions-card-head {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .sentiment-total-pill,
  .predictions-tz-pill {
    align-self: flex-start;
    text-align: left;
    max-width: 100%;
  }

  .sentiment-table-head {
    display: none;
  }

  .sentiment-row {
    grid-template-columns: 26px 28px minmax(0, 1fr) auto;
    grid-template-areas:
      "rank flag name pct"
      "bar bar bar bar"
      "vol vol vol vol";
    gap: 0.35rem 0.5rem;
    padding: 0.55rem 0.5rem;
  }

  .sentiment-row > .sentiment-rank { grid-area: rank; }
  .sentiment-row > img { grid-area: flag; width: 28px !important; height: 21px !important; }
  .sentiment-row > .sentiment-team-name { grid-area: name; }
  .sentiment-row > .sentiment-pct { grid-area: pct; font-size: 0.75rem; }
  .sentiment-row > .sentiment-bar-wrap { grid-area: bar; min-width: 0; }
  .sentiment-row > .sentiment-volume {
    grid-area: vol;
    text-align: left;
    font-size: 0.68rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.65rem;
    align-items: baseline;
    white-space: normal;
  }

  .sentiment-volume .sentiment-tickets {
    display: inline;
  }

  .prediction-item {
    grid-template-columns: 32px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 8px 10px;
  }

  .prediction-address {
    font-size: 0.72rem;
  }

  .prediction-date {
    font-size: 0.68rem;
  }

  .prediction-clock {
    font-size: 0.58rem;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .sentiment-table-head,
  .sentiment-row {
    grid-template-columns: 28px 32px minmax(0, 0.85fr) minmax(56px, 1fr) minmax(68px, 80px) 44px;
    gap: 0.4rem 0.5rem;
    font-size: 0.95em;
  }

  .sentiment-card-head,
  .predictions-card-head {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .sentiment-total-pill,
  .predictions-tz-pill {
    max-width: 100%;
  }
}
