/* === tokens.css === */
/* ══════════════════════════════════════════════════
   Events Near Me Now — Design Tokens
   Base tokens (main product — LIGHT theme).
   Product overrides in tokens-worldcup.css, etc.
   ══════════════════════════════════════════════════ */

:root {
  /* ── Surfaces (warm cream light theme) ── */
  --bg: #FAF7F0;
  --surface: #FFFFFF;
  --surface-2: #F2EDE4;
  --surface-3: #E8E2D8;
  --border: rgba(0, 0, 0, 0.08);

  /* ── Text (dark charcoal) ── */
  --text: #1A1A1A;
  --text-secondary: #5A5650;
  --text-dim: #9A9590;

  /* ── Brand — Primary (warm orange) ── */
  --accent: #F7A058;
  --accent-glow: rgba(247, 160, 88, 0.15);
  --accent-hover: #F59040;
  --accent-soft: rgba(247, 160, 88, 0.08);

  /* ── Brand — Secondary (teal) ── */
  --teal: #0AA881;
  --teal-glow: rgba(10, 168, 129, 0.15);
  --teal-hover: #089A75;
  --teal-soft: rgba(10, 168, 129, 0.08);

  /* ── Brand — CTA / Urgent ── */
  --coral: #E85D5D;
  --coral-glow: rgba(232, 93, 93, 0.15);
  --coral-hover: #D04E4E;

  /* ── Brand — Highlight (stars/ratings) ── */
  --highlight: #F5D75A;
  --highlight-glow: rgba(245, 215, 90, 0.15);

  /* ── Semantic colors ── */
  --green: #2BA84A;
  --blue: #3080D0;
  --pink: #D04070;
  --purple: #7050C0;

  /* ── Radius ── */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  /* ── Safe area ── */
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  /* ── Glassmorphism (light mode) ── */
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(0, 0, 0, 0.06);
  --glass-blur: 20px;
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);

  /* ── Elevation / Shadows ── */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);

  /* ── Transitions ── */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;

  /* ── Skeleton / Loading ── */
  --skeleton-base: var(--surface-2);
  --skeleton-shine: var(--surface-3);
}


/* === base.css === */
/* ══════════════════════════════════════════════════
   Base — Reset, Typography, Layout Primitives
   ══════════════════════════════════════════════════ */

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

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'DM Sans', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Scrollbar styling */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 4px; }

/* RTL support */
[dir="rtl"] .header { direction: rtl; }
[dir="rtl"] .input-area { direction: rtl; }
[dir="rtl"] .message { direction: rtl; text-align: right; }

/* Responsive base */
@media (max-width: 600px) {
  .header { padding: 12px 16px; }
  .chat-container { padding: 16px; }
  .input-area { padding: 12px 16px 20px; }
  .ad-free-badge { display: none; }
}


/* === components.css === */
/* ══════════════════════════════════════════════════
   Shared Components
   ══════════════════════════════════════════════════ */

/* ── Header ── */
.header {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--glass-border);
  flex-shrink: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  z-index: 100;
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.3px;
  cursor: pointer;
  transition: opacity var(--duration-fast);
}
.logo:hover { opacity: 0.85; }

.logo-wrap { display: flex; align-items: baseline; gap: 8px; cursor: pointer; }
.logo-sub { font-size: 11px; color: var(--text-dim); font-weight: 400; }

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.header-btn {
  background: transparent; border: none;
  color: var(--text-secondary); border-radius: 10px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s;
}
.header-btn:hover { background: rgba(0,0,0,0.05); color: var(--text); }
.header-btn svg { width: 20px; height: 20px; }

.new-search-btn {
  display: none;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}
.new-search-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}
.new-search-btn svg { width: 12px; height: 12px; }
.new-search-btn.visible { display: flex; }

.prefs-header-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 7px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  display: flex;
  align-items: center;
}
.prefs-header-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.ad-free-badge {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent);
  padding: 4px 10px;
  border: 1px solid var(--accent);
  border-radius: 12px;
  opacity: 0.6;
}

.location-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}
.location-badge:hover {
  border-color: var(--accent);
  color: var(--text);
}

.location-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease-in-out infinite;
}

/* ── User Identity ── */
.user-pill {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.user-pill:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.user-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase;
}

.user-email-short {
  font-size: 12px;
  color: var(--text-secondary);
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-dropdown {
  display: none;
  position: absolute;
  top: 48px; right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  min-width: 180px;
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.user-dropdown.open { display: flex; flex-direction: column; }
.user-dropdown button {
  background: none; border: none;
  color: var(--text); padding: 10px 14px;
  text-align: left; font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer; border-radius: 8px;
  transition: background 0.15s;
  display: flex; align-items: center;
  letter-spacing: 0.01em;
}
.user-dropdown button:hover { background: rgba(0,0,0,0.05); }
.user-dropdown button svg { flex-shrink: 0; }
.user-dropdown hr { border: none; border-top: 1px solid var(--border); margin: 4px 0; }

.signin-header-btn {
  display: none;
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-secondary);
  font-size: 12px; font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}
.signin-header-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

/* ── Sign-in Modal ── */
.signin-modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
}
.signin-modal-overlay.open { display: flex; }
.signin-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  width: 90%; max-width: 360px;
  text-align: center;
}
.signin-modal h3 { margin: 0 0 8px; font-size: 20px; color: var(--text); }
.signin-modal p { color: var(--text-secondary); font-size: 13px; margin: 0 0 20px; }
.signin-modal input {
  width: 100%; padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text); font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  box-sizing: border-box;
  outline: none; transition: border-color 0.2s;
}
.signin-modal input:focus { border-color: var(--accent); }
.signin-modal-actions { display: flex; gap: 10px; margin-top: 16px; }
.signin-modal-actions button {
  flex: 1; padding: 10px; border-radius: 10px;
  font-size: 14px; font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer; transition: all 0.2s;
}
.signin-modal-actions .signin-cancel {
  background: none; border: 1px solid var(--border); color: var(--text-secondary);
}
.signin-modal-actions .signin-submit {
  background: var(--accent); border: none; color: #000;
}
.signin-modal-actions .signin-submit:disabled { opacity: 0.4; cursor: not-allowed; }

