/* -------------------------------------------------------------
 * PLAY TO WIN - Next Gen Mortgage
 * Ultra-Modern Mobile App UI System
 * ------------------------------------------------------------- */

/* ROOT VARIABLES - COLOR SYSTEM */
:root {
  /* Brand Identity Colors */
  --bg-dark: #051325;        /* Dark Navy background */
  --accent-cyan: #009FDF;    /* Electric Cyan */
  --accent-sky: #71C5E8;     /* Soft Sky Blue */
  --accent-sand: #F4EFE6;    /* Sand / Soft Cream */
  --accent-grey: #A6BBC8;    /* Steel Blue-Grey */
  --white: #FFFFFF;
  --black: #000000;

  /* Team Colors */
  --team-la-color: #7B2CBF;
  --team-sd-color: #009FDF;
  --team-bakersfield-color: #FF7A00;
  --team-modesto-color: #FDC500;
  --team-merced-color: #16A34A;
  --team-north-color: #0C4A21;

  /* Typography */
  --font-headline: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  /* Dimensions & Durations */
  --bottom-nav-height: 96px;
  --header-height: 64px;
  --transition-speed: 0.25s;
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
  --border-radius-lg: 32px;
  --border-radius-md: 20px;
}

/* RESET & RESET MOBILE OVERLAYS */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-dark);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
}

/* APP WRAPPER WITH TEXTURED BACKDROP */
.ptw-app {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100dvh;
  position: relative;
  background: radial-gradient(circle at top, rgba(11, 35, 64, 0.7) 0%, rgba(5, 19, 37, 0.96) 80%), url('Identidad Visual/background OK.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* Background Aurora Blobs (Creative CSS filter) */
.aurora-blob {
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  filter: blur(95px);
  opacity: 0.16;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 1;
  animation: floatBlob 20s infinite ease-in-out;
}
.blob-1 {
  background: var(--accent-cyan);
  top: 10%;
  left: -80px;
  animation-duration: 25s;
}
.blob-2 {
  background: #7B2CBF; /* Purple */
  bottom: 20%;
  right: -80px;
  animation-duration: 30s;
  animation-delay: -5s;
}
.blob-3 {
  background: #FDC500; /* Yellow/Gold */
  top: 45%;
  left: 30%;
  width: 250px;
  height: 250px;
  animation-duration: 22s;
  animation-delay: -10s;
}

@keyframes floatBlob {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(50px, -60px) scale(1.15); }
  66% { transform: translate(-30px, 30px) scale(0.9); }
  100% { transform: translate(0, 0) scale(1); }
}

/* Audio Visualizer Header Control */
.audio-control-container {
  display: flex;
  align-items: center;
  margin-left: auto;
  margin-right: 14px;
  z-index: 200;
}

.audio-toggle-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  height: 38px;
  padding: 0 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.25s var(--ease-premium);
  box-shadow: 0 0 12px rgba(0, 159, 223, 0.08);
}

.audio-toggle-btn:hover, .audio-toggle-btn:active {
  background: rgba(0, 159, 223, 0.18);
  border-color: rgba(0, 159, 223, 0.55);
  box-shadow: 0 0 20px rgba(0, 159, 223, 0.4);
  transform: scale(1.05);
}

.sound-wave {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 16px;
}

.audio-toggle-label {
  font-family: var(--font-headline);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--accent-cyan);
  text-shadow: 0 0 8px rgba(0, 159, 223, 0.4);
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.audio-toggle-btn.muted .audio-toggle-label {
  color: var(--accent-grey);
  text-shadow: none;
}

.audio-toggle-btn .bar {
  width: 3px;
  height: 16px;
  background-color: var(--accent-cyan);
  border-radius: 2px;
  transition: height 0.2s ease, background-color 0.2s ease;
  filter: drop-shadow(0 0 4px var(--accent-cyan));
}

.audio-toggle-btn.playing .bar {
  animation: bounceBar 0.9s infinite ease-in-out alternate;
}

.audio-toggle-btn.playing .bar-1 { animation-delay: 0.1s; }
.audio-toggle-btn.playing .bar-2 { animation-delay: 0.4s; height: 20px; }
.audio-toggle-btn.playing .bar-3 { animation-delay: 0.25s; height: 18px; }
.audio-toggle-btn.playing .bar-4 { animation-delay: 0.5s; }

.audio-toggle-btn.muted .bar {
  height: 4px;
  background-color: var(--accent-grey);
  filter: none;
  animation: none;
}

@keyframes bounceBar {
  0% { transform: scaleY(0.3); }
  100% { transform: scaleY(1.3); }
}

/* Custom Neon SVG team emblems styling */
.neon-svg {
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px currentColor) drop-shadow(0 0 12px rgba(255, 255, 255, 0.15));
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

@keyframes swayPalm {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(6deg); }
  100% { transform: rotate(0deg); }
}
.svg-palm {
  transform-origin: bottom center;
  animation: swayPalm 3.2s infinite ease-in-out;
}

@keyframes flowWave {
  0% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}
.svg-wave {
  animation: flowWave 2.2s infinite ease-in-out;
}

