/* ==============================================================================
   FALCON GLOW - WINTER LUXURY (EXACT PROPOSAL 1 FIDELITY)
   Aesthetics: Deep Pine Emerald, Warm Golden Fairy Lights Bokeh, Frosted Glass,
   Artwork Thumbnails, Snowflake Crest Controls, Gold Serif Typography
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800;900&family=Outfit:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  /* Paleta Base: Bosque Nocturno y Esmeralda */
  --bg-deep: #050d0a;
  --bg-pine: #0a1c14;
  --bg-card: rgba(11, 28, 20, 0.82);
  --bg-card-hover: rgba(16, 42, 30, 0.92);
  --bg-inner-row: rgba(8, 22, 16, 0.75);
  
  /* Acentos de Oro Champagne & Luz Festiva */
  --gold-primary: #e6ca65;
  --gold-champagne: #f7ebb8;
  --gold-deep: #b8912d;
  --gold-gradient: linear-gradient(135deg, #fcedb4 0%, #d4af37 50%, #aa820a 100%);
  --gold-glow: 0 0 25px rgba(228, 197, 101, 0.35);
  
  /* Verde Esmeralda & Festivos */
  --emerald-bright: #10b981;
  --emerald-glow: 0 0 20px rgba(16, 185, 129, 0.35);
  --crimson-accent: #c9184a;
  --crimson-hazard: #e63946;

  /* Bordes & Glassmorphism */
  --border-gold-subtle: rgba(230, 202, 101, 0.28);
  --border-gold-bright: rgba(244, 229, 169, 0.6);
  --border-frosted: rgba(255, 255, 255, 0.08);

  /* Tipografía */
  --font-serif: 'Cinzel', serif;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --text-main: #fdfbf7;
  --text-gold: #f3e2a9;
  --text-gold-muted: #c9b47e;
  --text-muted: #8ca397;
  --text-secondary: #c5d6cd;

  --shadow-card: 0 16px 40px -10px rgba(0, 0, 0, 0.85), 0 0 0 1px var(--border-gold-subtle);
  --transition-smooth: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-sans);
  background: radial-gradient(circle at 50% 15%, #0e2b1e 0%, #071710 45%, #030806 100%);
  background-color: var(--bg-deep);
  color: var(--text-main);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Guirnalda de luces bokeh auténtica en la parte superior */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 320px;
  background: url('../assets/fairy_lights_bg.jpg') top center / cover no-repeat;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%);
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}

/* Brillo ambiental dorado en el fondo */
body::after {
  content: '';
  position: fixed;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, rgba(10, 35, 25, 0.3) 45%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

/* Nieve sutil */
.snow-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.3;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 100px 150px, #fdf4d6, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 200px 80px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 320px 240px, #fffaeb, rgba(0,0,0,0));
  background-size: 500px 500px;
  animation: snowfall 22s linear infinite;
}

@keyframes snowfall {
  0% { transform: translateY(-500px); }
  100% { transform: translateY(0); }
}

/* ==============================================================================
   CONTENEDOR PRINCIPAL
   ============================================================================== */
.app-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 14px 105px 14px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ==============================================================================
   CABECERA ESTILO PROPOSAL 1
   ============================================================================== */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 6px 14px 6px;
  position: relative;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-crown-icon {
  font-size: 1.15rem;
  color: var(--gold-primary);
  filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.6));
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: var(--gold-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 6px;
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.25);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-gold-subtle);
  background: rgba(11, 28, 20, 0.7);
  backdrop-filter: blur(10px);
  color: var(--gold-champagne);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.header-icon-btn:hover {
  border-color: var(--border-gold-bright);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
  transform: scale(1.05);
}

/* Píldora de estado FPP discreta y elegante */
.status-pill-mini {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  padding: 3px 9px;
  background: rgba(11, 28, 20, 0.7);
  border: 1px solid var(--border-gold-subtle);
  border-radius: 20px;
  color: var(--text-gold);
  backdrop-filter: blur(8px);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--emerald-bright);
  box-shadow: 0 0 8px var(--emerald-bright);
}

.status-dot.warning {
  background-color: var(--gold-primary);
  box-shadow: 0 0 10px var(--gold-primary);
}

