/* ================================================================
   GeoHub — Premium Georgian Business & Travel Platform
   Dark Theme Stylesheet
   ================================================================ */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=DM+Serif+Display:ital@0;1&display=swap");

/* ================================================================
   GeoHub Unified Design System — Tokens
   All components reference these variables. Change here = change everywhere.
   ================================================================ */
:root {

  /* ── BACKGROUNDS ─────────────────────────────────────────── */
  --bg-0:       #04050d;
  --bg-1:       #080a16;
  --bg-2:       #0d0f1e;
  --bg-card:    #0f1117;
  --bg-elevated:#161b27;
  --bg-hover:   #1d2435;
  --bg-input:   rgba(255,255,255,0.06);

  /* ── BORDERS ─────────────────────────────────────────────── */
  --border-subtle:   rgba(255,255,255,0.04);
  --border:          rgba(255,255,255,0.08);
  --border-emphasis: rgba(255,255,255,0.14);
  --border-focus:    rgba(16,185,129,0.5);

  /* ── COLOR PALETTE ───────────────────────────────────────── */
  --green:        #10b981;
  --green-hover:  #059669;
  --green-light:  #34d399;
  --green-muted:  rgba(16,185,129,0.12);
  --green-glow:   0 0 40px rgba(16,185,129,0.2);

  --blue:         #3b82f6;
  --blue-hover:   #2563eb;
  --blue-light:   #60a5fa;
  --blue-muted:   rgba(59,130,246,0.12);

  --purple:       #a855f7;
  --purple-hover: #9333ea;
  --purple-light: #c084fc;
  --purple-muted: rgba(168,85,247,0.12);

  --pink:         #ec4899;
  --pink-light:   #f472b6;
  --pink-muted:   rgba(236,72,153,0.12);

  --gold:         #f59e0b;
  --gold-light:   #fbbf24;
  --gold-muted:   rgba(245,158,11,0.12);

  --orange:       #f97316;
  --orange-light: #fb923c;
  --orange-muted: rgba(249,115,22,0.12);

  --red:          #ef4444;
  --red-light:    #f87171;
  --red-muted:    rgba(239,68,68,0.12);

  --cyan:         #06b6d4;
  --cyan-light:   #22d3ee;
  --cyan-muted:   rgba(6,182,212,0.12);

  /* ── TEXT ────────────────────────────────────────────────── */
  --text-primary:   #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted:     #4b5563;
  --text-inverse:   #080a16;
  --text-link:      #10b981;

  /* ── GRADIENTS ───────────────────────────────────────────── */
  --gradient-brand:   linear-gradient(135deg,#10b981,#3b82f6);
  --gradient-brand-r: linear-gradient(135deg,#3b82f6,#10b981);
  --gradient-gold:    linear-gradient(135deg,#f59e0b,#ef4444);
  --gradient-purple:  linear-gradient(135deg,#a855f7,#3b82f6);
  --gradient-sunset:  linear-gradient(135deg,#f97316,#ec4899);
  --gradient-card:    linear-gradient(145deg,#0f1117,#161b27);
  --gradient-hero:
    radial-gradient(ellipse at 70% 50%,rgba(16,185,129,0.07) 0%,transparent 60%),
    radial-gradient(ellipse at 20% 80%,rgba(59,130,246,0.07) 0%,transparent 60%),
    linear-gradient(180deg,#04050d 0%,#080a16 50%,#0d0f1e 100%);

  /* ── SHADOWS ─────────────────────────────────────────────── */
  --shadow-xs:    0 1px 2px rgba(0,0,0,0.4);
  --shadow-sm:    0 1px 4px rgba(0,0,0,0.5);
  --shadow-md:    0 4px 20px rgba(0,0,0,0.6);
  --shadow-lg:    0 8px 40px rgba(0,0,0,0.7);
  --shadow-xl:    0 20px 60px rgba(0,0,0,0.8);
  --shadow-card:  0 2px 12px rgba(0,0,0,0.5), 0 1px 0 rgba(255,255,255,0.03) inset;

  --shadow-green:  0 4px 20px rgba(16,185,129,0.25);
  --shadow-blue:   0 4px 20px rgba(59,130,246,0.25);
  --shadow-purple: 0 4px 20px rgba(168,85,247,0.25);
  --shadow-gold:   0 4px 20px rgba(245,158,11,0.25);

  /* ── GLOWS ───────────────────────────────────────────────── */
  --glow-green:  0 0 30px rgba(16,185,129,0.3);
  --glow-blue:   0 0 30px rgba(59,130,246,0.3);
  --glow-purple: 0 0 30px rgba(168,85,247,0.3);
  --glow-gold:   0 0 30px rgba(245,158,11,0.3);
  --glow-red:    0 0 30px rgba(239,68,68,0.3);

  /* ── GLASSMORPHISM ───────────────────────────────────────── */
  --glass-bg:     rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.08);
  --glass-blur:   blur(20px) saturate(1.8);
  --glass-blur-sm: blur(10px) saturate(1.5);

  /* ── BORDER RADIUS ───────────────────────────────────────── */
  --radius-xs:   4px;
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   20px;
  --radius-2xl:  28px;
  --radius-full: 9999px;

  /* ── SPACING SCALE ───────────────────────────────────────── */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  20px;
  --sp-6:  24px;
  --sp-8:  32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;

  /* ── TYPOGRAPHY SCALE ────────────────────────────────────── */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;

  --fw-normal:    400;
  --fw-medium:    500;
  --fw-semibold:  600;
  --fw-bold:      700;
  --fw-extrabold: 800;
  --fw-black:     900;

  --leading-tight:  1.25;
  --leading-normal: 1.5;
  --leading-relaxed:1.7;

  /* ── Z-INDEX SCALE ───────────────────────────────────────── */
  --z-base:     1;
  --z-dropdown: 100;
  --z-sticky:   200;
  --z-overlay:  500;
  --z-modal:    1000;
  --z-navbar:   1001;
  --z-topbar:   1002;
  --z-toast:    2000;
  --z-menu:     99999;

  /* ── ANIMATIONS ──────────────────────────────────────────── */
  --duration-fast:   150ms;
  --duration-normal: 250ms;
  --duration-slow:   400ms;
  --ease-out:        cubic-bezier(0.4,0,0.2,1);
  --ease-spring:     cubic-bezier(0.34,1.56,0.64,1);

  --transition:      all 0.25s cubic-bezier(0.4,0,0.2,1);
  --transition-fast: all 0.15s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: all 0.4s  cubic-bezier(0.4,0,0.2,1);
  --transition-spring: all 0.35s cubic-bezier(0.34,1.56,0.64,1);

  /* ── COMPONENT TOKENS ────────────────────────────────────── */
  --navbar-height:    68px;
  --topbar-height:    60px;
  --bottom-nav-height:60px;

  --card-bg:       var(--bg-card);
  --card-border:   var(--border);
  --card-radius:   var(--radius-md);
  --card-padding:  var(--sp-4);
  --card-shadow:   var(--shadow-card);

  --input-bg:      var(--bg-input);
  --input-border:  var(--border);
  --input-radius:  var(--radius-sm);
  --input-padding: 10px 14px;
  --input-color:   var(--text-primary);
  --input-placeholder: var(--text-muted);

  --modal-bg:     var(--bg-card);
  --modal-radius: var(--radius-xl);
  --modal-shadow: var(--shadow-xl);
}

/* ======================== RESET ======================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  background: var(--bg-0);
  color: var(--text-primary);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
ul {
  list-style: none;
}
button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}
input,
select,
textarea {
  font-family: inherit;
}

/* ======================== TYPOGRAPHY ======================== */
.serif {
  font-family: "DM Serif Display", Georgia, serif;
}
.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-gold {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ======================== LAYOUT ======================== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-wide {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 80px 0;
}
.section-sm {
  padding: 48px 0;
}
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
}
.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}
.section-header p {
  color: var(--text-secondary);
  margin-top: 8px;
  font-size: 0.95rem;
}
.view-all {
  color: var(--green);
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: var(--transition);
}
.view-all:hover {
  color: var(--green-light);
  gap: 10px;
}

/* ======================== HERO ======================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 68px;
  background: var(--gradient-hero);
  overflow: hidden;
}
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero-glow-1 {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(16, 185, 129, 0.08) 0%,
    transparent 70%
  );
  top: -100px;
  right: -100px;
  pointer-events: none;
}
.hero-glow-2 {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.08) 0%,
    transparent 70%
  );
  bottom: 0;
  left: -100px;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  padding: 80px 24px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--green-muted);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green-light);
  margin-bottom: 28px;
  letter-spacing: 0.3px;
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  color: var(--text-primary);
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.7;
  font-weight: 400;
}

/* Search Bar */
.search-bar {
  display: flex;
  background: var(--bg-card);
  border: 1.5px solid var(--border-emphasis);
  border-radius: var(--radius-xl);
  padding: 6px;
  gap: 0;
  box-shadow: var(--shadow-xl), var(--green-glow);
  max-width: 680px;
  margin: 0 auto 28px;
  transition: var(--transition);
}
.search-bar:focus-within {
  border-color: var(--green);
  box-shadow:
    var(--shadow-xl),
    0 0 0 3px var(--green-muted);
}
.search-select {
  background: var(--bg-elevated);
  border: none;
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  min-width: 150px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2394a3b8'%3E%3Cpath d='M7 10l5 5 5-5H7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px;
  padding-right: 36px;
}
.search-select option {
  background: var(--bg-card);
}
.search-divider {
  width: 1px;
  background: var(--border);
  margin: 8px 0;
  flex-shrink: 0;
}
.search-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
}
.search-input::placeholder {
  color: var(--text-muted);
}
.search-btn {
  background: var(--gradient-brand);
  border: none;
  border-radius: var(--radius-lg);
  padding: 12px 24px;
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  white-space: nowrap;
}
.search-btn:hover {
  background: var(--gradient-brand-r);
  box-shadow: var(--shadow-green);
}
.search-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}
.search-tag {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}
.search-tag:hover {
  background: var(--green-muted);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--green-light);
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border-subtle);
}
.hero-stat-item {
  text-align: center;
}
.hero-stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.5px;
}
.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ======================== CATEGORIES ======================== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  text-decoration: none;
  color: var(--text-primary);
}
.category-card:hover {
  border-color: rgba(16, 185, 129, 0.3);
  background: var(--bg-elevated);
  transform: translateY(-3px);
  box-shadow: var(--shadow-green);
}
.category-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: var(--bg-elevated);
  transition: var(--transition);
}
.category-card:hover .category-card-icon {
  background: var(--green-muted);
}
.category-card-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.3;
}
.category-card:hover .category-card-name {
  color: var(--text-primary);
}
.category-card-count {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ======================== LISTING CARDS ======================== */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.listings-grid-4 {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* ======================== PRODUCT LOOP ======================== */
.product-loop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.loop-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: var(--transition);
}
.loop-card:hover {
  border-color: rgba(16, 185, 129, 0.28);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.loop-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: var(--green-muted);
  color: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.loop-card h3 {
  font-size: 1.05rem;
  line-height: 1.25;
}
.loop-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
}
.listing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
}
.listing-card:hover {
  border-color: var(--border-emphasis);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.listing-card-image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-elevated);
}
.listing-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}
.listing-card:hover .listing-card-image img {
  transform: scale(1.05);
}
.listing-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
}
.listing-card-featured {
  position: absolute;
  top: 12px;
  right: 12px;
}
.listing-card-wishlist {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: rgba(4, 5, 13, 0.7);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: var(--transition);
  backdrop-filter: blur(8px);
}
.listing-card-wishlist:hover {
  color: var(--red);
  background: rgba(239, 68, 68, 0.15);
}
.listing-card-content {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.listing-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.listing-card-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  flex: 1;
}
.listing-card-location {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.listing-card-location i {
  color: var(--green);
  font-size: 0.75rem;
}
.listing-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}
.listing-card-price {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.listing-card-price .amount {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}
.listing-card-price .from {
  font-size: 0.72rem;
  margin-right: 2px;
}

/* ======================== DESTINATIONS ======================== */
.destinations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}
.destination-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg-elevated);
  min-height: 220px;
  text-decoration: none;
  display: block;
}
.destination-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}
.destination-card.featured {
  grid-column: 1 / 3;
  min-height: 340px;
}
.destination-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
  position: absolute;
  inset: 0;
}
.destination-card:hover img {
  transform: scale(1.05);
}
.destination-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(4, 5, 13, 0.9) 0%,
    rgba(4, 5, 13, 0.2) 60%,
    transparent 100%
  );
}
.destination-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
}
.destination-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.3px;
}
.destination-card.featured .destination-name {
  font-size: 2rem;
}
.destination-desc {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
}
.destination-count {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  padding: 4px 10px;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--green-light);
}

