/* ============================================
   LIVEBET CRYPTO - Main Stylesheet
   Dark Sportsbook + Crypto Aesthetic
   ============================================ */

/* === RESET & BASE === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --bg-deep: #0a0e14;
  --bg-primary: #0d1117;
  --bg-card: #161b22;
  --bg-elevated: #1c2333;
  --bg-input: #0d1117;
  --border: #21262d;
  --border-light: #30363d;
  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --text-muted: #484f58;
  --gold: #f0b90b;
  --gold-dim: rgba(240, 185, 11, 0.15);
  --neon-green: #00ff88;
  --neon-green-dim: rgba(0, 255, 136, 0.12);
  --red: #ff3b5c;
  --red-dim: rgba(255, 59, 92, 0.15);
  --blue: #58a6ff;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: calc(60px + var(--safe-bottom));
}

/* === HEADER === */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(12px + var(--safe-top)) 16px 12px;
  background: rgba(13, 17, 23, 0.85);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo-img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
}

.logo-icon {
  font-size: 22px;
  filter: drop-shadow(0 0 6px var(--gold));
}

.logo-text {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: var(--text-primary);
}

.logo-accent {
  color: var(--gold);
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  background: var(--red-dim);
  border-radius: 20px;
  border: 1px solid rgba(255, 59, 92, 0.3);
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  -webkit-animation: livePulse 1.5s ease-in-out infinite;
  animation: livePulse 1.5s ease-in-out infinite;
}

.live-text {
  font-size: 10px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 1.5px;
}

.header-right {
  display: flex;
  align-items: center;
}

.wallet-display {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
}

.wallet-icon {
  color: var(--gold);
  flex-shrink: 0;
}

.balance-label {
  font-size: 11px;
  color: var(--text-muted);
  display: none;
}

.balance-amount {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.balance-currency {
  font-size: 11px;
  color: var(--gold);
  font-weight: 600;
}

/* === MAIN CONTENT === */
.main-content {
  padding: 16px;
  max-width: 480px;
  margin: 0 auto;
}

.section {
  margin-bottom: 24px;
}

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

.section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.title-icon {
  font-size: 18px;
}

/* === MATCH CARD === */
.update-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--neon-green);
  padding: 4px 10px;
  background: var(--neon-green-dim);
  border-radius: 20px;
}

.update-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--neon-green);
  -webkit-animation: livePulse 2s ease-in-out infinite;
  animation: livePulse 2s ease-in-out infinite;
}

.match-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 16px 16px;
  overflow: hidden;
}

.match-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--neon-green), var(--gold));
  background-size: 200% 100%;
  -webkit-animation: shimmer 3s linear infinite;
  animation: shimmer 3s linear infinite;
}

.live-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: var(--red);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
}

.live-badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  -webkit-animation: livePulse 1s ease-in-out infinite;
  animation: livePulse 1s ease-in-out infinite;
}

.match-league {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.match-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.team-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  border: 2px solid var(--border-light);
  background: var(--bg-elevated);
  overflow: hidden;
}

.team-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.home-badge {
  border-color: rgba(240, 185, 11, 0.4);
  color: var(--gold);
}

.away-badge {
  border-color: rgba(255, 59, 92, 0.4);
  color: var(--red);
}

.badge-fallback {
  font-size: 13px;
  font-weight: 800;
}

.team-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
}

.match-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 80px;
}

.match-score {
  display: flex;
  align-items: center;
  gap: 6px;
}

.score {
  font-size: 36px;
  font-weight: 900;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  min-width: 30px;
  text-align: center;
}

.score-divider {
  font-size: 28px;
  font-weight: 300;
  color: var(--text-muted);
}

.match-time {
  font-size: 14px;
  font-weight: 700;
  color: var(--neon-green);
  padding: 2px 10px;
  background: var(--neon-green-dim);
  border-radius: 12px;
}

.match-odds {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.odd-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
  color: var(--text-primary);
  -webkit-user-select: none;
  user-select: none;
}

.odd-btn:active {
  -webkit-transform: scale(0.95);
  transform: scale(0.95);
  background: var(--gold-dim);
  border-color: var(--gold);
}

.odd-btn.selected {
  background: var(--gold-dim);
  border-color: var(--gold);
  box-shadow: 0 0 12px rgba(240, 185, 11, 0.2);
}

.odd-label {
  font-size: 10px;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.odd-value {
  font-size: 16px;
  font-weight: 800;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.match-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.match-status {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
}

.next-update {
  font-size: 11px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* Score update animation */
.score-updated {
  -webkit-animation: scoreFlash 0.6s ease;
  animation: scoreFlash 0.6s ease;
}

/* === VIDEO SECTION === */
.challenge-reward {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  padding: 4px 10px;
  background: var(--gold-dim);
  border-radius: 20px;
  border: 1px solid rgba(240, 185, 11, 0.25);
}

.video-wrapper {
  position: relative;
  margin-bottom: 16px;
}

.neon-border {
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-md) + 2px);
  background: linear-gradient(135deg, var(--gold), var(--neon-green), var(--gold), var(--neon-green));
  background-size: 300% 300%;
  -webkit-animation: neonFlow 4s ease infinite;
  animation: neonFlow 4s ease infinite;
  z-index: 0;
  opacity: 0.7;
}

.video-container {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-primary);
  aspect-ratio: 16 / 9;
  z-index: 1;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 14, 20, 0.6);
  z-index: 2;
  -webkit-transition: opacity 0.4s ease;
  transition: opacity 0.4s ease;
}