.google-signin-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 10px 16px; margin: 12px 0 8px;
  background: #fff; color: #333; border: 1px solid #ddd; border-radius: 8px;
  font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s;
}
.google-signin-btn:hover { background: #f8f8f8; box-shadow: 0 1px 4px rgba(0,0,0,0.1); }
.google-signin-btn img { width: 18px; height: 18px; }
.signin-divider { text-align: center; color: var(--text-dim); font-size: 12px; margin: 8px 0; }

/* ── Chat Container ── */
.chat-container {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  scroll-behavior: smooth;
}

/* ── Welcome State ── */
.welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 20px 20px;
  margin: auto 0;
  animation: fadeUp 0.6s ease-out;
}

.welcome h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 5.5vw, 46px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #1A1A1A 30%, var(--accent) 70%, var(--teal, var(--accent)) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.welcome-input-wrapper {
  max-width: 480px; width: 100%;
  display: flex; gap: 10px;
  align-items: flex-end;
  margin-top: 20px; margin-bottom: 8px;
}
.welcome-input-wrapper .input-field { flex: 1; }

.welcome-location {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  background: var(--glass-bg);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  font-size: 15px; font-weight: 500;
  color: var(--text); cursor: pointer;
  margin-top: 16px; margin-bottom: 8px;
  transition: all var(--duration-normal) var(--ease-out);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.welcome-location:hover { background: var(--accent-soft); transform: translateY(-1px); }

.welcome-location-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease-in-out infinite;
}
.welcome-location-live {
  font-size: 11px; color: var(--text-dim);
  padding-left: 8px; border-left: 1px solid var(--border);
}

.quick-asks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 24px;
  max-width: 480px; width: 100%;
}
.quick-ask {
  padding: 14px; background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text); font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all var(--duration-normal) var(--ease-out);
  font-family: 'DM Sans', sans-serif;
  text-align: center;
  display: flex; align-items: center; justify-content: center;
  min-height: 48px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.quick-ask:hover {
  border-color: var(--accent);
  color: var(--text);
  background: var(--accent-soft);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.welcome-footer {
  margin-top: 24px; font-size: 11px;
  color: var(--text-dim); letter-spacing: 0.3px;
}

/* Quick chips (horizontal scroll variant) */
.quick-chips {
  display: flex; gap: 8px; padding: 10px 16px;
  overflow-x: auto; flex-shrink: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  mask-image: linear-gradient(to right, black calc(100% - 32px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black calc(100% - 32px), transparent 100%);
}
.quick-chips::-webkit-scrollbar { display: none; }
.quick-chip {
  flex-shrink: 0; padding: 8px 14px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-secondary); font-size: 13px; cursor: pointer;
  font-family: inherit; transition: all 0.15s; white-space: nowrap;
}
.quick-chip:hover {
  border-color: rgba(0,0,0,0.08);
  background: var(--surface-2);
  color: var(--text);
}
.quick-chip:active { transform: scale(0.96); }

@media (min-width: 601px) {
  .quick-asks {
    grid-template-columns: repeat(3, 1fr);
    max-width: 600px;
  }
}

/* ── Email Signup ── */
.signup-card {
  margin-top: 28px; padding: 20px 24px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 400px; width: 100%; text-align: center;
}
.signup-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px; font-weight: 600;
  color: var(--text); margin-bottom: 4px;
}
.signup-card p {
  font-size: 12px; color: var(--text-secondary);
  margin-bottom: 14px; line-height: 1.4;
}
.signup-form { display: flex; gap: 8px; }
.signup-form input {
  flex: 1; padding: 10px 14px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text); font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  outline: none; transition: border-color 0.2s;
}
.signup-form input:focus { border-color: var(--accent); }
.signup-form input::placeholder { color: var(--text-dim); }
.signup-btn {
  padding: 10px 18px; background: var(--accent);
  color: #fff; border: none; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer; transition: all 0.2s;
  white-space: nowrap;
}
.signup-btn:hover { background: var(--accent-hover); }
.signup-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.signup-success {
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  animation: fadeUp 0.4s ease-out;
}
.signup-checkmark {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  animation: checkPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.signup-checkmark svg {
  width: 20px; height: 20px;
  fill: none; stroke: #fff; stroke-width: 3;
  stroke-linecap: round; stroke-linejoin: round;
}
.signup-success-text { font-size: 14px; font-weight: 600; color: var(--text); }
.signup-success-sub { font-size: 12px; color: var(--text-secondary); }
.signup-error { font-size: 12px; color: var(--coral); margin-top: 8px; }

/* ── Messages ── */
.message {
  max-width: 720px; width: 100%;
  margin: 0 auto;
  animation: fadeUp 0.3s ease-out;
}
.message.user { display: flex; justify-content: flex-end; }
.message.user .bubble {
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 12px 18px;
  border-radius: var(--radius) var(--radius) 4px var(--radius);
  max-width: 80%; font-size: 15px; line-height: 1.5;
}
.message.assistant .bubble {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 2px var(--radius-sm) var(--radius-sm) 2px;
  padding: 20px 24px;
  font-size: 16px; line-height: 1.6;
  color: var(--text); font-weight: 400;
}
.message.assistant .bubble .highlight-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 12px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.highlight-icon { display: flex; align-items: center; color: var(--accent); }
.message.assistant .bubble p { margin-bottom: 6px; }
.message.assistant .bubble p:last-child { margin-bottom: 0; }

/* Chat messages (worldcup variant) */
.chat-view { display: flex; flex-direction: column; height: 100%; }
.chat-messages {
  flex: 1; overflow-y: auto; padding: 16px 16px 10px;
  -webkit-overflow-scrolling: touch;
}

/* ── Input Area ── */
.input-area {
  padding: 16px 24px 24px;
  flex-shrink: 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.input-area.hidden { display: none; }

.input-wrapper {
  max-width: 720px; margin: 0 auto;
  display: flex; gap: 10px; align-items: flex-end;
}

.input-field {
  flex: 1; background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  color: var(--text); font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  outline: none; resize: none;
  min-height: 48px; max-height: 120px;
  line-height: 1.4; transition: border-color 0.2s;
}
.input-field::placeholder { color: var(--text-dim); }
.input-field:focus { border-color: var(--accent); }

.send-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--coral);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; flex-shrink: 0;
}
.send-btn:hover { background: var(--coral-hover); transform: scale(1.05); }
.send-btn:disabled { opacity: 0.3; cursor: not-allowed; transform: none; }
.send-btn svg { width: 20px; height: 20px; fill: var(--bg); }