@keyframes sunsetGlow {
  0% { filter: drop-shadow(0 0 5px currentColor) opacity(0.85); }
  50% { filter: drop-shadow(0 0 14px currentColor) opacity(1); }
  100% { filter: drop-shadow(0 0 5px currentColor) opacity(0.85); }
}
.svg-sunset {
  animation: sunsetGlow 2.8s infinite ease-in-out;
}

@keyframes rotateSun {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.svg-sun {
  transform-origin: center;
  animation: rotateSun 15s infinite linear;
}

@keyframes pulseSprout {
  0% { transform: scale(1); }
  50% { transform: scale(1.07); }
  100% { transform: scale(1); }
}
.svg-sprout {
  transform-origin: bottom center;
  animation: pulseSprout 2.5s infinite ease-in-out;
}

@keyframes swayPine {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(4deg); }
  100% { transform: rotate(0deg); }
}
.svg-pine {
  transform-origin: bottom center;
  animation: swayPine 3.8s infinite ease-in-out;
}

/* SCREEN 0: SPLASH SCREEN */
.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.splash-blob {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.28;
  pointer-events: none;
  z-index: 0;
  animation: floatBlob 22s infinite ease-in-out;
}

.splash-blob-1 {
  background: #00e5ff;
  top: -100px;
  left: -100px;
  animation-duration: 24s;
}

.splash-blob-2 {
  background: #7B2CBF;
  bottom: -150px;
  right: -100px;
  animation-duration: 28s;
  animation-delay: -5s;
}

.splash-blob-3 {
  background: #ff5e7e;
  top: 35%;
  right: 15%;
  width: 320px;
  height: 320px;
  animation-duration: 20s;
  animation-delay: -10s;
}

.splash-screen.fade-out {
  opacity: 0;
  visibility: hidden;
}

.splash-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 32px;
  background: rgba(5, 20, 38, 0.82); /* Dark glassmorphic container for optimal logo and text contrast */
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  max-width: 90vw;
  width: 340px;
  box-sizing: border-box;
}

.splash-logo {
  width: 240px;
  max-width: 80vw;
  height: auto;
  margin-bottom: 32px;
  filter: drop-shadow(0 0 20px rgba(0, 159, 223, 0.4));
  animation: logoPulse 2.5s infinite ease-in-out;
}

.splash-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(0, 159, 223, 0.2);
  border-top: 3px solid var(--accent-cyan);
  border-radius: 50%;
  animation: spin 1s infinite linear;
  margin-bottom: 16px;
}

.splash-text {
  font-family: var(--font-headline);
  font-size: 0.95rem;
  letter-spacing: 4px;
  font-weight: 800;
  color: var(--accent-cyan);
  text-shadow: 0 0 10px rgba(0, 159, 223, 0.3);
}

.splash-loader-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.splash-loader-group.fade-out {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
  display: none;
}

/* PORTAL ENTER BUTTON */
.portal-enter-btn {
  background: #051426; /* Solid dark blue to guarantee contrast */
  border: 2px solid var(--accent-cyan);
  color: var(--white);
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.35), inset 0 0 10px rgba(0, 229, 255, 0.15);
  padding: 18px 44px;
  border-radius: 30px;
  font-family: var(--font-headline);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 3px;
  cursor: pointer;
  outline: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.6);
}

.portal-enter-btn:hover {
  background: var(--accent-cyan);
  color: #051426;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 35px rgba(0, 229, 255, 0.75);
  transform: translateY(-2px) scale(1.04);
  text-shadow: none;
}

.portal-enter-btn:active {
  transform: translateY(1px) scale(0.96);
  opacity: 0.9;
}

.portal-enter-btn.hide-btn {
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  display: none;
}

