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

/* ============================================================
   DESIGN SYSTEM: "TURUT Dark Premium"
   ============================================================ */
:root {
  /* Core Palette (Nightlife Experience) */
  --primary: #A020F0;
  --primary-container: #7E15C2;
  --primary-soft: rgba(160, 32, 240, 0.15);
  --primary-glow: rgba(160, 32, 240, 0.4);
  --on-primary: #FFFFFF;

  --secondary: #FFD700; /* Dorado / Call to actions */
  --secondary-soft: rgba(255, 215, 0, 0.15);
  --secondary-glow: rgba(255, 215, 0, 0.4);
  --on-secondary: #000000;

  --tertiary: #4D8DFF; /* Electric Blue */
  --accent-urgent: #F97066;
  --accent-gold: #FFD700;

  /* Surfaces — Immersive Black Space */
  --background: #050505;
  --surface: #0a0a0a;
  --surface-sunken: #020202;
  --surface-container-lowest: #000000;
  --surface-container-low: #080808;
  --surface-container: #0C0C0C;
  --surface-container-high: #121212;
  --surface-container-highest: #1A1A1A;
  --surface-elevated: #161616;
  --surface-bright: #202020;
  --surface-variant: #0F0F0F;

  /* Text */
  --text-primary: #FFFFFF;
  --text-secondary: #E5E7EB;
  --text-muted: #9CA3AF;
  --on-surface: #FFFFFF;
  --on-surface-variant: #E5E7EB;
  --on-background: #FFFFFF;

  /* Borders (Innovative ultra-thin) */
  --outline: rgba(255, 255, 255, 0.08);
  --outline-variant: rgba(255, 255, 255, 0.04);

  /* Category Colors */
  --cat-aventura: #3B82F6;
  --cat-relax: #EC4899;
  --cat-gastro: #F59E0B;
  --cat-cultura: #A855F7;
  --cat-coffee: #92400E;

  /* Error */
  --error: #F97066;
}

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

html { font-size: 16px; scroll-behavior: smooth; background: var(--background); }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
  background: var(--background);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* Ambient Animated Lighting Effects */
body::before, body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
  animation: glow-float 20s infinite alternate ease-in-out;
}

body::before {
  top: -10%; left: -20%;
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(123, 46, 255, 0.15) 0%, transparent 70%);
}

body::after {
  bottom: 10%; right: -20%;
  width: 70vw; height: 70vw;
  background: radial-gradient(circle, rgba(77, 141, 255, 0.1) 0%, transparent 70%);
  animation-delay: -10s;
}

@keyframes glow-float {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(5%, 15%) scale(1.1); }
  66% { transform: translate(-10%, 5%) scale(0.9); }
  100% { transform: translate(15%, -10%) scale(1.05); }
}

h1, h2, h3, .font-headline {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

/* ============================================================
   LUCIDE ICONS BASE
   ============================================================ */
.lucide {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ============================================================
   GLASSMORPHISM (Refined)
   ============================================================ */
.glass-card {
  background: rgba(10, 10, 15, 0.4);
  backdrop-filter: blur(40px) saturate(1.8);
  -webkit-backdrop-filter: blur(40px) saturate(1.8);
  border: 1px solid var(--outline-variant);
  border-top: 1px solid var(--outline);
  border-radius: 1.25rem;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.08);
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.glass-card:active {
  box-shadow: 0 4px 16px rgba(0,0,0,0.6), 0 0 30px var(--primary-glow);
  transform: scale(0.98);
}

.neon-glow-primary { box-shadow: 0 0 20px var(--primary-glow); }
.neon-glow-secondary { box-shadow: 0 0 12px var(--secondary-glow); }

/* ============================================================
   APP LAYOUT
   ============================================================ */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  max-width: 390px;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--surface-container-low);
}

/* Header Contextual (Módulo 0) */
.header-contextual {
  position: relative;
  width: 100%;
  padding: 1.5rem 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 50;
  /* Top gradient for readability */
  background: linear-gradient(180deg, rgba(5,5,5,1) 0%, rgba(5,5,5,0.8) 70%, transparent 100%);
}