/* Chat input (worldcup variant) */
.chat-input-wrap {
  padding: 12px 16px 16px; flex-shrink: 0; position: relative;
  padding-bottom: calc(16px + var(--safe-bottom));
}
.chat-input-container {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  transition: border-color var(--duration-normal), box-shadow var(--duration-normal);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.chat-input-container:focus-within {
  border-color: rgba(247, 160, 88, 0.3);
  box-shadow: var(--shadow-md), 0 0 0 3px var(--accent-glow);
}
.chat-input {
  width: 100%; background: transparent; border: none;
  border-radius: 16px; padding: 14px 52px 14px 18px;
  color: var(--text); font-size: 15px; outline: none;
  font-family: inherit; resize: none;
  min-height: 48px; max-height: 120px; line-height: 1.4;
}
.chat-input::placeholder { color: var(--text-dim); }
.chat-send {
  position: absolute; right: 8px; bottom: 8px;
  width: 36px; height: 36px; border-radius: 12px;
  background: var(--teal, var(--accent)); border: none; color: #fff;
  cursor: pointer; display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
  transition: all var(--duration-fast) var(--ease-out);
  box-shadow: 0 2px 8px rgba(10, 168, 129, 0.3);
}
.chat-send svg {
  width: 16px; height: 16px; stroke: #fff; fill: none;
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}
.chat-send:hover { background: var(--teal-hover, var(--accent-hover)); transform: scale(1.08); }
.chat-send:disabled { opacity: 0.3; cursor: not-allowed; transform: none; box-shadow: none; }

/* Typing indicator */
.msg-typing { display: inline-flex; gap: 5px; padding: 14px 4px; }
.msg-typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-dim); animation: bounce 1.4s infinite;
}
.msg-typing span:nth-child(2) { animation-delay: 0.2s; }
.msg-typing span:nth-child(3) { animation-delay: 0.4s; }

/* ── Modals ── */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.active { display: flex; }

.modal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 520px; width: 100%;
  max-height: 80vh; overflow-y: auto;
  position: relative;
  animation: fadeUp 0.3s ease-out;
}
.modal-content h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px; font-weight: 600;
  color: var(--text); margin-bottom: 6px;
}
.modal-content .modal-sub {
  font-size: 13px; color: var(--text-secondary);
  margin-bottom: 20px; line-height: 1.4;
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none;
  color: var(--text-dim); font-size: 24px;
  cursor: pointer; padding: 4px 8px;
  transition: color 0.2s; border-radius: 6px;
}
.modal-close:hover { color: var(--text); background: var(--surface-2); }

.modal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px; font-weight: 700;
  color: var(--text); margin-bottom: 20px;
}
.modal-body p {
  font-size: 15px; line-height: 1.6;
  color: var(--text-secondary); margin-bottom: 14px;
}
.modal-body p strong { color: var(--text); }

.modal-btn {
  width: 100%; padding: 12px;
  border: none; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer; transition: all 0.2s;
}
.modal-btn-primary { background: var(--accent); color: #fff; }
.modal-btn-primary:hover { background: var(--accent-hover); }
.modal-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Location Picker Modal ── */
.location-modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 100;
  align-items: center; justify-content: center;
  padding: 20px;
}
.location-modal-overlay.active { display: flex; }

.location-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px; max-width: 400px; width: 100%;
  animation: fadeUp 0.3s ease-out;
}
.location-modal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px; font-weight: 700;
  color: var(--text); margin-bottom: 4px;
}
.location-modal-subtitle {
  font-size: 13px; color: var(--text-dim); margin-bottom: 20px;
}
.location-modal-input {
  width: 100%; padding: 12px 16px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text); font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  outline: none; transition: border-color 0.2s;
}
.location-modal-input:focus { border-color: var(--accent); }
.location-modal-input::placeholder { color: var(--text-dim); }

.location-modal-detect {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: var(--accent-glow); border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  color: var(--accent); font-size: 14px; font-weight: 500;
  cursor: pointer; transition: all 0.2s;
  width: 100%; font-family: 'DM Sans', sans-serif; margin-bottom: 12px;
}
.location-modal-detect:hover { background: rgba(0,180,216,0.25); }

.location-modal-input-wrap { position: relative; margin-bottom: 12px; }
.location-suggestions {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  max-height: 200px; overflow-y: auto; z-index: 10; display: none;
}
.location-suggestions.active { display: block; }
.location-suggestion {
  padding: 10px 16px; font-size: 14px; color: var(--text-secondary);
  cursor: pointer; transition: background 0.15s;
}
.location-suggestion:hover { background: var(--surface-3); color: var(--text); }