.portal-enter-btn.show-btn {
  display: block;
  animation: pulsePortalBtn 2.2s infinite ease-in-out, revealPortalBtn 0.5s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pulsePortalBtn {
  0% { box-shadow: 0 0 18px rgba(0, 229, 255, 0.25), inset 0 0 10px rgba(0, 229, 255, 0.08); }
  50% { box-shadow: 0 0 35px rgba(0, 229, 255, 0.55), inset 0 0 10px rgba(0, 229, 255, 0.08); }
  100% { box-shadow: 0 0 18px rgba(0, 229, 255, 0.25), inset 0 0 10px rgba(0, 229, 255, 0.08); }
}

@keyframes revealPortalBtn {
  0% { opacity: 0; transform: translateY(20px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes logoPulse {
  0% { transform: scale(1); filter: drop-shadow(0 0 15px rgba(0, 159, 223, 0.3)); }
  50% { transform: scale(1.03); filter: drop-shadow(0 0 35px rgba(0, 159, 223, 0.7)); }
  100% { transform: scale(1); filter: drop-shadow(0 0 15px rgba(0, 159, 223, 0.3)); }
}

/* MINIMAL HEADER TOP BAR */
.app-header-bar {
  height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.04);
  background: #051325;
  z-index: 100;
  position: relative;
  flex-shrink: 0;
}

.header-back-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: var(--accent-grey);
  transition: all 0.2s var(--ease-premium);
}

.header-back-btn:hover {
  color: var(--accent-cyan);
  background: rgba(0, 159, 223, 0.1);
  border-color: rgba(0, 159, 223, 0.3);
  transform: translateX(-2px);
}

.header-back-btn.hide-back {
  display: none;
}

.back-svg-modern {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.app-header-logo {
  height: 42px;
  width: auto;
  filter: drop-shadow(0 2px 10px rgba(0, 159, 223, 0.25));
}

.app-header-day {
  font-family: var(--font-headline);
  font-size: 0.7rem;
  font-weight: 900;
  color: var(--accent-cyan);
  background: rgba(0, 159, 223, 0.12);
  border: 1px solid rgba(0, 159, 223, 0.35);
  padding: 4px 12px;
  border-radius: 12px;
  letter-spacing: 0.5px;
  box-shadow: 0 0 10px rgba(0, 159, 223, 0.15);
}

/* SCROLLABLE MAIN CONTENT AREA */
.app-main-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 0 130px 0; /* Padding below for floating nav clearance */
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 50;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.app-main-content::-webkit-scrollbar {
  display: none;
}

/* TABS VIEW CONTROLLER */
.app-view {
  display: none;
  opacity: 0;
  transform: scale(0.98) translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s var(--ease-premium);
}

.app-view.active {
  display: block;
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* MODERN CINEMATIC HERO SHOWCASE (Overlapping Cards style in Ref Left Screen) */
.hero-showcase-container {
  padding: 20px;
  width: 100%;
}

.hero-card-modern {
  position: relative;
  width: 100%;
  aspect-ratio: 941 / 1672;
  border-radius: 36px;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.hero-bg-modern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.95;
}

.hero-content-modern {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 20px;
}

.video-block-modern {
  width: 88%;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  border-radius: 28px;
  border: 2px solid #009FDF;
  background: rgba(10, 35, 64, 0.65);
  box-shadow: 0 0 30px rgba(0, 159, 223, 0.35);
  display: block;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.video-modern {
  width: 100%;
  height: 100%;
  border-radius: 26px;
  object-fit: contain;
  background: transparent;
  display: block;
}

/* Overlapping Info sheet at bottom of Hero (Reference 1 style) */
/* Points System Showcase in Hero (Grid style replacing hero-floating-overlay) */
.ps-showcase-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ps-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
}

.ps-showcase-card {
  background: rgba(10, 35, 64, 0.8);
  border: 1px solid rgba(0, 159, 223, 0.25);
  border-radius: 20px;
  padding: 16px 12px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ps-showcase-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(0, 159, 223, 0.2);
  border-color: rgba(0, 159, 223, 0.6);
}

.ps-showcase-num {
  font-family: var(--font-headline);
  font-size: 2.8rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 4px;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.15);
}

.ps-showcase-lbl {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ps-showcase-footer {
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffffff;
  background: rgba(0, 159, 223, 0.15);
  border: 1px solid rgba(0, 159, 223, 0.3);
  padding: 10px 14px;
  border-radius: 14px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-shadow: 0 0 10px rgba(0, 159, 223, 0.4);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

/* 🏆 VIEW 1: RANKING SECTION (Ref 2 stats list weight) */
.ranking-section-modern,
.equipos-section-modern,
.retos-section-modern,
.mvp-section-modern {
  padding: 10px 20px 34px 20px;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

h2 {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  display: block;
  margin-top: 1px;
}

.live-pulse-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-headline);
  font-size: 0.65rem;
  font-weight: 900;
  color: var(--accent-cyan);
  background: rgba(0, 159, 223, 0.1);
  padding: 4px 8px;
  border-radius: 8px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-cyan);
  animation: pulseDot 1.5s infinite ease-in-out;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.ranking-list-modern {
  border-radius: var(--border-radius-lg);
  background: rgba(10, 35, 64, 0.45);
  border: 1.5px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  backdrop-filter: blur(20px);
  padding: 6px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 24px 1fr 110px;
  align-items: center;
  gap: 12px;
  padding: 12px 10px;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ranking-row:last-child {
  border-bottom: none;
}

.ranking-row:active {
  transform: scale(0.98);
  background: rgba(255, 255, 255, 0.02);
}

.ranking-row .rank-number {
  color: var(--accent-cyan);
  font-weight: 900;
  font-size: 1.25rem;
  font-family: var(--font-headline);
  text-align: center;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

.ranking-row strong {
  font-family: var(--font-headline);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.ranking-row b {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
  text-align: right;
}

/* Callout banner info */
.championship-callout {
  display: flex;
  align-items: flex-start;
  background: rgba(0, 159, 223, 0.06);
  border: 1.5px solid rgba(0, 159, 223, 0.15);
  border-radius: var(--border-radius-md);
  padding: 14px;
  margin: 20px 0 10px 0;
}

.callout-icon {
  font-size: 1.3rem;
  margin-right: 12px;
}

.callout-text h4 {
  font-family: var(--font-headline);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--white);
}

.callout-text p {
  font-size: 0.75rem;
  color: var(--accent-grey);
  line-height: 1.4;
  margin-top: 2px;
}

/* 🗺️ VIEW 2: CITIES (MAP & TEAMS) */
.map-card-modern {
  background: rgba(10, 35, 64, 0.45);
  border: 1.5px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--border-radius-lg);
  padding: 16px;
  margin-top: 20px;
  backdrop-filter: blur(25px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.svg-map-container {
  width: 100%;
  height: 240px;
  position: relative;
}

/* 2-column rectangular buttons grid using botones.png */
/* 2-column rectangular buttons grid */
.teams-buttons-grid-modern {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
  padding-bottom: 24px;
}

.team-select-btn {
  aspect-ratio: 1.58 / 1;
  border-radius: 20px;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s var(--ease-premium), border-color 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.team-select-btn:active {
  transform: scale(0.96);
}

.team-select-btn:hover {
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.55), 0 0 15px rgba(0, 159, 223, 0.15);
}

/* Map Markers and Interaction */
.map-marker {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--team-color);
  border: 1.5px solid var(--white);
  box-shadow: 0 0 10px var(--team-color);
  cursor: pointer;
  transform: translate(-50%, -50%);
  animation: pulseMarker 2s infinite ease-in-out;
  z-index: 10;
}

@keyframes pulseMarker {
  0% { box-shadow: 0 0 0 0 rgba(0, 159, 223, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(0, 159, 223, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 159, 223, 0); }
}

.svg-ca-outline {
  fill: #0c2642;
  stroke: rgba(0, 159, 223, 0.35);
  stroke-width: 1.5;
}

.svg-marker-glow {
  animation: glowMarker 2s infinite ease-in-out;
}

@keyframes glowMarker {
  0% { r: 5; opacity: 0.7; }
  50% { r: 14; opacity: 0; }
  100% { r: 5; opacity: 0; }
}

.svg-city-label {
  font-family: var(--font-headline);
  font-size: 8px;
  font-weight: 800;
  fill: var(--white);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}

/* 📅 VIEW 3: TIMELINE / CALENDAR (RETOS) */
/* Pill-shaped chip selectors (Like Reference inspo tags: Autumn, Nude tags) */
.weeks-nav-modern {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-top: 16px;
  padding: 4px 0;
}

.weeks-nav-modern::-webkit-scrollbar {
  display: none;
}

.week-btn-modern {
  flex-shrink: 0;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-headline);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.week-btn-modern.active {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: var(--bg-dark);
  box-shadow: 0 0 10px rgba(0, 159, 223, 0.3);
}

.timeline-slider-container {
  overflow-x: auto;
  padding: 12px 0;
  margin-top: 10px;
  scrollbar-width: none;
}

.timeline-slider-container::-webkit-scrollbar {
  display: none;
}

.timeline-days-scroll {
  display: flex;
  gap: 10px;
}

.day-bubble {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(10, 35, 64, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.day-num {
  font-family: var(--font-headline);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.day-month {
  font-family: var(--font-body);
  font-size: 0.55rem;
  color: var(--accent-grey);
  margin-top: 2px;
}

.day-bubble.active {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 159, 223, 0.3);
}

.day-bubble.active .day-num { color: var(--bg-dark); }
.day-bubble.active .day-month { color: var(--bg-dark); }

/* Challenge detailed card display */
.challenge-display-card-modern {
  margin-top: 20px;
  padding: 24px;
  border-radius: var(--border-radius-lg);
  background: rgba(10, 35, 64, 0.55);
  border: 1.5px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(25px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.challenge-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 10px;
}

.challenge-day-label {
  font-family: var(--font-headline);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent-cyan);
}

.challenge-points-badge {
  background: rgba(253, 197, 0, 0.12);
  border: 1px solid var(--team-modesto-color);
  color: var(--team-modesto-color);
  font-family: var(--font-headline);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 10px;
}

.challenge-title {
  font-family: var(--font-headline);
  font-size: 1.2rem;
  font-weight: 900;
  margin-bottom: 10px;
}

.challenge-desc {
  font-size: 0.85rem;
  color: var(--accent-grey);
  line-height: 1.5;
  margin-bottom: 16px;
}

.challenge-winner-box {
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--border-radius-md);
  padding: 12px;
  border-left: 3px solid var(--accent-grey);
}

.winner-title {
  font-family: var(--font-headline);
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--accent-sand);
  letter-spacing: 1px;
}

.winner-team-name {
  font-family: var(--font-headline);
  font-size: 0.85rem;
  font-weight: 800;
  margin-top: 4px;
  display: flex;
  align-items: center;
}

.winner-points {
  font-size: 0.8rem;
  color: var(--accent-cyan);
  font-weight: 700;
  margin-left: auto;
}

/* 🏅 VIEW 4: SINGLE MVP CARD (FUT CARD SHOWCASE) */
#view-mvp {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: calc(100dvh - var(--header-height) - 30px);
  background: url('Identidad Visual/mpv 2.png') no-repeat center center;
  background-size: 100% 100%;
  padding-bottom: 0;
}

#view-mvp.active {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#view-mvp h2,
#view-mvp .section-subtitle {
  display: none !important;
}

.mvp-section-modern {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.mvp-card-modern {
  margin-top: 0;
  width: 100%;
  max-width: 320px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0;
  padding: 32px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transform: translateY(-30px);
}

.mvp-card-modern::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.08) 50%, transparent 60%);
  animation: shineFutCard 6s infinite linear;
}

@keyframes shineFutCard {
  0% { transform: translate(-30%, -30%) rotate(0deg); }
  100% { transform: translate(30%, 30%) rotate(0deg); }
}

.fut-avatar-wrap {
  width: 130px;
  height: 130px;
  margin: 0 auto 16px auto;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Circular player image with Aros.png spritesheet framing */
.player-aro-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('Identidad Visual/Equipos/Aros.png');
  background-size: 300% 200%;
  z-index: 5;
  pointer-events: none;
}

.aro-north { background-position: 0% 0%; }
.aro-la { background-position: 50% 0%; }
.aro-bakersfield { background-position: 100% 0%; }
.aro-sd { background-position: 0% 100%; }
.aro-modesto { background-position: 50% 100%; }
.aro-merced { background-position: 100% 100%; }

.fut-aro-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('Identidad Visual/Equipos/Aros.png');
  background-size: 300% 200%;
  z-index: 10;
  pointer-events: none;
}

.fut-img {
  width: 98px;
  height: 98px;
  border-radius: 50%;
  object-fit: cover;
  z-index: 2;
}

.fut-name {
  font-family: var(--font-headline);
  font-size: 1.6rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fut-team {
  font-family: var(--font-headline);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 4px;
}

.fut-city {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--accent-grey);
}

.fut-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
}

.fut-stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fut-stat-value {
  font-family: var(--font-headline);
  font-size: 2rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}

.fut-stat-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  color: var(--accent-grey);
  text-transform: uppercase;
  margin-top: 4px;
}

