/* ═══════════════════════════════════════════════════════════════
   KissPIO Reserve – Modern Design System
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Brand */
  --primary: #e63946;
  --primary-dark: #c92a38;
  --primary-light: #fdecee;
  --primary-glow: rgba(230, 57, 70, 0.35);
  --secondary: #6366f1;
  --secondary-light: #eef0ff;
  --accent: #f59e0b;
  --success: #10b981;
  --success-light: #ecfdf5;
  --warning: #f59e0b;
  --warning-light: #fffbeb;
  --danger: #ef4444;
  --danger-light: #fef2f2;
  --info: #3b82f6;
  --info-light: #eff6ff;

  /* Surfaces (light) */
  --bg: #f7f7f9;
  --bg-elevated: #ffffff;
  --bg-subtle: #f2f3f5;
  --bg-card: #ffffff;
  --bg-hover: #f9fafb;

  /* Text (light) */
  --text: #0f172a;
  --text-secondary: #475569;
  --text-light: #64748b;
  --text-muted: #94a3b8;
  --text-inverse: #ffffff;

  /* Borders (light) */
  --border: #e5e7eb;
  --border-light: #f1f3f5;
  --border-strong: #d1d5db;

  /* Dark surface for loyalty/hero gradients */
  --dark: #0f172a;
  --dark-soft: #1e293b;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow: 0 4px 14px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.10);
  --shadow-xl: 0 24px 60px rgba(15, 23, 42, 0.18);
  --shadow-primary: 0 6px 20px rgba(230, 57, 70, 0.28);

  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.2s var(--ease);
  --transition-slow: 0.35s var(--ease);

  /* Tier palette */
  --bronze: #cd7f32;
  --silver: #c0c0c0;
  --gold: #ffd700;
  --platinum: #e5e4e2;
  --diamond: #b9f2ff;
}

/* Dark theme overrides */
[data-theme="dark"] {
  --bg: #0b1220;
  --bg-elevated: #111a2e;
  --bg-subtle: #0f172a;
  --bg-card: #111a2e;
  --bg-hover: #162137;
  --text: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-light: #94a3b8;
  --text-muted: #64748b;
  --border: #1f2a44;
  --border-light: #182137;
  --border-strong: #2b3858;
  --primary-light: rgba(230, 57, 70, 0.15);
  --secondary-light: rgba(99, 102, 241, 0.15);
  --success-light: rgba(16, 185, 129, 0.15);
  --warning-light: rgba(245, 158, 11, 0.15);
  --danger-light: rgba(239, 68, 68, 0.15);
  --info-light: rgba(59, 130, 246, 0.15);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.55);
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition), color var(--transition);
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { letter-spacing: -0.015em; color: var(--text); line-height: 1.25; }
h1 { font-size: clamp(1.8rem, 4vw, 2.75rem); font-weight: 800; }
h2 { font-size: 1.6rem; font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; }
h4 { font-size: 0.95rem; font-weight: 600; }
small { font-size: 0.8rem; color: var(--text-light); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 2.5rem 0; }
.mb-1 { margin-bottom: 1rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

/* Selection */
::selection { background: var(--primary-light); color: var(--primary-dark); }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.7rem 1.3rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 550;
  cursor: pointer; font-family: inherit;
  text-decoration: none; line-height: 1.2;
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition), color var(--transition), border-color var(--transition);
  user-select: none;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 10px 26px var(--primary-glow); }

.btn-secondary {
  background: var(--secondary); color: #fff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.28);
}
.btn-secondary:hover { background: #4f46e5; transform: translateY(-1px); }

.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { background: var(--bg-subtle); color: var(--text); }

.btn-outline {
  background: transparent; color: var(--text); border-color: var(--border-strong);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; transform: translateY(-1px); }

.btn-block { width: 100%; }
.btn-lg { padding: 0.9rem 1.6rem; font-size: 0.98rem; }
.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.82rem; }
.btn-icon { padding: 0.5rem; }

/* ── Header ──────────────────────────────────────────────────── */
.header {
  background: color-mix(in srgb, var(--bg-elevated) 85%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border-light);
  padding: 0.65rem 0;
  position: sticky; top: 0; z-index: 100;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 1.15rem; font-weight: 750;
  color: var(--text); letter-spacing: -0.01em;
}
.logo-icon { color: var(--primary); }
.logo-accent { color: var(--primary); }

nav { display: flex; gap: 0.4rem; align-items: center; }
.nav-link { font-size: 0.88rem; }