.header-info-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding-top: 0.25rem;
}

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

.header-info-left {
  gap: 0.6rem;
}

.header-info-right {
  gap: 0.4rem;
}

.header-date {
  color: #D6A848;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.header-separator {
  color: rgba(255, 255, 255, 0.2);
  font-weight: 300;
  font-size: 0.9rem;
}

.header-weather {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: #dbdbdb;
  font-weight: 500;
  font-size: 0.9rem;
}

.header-weather svg {
  color: #b0b0b0;
  width: 18px;
  height: 18px;
}

.header-pin-icon {
  width: 16px;
  height: 16px;
  fill: #D6A848;
  stroke: #D6A848;
}

.header-city {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #FFFFFF;
  margin: 0;
  letter-spacing: 0.01em;
}

.top-logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 0 1.5rem;
  margin-bottom: 0.5rem;
  background: radial-gradient(ellipse at center, #2E0854 -20%, #000000 70%);
  width: 100%;
  position: relative;
  border-radius: 0 0 40% 40% / 20px;
}

.turut-logo-wrapper {
  position: relative;
  display: inline-block;
  line-height: 1;
}

.sturuts-core {
  font-family: 'Orbitron', 'Audiowide', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  text-shadow: 0 0 10px #8A2BE2, 0 0 20px #8A2BE2, 0 0 40px #8A2BE2, 0 0 60px rgba(138, 43, 226, 0.6);
  z-index: 2;
  position: relative;
}

