/*
 * Outdoor Buddy — Alpine Tech Design System
 * Light mode luxury outdoor-tech aesthetic
 * v3.2 — Bright & Refined
 */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Outfit:wght@400;500;600;700&display=swap');

/* ============================================================
   CSS Custom Properties — "Alpine Light" Palette
   ============================================================ */
:root {
  /* Base surfaces — light gray-green */
  --bg-deep:       #1e2a22;
  --bg-base:       #e8ede5;
  --bg-elevated:   #eef2eb;
  --bg-glass:      rgba(238, 242, 235, 0.88);
  --bg-card:       #f4f7f2;
  --bg-input:      #ffffff;

  /* Accent colors — rich and vibrant */
  --amber:         #d47820;
  --amber-glow:    #e8983e;
  --amber-dim:     rgba(212, 120, 32, 0.10);
  --teal:          #2ea898;
  --teal-glow:     #45c4b2;
  --teal-dim:      rgba(46, 168, 152, 0.10);
  --ice:           #3a8ca8;
  --ice-dim:       rgba(58, 140, 168, 0.10);
  --aurora:        #4a8c5a;
  --aurora-dim:    rgba(74, 140, 90, 0.10);
  --rose:          #c06860;
  --rose-dim:      rgba(192, 104, 96, 0.10);
  --danger:        #d0443a;

  /* Legacy aliases — for inline styles in HTML */
  --sage:          #88998b;
  --deep-forest:   #1a241e;
  --primary:       #2ea898;
  --sand:          rgba(0, 0, 0, 0.08);
  --warm-stone:    #eef2eb;
  --info:          #3a8ca8;

  /* Text — dark on light */
  --text-primary:   #1a241e;
  --text-secondary: #5a6b5e;
  --text-muted:     #88998b;

  /* Borders */
  --border-subtle:  rgba(0, 0, 0, 0.06);
  --border-card:    rgba(0, 0, 0, 0.08);
  --border-active:  rgba(0, 0, 0, 0.12);
  --border-glow:    rgba(212, 120, 32, 0.22);
  --border-teal:    rgba(46, 168, 152, 0.18);

  /* Shadows */
  --shadow-sm:      0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-card:    0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-elevated: 0 8px 28px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
  --shadow-glow:    0 0 24px rgba(212, 120, 32, 0.10);
  --shadow-teal:    0 0 20px rgba(46, 168, 152, 0.08);
  --shadow-button:  0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(212, 120, 32, 0.15);

  /* Layout */
  --sidebar-w: 248px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  /* Transitions */
  --transition: 200ms cubic-bezier(.4, 0, .2, 1);
  --transition-slow: 300ms cubic-bezier(.16, 1, .3, 1);
  --transition-bounce: 400ms cubic-bezier(.34, 1.56, .64, 1);

  /* Focus */
  --focus-ring: 0 0 0 3px rgba(212, 120, 32, 0.25);
  --focus-ring-teal: 0 0 0 3px rgba(46, 168, 152, 0.22);
}

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

html {
  font-size: 15px;
  background: var(--bg-base);
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--text-primary);
  background:
    radial-gradient(ellipse at 80% 0%, rgba(46, 168, 152, 0.06), transparent 50%),
    radial-gradient(ellipse at 20% 100%, rgba(212, 120, 32, 0.04), transparent 40%),
    var(--bg-base);
  display: flex;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: auto;
  text-rendering: optimizeLegibility;
}

button:focus-visible, a:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* ============================================================
   Scrollbar
   ============================================================ */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.20); }
* { scrollbar-width: thin; scrollbar-color: rgba(0,0,0,0.12) transparent; }

/* ============================================================
   Sidebar — Premium Dark
   ============================================================ */
.sidebar {
  width: var(--sidebar-w);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(46, 168, 152, 0.10), transparent 60%),
    linear-gradient(180deg, #1a2a20 0%, #15241b 50%, #111f17 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 100;
  padding: 0;
  overflow-y: auto;
  border-right: 1px solid rgba(255,255,255,0.06);
}

.sidebar-brand {
  padding: 28px 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}