.status-dot.danger {
  background-color: var(--crimson-hazard);
  box-shadow: 0 0 10px var(--crimson-hazard);
}

/* ==============================================================================
   TARJETA "NOW PLAYING" (WINTER LUXURY - EXACT REPLICA)
   ============================================================================== */
.now-playing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold-subtle);
  backdrop-filter: blur(24px);
  border-radius: 28px;
  padding: 22px 20px;
  box-shadow: var(--shadow-card), var(--gold-glow);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: border-color var(--transition-smooth);
}

.now-playing-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #e6ca65, #fff4d0, #e6ca65, transparent);
}

/* Distribución superior: Información a la izquierda, Portada castillo a la derecha */
.np-top-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.np-info-left {
  flex: 1;
  min-width: 0;
}

.np-label {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold-primary);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.song-title {
  font-family: var(--font-serif);
  font-size: 1.48rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff9e6;
  margin-bottom: 6px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.02em;
}

.song-artist {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-gold);
  line-height: 1.3;
}

/* Portada del castillo nevado con marco dorado */
.np-album-art-wrap {
  width: 110px;
  height: 110px;
  min-width: 110px;
  border-radius: 20px;
  border: 1.5px solid var(--border-gold-subtle);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65), 0 0 18px rgba(212, 175, 55, 0.25);
}

.np-album-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Barra de progreso de música con icono de copo de nieve (informativo) */
.progress-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
  user-select: none;
}

.progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  position: relative;
}

.progress-fill {
  height: 100%;
  width: 32%;
  background: var(--gold-gradient);
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.7);
  position: relative;
  transition: width 0.3s linear;
}

.progress-snowflake-thumb {
  position: absolute;
  right: -9px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  filter: drop-shadow(0 0 6px #ffd700);
  line-height: 1;
  pointer-events: none;
}

.progress-times {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-gold-muted);
}

.np-time-remaining-wrap {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--gold-champagne);
  font-weight: 600;
}

.np-time-remaining-label {
  font-family: var(--font-serif);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  color: var(--gold-primary);
  opacity: 0.85;
}

/* ==============================================================================
   INFORMACIÓN PÚBLICA DE REPRODUCCIÓN (SOLO INFORMATIVO PARA EL PÚBLICO)
   ============================================================================== */
.np-public-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border-gold-subtle);
}

.np-upcoming-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.np-upcoming-tag {
  font-family: var(--font-serif);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold-primary);
  text-transform: uppercase;
}

.np-upcoming-title {
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  color: #fffaf0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.np-broadcast-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--gold-champagne);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--border-gold-subtle);
  padding: 5px 10px;
  border-radius: 12px;
  flex-shrink: 0;
}

.np-broadcast-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald-bright);
  box-shadow: 0 0 6px var(--emerald-bright);
}

/* CONTROLES EXCLUSIVOS DE ADMINISTRADOR (OCULTOS AL PÚBLICO) */
.np-admin-controls-row {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px 14px 8px 14px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px dashed rgba(212, 175, 55, 0.4);
  border-radius: 20px;
  position: relative;
  margin-top: 4px;
}

.np-admin-badge {
  position: absolute;
  top: -8px;
  left: 14px;
  background: #091c13;
  border: 1px solid var(--border-gold-subtle);
  border-radius: 8px;
  padding: 1px 7px;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--gold-champagne);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ctrl-btn {
  background: none;
  border: none;
  color: var(--gold-champagne);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-smooth);
  opacity: 0.85;
}

.ctrl-btn:hover {
  opacity: 1;
  transform: scale(1.1);
  color: #ffffff;
}

.ctrl-btn-snowflake-center {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.3) 0%, rgba(10, 30, 22, 0.95) 100%);
  border: 1.5px solid var(--border-gold-bright);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff6d9;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.ctrl-btn-snowflake-center:hover {
  transform: scale(1.08);
}

/* ==============================================================================
   SECCIÓN "JUKEBOX QUEUE" (RÉPLICA EXACTA PROPOSAL 1)
   ============================================================================== */
