/*
 * ========================================
 *  大学城美食地图 — Light Theme Design System
 *  Clean, Bright, Appetizing UI
 * ========================================
 */

/* ============ CSS Variables ============ */
:root {
  /* Brand Colors */
  --color-primary: #FFD100;
  --color-primary-dim: rgba(255, 209, 0, 0.2);
  --color-accent: #FF6B35;
  --color-accent-dim: rgba(255, 107, 53, 0.15);
  --color-success: #10B981;
  --color-danger: #EF4444;
  --color-pink: #EC4899;
  
  /* Light Theme Colors */
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-surface-hover: #f1f5f9;
  --color-border: #e2e8f0;
  --color-border-active: rgba(255, 107, 53, 0.4);

  /* Typography */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --font: 'Inter', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Soft Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-card: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-popup: 0 12px 32px rgba(0,0,0,0.08);
  --shadow-glow: 0 8px 24px rgba(255, 107, 53, 0.2);

  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============ Reset ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }
body {
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
a { color: inherit; text-decoration: none; }
button { background: none; border: none; color: inherit; font: inherit; cursor: pointer; outline: none; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }

/* ============ Soft Ambient Background ============ */
.bg-light-ambient {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
  background: radial-gradient(circle at top right, rgba(255, 209, 0, 0.05), transparent 40%),
              radial-gradient(circle at bottom left, rgba(255, 107, 53, 0.05), transparent 40%);
}

/* ============ Surface Panel (Sidebar & Modals) ============ */
.surface-panel {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow: var(--shadow-popup);
}

/* ============ SIDEBAR ============ */
.sidebar {
  position: fixed;
  top: 12px; left: 12px; bottom: 12px;
  width: 380px;
  z-index: 500;
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Brand + Language Toggle */
.sidebar-brand {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 18px 12px;
}
.brand-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #fff9e6, #fff0e6);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.5), 0 2px 8px rgba(255, 107, 53, 0.1);
  border: 1px solid rgba(255, 107, 53, 0.1);
}
.brand-text { flex: 1; }
.brand-text h1 { font-size: 1.05rem; font-weight: 800; line-height: 1.2; color: #1e293b; }
.brand-sub { font-size: 0.7rem; color: var(--text-secondary); margin-top: 1px; }

.lang-btn {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: #f1f5f9; border: 1px solid var(--color-border);
  font-size: 0.72rem; font-weight: 800; color: var(--text-secondary);
  transition: all var(--transition);
}
.lang-btn:hover { background: #e2e8f0; color: var(--text-primary); }

/* University Chips */
.uni-selector { padding: 0 18px 10px; }
.uni-chips {
  display: flex; gap: 6px;
  overflow-x: auto; scrollbar-width: none;
}
.uni-chips::-webkit-scrollbar { display: none; }

.uni-chip {
  display: flex; align-items: center; gap: 5px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem; font-weight: 600;
  white-space: nowrap;
  border: 1px solid var(--color-border);
  background: #ffffff;
  color: var(--text-secondary);
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.uni-chip:hover { background: var(--color-surface-hover); color: var(--text-primary); border-color: #cbd5e1; }
.uni-chip.active {
  background: var(--color-primary-dim);
  color: #b45309;
  border-color: var(--color-accent);
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.15);
}
.uni-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }

/* ============ Tab Filter Bar (1 Row) ============ */
.filter-tab-bar {
  display: flex; align-items: center; gap: 4px;
  padding: 0 18px 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.filter-tab-bar::-webkit-scrollbar { display: none; }
.filter-tab {
  display: flex; align-items: center; gap: 3px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem; font-weight: 600;
  white-space: nowrap;
  background: #f1f5f9;
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: all var(--transition);
  flex-shrink: 0;
}
.filter-tab:hover { background: #e2e8f0; color: var(--text-primary); }
.filter-tab.tab-active {
  background: #ffffff;
  color: var(--text-primary);
  border-color: #cbd5e1;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.filter-tab.has-filter {
  background: #fffbeb;
  color: #b45309;
  border-color: #fcd34d;
}
.filter-tab.has-filter.tab-active {
  background: #fef3c7;
  box-shadow: 0 2px 6px rgba(255,209,0,0.15);
}
.filter-tab svg { transition: transform 0.2s; }
.filter-tab.tab-active svg { transform: rotate(180deg); }

.sort-toggle {
  display: flex; gap: 2px;
  background: #f1f5f9;
  border-radius: var(--radius-sm);
  padding: 2px;
  margin-left: auto;
  flex-shrink: 0;
}
.sort-btn {
  padding: 4px 8px; font-size: 0.7rem;
  border-radius: calc(var(--radius-sm) - 2px);
  color: var(--text-secondary);
  transition: all var(--transition);
  white-space: nowrap;
}
.sort-btn:hover { color: var(--text-primary); }
.sort-btn.active {
  background: #ffffff;
  color: var(--text-primary);
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Filter Dropdown Panel */
.filter-dropdown {
  padding: 8px 18px 10px;
  animation: slideDown 0.15s ease-out;
}
.dropdown-grid {
  display: flex; flex-wrap: wrap; gap: 6px;
}

.filter-pill {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 500;
  white-space: nowrap;
  background: #f1f5f9;
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: all var(--transition);
}
.filter-pill:hover { color: var(--text-primary); background: #e2e8f0; }
.filter-pill.active {
  background: #fffbeb;
  color: #b45309;
  border-color: #fcd34d;
  font-weight: 700;
}

.scene-pill {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 500;
  white-space: nowrap;
  background: #f1f5f9;
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: all var(--transition);
}
.scene-pill:hover { color: var(--text-primary); background: #e2e8f0; }
.scene-pill.active {
  background: #fff7ed;
  color: #c2410c;
  border-color: #fed7aa;
  font-weight: 700;
}

/* Active Filter Chips */
.active-filters {
  display: flex; align-items: center; gap: 6px;
  padding: 0 18px 8px;
  flex-wrap: wrap;
}
.active-filter-list {
  display: flex; gap: 4px; flex-wrap: wrap; flex: 1;
}
.active-chip {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: #fffbeb;
  color: #92400e;
  font-size: 0.68rem; font-weight: 700;
  border: 1px solid #fde68a;
  cursor: pointer;
  transition: all var(--transition);
}
.active-chip:hover { background: #fef3c7; }
.chip-x { font-size: 0.8rem; font-weight: 400; color: #d97706; margin-left: 1px; }
.btn-clear-filters {
  font-size: 0.68rem; color: var(--text-muted); font-weight: 600;
  white-space: nowrap; padding: 3px 6px;
  transition: color var(--transition);
}
.btn-clear-filters:hover { color: var(--color-danger); }

/* ============ Random Picker ============ */
.random-picker {
  margin: 2px 18px 8px;
  padding: 10px 14px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
  border: 1px solid #ffedd5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: inset 0 1px 2px #ffffff, var(--shadow-sm);
}
.picker-left { display: flex; align-items: center; gap: 10px; }
.picker-emoji { font-size: 1.4rem; line-height: 1; filter: drop-shadow(0 2px 4px rgba(255,107,53,0.3)); }
.picker-text { display: flex; flex-direction: column; }
.picker-title { font-size: 0.82rem; font-weight: 800; color: #9a3412; }
.picker-sub { font-size: 0.68rem; color: #b45309; }

.btn-spin {
  display: flex; align-items: center; justify-content: center;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #ffffff;
  font-weight: 800; font-size: 0.78rem;
  transition: all var(--transition);
  box-shadow: var(--shadow-glow);
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.btn-spin:hover { transform: translateY(-1px) scale(1.02); box-shadow: 0 10px 24px rgba(255, 107, 53, 0.3); }
.btn-spin:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.picker-result {
  margin: 0 18px 8px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  display: flex; align-items: center; gap: 10px;
  cursor: pointer;
  transition: background var(--transition);
  animation: slideDown 0.3s ease-out;
}
.picker-result:hover { background: #d1fae5; }
.result-thumb { width: 42px; height: 42px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.result-info { flex: 1; }
.result-info h4 { font-size: 0.82rem; font-weight: 700; margin-bottom: 1px; color: #065f46; }
.result-info p { font-size: 0.68rem; color: #047857; }
.btn-again {
  width: 28px; height: 28px; border-radius: 50%;
  background: #ffffff; display: flex;
  align-items: center; justify-content: center;
  transition: all var(--transition); flex-shrink: 0;
  box-shadow: var(--shadow-sm); border: 1px solid #d1fae5;
}
.btn-again svg { width: 12px; height: 12px; color: #059669; }
.btn-again:hover { transform: rotate(180deg); background: #f8fafc; }

/* List Header */
.list-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 18px 6px;
}
.list-title { font-size: 0.8rem; font-weight: 800; color: var(--text-primary); }
.list-count {
  font-size: 0.68rem; color: var(--text-secondary);
  background: #f1f5f9; font-weight: 600;
  padding: 2px 8px; border-radius: var(--radius-full);
}

/* ============ Restaurant List ============ */
.restaurant-list {
  flex: 1; overflow-y: auto;
  padding: 0 10px 14px;
  display: flex; flex-direction: column; gap: 8px;
}
.restaurant-list::-webkit-scrollbar { width: 4px; }
.restaurant-list::-webkit-scrollbar-track { background: transparent; }
.restaurant-list::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

.rest-card {
  display: flex; gap: 12px;
  padding: 10px;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all var(--transition);
  animation: fadeSlideUp 0.3s ease-out both;
  box-shadow: var(--shadow-sm);
}
.rest-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: #cbd5e1;
}
.rest-card.highlight {
  border-color: var(--color-accent);
  background: #fffbeb;
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.15);
}

.card-img-wrap {
  position: relative; width: 75px; height: 75px; flex-shrink: 0;
}
.card-img-wrap img {
  width: 100%; height: 100%;
  border-radius: var(--radius-sm);
  object-fit: cover;
}
.card-badge {
  position: absolute; top: 4px; left: 4px;
  font-size: 0.55rem; font-weight: 800;
  padding: 2px 5px; border-radius: 4px;
  color: #ffffff; letter-spacing: 0.3px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.badge-hot { background: linear-gradient(135deg, #FF6B35, #ef4444); }
.badge-new { background: var(--color-success); }

.card-body { flex: 1; display: flex; flex-direction: column; justify-content: center; min-width: 0; gap: 4px; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.card-name { font-size: 0.88rem; font-weight: 800; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-rating {
  display: flex; align-items: center; gap: 2px;
  color: #ea580c;
  font-weight: 900; font-size: 0.78rem;
  flex-shrink: 0; background: #fff7ed; padding: 1px 4px; border-radius: 4px;
}
.card-rating svg { width: 10px; height: 10px; fill: currentColor; }

.card-mid {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.7rem; color: var(--text-secondary);
}
.card-price { font-weight: 700; color: #334155; }
.card-walk { display: flex; align-items: center; gap: 2px; color: #059669; font-weight: 600; }
.card-walk svg { width: 10px; height: 10px; }

.card-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.card-tag {
  font-size: 0.62rem; font-weight: 600; padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: #f1f5f9; color: var(--text-secondary);
}
.tag-deal {
  background: #fee2e2;
  color: #b91c1c;
}

/* Empty State */
.empty-state { text-align: center; padding: 32px 20px; color: var(--text-muted); }
.empty-state p { margin-bottom: 10px; font-size: 0.85rem; font-weight: 600; }

/* ============ MAP ============ */
.map-container { position: fixed; inset: 0; z-index: 1; }

/* Override Leaflet Popup for Light Theme */
.leaflet-popup-content-wrapper {
  background: #ffffff !important;
  border: none !important;
  color: var(--text-primary) !important;
  border-radius: var(--radius-md) !important;
  padding: 0 !important;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15), 0 4px 10px rgba(0,0,0,0.05) !important;
}
.leaflet-popup-tip { background: #ffffff !important; box-shadow: none !important; }
.leaflet-popup-content { margin: 0 !important; }

.map-popup { padding: 14px 16px; min-width: 180px; }
.map-popup h4 { font-size: 0.9rem; font-weight: 800; margin-bottom: 4px; color: #0f172a; }
.map-popup p { font-size: 0.72rem; color: var(--text-secondary); margin: 0 0 10px 0; font-weight: 500;}
.map-popup .popup-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  padding: 6px 12px; width: 100%; box-sizing: border-box;
  border-radius: var(--radius-full);
  background: var(--color-primary); color: #78350f;
  font-size: 0.75rem; font-weight: 800;
  transition: all var(--transition);
}
.map-popup .popup-btn:hover { filter: brightness(0.95); }

/* Custom Markers */
.marker-uni {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #ffffff; font-size: 11px; font-weight: 900;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.marker-rest {
  width: 24px; height: 24px; border-radius: 50%;
  background: #ffffff;
  border: 3px solid; display: flex;
  align-items: center; justify-content: center;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.marker-rest:hover { transform: scale(1.4); z-index: 1000 !important; }
.marker-rest-dot { width: 8px; height: 8px; border-radius: 50%; }

/* Marker Tooltip */
.marker-tooltip {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  padding: 4px 10px !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}
.marker-tooltip::before { border-top-color: #e2e8f0 !important; }

/* Spin button animation */
.btn-spin.spinning svg { animation: spin 0.6s linear infinite; }

/* ============ MODAL ============ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.2s ease-out;
}
.modal {
  width: 90%; max-width: 440px; max-height: 85vh;
  border-radius: var(--radius-xl);
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(8px); color: #0f172a;
  display: flex; align-items: center; justify-content: center;
  z-index: 10; transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.modal-close svg { width: 18px; height: 18px; }
.modal-close:hover { background: var(--color-danger); color: #ffffff; transform: scale(1.05); }

.modal-hero { position: relative; height: 200px; background: #e2e8f0; }
.modal-hero img { width: 100%; height: 100%; object-fit: cover; }
.modal-hero-gradient {
  position: absolute; bottom: 0; left: 0; right: 0; height: 120px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}
.modal-hero-info { position: absolute; bottom: 16px; left: 20px; right: 20px; color: #ffffff; }
.modal-hero-info h2 { font-size: 1.4rem; font-weight: 900; text-shadow: 0 2px 8px rgba(0,0,0,0.5); margin-bottom: 6px; }
.modal-meta { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 500; text-shadow: 0 1px 4px rgba(0,0,0,0.5); flex-wrap: wrap; }
.meta-rating {
  display: inline-flex; align-items: center; gap: 3px;
  background: var(--color-primary); color: #78350f;
  padding: 2px 8px; border-radius: var(--radius-sm);
  font-weight: 900; font-size: 0.8rem; box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.meta-rating svg { width: 12px; height: 12px; fill: currentColor; }

.modal-body {
  flex: 1; overflow-y: auto;
  padding: 20px; display: flex;
  flex-direction: column; gap: 20px;
}

.detail-section { display: flex; flex-direction: column; gap: 10px; }
.detail-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.88rem; font-weight: 800; color: #1e293b;
}
.detail-label svg { width: 16px; height: 16px; color: var(--color-accent); }
.detail-desc { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; }

.detail-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.detail-info-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px; background: #f8fafc;
  border-radius: var(--radius-md); border: 1px solid #e2e8f0;
}
.detail-info-item svg { width: 16px; height: 16px; color: var(--text-muted); margin-top: 2px; flex-shrink: 0; }
.info-label { font-size: 0.72rem; font-weight: 600; color: var(--text-muted); margin-bottom: 2px; }
.info-value { font-size: 0.82rem; font-weight: 700; color: var(--text-primary); }

.detail-highlights { display: flex; flex-wrap: wrap; gap: 8px; }
.highlight-item {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px; background: #fff7ed; color: #9a3412;
  border-radius: var(--radius-sm); font-size: 0.85rem; font-weight: 600;
  border: 1px solid #ffedd5;
}
.highlight-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-accent); flex-shrink: 0; }

.detail-deal {
  padding: 16px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, #fdf2f8, #fff7ed);
  border: 1px dashed #fbcfe8;
  text-align: center;
}
.deal-title { font-size: 0.82rem; font-weight: 800; color: #be185d; margin-bottom: 6px; }
.deal-value { font-size: 1.1rem; font-weight: 900; color: #831843; }
.deal-note { font-size: 0.72rem; color: #9d174d; font-weight: 500; margin-top: 4px; }

.detail-tags-list { display: flex; flex-wrap: wrap; gap: 6px; }
.detail-tag-item {
  padding: 5px 14px; border-radius: var(--radius-full);
  background: #f1f5f9; font-weight: 600;
  font-size: 0.78rem; color: var(--text-secondary);
}

.modal-footer { padding: 16px 20px; border-top: 1px solid var(--color-border); background: #f8fafc; }

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 24px; border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #ffffff; font-weight: 800; font-size: 0.9rem; text-shadow: 0 1px 2px rgba(0,0,0,0.1);
  transition: all var(--transition);
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255, 107, 53, 0.35); filter: brightness(1.05); }
.btn-primary svg { width: 16px; height: 16px; }
.full-w { width: 100%; }

.btn-reset {
  padding: 8px 20px; border-radius: var(--radius-full);
  background: #f1f5f9; border: 1px solid #cbd5e1;
  color: var(--text-secondary); font-size: 0.85rem; font-weight: 700;
  transition: all var(--transition);
}
.btn-reset:hover { background: #e2e8f0; color: var(--text-primary); }

/* ============ Utility ============ */
.hidden { display: none !important; }

/* ============ Animations ============ */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.95) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeSlideUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

/* ============ Responsive ============ */
@media (max-width: 768px) {
  .sidebar {
    width: calc(100% - 24px);
    max-height: 55vh;
    top: auto; bottom: 12px; left: 12px; right: 12px;
  }
  .modal { width: 100%; max-height: 90vh; border-radius: var(--radius-xl) var(--radius-xl) 0 0; align-self: flex-end; animation: slideUpModal 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
  @keyframes slideUpModal { from { transform: translateY(100%); } to { transform: translateY(0); } }
}
