/* ============================================================
   TravelGuide Pro — Web App CSS
   Design system dark, mobile-first, identique à l'app Flutter
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Variables ────────────────────────────────────────────── */
:root {
  --bg:         #0D1117;
  --surface:    #161B22;
  --surface-2:  #1C2333;
  --border:     #252D3D;
  --primary:    #00C9A7;
  --primary-dk: #00A085;
  --secondary:  #FF6B35;
  --accent:     #8B5CF6;
  --text:       #E8EDF2;
  --text-2:     #8B949E;
  --text-3:     #4A5568;
  --success:    #00C9A7;
  --warning:    #FFB700;
  --error:      #EF4444;
  --r-sm:       8px;
  --r-md:       12px;
  --r-lg:       16px;
  --r-xl:       20px;
  --r-full:     999px;

  /* Safe area pour notch iOS */
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top:    env(safe-area-inset-top, 0px);
  --safe-b:      env(safe-area-inset-bottom, 0px);

  /* Alias courts utilisés dans les vues */
  --surf:   #161B22;
  --surf2:  #1C2333;
  --muted:  #8B949E;
  --text2:  #8B949E;
  --warn:   #FFB700;
  --err:    #EF4444;
  --acc:    #8B5CF6;
  --sec:    #FF6B35;
  --pri2:   #00A085;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100dvh;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; cursor: pointer; background: none; }
img { max-width: 100%; height: auto; display: block; }
input, textarea, select { font-family: inherit; font-size: 14px; }

/* ── Layout shell ─────────────────────────────────────────── */
.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 540px;          /* Centré sur desktop */
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
}

/* Simuler l'encadrement téléphone sur desktop */
@media (min-width: 600px) {
  body { background: #07090E; }
  .app-shell {
    box-shadow: 0 0 0 1px var(--surface-2), 0 0 60px rgba(0,0,0,0.6);
  }
}

/* ── Top bar ──────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13,17,23,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--surface-2);
  padding: calc(var(--safe-top) + 10px) 16px 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
}

.topbar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.topbar-logo-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dk));
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.topbar-logo-text {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 15px;
}

.topbar-actions { display: flex; gap: 8px; }

.icon-btn {
  width: 36px; height: 36px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  transition: background 0.15s;
}
.icon-btn:active { background: var(--border); }

/* ── Bottom nav ───────────────────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 540px;
  z-index: 50;
  background: rgba(22,27,34,0.97);
  border-top: 1px solid var(--surface-2);
  padding-bottom: var(--safe-bottom);
  display: flex;
  justify-content: space-around;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 4px;
  gap: 3px;
  color: var(--text-3);
  font-size: 9px;
  font-weight: 600;
  transition: color 0.15s;
  -webkit-tap-highlight-color: transparent;
  letter-spacing: 0.02em;
}

.nav-item .nav-icon { font-size: 22px; line-height: 1; }

.nav-item.active { color: var(--primary); }

.nav-item.active .nav-icon {
  filter: drop-shadow(0 0 6px rgba(0,201,167,0.5));
}

/* ── Page content ─────────────────────────────────────────── */
.page {
  flex: 1;
  padding-bottom: calc(70px + var(--safe-bottom));
  overflow-y: auto;
}

.page-header {
  padding: 16px 20px 8px;
}

.page-section { padding: 0 16px; margin-bottom: 24px; }

/* ── Typographie ──────────────────────────────────────────── */
.font-display { font-family: 'Syne', sans-serif; }
.font-mono    { font-family: 'JetBrains Mono', monospace; }

.text-xl   { font-family: 'Syne', sans-serif; font-size: 26px; font-weight: 800; line-height: 1.15; }
.text-lg   { font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 800; line-height: 1.2; }
.text-md   { font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 700; }
.text-sm   { font-family: 'Syne', sans-serif; font-size: 13px; font-weight: 700; }
.body-lg   { font-size: 15px; color: var(--text-2); line-height: 1.6; }
.body-md   { font-size: 13px; color: var(--text-2); line-height: 1.5; }
.body-sm   { font-size: 11px; color: var(--text-3); }
.label-upper {
  font-size: 10px; font-weight: 700;
  color: var(--text-3); text-transform: uppercase; letter-spacing: 0.1em;
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--surface-2);
  border-radius: var(--r-lg);
  padding: 16px;
  transition: transform 0.1s, border-color 0.15s;
}

.card-tap { -webkit-tap-highlight-color: transparent; }
.card-tap:active { transform: scale(0.985); }

/* ── Place card horizontal ────────────────────────────────── */
.place-card-h {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--surface-2);
  border-radius: var(--r-lg);
  padding: 14px;
  margin-bottom: 10px;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.15s, transform 0.1s;
}
.place-card-h:active { transform: scale(0.985); }

.place-card-icon {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}