.jukebox-queue-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold-subtle);
  backdrop-filter: blur(24px);
  border-radius: 28px;
  padding: 22px 18px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.jukebox-queue-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.12em;
  background: var(--gold-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.queue-items-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Fila individual de canción en cola */
.queue-row {
  background: var(--bg-inner-row);
  border: 1px solid var(--border-gold-subtle);
  border-radius: 18px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all var(--transition-smooth);
}

.queue-row:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-gold-bright);
  transform: translateY(-1px);
}

.queue-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.queue-num {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--gold-primary);
  min-width: 20px;
  text-align: center;
}

.queue-thumb {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 10px;
  border: 1px solid var(--border-gold-subtle);
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.queue-details {
  min-width: 0;
  flex: 1;
}

.queue-song-name {
  font-family: var(--font-sans);
  font-size: 0.96rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.queue-artist-name {
  font-size: 0.78rem;
  color: var(--text-gold-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue-row-right {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-gold);
  font-size: 0.82rem;
  font-family: var(--font-mono);
}

.queue-drag-icon {
  font-size: 1rem;
  color: var(--text-muted);
  cursor: grab;
}

/* ==============================================================================
   LISTA DE CANCIONES DISPONIBLES PARA PEDIR
   ============================================================================== */
.song-catalog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold-subtle);
  backdrop-filter: blur(24px);
  border-radius: 26px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.search-box {
  width: 100%;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  background: var(--bg-inner-row);
  border: 1px solid var(--border-gold-subtle);
  border-radius: 16px;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  transition: all var(--transition-smooth);
}

.search-input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.25);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-gold-muted);
  pointer-events: none;
}

.btn-action-gold {
  padding: 8px 16px;
  background: var(--gold-gradient);
  border: none;
  border-radius: 12px;
  color: #06140e;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.4);
  transition: all var(--transition-smooth);
  white-space: nowrap;
}

.btn-action-gold:hover:not(:disabled) {
  filter: brightness(1.12);
  transform: scale(1.02);
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.6);
}

.btn-action-gold:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.6);
}

/* ==============================================================================
   VOTACIÓN Y ADMIN
   ============================================================================== */
.tab-content {
  display: none;
  flex-direction: column;
  gap: 16px;
  animation: fadeIn 0.25s ease-out;
}

.tab-content.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==============================================================================
   TARJETAS DE VOTACIÓN - ALINEACIÓN RÍGIDA Y CONSISTENTE
   ============================================================================== */
/* ==============================================================================
   TARJETAS DE VOTACIÓN - DISEÑO ELEGANTE DE 2 LÍNEAS PARA MÓVIL Y DESKTOP
   ============================================================================== */
.vote-card {
  background: var(--bg-inner-row);
  border: 1px solid var(--border-gold-subtle);
  border-radius: 20px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all var(--transition-smooth);
}

.vote-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-gold-bright);
}

/* Línea 1: Información completa de la canción con espacio libre */
.vote-main-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.vote-rank {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 1.1rem;
  min-width: 38px;
  flex-shrink: 0;
  text-align: center;
}

.vote-rank.first {
  color: var(--gold-champagne);
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.vote-rank.other {
  color: var(--text-gold-muted);
}

.vote-thumb {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  border: 1px solid var(--border-gold-subtle);
  object-fit: cover;
  flex-shrink: 0;
}

.vote-details {
  min-width: 0;
  flex: 1;
}

.vote-title {
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.vote-artist {
  font-size: 0.8rem;
  color: var(--text-gold-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Línea 2: Votos acumulados y Botón Votar alineados */
.vote-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding-top: 4px;
  border-top: 1px solid rgba(212, 175, 55, 0.12);
}

.vote-tally-pill {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--gold-champagne);
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(212, 175, 55, 0.08);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.btn-vote-fixed {
  min-width: 90px;
  padding: 8px 16px;
  text-align: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.88rem;
}

.vote-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
}

.vote-progress-fill {
  height: 100%;
  background: var(--gold-gradient);
  border-radius: 10px;
  transition: width 0.4s ease-out;
}

.emergency-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #e63946, #9b111e);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  color: #ffffff;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 25px rgba(230, 57, 70, 0.45);
}

/* ==============================================================================
   BARRA DE NAVEGACIÓN INFERIOR (BOTTOM DOCK - PROPOSAL 1)
   ============================================================================== */
.bottom-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(6, 18, 13, 0.92);
  border-top: 1px solid var(--border-gold-subtle);
  backdrop-filter: blur(20px);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)) 12px;
  z-index: 100;
  max-width: 480px;
  margin: 0 auto;
}

