/*
  FanPulse 2026 - View Specific Layouts & Fine-Tuned Styling
*/

/* --- SCREEN: LANDING PAGE --- */
.landing-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px;
  text-align: center;
}

.neon-soccer-ball {
  position: relative;
  width: 140px;
  height: 140px;
  margin-bottom: 30px;
}

.neon-ball-svg {
  width: 100%;
  height: 100%;
  animation: spinSlow 20s infinite linear;
}

.outer-ring {
  stroke-dasharray: 280;
  stroke-dashoffset: 0;
  animation: strokeDash 5s infinite alternate ease-in-out;
}

.ball-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--neon-cyan-glow), transparent 70%);
  z-index: -1;
  animation: pulseGlow 3s infinite ease-in-out;
}

.landing-title {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 10px;
  color: var(--text-main);
}

.neon-span {
  color: var(--neon-cyan);
  text-shadow: 0 0 10px var(--neon-cyan-glow);
}

.accent-year {
  color: var(--neon-gold);
  text-shadow: 0 0 10px var(--neon-gold-glow);
}

.landing-tagline {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--neon-cyan);
  margin-bottom: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.landing-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 280px;
}

.landing-action {
  padding: 30px;
  width: 100%;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes strokeDash {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 100; }
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1.0); opacity: 0.5; }
  50% { transform: scale(1.15); opacity: 0.9; }
}


/* --- SCREEN: AUTH / LOGIN --- */
.auth-header {
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 15px;
  border-bottom: 1px solid var(--border-light);
}

.auth-header h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
}

.auth-form-container {
  flex: 1;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
}

.auth-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 30px;
}

.btn-google {
  background-color: white;
  color: #3c4043;
}


/* --- SCREEN: PROFILE SETUP --- */
.profile-setup-content {
  flex: none;
  padding: 35px 20px 60px 20px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.avatar-selector-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.avatar-options {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.avatar-option {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--bg-card);
  border: 2px solid var(--border-light);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.avatar-option.selected {
  border-color: var(--neon-cyan);
  background-color: rgba(0, 240, 255, 0.1);
  box-shadow: 0 0 12px var(--neon-cyan-glow);
  transform: scale(1.1);
}


/* --- SCREEN: DASHBOARD --- */
.dashboard-banner {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-bottom: 1px solid var(--border-light);
}

.banner-welcome {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.welcome-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.banner-welcome h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

/* User rank status card */
/* User rank status card */
.pulse-gauge-card {
  /* Ultra-Premium Glassmorphism + Champion Gold Mesh Gradient */
  background: radial-gradient(circle at 10% 10%, rgba(255, 215, 0, 0.08), transparent 50%), 
              radial-gradient(circle at 90% 90%, rgba(0, 122, 255, 0.05), transparent 50%), 
              linear-gradient(135deg, rgba(27, 29, 40, 0.85), rgba(17, 19, 28, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.08);
  transition: all var(--transition-normal);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

/* Gold Technical Corner Brackets */
.pulse-gauge-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: 
    /* Top-Left */
    linear-gradient(to right, var(--neon-gold) 10px, transparent 10px) 0 0,
    linear-gradient(to bottom, var(--neon-gold) 10px, transparent 10px) 0 0,
    /* Top-Right */
    linear-gradient(to left, var(--neon-gold) 10px, transparent 10px) 100% 0,
    linear-gradient(to bottom, var(--neon-gold) 10px, transparent 10px) 100% 0,
    /* Bottom-Left */
    linear-gradient(to right, var(--neon-gold) 10px, transparent 10px) 0 100%,
    linear-gradient(to top, var(--neon-gold) 10px, transparent 10px) 0 100%,
    /* Bottom-Right */
    linear-gradient(to left, var(--neon-gold) 10px, transparent 10px) 100% 100%,
    linear-gradient(to top, var(--neon-gold) 10px, transparent 10px) 100% 100%;
  background-repeat: no-repeat;
  background-size: 10px 1.5px, 1.5px 10px, 10px 1.5px, 1.5px 10px, 10px 1.5px, 1.5px 10px, 10px 1.5px, 1.5px 10px;
  opacity: 0.18;
  transition: all 0.35s cubic-bezier(0.19, 1, 0.22, 1);
  z-index: 1;
}

/* Beautiful Holographic Shimmer Sweep */
.pulse-gauge-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0) 30%, 
    rgba(255, 215, 0, 0.15) 45%, 
    rgba(255, 255, 255, 0.3) 50%, 
    rgba(255, 215, 0, 0.15) 55%, 
    rgba(255, 255, 255, 0) 70%, 
    transparent 100%
  );
  transform: skewX(-25deg);
  transition: 0.9s cubic-bezier(0.19, 1, 0.22, 1);
  z-index: 2;
}

.pulse-gauge-card:hover {
  transform: translateY(-6px) scale(1.025);
  border-color: rgba(255, 215, 0, 0.45);
  box-shadow: 0 20px 40px rgba(255, 215, 0, 0.15), 0 0 18px rgba(255, 215, 0, 0.12), inset 0 0 12px rgba(255, 215, 0, 0.04), var(--glass-shadow);
}

.pulse-gauge-card:hover::before {
  opacity: 0.95;
  background-size: 16px 1.5px, 1.5px 16px, 16px 1.5px, 1.5px 16px, 16px 1.5px, 1.5px 16px, 16px 1.5px, 1.5px 16px;
  filter: drop-shadow(0 0 3px var(--neon-gold));
}

.pulse-gauge-card:hover::after {
  left: 200%;
}

.gauge-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.gauge-level-text {
  color: var(--neon-cyan);
}

.progress-bar-container {
  width: 100%;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-blue));
  border-radius: var(--radius-pill);
  box-shadow: 0 0 8px var(--neon-cyan-glow);
  position: relative;
  overflow: hidden;
  transition: width 0.4s ease-out;
}