/* 📱 FLOATING 3D NEUMORPHIC DOCK (Icons animated, illuminated, with volume) */
.bottom-nav-wrapper-modern {
  position: fixed;
  bottom: 24px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 300;
  padding: 0 16px;
  pointer-events: none;
}

.bottom-nav-modern {
  pointer-events: auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  max-width: 420px;
  height: 96px;
  padding: 0 12px;
  background: rgba(5, 20, 38, 0.88);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 32px;
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.6), 
    inset 1px 1px 3px rgba(255, 255, 255, 0.1),
    0 0 15px rgba(0, 159, 223, 0.05);
}

.nav-item-modern {
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 100%;
  cursor: pointer;
  position: relative;
}

.nav-item-modern::after {
  content: '';
  position: absolute;
  bottom: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan), 0 0 16px var(--accent-cyan);
  opacity: 0;
  transform: scale(0.4) translateY(4px);
  transition: opacity 0.25s var(--ease-premium), transform 0.25s var(--ease-premium);
}

.nav-item-modern.active::after {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Neumorphic volumetric button (Ref 3, 5 style) */
.nav-btn-volume-modern {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #112d4e 0%, #051425 100%);
  border: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 
    4px 4px 8px rgba(0, 0, 0, 0.5), 
    -4px -4px 8px rgba(255, 255, 255, 0.04), 
    inset 1px 1px 2px rgba(255, 255, 255, 0.08);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}

.nav-svg-modern {
  width: 24px;
  height: 24px;
  color: var(--accent-grey);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: color 0.25s ease, filter 0.25s ease;
}

.nav-label-modern {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--accent-grey);
  margin-top: 6px;
  transition: color 0.2s ease, font-weight 0.2s ease;
}