.place-card-img {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  object-fit: cover;
  flex-shrink: 0;
}

/* ── Place card vertical ──────────────────────────────────── */
.place-card-v {
  width: 148px;
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--surface-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.1s;
}
.place-card-v:active { transform: scale(0.975); }

.place-card-v-img {
  width: 100%; height: 96px;
  object-fit: cover;
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 40px;
  color: var(--border);
}

.place-card-v-body { padding: 10px; }

/* ── Badges ───────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 9px;
  border-radius: var(--r-full);
  font-size: 10px;
  font-weight: 700;
}
.badge-primary { background: rgba(0,201,167,0.15); color: var(--primary); }
.badge-warning { background: rgba(255,183,0,0.15);  color: var(--warning); }
.badge-error   { background: rgba(239,68,68,0.15);  color: var(--error); }
.badge-neutral { background: var(--surface-2);       color: var(--text-2); }

/* ── Boutons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  padding: 12px 20px;
  border-radius: var(--r-lg);
  font-size: 14px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  transition: opacity 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); opacity: 0.9; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dk));
  color: var(--bg);
}
.btn-secondary {
  background: linear-gradient(135deg, var(--secondary), #FF9A00);
  color: #fff;
}
.btn-ghost {
  background: var(--surface-2);
  color: var(--text-2);
  border: 1px solid var(--border);
}
.btn-full { width: 100%; }
.btn-lg { padding: 15px 24px; font-size: 15px; }

/* ── Gradient banners ─────────────────────────────────────── */
.banner-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dk));
  border-radius: var(--r-lg);
  padding: 16px;
  color: var(--bg);
}
.banner-secondary {
  background: linear-gradient(135deg, var(--secondary), #FF9A00);
  border-radius: var(--r-lg);
  padding: 16px;
  color: #fff;
}

/* ── Forms ────────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 10px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.form-control {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--surface-2);
  border-radius: var(--r-md);
  padding: 11px 14px;
  color: var(--text);
  font-size: 14px;
  transition: border-color 0.15s;
  -webkit-appearance: none;
}
.form-control:focus { outline: none; border-color: var(--primary); }
.form-control::placeholder { color: var(--text-3); }
textarea.form-control { resize: vertical; min-height: 80px; }

/* ── Section headers ──────────────────────────────────────── */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px 8px;
}
.section-action {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
}

/* ── Horizontal scroll lists ──────────────────────────────── */
.scroll-x {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 20px 8px;
  scrollbar-width: none;
}
.scroll-x::-webkit-scrollbar { display: none; }
.scroll-x > * { scroll-snap-align: start; }

/* ── Search bar ───────────────────────────────────────────── */
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--surface-2);
  border-radius: var(--r-md);
  padding: 11px 14px;
  margin: 0 20px;
}
.search-bar input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text);
  font-size: 14px;
}
.search-bar input:focus { outline: none; }
.search-bar input::placeholder { color: var(--text-3); }

/* ── KPI cards ────────────────────────────────────────────── */
.kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kpi-card { background: var(--surface); border: 1px solid var(--surface-2); border-radius: var(--r-lg); padding: 14px; }
.kpi-value { font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 800; }
.kpi-label { font-size: 11px; color: var(--text-3); margin-top: 2px; }

/* ── Stat row ─────────────────────────────────────────────── */
.stat-row { display: flex; gap: 8px; margin: 0 20px; }
.stat-item {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--surface-2);
  border-radius: var(--r-md);
  padding: 10px;
  text-align: center;
}

/* ── Rating stars ─────────────────────────────────────────── */
.rating { color: var(--warning); font-size: 12px; font-weight: 700; }

/* ── Open badge ───────────────────────────────────────────── */
.open-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--r-full);
}
.open-badge.open   { background: rgba(0,201,167,0.15); color: var(--primary); }
.open-badge.closed { background: rgba(239,68,68,0.15);  color: var(--error); }

/* ── Audio player mini ────────────────────────────────────── */
.audio-player {
  background: var(--surface);
  border: 1px solid var(--surface-2);
  border-radius: var(--r-lg);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.audio-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dk));
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  color: var(--bg);
  flex-shrink: 0;
}

.audio-progress {
  width: 100%;
  height: 3px;
  background: var(--surface-2);
  border-radius: var(--r-full);
  overflow: hidden;
  margin-top: 4px;
}

.audio-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-dk));
  border-radius: var(--r-full);
  width: 0%;
  transition: width 0.5s linear;
}

/* ── Map placeholder ──────────────────────────────────────── */
.map-container {
  width: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #0A1628;
  position: relative;
}

/* ── Alerts ───────────────────────────────────────────────── */
.alert { padding: 12px 14px; border-radius: var(--r-md); margin-bottom: 12px; font-size: 13px; }
.alert-success { background: rgba(0,201,167,0.1); border: 1px solid rgba(0,201,167,0.3); color: var(--primary); }
.alert-error   { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: var(--error); }

