.hero {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(168, 85, 247, 0.2), rgba(99, 102, 241, 0.3));
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero__bg {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  pointer-events: none;
}

.hero__content {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
}
.hero__left { flex: 1; min-width: 0; }
.hero__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(59, 130, 246, 0.25);
  color: #93c5fd;
  padding: 4px 12px;
  border-radius: 999px;
  width: fit-content;
}

.hero__badge-icon {
  width: 14px;
  height: 14px;
  display: block;
}

.hero__title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}

.hero__subtitle {
  font-size: 13px;
  color: #94a3b8;
  margin: 0;
}

.hero__countdown {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.hero__finished-label {
  font-size: 11px;
  color: #64748b;
}

.hero__countdown-value {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.theme--light .hero__countdown-value--live {
  background: linear-gradient(135deg, #eab308, #ca8a04);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__countdown-label {
  font-size: 11px;
  color: #64748b;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13px;
  background: linear-gradient(135deg, #2563eb, #9333ea);
  color: #fff;
  transition: opacity 0.15s;
  width: fit-content;
}

.hero__cta:hover {
  opacity: 0.9;
}

.hero__label {
  font-size: 11px;
  color: #64748b;
}

.hero__live-text {
  font-weight: 700;
  color: #eab308;
  animation: hero-pulse 1.5s ease-in-out infinite;
}

@keyframes hero-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* State: finished */
.theme--light .hero--finished {
  background: linear-gradient(135deg, rgba(239,68,68,0.08), rgba(239,68,68,0.03));
  border-color: rgba(239,68,68,0.15);
}
.theme--light .hero--finished .hero__cta {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

/* State: live */
.theme--light .hero--live {
  background: linear-gradient(135deg, rgba(234,179,8,0.08), rgba(234,179,8,0.03));
  border-color: rgba(234,179,8,0.15);
}
.theme--light .hero--live .hero__cta {
  background: linear-gradient(135deg, #eab308, #ca8a04);
}

/* State: upcoming */
.theme--light .hero--upcoming {
  background: linear-gradient(135deg, rgba(34,197,94,0.08), rgba(34,197,94,0.03));
  border-color: rgba(34,197,94,0.15);
}
.theme--light .hero--upcoming .hero__cta {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.theme--light .hero__badge--finished { background: rgba(239,68,68,0.15); color: #ef4444; }
.theme--light .hero__badge--finished .hero__badge-dot { background: #ef4444; }
.theme--light .hero__badge--live { background: rgba(234,179,8,0.15); color: #eab308; }
.theme--light .hero__badge--live .hero__badge-dot { background: #eab308; animation: hero-pulse 1.5s ease-in-out infinite; }
.theme--light .hero__badge--upcoming { background: rgba(34,197,94,0.15); color: #22c55e; }
.theme--light .hero__badge--upcoming .hero__badge-dot { background: #22c55e; }

.stats-grid {
  display: grid;
  gap: 16px;
}

.stats-grid__card {
  border-radius: 12px;
  padding: 16px;
  background: rgba(22, 33, 62, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: box-shadow 0.2s;
}

.stats-grid__card:hover {
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.12);
}

.stats-grid__card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.stats-grid__card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.stats-grid__card-icon--blue { background: rgba(59, 130, 246, 0.2); }
.stats-grid__card-icon--purple { background: rgba(168, 85, 247, 0.2); }
.stats-grid__card-icon--green { background: rgba(34, 197, 94, 0.2); }
.stats-grid__card-icon--orange { background: rgba(249, 115, 22, 0.2); }
.stats-grid__card-icon--teal { background: rgba(20, 184, 166, 0.2); }
.stats-grid__card-icon--yellow { background: rgba(234, 179, 8, 0.2); }

.stats-grid__card-arrow {
  font-size: 11px;
  color: #64748b;
}

.stats-grid__card:hover .stats-grid__card-arrow {
  color: #60a5fa;
}

.stats-grid__card-value {
  font-weight: 700;
}

.stats-grid__card-label {
  font-size: 13px;
  color: #94a3b8;
}

.stats-grid__card-extra {
  font-size: 11px;
  color: #64748b;
  margin-top: 4px;
}

.panels-grid {
  display: grid;
  gap: 16px;
}

.panel {
  border-radius: 12px;
  padding: 16px;
  background: rgba(22, 33, 62, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.panel__title {
  font-size: 13px;
  font-weight: 600;
}

.panel__more {
  font-size: 11px;
  color: #60a5fa;
  cursor: pointer;
}

.panel__more:hover {
  text-decoration: underline;
}

.panel__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.panel__row:last-child {
  border-bottom: none;
}

.panel__row-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel__row-icon {
  font-size: 16px;
}
.panel__row-flag {
  width: 20px; height: 15px; border-radius: 2px; object-fit: cover; flex-shrink: 0;
}

.panel__row-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.panel__row-name {
  font-size: 13px;
  font-weight: 500;
}

.panel__row-meta {
  font-size: 11px;
  color: #64748b;
}

.panel__row-pts {
  display: flex;
  align-items: baseline;
  gap: 2px;
  flex-shrink: 0;
  text-align: right;
}
.panel__row-pts-value {
  font-size: 13px;
  font-weight: 600;
}
.panel__row-pts-label {
  font-size: 11px;
  color: #64748b;
}

.panel__row-right {
  text-align: right;
}

.panel__row-price {
  font-size: 13px;
  font-weight: 600;
}

.panel__row-price--highlight {
  color: #fb923c;
}
.panel__row-rank {
  width: 24px; font-size: 12px; font-weight: 700; color: #94a3b8; text-align: center; flex-shrink: 0;
}
.panel__row-rank--1 { color: #f59e0b; }
.panel__row-rank--2 { color: #94a3b8; }
.panel__row-rank--3 { color: #d97706; }

.panel__row-percent {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
}

.panel__row-percent-label {
  font-size: 10px;
  color: #64748b;
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

.avatar--blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.avatar--green { background: linear-gradient(135deg, #22c55e, #15803d); }
.avatar--purple { background: linear-gradient(135deg, #a855f7, #7c3aed); }
.avatar--red { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.avatar--yellow { background: linear-gradient(135deg, #eab308, #a16207); }
.avatar--pink { background: linear-gradient(135deg, #ec4899, #be185d); }
.avatar--orange { background: linear-gradient(135deg, #f97316, #c2410c); }
.avatar--teal { background: linear-gradient(135deg, #14b8a6, #0f766e); }

/* Mobile */
@media (max-width: 767px) {
  .hero__content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
    padding: 20px;
    align-items: start;
  }
  .hero__left { display: contents; }
  .hero__right { display: contents; }
  .hero__badge { grid-column: 1; grid-row: 1; justify-self: start; align-self: center; }
  .hero__countdown {
    grid-column: 2; grid-row: 1; justify-self: end; align-self: center;
    flex-direction: row; align-items: center; gap: 6px;
  }
  .hero__countdown-value { font-size: 28px; }
  .hero__title { grid-column: 1 / -1; grid-row: 2; font-size: 28px; }
  .hero__countdown-label { font-size: 10px; }
  .hero__finished-label { grid-column: 2; grid-row: 1; justify-self: end; font-size: 11px; }
  .hero__subtitle { grid-column: 1 / -1; grid-row: 3; margin: 0; font-size: 12px; }
  .hero__cta { grid-column: 2; grid-row: 4; justify-self: end; font-size: 12px; }
  .hero { margin-bottom: 0; }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
  }

  .stats-grid__card-value {
    font-size: 20px;
  }

  .panels-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .panel__row-pts {
    flex-direction: row;
    align-items: baseline;
    gap: 2px;
  }
}

/* Tablet — reduced font sizes */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero__title { font-size: 28px; }
  .hero__subtitle { font-size: 14px; }
  .hero__countdown-value { font-size: 28px; }
  .hero { margin-bottom: 0; }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
  }

  .stats-grid__card-value {
    font-size: 22px;
  }

  .panels-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .panel__row-pts {
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
  }
}

/* Panel card text reduction at narrow widths */
@media (max-width: 850px) {
  .panel__title { font-size: 12px; }
  .panel__row-name { font-size: 12px; }
  .panel__row-meta { font-size: 10px; }
  .panel__row-percent { font-size: 12px; }
  .panel__row-pts-value { font-size: 12px; }
  .panel__row-price { font-size: 12px; }
}

/* Desktop */
@media (min-width: 1024px) {
  .hero__title { font-size: 32px; }
  .hero__subtitle { font-size: 14px; }
  .hero__countdown-value { font-size: 28px; }
  .hero { margin-bottom: 0; }
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 36px;
  }

  .stats-grid__card-value {
    font-size: 24px;
  }

  .panels-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .panel {
    padding: 24px;
  }
}

/* Hero card classes (from inline styles cleanup) */
.hero-title { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.hero-subtitle { font-size: 13px; color: #64748b; }
.hero-btn {
  padding: 10px 24px; border-radius: 12px;
  font-weight: 700; font-size: 13px;
  color: #fff; border: none; cursor: pointer;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 600;
}

/* Hero responsive */
@media (max-width: 767px) {
  #page-home .fs-24, #mvHome .fs-24 { font-size: 20px; }
  #page-home .fs-13.text-muted, #mvHome .fs-13.text-muted { font-size: 12px; }
  #page-home .fs-28, #mvHome .fs-28 { font-size: 28px; }
  .hero__countdown-value { font-size: 28px; }
  .hero-btn { font-size: 12px; padding: 8px 18px; }
  #page-home .fs-11.fw-600, #mvHome .fs-11.fw-600 { font-size: 10px; }
  #page-home .fs-11.text-muted, #mvHome .fs-11.text-muted { font-size: 10px; }
}

@media (max-width: 600px) {
  .hero__countdown-value { font-size: 24px; }
  .hero__title { font-size: 24px; }
}

@media (max-width: 450px) {
  .hero__countdown-value { font-size: 22px; }
  .hero__title { font-size: 22px; }
  #page-home .fs-24, #mvHome .fs-24 { font-size: 16px; }
  #page-home .fs-13.text-muted, #mvHome .fs-13.text-muted { font-size: 11px; }
  .hero__countdown-label { font-size: 9px; }
  .hero-btn { font-size: 11px; padding: 6px 14px; }
  .hero__cta { font-size: 11px; }
  .hero__badge { font-size: 9px; }
  #page-home .fs-11.fw-600, #mvHome .fs-11.fw-600 { font-size: 9px; }
  #page-home .fs-11.text-muted, #mvHome .fs-11.text-muted { font-size: 9px; }
  .p-24 { padding: 14px; }
  .gap-20 { gap: 12px; }
}

@media (max-width: 400px) {
  .hero__countdown-value { font-size: 20px; }
  .hero__title { font-size: 20px; }
}

@media (max-width: 350px) {
  .hero__countdown-value { font-size: 18px; }
  .hero__title { font-size: 18px; }
  .hero__cta { font-size: 10px; padding: 5px 12px; }
  .p-24 { padding: 10px; }
  .gap-20 { gap: 8px; }
}

@media (max-width: 320px) {
  .hero__countdown-value { font-size: 16px; }
  .hero__title { font-size: 16px; }
}