.progress-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 40%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0.3) 60%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 200% 100%;
  animation: barShine 2.5s infinite linear;
}

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

.gauge-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
}

.pts-target {
  font-size: 9px;
  color: var(--neon-gold);
}

.dashboard-body {
  padding: 20px;
}

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

.dashboard-section-header h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 0.5px;
}

.section-link {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  color: var(--neon-cyan);
  cursor: pointer;
}

/* Simulated feeds in dashboard */
.dashboard-feed-preview {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 25px;
}

.quick-stats-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.stat-box {
  flex: 1;
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-val {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  color: var(--neon-cyan);
}

.stat-lbl {
  font-size: 8.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}


/* --- SCREEN: MATCH LIST --- */
.view-header {
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid var(--border-light);
}

.view-header h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.match-tabs {
  display: flex;
  justify-content: space-between;
  padding: 12px 20px;
  background-color: rgba(21, 24, 33, 0.4);
  border-bottom: 1px solid var(--border-light);
}

.match-tab {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.match-tab.active {
  color: var(--text-dark);
  background-color: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan-glow);
}

.matches-scroll-area {
  flex: 1;
  padding: 20px;
  box-sizing: border-box;
}


/* --- SCREEN: PREDICTIONS --- */
.view-header-with-back {
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 10px;
  border-bottom: 1px solid var(--border-light);
}

.view-header-with-back h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
}

.prediction-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pred-match-card {
  margin: 20px;
  /* Ultra-Premium Glassmorphism + Champion Gold Mesh Gradient */
  background: radial-gradient(circle at 10% 10%, rgba(255, 215, 0, 0.08), transparent 50%), 
              radial-gradient(circle at 90% 90%, rgba(0, 240, 255, 0.05), transparent 50%), 
              linear-gradient(135deg, rgba(21, 24, 33, 0.85), rgba(11, 12, 16, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}

/* Technical Corner Brackets */
.pred-match-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: 
    /* Top-Left */
    linear-gradient(to right, var(--neon-gold) 10px, transparent 10px) 0 0,
    linear-gradient(to bottom, var(--neon-gold) 10px, transparent 10px) 0 0,
    /* Top-Right */
    linear-gradient(to left, var(--neon-gold) 10px, transparent 10px) 100% 0,
    linear-gradient(to bottom, var(--neon-gold) 10px, transparent 10px) 100% 0,
    /* Bottom-Left */
    linear-gradient(to right, var(--neon-gold) 10px, transparent 10px) 0 100%,
    linear-gradient(to top, var(--neon-gold) 10px, transparent 10px) 0 100%,
    /* Bottom-Right */
    linear-gradient(to left, var(--neon-gold) 10px, transparent 10px) 100% 100%,
    linear-gradient(to top, var(--neon-gold) 10px, transparent 10px) 100% 100%;
  background-repeat: no-repeat;
  background-size: 10px 1.5px, 1.5px 10px, 10px 1.5px, 1.5px 10px, 10px 1.5px, 1.5px 10px, 10px 1.5px, 1.5px 10px;
  opacity: 0.18;
  transition: all 0.35s cubic-bezier(0.19, 1, 0.22, 1);
  z-index: 1;
}

/* Beautiful Holographic Shimmer Sweep */
.pred-match-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0) 30%, 
    rgba(255, 215, 0, 0.15) 45%, 
    rgba(255, 255, 255, 0.3) 50%, 
    rgba(255, 215, 0, 0.15) 55%, 
    rgba(255, 255, 255, 0) 70%, 
    transparent 100%
  );
  transform: skewX(-25deg);
  transition: 0.9s cubic-bezier(0.19, 1, 0.22, 1);
  z-index: 2;
}

.pred-match-card:hover {
  transform: translateY(-6px) scale(1.025);
  border-color: rgba(255, 215, 0, 0.45);
  box-shadow: 0 20px 40px rgba(255, 215, 0, 0.18), 0 0 15px rgba(255, 215, 0, 0.12), inset 0 0 12px rgba(255, 215, 0, 0.04), var(--glass-shadow);
}

.pred-match-card:hover::before {
  opacity: 0.95;
  background-size: 16px 1.5px, 1.5px 16px, 16px 1.5px, 1.5px 16px, 16px 1.5px, 1.5px 16px, 16px 1.5px, 1.5px 16px;
  filter: drop-shadow(0 0 3px var(--neon-gold));
}

.pred-match-card:hover::after {
  left: 200%;
}