/* ======================== HOW IT WORKS ======================== */
.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}
.hiw-card {
  text-align: center;
  padding: 40px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  transition: var(--transition);
}
.hiw-card:hover {
  border-color: rgba(16, 185, 129, 0.2);
  transform: translateY(-4px);
}
.hiw-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--green-muted);
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}
.hiw-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: var(--green-muted);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}
.hiw-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.hiw-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ======================== CTA BANNER ======================== */
.cta-section {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  padding: 72px 60px;
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.08) 0%,
    rgba(59, 130, 246, 0.08) 100%
  );
  border: 1px solid var(--border);
  text-align: center;
}
.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  pointer-events: none;
}
.cta-section > * {
  position: relative;
  z-index: 1;
}
.cta-section h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
.cta-section p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto 36px;
}
.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ======================== FOOTER ======================== */
.footer {
  background: var(--bg-1);
  border-top: 1px solid var(--border-subtle);
  padding: 64px 0 32px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand {
}
.footer-brand .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-brand .logo span {
  font-size: 1.3rem;
  font-weight: 800;
}
.footer-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}
.footer-socials {
  display: flex;
  gap: 10px;
}
.footer-social {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
  transition: var(--transition);
}
.footer-social:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
  border-color: var(--border-emphasis);
}
.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col ul li a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: var(--transition);
}
.footer-col ul li a:hover {
  color: var(--text-primary);
}
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer-bottom-links {
  display: flex;
  gap: 20px;
}
.footer-bottom-links a {
  color: var(--text-muted);
  transition: var(--transition);
}
.footer-bottom-links a:hover {
  color: var(--text-secondary);
}