.user-menu {
  display: flex; align-items: center; gap: 0.55rem;
  margin-left: 0.4rem; padding-left: 0.8rem;
  border-left: 1px solid var(--border);
}
.user-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700;
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.25);
}
.user-name-text { font-size: 0.88rem; font-weight: 500; }

.theme-toggle {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.theme-toggle:hover { border-color: var(--primary); color: var(--primary); }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  background: radial-gradient(1200px 600px at 0% 0%, rgba(230, 57, 70, 0.25) 0%, transparent 55%),
              radial-gradient(1000px 500px at 100% 100%, rgba(99, 102, 241, 0.28) 0%, transparent 55%),
              linear-gradient(135deg, #0b1220 0%, #141e35 50%, #0d1b3a 100%);
  color: #fff;
  padding: 4.5rem 0 3rem;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 25% 30%, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 75% 70%, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px, 60px 60px;
  opacity: 0.5;
  z-index: -1;
}
.hero > .container { position: relative; z-index: 1; }
.hero h1 {
  color: #fff;
  font-weight: 800;
  margin-bottom: 0.6rem;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}
.hero-subtitle {
  opacity: 0.82; font-size: 1.08rem;
  margin-bottom: 2.2rem; max-width: 580px; margin-left: auto; margin-right: auto;
}

.search-bar {
  display: flex; max-width: 620px; margin: 0 auto;
  background: #fff;
  border-radius: var(--radius-pill);
  padding: 0.35rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: transform var(--transition);
}
.search-bar:focus-within { transform: translateY(-2px); box-shadow: 0 28px 60px rgba(0, 0, 0, 0.32); }
.search-input-wrap {
  flex: 1; display: flex; align-items: center; gap: 0.6rem;
  padding: 0 0.2rem 0 1.2rem; color: var(--text-light);
}
.search-input-wrap input {
  flex: 1; border: none; font-size: 1rem; padding: 0.7rem 0;
  outline: none; font-family: inherit; color: var(--text);
  background: transparent;
}
.btn-search { border-radius: var(--radius-pill); padding: 0.75rem 2rem; }

/* Quick filter chips */
.quick-filters {
  display: flex; gap: 0.5rem; justify-content: center;
  margin-top: 1.75rem; flex-wrap: wrap;
}
.filter-chip {
  padding: 0.45rem 1.1rem; border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.86rem; font-weight: 500;
  cursor: pointer; font-family: inherit;
  backdrop-filter: blur(8px);
  transition: var(--transition);
}
.filter-chip:hover { background: rgba(255, 255, 255, 0.18); transform: translateY(-1px); }
.filter-chip.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 6px 16px var(--primary-glow); }

/* Advanced filters */
.advanced-filters {
  max-width: 620px; margin: 1.5rem auto 0;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg); padding: 1.5rem;
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: end;
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: left;
}
.filter-group { flex: 1; min-width: 140px; }
.filter-group label { display: block; font-size: 0.78rem; margin-bottom: 0.4rem; opacity: 0.75; font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; }
.filter-group input {
  width: 100%; padding: 0.55rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  color: #fff; font-size: 0.9rem;
  outline: none; font-family: inherit;
  transition: var(--transition);
}
.filter-group input::placeholder { color: rgba(255, 255, 255, 0.45); }
.filter-group input:focus { border-color: var(--primary); background: rgba(255, 255, 255, 0.14); }

.price-filter, .vibe-filter { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.price-btn, .vibe-chip {
  padding: 0.35rem 0.8rem; border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85); font-size: 0.82rem; font-weight: 500;
  cursor: pointer; font-family: inherit;
  transition: var(--transition);
}
.price-btn:hover, .vibe-chip:hover { background: rgba(255, 255, 255, 0.16); }
.price-btn.active, .vibe-chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.toggle-filters { margin-top: 1rem; color: rgba(255, 255, 255, 0.78); font-size: 0.88rem; }
.toggle-filters:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }

/* ── Section Header ──────────────────────────────────────────── */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem; gap: 1rem; flex-wrap: wrap;
}
.section-header h2 { font-weight: 750; }
.result-count { color: var(--text-light); font-size: 0.9rem; }

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  border: 1px solid var(--border-light);
  transition: box-shadow var(--transition), border-color var(--transition);
}