/* ── Skeleton loader ──────────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.6s ease-in-out infinite;
  border-radius: var(--r-md);
}

/* ── Filter chips ─────────────────────────────────────────── */
.filter-chips {
  display: flex; gap: 8px;
  overflow-x: auto; scrollbar-width: none;
  padding: 4px 20px 2px;
}
.filter-chips::-webkit-scrollbar { display: none; }

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  white-space: nowrap;
  padding: 7px 13px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--surface-2);
  color: var(--text-2);
  transition: all 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.chip.active {
  background: var(--primary);
  border-color: transparent;
  color: var(--bg);
}
.chip:active { transform: scale(0.95); }

/* ── Cover hero ───────────────────────────────────────────── */
.cover-hero {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
  background: var(--surface-2);
}
.cover-hero img { width: 100%; height: 100%; object-fit: cover; }
.cover-hero-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, var(--bg));
  padding: 24px 20px 16px;
}
.back-btn {
  position: absolute;
  top: 14px; left: 14px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(13,17,23,0.75);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  backdrop-filter: blur(6px);
}

/* ── Profile avatar ───────────────────────────────────────── */
.avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), #FF9A00);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: #fff;
}

/* ── Destination card ─────────────────────────────────────── */
.dest-card {
  width: 140px;
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--surface-2);
  border-radius: var(--r-lg);
  padding: 14px;
  scroll-snap-align: start;
}

/* ── Proximity banner ─────────────────────────────────────── */
.proximity-banner {
  margin: 0 20px;
  padding: 13px 15px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dk));
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 0 24px rgba(0,201,167,0.3);
}

/* ── Auth page ────────────────────────────────────────────── */
.auth-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  padding: 32px 24px;
}

/* ── Schedule grid ────────────────────────────────────────── */
.schedule-grid {
  display: grid;
  grid-template-columns: 60px 1fr 1fr;
  gap: 6px;
  align-items: center;
}

/* ── Gallery ──────────────────────────────────────────────── */
.gallery-grid {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 20px 4px;
  scrollbar-width: none;
}
.gallery-grid::-webkit-scrollbar { display: none; }

.gallery-thumb {
  width: 110px; height: 100px;
  border-radius: var(--r-md);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface-2);
}

/* ── Divider ──────────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--surface-2); margin: 4px 0; }

/* ── Empty state ──────────────────────────────────────────── */
.empty { text-align: center; padding: 48px 20px; color: var(--text-3); }
.empty-icon { font-size: 44px; margin-bottom: 12px; }

/* ── Loading spinner ──────────────────────────────────────── */
.spinner {
  width: 28px; height: 28px;
  border: 3px solid var(--surface-2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 40px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Toast ────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: calc(80px + var(--safe-bottom));
  left: 50%; transform: translateX(-50%);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  z-index: 200;
  opacity: 0;
  transition: opacity 0.25s;
  max-width: 90%;
}
.toast.show { opacity: 1; }

/* ── Desktop centering frame ──────────────────────────────── */
@media (min-width: 600px) {
  .bottom-nav { border-radius: 0; }
}


/* ── Alias variables courts ──────────────────────────────────── */
:root {
  --bg:       #0D1117;
  --surf:     #161B22;
  --surf2:    #1C2333;
  --muted:    #8B949E;
  --text2:    #8B949E;
  --warn:     #FFB700;
  --err:      #EF4444;
  --acc:      #8B5CF6;
  --sec:      #FF6B35;
  --pri2:     #00A085;
  --safe-b:   env(safe-area-inset-bottom, 0px);
}

/* ── Typographie manquante ───────────────────────────────────── */
.display-xl { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 28px; line-height: 1.15; letter-spacing: -.02em; }
.display-lg { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 22px; line-height: 1.2;  letter-spacing: -.02em; }
.display-md { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 18px; line-height: 1.25; }
.display-sm { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 15px; line-height: 1.3;  }

/* ── Fiche lieu ──────────────────────────────────────────────── */
.place-h { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--surface-2); text-decoration: none; color: inherit; transition: background .15s; }
.place-h:hover, .place-h:active { background: var(--surface); }
.place-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.place-img  { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.place-v    { border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--surface-2); }
.place-v-img  { width: 100%; height: 140px; object-fit: cover; }
.place-v-body { padding: 10px 12px; }

/* ── Info box ────────────────────────────────────────────────── */
.anecdote-box { background: rgba(0,201,167,.07); border: 1px solid rgba(0,201,167,.2); border-radius: 14px; padding: 14px 16px; color: inherit; text-decoration: none; display: block; }