.pred-match-meta {
  font-family: var(--font-display);
  font-size: 10px;
  color: var(--neon-gold);
  font-weight: 800;
  letter-spacing: 1px;
}

.pred-match-teams {
  display: flex;
  justify-content: space-around;
  width: 100%;
  align-items: center;
}

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

.pred-team-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
}

.vs-pill {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
}

.prediction-inputs-box {
  background-color: rgba(21, 24, 33, 0.5);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 25px 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  box-sizing: border-box;
}

.prediction-inputs-box h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  text-align: center;
}

.section-desc {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-top: -10px;
  margin-bottom: 5px;
}

.score-guesser-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.score-input-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.flag-big {
  font-size: 38px;
  line-height: 1;
}

.team-short-lbl {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  color: var(--text-muted);
}

.vs-text {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 900;
  color: var(--border-focus);
}

.winner-shortcut-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.shortcut-desc {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  text-align: center;
}

.shortcuts {
  display: flex;
  gap: 8px;
}

.btn-shortcut {
  flex: 1;
  padding: 10px 6px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-shortcut.active {
  background-color: rgba(255, 215, 0, 0.15);
  border-color: var(--neon-gold);
  color: var(--neon-gold);
  box-shadow: 0 0 10px var(--neon-gold-glow);
}


/* --- SCREEN: MATCH ROOM (MODO PARTIDO) --- */
/* Neon Pulsing Background Grid */
.live-background-pulses {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.pulse-circle {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 59, 48, 0.08);
  transform: translate(-50%, -50%);
}

.pulse-1 {
  width: 300px;
  height: 300px;
  top: 30%;
  left: 50%;
  animation: pulseScale 3s infinite ease-in-out;
}

.pulse-2 {
  width: 500px;
  height: 500px;
  top: 30%;
  left: 50%;
  animation: pulseScale 3.5s infinite ease-in-out 0.5s;
}

@keyframes pulseScale {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.2; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.5; }
  100% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.2; }
}

.match-room-header {
  height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
  border-bottom: 1px solid var(--border-light);
  position: relative;
  z-index: 3;
}

.live-badge-glow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  color: var(--neon-red);
  background-color: rgba(255, 59, 48, 0.1);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 0.5px solid rgba(255, 59, 48, 0.3);
  box-shadow: 0 0 12px rgba(255, 59, 48, 0.15);
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--neon-red);
  animation: liveBlink 1s infinite alternate;
}

.btn-end-match {
  background: linear-gradient(90deg, var(--neon-pink), var(--neon-red));
  border: none;
  color: white;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255, 0, 127, 0.3);
}

.btn-end-match:active {
  transform: scale(0.95);
}

.match-room-scoreboard {
  margin: 8px 15px;
  /* Ultra-Premium Glassmorphism + Live Red/Cyan Mesh Gradient */
  background: radial-gradient(circle at 10% 10%, rgba(255, 59, 48, 0.08), transparent 50%), 
              radial-gradient(circle at 90% 90%, rgba(0, 240, 255, 0.06), transparent 50%), 
              linear-gradient(135deg, rgba(21, 24, 33, 0.9), rgba(11, 12, 16, 0.96));
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1.5px solid rgba(255, 59, 48, 0.45);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  position: relative;
  z-index: 3;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.55), 0 0 20px rgba(255, 59, 48, 0.15), inset 0 1px 2px rgba(255, 255, 255, 0.1);
  transition: all var(--transition-normal);
}

.match-room-scoreboard:hover {
  border-color: rgba(255, 59, 48, 0.75);
  box-shadow: 0 20px 45px rgba(255, 59, 48, 0.25), 0 0 25px rgba(255, 59, 48, 0.2), var(--glass-shadow);
}

/* Incident commentary ticker */
.room-live-feed {
  margin: 0 15px;
  background-color: rgba(11, 12, 16, 0.7);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  z-index: 3;
}

.ticker-label {
  font-family: var(--font-display);
  font-size: 8px;
  font-weight: 800;
  color: var(--neon-cyan);
  letter-spacing: 1px;
}

.ticker-content {
  font-size: 11px;
  color: var(--text-main);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Reaction Button Grid */
.reaction-pad-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6px 20px;
  position: relative;
  z-index: 3;
}

.reaction-pad-header {
  text-align: center;
  margin-bottom: 6px;
}

.reaction-pad-header h3 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.reaction-pad-header p {
  font-size: 9.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.reaction-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(46px, auto);
  gap: 5px;
}

/* Make GOL (the main trigger) span two columns at the bottom or top */
.reaction-grid .btn-gol {
  grid-column: span 3;
  min-height: 50px;
}

.reaction-btn {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  padding: 2px 2px;
  box-sizing: border-box;
}

.btn-emoji {
  font-size: 18px;
  line-height: 1.1;
}

.btn-lbl {
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-top: 2px;
  color: var(--text-main);
}

.btn-desc {
  font-size: 7.2px;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  margin-top: 1px;
  line-height: 1.1;
  padding: 0 2px;
  text-transform: uppercase;
}

/* Specific glows for reactions on active tap */
.reaction-btn:active {
  transform: scale(0.9);
}