/* ── Restaurant Grid ─────────────────────────────────────────── */
.restaurant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}
.restaurant-card {
  cursor: pointer;
  position: relative;
  overflow: hidden;
  padding: 1.4rem;
  transition: transform var(--transition-slow), box-shadow var(--transition-slow), border-color var(--transition);
}
.restaurant-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  opacity: 0;
  transition: opacity var(--transition);
  height: 3px;
  bottom: auto;
}
.restaurant-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--border); }
.restaurant-card:hover::before { opacity: 1; }

.restaurant-card-header { display: flex; justify-content: space-between; align-items: start; gap: 0.5rem; margin-bottom: 0.5rem; }
.restaurant-card h3 { font-size: 1.1rem; font-weight: 700; }
.restaurant-card .meta {
  color: var(--text-light); font-size: 0.85rem;
  margin-bottom: 0.65rem;
  display: flex; align-items: center; gap: 0.35rem;
}
.restaurant-card .meta svg { flex-shrink: 0; opacity: 0.7; }
.restaurant-card .description {
  color: var(--text-secondary); font-size: 0.9rem;
  margin-bottom: 1rem; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.restaurant-card-footer { display: flex; align-items: center; gap: 0.65rem; flex-wrap: wrap; }

.cuisine-tag {
  display: inline-flex; align-items: center;
  background: var(--primary-light); color: var(--primary);
  padding: 0.25rem 0.75rem; border-radius: var(--radius-pill);
  font-size: 0.78rem; font-weight: 600;
}
.price-tag { color: var(--text-muted); font-size: 0.88rem; font-weight: 650; letter-spacing: 0.02em; }
.price-tag .active-price { color: var(--text); }

.rating-badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.88rem; color: var(--text);
  padding: 0.2rem 0.55rem;
  background: var(--warning-light); border-radius: var(--radius-pill);
  font-weight: 600;
}
.rating-badge .stars { color: var(--accent); font-size: 0.85rem; }
.rating-badge .count { color: var(--text-light); font-size: 0.78rem; font-weight: 500; }

.favorite-btn {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition);
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  z-index: 2;
}
.favorite-btn:hover { color: var(--primary); transform: scale(1.08); border-color: var(--primary); }
.favorite-btn.favorited { color: var(--primary); border-color: var(--primary); background: var(--primary-light); }
.favorite-btn.favorited svg { fill: var(--primary); }

/* ── Reservation Form & Forms ───────────────────────────────── */
.detail-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.5rem; margin-top: 1.5rem; }
.reservation-form { position: sticky; top: 5.5rem; }
.reservation-form h3 {
  display: flex; align-items: center; gap: 0.55rem;
  margin-bottom: 1.25rem; font-size: 1.1rem;
}
.form-row { display: flex; gap: 1rem; }
.form-row label { flex: 1; }
label {
  display: block; margin-bottom: 1rem;
  font-weight: 550; font-size: 0.86rem;
  color: var(--text-secondary);
}
label input, label select, label textarea, input[type="date"], input[type="time"] {
  display: block; width: 100%; margin-top: 0.4rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.93rem;
  transition: border-color var(--transition), box-shadow var(--transition), background-color var(--transition);
  font-family: inherit;
  background: var(--bg-elevated); color: var(--text);
}
label textarea { resize: vertical; min-height: 72px; line-height: 1.5; }
label input:focus, label select:focus, label textarea:focus,
input[type="date"]:focus, input[type="time"]:focus {
  border-color: var(--primary); outline: none;
  box-shadow: 0 0 0 4px var(--primary-light);
}
label input::placeholder, label textarea::placeholder { color: var(--text-muted); }

/* ── Time Slots ──────────────────────────────────────────────── */
.time-slots {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin: 1.2rem 0; padding: 1.1rem 0 0.5rem;
  border-top: 1px dashed var(--border);
}
.time-slot {
  padding: 0.55rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.9rem; font-weight: 600;
  transition: var(--transition);
  background: var(--bg-elevated); color: var(--text);
}
.time-slot:hover:not(.unavailable) {
  border-color: var(--primary); color: var(--primary);
  background: var(--primary-light); transform: translateY(-1px);
}
.time-slot.selected {
  background: var(--primary); color: #fff; border-color: var(--primary);
  box-shadow: var(--shadow-primary);
}
.time-slot.unavailable {
  opacity: 0.4; cursor: not-allowed;
  text-decoration: line-through;
  background: var(--bg-subtle);
}

