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

/* ─── Variables ─────────────────────────────────────────────── */
:root {
  --bg: #0d1420;
  --card: #1a2340;
  --card-hover: #1e2a4a;
  --gold: #c9a84c;
  --gold-light: #e0c068;
  --text: #ffffff;
  --text-muted: rgba(255,255,255,0.6);
  --text-dim: rgba(255,255,255,0.35);
  --safe: #4caf50;
  --caution: #ff9800;
  --warn: #f44336;
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.2s ease;
  --nav-height: 64px;
  --gold-gradient: linear-gradient(135deg, #c9a84c, #e0c068);
}

/* ─── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  min-height: -webkit-fill-available;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: none;
}

button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea { font-family: inherit; }
a { color: var(--gold); text-decoration: none; }

/* ─── Typography ────────────────────────────────────────────── */
.haven-wordmark {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.35em;
  color: var(--gold);
  font-size: clamp(2rem, 8vw, 3.5rem);
  text-transform: uppercase;
}

.haven-wordmark-sm {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--gold);
  font-size: 1.2rem;
  text-transform: uppercase;
}

h1, h2, h3 { font-weight: 600; line-height: 1.2; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1rem; }

.text-muted { color: var(--text-muted); }
.text-gold { color: var(--gold); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-center { text-align: center; }

/* ─── Screens (show/hide) ───────────────────────────────────── */
.screen { display: none; min-height: 100vh; }
.screen.active { display: flex; flex-direction: column; }

/* ─── PIN Screen ────────────────────────────────────────────── */
#pin-screen {
  background: var(--bg);
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  position: relative;
  overflow: hidden;
}

#pin-screen::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201,168,76,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.pin-container {
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.pin-wordmark-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.pin-tagline {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* PIN dots */
.pin-dots {
  display: flex;
  gap: 1rem;
  align-items: center;
  height: 40px;
}

.pin-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(201,168,76,0.5);
  background: transparent;
  transition: all 0.15s ease;
}

.pin-dot.filled {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 8px rgba(201,168,76,0.5);
}

/* PIN error message */
.pin-error {
  font-size: 0.8rem;
  color: var(--warn);
  letter-spacing: 0.05em;
  height: 20px;
  transition: opacity var(--transition);
  opacity: 0;
}

.pin-error.visible { opacity: 1; }

/* PIN keypad */
.pin-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  width: 100%;
  max-width: 280px;
}

.pin-key {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px solid rgba(201,168,76,0.4);
  background: rgba(26,35,64,0.8);
  color: var(--gold);
  font-size: 1.4rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.pin-key:active,
.pin-key.pressed {
  background: rgba(201,168,76,0.15);
  border-color: var(--gold);
  transform: scale(0.92);
}

.pin-key.pin-zero { grid-column: 2; }

.pin-key.pin-back {
  font-size: 1rem;
  color: var(--text-muted);
  border-color: transparent;
}

.pin-key.pin-back:active { color: var(--text); }

/* Shake animation */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-8px); }
  30% { transform: translateX(8px); }
  45% { transform: translateX(-6px); }
  60% { transform: translateX(6px); }
  75% { transform: translateX(-3px); }
  90% { transform: translateX(3px); }
}

.shake { animation: shake 0.5s ease; }

/* ─── App Header ────────────────────────────────────────────── */
.app-header {
  background: var(--card);
  border-bottom: 1px solid rgba(201,168,76,0.15);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
}

.header-left { display: flex; align-items: center; gap: 0.75rem; }

.header-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.header-title { font-size: 0.85rem; color: var(--text-muted); }

.header-actions { display: flex; gap: 0.5rem; align-items: center; }

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition);
  font-size: 1.1rem;
  -webkit-tap-highlight-color: transparent;
}

.icon-btn:hover, .icon-btn:active { background: rgba(255,255,255,0.08); color: var(--text); }

/* ─── Ask Area ─────────────────────────────────────────────── */
.ask-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 480px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  width: 100%;
}

.main-voice-btn-wrap {
  margin-bottom: 0.75rem;
}

.ask-input-row {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

.ask-text-input {
  flex: 1;
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(26,35,64,0.8);
  border-color: rgba(201,168,76,0.3);
  border-radius: 24px;
  padding: 0.65rem 1rem;
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.ask-text-input::placeholder { color: var(--text-dim); }

.ask-text-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201,168,76,0.25);
}

.ask-send-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: opacity var(--transition), transform var(--transition);
}

.ask-send-btn:active { opacity: 0.8; transform: scale(0.93); }