.logo-symbol {
  font-family: 'Great Vibes', cursive;
  font-size: 1.8rem;
  position: absolute;
  background: linear-gradient(135deg, #FFF59D 0%, #FFD700 40%, #B8860B 60%, #FFD700 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px rgba(255, 170, 0, 0.6));
  z-index: 3;
}

.logo-symbol.left-s {
  left: -1rem;
  bottom: -0.4rem;
}

.logo-symbol.right-s {
  right: -1.2rem;
  top: -0.6rem;
}

.center-content-space {
  width: 100%;
  height: 100px;
  margin-top: 1rem;
  border-bottom: 1px solid var(--outline-variant);
}

.profile-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255,140,56,0.2);
  background: var(--surface-container-highest);
  cursor: pointer;
  transition: border-color 0.3s ease;
}
.profile-avatar:active { border-color: var(--primary); }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Main Content */
.main-content {
  flex: 1;
  padding-bottom: 6rem;
  width: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.main-content::-webkit-scrollbar { display: none; }
.app-container { scrollbar-width: none; -ms-overflow-style: none; }
.app-container::-webkit-scrollbar { display: none; }

/* ============================================================
   APP VIEWS
   ============================================================ */
.view { display: none; width: 100%; }
.view.active {
  display: flex;
  flex-direction: column;
  animation: viewFadeIn 0.4s ease-out;
}

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

/* ============================================================
   MODULE 1: TOP 5 EXPERIENCIAS
   ============================================================ */
.section-title {
  font-size: 1.75rem;
  padding: 0 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.sunset-underline { position: relative; }
.sunset-underline::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 1.5rem;
  width: 48px; height: 3px;
  background: linear-gradient(90deg, var(--primary), transparent);
  border-radius: 2px;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0 1.5rem;
}

/* Segmented Control (Top 5 / Mi Ruta) */
.segment-control-wrapper {
  padding: 0 1.5rem;
  margin-bottom: 1.5rem;
}
.segment-control {
  display: flex;
  background: rgba(20, 20, 20, 0.6);
  border: 1px solid rgba(214, 168, 72, 0.35);
  border-radius: 999px;
  padding: 4px;
  position: relative;
}
.segment-btn {
  flex: 1 1 0;
  min-width: 0;
  background: transparent;
  border: none;
  color: #D6A848;
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.6rem 0.2rem;
  border-radius: 999px;
  cursor: pointer;
  z-index: 1;
  transition: color 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  justify-content: center;
}
.segment-btn.active { color: #fff; text-shadow: 0 0 10px rgba(255,255,255,0.3); }
.segment-bg {
  position: absolute;
  top: 4px; bottom: 4px;
  width: calc(50% - 4px);
  background: var(--primary);
  border-radius: 999px;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 0 15px rgba(160, 32, 240, 0.5);
}
.segment-control[data-active="miruta"] .segment-bg {
  transform: translateX(100%);
}

/* Imperdible Card */
.imperdible-card {
  position: relative;
  height: 200px;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  animation: cardSlideIn 0.45s ease-out both;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 1rem;
}
.imperdible-card:active { transform: scale(0.98); }

/* Stagger delay (applied inline by JS) */
.imperdible-card:nth-child(1) { animation-delay: 0ms; }
.imperdible-card:nth-child(2) { animation-delay: 80ms; }
.imperdible-card:nth-child(3) { animation-delay: 160ms; }
.imperdible-card:nth-child(4) { animation-delay: 240ms; }
.imperdible-card:nth-child(5) { animation-delay: 320ms; }

.imperdible-bg-img {
  position: absolute; inset: 0;
}
.imperdible-bg-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.imperdible-card:hover .imperdible-bg-img img {
  transform: scale(1.05);
}
.imperdible-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5,5,5,0.95) 0%, rgba(5,5,5,0.4) 50%, rgba(5,5,5,0.1) 100%);
}
.imperdible-bookmark {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 36px; height: 36px;
  background: rgba(160, 32, 240, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  border: 1px solid var(--primary);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
}
.imperdible-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.imperdible-info { flex: 1; min-width: 0; padding-right: 1rem; }
.imperdible-info h3 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
  font-weight: 700;
  display: flex; align-items: center; gap: 0.5rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.imperdible-rating {
  font-size: 0.75rem;
  background: rgba(255, 215, 0, 0.15);
  color: var(--secondary);
  padding: 2px 6px;
  border-radius: 4px;
}
.imperdible-meta {
  color: var(--text-secondary);
  font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600;
}
.imperdible-pin {
  width: 36px; height: 36px;
  background: var(--secondary);
  color: #000;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

/* ============================================================
   MODULE 2: DESCUBRE (Swipe)
   ============================================================ */
.discovery-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 12rem);
}

.swipe-card-container {
  position: relative;
  width: 88%;
  max-width: 340px;
  aspect-ratio: 3 / 4;
  border-radius: 1.5rem;
  perspective: 1000px;
}

.swipe-card {
  position: absolute;
  width: 100%; height: 100%;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: grab;
}
.swipe-card:active { cursor: grabbing; }
.swipe-card img { width: 100%; height: 100%; object-fit: cover; }

.swipe-card-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.5rem;
  background: linear-gradient(0deg, rgba(10,10,11,0.95) 0%, rgba(10,10,11,0.6) 50%, transparent 100%);
}

/* Category chip on swipe card */
.category-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(255,255,255,0.15);
}
.category-chip--aventura { background: rgba(59,130,246,0.15); color: var(--cat-aventura); border-color: rgba(59,130,246,0.2); }
.category-chip--relax { background: rgba(236,72,153,0.15); color: var(--cat-relax); border-color: rgba(236,72,153,0.2); }
.category-chip--gastronomía { background: rgba(245,158,11,0.15); color: var(--cat-gastro); border-color: rgba(245,158,11,0.2); }
.category-chip--cultura { background: rgba(168,85,247,0.15); color: var(--cat-cultura); border-color: rgba(168,85,247,0.2); }
.category-chip--coffee { background: rgba(146,64,14,0.25); color: #D97706; border-color: rgba(146,64,14,0.3); }

.card-title { font-size: 1.5rem; color: white; margin: 0.25rem 0; }

.card-location {
  display: flex; align-items: center; gap: 0.35rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.timer-chip {
  position: absolute;
  top: 1rem; right: 1rem;
  padding: 0.4rem 0.8rem;
  border-radius: 9999px;
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
  color: var(--secondary);
}

/* Swipe Progress Dots */
.swipe-progress {
  display: flex;
  gap: 6px;
  margin-top: 1.25rem;
  justify-content: center;
  align-items: center;
}

.swipe-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.3;
  transition: all 0.3s ease;
}
.swipe-dot.active {
  width: 20px;
  border-radius: 3px;
  background: var(--primary);
  opacity: 1;
}

/* Controls */
.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 1.5rem;
}