.sidebar-brand::after {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(232,152,62,0.12), transparent 70%);
  pointer-events: none;
}
.sidebar-brand .logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
  font-weight: 600;
}
.sidebar-brand .logo svg {
  width: 30px; height: 30px;
  fill: var(--amber-glow);
  filter: drop-shadow(0 0 10px rgba(232,152,62,0.5));
}
.sidebar-brand .subtitle {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.45);
  margin-top: 5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
}

/* Sidebar navigation */
.sidebar-nav { padding: 12px 10px; flex: 1; }
.sidebar-nav .nav-section {
  font-size: 0.60rem;
  color: rgba(255,255,255,0.32);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 16px 14px 8px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-nav .nav-section::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.06);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.84rem;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  margin-bottom: 2px;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: 'Inter', sans-serif;
  position: relative;
}
.nav-item::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 0;
  background: var(--amber-glow);
  border-radius: 0 3px 3px 0;
  transition: height var(--transition);
  will-change: height;
}
.nav-item:hover {
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.85);
  transform: translateX(2px);
}
.nav-item:hover::before { height: 50%; }
.nav-item.active {
  background: linear-gradient(90deg, rgba(232,152,62,0.12), rgba(232,152,62,0.04) 60%, transparent);
  color: #fff;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(232,152,62,0.15);
  transform: translateX(0);
}
.nav-item.active::before {
  height: 75%;
  background: var(--amber-glow);
  box-shadow: 0 0 10px rgba(232,152,62,0.6), 0 0 20px rgba(232,152,62,0.3);
}
.nav-item .nav-icon {
  font-size: 1.05rem;
  width: 26px;
  text-align: center;
  flex-shrink: 0;
  transition: all var(--transition);
  opacity: 0.65;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-item:hover .nav-icon { opacity: 0.9; }
.nav-item.active .nav-icon {
  opacity: 1;
  color: var(--amber-glow);
  filter: drop-shadow(0 0 8px rgba(232,152,62,0.5));
}

.nav-item .nav-badge {
  margin-left: auto;
  background: var(--amber-glow);
  color: #1a241e;
  font-size: 0.60rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  box-shadow: 0 0 8px rgba(232,152,62,0.3);
}

.nav-item .nav-badge {
  margin-left: auto;
  background: var(--amber-glow);
  color: #1a241e;
  font-size: 0.62rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
}

/* Sidebar footer */
.sidebar-footer {
  padding: 14px 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin: 0 4px;
}
.sidebar-footer .user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.85);
  border-radius: var(--radius);
  transition: background var(--transition);
}
.sidebar-footer .user-info:hover {
  background: rgba(255,255,255,0.04);
}
.sidebar-footer .user-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--amber-glow));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  box-shadow: 0 0 16px rgba(232,152,62,0.3);
  flex-shrink: 0;
}

/* ============================================================
   Main Content Area
   ============================================================ */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============================================================
   Hero Section — Dark Green + Gradient
   ============================================================ */
.hero, .hero-enhanced {
  position: relative;
  background:
    radial-gradient(ellipse at 70% 20%, rgba(46, 168, 152, 0.14), transparent 50%),
    radial-gradient(ellipse at 30% 80%, rgba(212, 120, 32, 0.10), transparent 40%),
    linear-gradient(160deg, #1a2a20 0%, #15241b 50%, #111f17 100%);
  padding: 56px 48px;
  overflow: hidden;
  min-height: 240px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(0,0,0,0.15);
}
.hero::after, .hero-enhanced::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17,31,23,0.3), transparent 50%),
    radial-gradient(circle at 75% 30%, rgba(46,168,152,0.08), transparent 35%);
  pointer-events: none;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  opacity: 0.25;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}
.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
  font-weight: 600;
}
.hero-content h1 span {
  background: linear-gradient(135deg, var(--amber-glow), #f5c080);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-content p {
  color: rgba(255,255,255,0.72);
  font-size: 0.98rem;
  max-width: 560px;
  line-height: 1.6;
}

/* Hero stats */
.hero-stats { display: flex; gap: 32px; margin-top: 24px; }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat .hs-val {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--amber-glow);
  font-weight: 600;
  text-shadow: 0 0 28px rgba(232,152,62,0.40);
}
.hero-stat .hs-label {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
}