.btn-gol:active {
  background-color: rgba(255, 215, 0, 0.2);
  border-color: var(--neon-gold);
  box-shadow: 0 0 25px var(--neon-gold-glow);
}
.btn-nooo:active {
  background-color: rgba(255, 0, 127, 0.2);
  border-color: var(--neon-pink);
  box-shadow: 0 0 20px var(--neon-pink-glow);
}
.btn-var:active {
  background-color: rgba(0, 240, 255, 0.2);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 20px var(--neon-cyan-glow);
}
.btn-robo:active {
  background-color: rgba(255, 59, 48, 0.2);
  border-color: var(--neon-red);
  box-shadow: 0 0 20px var(--neon-red-glow);
}
.btn-infarto:active {
  background-color: rgba(175, 82, 222, 0.2);
  border-color: var(--neon-purple);
  box-shadow: 0 0 20px var(--neon-purple-glow);
}
.btn-celebra:active {
  background-color: rgba(57, 255, 20, 0.2);
  border-color: var(--neon-green);
  box-shadow: 0 0 20px var(--neon-green-glow);
}
.btn-tristeza:active {
  background-color: rgba(0, 122, 255, 0.2);
  border-color: var(--neon-blue);
  box-shadow: 0 0 20px var(--neon-blue-glow);
}
.btn-palo:active {
  background-color: rgba(255, 0, 127, 0.2);
  border-color: var(--neon-pink);
  box-shadow: 0 0 20px var(--neon-pink-glow);
}
.btn-lujazo:active {
  background-color: rgba(255, 215, 0, 0.2);
  border-color: var(--neon-gold);
  box-shadow: 0 0 20px var(--neon-gold-glow);
}
.btn-uffff:active {
  background-color: rgba(255, 59, 48, 0.2);
  border-color: var(--neon-red);
  box-shadow: 0 0 20px var(--neon-red-glow);
}
.btn-huyyyy:active {
  background-color: rgba(0, 240, 255, 0.2);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 20px var(--neon-cyan-glow);
}
.btn-aburrido:active {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--border-light);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