/* ── Flash messages ──────────────────────────────────────────── */
.flash         { padding: 12px 16px; border-radius: 12px; font-size: 13px; margin: 8px 0; }
.flash-success { background: rgba(0,201,167,.1); border: 1px solid rgba(0,201,167,.3); color: var(--primary); }
.flash-error   { background: rgba(239,68,68,.1);  border: 1px solid rgba(239,68,68,.3);  color: var(--error); }

/* ── KPI ─────────────────────────────────────────────────────── */
.kpi-val  { font-family: 'JetBrains Mono', monospace; font-size: 26px; font-weight: 500; color: var(--primary); margin-bottom: 3px; }
.kpi-lbl  { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }

/* ── Galerie ─────────────────────────────────────────────────── */
.gallery-scroll { display: flex; gap: 10px; padding: 4px 20px 12px; overflow-x: auto; scrollbar-width: none; }
.gallery-scroll::-webkit-scrollbar { display: none; }

/* ── Boutons manquants ───────────────────────────────────────── */
.btn-sm { padding: 8px 14px; font-size: 12px; border-radius: 9px; }

/* ── Badges manquants ────────────────────────────────────────── */
.badge-warn    { background: rgba(255,183,0,.15); color: var(--warning); }

/* ── Carte ───────────────────────────────────────────────────── */
.map-fullscreen { position: absolute; top: 56px; left: 0; right: 0; bottom: 0; }
.map-fab { position: fixed; bottom: calc(80px + var(--safe-b) + 16px); right: 16px; z-index: 30; width: 44px; height: 44px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 20px; box-shadow: 0 4px 14px rgba(0,201,167,.4); border: none; cursor: pointer; }
.map-marker-pin { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg,#00C9A7,#00A085); border: 2.5px solid rgba(255,255,255,.3); display: flex; align-items: center; justify-content: center; font-size: 18px; box-shadow: 0 4px 14px rgba(0,0,0,.45); cursor: pointer; }

/* ── Fiche lieu — cover ──────────────────────────────────────── */
.cover-back, .cover-fav { position: absolute; top: 14px; width: 34px; height: 34px; border-radius: 50%; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; font-size: 16px; cursor: pointer; z-index: 2; border: none; color: #fff; }
.cover-back { left: 14px; }
.cover-fav  { right: 14px; }

/* ── Divers ──────────────────────────────────────────────────── */
.schedule-row    { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--surface-2); font-size: 13px; }
.stats-row       { display: flex; border-bottom: 1px solid var(--surface-2); }
.stat-val        { font-family: 'JetBrains Mono', monospace; font-size: 14px; font-weight: 600; color: var(--primary); }
.stat-lbl        { font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; }
.dash-tab        { padding: 0 0 16px; }
.inv-row         { border-bottom: 1px solid var(--surface-2); transition: background .15s; }
.audio-time      { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-3); margin-top: 4px; }
.star-btn        { font-size: 26px; background: none; border: none; cursor: pointer; color: var(--surface-2); transition: color .15s, transform .15s; }
.style-cb        { display: none; }
.style-cb + label { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 14px; background: var(--surface); border: 1.5px solid var(--surface-2); border-radius: 14px; cursor: pointer; transition: all .15s; font-size: 12px; }
.style-cb:checked + label { border-color: var(--primary); background: rgba(0,201,167,.08); color: var(--primary); }

/* ── Chat ────────────────────────────────────────────────────── */
.chat-header    { padding: 12px 16px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--surface-2); background: var(--surface); }
.chat-ai-avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg,#00C9A7,#00A085); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.chat-messages  { flex: 1; overflow-y: auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; }
.bubble-bot     { display: flex; gap: 8px; align-items: flex-end; }
.bubble-bot-text { background: var(--surface); border-radius: 16px 16px 16px 4px; padding: 10px 14px; font-size: 14px; max-width: 82%; line-height: 1.6; }
.chat-input-area { padding: 10px 16px; border-top: 1px solid var(--surface-2); background: var(--surface); }
.chat-input-bar  { display: flex; gap: 8px; align-items: center; }
.chat-input-box  { flex: 1; background: var(--surface-2); border: 1px solid var(--surface-2); border-radius: 100px; padding: 10px 16px; color: var(--text); font-size: 14px; outline: none; }
.chat-send       { width: 36px; height: 36px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; color: #0D1117; font-size: 16px; flex-shrink: 0; }
.quick-chat      { display: flex; gap: 8px; flex-wrap: wrap; padding: 6px 0 8px; }

/* ── Admin ───────────────────────────────────────────────────── */
.media-type-radio { display: none; }
.media-type-btn   { padding: 10px; text-align: center; border-radius: 10px; cursor: pointer; background: var(--surface); border: 1.5px solid var(--surface-2); transition: all .15s; font-size: 13px; }
.media-type-radio:checked + .media-type-btn { border-color: var(--primary); background: rgba(0,201,167,.08); color: var(--primary); font-weight: 700; }