/* ======================== EXPLORE PAGE ======================== */
.explore-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  padding-top: 96px;
  min-height: 100vh;
}
.filters-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: 88px;
}
.filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.filters-header h3 {
  font-size: 0.95rem;
  font-weight: 700;
}
.filters-clear {
  font-size: 0.8rem;
  color: var(--green);
  cursor: pointer;
  font-weight: 500;
}
.filter-group {
  margin-bottom: 24px;
}
.filter-group-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: var(--transition);
}
.filter-option:hover {
  color: var(--text-primary);
}
.filter-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  accent-color: var(--green);
  cursor: pointer;
}
.filter-option input[type="radio"] {
  accent-color: var(--green);
  cursor: pointer;
}
.price-range {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.price-range input[type="range"] {
  width: 100%;
  accent-color: var(--green);
  cursor: pointer;
}
.price-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.results-area {
  padding-bottom: 60px;
}
.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}
.results-count {
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.results-count strong {
  color: var(--text-primary);
  font-weight: 700;
}
.results-sort {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sort-select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  color: var(--text-primary);
  font-size: 0.8rem;
  outline: none;
  cursor: pointer;
}
.sort-select option {
  background: var(--bg-card);
}
.view-toggle {
  display: flex;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px;
}
.view-btn {
  padding: 6px 10px;
  border-radius: 5px;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: var(--transition);
}
.view-btn.active {
  background: var(--bg-elevated);
  color: var(--text-primary);
}
.explore-search-bar {
  display: flex;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
}
.explore-search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
}
.explore-search-bar button {
  padding: 12px 20px;
  background: var(--gradient-brand);
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.explore-search-bar:focus-within {
  border-color: var(--green);
}

/* ======================== BUSINESS PROFILE ======================== */
.profile-page {
  padding-top: 68px;
}
.profile-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 260px 260px;
  gap: 8px;
  max-height: 528px;
  overflow: hidden;
  border-radius: var(--radius-xl);
}
.gallery-main {
  grid-row: 1 / 3;
  position: relative;
  overflow: hidden;
  background: var(--bg-elevated);
  border-radius: var(--radius-xl) 0 0 var(--radius-xl);
}
.gallery-main img,
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-thumb {
  position: relative;
  overflow: hidden;
  background: var(--bg-elevated);
}
.gallery-thumb:last-child {
  border-radius: 0 0 var(--radius-xl) 0;
}
.gallery-thumb:nth-child(2) {
  border-radius: 0 var(--radius-xl) 0 0;
}
.gallery-more {
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 13, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  cursor: pointer;
  backdrop-filter: blur(4px);
}
.profile-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  margin-top: 32px;
}
.profile-header {
  margin-bottom: 24px;
}
.profile-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.profile-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.5px;
}
.profile-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.profile-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.profile-meta-item i {
  font-size: 0.8rem;
}
.profile-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 24px 0;
}
.profile-section {
  margin-bottom: 40px;
}
.profile-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.service-item {
  padding: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
}
.service-item-name {
  font-weight: 600;
  margin-bottom: 4px;
}
.service-item-price {
  color: var(--green);
  font-weight: 700;
  font-size: 0.95rem;
}
/* Sidebar */
.profile-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.info-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.info-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.info-item-icon {
  width: 32px;
  height: 32px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  color: var(--green);
}
.info-item-content .label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.info-item-content .value {
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 2px;
}
.hours-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hour-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}
.hour-row .day {
  color: var(--text-secondary);
  font-weight: 500;
}
.hour-row .time {
  color: var(--text-primary);
}
.hour-row .closed {
  color: var(--red);
}
.hour-row.today .day {
  color: var(--green);
  font-weight: 600;
}
/* Reviews */
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
}
.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.reviewer-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.reviewer-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: white;
  overflow: hidden;
}
.reviewer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.reviewer-name {
  font-weight: 600;
  font-size: 0.9rem;
}
.review-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.review-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.rating-breakdown {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.rating-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
}
.rating-bar-label {
  width: 50px;
  color: var(--text-secondary);
}
.rating-bar-track {
  flex: 1;
  height: 6px;
  background: var(--bg-elevated);
  border-radius: 3px;
  overflow: hidden;
}
.rating-bar-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 3px;
}
.rating-bar-count {
  width: 30px;
  text-align: right;
  color: var(--text-muted);
}
.rating-overview {
  display: flex;
  gap: 32px;
  align-items: center;
  margin-bottom: 24px;
  padding: 20px;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
}
.rating-score-big {
  text-align: center;
}
.rating-score-big .score {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}
.rating-score-big .out-of {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ======================== FORMS ======================== */
.form-page {
  min-height: 100vh;
  padding-top: 68px;
  background: var(--gradient-hero);
}
.form-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 24px;
}
.form-header {
  text-align: center;
  margin-bottom: 40px;
}
.form-header h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.form-header p {
  color: var(--text-secondary);
}
.step-indicator {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
}
.step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.step-item:last-child {
  flex: none;
}
.step-dot {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  border: 2px solid var(--border-emphasis);
  color: var(--text-muted);
  transition: var(--transition);
  flex-shrink: 0;
}
.step-dot.active {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.step-dot.done {
  background: var(--green-muted);
  border-color: var(--green);
  color: var(--green);
}
.step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 8px;
  transition: var(--transition);
}
.step-line.active {
  background: var(--green);
}
.step-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.step-dot.active + * .step-label {
  color: var(--green);
}
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 32px;
  margin-bottom: 16px;
}
.form-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
}
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 8px;
}
.form-label.required::after {
  content: " *";
  color: var(--red);
}
.form-input {
  width: 100%;
  background: var(--bg-elevated);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
  -webkit-appearance: none;
}
.form-input:focus {
  border-color: var(--green);
  background: var(--bg-hover);
  box-shadow: 0 0 0 3px var(--green-muted);
}
.form-input::placeholder {
  color: var(--text-muted);
}