/* Particle burst support */
.tap-particle {
  position: absolute;
  pointer-events: none;
  font-size: 20px;
  z-index: 100;
  animation: floatBurst 0.6s forwards cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes floatBurst {
  0% { transform: scale(0.6) translate(0, 0); opacity: 1; }
  100% { transform: scale(1.5) translate(var(--dx), var(--dy)) rotate(var(--dr)); opacity: 0; }
}

/* Tactile Intensity Slider Box */
.intensity-slider-box {
  background-color: rgba(21, 24, 33, 0.9);
  border-top: 1px solid var(--border-light);
  padding: 10px 20px 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  z-index: 3;
  box-sizing: border-box;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slider-labels span:first-child {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.intensity-badge {
  background-color: var(--neon-cyan);
  color: var(--text-dark);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  box-shadow: 0 0 8px var(--neon-cyan-glow);
  text-transform: uppercase;
}

.tactile-intensity-dots {
  display: flex;
  gap: 6px;
}

.dot-btn {
  flex: 1;
  background-color: var(--bg-input);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 8px 4px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all var(--transition-fast);
}

.dot-num {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
}

.dot-desc {
  font-size: 7.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 2px;
}

.dot-btn.active {
  background-color: rgba(0, 240, 255, 0.15);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan-glow);
}

.dot-btn.active .dot-num {
  color: var(--neon-cyan);
}


/* --- SCREEN: WRAPPED RECAP --- */
.recap-glow-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 250px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.15), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.recap-header {
  padding: 25px 20px 10px 20px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.recap-brand {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.recap-header h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.recap-subtitle {
  font-size: 12px;
  color: var(--neon-cyan);
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.recap-wrapped-slides {
  flex: 1;
  padding: 10px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}

.wrapped-card {
  /* Ultra-Premium Glassmorphism + Futuristic Mesh Gradient */
  background: radial-gradient(circle at 10% 10%, rgba(0, 240, 255, 0.08), transparent 55%), 
              radial-gradient(circle at 90% 90%, rgba(255, 0, 127, 0.06), transparent 55%), 
              linear-gradient(135deg, rgba(21, 24, 33, 0.9), rgba(11, 12, 16, 0.98));
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.wrapped-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 20px 40px rgba(0, 240, 255, 0.2), 0 0 15px rgba(0, 240, 255, 0.1), var(--glass-shadow);
}

.wrapped-card.accent-glow-pulse {
  border-color: rgba(255, 215, 0, 0.45);
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.15), var(--glass-shadow);
}

.wrapped-card.accent-glow-pulse:hover {
  border-color: rgba(255, 215, 0, 0.7);
  box-shadow: 0 20px 40px rgba(255, 215, 0, 0.25), 0 0 20px rgba(255, 215, 0, 0.15), var(--glass-shadow);
}

.wrapped-card-icon {
  font-size: 46px;
  text-align: center;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 10px var(--neon-gold-glow));
}

.wrapped-card-label {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 800;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 1.5px;
  margin-bottom: 4px;
}

.recap-story-text {
  font-size: 13.5px;
  line-height: 1.6;
  text-align: center;
  color: var(--text-main);
  padding: 0 5px;
}

/* Charts metrics components */
.chart-progress-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chart-lbl {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.large-bar {
  height: 14px;
  background-color: rgba(255, 255, 255, 0.05);
}

.fill-euphoria {
  background: linear-gradient(90deg, var(--neon-green), #00e676);
  box-shadow: 0 0 12px var(--neon-green-glow);
}

.fill-suffering {
  background: linear-gradient(90deg, var(--neon-pink), var(--neon-red));
  box-shadow: 0 0 12px var(--neon-pink-glow);
}

.stats-wrapped-card {
  padding: 16px 20px;
}

.stat-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stat-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed var(--border-light);
  padding-bottom: 8px;
}

.stat-list-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.s-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.s-value {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  color: var(--text-main);
  text-align: right;
}

.scrollable-stat {
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recap-action-buttons {
  padding: 10px 20px 30px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}


/* --- SCREEN: SHARE CARD PREVIEW --- */
.share-card-container {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.share-instructions {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
  padding: 0 10px;
}

/* Premium Instagram Stories Bezel layout (WOW Effect Upgraded) */
.visual-share-card {
  width: 290px;
  height: 560px;
  /* Ultra-Premium Cyberpunk Glassmorphism + Cosmic Mesh Gradients */
  background: radial-gradient(circle at 20% 20%, rgba(0, 240, 255, 0.18), transparent 55%), 
              radial-gradient(circle at 80% 80%, rgba(255, 0, 127, 0.15), transparent 55%), 
              radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.04), transparent 40%),
              linear-gradient(180deg, #0a0b12 0%, #030406 100%);
  border: 2px solid rgba(0, 240, 255, 0.35);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 0 35px rgba(0, 240, 255, 0.15), 0 25px 50px rgba(0, 0, 0, 0.8), inset 0 0 15px rgba(0, 240, 255, 0.05);
  box-sizing: border-box;
  transition: all var(--transition-normal);
}

.visual-share-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 45px rgba(0, 240, 255, 0.25), 0 0 20px rgba(255, 0, 127, 0.15), 0 30px 60px rgba(0, 0, 0, 0.95);
}

/* Brackets for Visual Share Card */
.visual-share-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: 
    /* Top-Left */
    linear-gradient(to right, var(--neon-cyan) 12px, transparent 12px) 0 0,
    linear-gradient(to bottom, var(--neon-cyan) 12px, transparent 12px) 0 0,
    /* Top-Right */
    linear-gradient(to left, var(--neon-cyan) 12px, transparent 12px) 100% 0,
    linear-gradient(to bottom, var(--neon-cyan) 12px, transparent 12px) 100% 0,
    /* Bottom-Left */
    linear-gradient(to right, var(--neon-cyan) 12px, transparent 12px) 0 100%,
    linear-gradient(to top, var(--neon-cyan) 12px, transparent 12px) 0 100%,
    /* Bottom-Right */
    linear-gradient(to left, var(--neon-cyan) 12px, transparent 12px) 100% 100%,
    linear-gradient(to top, var(--neon-cyan) 12px, transparent 12px) 100% 100%;
  background-repeat: no-repeat;
  background-size: 12px 1.5px, 1.5px 12px, 12px 1.5px, 1.5px 12px, 12px 1.5px, 1.5px 12px, 12px 1.5px, 1.5px 12px;
  opacity: 0.3;
  transition: all 0.35s cubic-bezier(0.19, 1, 0.22, 1);
  z-index: 1;
}

.visual-share-card:hover::before {
  opacity: 0.95;
  background-size: 18px 1.5px, 1.5px 18px, 18px 1.5px, 1.5px 18px, 18px 1.5px, 1.5px 18px, 18px 1.5px, 1.5px 18px;
  filter: drop-shadow(0 0 3px var(--neon-cyan));
}

/* Sweep effect for Visual Share Card */
.visual-share-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0) 30%, 
    rgba(0, 240, 255, 0.15) 45%, 
    rgba(255, 255, 255, 0.3) 50%, 
    rgba(0, 240, 255, 0.15) 55%, 
    rgba(255, 255, 255, 0) 70%, 
    transparent 100%
  );
  transform: skewX(-25deg);
  transition: 0.9s cubic-bezier(0.19, 1, 0.22, 1);
  z-index: 2;
}

.visual-share-card:hover::after {
  left: 200%;
}

.vc-top-glow {
  position: absolute;
  top: -150px;
  left: -50px;
  width: 390px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.12), transparent 70%);
  pointer-events: none;
}

.vc-badge {
  font-family: var(--font-display);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 3px;
  color: var(--neon-cyan);
  text-transform: uppercase;
  text-shadow: 0 0 5px var(--neon-cyan-glow);
}

.vc-user-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.vc-avatar {
  font-size: 26px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--neon-cyan);
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--bg-card);
  box-shadow: 0 0 10px var(--neon-cyan-glow);
}

.vc-user-info {
  display: flex;
  flex-direction: column;
}

.vc-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
}

.vc-team-badge {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
}