/* Hero search */
.hero-search {
  margin-top: 22px;
  display: flex;
  gap: 0;
  background: rgba(255,255,255,0.10);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 460px;
  border: 1px solid rgba(255,255,255,0.12);
  transition: all var(--transition);
}
.hero-search:focus-within {
  border-color: var(--amber-glow);
  box-shadow: 0 0 24px rgba(232,152,62,0.12);
}
.hero-search input {
  flex: 1;
  padding: 12px 18px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  font-family: inherit;
}
.hero-search input::placeholder { color: rgba(255,255,255,0.30); }
.hero-search button {
  padding: 12px 22px;
  background: linear-gradient(135deg, var(--amber), var(--amber-glow));
  border: none;
  color: #1a241e;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all var(--transition);
  font-family: inherit;
}
.hero-search button:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 24px rgba(232,152,62,0.30);
}

/* ============================================================
   Page Header
   ============================================================ */
.page-header {
  padding: 32px 48px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.page-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.65rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  font-weight: 600;
}

/* ============================================================
   Cards
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
  padding: 20px 48px;
}
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 22px;
  border: 1px solid var(--border-card);
  transition: all var(--transition-slow);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--transition-slow);
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, rgba(212,120,32,0.06), transparent 70%);
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-elevated);
}
.card:hover::before { opacity: 1; }

.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 12px;
  font-weight: 600;
}
.card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.card-tag {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(0,0,0,0.03);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  font-family: 'Outfit', sans-serif;
}
.card-tag.highlight {
  background: var(--amber-dim);
  color: var(--amber);
  border-color: rgba(212,120,32,0.2);
}
.card-tag.amber { background: var(--amber-dim); color: var(--amber); border: none; }
.card-tag.teal { background: var(--teal-dim); color: var(--teal); border: none; }
.card-tag.ice { background: var(--ice-dim); color: var(--ice); border: none; }

/* Glass card */
.card-glass {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0,0,0,0.06);
}

/* ============================================================
   Feature Cards — Home Page
   ============================================================ */
.feature-section { padding: 0 48px; margin-bottom: 36px; }
.feature-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 18px;
  font-weight: 600;
}
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border: 1px solid var(--border-card);
  transition: all var(--transition-slow);
  cursor: pointer;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.feature-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
  opacity: 0;
  transition: opacity var(--transition-slow);
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-elevated);
}
.feature-card:hover::after { opacity: 1; }
.feature-card .fc-icon {
  font-size: 2.5rem;
  margin-bottom: 14px;
  display: block;
}
.feature-card .fc-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 8px;
  font-weight: 600;
}
.feature-card .fc-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 500;
  background: var(--teal-dim);
  color: var(--teal);
  font-family: 'Outfit', sans-serif;
  border: 1px solid rgba(46,168,152,0.12);
  margin: 4px;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  font-family: inherit;
  text-decoration: none;
  white-space: nowrap;
  min-height: 38px;
  justify-content: center;
}
.btn-primary {
  background: linear-gradient(135deg, var(--teal), #259080);
  color: #fff;
  box-shadow: 0 2px 8px rgba(46,168,152,0.18);
}
.btn-primary:hover:not(:disabled) {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(46,168,152,0.28);
}
.btn-amber {
  background: linear-gradient(135deg, var(--amber), var(--amber-glow));
  color: #fff;
  font-weight: 600;
  box-shadow: var(--shadow-button);
}
.btn-amber:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(212,120,32,0.30);
}
.btn-outline {
  background: transparent;
  border: 1px solid rgba(0,0,0,0.15);
  color: var(--text-secondary);
}
.btn-outline:hover:not(:disabled) {
  background: rgba(0,0,0,0.03);
  color: var(--text-primary);
  border-color: rgba(0,0,0,0.25);
}
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: none;
}
.btn-ghost:hover:not(:disabled) {
  color: var(--text-primary);
  background: rgba(0,0,0,0.03);
}
.btn-sm { padding: 6px 14px; font-size: 0.78rem; min-height: 32px; }
.btn-block { width: 100%; justify-content: center; }

.btn:disabled, .btn[disabled] {
  opacity: 0.40;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
  box-shadow: none !important;
  filter: none !important;
}
.btn:active:not(:disabled) { transform: scale(0.97) !important; }

/* ============================================================
   Forms
   ============================================================ */
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: 'Outfit', sans-serif;
}
.form-input {
  padding: 10px 14px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: inherit;
  background: var(--bg-input);
  color: var(--text-primary);
  transition: all var(--transition);
  outline: none;
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(212,120,32,0.10);
}
.form-input:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: rgba(0,0,0,0.02);
}