/* ======================== LIVE CITY PAGE ======================== */
.live-page {
  padding: 110px 24px 80px;
  max-width: 1400px;
  margin: 0 auto;
}
.live-hero {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: start;
  margin-bottom: 28px;
}
.live-hero-card {
  background: linear-gradient(
    180deg,
    rgba(8, 10, 20, 0.92),
    rgba(5, 7, 15, 0.96)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-2xl);
  padding: 32px;
  box-shadow: var(--shadow-xl);
}
.live-hero-card h1 {
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.02;
  margin-bottom: 14px;
}
.live-hero-card p {
  color: var(--text-secondary);
  max-width: 680px;
  margin-bottom: 22px;
}
.live-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 10px;
}
.live-stat {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.16);
  border-radius: var(--radius-xl);
  padding: 18px 20px;
}
.live-stat strong {
  display: block;
  font-size: 1.35rem;
  color: var(--text-primary);
}
.live-stat small {
  display: block;
  color: var(--text-secondary);
  margin-top: 6px;
}
.live-status-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  margin-top: 18px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.live-status-banner span {
  color: var(--text-secondary);
}
.live-status-banner strong {
  color: var(--green);
}
.live-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
}
.live-column {
  display: grid;
  gap: 24px;
}
.live-card,
.live-panel,
.live-widget {
  background: linear-gradient(
    180deg,
    rgba(8, 10, 20, 0.96),
    rgba(5, 7, 15, 0.99)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-2xl);
  padding: 22px;
  box-shadow: var(--shadow-lg);
}
.live-card-header,
.live-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.live-card-header h2,
.live-panel-header h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}
.live-card-header .badge,
.live-panel-header .badge {
  background: rgba(16, 185, 129, 0.12);
  color: var(--green);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}
