:root {
  --bg-deep: #0a0f1a;
  --glass-bg: rgba(16, 20, 35, 0.65);
  --glass-border: rgba(255, 255, 255, 0.08);
  --neon-cyan: #00f2fe;
  --neon-purple: #b224ef;
  --neon-pink: #ff4da6;
  --text-primary: #eef5ff;
  --text-secondary: #b0c4de;
  --radius: 24px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: radial-gradient(ellipse at 20% 50%, #1a1f3a 0%, var(--bg-deep) 70%);
  color: var(--text-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

#app {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

/* Glass card */
.glass, .glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 1px rgba(255,255,255,0.1);
}

/* Navigation */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 10;
}
.logo-text { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.5px; }
.pulse-dot {
  width: 10px; height: 10px;
  background: var(--neon-cyan);
  border-radius: 50%;
  display: inline-block;
  margin-left: 6px;
  animation: pulse-dot 1.8s infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(0,242,254,0.7); }
  70% { box-shadow: 0 0 0 12px rgba(0,242,254,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,242,254,0); }
}

.nav-links a, .nav-links button {
  color: var(--text-secondary);
  text-decoration: none;
  margin-left: 1.5rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a.active, .nav-links a:hover { color: var(--neon-cyan); }
.btn-icon { background: none; border: none; font-size: 1.3rem; cursor: pointer; }

/* Install banner */
#install-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 1rem 2rem;
  z-index: 1000;
  width: auto;
}
.flex-between { display: flex; align-items: center; gap: 1rem; }
.btn-neon {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 40px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition);
}
.btn-neon:hover { transform: scale(1.05); }
.btn-text { background: transparent; border: none; color: white; font-size: 1.2rem; cursor: pointer; }

/* Hero & Pulse Canvas */
.hero-section {
  position: relative;
  margin-bottom: 2rem;
}
.city-selector {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.4rem 1rem;
}
.city-dropdown {
  background: transparent;
  border: none;
  color: white;
  font-size: 1.2rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  appearance: none;
}
.pulse-container {
  position: relative;
  width: 100%;
  height: 340px;
  border-radius: var(--radius);
  overflow: hidden;
}
#pulse-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.pulse-info {
  position: relative;
  z-index: 2;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  height: 100%;
}
.mood-ring {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 1rem 0;
}
.mood-label { font-size: 1.5rem; opacity: 0.8; }
.mood-value {
  font-size: 4rem;
  font-weight: 800;
  background: linear-gradient(to right, #00f2fe, #b224ef);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.dimensions-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.dim-badge {
  padding: 0.3rem 0.8rem;
  background: rgba(255,255,255,0.08);
  border-radius: 20px;
  font-size: 0.8rem;
  display: flex;
  gap: 0.3rem;
}
.dim-badge span:first-child { opacity: 0.7; }

/* Trip Engine */
.trip-engine {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.trip-question { text-align: center; }
.verdict {
  display: inline-block;
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0.5rem 0;
  padding: 0.2rem 1.5rem;
  border-radius: 40px;
}
.verdict-go { background: rgba(0,242,254,0.15); color: var(--neon-cyan); }
.verdict-maybe { background: rgba(255,193,7,0.15); color: #ffc107; }
.verdict-wait { background: rgba(255,77,166,0.15); color: var(--neon-pink); }

/* Check-in */
.check-in {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.mood-buttons { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1rem 0; }
.mood-btn {
  font-size: 2rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}
.mood-btn:hover { background: rgba(255,255,255,0.12); transform: scale(1.1); }
.stars-display { font-size: 1.3rem; margin-top: 1rem; }
.rank { margin-left: 1rem; font-weight: 600; color: var(--neon-purple); }

/* Footer */
.footer { text-align: center; padding: 1rem; margin-top: 2rem; opacity: 0.7; }

/* Language dropdown (hidden modal) */
.lang-modal {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  display: none; justify-content: center; align-items: center;
  z-index: 2000;
}
.lang-list {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  padding: 2rem;
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px,1fr));
  gap: 0.5rem;
}
.lang-option {
  padding: 0.5rem;
  cursor: pointer;
  text-align: center;
  border-radius: 12px;
  transition: background var(--transition);
}
.lang-option:hover { background: rgba(255,255,255,0.15); }

/* Responsive */
@media (max-width: 600px) {
  .pulse-info { padding: 1rem; }
  .mood-value { font-size: 3rem; }
  .nav-links a { margin-left: 1rem; font-size: 0.9rem; }
}