.vc-match-box {
  border-left: 3.5px solid var(--neon-gold);
  padding-left: 12px;
  margin: 15px 0;
  display: flex;
  flex-direction: column;
}

.vc-match-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: 0.5px;
}

.vc-match-desc {
  font-size: 8.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.vc-story-bubble {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-main);
  font-style: italic;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.vc-indicators-row {
  display: flex;
  justify-content: space-around;
  margin: 20px 0 15px 0;
}

.vc-indicator-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.vci-val {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.circle-suffering .vci-val {
  color: var(--neon-pink);
  text-shadow: 0 0 8px var(--neon-pink-glow);
}

.circle-euphoria .vci-val {
  color: var(--neon-green);
  text-shadow: 0 0 8px var(--neon-green-glow);
}

.vci-lbl {
  font-family: var(--font-display);
  font-size: 7px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 1.5px;
}

.vc-footer {
  border-top: 1px solid var(--border-light);
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vc-dominant-row {
  font-size: 9.5px;
  color: var(--text-muted);
}

.vc-dominant-row strong {
  color: var(--neon-gold);
}

.vc-brand {
  font-family: var(--font-display);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--text-muted);
}

.share-actions-box {
  padding: 10px 20px 30px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}


/* --- SCREEN: RANKINGS & SOCIAL FEED --- */
.rankings-tabs {
  display: flex;
  height: 45px;
  border-bottom: 1px solid var(--border-light);
}

.ranking-tab {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  cursor: pointer;
  position: relative;
  transition: color var(--transition-fast);
}

.ranking-tab.active {
  color: var(--neon-cyan);
}

.ranking-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 15%;
  width: 70%;
  height: 3px;
  background-color: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan-glow);
  border-radius: var(--radius-pill) var(--radius-pill) 0 0;
}

.rankings-content {
  flex: 1;
  padding: 20px;
  box-sizing: border-box;
}

.ranking-sub-view {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.sub-view-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 5px;
}

/* Leaderboard List */
.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.leaderboard-row {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all var(--transition-fast);
}

.leaderboard-row.highlight-user {
  border-color: var(--neon-cyan);
  background-color: rgba(0, 240, 255, 0.05);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}

.rank-pos {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 900;
  color: var(--text-muted);
  width: 20px;
}

.leaderboard-row:nth-child(1) .rank-pos {
  color: var(--neon-gold);
}
.leaderboard-row:nth-child(2) .rank-pos {
  color: #c0c0c0; /* silver */
}
.leaderboard-row:nth-child(3) .rank-pos {
  color: #cd7f32; /* bronze */
}

.rank-avatar {
  font-size: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
}

.rank-name {
  flex: 1;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
}

.rank-pts {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: var(--neon-gold);
}

/* Simulated Friends feed styles */
.friends-feed-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feed-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feed-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.feed-user {
  display: flex;
  align-items: center;
  gap: 8px;
}

.feed-avatar {
  font-size: 16px;
}

.feed-username {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
}

.feed-time {
  font-size: 9px;
  color: var(--text-muted);
}

.feed-match {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  color: var(--neon-cyan);
  background-color: rgba(0, 240, 255, 0.05);
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  align-self: flex-start;
}

.feed-commentary {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--text-main);
  background-color: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  padding: 10px;
  border-left: 3px solid var(--border-focus);
}

.feed-metrics {
  display: flex;
  gap: 15px;
  border-top: 1px solid var(--border-light);
  padding-top: 10px;
  font-size: 9.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.feed-metrics strong {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
}

.feed-suffering-metric strong {
  color: var(--neon-pink);
}

.feed-euphoria-metric strong {
  color: var(--neon-green);
}

/* --- GAMIFIED WELCOME MISSIONS CARD --- */
.mission-card {
  /* Ultra-Premium Glassmorphism + Futuristic Cyan/Pink Mesh Gradient */
  background: radial-gradient(circle at 10% 10%, rgba(0, 240, 255, 0.08), transparent 50%), 
              radial-gradient(circle at 90% 90%, rgba(255, 0, 127, 0.05), transparent 50%), 
              linear-gradient(135deg, rgba(21, 24, 33, 0.85), rgba(11, 12, 16, 0.96));
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 22px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

/* Cyan Technical Corner Brackets */
.mission-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: 
    /* Top-Left */
    linear-gradient(to right, var(--neon-cyan) 10px, transparent 10px) 0 0,
    linear-gradient(to bottom, var(--neon-cyan) 10px, transparent 10px) 0 0,
    /* Top-Right */
    linear-gradient(to left, var(--neon-cyan) 10px, transparent 10px) 100% 0,
    linear-gradient(to bottom, var(--neon-cyan) 10px, transparent 10px) 100% 0,
    /* Bottom-Left */
    linear-gradient(to right, var(--neon-cyan) 10px, transparent 10px) 0 100%,
    linear-gradient(to top, var(--neon-cyan) 10px, transparent 10px) 0 100%,
    /* Bottom-Right */
    linear-gradient(to left, var(--neon-cyan) 10px, transparent 10px) 100% 100%,
    linear-gradient(to top, var(--neon-cyan) 10px, transparent 10px) 100% 100%;
  background-repeat: no-repeat;
  background-size: 10px 1.5px, 1.5px 10px, 10px 1.5px, 1.5px 10px, 10px 1.5px, 1.5px 10px, 10px 1.5px, 1.5px 10px;
  opacity: 0.22;
  transition: all 0.35s cubic-bezier(0.19, 1, 0.22, 1);
  z-index: 1;
}

/* Beautiful Holographic Shimmer Sweep */
.mission-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0) 30%, 
    rgba(0, 240, 255, 0.15) 45%, 
    rgba(255, 255, 255, 0.3) 50%, 
    rgba(0, 240, 255, 0.15) 55%, 
    rgba(255, 255, 255, 0) 70%, 
    transparent 100%
  );
  transform: skewX(-25deg);
  transition: 0.9s cubic-bezier(0.19, 1, 0.22, 1);
  z-index: 2;
}