.live-feed {
  display: grid;
  gap: 14px;
}
.live-feed-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.35s ease;
}
.live-feed-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(16, 185, 129, 0.06),
    transparent 60%
  );
  opacity: 0.7;
  pointer-events: none;
}
.live-feed-card strong {
  color: var(--text-primary);
}
.live-feed-card small {
  color: var(--text-muted);
}
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.12);
  color: #fda4af;
  font-size: 0.78rem;
  font-weight: 700;
}
.live-map-panel {
  display: grid;
  gap: 18px;
}
.live-map {
  position: relative;
  min-height: 420px;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background:
    radial-gradient(
      circle at 30% 20%,
      rgba(59, 130, 246, 0.15),
      transparent 18%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(245, 158, 11, 0.12),
      transparent 12%
    ),
    linear-gradient(180deg, #07111f 0%, #02050c 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.live-map::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(16, 185, 129, 0.08),
    transparent 30%
  );
  pointer-events: none;
}
.live-pin {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}
.live-pin:hover {
  transform: scale(1.15);
}
.live-pin::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  animation: ping 1.8s infinite ease-out;
  opacity: 0.45;
}
.live-pin.red {
  background: #ef4444;
}
.live-pin.red::before {
  box-shadow: 0 0 0 8px rgba(239, 68, 68, 0.15);
}
.live-pin.gold {
  background: #f59e0b;
}
.live-pin.gold::before {
  box-shadow: 0 0 0 8px rgba(245, 158, 11, 0.16);
}
.live-pin.purple {
  background: #8b5cf6;
}
.live-pin.purple::before {
  box-shadow: 0 0 0 8px rgba(139, 92, 246, 0.18);
}
.live-pin.blue {
  background: #3b82f6;
}
.live-pin.blue::before {
  box-shadow: 0 0 0 8px rgba(59, 130, 246, 0.18);
}
.live-pin.green {
  background: #10b981;
}
.live-pin.green::before {
  box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.18);
}
.live-map-overlay {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.live-map-card {
  padding: 12px 14px;
  border-radius: var(--radius-xl);
  background: rgba(4, 5, 13, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.live-map-card strong {
  display: block;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.live-story-strip {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding-bottom: 10px;
}
.live-story {
  flex: 0 0 220px;
  min-width: 220px;
  border-radius: var(--radius-xl);
  padding: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.live-story h4 {
  margin: 0 0 10px;
  font-size: 0.95rem;
}
.live-story small {
  display: block;
  color: var(--text-muted);
  margin-top: 8px;
}
.live-event-radar {
  display: grid;
  gap: 14px;
}
.live-event-card,
.live-group-card,
.live-suggest-card,
.live-place-card {
  padding: 16px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.live-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.live-card-title strong {
  font-size: 1rem;
}
.live-card-details {
  display: grid;
  gap: 10px;
}
.live-card-details span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.85rem;
}
.live-card-details .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.live-card-button {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-full);
  background: var(--gradient-brand);
  color: #000;
  font-weight: 800;
}
.live-card-button:hover {
  opacity: 0.95;
}
.live-group-list,
.live-suggest-list,
.live-place-list {
  display: grid;
  gap: 14px;
}
.live-group-card {
  display: grid;
  gap: 12px;
}
.live-group-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.live-group-meta span {
  color: var(--text-secondary);
  font-size: 0.85rem;
}
.live-notification-list {
  display: grid;
  gap: 12px;
}
.live-notification-item {
  padding: 14px 16px;
  border-radius: var(--radius-xl);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.16);
  color: var(--text-primary);
}
.live-notification-item strong {
  display: block;
  margin-bottom: 4px;
}
.live-footer-note {
  margin-top: 14px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
@keyframes ping {
  0% {
    transform: scale(0.8);
    opacity: 0.7;
  }
  80% {
    transform: scale(1.7);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
@media (max-width: 1050px) {
  .live-hero,
  .live-grid {
    grid-template-columns: 1fr;
  }
  .live-map-overlay {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .live-page {
    padding-top: 96px;
  }
  .live-hero-card,
  .live-card,
  .live-panel,
  .live-widget {
    padding: 20px;
  }
  .live-story {
    min-width: 190px;
  }
}
.form-select {
  width: 100%;
  background: var(--bg-elevated);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2394a3b8'%3E%3Cpath d='M7 10l5 5 5-5H7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 40px;
}
.form-select:focus {
  border-color: var(--green);
  background-color: var(--bg-hover);
  box-shadow: 0 0 0 3px var(--green-muted);
}
.form-select option {
  background: var(--bg-card);
}
.form-textarea {
  width: 100%;
  background: var(--bg-elevated);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
  resize: vertical;
  min-height: 100px;
}
.form-textarea:focus {
  border-color: var(--green);
  background: var(--bg-hover);
  box-shadow: 0 0 0 3px var(--green-muted);
}
.form-textarea::placeholder {
  color: var(--text-muted);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
}
.upload-zone {
  border: 2px dashed var(--border-emphasis);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg-elevated);
}
.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--green);
  background: var(--green-muted);
}
.upload-zone-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  color: var(--text-muted);
}
.upload-zone p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.upload-zone span {
  color: var(--green);
  font-weight: 600;
}
.tag-input-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  background: var(--bg-elevated);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  min-height: 46px;
  align-items: flex-start;
  cursor: text;
}
.tag-input-container:focus-within {
  border-color: var(--green);
}
.tag-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 12px;
  background: var(--green-muted);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--green-light);
  font-weight: 500;
}
.tag-chip button {
  background: none;
  border: none;
  color: var(--green);
  cursor: pointer;
  line-height: 1;
  font-size: 0.9rem;
  padding: 0;
}
.tag-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 0.875rem;
  color: var(--text-primary);
  padding: 4px;
  min-width: 120px;
}
.category-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.cat-option {
  padding: 12px 10px;
  background: var(--bg-elevated);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.cat-option:hover {
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--text-primary);
}
.cat-option.selected {
  border-color: var(--green);
  background: var(--green-muted);
  color: var(--green-light);
}
.cat-option .cat-icon {
  font-size: 1.3rem;
  margin-bottom: 6px;
  display: block;
}
.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  gap: 16px;
}

/* ======================== MAP PAGE ======================== */
.map-page-layout {
  display: flex;
  height: 100vh;
  padding-top: 68px;
  overflow: hidden;
}
.map-sidebar {
  width: 380px;
  flex-shrink: 0;
  background: var(--bg-1);
  border-right: 1px solid var(--border-subtle);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.map-sidebar-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  background: var(--bg-1);
  z-index: 10;
}
.map-sidebar-header h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.map-search {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.map-search input {
  flex: 1;
  background: none;
  border: none;
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 0.85rem;
  outline: none;
}
.map-search button {
  padding: 10px 14px;
  color: var(--text-muted);
  transition: var(--transition);
}
.map-search button:hover {
  color: var(--green);
}
.map-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-subtle);
}
.map-chip {
  padding: 5px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}