.control-btn {
  background: none; border: none;
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.control-btn:active {
  transform: scale(0.92);
}

.control-icon-wrapper {
  display: flex; justify-content: center; align-items: center;
  border-radius: 50%;
  width: 64px; height: 64px;
  border: 2px solid;
  transition: all 0.3s ease;
}

.btn-reject {
  color: var(--primary);
}
.btn-reject .control-icon-wrapper {
  border-color: var(--primary);
  background: rgba(160, 32, 240, 0.05);
  box-shadow: 0 0 20px rgba(160, 32, 240, 0.4), inset 0 0 10px rgba(160, 32, 240, 0.2);
}
.btn-reject:active .control-icon-wrapper {
  box-shadow: 0 0 30px rgba(160, 32, 240, 0.6), inset 0 0 15px rgba(160, 32, 240, 0.4);
}
.btn-reject span {
  font-size: 0.9rem;
  font-weight: 600;
  text-shadow: 0 0 8px rgba(160, 32, 240, 0.5);
  letter-spacing: 0.02em;
}

.btn-match {
  color: var(--secondary);
}
.btn-match .control-icon-wrapper {
  border-color: var(--secondary);
  background: rgba(255, 215, 0, 0.05);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.4), inset 0 0 10px rgba(255, 215, 0, 0.2);
}
.btn-match:active .control-icon-wrapper {
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.6), inset 0 0 15px rgba(255, 215, 0, 0.4);
}
.btn-match span {
  font-size: 0.9rem;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
  letter-spacing: 0.02em;
}

/* ============================================================
   MODULE 3: LANDING OVERLAY
   ============================================================ */
.landing-overlay {
  position: fixed; inset: 0;
  z-index: 2000;
  background: var(--background);
  display: none;
  flex-direction: column;
  overflow-y: auto;
}
.landing-overlay.active { display: flex; }

.landing-hero { position: relative; width: 100%; }
.landing-img { width: 100%; height: 40vh; object-fit: cover; }

.landing-close {
  position: absolute;
  top: 1.5rem; left: 1.5rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.1);
  color: white;
  display: flex; justify-content: center; align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.landing-close:active { background: rgba(0,0,0,0.7); transform: scale(0.95); }

.landing-content {
  background: var(--background);
  border-radius: 2rem 2rem 0 0;
  margin-top: -2rem;
  padding: 2rem 1.5rem 6rem;
  position: relative;
  z-index: 5;
}

.landing-category { color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.7rem; }
.landing-title { font-size: 2rem; margin: 0.5rem 0 1rem; }
.landing-desc { color: var(--text-secondary); margin-bottom: 2rem; line-height: 1.7; }

.timer-widget {
  padding: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
  border-radius: 1.25rem;
}

.timer-clock {
  font-family: 'JetBrains Mono', monospace;
  font-size: 3rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--primary);
  text-shadow: 0 0 20px var(--primary-glow);
  margin: 0.75rem 0;
  letter-spacing: 0.02em;
}

.wa-card {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem;
  border-radius: 1.25rem;
  text-decoration: none;
  color: white;
  margin-bottom: 1rem;
}
.wa-card:active { border-color: var(--secondary); box-shadow: 0 0 15px var(--secondary-glow); }