.form-select {
  padding: 10px 34px 10px 14px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: inherit;
  background: var(--bg-input);
  color: var(--text-primary);
  outline: none;
  cursor: pointer;
  transition: all var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2388998b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.form-select:focus {
  border-color: var(--teal);
  box-shadow: var(--focus-ring-teal);
}

/* ============================================================
   Route Detail Grid
   ============================================================ */
.route-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.route-stat {
  text-align: center;
  padding: 14px;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
}
.route-stat .stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--amber);
}
.route-stat .stat-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
  font-family: 'Outfit', sans-serif;
}

/* ============================================================
   Ticket Table
   ============================================================ */
.ticket-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; min-width: 600px; }
.ticket-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 2px solid rgba(0,0,0,0.08);
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
}
.ticket-table td { padding: 14px 16px; border-bottom: 1px solid var(--border-subtle); }
.ticket-table tr:hover td { background: rgba(0,0,0,0.015); }
.ticket-table .train-no {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  color: var(--amber);
}
.ticket-table .price {
  font-weight: 600;
  color: var(--teal);
  font-family: 'JetBrains Mono', monospace;
}

/* ============================================================
   Weather Cards
   ============================================================ */
.weather-row { display: flex; gap: 12px; overflow-x: auto; padding: 8px 0; }
.weather-day-card {
  min-width: 110px;
  padding: 14px;
  text-align: center;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
  transition: all var(--transition);
}
.weather-day-card:hover {
  border-color: var(--border-active);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.weather-day-card .day-name {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  font-family: 'Outfit', sans-serif;
}
.weather-day-card .day-icon { font-size: 1.5rem; margin-bottom: 4px; }
.weather-day-card .day-temp {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}
.weather-day-card .day-rain { font-size: 0.7rem; color: var(--ice); margin-top: 4px; }

/* ============================================================
   Chat / QA
   ============================================================ */
.qa-page { position: relative; display: flex; flex-direction: column; height: calc(100vh); overflow: hidden; }
.qa-canvas { position: absolute; inset: 0; z-index: 0; opacity: 0.40; pointer-events: none; }
.chat-area { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: calc(100vh - 400px);
}
.chat-msg {
  max-width: 75%;
  padding: 12px 18px;
  border-radius: 16px;
  font-size: 0.88rem;
  line-height: 1.55;
}
.chat-msg.user {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(212,120,32,0.15), rgba(212,120,32,0.06));
  color: var(--text-primary);
  border-bottom-right-radius: 4px;
  border: 1px solid rgba(212,120,32,0.15);
}
.chat-msg.assistant {
  align-self: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-bottom-left-radius: 4px;
  color: var(--text-primary);
}
.chat-msg .safety-warning {
  margin-top: 10px;
  padding: 8px 12px;
  background: rgba(212,120,32,0.06);
  border-radius: var(--radius);
  font-size: 0.78rem;
  color: var(--amber);
  border-left: 3px solid var(--amber);
}

.chat-input-bar {
  display: flex;
  gap: 10px;
  padding: 16px 48px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(238,242,235,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.chat-input-bar input {
  flex: 1;
  padding: 12px 20px;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 24px;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  background: var(--bg-input);
  color: var(--text-primary);
  transition: all var(--transition);
}
.chat-input-bar input::placeholder { color: var(--text-muted); }
.chat-input-bar input:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(212,120,32,0.08);
}
.chat-input-bar button {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--amber-glow));
  color: #fff;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
  font-weight: 700;
}
.chat-input-bar button:hover:not(:disabled) {
  transform: scale(1.06);
  box-shadow: 0 0 20px rgba(212,120,32,0.25);
}
.chat-input-bar input:disabled { opacity: 0.4; }
.chat-input-bar button:disabled { opacity: 0.3; cursor: not-allowed; transform: none !important; }

/* QA page overrides */
.qa-page .chat-area { flex: 1; display: flex; flex-direction: column; min-height: 0; position: relative; z-index: 1; }
.qa-page .chat-messages { flex: 1; overflow-y: auto; padding: 20px 48px; max-height: none; }
.qa-page .chat-input-bar { position: sticky; bottom: 0; z-index: 2; }