/* ─── Navigation Tabs ───────────────────────────────────────── */
.nav-tabs {
  display: flex;
  background: var(--card);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
  position: sticky;
  top: 57px;
  z-index: 99;
}

.nav-tabs::-webkit-scrollbar { display: none; }

.nav-tab {
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  letter-spacing: 0.05em;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.nav-tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.nav-tab:hover { color: var(--text); }


/* ─── Scroll Content ────────────────────────────────────────── */
.scroll-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1.25rem;
  -webkit-overflow-scrolling: touch;
}

.scroll-content.with-bottom-nav {
  padding-bottom: calc(var(--nav-height) + 1.25rem + env(safe-area-inset-bottom));
}

/* ─── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  border: 1px solid rgba(255,255,255,0.06);
  transition: background var(--transition), border-color var(--transition);
}

.card:hover { background: var(--card-hover); }

.card-gold {
  border-color: rgba(201,168,76,0.25);
  background: linear-gradient(135deg, rgba(201,168,76,0.08), rgba(26,35,64,0.9));
}

.card + .card, .card + .section-card { margin-top: 0.75rem; }

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.card-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
}

/* Section headers */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1.25rem 0 0.75rem;
}

.section-title {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

/* ─── GF Status Badges ──────────────────────────────────────── */
.gf-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.gf-badge.safe {
  background: rgba(76,175,80,0.15);
  color: var(--safe);
  border: 1px solid rgba(76,175,80,0.3);
}

.gf-badge.caution {
  background: rgba(255,152,0,0.15);
  color: var(--caution);
  border: 1px solid rgba(255,152,0,0.3);
}

.gf-badge.avoid {
  background: rgba(244,67,54,0.12);
  color: var(--warn);
  border: 1px solid rgba(244,67,54,0.25);
}

/* Restaurant GF cards */
.restaurant-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  border: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 0.75rem;
}

.restaurant-name {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.restaurant-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.restaurant-tips {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 0.5rem;
}

.restaurant-tips li {
  padding: 0.2rem 0;
  padding-left: 1rem;
  position: relative;
}

.restaurant-tips li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* ─── Itinerary ─────────────────────────────────────────────── */
.itinerary-day {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 0.75rem;
}

.itinerary-day.today {
  border-color: rgba(201,168,76,0.3);
}

.day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
}

.day-pill {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(201,168,76,0.15);
  color: var(--gold);
}

.day-pill.today-pill {
  background: var(--gold);
  color: var(--bg);
}

.day-name { font-weight: 600; font-size: 0.95rem; }
.day-port { font-size: 0.8rem; color: var(--text-muted); }

.day-body { padding: 1rem 1.25rem; }

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.timeline-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.timeline-time {
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 600;
  min-width: 50px;
  padding-top: 1px;
}

.timeline-event {
  font-size: 0.875rem;
  flex: 1;
}

.timeline-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* ─── Ports ─────────────────────────────────────────────────── */
.port-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(255,255,255,0.06);
}

.port-card-header {
  padding: 1rem 1.25rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.port-name { font-size: 1.1rem; font-weight: 600; }
.port-country { font-size: 0.8rem; color: var(--text-muted); }

.port-card-body { padding: 0 1.25rem 1rem; }

.port-times {
  display: flex;
  gap: 1.5rem;
  padding: 0.5rem 0 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 0.75rem;
}

.port-time-item { display: flex; flex-direction: column; gap: 0.2rem; }
.port-time-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }
.port-time-value { font-size: 0.9rem; font-weight: 600; color: var(--gold); }

.port-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.port-highlights li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
}

.port-highlights li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.7rem;
}