.cta-golden {
  width: 100%;
  height: 56px;
  border-radius: 1rem;
  border: none;
  background: linear-gradient(135deg, var(--secondary), #E6C200);
  color: var(--on-secondary);
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(255,215,0,0.3);
  transition: all 0.2s ease;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  animation: goldPulse 2s infinite;
}
.cta-golden:active { transform: scale(0.97); box-shadow: 0 12px 48px rgba(255,215,0,0.5); filter: brightness(1.1); }

@keyframes goldPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(255, 215, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}

.social-icon-btn {
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-primary);
  transition: all 0.2s ease;
}
.social-icon-btn:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); color: var(--secondary); border-color: var(--secondary); }

/* ============================================================
   MODULE 4: EVENTOS DEL DÍA (Radar)
   ============================================================ */
.live-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 8px var(--secondary-glow);
  animation: livePulse 2s infinite;
  margin-right: 0.5rem;
  vertical-align: middle;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.event-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0 1.5rem;
}

.event-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 1.25rem;
  animation: cardSlideIn 0.45s ease-out both;
}

.event-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--surface-container-high);
  display: flex; justify-content: center; align-items: center;
  color: var(--secondary);
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.04);
}

.event-info { flex: 1; min-width: 0; }
.event-meta { font-size: 0.65rem; color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.event-name { font-size: 0.95rem; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.event-btn {
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid var(--outline-variant);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
  min-height: 40px;
  min-width: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.event-btn:active { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }

/* ============================================================
   BOTTOM NAVIGATION (Redesigned with dot + labels)
   ============================================================ */
.bottom-nav {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 360px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.5rem 0.5rem;
  z-index: 1000;
  border-radius: 9999px; /* Pill shape */
  background: rgba(8, 8, 12, 0.7);
  backdrop-filter: blur(30px) saturate(2);
  -webkit-backdrop-filter: blur(30px) saturate(2);
  border: 1px solid var(--outline-variant);
  border-top: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 16px 40px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.05);
}

.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0.6rem 0.75rem;
  border-radius: 0.75rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 56px;
  min-height: 48px;
  position: relative;
}
.nav-btn:active { transform: scale(0.9); }

.nav-label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.nav-btn.active {
  color: var(--primary);
}
.nav-btn.active .lucide {
  animation: navPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  filter: drop-shadow(0 0 8px rgba(255,140,56,0.6));
}

.nav-btn.active .nav-label {
  opacity: 1;
  max-height: 20px;
  color: var(--primary);
}

/* Dot indicator under active nav */
.nav-btn.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px rgba(255,140,56,1), 0 0 20px rgba(255,140,56,0.5);
}

.nav-btn .nav-icon {
  font-size: 1.25rem;
  transition: transform 0.3s ease;
  filter: grayscale(1);
  opacity: 0.6;
}
.nav-btn.active .nav-icon {
  transform: scale(1.1);
  filter: grayscale(0);
  opacity: 1;
  text-shadow: 0 0 12px rgba(255,140,56,0.6);
}

/* ============================================================
   BACKGROUND ATMOSPHERE
   ============================================================ */
.glow-bg {
  position: fixed;
  width: 50%; height: 50%;
  pointer-events: none;
  filter: blur(140px);
  z-index: -1;
}
.glow-top { top: -10%; left: -10%; background: rgba(255,140,56,0.06); }
.glow-bottom { bottom: -10%; right: -10%; background: rgba(52,211,153,0.04); }

/* ============================================================
   SKELETON SCREENS
   ============================================================ */
@keyframes skeletonShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  border-radius: 1.25rem;
  background: var(--surface-container);
}

.skeleton-img {
  width: 72px; height: 72px;
  flex-shrink: 0;
  border-radius: 1rem;
  background: linear-gradient(90deg, var(--surface-container-high) 25%, var(--surface-container-highest) 50%, var(--surface-container-high) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s ease-in-out infinite;
}

.skeleton-lines { flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }

.skeleton-line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--surface-container-high) 25%, var(--surface-container-highest) 50%, var(--surface-container-high) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s ease-in-out infinite;
}
.skeleton-line:nth-child(1) { width: 70%; }
.skeleton-line:nth-child(2) { width: 50%; }
.skeleton-line:nth-child(3) { width: 35%; }