/* ============================================================
   Plan Blocks
   ============================================================ */
.plan-block {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-sm);
}
.plan-block h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.plan-block .content {
  font-size: 0.85rem;
  line-height: 1.75;
  white-space: pre-wrap;
  color: var(--text-secondary);
}

/* ============================================================
   Favorites
   ============================================================ */
.fav-list { display: flex; flex-direction: column; gap: 8px; }
.fav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition);
}
.fav-item:hover { border-color: var(--border-active); }

/* ============================================================
   Chips
   ============================================================ */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 0; }
.chip {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.78rem;
  cursor: pointer;
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.08);
  color: var(--text-secondary);
  transition: all var(--transition);
  font-family: inherit;
}
.chip:hover {
  background: var(--amber-dim);
  color: var(--amber);
  border-color: rgba(212,120,32,0.2);
}

/* ============================================================
   Toast
   ============================================================ */
.toast {
  position: fixed;
  bottom: 30px; right: 30px;
  z-index: 999;
  background: var(--bg-deep);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-elevated);
  animation: slideUp 0.35s cubic-bezier(.34,1.56,.64,1);
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Loading & Skeleton
   ============================================================ */
.loading-pulse {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  padding: 20px;
  font-size: 0.85rem;
}
.loading-pulse::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amber);
  animation: pulse 1s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

.skeleton {
  background: linear-gradient(90deg, rgba(0,0,0,0.04) 25%, rgba(0,0,0,0.08) 50%, rgba(0,0,0,0.04) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 2s ease-in-out infinite;
  border-radius: var(--radius);
}
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-text { height: 14px; margin-bottom: 8px; }
.skeleton-text:last-child { width: 60%; }
.skeleton-card { height: 80px; margin-bottom: 12px; }
.skeleton-avatar { width: 40px; height: 40px; border-radius: 50%; }

/* ============================================================
   Empty State
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
}
.empty-state .empty-icon { font-size: 3.5rem; margin-bottom: 16px; opacity: 0.5; animation: float 3s ease-in-out infinite; }
.empty-state h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 8px;
  font-weight: 600;
}
.empty-state p { font-size: 0.85rem; line-height: 1.6; max-width: 400px; margin: 0 auto; }
.empty-state .empty-hints { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 16px; }
.empty-state .empty-hint {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.78rem;
  cursor: pointer;
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.08);
  color: var(--text-secondary);
  transition: all var(--transition);
  font-family: inherit;
}
.empty-state .empty-hint:hover {
  background: var(--amber-dim);
  color: var(--amber);
  border-color: rgba(212,120,32,0.2);
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ============================================================
   Auth Modal
   ============================================================ */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.auth-card {
  width: 380px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-elevated);
}
.auth-card h2 {
  font-family: 'Playfair Display', serif;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-primary);
  font-weight: 600;
}
.auth-tabs { display: flex; margin-bottom: 20px; gap: 0; }
.auth-tabs button {
  flex: 1;
  padding: 10px;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-bottom: 2px solid var(--border-subtle);
  transition: all var(--transition);
}
.auth-tabs button.active {
  border-bottom-color: var(--amber);
  color: var(--amber);
  font-weight: 600;
}

/* ============================================================
   Glass Panel
   ============================================================ */
.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}

/* ============================================================
   Two Column Layout
   ============================================================ */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 0 48px; }
.action-row { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }

/* ============================================================
   Route Drawer
   ============================================================ */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.25);
  z-index: 140;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.route-drawer {
  position: fixed;
  right: 0; top: 0;
  height: 100vh;
  width: 420px;
  max-width: 90vw;
  background: var(--bg-card);
  z-index: 150;
  border-left: 1px solid var(--border-card);
  box-shadow: -8px 0 40px rgba(0,0,0,0.10);
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  overflow-y: auto;
}
.route-drawer.open { transform: translateX(0); }
.drawer-content { padding: 32px 28px; }
.drawer-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-card);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.drawer-close:hover { background: var(--text-primary); color: #fff; }
.drawer-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-right: 40px;
  font-weight: 600;
}
.drawer-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0; }
.drawer-section { margin-top: 20px; }
.drawer-section h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border-subtle);
  font-weight: 600;
}
.drawer-section p { font-size: 0.85rem; line-height: 1.7; color: var(--text-secondary); }
.drawer-actions {
  display: flex;
  gap: 8px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

/* ============================================================
   Forum
   ============================================================ */
.forum-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 20px;
  overflow-x: auto;
}
.forum-tab {
  padding: 12px 24px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--transition);
  white-space: nowrap;
}
.forum-tab:hover { color: var(--text-primary); }
.forum-tab.active {
  color: var(--amber);
  border-bottom-color: var(--amber);
  font-weight: 600;
}