/* Volumetric active states (pressed volume + glowing aura) */
.nav-item-modern.active .nav-btn-volume-modern {
  background: linear-gradient(135deg, #051425 0%, #0d2847 100%);
  border-color: rgba(0, 159, 223, 0.5);
  box-shadow: 
    inset 3px 3px 6px rgba(0, 0, 0, 0.6), 
    inset -3px -3px 6px rgba(255, 255, 255, 0.03), 
    0 0 15px rgba(0, 159, 223, 0.35);
}

.nav-item-modern.active .nav-svg-modern {
  color: var(--accent-cyan);
  filter: drop-shadow(0 0 8px rgba(0, 159, 223, 0.95)) drop-shadow(0 0 16px rgba(0, 159, 223, 0.4));
}

.nav-item-modern.active .nav-label-modern {
  color: var(--accent-cyan);
  font-weight: 800;
}

/* SVGs interactive keyframe animations */
@keyframes floatIcon {
  0% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
  100% { transform: translateY(0); }
}

@keyframes wobbleCompass {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(-8deg); }
  75% { transform: rotate(8deg); }
  100% { transform: rotate(0deg); }
}

@keyframes pulseIcon {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

@keyframes spinIcon {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.svg-anim-float { animation: floatIcon 3.5s infinite ease-in-out; }
.svg-anim-compass { animation: wobbleCompass 4s infinite ease-in-out; }
.svg-anim-pulse { animation: pulseIcon 2.5s infinite ease-in-out; }
.svg-anim-spin { animation: spinIcon 16s infinite linear; }

/* 📥 iOS STYLE BOTTOM SHEET DRAWER */
.bottom-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 11, 20, 0.75);
  backdrop-filter: blur(8px);
  z-index: 500;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.bottom-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.bottom-drawer {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  background: radial-gradient(circle at top, #0f2d50 0%, #051426 100%);
  border-top: 2px solid var(--accent-cyan);
  border-radius: 32px 32px 0 0;
  padding: 16px 20px 48px 20px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
}

.bottom-drawer-overlay.open .bottom-drawer {
  transform: translateX(-50%) translateY(0);
}

.drawer-handle-bar {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.drawer-handle {
  width: 44px;
  height: 5px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}

.drawer-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: none;
  font-size: 1.4rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10;
}

.drawer-close-btn:active {
  background: rgba(255, 255, 255, 0.2);
}

.drawer-content {
  flex: 1;
}

/* Team Drawer Details */
/* Drawer Team Poster (Vertical aspect ratio) */
.drawer-team-poster-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  width: 100%;
}

.drawer-team-poster {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 0.74 / 1; /* Match the vertical image proportion */
  border-radius: 24px;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}

.drawer-team-poster::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(5, 20, 38, 0.92) 10%, rgba(5, 20, 38, 0) 50%);
  pointer-events: none;
  z-index: 1;
}