.dock-item {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--text-gold-muted);
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 6px 12px;
  border-radius: 14px;
  transition: all var(--transition-smooth);
}

.dock-icon {
  font-size: 1.25rem;
  transition: transform var(--transition-smooth);
}

.dock-item:hover, .dock-item.active {
  color: #fff9e6;
}

.dock-item.active .dock-icon {
  transform: translateY(-2px);
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.8));
}

.dock-item.active {
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--border-gold-subtle);
}

/* Toasts */
.toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
  width: 90%;
  max-width: 420px;
  pointer-events: none;
}

.toast {
  background: rgba(8, 24, 17, 0.96);
  border: 1px solid var(--border-gold-bright);
  backdrop-filter: blur(20px);
  padding: 14px 18px;
  border-radius: 18px;
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.75), var(--gold-glow);
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
  animation: slideDownToast 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDownToast {
  from { opacity: 0; transform: translateY(-20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ==============================================================================
   MODALES DE GEOVALLADO (GEOFENCING) & ALERTAS LUXURY
   ============================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 8, 6, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: radial-gradient(circle at 50% 0%, rgba(18, 48, 34, 0.95) 0%, rgba(9, 24, 17, 0.98) 100%);
  border: 1px solid var(--border-gold-bright);
  border-radius: 24px;
  padding: 26px 22px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(230, 202, 101, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform: scale(0.9) translateY(15px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-icon-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 202, 101, 0.2) 0%, rgba(16, 185, 129, 0.1) 100%);
  border: 1px solid var(--border-gold-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 16px;
  box-shadow: 0 0 25px rgba(230, 202, 101, 0.3);
  animation: pulseIconGlow 2.5s infinite;
}

.modal-icon-badge.danger {
  background: radial-gradient(circle, rgba(230, 57, 70, 0.25) 0%, rgba(201, 24, 74, 0.1) 100%);
  border-color: rgba(230, 57, 70, 0.5);
  box-shadow: 0 0 25px rgba(230, 57, 70, 0.4);
}

@keyframes pulseIconGlow {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 4px rgba(230, 202, 101, 0.4)); }
  50% { transform: scale(1.05); filter: drop-shadow(0 0 12px rgba(230, 202, 101, 0.8)); }
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--gold-champagne);
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.modal-description {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
}

.distance-highlight-box {
  background: rgba(230, 57, 70, 0.15);
  border: 1px solid rgba(230, 57, 70, 0.35);
  border-radius: 14px;
  padding: 12px 14px;
  width: 100%;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.84rem;
  color: #ffcbd1;
}

.distance-meter-badge {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ff8594;
}

.modal-actions {
  display: flex;
  gap: 10px;
  width: 100%;
}

.modal-btn-primary {
  flex: 1;
  background: var(--gold-gradient);
  color: #050d0a;
  border: none;
  border-radius: 14px;
  padding: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
  transition: transform 0.2s, filter 0.2s;
}

.modal-btn-primary:active {
  transform: scale(0.97);
}

.modal-btn-secondary {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  border: 1px solid var(--border-frosted);
  border-radius: 14px;
  padding: 12px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.2s;
}

.modal-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-main);
}

.modal-btn-warning {
  flex: 1;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  border-radius: 14px;
  padding: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
  transition: transform 0.2s, filter 0.2s;
}

.modal-btn-warning:active {
  transform: scale(0.97);
}

.geo-instruction-box {
  background: rgba(230, 202, 101, 0.08);
  border: 1px solid rgba(230, 202, 101, 0.25);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-gold);
  text-align: left;
  margin-bottom: 14px;
  width: 100%;
}

.geo-instruction-box ol, .geo-instruction-box ul {
  margin: 6px 0 0 18px;
  padding: 0;
}

.geo-instruction-box li {
  margin-bottom: 4px;
  color: var(--text-main);
}