.mission-card:hover {
  transform: translateY(-6px) scale(1.025);
  border-color: rgba(0, 240, 255, 0.6);
  box-shadow: 0 20px 40px rgba(0, 240, 255, 0.18), 0 0 15px rgba(0, 240, 255, 0.12), inset 0 0 12px rgba(0, 240, 255, 0.04), var(--glass-shadow);
}

.mission-card:hover::before {
  opacity: 0.95;
  background-size: 16px 1.5px, 1.5px 16px, 16px 1.5px, 1.5px 16px, 16px 1.5px, 1.5px 16px, 16px 1.5px, 1.5px 16px;
  filter: drop-shadow(0 0 3px var(--neon-cyan));
}

.mission-card:hover::after {
  left: 200%;
}

.mission-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 3;
}

.mission-header span:first-child {
  color: var(--neon-cyan);
}

.mission-pts-bonus {
  color: var(--neon-gold);
  background-color: rgba(255, 215, 0, 0.1);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  font-size: 9.5px;
}

.mission-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  z-index: 3;
}

.mission-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  z-index: 3;
}

.mission-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(0, 240, 255, 0.25);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.mission-item:active {
  transform: scale(0.98);
  background-color: rgba(255, 255, 255, 0.04);
}

.mission-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--text-muted);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  transition: all var(--transition-fast);
}

.mission-check::after {
  content: '✓';
  font-size: 11px;
  color: var(--text-dark);
  font-weight: 900;
  display: none;
}

.mission-item.done .mission-check {
  background-color: var(--neon-green);
  border-color: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green-glow);
}

.mission-item.done .mission-check::after {
  display: block;
}

.mission-item.done .m-title {
  text-decoration: line-through;
  color: var(--text-muted);
}