/* Feed list */
.feed-list { display: flex; flex-direction: column; gap: 0; }
.feed-item {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all var(--transition);
}
.feed-item:hover { background: rgba(0,0,0,0.01); }
.feed-detail-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  border: 1px solid var(--border-card);
}
.feed-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), #45b8a8);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.feed-body { flex: 1; min-width: 0; }
.feed-header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.feed-author { font-weight: 600; font-size: 0.85rem; color: var(--text-primary); }
.feed-cat {
  font-size: 0.62rem;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--teal-dim);
  color: var(--teal);
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
}
.feed-time { font-size: 0.72rem; color: var(--text-muted); }
.feed-content { font-size: 0.88rem; line-height: 1.65; color: var(--text-secondary); word-break: break-word; }
.feed-content p { margin-bottom: 6px; }
.feed-actions { display: flex; gap: 16px; margin-top: 6px; font-size: 0.78rem; color: var(--text-muted); align-items: center; }
.feed-del-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  opacity: 0.4;
  transition: opacity var(--transition);
  padding: 2px 4px;
  color: var(--text-secondary);
}
.feed-del-btn:hover { opacity: 1; color: var(--danger); }

/* Feed images */
.feed-images { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.feed-img {
  width: 100px; height: 100px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid var(--border-subtle);
}
.feed-img:hover {
  transform: scale(1.04);
  border-color: var(--amber);
  box-shadow: 0 0 12px rgba(212,120,32,0.10);
}
.feed-img-more {
  width: 100px; height: 100px;
  border-radius: 8px;
  background: rgba(0,0,0,0.45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.feed-img-more:hover { background: rgba(0,0,0,0.65); }

/* Inline reply */
.feed-inline-reply {
  margin-top: 8px;
  padding: 8px 12px;
  background: var(--bg-elevated);
  border-radius: 6px;
  cursor: pointer;
  transition: background var(--transition);
}
.feed-inline-reply:hover { background: rgba(0,0,0,0.03); }
.inline-reply-author { font-size: 0.78rem; font-weight: 500; color: var(--amber); }
.inline-reply-text { font-size: 0.8rem; color: var(--text-secondary); }
.feed-reply-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 2px 6px;
  transition: color var(--transition);
}
.feed-reply-btn:hover { color: var(--amber); }
.feed-reply-box {
  margin-top: 8px;
  padding: 10px;
  background: var(--bg-elevated);
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}
.feed-expanded-replies {
  margin-top: 4px;
  padding-left: 8px;
  border-left: 2px solid rgba(212,120,32,0.15);
}

/* Reply list */
.reply-list { padding-left: 56px; }
.reply-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-subtle); }
.forum-editor { width: 100%; font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; line-height: 1.6; resize: vertical; }

/* ============================================================
   Lightbox
   ============================================================ */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  cursor: default;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* ============================================================
   Avatar Upload
   ============================================================ */