.map-chip.active,
.map-chip:hover {
  background: var(--green-muted);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--green-light);
}
.map-results {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}
.map-result-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}
.map-result-card:hover,
.map-result-card.active {
  background: var(--bg-elevated);
  border-color: var(--border);
}
.map-result-card.active {
  border-color: rgba(16, 185, 129, 0.3);
}
.map-result-img {
  width: 80px;
  height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-elevated);
}
.map-result-info {
  flex: 1;
  min-width: 0;
}
.map-result-name {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.map-result-cat {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.map-result-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.map-container {
  flex: 1;
  position: relative;
}
#map {
  width: 100%;
  height: 100%;
}

/* ======================== DASHBOARD ======================== */
.dashboard-page {
  display: flex;
  min-height: 100vh;
  padding-top: 68px;
}
.dashboard-nav {
  width: 240px;
  flex-shrink: 0;
  background: var(--bg-1);
  border-right: 1px solid var(--border-subtle);
  padding: 24px 12px;
  position: sticky;
  top: 68px;
  height: calc(100vh - 68px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.dash-nav-section {
  margin-bottom: 24px;
}
.dash-nav-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  padding: 0 12px;
  margin-bottom: 8px;
}
.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.dash-nav-item i {
  width: 16px;
  text-align: center;
  font-size: 0.9rem;
}
.dash-nav-item:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
}
.dash-nav-item.active {
  color: var(--green);
  background: var(--green-muted);
}
.dash-nav-item.active i {
  color: var(--green);
}
.dash-nav-badge {
  margin-left: auto;
  background: var(--green);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.dash-upgrade-btn {
  margin-top: auto;
  padding: 14px;
  background: linear-gradient(
    135deg,
    rgba(245, 158, 11, 0.1),
    rgba(239, 68, 68, 0.1)
  );
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.dash-upgrade-btn:hover {
  border-color: rgba(245, 158, 11, 0.4);
}
.dash-upgrade-btn .upgrade-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gold);
  margin-bottom: 4px;
}
.dash-upgrade-btn .upgrade-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
}
.dash-upgrade-btn .upgrade-price {
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.dashboard-content {
  flex: 1;
  padding: 32px;
  overflow-y: auto;
  background: var(--bg-0);
}
.dash-header {
  margin-bottom: 32px;
}
.dash-header h1 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.dash-header p {
  color: var(--text-secondary);
  margin-top: 4px;
  font-size: 0.875rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: var(--transition);
}
.stat-card:hover {
  border-color: var(--border-emphasis);
  transform: translateY(-2px);
}
.stat-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.stat-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.stat-card-icon.green {
  background: var(--green-muted);
  color: var(--green);
}
.stat-card-icon.blue {
  background: var(--blue-muted);
  color: var(--blue);
}
.stat-card-icon.gold {
  background: var(--gold-muted);
  color: var(--gold);
}
.stat-card-icon.red {
  background: var(--red-muted);
  color: var(--red);
}
.stat-card-change {
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 3px;
}
.stat-card-change.up {
  color: var(--green);
}
.stat-card-change.down {
  color: var(--red);
}
.stat-value {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.dash-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
}
.dash-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.dash-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.dash-card-header h3 {
  font-size: 0.95rem;
  font-weight: 700;
}
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.activity-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.activity-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.activity-body {
  flex: 1;
}
.activity-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.activity-text strong {
  color: var(--text-primary);
  font-weight: 600;
}
.activity-time {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 3px;
}
.profile-completion {
}
.completion-bar {
  height: 8px;
  background: var(--bg-elevated);
  border-radius: 4px;
  overflow: hidden;
  margin: 12px 0;
}
.completion-fill {
  height: 100%;
  background: var(--gradient-brand);
  border-radius: 4px;
  transition: width 1s ease;
}
.completion-tasks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}
.completion-task {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
}
.completion-task i {
  font-size: 0.85rem;
}
.completion-task.done {
  color: var(--green);
}
.completion-task.todo {
  color: var(--text-muted);
}
.premium-banner {
  background: linear-gradient(
    135deg,
    rgba(245, 158, 11, 0.08) 0%,
    rgba(239, 68, 68, 0.05) 100%
  );
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-top: 16px;
}
.premium-banner .premium-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.premium-banner h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.premium-banner p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.5;
}
.premium-features {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.premium-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.premium-feature i {
  color: var(--gold);
  font-size: 0.75rem;
}

/* ======================== UTILITIES ======================== */
.text-green {
  color: var(--green);
}
.text-blue {
  color: var(--blue);
}
.text-gold {
  color: var(--gold);
}
.text-red {
  color: var(--red);
}
.text-muted {
  color: var(--text-muted);
}
.text-secondary {
  color: var(--text-secondary);
}
.text-center {
  text-align: center;
}
.font-bold {
  font-weight: 700;
}
.font-semibold {
  font-weight: 600;
}
.mt-4 {
  margin-top: 4px;
}
.mt-8 {
  margin-top: 8px;
}
.mt-12 {
  margin-top: 12px;
}
.mt-16 {
  margin-top: 16px;
}
.mt-24 {
  margin-top: 24px;
}
.flex {
  display: flex;
}
.items-center {
  align-items: center;
}
.gap-8 {
  gap: 8px;
}
.gap-12 {
  gap: 12px;
}
.gap-16 {
  gap: 16px;
}
.hidden {
  display: none !important;
}
.divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 24px 0;
}
.shimmer {
  background: linear-gradient(
    90deg,
    var(--bg-card) 25%,
    var(--bg-elevated) 50%,
    var(--bg-card) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.assistant-page {
  padding: 110px 20px 80px;
  max-width: 1320px;
  margin: 0 auto;
}
.assistant-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  margin-bottom: 28px;
}
.assistant-hero-card,
.assistant-panel,
.assistant-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.assistant-hero-card h1 {
  margin: 0;
  font-size: 2.2rem;
  line-height: 1.05;
}
.assistant-hero-card p {
  margin: 0;
  color: var(--text-secondary);
  max-width: 720px;
}
.assistant-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.assistant-user-preview {
  display: flex;
  gap: 14px;
  align-items: center;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.16);
  padding: 16px;
  border-radius: var(--radius-xl);
}
.assistant-user-preview img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
}
.assistant-user-preview .user-details {
  display: grid;
  gap: 4px;
}
.assistant-grid {
  display: grid;
  grid-template-columns: 1.75fr 1fr;
  gap: 24px;
  align-items: start;
}
.assistant-card + .assistant-card,
.assistant-panel + .assistant-panel {
  margin-top: 20px;
}
.assistant-card-header,
.assistant-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.assistant-card-title,
.assistant-panel-title {
  font-size: 1rem;
  font-weight: 800;
}
.assistant-card-description {
  color: var(--text-secondary);
  font-size: 0.92rem;
}
.assistant-messages {
  min-height: 420px;
  max-height: 520px;
  overflow: auto;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.assistant-message {
  max-width: 92%;
  line-height: 1.65;
  padding: 14px 16px;
  border-radius: var(--radius-xl);
  position: relative;
}
.assistant-message.assistant {
  align-self: flex-start;
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.assistant-message.user {
  align-self: flex-end;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.22);
  color: var(--text-primary);
}
.assistant-message small {
  display: block;
  color: var(--text-muted);
  margin-top: 8px;
  font-size: 0.78rem;
}
.assistant-chip-row,
.assistant-selector-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.assistant-chip,
.assistant-selector {
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}
.assistant-chip.active,
.assistant-selector.active {
  color: var(--text-primary);
  background: var(--green);
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: var(--shadow-green);
}
.assistant-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  margin-top: 16px;
}
.assistant-input-row textarea {
  width: 100%;
  min-height: 88px;
  resize: vertical;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-primary);
  padding: 16px;
  font-size: 0.95rem;
  outline: none;
}
.assistant-input-row button {
  min-width: 160px;
}
.assistant-plan-preview {
  background: rgba(59, 130, 246, 0.08);
  border: 1px dashed rgba(59, 130, 246, 0.18);
  border-radius: var(--radius-xl);
  padding: 18px;
  color: var(--text-secondary);
  min-height: 180px;
  white-space: pre-wrap;
}
.assistant-summary-list {
  display: grid;
  gap: 14px;
}
.assistant-summary-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
}
.assistant-summary-item strong {
  color: var(--text-primary);
}
.assistant-recommendation-list {
  display: grid;
  gap: 12px;
}
.assistant-recommendation-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 16px;
  background: var(--bg-elevated);
}
.assistant-recommendation-card small {
  color: var(--text-muted);
}
.assistant-plan-list {
  display: grid;
  gap: 14px;
}
.assistant-plan-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 16px;
  background: var(--bg-elevated);
}
.assistant-plan-card header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.assistant-plan-card h4 {
  margin: 0;
  font-size: 0.98rem;
}
.assistant-plan-card p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 0.88rem;
}
.assistant-plan-card button {
  font-size: 0.78rem;
  padding: 8px 12px;
}
.assistant-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-size: 0.78rem;
}
.assistant-note {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 8px;
}
.assistant-panel .metric {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.assistant-panel .metric strong {
  color: var(--text-primary);
}
@media (max-width: 1024px) {
  .assistant-grid {
    grid-template-columns: 1fr;
  }
  .assistant-hero {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 680px) {
  .assistant-page {
    padding-top: 96px;
  }
  .assistant-input-row {
    grid-template-columns: 1fr;
  }
}

/* ======================== ANIMATIONS ======================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes pulse-green {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.3);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
}
.animate-fade-up {
  animation: fadeInUp 0.5s ease forwards;
}
.animate-fade-in {
  animation: fadeIn 0.4s ease forwards;
}
.pulse {
  animation: pulse-green 2s infinite;
}

/* ======================== SCROLLBAR ======================== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-1);
}
::-webkit-scrollbar-thumb {
  background: var(--border-emphasis);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ======================== GLOBAL POLISH ======================== */

/* Consistent focus rings */
*:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-radius: 4px;
}
button:focus-visible,
a:focus-visible {
  outline-offset: 3px;
}

/* Consistent empty states */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}
.empty-state i {
  font-size: 2.2rem;
  margin-bottom: 14px;
  display: block;
  opacity: 0.4;
}
.empty-state h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.empty-state p {
  font-size: 0.84rem;
  line-height: 1.6;
  max-width: 320px;
  margin: 0 auto;
}