.location-modal-actions { display: flex; gap: 8px; justify-content: flex-end; }
.location-modal-cancel {
  padding: 8px 18px; background: none; border: 1px solid var(--border);
  border-radius: 20px; color: var(--text-secondary); font-size: 13px;
  cursor: pointer; font-family: 'DM Sans', sans-serif; transition: all 0.2s;
}
.location-modal-cancel:hover { border-color: var(--text-dim); color: var(--text); }

/* ── Toast ── */
.nmn-toast {
  position: fixed; bottom: 80px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--surface-2); color: var(--text);
  border: 1px solid rgba(0,0,0,0.06);
  padding: 12px 20px; border-radius: 12px;
  font-size: 13px; z-index: 9999;
  opacity: 0; transition: all 0.3s ease;
  pointer-events: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  max-width: 340px; text-align: center; line-height: 1.4;
}
.nmn-toast.show {
  opacity: 1; transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.nmn-toast a { color: var(--coral); text-decoration: underline; cursor: pointer; }

/* ── My Events Panel ── */
.my-events-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1100;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.my-events-overlay.open { opacity: 1; pointer-events: auto; }
.my-events-panel {
  background: var(--surface-2); border-radius: 16px;
  width: 90%; max-width: 480px; max-height: 80vh;
  overflow-y: auto; padding: 24px;
}
.my-events-panel h3 { margin: 0 0 16px; font-size: 18px; }
.my-events-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px; border-radius: 10px;
  background: var(--bg); margin-bottom: 8px;
}
.my-events-item-info { flex: 1; }
.my-events-item-title { font-weight: 600; font-size: 14px; }
.my-events-item-meta { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.my-events-item-synced { font-size: 11px; color: #50c878; margin-top: 2px; }
.my-events-remove {
  background: none; border: none; color: var(--text-dim);
  cursor: pointer; font-size: 16px; padding: 4px;
  opacity: 0.5; transition: opacity 0.2s;
}
.my-events-remove:hover { opacity: 1; color: #e06090; }
.my-events-empty { text-align: center; color: var(--text-dim); padding: 32px 0; }

/* ── Preferences Modal ── */
.interest-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px;
}
.interest-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  cursor: pointer; transition: all 0.15s;
  font-size: 13px; color: var(--text-secondary);
}
.interest-chip:hover { border-color: var(--accent); color: var(--text); }
.interest-chip.selected {
  border-color: var(--accent); background: var(--accent-glow); color: var(--text);
}
.interest-chip input { display: none; }

/* Prefs chat */
.prefs-chat { display: flex; flex-direction: column; height: 360px; }
.prefs-chat-messages {
  flex: 1; overflow-y: auto; padding: 8px 0;
  display: flex; flex-direction: column; gap: 10px;
}
.prefs-msg { display: flex; max-width: 88%; }
.prefs-msg.ai { align-self: flex-start; }
.prefs-msg.user { align-self: flex-end; }
.prefs-bubble {
  padding: 10px 14px; border-radius: 16px;
  font-size: 13.5px; line-height: 1.5; word-wrap: break-word;
}
.prefs-msg.ai .prefs-bubble {
  background: var(--surface-2); color: var(--text); border-bottom-left-radius: 4px;
}
.prefs-msg.user .prefs-bubble {
  background: var(--accent); color: #fff; border-bottom-right-radius: 4px;
}
.prefs-chat-input-row {
  display: flex; gap: 8px; margin-top: 10px;
  padding-top: 10px; border-top: 1px solid var(--border);
}
.prefs-chat-input {
  flex: 1; padding: 10px 14px; background: var(--bg);
  border: 1px solid var(--border); border-radius: 20px;
  color: var(--text); font-size: 13.5px;
  font-family: 'DM Sans', sans-serif;
  outline: none; transition: border-color 0.2s;
}
.prefs-chat-input:focus { border-color: var(--accent); }
.prefs-chat-input::placeholder { color: var(--text-dim); }
.prefs-chat-send {
  width: 38px; height: 38px; border-radius: 50%;
  border: none; background: var(--accent); color: #fff;
  font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; flex-shrink: 0;
}
.prefs-chat-send:hover { background: var(--accent-hover); }
.prefs-chat-send:disabled { opacity: 0.5; cursor: not-allowed; }

.prefs-confirm-bar {
  display: flex; gap: 8px; margin-top: 10px;
  padding-top: 10px; border-top: 1px solid var(--border);
}
.prefs-confirm-btn {
  flex: 1; padding: 10px; border: none;
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer; transition: all 0.2s;
}
.prefs-confirm-btn.primary { background: var(--accent); color: #fff; }
.prefs-confirm-btn.primary:hover { background: var(--accent-hover); }
.prefs-confirm-btn.secondary {
  background: var(--surface-2); color: var(--text-secondary);
  border: 1px solid var(--border);
}
.prefs-confirm-btn.secondary:hover { border-color: var(--accent); color: var(--text); }

/* Calendar sync toggle */
.calendar-sync-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: rgba(80,200,120,0.08); border-radius: 10px;
  border: 1px solid rgba(80,200,120,0.2); cursor: pointer;
  user-select: none; margin-bottom: 12px;
}
.csr-left { display: flex; align-items: center; gap: 10px; }
.csr-icon { font-size: 18px; }
.csr-label { font-size: 13px; font-weight: 500; color: var(--text); }
.csr-sublabel { font-size: 11px; color: var(--text-dim); margin-top: 2px; }
.csr-toggle {
  width: 40px; height: 24px; border-radius: 12px;
  background: rgba(0,0,0,0.08); position: relative;
  transition: background 0.2s; flex-shrink: 0;
}
.csr-toggle.on { background: #50c878; }
.csr-toggle-knob {
  width: 20px; height: 20px; border-radius: 50%; background: #fff;
  position: absolute; top: 2px; left: 2px; transition: transform 0.2s;
}
.csr-toggle.on .csr-toggle-knob { transform: translateX(16px); }

/* Calendar connect prompt */
.cal-connect-prompt {
  position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
  background: var(--surface-2); border: 1px solid rgba(0,0,0,0.06);
  border-radius: 10px; padding: 12px 16px; width: 240px; z-index: 50;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  font-size: 12px; line-height: 1.5; color: var(--text-secondary);
}
.cal-connect-prompt::after {
  content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: var(--surface-2);
}
.cal-connect-prompt strong { color: var(--text); }
.cal-connect-prompt .cal-prompt-actions { display: flex; gap: 8px; margin-top: 8px; }
.cal-connect-prompt .cal-prompt-actions button {
  flex: 1; padding: 6px 8px; border-radius: 6px; font-size: 11px; cursor: pointer; border: none;
}
.cal-prompt-connect { background: var(--coral); color: #fff; font-weight: 600; }
.cal-prompt-ics { background: rgba(0,0,0,0.06); color: var(--text-secondary); }

/* Upgrade */
.modal-btn-upgrade {
  background: linear-gradient(135deg, var(--coral), var(--pink));
  color: #fff; margin-bottom: 8px;
}
.modal-btn-upgrade:hover { opacity: 0.9; }
.upgrade-badge {
  display: inline-block; padding: 2px 8px;
  background: linear-gradient(135deg, var(--coral), var(--pink));
  color: #fff; font-size: 10px; font-weight: 700;
  border-radius: 12px; text-transform: uppercase; letter-spacing: 0.5px;
}
.upgrade-features { list-style: none; margin: 12px 0 20px; }
.upgrade-features li {
  font-size: 13px; color: var(--text-secondary);
  padding: 6px 0; display: flex; align-items: center; gap: 8px;
}
.upgrade-features li::before { content: "✓"; color: var(--accent); font-weight: 700; }

/* ══════════════════════════════════════════════════
   Phase 2 — Category Browse Strip (Airbnb-style)
   ══════════════════════════════════════════════════ */
.category-strip {
  max-width: 520px; width: 100%;
  margin-top: 20px;
}
.category-scroll {
  display: flex; gap: 10px;
  overflow-x: auto; padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  mask-image: linear-gradient(to right, black calc(100% - 24px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black calc(100% - 24px), transparent 100%);
}
.category-scroll::-webkit-scrollbar { display: none; }

.category-item {
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  padding: 12px 16px; min-width: 80px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer; transition: all var(--duration-normal) var(--ease-out);
  font-family: 'DM Sans', sans-serif;
  flex-shrink: 0;
}
.category-item:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.category-item:active { transform: scale(0.97); }

.category-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  background: var(--surface-2);
  border-radius: 10px;
}
.category-name {
  font-size: 11px; font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* ══════════════════════════════════════════════════
   Phase 2 — Bottom Navigation Bar (mobile)
   ══════════════════════════════════════════════════ */
.bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-top: 1px solid var(--glass-border);
  padding: 8px 0 calc(8px + var(--safe-bottom));
  z-index: 200;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.04);
}
.bottom-nav-inner {
  display: flex;
  justify-content: space-around;
  max-width: 400px;
  margin: 0 auto;
}
.bottom-nav-item {
  display: flex; flex-direction: column;
  align-items: center; gap: 3px;
  padding: 6px 12px;
  background: none; border: none;
  color: var(--text-dim);
  font-size: 10px; font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: color var(--duration-fast);
  -webkit-tap-highlight-color: transparent;
}
.bottom-nav-item svg {
  width: 22px; height: 22px;
  stroke: currentColor; fill: none;
  stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.bottom-nav-item.active {
  color: var(--accent);
}
.bottom-nav-item:hover { color: var(--text-secondary); }
.bottom-nav-item.active:hover { color: var(--accent); }

@media (max-width: 768px) {
  .bottom-nav { display: block; }
  /* Add bottom padding so content isn't hidden behind nav */
  .chat-container { padding-bottom: 80px; }
  .welcome { margin-bottom: 0; }
}

/* ══════════════════════════════════════════════════
   Phase 2 — "Powered by" footer refinement
   ══════════════════════════════════════════════════ */
.welcome-tagline {
  margin-top: 32px;
  padding: 16px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 480px; width: 100%;
}
.welcome-tagline-row {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: var(--text-secondary);
  line-height: 1.5;
}
.welcome-tagline-icon {
  width: 32px; height: 32px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
  border-radius: 8px;
  color: var(--accent);
}
.welcome-tagline-icon svg {
  width: 18px; height: 18px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ══════════════════════════════════════════════════
   Phase 2 — Skeleton Loading & Search State
   ══════════════════════════════════════════════════ */
.skeleton-results {
  display: flex; flex-direction: column; gap: 12px;
  width: 100%; align-self: stretch;
}
.search-status-text {
  transition: opacity 0.3s ease;
}
.skeleton-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  animation: fadeIn 0.3s ease-out;
}
.skeleton-line {
  height: 14px;
  background: linear-gradient(90deg,
    var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 6px;
  margin-bottom: 10px;
}
.skeleton-line:last-child { margin-bottom: 0; }
.skeleton-line.short { width: 60%; }
.skeleton-line.medium { width: 80%; }
.skeleton-line.title { height: 18px; width: 70%; margin-bottom: 14px; }
.skeleton-image {
  height: 120px;
  background: linear-gradient(90deg,
    var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

/* ══════════════════════════════════════════════════
   Phase 4 — Map View (Leaflet)
   ══════════════════════════════════════════════════ */
.map-overlay {
  position: fixed; inset: 0; z-index: 900;
  display: none; flex-direction: column;
  background: var(--bg);
}
.map-overlay.active { display: flex; }

.map-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border);
  z-index: 10;
}
.map-header-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600; font-size: 16px; color: var(--text);
}
.map-close-btn {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 50%; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-secondary);
  transition: all 0.2s;
}
.map-close-btn:hover { background: var(--surface-2); color: var(--text); }
.map-close-btn svg { width: 18px; height: 18px; }

.map-container {
  flex: 1; position: relative;
}
#mapCanvas {
  width: 100%; height: 100%;
}

/* Leaflet marker overrides */
.map-marker {
  width: 32px; height: 32px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  border: 2px solid #fff;
}
.map-marker-inner {
  transform: rotate(45deg);
  font-size: 14px; line-height: 1;
}
.map-marker-music { background: #8B5CF6; }
.map-marker-food { background: #F59E0B; }
.map-marker-comedy { background: #EC4899; }
.map-marker-sports { background: #10B981; }
.map-marker-free { background: #06B6D4; }
.map-marker-festival { background: #F97316; }
.map-marker-art { background: #A855F7; }
.map-marker-family { background: #3B82F6; }
.map-marker-default { background: var(--accent); }

.map-marker-user {
  width: 16px; height: 16px;
  background: #4285F4;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(66, 133, 244, 0.25), 0 2px 8px rgba(0,0,0,0.3);
}

/* Map popup */
.map-popup .leaflet-popup-content-wrapper {
  background: var(--surface);
  color: var(--text);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  border: 1px solid var(--border);
  padding: 0;
}
.map-popup .leaflet-popup-content {
  margin: 0; font-family: 'DM Sans', sans-serif;
  min-width: 200px;
}
.map-popup .leaflet-popup-tip {
  background: var(--surface);
  border: 1px solid var(--border);
}
.map-popup-card {
  padding: 12px 14px;
}
.map-popup-name {
  font-weight: 600; font-size: 14px;
  margin-bottom: 4px; line-height: 1.3;
}
.map-popup-meta {
  font-size: 12px; color: var(--text-secondary);
  margin-bottom: 6px; line-height: 1.4;
}
.map-popup-venue {
  font-size: 12px; color: var(--text-dim);
  margin-bottom: 8px;
}
.map-popup-cta {
  display: inline-block;
  padding: 6px 12px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  font-size: 12px; font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}
.map-popup-cta:hover { opacity: 0.85; }

/* Drawer (bottom sheet on map) */
.map-drawer {
  position: absolute; bottom: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-radius: 16px 16px 0 0;
  max-height: 50vh;
  transform: translateY(calc(100% - 52px));
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
.map-drawer.expanded { transform: translateY(0); }
.map-drawer-handle {
  display: flex; justify-content: center;
  padding: 10px 0 6px;
  cursor: pointer;
}
.map-drawer-handle::after {
  content: ''; width: 36px; height: 4px;
  background: var(--surface-3); border-radius: 2px;
}
.map-drawer-header {
  padding: 0 16px 10px;
  display: flex; align-items: center; justify-content: space-between;
}
.map-drawer-title {
  font-weight: 600; font-size: 15px; color: var(--text);
}
.map-drawer-count {
  font-size: 12px; color: var(--text-dim);
}
.map-drawer-list {
  padding: 0 16px 16px; overflow-y: auto;
  max-height: calc(50vh - 80px);
}
.map-drawer-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: opacity 0.2s;
}
.map-drawer-item:last-child { border-bottom: none; }
.map-drawer-item:hover { opacity: 0.7; }
.map-drawer-item-emoji {
  font-size: 20px; flex-shrink: 0; padding-top: 2px;
}
.map-drawer-item-info { flex: 1; min-width: 0; }
.map-drawer-item-name {
  font-weight: 600; font-size: 13px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.map-drawer-item-meta {
  font-size: 11px; color: var(--text-secondary); margin-top: 2px;
}

/* "View on map" button that appears after search results */
.view-on-map-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px; font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer; transition: all 0.2s;
  margin-top: 8px;
  font-family: inherit;
}
.view-on-map-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.view-on-map-btn svg {
  width: 16px; height: 16px;
  stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}


/* === event-cards.css === */
/* ══════════════════════════════════════════════════
   Event Cards — Main + World Cup variants
   ══════════════════════════════════════════════════ */

/* ── Main Product Event Cards ── */
.events-grid {
  max-width: 720px; width: 100%; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
  animation: fadeUp 0.4s ease-out;
  align-items: stretch;
}

.event-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px; cursor: pointer;
  transition: all 0.25s ease;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.event-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--card-accent, var(--accent));
  opacity: 0; transition: opacity 0.25s;
}
.event-card:hover {
  border-color: var(--card-accent, var(--accent));
  transform: translateY(-3px) perspective(600px) rotateX(1deg);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
}
.event-card:hover::before { opacity: 1; }

.event-card-header {
  display: flex; justify-content: space-between;
  align-items: flex-start; margin-bottom: 10px; min-height: 20px;
}
.event-category {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--card-accent, var(--accent));
}
.event-price {
  font-size: 13px; font-weight: 600;
  color: var(--green);
  background: rgba(80, 200, 120, 0.1);
  padding: 2px 10px; border-radius: 10px;
}
.event-price.paid { color: var(--text-secondary); background: var(--surface-2); }

.event-name {
  font-size: 17px; font-weight: 600;
  line-height: 1.3; margin-bottom: 8px; color: var(--text);
}
.event-meta {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 13px; color: var(--text-secondary);
}
.event-meta-row { display: flex; align-items: center; gap: 6px; }
.distance-badge {
  padding: 2px 8px; border-radius: 10px;
  background: rgba(0, 168, 107, 0.15); color: #50c878;
  font-size: 11px; font-weight: 600; white-space: nowrap; flex-shrink: 0;
}
.event-meta-icon {
  width: 14px; height: 14px; flex-shrink: 0;
  display: flex; align-items: center; color: var(--text-dim);
}
.event-description {
  margin-top: 10px; font-size: 13px; color: var(--text-dim);
  line-height: 1.5; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.event-vibe {
  display: inline-block; align-self: flex-start;
  margin-top: 12px; margin-bottom: 4px;
  font-size: 14px; font-weight: 600;
  padding: 6px 14px; border-radius: 14px;
  background: var(--accent-glow); color: var(--accent);
  letter-spacing: 0.3px;
}
.event-cta-row { margin-top: auto; padding-top: 14px; }
.event-cta {
  display: inline-block; padding: 8px 20px;
  background: var(--coral); color: var(--bg);
  font-size: 13px; font-weight: 600;
  border-radius: 20px; text-decoration: none;
  transition: all 0.2s;
}
.event-cta:hover { background: var(--coral-hover); transform: translateY(-1px); }

/* Category color accents */
.event-card[data-category="music"] { --card-accent: #e06090; }
.event-card[data-category="food"] { --card-accent: #f0a050; }
.event-card[data-category="art"] { --card-accent: #9070e0; }
.event-card[data-category="comedy"] { --card-accent: #e0d050; }
.event-card[data-category="sports"] { --card-accent: #50c878; }
.event-card[data-category="festival"] { --card-accent: #e07040; }
.event-card[data-category="outdoor"] { --card-accent: #50b0a0; }
.event-card[data-category="family"] { --card-accent: #70b0e0; }
.event-card[data-category="nightlife"] { --card-accent: #c050e0; }
.event-card[data-category="workshop"] { --card-accent: #70c0a0; }
.event-card[data-category="market"] { --card-accent: #d0a060; }
.event-card[data-category="theater"] { --card-accent: #e08080; }
.event-card[data-category="networking"] { --card-accent: #5090e0; }

/* Save/heart + share buttons */
.save-event-btn {
  background: none; border: none; cursor: pointer;
  padding: 4px 6px; color: var(--text-dim);
  opacity: 0.5; transition: all 0.2s;
  display: flex; align-items: center; margin-left: 8px;
}
.save-event-btn:hover { opacity: 1; color: #e06090; }
.save-event-btn.saved { opacity: 1; color: #e06090; }
.save-event-btn.saved svg { fill: #e06090; }

.share-event-btn {
  background: none; border: none; cursor: pointer; color: var(--text-dim);
  padding: 4px 6px; display: flex; align-items: center;
  opacity: 0.5; transition: all 0.2s;
}
.share-event-btn:hover { opacity: 1; color: var(--accent); }

.add-cal-btn, .map-link-btn {
  background: none; border: none; color: var(--text-dim);
  cursor: pointer; padding: 2px 4px; margin-left: auto;
  display: flex; align-items: center;
  transition: color 0.2s; opacity: 0.5; text-decoration: none;
}
.add-cal-btn:hover, .map-link-btn:hover { color: var(--accent); opacity: 1; }

/* ── World Cup / SXSW AI Event Cards ── */
.ai-events-grid {
  display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 12px;
}
@media (min-width: 500px) {
  .ai-events-grid { grid-template-columns: repeat(2, 1fr); }
}

.ai-event-card {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 16px; padding: 16px; cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  display: flex; flex-direction: column; gap: 5px;
}
.ai-event-card:hover {
  transform: translateY(-3px) perspective(600px) rotateX(1deg);
  border-color: rgba(255,255,255,0.15);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
}

.aec-category-badge {
  display: inline-flex; align-items: center; gap: 4px;
  align-self: flex-start; font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px;
  padding: 3px 8px; border-radius: 6px; margin-bottom: 2px;
}
.aec-price-badge {
  display: inline-block; align-self: flex-start;
  font-size: 11px; font-weight: 500; color: var(--text-secondary);
  background: var(--surface-3); border: 1px solid var(--border);
  border-radius: 20px; padding: 3px 10px; margin-bottom: 2px;
}
.ai-event-card .aec-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--text);
}
.aec-datetime { font-size: 12px; color: var(--text-secondary); margin-top: 1px; }
.aec-location { font-size: 12px; color: var(--text-secondary); }
.aec-location-row { display: flex; align-items: center; gap: 6px; }
.aec-distance-badge {
  padding: 2px 8px; border-radius: 10px;
  background: rgba(0,168,107,0.15); color: var(--green, var(--green-light, #50c878));
  font-size: 11px; font-weight: 600; white-space: nowrap; flex-shrink: 0;
}
.aec-desc {
  font-size: 12px; color: var(--text-dim); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px;
}
.aec-vibe-pill {
  display: inline-block; align-self: flex-start;
  font-size: 11px; font-weight: 500; color: var(--accent);
  background: var(--accent-glow); border-radius: 20px;
  padding: 4px 10px; margin-top: 4px;
}
.aec-official-badge {
  display: inline-flex; align-items: center; gap: 5px; align-self: flex-start;
  font-size: 11px; font-weight: 600; color: var(--green, var(--green-light, #50c878));
  background: var(--green-glow, rgba(80,200,120,0.1));
  border: 1px solid rgba(0,168,107,0.25);
  border-radius: 20px; padding: 3px 10px; margin-bottom: 2px;
}
.ai-event-card.is-official { border-left: 3px solid rgba(0,168,107,0.35); }

.aec-actions { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.aec-cta-btn {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--accent); color: #000;
  font-size: 12px; font-weight: 600;
  padding: 7px 14px; border-radius: 20px;
  text-decoration: none; border: none; cursor: pointer;
  transition: opacity 0.15s; white-space: nowrap; flex-shrink: 0;
}
.aec-cta-btn:hover { opacity: 0.85; }
.aec-save-btn {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 500; color: var(--text-secondary);
  background: none; border: 1px solid var(--border);
  border-radius: 20px; padding: 6px 12px;
  cursor: pointer; transition: color 0.15s, border-color 0.15s, background 0.15s;
  white-space: nowrap;
}
.aec-save-btn:hover { border-color: rgba(255,255,255,0.2); color: var(--text); }
.aec-save-btn.saved {
  color: #e06060; border-color: rgba(224,96,96,0.4);
  background: rgba(224,96,96,0.08);
}
.aec-loading { color: var(--text-dim); font-size: 13px; padding: 8px 0; }

@media (max-width: 600px) {
  .events-grid { grid-template-columns: 1fr; }
}


/* === animations.css === */
/* ══════════════════════════════════════════════════
   Animations — Keyframes + Transitions
   ══════════════════════════════════════════════════ */

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

@keyframes dotPulse {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes checkPop {
  0% { transform: scale(0); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

@keyframes prefsDot {
  0%, 60%, 100% { opacity: 0.3; transform: scale(0.8); }
  30% { opacity: 1; transform: scale(1); }
}

/* ── Radar Search Animation ── */
.searching {
  max-width: 720px; width: 100%; margin: 0 auto;
  display: flex; flex-direction: column;
  align-items: center; gap: 16px;
  padding: 32px 0;
  animation: fadeUp 0.3s ease-out;
}

.radar-container {
  position: relative; width: 100px; height: 100px;
}
.radar-pin {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 28px; height: 28px;
  color: var(--accent); z-index: 2;
  animation: pinBounce 2s ease-in-out infinite;
}
.radar-ring {
  position: absolute; top: 50%; left: 50%;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  transform: translate(-50%, -50%) scale(0.5);
  opacity: 0;
  animation: radarPing 2.4s ease-out infinite;
}
.radar-ring:nth-child(2) { animation-delay: 0s; }
.radar-ring:nth-child(3) { animation-delay: 0.6s; }
.radar-ring:nth-child(4) { animation-delay: 1.2s; }

@keyframes radarPing {
  0% { width: 20px; height: 20px; opacity: 0.6; transform: translate(-50%, -50%) scale(0.5); }
  100% { width: 100px; height: 100px; opacity: 0; transform: translate(-50%, -50%) scale(1); }
}

@keyframes pinBounce {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -55%) scale(1.1); }
}

.radar-status {
  font-size: 13px; color: var(--text-dim); text-align: center;
  height: 18px; position: relative;
}
.radar-status span {
  position: absolute; left: 50%; transform: translateX(-50%);
  white-space: nowrap; transition: opacity 0.4s ease;
}
.radar-status span.fade-out { opacity: 0; }

.thinking-content {
  display: flex; align-items: center; gap: 10px;
  color: var(--text-dim); font-size: 14px;
}
.thinking-dots { display: flex; gap: 4px; }
.thinking-dots span {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  animation: dotPulse 1.4s ease-in-out infinite;
}
.thinking-dots span:nth-child(2) { animation-delay: 0.2s; }
.thinking-dots span:nth-child(3) { animation-delay: 0.4s; }

/* Prefs typing */
.prefs-typing {
  display: flex; align-self: flex-start; gap: 4px;
  padding: 12px 16px; background: var(--surface-2);
  border-radius: 16px; border-bottom-left-radius: 4px;
}
.prefs-typing span {
  width: 6px; height: 6px; background: var(--text-dim);
  border-radius: 50%; animation: prefsDot 1.2s infinite;
}
.prefs-typing span:nth-child(2) { animation-delay: 0.2s; }
.prefs-typing span:nth-child(3) { animation-delay: 0.4s; }

/* ── Skeleton / Shimmer (for future use) ── */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton {
  background: linear-gradient(90deg,
    var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

/* ══════════════════════════════════════════════════
   Phase 5 — Polish & Micro-interactions
   ══════════════════════════════════════════════════ */

/* ── Heart save pop animation ── */
@keyframes heartPop {
  0% { transform: scale(1); }
  30% { transform: scale(1.35); }
  60% { transform: scale(0.9); }
  100% { transform: scale(1); }
}
.save-event-btn.pop { animation: heartPop 0.4s ease-out; }
.aec-save-btn.pop { animation: heartPop 0.4s ease-out; }

/* ── Staggered entrance for cards ── */
@keyframes cardEnter {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.event-card.animate-in,
.ai-event-card.animate-in {
  animation: cardEnter 0.35s ease-out both;
}

/* ── Category pill press effect ── */
.category-item:active {
  transform: scale(0.93);
  transition: transform 0.1s ease;
}
.quick-ask:active, .quick-chip:active {
  transform: scale(0.95);
  transition: transform 0.1s ease;
}

/* ── Bottom nav transition ── */
.bottom-nav-item {
  transition: color 0.2s ease, transform 0.15s ease;
}
.bottom-nav-item:active { transform: scale(0.9); }

/* ── Smooth modal/overlay entrances ── */
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
@keyframes overlayFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── Share button ripple ── */
@keyframes rippleOut {
  0% { box-shadow: 0 0 0 0 rgba(247, 160, 88, 0.3); }
  100% { box-shadow: 0 0 0 12px rgba(247, 160, 88, 0); }
}
.share-event-btn.ripple { animation: rippleOut 0.4s ease-out; }

/* ── Toast entrance ── */
@keyframes toastIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes toastOut {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(20px); opacity: 0; }
}

/* ── View on map button pulse ── */
.view-on-map-btn {
  animation: fadeUp 0.3s ease-out;
}