.avatar-upload-area { cursor: pointer; display: inline-block; }
.avatar-preview {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 2px dashed rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: all var(--transition);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.avatar-upload-area:hover .avatar-preview {
  border-color: var(--amber);
  box-shadow: 0 0 16px rgba(212,120,32,0.12);
}
.avatar-upload-hint { font-size: 0.72rem; color: var(--text-muted); margin-top: 6px; transition: color var(--transition); }
.avatar-upload-area:hover .avatar-upload-hint { color: var(--amber); }

/* ============================================================
   History Items
   ============================================================ */
.history-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.history-item:hover {
  background: rgba(0,0,0,0.03);
  transform: translateX(4px);
  color: var(--text-primary);
}
.history-item .hi-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.history-item .hi-time { font-size: 0.7rem; color: var(--text-muted); margin-left: auto; flex-shrink: 0; }

/* ============================================================
   Markdown
   ============================================================ */
.md-p { margin-bottom: 12px; font-size: 0.85rem; line-height: 1.75; color: var(--text-secondary); }
.md-h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--text-primary);
  margin: 20px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-subtle);
  font-weight: 600;
}
.md-h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--text-primary);
  margin: 16px 0 8px;
  font-weight: 600;
}
.md-h4 { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); margin: 12px 0 6px; }
.md-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  margin: 12px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}
.md-table th {
  background: var(--bg-elevated);
  color: var(--text-primary);
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: 'Outfit', sans-serif;
}
.md-table td { padding: 9px 14px; border-bottom: 1px solid var(--border-subtle); color: var(--text-secondary); }
.md-table tr:last-child td { border-bottom: none; }
.md-table tr:hover td { background: rgba(0,0,0,0.015); }
.md-ul, .md-ol { padding-left: 20px; margin: 8px 0; color: var(--text-secondary); }
.md-ul li, .md-ol li { font-size: 0.85rem; line-height: 1.6; margin-bottom: 4px; }
.md-ul li::marker, .md-ol li::marker { color: var(--amber); }
.md-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  background: rgba(0,0,0,0.04);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--amber);
}
.md-hr { border: none; border-top: 1px solid var(--border-subtle); margin: 16px 0; }
.md-content strong { color: var(--text-primary); font-weight: 600; }
.md-content a { color: var(--teal); }

/* ============================================================
   Glass Section
   ============================================================ */
.glass-section {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: -80px 48px 32px;
  position: relative;
  z-index: 10;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 8px 40px rgba(0,0,0,0.06);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
  .sidebar { width: 60px; }
  .sidebar .nav-item span,
  .sidebar .nav-section,
  .sidebar .subtitle,
  .sidebar .user-info span,
  .sidebar .user-info div div { display: none; }
  .sidebar-brand .logo { font-size: 0; }
  .sidebar-brand .logo svg { width: 24px; height: 24px; }
  .main-content { margin-left: 60px; }
  .hero, .hero-enhanced { padding: 32px 20px; }
  .hero-content h1 { font-size: 1.6rem; }
  .card-grid { grid-template-columns: 1fr; padding: 12px 20px; }
  .page-header { padding: 16px 20px 0; }
  .chat-messages { padding: 12px 20px; }
  .two-col { padding: 0 20px; }
  .forum-tabs { overflow-x: auto; }
  .forum-tab { font-size: 0.75rem; padding: 8px 14px; }
  .route-drawer { width: 100vw; }
  .hero-enhanced .hero-content h1 { font-size: 1.6rem; }
  .glass-section { margin: -40px 20px 20px; padding: 20px; }
  .feature-section { padding: 0 20px; }
}

@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .feature-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.3rem; }
  .hero-content p { font-size: 0.82rem; }
  .hero-stats { gap: 12px; }
  .hero-stat .hs-val { font-size: 1.3rem; }
  .page-header h2 { font-size: 1.3rem; }
  .page-header { padding: 16px 12px 0; }
  .card-grid { padding: 10px 12px; gap: 10px; }
  .card { padding: 16px; }
  .route-detail-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .route-stat { padding: 10px; }
  .route-stat .stat-value { font-size: 1rem; }
  .chat-messages { padding: 10px 12px; }
  .chat-msg { max-width: 90%; font-size: 0.8rem; }
  .chat-input-bar { padding: 10px 12px; }
  .chat-input-bar input { font-size: 0.8rem; padding: 10px 14px; }
  .two-col { padding: 0 12px; gap: 12px; }
  .forum-tab { padding: 8px 10px; font-size: 0.7rem; }
  .feed-item { gap: 10px; padding: 12px 0; }
  .feed-avatar { width: 32px; height: 32px; font-size: 0.7rem; }
  .feed-author { font-size: 0.78rem; }
  .feed-content { font-size: 0.8rem; }
  .toast { bottom: 16px; right: 16px; left: 16px; font-size: 0.78rem; }
  .auth-card { width: 90vw; padding: 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .weather-day-card { min-width: 80px; padding: 10px; }
  .weather-day-card .day-temp { font-size: 0.78rem; }
  .feature-section { padding: 0 12px; }
}

/* ============================================================
   Accessibility
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}