/* Consistent badge sizing */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

/* Link underline accessibility */
main a:not([class]):hover {
  text-decoration: underline;
  text-decoration-color: var(--green);
  text-underline-offset: 3px;
}

/* Prevent overflow on mobile containers */
@media (max-width: 768px) {
  .container,
  .container-wide {
    overflow-x: hidden;
  }
  /* Ensure modals/overlays don't overflow */
  .modal-content,
  .drawer-content,
  .sheet-content {
    max-width: 100vw;
    border-radius: 16px 16px 0 0;
  }
  /* FAB + demo-fab don't overlap bottom nav */
  .demo-fab {
    bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
  }
  /* Cards don't overflow on narrow screens */
  .card, .listing-card, .place-card, .event-card, .group-card {
    min-width: 0;
    word-break: break-word;
  }
}

/* Consistent skeleton loader */
.skeleton {
  background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--bg-hover) 50%, var(--bg-elevated) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.4s infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeletonShimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* Improve alt text image placeholders */
img[alt]:not([src]),
img[src=""] {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-size: 0.75rem;
  min-height: 80px;
}

/* Prevent text selection on interactive UI elements */
.app-bottom-nav,
.app-fab,
.app-action-sheet,
.demo-fab {
  user-select: none;
  -webkit-user-select: none;
}

/* Smooth color transitions on interactive elements */
a, button, .btn, .card, .listing-card {
  transition-property: color, background-color, border-color, box-shadow, transform, opacity;
  transition-duration: 0.2s;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ======================== LEAFLET OVERRIDES ======================== */
.leaflet-container {
  background: var(--bg-2);
}
.leaflet-popup-content-wrapper {
  background: var(--bg-card) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-lg) !important;
}
.leaflet-popup-tip {
  background: var(--bg-card) !important;
}
.leaflet-control-zoom a {
  background: var(--bg-card) !important;
  color: var(--text-primary) !important;
  border-color: var(--border) !important;
}
.leaflet-control-zoom a:hover {
  background: var(--bg-elevated) !important;
}