.skeleton-event {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 1.25rem;
  background: var(--surface-container);
}

.skeleton-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--surface-container-high) 25%, var(--surface-container-highest) 50%, var(--surface-container-high) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s ease-in-out infinite;
}

/* ============================================================
   CONTEXTUAL HERO CARD (Refined)
   ============================================================ */
.contextual-hero {
  margin: 0 1.5rem 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  background: var(--surface-container);
  border: 1px solid rgba(255,255,255,0.04);
  border-left: 3px solid var(--primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
}
.contextual-hero:active {
  border-left-color: var(--secondary);
  box-shadow: 0 0 15px var(--primary-glow);
}

.hero-icon-wrap {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}

.hero-text { flex: 1; min-width: 0; }
.hero-text .hero-greeting {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.1rem;
}
.hero-text .hero-suggestion {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-cta {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--primary-soft);
  border: 1px solid rgba(255,140,56,0.15);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.hero-cta:active { background: var(--primary); color: var(--on-primary); }

/* ============================================================
   LIVE BADGES (Events)
   ============================================================ */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.live-badge--now {
  background: var(--secondary-soft);
  color: var(--secondary);
  border: 1px solid rgba(52,211,153,0.15);
}
.live-badge--now::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--secondary);
  animation: livePulse 2s infinite;
}

.live-badge--soon {
  background: rgba(251,191,36,0.1);
  color: var(--accent-gold);
  border: 1px solid rgba(251,191,36,0.15);
}

/* ============================================================
   SWIPE VISUAL FEEDBACK
   ============================================================ */
.swipe-hint-right {
  box-shadow: 0 0 30px rgba(52,211,153,0.35), inset 0 0 0 2px rgba(52,211,153,0.25) !important;
}
.swipe-hint-left {
  box-shadow: 0 0 30px rgba(249,112,102,0.35), inset 0 0 0 2px rgba(249,112,102,0.25) !important;
}

/* ============================================================
   TIMER URGENCY EFFECT
   ============================================================ */
@keyframes timerUrgentPulse {
  0%, 100% { box-shadow: 0 0 15px rgba(249,112,102,0.2); }
  50% { box-shadow: 0 0 35px rgba(249,112,102,0.5), 0 0 60px rgba(249,112,102,0.15); }
}

.timer-urgent {
  animation: timerUrgentPulse 1.2s ease-in-out infinite;
  border: 1px solid rgba(249,112,102,0.25) !important;
}
.timer-urgent .timer-clock {
  color: var(--accent-urgent) !important;
  text-shadow: 0 0 25px rgba(249,112,102,0.5) !important;
}

/* ============================================================
   STYLE FILTER CHIPS (Refined)
   ============================================================ */
.style-chips {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.5rem;
  margin-bottom: 0.75rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.style-chips::-webkit-scrollbar { display: none; }

.style-chip {
  padding: 0.45rem 0.9rem;
  border-radius: 9999px;
  border: 1px solid var(--outline-variant);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.style-chip .lucide {
  opacity: 0.6;
  transition: opacity 0.25s ease;
}

.style-chip.active {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
  transform: translateY(-2px);
}
.style-chip.active .lucide { opacity: 1; }

.style-chip:active:not(.active) {
  background: var(--surface-container-high);
}

/* ============================================================
   RESPONSIVE: DESKTOP FRAME
   ============================================================ */
@media (min-width: 600px) {
  body {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--surface-sunken);
    min-height: 100vh;
  }
  .app-container {
    height: 844px;
    border-radius: 40px;
    border: 6px solid #1a1a1d;
    background: var(--surface-container-low);
    box-shadow: 0 0 80px rgba(255,140,56,0.08), 0 0 200px rgba(0,0,0,0.5);
  }
}