/* ── Waitlist Banner ─────────────────────────────────────────── */
.waitlist-banner {
  display: flex; gap: 0.9rem; align-items: start;
  padding: 1rem 1.1rem;
  background: var(--warning-light);
  border: 1px solid color-mix(in srgb, var(--warning) 30%, transparent);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem; color: #92400e;
}
[data-theme="dark"] .waitlist-banner { color: #fbbf24; }
.waitlist-banner strong { display: block; margin-bottom: 0.15rem; }
.waitlist-banner p { font-size: 0.86rem; opacity: 0.9; line-height: 1.45; }

/* ── Restaurant Detail ───────────────────────────────────────── */
.restaurant-detail-header { margin-bottom: 1.5rem; }
.restaurant-detail-header h2 { font-size: 1.95rem; font-weight: 800; margin-bottom: 0.3rem; }
.restaurant-detail-header .meta { color: var(--text-light); margin-bottom: 0.6rem; font-size: 0.95rem; }

.detail-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.detail-rating { display: flex; align-items: center; gap: 0.55rem; margin-bottom: 1rem; }
.detail-rating .stars { color: var(--accent); font-size: 1.3rem; }
.detail-rating .avg { font-size: 1.4rem; font-weight: 800; }
.detail-rating .count { color: var(--text-light); font-size: 0.9rem; }

.detail-info { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1rem 0; }
.detail-info .card { padding: 1.25rem; }
.detail-info .card h4 {
  font-size: 0.95rem; margin-bottom: 0.85rem;
  display: flex; align-items: center; gap: 0.4rem;
  color: var(--text);
}
.hours-grid {
  display: grid; grid-template-columns: auto 1fr;
  gap: 0.4rem 1rem; font-size: 0.88rem; color: var(--text-secondary);
}
.hours-grid strong { color: var(--text); font-weight: 600; }
.back-btn { margin-bottom: 1.25rem; }

/* ── Tabs ────────────────────────────────────────────────────── */
.tabs {
  display: flex; gap: 0.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}
.tab {
  padding: 0.75rem 1.2rem;
  border: none; background: none;
  font-size: 0.92rem; font-weight: 550;
  cursor: pointer; font-family: inherit;
  color: var(--text-light);
  transition: var(--transition);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  position: relative;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ── My Reservations ─────────────────────────────────────────── */
.reservation-item {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
  padding: 1.1rem 1.4rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 0.7rem;
  border: 1px solid var(--border-light);
  transition: var(--transition);
}
.reservation-item:hover { box-shadow: var(--shadow); border-color: var(--border); }
.reservation-item .details h4 { margin-bottom: 0.25rem; font-size: 1.02rem; }
.reservation-item .details .meta { font-size: 0.86rem; color: var(--text-light); margin: 0.1rem 0; }
.reservation-item .actions { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }

/* Status badges */
.status {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem; font-weight: 650;
  letter-spacing: 0.01em;
}
.status::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; opacity: 0.9;
}
.status-CONFIRMED { background: var(--success-light); color: #047857; }
.status-PENDING { background: var(--warning-light); color: #92400e; }
.status-CANCELLED { background: var(--danger-light); color: #b91c1c; }
.status-SEATED { background: var(--info-light); color: #1d4ed8; }
.status-COMPLETED { background: var(--success-light); color: #047857; }
.status-NO_SHOW { background: var(--danger-light); color: #b91c1c; }
[data-theme="dark"] .status-CONFIRMED, [data-theme="dark"] .status-COMPLETED { color: #34d399; }
[data-theme="dark"] .status-PENDING { color: #fbbf24; }
[data-theme="dark"] .status-CANCELLED, [data-theme="dark"] .status-NO_SHOW { color: #f87171; }
[data-theme="dark"] .status-SEATED { color: #60a5fa; }

/* ── Reviews ─────────────────────────────────────────────────── */
.review-summary {
  display: flex; align-items: center; gap: 1.5rem;
  padding: 1rem 0 1.25rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}
.review-summary .big-rating {
  font-size: 3rem; font-weight: 800; color: var(--text);
  line-height: 1; letter-spacing: -0.03em;
}
.review-summary .stars-large { color: var(--accent); font-size: 1.3rem; letter-spacing: 0.1em; }
.review-summary .review-count { color: var(--text-light); font-size: 0.9rem; margin-top: 0.25rem; }

.review-item {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border-light);
}
.review-item:last-child { border-bottom: none; }
.review-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 0.35rem;
}
.review-author { font-weight: 650; font-size: 0.95rem; color: var(--text); }
.review-date { color: var(--text-muted); font-size: 0.8rem; }
.review-stars { color: var(--accent); margin-bottom: 0.4rem; letter-spacing: 0.1em; }
.review-text { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.55; }

/* Star rating input */
.star-rating-input {
  display: flex; gap: 0.35rem;
  font-size: 2.5rem; cursor: pointer;
  justify-content: center; margin: 1rem 0;
}
.star-rating-input .star { color: var(--border-strong); transition: transform var(--transition), color var(--transition); }
.star-rating-input .star:hover { transform: scale(1.15); }
.star-rating-input .star:hover, .star-rating-input .star.active { color: var(--accent); }

/* ── Profile ─────────────────────────────────────────────────── */
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.profile-grid .card:first-child { grid-column: 1 / -1; }
.profile-grid .card h3 {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 1rem; font-size: 1.05rem;
}
#profile-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.1rem; }
.profile-field .label {
  font-size: 0.72rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 0.3rem; font-weight: 600;
}
.profile-field .value { font-size: 1rem; font-weight: 550; color: var(--text); }

.favorite-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer; transition: color var(--transition), padding-left var(--transition);
}
.favorite-item:hover { color: var(--primary); padding-left: 0.3rem; }
.favorite-item:last-child { border-bottom: none; }
.favorite-item .fav-name { font-weight: 650; }
.favorite-item .fav-meta { font-size: 0.82rem; color: var(--text-light); margin-top: 0.15rem; }

/* ── Loyalty ─────────────────────────────────────────────────── */
.loyalty-dashboard { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.loyalty-card {
  grid-column: 1 / -1;
  background:
    radial-gradient(1000px 400px at 100% 0%, rgba(230, 57, 70, 0.35) 0%, transparent 60%),
    radial-gradient(600px 300px at 0% 100%, rgba(99, 102, 241, 0.35) 0%, transparent 60%),
    linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  position: relative; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-xl);
}
.loyalty-card::after {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  pointer-events: none;
}
.loyalty-card > * { position: relative; z-index: 1; }
.loyalty-card h3, .loyalty-card h4 { color: #fff; }

.loyalty-card-header {
  display: flex; justify-content: space-between; align-items: start;
  margin-bottom: 2rem;
}
.loyalty-level { font-size: 0.82rem; opacity: 0.72; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.loyalty-level-name { font-size: 1.55rem; font-weight: 800; margin-top: 0.2rem; }
.loyalty-badge {
  width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 800;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  border: 3px solid rgba(255, 255, 255, 0.15);
}
.loyalty-points-display { margin-bottom: 1.5rem; }
.loyalty-points-number {
  font-size: 3.2rem; font-weight: 800; line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.loyalty-points-label { font-size: 0.9rem; opacity: 0.72; margin-top: 0.25rem; }
.loyalty-progress { margin-top: 1rem; }
.loyalty-progress-bar {
  height: 10px; background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill); overflow: hidden;
  margin-top: 0.5rem;
}
.loyalty-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #ff8a65, var(--secondary));
  border-radius: var(--radius-pill);
  transition: width 0.8s var(--ease);
  box-shadow: 0 0 20px var(--primary-glow);
}
.loyalty-progress-text {
  display: flex; justify-content: space-between;
  font-size: 0.82rem; opacity: 0.78;
}

.loyalty-history-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-light);
}
.loyalty-history-item:last-child { border-bottom: none; }
.loyalty-history-item .desc { font-size: 0.92rem; font-weight: 500; }
.loyalty-history-item .date { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.15rem; }
.loyalty-history-item .points-earned { font-weight: 700; color: var(--success); font-size: 0.98rem; }
.loyalty-history-item .points-spent { font-weight: 700; color: var(--primary); font-size: 0.98rem; }

.loyalty-info-card { grid-column: 1 / -1; }
.loyalty-earn-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.earn-item {
  display: flex; gap: 0.85rem; align-items: center;
  padding: 1.1rem; background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}
.earn-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.earn-item strong { font-size: 0.95rem; color: var(--text); }
.earn-item p { font-size: 0.82rem; color: var(--text-light); margin-top: 0.15rem; }

.loyalty-tiers h4 { margin-bottom: 1rem; }
.tier-grid { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.tier {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.7rem 1.1rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  font-size: 0.88rem; font-weight: 550;
}
.tier small { color: var(--text-muted); font-weight: 400; margin-left: 0.25rem; }
.tier-badge {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 800; color: #fff;
}
.tier-bronze { background: var(--bronze); }
.tier-silver { background: var(--silver); color: #333; }
.tier-gold { background: var(--gold); color: #333; }
.tier-platinum { background: #8e8e8e; }
.tier-diamond { background: linear-gradient(135deg, #00d2ff, #7b2ff7); }

/* ── Modal ────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  z-index: 200;
  animation: overlayIn 0.25s var(--ease);
  padding: 1rem;
}
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: 100%; max-width: 460px;
  max-height: 92vh; overflow-y: auto;
  box-shadow: var(--shadow-xl);
  position: relative;
  animation: modalIn 0.3s var(--ease);
  border: 1px solid var(--border-light);
}
@keyframes modalIn {
  from { transform: scale(0.96) translateY(12px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.modal-close {
  position: absolute; top: 0.85rem; right: 0.85rem;
  background: var(--bg-subtle); border: none;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-light);
  transition: var(--transition);
}
.modal-close:hover { background: var(--danger-light); color: var(--danger); }
.modal h2 { font-size: 1.45rem; margin-bottom: 0.4rem; }
.modal-subtitle { color: var(--text-light); font-size: 0.92rem; margin-bottom: 1.5rem; line-height: 1.5; }
.modal-footer {
  text-align: center; margin-top: 1.25rem;
  font-size: 0.88rem; color: var(--text-light);
}

/* ── Error / Toast ───────────────────────────────────────────── */
.error {
  color: var(--danger); font-size: 0.86rem;
  margin-bottom: 0.5rem; padding: 0.5rem 0;
}

.toast {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  background: var(--dark); color: #fff;
  padding: 0.95rem 1.6rem;
  border-radius: var(--radius);
  font-size: 0.92rem; font-weight: 550;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  z-index: 300; pointer-events: none;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 380px;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ── Pagination ──────────────────────────────────────────────── */
.pagination {
  display: flex; gap: 0.35rem;
  justify-content: center; margin-top: 2rem; flex-wrap: wrap;
}
.pagination button {
  min-width: 38px; padding: 0.5rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  cursor: pointer; font-size: 0.88rem;
  font-family: inherit; font-weight: 550;
  color: var(--text-secondary);
  transition: var(--transition);
}
.pagination button:hover { border-color: var(--primary); color: var(--primary); }
.pagination button.active {
  background: var(--primary); color: #fff;
  border-color: var(--primary);
  box-shadow: var(--shadow-primary);
}

/* ── Empty State ─────────────────────────────────────────────── */
.empty-state {
  text-align: center; padding: 3rem 1rem;
  color: var(--text-light);
  background: var(--bg-subtle);
  border-radius: var(--radius);
  border: 1px dashed var(--border);
}
.empty-state svg { margin-bottom: 1rem; opacity: 0.3; }
.empty-state p { font-size: 0.96rem; }

/* ── Waitlist Item ───────────────────────────────────────────── */
.waitlist-item {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
  padding: 1.1rem 1.4rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 0.7rem;
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--secondary);
  transition: var(--transition);
}
.waitlist-item:hover { box-shadow: var(--shadow); }
.waitlist-item .details h4 { margin-bottom: 0.25rem; }
.waitlist-item .details .meta { font-size: 0.86rem; color: var(--text-light); }
.waitlist-position {
  display: flex; flex-direction: column; align-items: center;
  padding: 0.5rem 1rem;
  background: var(--secondary-light);
  border-radius: var(--radius-sm);
  min-width: 60px;
}
.waitlist-position .pos-number {
  font-size: 1.55rem; font-weight: 800;
  color: var(--secondary); line-height: 1;
}
.waitlist-position .pos-label {
  font-size: 0.68rem; color: var(--text-light);
  text-transform: uppercase; letter-spacing: 0.05em;
  margin-top: 0.2rem;
}

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-inner { display: flex; flex-wrap: wrap; gap: 2.5rem; }
.footer-brand { flex: 1; min-width: 220px; }
.footer-brand .logo { color: #fff; font-size: 1.15rem; margin-bottom: 0.5rem; }
.footer-brand .logo-icon { color: var(--primary); }
.footer-brand .logo-accent { color: var(--primary); }
.footer-tagline { font-size: 0.88rem; opacity: 0.65; margin-top: 0.4rem; line-height: 1.5; }

.footer-links { display: flex; gap: 3rem; flex: 1; flex-wrap: wrap; }
.footer-col { min-width: 150px; }
.footer-col h4 {
  color: #fff; font-size: 0.82rem; font-weight: 650;
  margin-bottom: 0.9rem;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.footer-col a {
  display: block; color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem; padding: 0.3rem 0;
  transition: var(--transition); text-decoration: none;
}
.footer-col a:hover { color: var(--primary); transform: translateX(3px); }

.footer-bottom {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.25rem; margin-top: 1.25rem;
}
.footer-bottom p { font-size: 0.8rem; opacity: 0.5; }

/* ── Admin Dashboard ────────────────────────────────────────── */
.admin-header { margin-bottom: 1.5rem; }
.admin-header h2 { font-size: 1.65rem; font-weight: 800; }
.admin-header .meta { color: var(--text-light); font-size: 0.92rem; margin-top: 0.25rem; }

.admin-toolbar {
  display: flex; align-items: end; gap: 1rem;
  margin-bottom: 1.5rem; padding: 1.1rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  flex-wrap: wrap;
}
.admin-toolbar .inline-label {
  display: flex; flex-direction: column; gap: 0.3rem;
  font-size: 0.82rem; font-weight: 550; margin-bottom: 0;
  color: var(--text-secondary);
}
.admin-toolbar input[type="date"] {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit; font-size: 0.88rem;
  background: var(--bg-elevated); color: var(--text);
}
.admin-tab-content { min-height: 300px; animation: fadeIn 0.25s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

.admin-section-header {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 1.25rem;
  gap: 1rem; flex-wrap: wrap;
}
.admin-section-header h3 { margin-bottom: 0; }

/* Admin Reservation List */
.admin-reservation-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 0.6rem;
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--primary);
  transition: var(--transition);
}
.admin-reservation-item:hover { box-shadow: var(--shadow); border-left-color: var(--primary-dark); }
.admin-res-time {
  font-size: 1.15rem; font-weight: 750;
  color: var(--text);
  min-width: 60px; text-align: center;
  font-variant-numeric: tabular-nums;
}
.admin-res-details { flex: 1; min-width: 0; }
.admin-res-guest { font-size: 0.96rem; margin-bottom: 0.25rem; }
.admin-res-contact { font-size: 0.82rem; color: var(--text-light); }
.admin-res-table { font-size: 0.82rem; color: var(--secondary); font-weight: 600; margin-top: 0.15rem; }
.admin-res-notes {
  font-size: 0.84rem; color: var(--text-light);
  font-style: italic; margin-top: 0.3rem;
  padding: 0.4rem 0.6rem;
  background: var(--bg-subtle);
  border-radius: var(--radius-xs);
  border-left: 2px solid var(--accent);
}
.admin-res-actions { display: flex; flex-direction: column; gap: 0.5rem; align-items: end; }
.admin-status-select {
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-family: inherit; cursor: pointer;
  background: var(--bg-elevated); color: var(--text);
  transition: var(--transition);
}
.admin-status-select:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px var(--primary-light); }

/* Admin Table */
.admin-table {
  width: 100%; border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
}
.admin-table th {
  text-align: left; padding: 0.85rem 1.1rem;
  font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-muted); font-weight: 650;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}
.admin-table td {
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.92rem;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--bg-hover); }

/* Admin Hours Grid */
.admin-hours-grid { display: flex; flex-direction: column; gap: 0.55rem; }
.admin-hours-row {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}
.admin-hours-row:hover { border-color: var(--border); }
.admin-hours-day { font-weight: 650; min-width: 110px; font-size: 0.92rem; }
.admin-hours-closed {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.84rem; margin-bottom: 0;
  font-weight: 500; min-width: 130px;
  color: var(--text-secondary);
}
.admin-hours-closed input[type="checkbox"] { width: auto; margin: 0; accent-color: var(--primary); }
.admin-hours-times { display: flex; align-items: center; gap: 0.5rem; flex: 1; }
.admin-hours-times input[type="time"] {
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit; font-size: 0.88rem;
  background: var(--bg-elevated); color: var(--text);
}
.admin-hours-times input[type="time"]:focus { border-color: var(--primary); outline: none; }

/* Inline form */
.inline-form {
  display: flex; flex-wrap: wrap;
  gap: 0.85rem; align-items: end;
  padding: 1.1rem 1.2rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.inline-form label { flex: 1; min-width: 100px; margin-bottom: 0; font-size: 0.82rem; }
.inline-form-actions { display: flex; gap: 0.5rem; align-items: center; }

/* Admin tabs scrollable */
.admin-tabs-scroll {
  overflow-x: auto; white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  flex-wrap: nowrap;
}
.admin-tabs-scroll .tab { flex-shrink: 0; }
.admin-tabs-scroll::-webkit-scrollbar { height: 4px; }
.admin-tabs-scroll::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 10px; }

/* ── Report Grid ────────────────────────────────────────────── */
.report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.1rem; margin-top: 1rem;
}
.report-content { margin-top: 0.75rem; }
.report-stats { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.stat {
  text-align: center; flex: 1; min-width: 90px;
  background: var(--bg-subtle);
  padding: 0.85rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}
.stat:hover { border-color: var(--primary); transform: translateY(-2px); }
.stat-val {
  display: block; font-size: 1.5rem;
  font-weight: 800; color: var(--primary);
  letter-spacing: -0.02em; line-height: 1.1;
}
.stat-label {
  display: block; font-size: 0.75rem;
  color: var(--text-light); margin-top: 0.35rem;
  text-transform: uppercase; letter-spacing: 0.03em; font-weight: 600;
}

.chip {
  display: inline-flex; align-items: center;
  padding: 0.25rem 0.6rem;
  background: var(--secondary-light);
  color: var(--secondary);
  border-radius: var(--radius-xs);
  font-size: 0.78rem; font-weight: 600;
  margin: 0.1rem;
}
.peak-hours, .day-stats { display: flex; flex-wrap: wrap; gap: 0.3rem; }

/* ── CRM Note Items ─────────────────────────────────────────── */
.note-item {
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem; flex-wrap: wrap;
}
.note-item:last-child { border-bottom: none; }

.success-msg { color: var(--success); font-weight: 550; }
.noshow-guest {
  padding: 0.4rem 0; font-size: 0.9rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
}
.noshow-guest:last-child { border-bottom: none; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; }
  .reservation-form { position: static; }
  .profile-grid { grid-template-columns: 1fr; }
  .loyalty-dashboard { grid-template-columns: 1fr; }
  .detail-info { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 1.75rem 0; }
  .hero { padding: 2.5rem 0 2rem; }
  .hero-subtitle { font-size: 0.98rem; margin-bottom: 1.5rem; }
  .form-row { flex-direction: column; gap: 0; }
  .search-bar { flex-direction: column; border-radius: var(--radius); padding: 0.5rem; }
  .search-input-wrap { padding: 0.4rem 0.6rem; }
  .btn-search { border-radius: var(--radius-sm); }
  .restaurant-grid { grid-template-columns: 1fr; }
  nav { flex-wrap: wrap; }
  .nav-link span { display: none; }
  .user-menu { flex-wrap: wrap; gap: 0.4rem; padding-left: 0.5rem; }
  .user-name-text { display: none; }
  .admin-reservation-item { flex-direction: column; align-items: stretch; }
  .admin-res-time { text-align: left; }
  .admin-res-actions { flex-direction: row; justify-content: space-between; align-items: center; }
  .admin-hours-row { flex-direction: column; align-items: stretch; gap: 0.6rem; }
  .inline-form { flex-direction: column; }
  .inline-form label { min-width: auto; width: 100%; }
  .footer-inner { flex-direction: column; gap: 1.75rem; }
  .footer-links { gap: 2rem; }
  .report-grid { grid-template-columns: 1fr; }
  .report-stats { flex-direction: row; }
  .loyalty-earn-grid { grid-template-columns: 1fr; }
  .tier-grid { flex-direction: column; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .header-inner { gap: 0.4rem; }
  .logo { font-size: 1rem; }
  .logo-icon { width: 24px; height: 24px; }
  .loyalty-card { padding: 1.5rem; }
  .loyalty-points-number { font-size: 2.4rem; }
  .loyalty-card-header { margin-bottom: 1.25rem; }
  .advanced-filters { flex-direction: column; padding: 1.1rem; }
  .footer-links { flex-direction: column; gap: 1.25rem; }
  .reservation-item, .waitlist-item { padding: 1rem 1.1rem; }
  .modal { padding: 1.5rem; }
  .toast { left: 1rem; right: 1rem; max-width: none; bottom: 1rem; }
  .stat-val { font-size: 1.2rem; }
}

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

/* ── Scrollbar styling ──────────────────────────────────────── */
@media (min-width: 768px) {
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-track { background: var(--bg); }
  ::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 10px; border: 2px solid var(--bg); }
  ::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
}