.mission-info {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.m-title {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.m-reward {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  color: var(--neon-gold);
}

/* --- GROUP STANDINGS TABLES STYLING --- */
.projection-alert {
  background: linear-gradient(135deg, rgba(255, 59, 48, 0.12), rgba(21, 24, 33, 0.95));
  border: 1px dashed rgba(255, 59, 48, 0.4);
  box-shadow: 0 0 15px rgba(255, 59, 48, 0.08);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: borderPulse 3s infinite alternate;
}

@keyframes borderPulse {
  0% { border-color: rgba(255, 59, 48, 0.3); }
  100% { border-color: rgba(255, 59, 48, 0.7); }
}

.projection-alert-title {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 900;
  color: var(--neon-red);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.projection-alert-desc {
  font-size: 9.5px;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

.group-table-card {
  background: rgba(21, 24, 33, 0.75);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.group-table-title {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 900;
  color: var(--text-main);
  border-left: 3px solid var(--neon-cyan);
  padding-left: 8px;
  margin: 0;
}

.group-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
  text-align: left;
}

.group-table th {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: 6px 4px;
  border-bottom: 1px solid var(--border-light);
}

.group-table td {
  padding: 8px 4px;
  vertical-align: middle;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.03);
}

.group-table tbody tr:last-child td {
  border-bottom: none;
}

/* Classification position colorings */
.pos-col {
  width: 20px;
  font-weight: 800;
  text-align: center;
  font-family: var(--font-display);
}

.qualified .pos-col {
  color: var(--neon-green);
  text-shadow: 0 0 6px var(--neon-green-glow);
}

.eliminated .pos-col {
  color: var(--text-muted);
}

.flag-col {
  width: 22px;
  font-size: 14px;
  text-align: center;
}

.team-col {
  font-weight: 600;
  color: var(--text-main);
}

.stat-col {
  width: 25px;
  text-align: center;
  color: var(--text-muted);
}

.pts-col {
  width: 32px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--text-main);
}

.qualified .pts-col {
  color: var(--neon-green);
}

/* Highlight for the user's selected country */
.fav-team-row {
  background: linear-gradient(90deg, rgba(255, 183, 0, 0.12), rgba(255, 183, 0, 0.02) 80%);
  border-left: 2px solid var(--neon-gold) !important;
}

.fav-team-row td {
  border-bottom: 0.5px solid rgba(255, 183, 0, 0.15) !important;
}

.fav-team-row .team-col {
  color: var(--neon-gold);
  font-weight: 800;
  text-shadow: 0 0 5px rgba(255, 183, 0, 0.2);
}

.fav-team-row .pts-col {
  color: var(--neon-gold) !important;
}

/* --- SIMULATOR BADGE STYLING --- */
.simulator-badge {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(255, 183, 0, 0.08);
  border-bottom: 1px solid var(--border-light);
  padding: 10px 20px;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-sizing: border-box;
}

.simulator-badge:active {
  background-color: rgba(255, 183, 0, 0.15);
}

.sim-badge-lbl {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 900;
  color: var(--neon-gold);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sim-badge-btn {
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 800;
  color: var(--neon-gold);
}

.dashboard-banner .simulator-badge {
  border: 1px solid rgba(255, 183, 0, 0.3);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-bottom: 12px;
}

/* --- PROFILE SCREEN STYLES (CLEANED FROM INLINE) --- */
.select-lang-custom {
  background-color: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  height: 48px;
  padding: 0 12px;
  font-weight: 600;
}

.input-group-email-backup {
  margin-top: 10px;
  border-top: 1px dashed var(--border-light);
  padding-top: 15px;
}

.lbl-email-backup {
  color: var(--neon-gold) !important;
  display: flex;
  align-items: center;
  gap: 6px;
}

.input-email-backup {
  margin: 0;
  background-color: rgba(255, 183, 0, 0.03);
  border-color: rgba(255, 183, 0, 0.2);
  width: 100%;
  box-sizing: border-box;
}

.desc-email-backup {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 5px;
  line-height: 1.4;
}

.btn-demo-shortcut {
  margin-top: 15px;
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

/* --- LEGAL DISCLAIMER & TERMS POLICY STYLING --- */
.auth-legal-disclaimer {
  margin-top: 15px;
  padding: 10px 5px 0 5px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.disclaimer-text {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.4;
  text-align: center;
  margin: 0;
}

.legal-link {
  color: var(--neon-cyan);
  text-decoration: underline;
  cursor: pointer;
  font-weight: 700;
  transition: text-shadow var(--transition-fast);
}

.legal-link:hover {
  text-shadow: 0 0 5px var(--neon-cyan-glow);
}

/* Legal Modal Styling */
.legal-modal-content {
  max-width: 90%;
  max-height: 80%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--neon-cyan);
  box-shadow: 0 0 20px var(--neon-cyan-glow);
}

.scrollable-modal-body {
  overflow-y: auto;
  padding-right: 5px;
  max-height: 250px;
}

.scrollable-modal-body h4 {
  font-family: var(--font-display);
  font-size: 11.5px;
  color: var(--neon-cyan);
  margin: 15px 0 6px 0;
  text-transform: uppercase;
}

.scrollable-modal-body p {
  font-size: 10.5px;
  color: var(--text-main);
  line-height: 1.4;
  margin: 0 0 10px 0;
}

/* --- LIVE FRIENDS TRIBUNE (SOCIAL HOOK) --- */
.live-friends-tribune {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 12px;
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  box-sizing: border-box;
}

.friends-tribune-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tribune-title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  color: var(--neon-cyan);
  letter-spacing: 0.5px;
}

.tribune-subtitle {
  font-size: 9px;
  color: var(--text-muted);
}

.friends-avatars-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 8px;
}

.friend-live-bubble {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
  transition: all var(--transition-fast) cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.friend-avatar-circle {
  font-size: 20px;
  line-height: 1;
}

.friend-name {
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 700;
  color: var(--text-main);
}

.friend-current-reaction {
  position: absolute;
  top: -8px;
  right: -4px;
  font-size: 14px;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}

.friends-bubble-toast {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #151821, #0b0c10);
  border: 1px solid var(--neon-cyan);
  border-radius: var(--radius-xs);
  padding: 4px 10px;
  font-size: 9px;
  color: var(--text-main);
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  transition: opacity 0.3s ease;
  z-index: 10;
}

/* --- PRIVATE LEAGUE DETAILS WOW CARD --- */
.league-details-card {
  /* Ultra-Premium Glassmorphism + Tech Cyan/Gold Mesh Gradient */
  background: radial-gradient(circle at 10% 10%, rgba(0, 240, 255, 0.08), transparent 50%), 
              radial-gradient(circle at 90% 90%, rgba(255, 215, 0, 0.05), transparent 50%), 
              linear-gradient(135deg, rgba(21, 24, 33, 0.85), rgba(11, 12, 16, 0.96));
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.08);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.league-details-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 240, 255, 0.5);
  box-shadow: 0 18px 40px rgba(0, 240, 255, 0.15), 0 0 15px rgba(0, 240, 255, 0.1), var(--glass-shadow);
}

/* --- QR CODE SPECIFIC SHARING CARD WOW STYLING --- */
.vc-footer-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vc-qr-box {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: var(--radius-xs);
  padding: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.1);
  transition: all var(--transition-fast);
}

.vc-qr-box:hover {
  border-color: var(--neon-cyan);
  background-color: rgba(0, 240, 255, 0.08);
  box-shadow: 0 0 12px var(--neon-cyan-glow);
  transform: scale(1.08);
}

.vc-qr-svg {
  filter: drop-shadow(0 0 2px var(--neon-cyan-glow));
}