.video-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.play-btn-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.video-play-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--gold), #d4a50a);
  color: var(--bg-deep);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(240, 185, 11, 0.4), 0 4px 15px rgba(0, 0, 0, 0.3);
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
}

.video-play-btn:active {
  -webkit-transform: scale(0.9);
  transform: scale(0.9);
}

.video-play-btn svg {
  margin-left: 4px;
}

.play-hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

/* === COUNTDOWN === */
.countdown-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.countdown-ring-wrapper {
  position: relative;
  width: 90px;
  height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.countdown-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-transform: rotate(-90deg);
  transform: rotate(-90deg);
}

.countdown-track {
  fill: none;
  stroke: var(--border);
  stroke-width: 4;
}

.countdown-progress {
  fill: none;
  stroke: var(--gold);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 326.73;
  stroke-dashoffset: 0;
  -webkit-transition: stroke-dashoffset 1s linear, stroke 0.3s ease;
  transition: stroke-dashoffset 1s linear, stroke 0.3s ease;
  filter: drop-shadow(0 0 4px var(--gold));
}

.countdown-progress.complete {
  stroke: var(--neon-green);
  filter: drop-shadow(0 0 8px var(--neon-green));
}

.countdown-number {
  font-size: 32px;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  -webkit-transition: color 0.3s ease;
  transition: color 0.3s ease;
}

.countdown-number.complete {
  color: var(--neon-green);
}

.countdown-unit {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
}

.countdown-text {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  font-weight: 500;
}

/* === CTA BUTTON === */
.cta-button {
  width: 100%;
  padding: 16px 24px;
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  -webkit-user-select: none;
  user-select: none;
  position: relative;
  overflow: hidden;
}

.cta-button.locked {
  background: var(--bg-elevated);
  color: var(--text-muted);
  border: 1px solid var(--border);
  cursor: not-allowed;
}

.cta-button.unlocked {
  background: linear-gradient(135deg, var(--gold), #d4a50a, var(--neon-green));
  background-size: 200% 200%;
  -webkit-animation: ctaGlow 2s ease infinite;
  animation: ctaGlow 2s ease infinite;
  color: var(--bg-deep);
  border: none;
  box-shadow: 0 0 25px rgba(240, 185, 11, 0.35), 0 4px 15px rgba(0, 0, 0, 0.3);
}

.cta-button.unlocked:active {
  -webkit-transform: scale(0.96);
  transform: scale(0.96);
}

.cta-button.unlocked::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--gold), var(--neon-green), var(--gold));
  background-size: 300% 300%;
  -webkit-animation: neonFlow 2s ease infinite;
  animation: neonFlow 2s ease infinite;
  z-index: -1;
  filter: blur(8px);
  opacity: 0.5;
}

.cta-lock-icon {
  font-size: 18px;
}

/* === PARTICLE CANVAS === */
.particle-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 200;
}

/* === BETTING SECTION === */
.betting-question {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  text-align: center;
}

.betting-cards {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.betting-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  -webkit-transition: all 0.25s ease;
  transition: all 0.25s ease;
  -webkit-user-select: none;
  user-select: none;
  position: relative;
}

.betting-card:active {
  -webkit-transform: scale(0.96);
  transform: scale(0.96);
}

.betting-card.selected {
  border-color: var(--neon-green);
  background: var(--neon-green-dim);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.15);
}

.betting-card-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
}

.betting-card-badge.home {
  color: var(--gold);
  border-color: rgba(240, 185, 11, 0.3);
}

.betting-card-badge.draw {
  color: var(--text-secondary);
}

.betting-card-badge.away {
  color: var(--red);
  border-color: rgba(255, 59, 92, 0.3);
}

.betting-card-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
}

.betting-card-check {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--neon-green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-deep);
  opacity: 0;
  -webkit-transform: scale(0);
  transform: scale(0);
  -webkit-transition: all 0.25s ease;
  transition: all 0.25s ease;
}

.betting-card.selected .betting-card-check {
  opacity: 1;
  -webkit-transform: scale(1);
  transform: scale(1);
}

/* === PROMO BANNER === */
.promo-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(240, 185, 11, 0.08), rgba(0, 255, 136, 0.05));
  border: 1px solid rgba(240, 185, 11, 0.2);
  border-radius: var(--radius-md);
  cursor: pointer;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.promo-banner:active {
  -webkit-transform: scale(0.98);
  transform: scale(0.98);
}