.drawer-team-poster-title {
  font-family: var(--font-headline);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--white);
  z-index: 2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.drawer-team-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.drawer-stat-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-md);
  padding: 10px;
  text-align: center;
}

.drawer-stat-val {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-cyan);
}

.drawer-stat-lbl {
  font-family: var(--font-body);
  font-size: 0.6rem;
  color: var(--accent-grey);
  text-transform: uppercase;
}

.drawer-roster-title {
  font-family: var(--font-headline);
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 6px;
}

.drawer-roster-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-roster-item {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  padding: 8px 12px;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.02);
  cursor: pointer;
}

.drawer-roster-card-wrap {
  width: 36px;
  height: 48px;
  position: relative;
  margin-right: 12px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 35, 64, 0.45);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

.drawer-roster-card-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}

.drawer-roster-card-fallback {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #1b395d;
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 0.75rem;
  color: var(--white);
  width: 100%;
  height: 100%;
}

.drawer-roster-info {
  flex: 1;
}

.drawer-roster-name {
  font-family: var(--font-headline);
  font-size: 0.85rem;
  font-weight: 800;
}

.drawer-roster-city {
  font-size: 0.65rem;
  color: var(--accent-grey);
}

.drawer-roster-pts {
  font-family: var(--font-headline);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 10px;
}

/* 🎇 CELEBRATION CANVAS */
.celebration-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 600;
}

/* ⚙️ DEV SANDBOX PANEL */
.admin-sandbox-wrapper {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  z-index: 400;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s ease;
}

.admin-sandbox-wrapper:not(.open) {
  transform: translate(-50%, 100%);
}

.admin-toggle-btn {
  display: none !important;
  align-self: center;
  background: #113158;
  border: 1px solid rgba(0, 159, 223, 0.3);
  border-bottom: none;
  color: var(--white);
  font-family: var(--font-headline);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 6px 14px;
  border-radius: 10px 10px 0 0;
  cursor: pointer;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 5px;
}

.admin-panel-body {
  background: #06182c;
  border-top: 2px solid var(--accent-cyan);
  padding: 12px 16px;
  max-height: 220px;
  overflow-y: auto;
}

.admin-panel-body h3 {
  font-family: var(--font-headline);
  font-size: 0.9rem;
  font-weight: 800;
}

.admin-help {
  font-size: 0.65rem;
  color: var(--accent-grey);
  margin-bottom: 10px;
}

.admin-config-group {
  margin-bottom: 10px;
}

.admin-config-group label {
  font-size: 0.65rem;
  color: var(--accent-sand);
  display: block;
}

.sheet-url-row {
  display: flex;
  gap: 6px;
}

.sheet-url-row input {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: var(--white);
  font-size: 0.7rem;
  padding: 4px 6px;
}

.sheet-url-row button {
  background: var(--accent-cyan);
  border: none;
  border-radius: 4px;
  color: var(--bg-dark);
  font-family: var(--font-headline);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 4px 10px;
  cursor: pointer;
}

.admin-separator {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 10px 0;
}

.admin-teams-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-team-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
  padding: 4px 10px;
  border-radius: 6px;
}

.admin-team-lbl {
  font-family: var(--font-headline);
  font-size: 0.75rem;
  font-weight: 800;
}

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

.admin-score-val {
  font-family: var(--font-headline);
  font-size: 0.85rem;
  font-weight: 800;
  min-width: 28px;
  text-align: center;
}