/* ======================== RESPONSIVE ======================== */
@media (max-width: 1100px) {
  .destinations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .destination-card.featured {
    grid-column: 1 / 3;
  }
  .how-it-works-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .product-loop-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 900px) {
  .explore-layout {
    grid-template-columns: 1fr;
  }
  .filters-panel {
    position: static;
  }
  .profile-layout {
    grid-template-columns: 1fr;
  }
  .dash-grid {
    grid-template-columns: 1fr;
  }
  .profile-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: 300px;
  }
  .gallery-main {
    grid-row: auto;
    border-radius: var(--radius-xl);
  }
  .gallery-thumb {
    display: none;
  }
  .map-page-layout {
    flex-direction: column;
  }
  .map-sidebar {
    width: 100%;
    height: 50vh;
  }
  .map-container {
    height: 50vh;
  }
  .dashboard-page {
    flex-direction: column;
  }
  .dashboard-nav {
    width: 100%;
    height: auto;
    position: static;
    flex-direction: row;
    overflow-x: auto;
    padding: 12px;
    gap: 4px;
  }
  .dash-nav-section {
    display: flex;
    gap: 4px;
    margin-bottom: 0;
  }
  .dash-nav-label {
    display: none;
  }
  .dash-upgrade-btn {
    display: none;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  .section {
    padding: 60px 0;
  }
  .navbar-links,
  .navbar-actions {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .hero-stats {
    gap: 24px;
  }
  .hero-stat-value {
    font-size: 1.4rem;
  }
  .search-bar {
    flex-direction: column;
    border-radius: var(--radius-lg);
    gap: 4px;
    padding: 8px;
  }
  .search-select {
    width: 100%;
  }
  .search-divider {
    width: 100%;
    height: 1px;
    margin: 0;
  }
  .search-btn {
    width: 100%;
    justify-content: center;
  }
  .search-input {
    width: 100%;
  }
  .categories-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  .listings-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
  .destinations-grid {
    grid-template-columns: 1fr;
  }
  .destination-card.featured {
    grid-column: auto;
    min-height: 280px;
  }
  .how-it-works-grid {
    grid-template-columns: 1fr;
  }
  .product-loop-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cta-section {
    padding: 40px 24px;
  }
  .profile-gallery {
    grid-template-rows: 200px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .category-selector {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .cta-actions {
    flex-direction: column;
  }
  .form-footer {
    flex-direction: column;
  }
}


/* ── AUTH SYSTEM — Modals, Forms, Shared ── */
/* ── Login Required + Settings Modals ── */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.auth-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.auth-modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 380px;
  width: 100%;
  position: relative;
  text-align: center;
  animation: authModalUp 0.28s cubic-bezier(0.34,1.2,0.64,1);
}
.auth-modal-card.settings-card {
  max-width: 540px;
  text-align: left;
  max-height: 88vh;
  overflow-y: auto;
}
@keyframes authModalUp {
  from { transform: translateY(20px) scale(0.97); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.auth-modal-icon {
  width: 56px; height: 56px;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: var(--red);
  margin: 0 auto 16px;
}
.auth-modal-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.auth-modal-card h3 i { margin-right: 8px; color: var(--text-muted); font-size: 1rem; }
.auth-modal-card > p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 24px;
  line-height: 1.5;
}
.auth-modal-btns {
  display: flex; gap: 10px; justify-content: center;
}
.auth-modal-btn {
  padding: 10px 24px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.auth-modal-close {
  position: absolute;
  top: 12px; right: 12px;
  background: none; border: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
  line-height: 1;
}
.auth-modal-close:hover { background: var(--bg-elevated); color: var(--text-primary); }

/* ── Shared Form Elements (auth page + settings modal) ── */
.auth-form-group {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 16px;
}
.auth-form-group label, .auth-form-group .auth-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.auth-form-group input,
.auth-form-group textarea,
.auth-form-group select {
  background: var(--bg-elevated);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  box-sizing: border-box;
}
.auth-form-group input:focus,
.auth-form-group textarea:focus,
.auth-form-group select:focus { border-color: var(--green); }
.auth-form-group textarea {
  min-height: 72px;
  resize: vertical;
  line-height: 1.5;
}
.auth-form-group select { cursor: pointer; }
.auth-form-group select option { background: var(--bg-card); }
.auth-form-row-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
@media (max-width: 480px) { .auth-form-row-2 { grid-template-columns: 1fr; } }
.settings-save-row {
  display: flex; align-items: center; gap: 16px; margin-top: 8px;
}
.settings-success {
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex; align-items: center; gap: 6px;
}
.auth-input-wrap {
  position: relative;
}
.auth-input-wrap input { padding-right: 44px; }
.auth-eye-btn {
  position: absolute;
  right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  font-size: 0.85rem;
  transition: color 0.15s;
}
.auth-eye-btn:hover { color: var(--text-primary); }

/* ── Interest chips (shared — used in onboarding + settings) ── */
.ob-interest-chip {
  padding: 7px 14px;
  background: var(--bg-elevated);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s;
  font-family: inherit;
}
.ob-interest-chip:hover { border-color: var(--green); color: var(--text-primary); }
.ob-interest-chip.selected {
  background: var(--green-muted);
  border-color: var(--green);
  color: var(--green-light);
}
.ob-interest-grid {
  display: flex; flex-wrap: wrap; gap: 8px;
}

/* ── Forgot password mini-modal ── */
.forgot-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 340px;
  width: 100%;
  position: relative;
  animation: authModalUp 0.28s ease;
}
.forgot-card h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.forgot-card p { color: var(--text-secondary); font-size: 0.85rem; margin-bottom: 20px; line-height: 1.5; }
.forgot-success {
  color: var(--green);
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  padding: 12px;
  background: var(--green-muted);
  border-radius: var(--radius-sm);
  display: none;
}

/* ── Mobile bottom nav auth avatar ── */
.app-nav-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--green);
  display: block;
}


/* Performance hotfix: reduce expensive effects on low-power/mobile devices */
@media (max-width: 768px), (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  .gh-live-stats, .glass, .card, .modal, .dropdown, .nav, .mobile-menu, .clean-card, .clean-stat {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}
img { content-visibility: auto; }