.promo-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(240, 185, 11, 0.06) 0%, transparent 60%);
  -webkit-animation: promoGlow 4s ease infinite;
  animation: promoGlow 4s ease infinite;
}

.promo-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.promo-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.promo-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
}

.promo-desc {
  font-size: 11px;
  color: var(--text-secondary);
}

.promo-arrow {
  font-size: 18px;
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
}

/* === CASHOUT TICKER === */
.cashout-ticker {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: rgba(13, 17, 23, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 10px 0;
  padding-bottom: calc(10px + var(--safe-bottom));
  overflow: hidden;
}

.ticker-track {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 40px;
  overflow: hidden;
  padding: 0 16px;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  -webkit-animation: tickerSlideIn 0.4s ease;
  animation: tickerSlideIn 0.4s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticker-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dim), var(--neon-green-dim));
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
}

.ticker-text {
  font-size: 12px;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticker-user {
  color: var(--blue);
  font-weight: 600;
}

.ticker-amount {
  color: var(--neon-green);
  font-weight: 700;
}

.ticker-time {
  font-size: 10px;
  color: var(--text-muted);
  margin-left: auto;
  flex-shrink: 0;
}

/* === MODAL === */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  -webkit-transition: opacity 0.3s ease;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  width: 100%;
  max-width: 480px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 32px 24px calc(24px + var(--safe-bottom));
  position: relative;
  -webkit-transform: translateY(100%);
  transform: translateY(100%);
  -webkit-transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}

.modal-overlay.active .modal {
  -webkit-transform: translateY(0);
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
}

.modal-close:active {
  -webkit-transform: scale(0.9);
  transform: scale(0.9);
}

.modal-icon {
  font-size: 48px;
  text-align: center;
  margin-bottom: 12px;
}

.modal-title {
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.modal-title .gold {
  color: var(--gold);
}

.modal-desc {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.5;
}

.modal-input-group {
  margin-bottom: 16px;
}

.modal-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 14px;
  outline: none;
  -webkit-transition: border-color 0.2s ease;
  transition: border-color 0.2s ease;
}

.modal-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}

.modal-input::placeholder {
  color: var(--text-muted);
}

.modal-submit {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--gold), #d4a50a);
  color: var(--bg-deep);
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(240, 185, 11, 0.3);
}

.modal-submit:active {
  -webkit-transform: scale(0.97);
  transform: scale(0.97);
}

.modal-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--text-muted);
  font-size: 12px;
}

.modal-divider::before,
.modal-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.modal-secondary {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
}

.modal-secondary:active {
  -webkit-transform: scale(0.97);
  transform: scale(0.97);
  background: var(--bg-elevated);
}

.modal-footer-text {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 16px;
}

/* === ANIMATIONS === */
@-webkit-keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@-webkit-keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@-webkit-keyframes neonFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes neonFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@-webkit-keyframes scoreFlash {
  0% { color: var(--text-primary); transform: scale(1); }
  30% { color: var(--neon-green); transform: scale(1.3); }
  100% { color: var(--text-primary); transform: scale(1); }
}
@keyframes scoreFlash {
  0% { color: var(--text-primary); transform: scale(1); }
  30% { color: var(--neon-green); transform: scale(1.3); }
  100% { color: var(--text-primary); transform: scale(1); }
}

@-webkit-keyframes ctaGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes ctaGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@-webkit-keyframes tickerSlideIn {
  from { opacity: 0; -webkit-transform: translateY(-20px); transform: translateY(-20px); }
  to { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); }
}
@keyframes tickerSlideIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@-webkit-keyframes promoGlow {
  0% { -webkit-transform: translate(0, 0); transform: translate(0, 0); }
  50% { -webkit-transform: translate(20%, 20%); transform: translate(20%, 20%); }
  100% { -webkit-transform: translate(0, 0); transform: translate(0, 0); }
}
@keyframes promoGlow {
  0% { transform: translate(0, 0); }
  50% { transform: translate(20%, 20%); }
  100% { transform: translate(0, 0); }
}

@-webkit-keyframes unlockPop {
  0% { -webkit-transform: scale(1); transform: scale(1); }
  40% { -webkit-transform: scale(1.08); transform: scale(1.08); }
  100% { -webkit-transform: scale(1); transform: scale(1); }
}
@keyframes unlockPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* === RESPONSIVE === */
@media (min-width: 400px) {
  .balance-label {
    display: inline;
  }
}

@media (min-width: 768px) {
  .main-content {
    padding: 24px;
  }

  .modal {
    border-radius: var(--radius-xl);
    margin-bottom: 40px;
  }

  .modal-overlay {
    align-items: center;
  }

  .modal {
    -webkit-transform: translateY(30px) scale(0.95);
    transform: translateY(30px) scale(0.95);
  }

  .modal-overlay.active .modal {
    -webkit-transform: translateY(0) scale(1);
    transform: translateY(0) scale(1);
  }
}

/* === UTILITY === */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