.admin-score-btn {
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.admin-score-btn:active {
  background: rgba(255, 255, 255, 0.2);
}

/* FLIP HELPERS */
.card-moving {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- NEW REDESIGN STYLES (HOME HUB DASHBOARD & POSTER) --- */
.poster-container {
  padding: 16px 16px 6px 16px;
  width: 100%;
}

.poster-img {
  width: 100%;
  height: auto;
  max-height: 240px;
  object-fit: cover;
  border-radius: 28px;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  box-shadow: 
    0 12px 30px rgba(0, 0, 0, 0.6), 
    0 0 25px rgba(0, 159, 223, 0.15);
  display: block;
}

.dashboard-grid-modern {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 10px 16px 36px 16px;
}

.dash-btn-modern {
  background: linear-gradient(135deg, #0e2946 0%, #051425 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  padding: 24px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  box-shadow: 
    5px 5px 15px rgba(0, 0, 0, 0.5), 
    inset 1px 1px 2px rgba(255, 255, 255, 0.08);
  transition: transform 0.25s var(--ease-premium), box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.dash-btn-modern:active {
  transform: scale(0.95);
}

.dash-btn-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: transform 0.25s var(--ease-premium), background 0.25s ease;
}

.dash-btn-svg {
  width: 24px;
  height: 24px;
  color: var(--accent-grey);
  transition: color 0.25s ease, filter 0.25s ease;
}

.dash-btn-info h3 {
  font-family: var(--font-headline);
  font-size: 0.85rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 1px;
}

.dash-btn-info p {
  font-family: var(--font-body);
  font-size: 0.65rem;
  color: var(--accent-grey);
  margin-top: 4px;
}

/* Glowing hover/active neon effects for Dashboard buttons */
.btn-ranking:hover, .btn-ranking:active {
  border-color: rgba(253, 197, 0, 0.45);
  box-shadow: 0 8px 25px rgba(253, 197, 0, 0.18), inset 1px 1px 2px rgba(255, 255, 255, 0.1);
}
.btn-ranking:hover .dash-btn-icon-wrap, .btn-ranking:active .dash-btn-icon-wrap {
  background: rgba(253, 197, 0, 0.1);
  transform: scale(1.05) translateY(-2px);
  border-color: rgba(253, 197, 0, 0.2);
}
.btn-ranking:hover .dash-btn-svg, .btn-ranking:active .dash-btn-svg {
  color: #FDC500;
  filter: drop-shadow(0 0 6px #FDC500);
}

.btn-equipos:hover, .btn-equipos:active {
  border-color: rgba(123, 44, 191, 0.45);
  box-shadow: 0 8px 25px rgba(123, 44, 191, 0.18), inset 1px 1px 2px rgba(255, 255, 255, 0.1);
}
.btn-equipos:hover .dash-btn-icon-wrap, .btn-equipos:active .dash-btn-icon-wrap {
  background: rgba(123, 44, 191, 0.1);
  transform: scale(1.05) translateY(-2px);
  border-color: rgba(123, 44, 191, 0.2);
}
.btn-equipos:hover .dash-btn-svg, .btn-equipos:active .dash-btn-svg {
  color: #7B2CBF;
  filter: drop-shadow(0 0 6px #7B2CBF);
}

.btn-retos:hover, .btn-retos:active {
  border-color: rgba(255, 122, 0, 0.45);
  box-shadow: 0 8px 25px rgba(255, 122, 0, 0.18), inset 1px 1px 2px rgba(255, 255, 255, 0.1);
}
.btn-retos:hover .dash-btn-icon-wrap, .btn-retos:active .dash-btn-icon-wrap {
  background: rgba(255, 122, 0, 0.15);
  transform: scale(1.05) translateY(-2px);
  border-color: rgba(255, 122, 0, 0.25);
}
.btn-retos:hover .dash-btn-svg, .btn-retos:active .dash-btn-svg {
  color: #FF7A00;
  filter: drop-shadow(0 0 6px #FF7A00);
}

.btn-mvp:hover, .btn-mvp:active {
  border-color: rgba(0, 159, 223, 0.45);
  box-shadow: 0 8px 25px rgba(0, 159, 223, 0.18), inset 1px 1px 2px rgba(255, 255, 255, 0.1);
}
.btn-mvp:hover .dash-btn-icon-wrap, .btn-mvp:active .dash-btn-icon-wrap {
  background: rgba(0, 159, 223, 0.1);
  transform: scale(1.05) translateY(-2px);
  border-color: rgba(0, 159, 223, 0.2);
}
.btn-mvp:hover .dash-btn-svg, .btn-mvp:active .dash-btn-svg {
  color: #009FDF;
  filter: drop-shadow(0 0 6px #009FDF);
}

/* Stagger animation class for daily bubble entrance */
.day-bubble-anim {
  opacity: 0;
  transform: translateY(12px) scale(0.9);
  animation: slideUpStagger 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpStagger {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Dynamic visibility classes for docks and home views */
.ptw-app:has(#view-home.active) .bottom-nav-wrapper-modern {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.3s ease;
}
.bottom-nav-wrapper-modern {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 🔒 PRIVACY BARRIER OVERLAY */
.privacy-barrier {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #113158 0%, #051426 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.privacy-barrier.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.privacy-card {
  background: rgba(10, 35, 64, 0.45);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  padding: 40px 30px;
  max-width: 380px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(25px);
}

.privacy-logo {
  width: 180px;
  height: auto;
  margin-bottom: 24px;
  filter: drop-shadow(0 0 15px rgba(0, 159, 223, 0.3));
}

.privacy-card h2 {
  font-family: var(--font-headline);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.privacy-card p {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--accent-grey);
  margin-bottom: 24px;
}

.passcode-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.passcode-input-wrap input {
  height: 52px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 0 16px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  text-align: center;
  outline: none;
  transition: border-color 0.2s ease;
}

.passcode-input-wrap input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 159, 223, 0.2);
}

.passcode-input-wrap button {
  height: 52px;
  background: var(--accent-cyan);
  color: #051426;
  border: none;
  border-radius: 16px;
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: 0.9rem;
  letter-spacing: 2px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 159, 223, 0.3);
  transition: transform 0.2s ease, background 0.2s ease;
}

.passcode-input-wrap button:active {
  transform: scale(0.97);
}

.passcode-error-msg {
  color: #ff3b30;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 14px;
  height: 18px;
}

/* Shake Animation */
.privacy-barrier.shake .privacy-card {
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

/* 🔔 NOTIFICATION DOT BADGES */
.nav-badge {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #ff3b30;
  border: 1.5px solid #0a1f3c;
  box-shadow: 0 0 8px #ff3b30;
  z-index: 20;
  display: none;
  animation: badgePulse 2.2s infinite ease-in-out;
}

@keyframes badgePulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.nav-btn-volume-modern {
  position: relative;
}

/* --- RECTANGULAR PLAYER CARD STYLES --- */
.player-card-container {
  perspective: 1000px;
}

.player-card-image-wrap {
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

.player-card-image-wrap:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 159, 223, 0.2);
}

.player-card-img {
  transition: filter 0.4s ease;
}

.player-card-image-wrap::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.08) 50%, transparent 60%);
  animation: shineFutCard 6s infinite linear;
  pointer-events: none;
  z-index: 3;
}

.player-card-overlay-info {
  pointer-events: none;
}

/* --- POINT SYSTEM SUMMARY CARD RETOS --- */
.point-system-summary-card {
  background: rgba(10, 35, 64, 0.45);
  border: 1.5px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--border-radius-lg);
  padding: 16px;
  backdrop-filter: blur(25px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.ps-title {
  font-family: var(--font-headline);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent-cyan);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 6px;
}

.ps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}

.ps-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.ps-lbl {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--accent-grey);
  font-weight: 500;
}

.ps-val {
  font-family: var(--font-headline);
  font-size: 0.75rem;
  color: #fff;
  font-weight: 800;
}

.ps-footer {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--accent-sand);
  margin-top: 14px;
  text-align: center;
  background: rgba(253, 197, 0, 0.08);
  border-radius: 8px;
  padding: 6px;
  border: 1px solid rgba(253, 197, 0, 0.15);
}

/* --- LOCKED WEEKS STYLE --- */
.week-btn-modern.locked {
  opacity: 0.45;
  cursor: not-allowed !important;
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.4);
}