/* ─── Spa ────────────────────────────────────────────────────── */
.spa-treatment {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.spa-treatment:last-child { border-bottom: none; }

.spa-treatment-name { font-size: 0.9rem; font-weight: 500; }
.spa-treatment-duration { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.1rem; }
.spa-treatment-price { font-size: 0.9rem; font-weight: 600; color: var(--gold); }

/* ─── Entertainment ──────────────────────────────────────────── */
.show-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.show-time-block {
  text-align: center;
  min-width: 52px;
}

.show-time { font-size: 1rem; font-weight: 700; color: var(--gold); line-height: 1; }
.show-period { font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

.show-info { flex: 1; }
.show-name { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.25rem; }
.show-venue { font-size: 0.8rem; color: var(--text-muted); }
.show-desc { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.3rem; line-height: 1.4; }

/* ─── Chat Interface ─────────────────────────────────────────── */
.chat-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  -webkit-overflow-scrolling: touch;
}

.chat-message {
  max-width: 85%;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.chat-message.user { align-self: flex-end; align-items: flex-end; }
.chat-message.assistant { align-self: flex-start; align-items: flex-start; }

.chat-bubble {
  padding: 0.6rem 0.9rem;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.chat-message.user .chat-bubble {
  background: var(--gold);
  color: var(--bg);
  border-bottom-right-radius: 4px;
  font-weight: 500;
}

.chat-message.assistant .chat-bubble {
  background: var(--card);
  color: var(--text);
  border-bottom-left-radius: 4px;
  border: 1px solid rgba(255,255,255,0.07);
}

.chat-time {
  font-size: 0.65rem;
  color: var(--text-dim);
}

.chat-input-area {
  padding: 0.75rem 1rem;
  background: var(--card);
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
}

.chat-input {
  flex: 1;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  padding: 0.6rem 1rem;
  color: var(--text);
  font-size: 0.9rem;
  resize: none;
  max-height: 120px;
  min-height: 40px;
  outline: none;
  transition: border-color var(--transition);
}

.chat-input::placeholder { color: var(--text-dim); }

.chat-input:focus { border-color: rgba(201,168,76,0.4); }

.chat-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: opacity var(--transition), transform var(--transition);
  flex-shrink: 0;
}

.chat-send:active { opacity: 0.8; transform: scale(0.93); }

/* ─── Voice Button ───────────────────────────────────────────── */
.voice-btn-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

@keyframes voice-pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.18); opacity: 0; }
}

.voice-pulse-ring {
  position: absolute;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  background: rgba(201,168,76,0.3);
  animation: voice-pulse 1.5s ease-in-out infinite;
  display: none;
}

.voice-btn-wrap.listening .voice-pulse-ring { display: block; }
.voice-btn-wrap.listening .voice-pulse-ring:nth-child(2) { animation-delay: 0.4s; }
.voice-btn-wrap.listening .voice-pulse-ring:nth-child(3) { animation-delay: 0.8s; }

.voice-btn {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 8px 32px rgba(201,168,76,0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  position: relative;
  z-index: 2;
}

.voice-btn .mic-icon { font-size: 2rem; }

.voice-btn:active,
.voice-btn.listening {
  transform: scale(0.95);
  box-shadow: 0 4px 16px rgba(201,168,76,0.25);
}

.voice-status {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  min-height: 1.2em;
  transition: color var(--transition);
}

.voice-status.active { color: var(--gold); }

/* Main answer display */
.main-answer {
  width: 100%;
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  border: 1px solid rgba(201,168,76,0.2);
  font-size: 0.9rem;
  line-height: 1.65;
  display: none;
}

.main-answer.visible { display: block; }

.stop-btn {
  display: none;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  padding: 0.4rem 1rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 2rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: background 0.15s;
}
.stop-btn:hover { background: rgba(255,255,255,0.14); color: var(--text); }

.main-answer .answer-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

/* ─── Fred's Dashboard ───────────────────────────────────────── */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.dashboard-stat {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1rem;
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.dashboard-stat-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.dashboard-stat-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.dashboard-stat-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ─── Tab Panels ─────────────────────────────────────────────── */
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ─── Search Bar ─────────────────────────────────────────────── */
.search-bar {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  padding: 0.5rem 0.9rem;
  gap: 0.5rem;
  margin-bottom: 1rem;
  transition: border-color var(--transition);
}

.search-bar:focus-within { border-color: rgba(201,168,76,0.4); }

.search-icon { color: var(--text-muted); font-size: 0.9rem; flex-shrink: 0; }

.search-input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
}

.search-input::placeholder { color: var(--text-dim); }

/* ─── Tips ───────────────────────────────────────────────────── */
.tip-item {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  border-left: 3px solid var(--gold);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.tip-item strong { color: var(--text); font-weight: 600; }

/* ─── Loading / Skeleton ─────────────────────────────────────── */
@keyframes shimmer {
  from { background-position: -400px 0; }
  to { background-position: 400px 0; }
}

.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.04) 25%,
    rgba(255,255,255,0.08) 50%,
    rgba(255,255,255,0.04) 75%
  );
  background-size: 400px 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: 6px;
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(201,168,76,0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Divider ────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin: 1rem 0;
}

/* ─── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 2px; }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (min-width: 480px) {
  .ask-area { padding: 2rem 1rem; }
  .voice-btn { width: 140px; height: 140px; }
  .voice-pulse-ring { width: 168px; height: 168px; }
}

@media (min-width: 768px) {
  .scroll-content { padding: 1.5rem 2rem; }
  .dashboard-grid { grid-template-columns: repeat(4, 1fr); }
  .pin-container { max-width: 360px; }
  .main-answer { max-width: 480px; }
}