.week-btn-modern.locked:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.05);
  box-shadow: none;
  transform: none;
}

/* --- TOAST NOTIFICATIONS (ELEGANT REACTIONS) --- */
.toast-notification {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translate(-50%, -100px);
  width: 90%;
  max-width: 380px;
  background: rgba(5, 20, 38, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid var(--accent-cyan);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 159, 223, 0.25);
  border-radius: 20px;
  padding: 14px 20px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
  opacity: 0;
  pointer-events: none;
}

.toast-notification.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

.toast-notification.toast-goal {
  border-color: #FDC500;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 15px rgba(253, 197, 0, 0.35);
}

.toast-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.toast-body {
  flex-grow: 1;
}

.toast-text {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.toast-subtext {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--accent-grey);
  margin-top: 2px;
}

/* --- QUICK SCORE BUTTONS STYLE --- */
.quick-score-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 320px;
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--border-radius-md);
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.quick-score-title {
  font-family: var(--font-headline);
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--accent-sand);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 2px;
  text-align: center;
}

.quick-score-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.quick-score-btn-ctrl {
  background: rgba(17, 45, 78, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 12px;
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 0.7rem;
  padding: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.quick-score-btn-ctrl:hover {
  background: rgba(0, 159, 223, 0.2);
  border-color: var(--accent-cyan);
  box-shadow: 0 4px 12px rgba(0, 159, 223, 0.25);
  transform: translateY(-1px);
}

.quick-score-btn-ctrl:active {
  transform: translateY(0);
}

.quick-score-btn-ctrl.btn-negative {
  grid-column: span 2;
  background: rgba(255, 59, 48, 0.08);
  border-color: rgba(255, 59, 48, 0.2);
  color: rgba(255, 255, 255, 0.8);
}

.quick-score-btn-ctrl.btn-negative:hover {
  background: rgba(255, 59, 48, 0.2);
  border-color: #ff3b30;
  box-shadow: 0 4px 12px rgba(255, 59, 48, 0.2);
}
