/* ══════════════════════════════════════════════════════════════
   GENTLE JOURNEY — Family & Carer Portal
   Premium dashboard for families to stay connected with
   their elderly loved ones' adventures and wellbeing.
══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&family=Outfit:wght@700;800;900&display=swap');

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --green-deep:   hsl(142, 69%, 20%);
  --green-mid:    hsl(142, 60%, 32%);
  --green-soft:   hsl(142, 45%, 45%);
  --green-pale:   hsl(142, 50%, 95%);
  --green-light:  hsl(142, 60%, 90%);
  --gold:         hsl(43, 93%, 52%);
  --gold-pale:    hsl(43, 100%, 96%);
  --gold-light:   hsl(43, 90%, 88%);
  --purple:       hsl(256, 60%, 58%);
  --purple-pale:  hsl(256, 60%, 96%);
  --blue:         hsl(210, 80%, 55%);
  --blue-pale:    hsl(210, 80%, 96%);
  --rose:         hsl(350, 80%, 58%);
  --rose-pale:    hsl(350, 80%, 96%);
  --dark:         hsl(220, 30%, 12%);
  --slate:        hsl(220, 15%, 40%);
  --muted:        hsl(220, 12%, 62%);
  --border:       hsl(220, 20%, 91%);
  --surface:      hsl(220, 30%, 97%);
  --white:        #ffffff;
  --sidebar-w:    260px;
  --radius-lg:    20px;
  --radius-md:    14px;
  --radius-sm:    10px;
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:    0 8px 24px rgba(0,0,0,0.08);
  --shadow-lg:    0 20px 50px rgba(0,0,0,0.10);
  --font-main:    'Plus Jakarta Sans', sans-serif;
  --font-head:    'Outfit', sans-serif;
  --transition:   0.2s cubic-bezier(0.34,1.2,0.64,1);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: var(--font-main);
  background: var(--surface);
  color: var(--dark);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Animations ─────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes shimmer {
  from { background-position: -200% 0; }
  to   { background-position: 200% 0; }
}
@keyframes famAlertIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Login Screen ────────────────────────────────────────────── */
#login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--green-deep) 0%, hsl(142,55%,28%) 50%, hsl(155,50%,22%) 100%);
  padding: 24px;
}
.login-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  animation: fadeUp 0.5s ease both;
}
.login-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  justify-content: center;
}
.login-logo-icon {
  width: 44px; height: 44px;
  background: var(--green-pale);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.login-logo-text { font-family: var(--font-head); font-size: 1.2rem; font-weight: 900; color: var(--green-deep); }
.login-hero {
  width: 100%; height: 180px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}
.login-title { font-family: var(--font-head); font-size: 1.5rem; font-weight: 900; color: var(--dark); margin-bottom: 6px; text-align: center; }
.login-sub { font-size: 0.88rem; color: var(--slate); text-align: center; margin-bottom: 28px; line-height: 1.6; }
.login-field { margin-bottom: 16px; }
.login-label { font-size: 0.78rem; font-weight: 700; color: var(--slate); margin-bottom: 6px; display: block; text-transform: uppercase; letter-spacing: 0.04em; }
.login-input {
  width: 100%; padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-family: var(--font-main); font-size: 0.95rem;
  outline: none; transition: border-color 0.2s;
  color: var(--dark);
}
.login-input:focus { border-color: var(--green-mid); }
.login-btn {
  width: 100%; padding: 14px;
  background: linear-gradient(135deg, var(--green-mid), var(--green-deep));
  color: white; border: none; border-radius: var(--radius-sm);
  font-family: var(--font-main); font-size: 1rem; font-weight: 700;
  cursor: pointer; margin-top: 6px;
  transition: opacity 0.2s, transform 0.1s;
}
.login-btn:hover { opacity: 0.92; }
.login-btn:active { transform: scale(0.99); }
.login-hint { font-size: 0.75rem; color: var(--muted); text-align: center; margin-top: 14px; line-height: 1.6; }
.login-error { background: hsl(0,80%,96%); border: 1px solid hsl(0,70%,85%); color: hsl(0,60%,40%); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 0.82rem; font-weight: 600; margin-top: 10px; display: none; }
.login-error.visible { display: block; }

/* ── App Shell ───────────────────────────────────────────────── */
#app-shell { display: none; min-height: 100vh; }
#app-shell.visible { display: flex; }

/* ── Sidebar ─────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: white;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.sidebar-logo {
  padding: 22px 20px 18px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.sidebar-logo-icon { width: 36px; height: 36px; background: var(--green-pale); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.sidebar-logo-text { font-family: var(--font-head); font-size: 0.95rem; font-weight: 900; color: var(--green-deep); line-height: 1.2; }
.sidebar-logo-sub { font-size: 0.65rem; font-weight: 500; color: var(--muted); }

.sidebar-client-pill {
  margin: 14px 14px 10px;
  background: linear-gradient(135deg, var(--green-pale), var(--gold-pale));
  border: 1px solid var(--green-light);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex; align-items: center; gap: 10px;
}
.sidebar-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green-mid), var(--green-deep));
  color: white; font-size: 0.9rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sidebar-client-name { font-weight: 800; color: var(--dark); font-size: 0.85rem; }
.sidebar-client-sub { font-size: 0.7rem; color: var(--slate); }

.sidebar-nav { flex: 1; padding: 8px 10px; overflow-y: auto; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  font-size: 0.88rem; font-weight: 600; color: var(--slate);
  cursor: pointer; transition: all var(--transition);
  margin-bottom: 2px; border: none; background: none;
  width: 100%; text-align: left;
}
.nav-item:hover { background: var(--surface); color: var(--dark); }
.nav-item.active { background: var(--green-pale); color: var(--green-deep); font-weight: 700; }
.nav-item .nav-icon { font-size: 1.1rem; width: 24px; text-align: center; }
.nav-badge { margin-left: auto; background: var(--rose); color: white; font-size: 0.62rem; font-weight: 800; padding: 2px 6px; border-radius: 10px; }

.sidebar-bottom {
  padding: 14px;
  border-top: 1px solid var(--border);
}
.sidebar-signout {
  width: 100%; padding: 9px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: white;
  font-family: var(--font-main); font-size: 0.8rem; font-weight: 600;
  color: var(--slate); cursor: pointer; transition: all 0.15s;
}
.sidebar-signout:hover { background: var(--surface); color: var(--dark); }

/* ── Main Content ────────────────────────────────────────────── */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100vh;
  padding: 0;
}
.page { display: none; animation: fadeUp 0.3s ease both; }
.page.active { display: block; }

/* ── Top Bar ─────────────────────────────────────────────────── */
.top-bar {
  background: white; border-bottom: 1px solid var(--border);
  padding: 16px 28px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
}
.top-bar-title { font-family: var(--font-head); font-size: 1.2rem; font-weight: 900; color: var(--dark); }
.top-bar-right { display: flex; align-items: center; gap: 12px; }
.live-indicator {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.75rem; font-weight: 700; color: var(--green-mid);
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green-soft);
  animation: pulse 2s ease infinite;
}

/* ── Page Content ────────────────────────────────────────────── */
.page-inner { padding: 28px; }

/* ── Status Hero Card ────────────────────────────────────────── */
.status-hero {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
  position: relative;
  min-height: 160px;
  display: flex; align-items: flex-end;
  box-shadow: var(--shadow-md);
}
.status-hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--green-deep) 0%, hsl(142,55%,28%) 100%);
}
.status-hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; opacity: 0.35;
}
.status-hero-content {
  position: relative; z-index: 1;
  padding: 24px 28px; width: 100%;
}
.status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  color: white; font-size: 0.72rem; font-weight: 800;
  padding: 4px 10px; border-radius: 20px; margin-bottom: 10px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.status-pill-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.status-hero-title { font-family: var(--font-head); font-size: 1.5rem; font-weight: 900; color: white; line-height: 1.25; margin-bottom: 6px; }
.status-hero-sub { font-size: 0.85rem; color: rgba(255,255,255,0.8); }

/* ── Card Grid ──────────────────────────────────────────────── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin-bottom: 24px; }
.card-grid-2 { grid-template-columns: 1fr 1fr; }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ── Stat Cards ─────────────────────────────────────────────── */
.stat-card {
  background: white; border-radius: var(--radius-md);
  padding: 20px 22px; border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 16px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
}
.stat-icon.green  { background: var(--green-pale); }
.stat-icon.gold   { background: var(--gold-pale); }
.stat-icon.purple { background: var(--purple-pale); }
.stat-icon.rose   { background: var(--rose-pale); }
.stat-icon.blue   { background: var(--blue-pale); }
.stat-num { font-family: var(--font-head); font-size: 1.8rem; font-weight: 900; color: var(--dark); line-height: 1; }
.stat-label { font-size: 0.75rem; font-weight: 600; color: var(--muted); margin-top: 3px; }

/* ── Section Cards ──────────────────────────────────────────── */
.section-card {
  background: white; border-radius: var(--radius-lg);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  overflow: hidden;
}
.section-card-header {
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.section-card-title { font-family: var(--font-head); font-size: 1rem; font-weight: 800; color: var(--dark); }
.section-card-sub { font-size: 0.75rem; color: var(--muted); margin-top: 2px; }
.section-card-body { padding: 18px 22px; }
.section-card-action {
  font-size: 0.78rem; font-weight: 700; color: var(--green-mid);
  background: none; border: none; cursor: pointer; padding: 0;
}

/* ── Trip Items ─────────────────────────────────────────────── */
.trip-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.trip-item:last-child { border-bottom: none; padding-bottom: 0; }
.trip-date-box {
  flex-shrink: 0; width: 48px; text-align: center;
  background: var(--green-pale); border-radius: var(--radius-sm);
  padding: 8px 4px;
}
.trip-date-day { font-family: var(--font-head); font-size: 1.2rem; font-weight: 900; color: var(--green-deep); line-height: 1; }
.trip-date-mon { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; color: var(--green-soft); letter-spacing: 0.04em; }
.trip-info { flex: 1; }
.trip-dest { font-weight: 800; color: var(--dark); font-size: 0.92rem; margin-bottom: 3px; }
.trip-meta { font-size: 0.75rem; color: var(--muted); }
.trip-status {
  font-size: 0.7rem; font-weight: 800; padding: 3px 9px;
  border-radius: 20px; flex-shrink: 0; align-self: flex-start;
}
.trip-status.pending  { background: var(--gold-pale); color: hsl(38,80%,30%); }
.trip-status.active   { background: var(--green-pale); color: var(--green-deep); }
.trip-status.done     { background: var(--surface); color: var(--muted); }
.trip-status.exp      { background: var(--purple-pale); color: var(--purple); }

/* ── Memory Cards ───────────────────────────────────────────── */
.memory-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.mem-card {
  background: white; border-radius: var(--radius-md);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition);
}
.mem-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.mem-card-img { width: 100%; height: 140px; object-fit: cover; background: var(--green-pale); display: flex; align-items: center; justify-content: center; }
.mem-card-img-placeholder { font-size: 2.5rem; }
.mem-card-body { padding: 14px; }
.mem-card-emoji { font-size: 1.4rem; margin-bottom: 6px; }
.mem-card-title { font-weight: 800; color: var(--dark); font-size: 0.88rem; margin-bottom: 3px; }
.mem-card-date { font-size: 0.7rem; color: var(--muted); margin-bottom: 8px; }
.mem-card-note { font-style: italic; font-size: 0.78rem; color: var(--slate); line-height: 1.5; }
.mem-card-add {
  border: 2px dashed var(--border); background: var(--surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 200px; cursor: pointer; gap: 8px;
  transition: all 0.15s ease;
}
.mem-card-add:hover { border-color: var(--green-mid); background: var(--green-pale); }
.mem-card-add-icon { font-size: 2rem; }
.mem-card-add-text { font-size: 0.82rem; font-weight: 700; color: var(--slate); text-align: center; }

/* ── Badge Grid ─────────────────────────────────────────────── */
.family-badge-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.fam-badge {
  text-align: center; padding: 14px 8px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border); background: white;
  transition: transform var(--transition);
}
.fam-badge.earned {
  border-color: var(--gold-light);
  background: linear-gradient(135deg, var(--gold-pale), white);
  box-shadow: var(--shadow-sm);
}
.fam-badge.locked { opacity: 0.4; }
.fam-badge:hover.earned { transform: translateY(-2px); }
.fam-badge-emoji { font-size: 2rem; margin-bottom: 6px; }
.fam-badge-name { font-size: 0.72rem; font-weight: 800; color: var(--dark); margin-bottom: 3px; }
.fam-badge-desc { font-size: 0.62rem; color: var(--muted); line-height: 1.3; }

/* ── Live Status Banner ──────────────────────────────────────── */
.live-trip-banner {
  background: linear-gradient(135deg, var(--green-mid), var(--green-deep));
  border-radius: var(--radius-md); padding: 16px 20px;
  display: flex; align-items: center; gap: 14px; margin-bottom: 20px;
  box-shadow: var(--shadow-md);
  animation: fadeUp 0.4s ease both;
}
.live-trip-icon { font-size: 2rem; flex-shrink: 0; }
.live-trip-info { flex: 1; }
.live-trip-title { font-family: var(--font-head); font-weight: 900; color: white; font-size: 1rem; margin-bottom: 2px; }
.live-trip-sub { font-size: 0.78rem; color: rgba(255,255,255,0.8); }
.live-trip-badge {
  background: var(--gold); color: var(--dark);
  font-size: 0.7rem; font-weight: 800;
  padding: 4px 10px; border-radius: 20px; flex-shrink: 0;
  animation: pulse 2s ease infinite;
}

/* ── Upload Box ──────────────────────────────────────────────── */
.upload-box {
  border: 2px dashed var(--border); border-radius: var(--radius-md);
  padding: 32px; text-align: center; cursor: pointer;
  transition: all 0.2s ease; background: var(--surface);
}
.upload-box:hover { border-color: var(--green-mid); background: var(--green-pale); }
.upload-box-icon { font-size: 2.5rem; margin-bottom: 10px; }
.upload-box-text { font-size: 0.88rem; font-weight: 700; color: var(--slate); margin-bottom: 4px; }
.upload-box-sub { font-size: 0.75rem; color: var(--muted); }
.upload-preview { width: 100%; border-radius: var(--radius-sm); margin-top: 14px; max-height: 200px; object-fit: cover; display: none; }

/* ── Experiences Browse ──────────────────────────────────────── */
.exp-browse-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.exp-browse-card {
  background: white; border-radius: var(--radius-md);
  border: 1px solid var(--border); overflow: hidden;
  box-shadow: var(--shadow-sm); cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.exp-browse-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.exp-browse-img { width: 100%; height: 110px; object-fit: cover; background: var(--green-pale); }
.exp-browse-body { padding: 12px; }
.exp-browse-emoji { font-size: 1.2rem; margin-bottom: 4px; }
.exp-browse-title { font-weight: 800; color: var(--dark); font-size: 0.85rem; margin-bottom: 2px; }
.exp-browse-sub { font-size: 0.7rem; color: var(--muted); }
.exp-browse-suggest {
  margin-top: 10px; width: 100%; padding: 8px;
  background: var(--green-pale); border: none;
  border-radius: var(--radius-sm); font-family: var(--font-main);
  font-size: 0.72rem; font-weight: 700; color: var(--green-deep);
  cursor: pointer; transition: background 0.15s;
}
.exp-browse-suggest:hover { background: var(--green-light); }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; border-radius: var(--radius-sm);
  font-family: var(--font-main); font-size: 0.85rem; font-weight: 700;
  cursor: pointer; border: none; transition: all 0.15s ease;
}
.btn-green { background: var(--green-mid); color: white; }
.btn-green:hover { background: var(--green-deep); }
.btn-gold { background: var(--gold); color: var(--dark); }
.btn-gold:hover { opacity: 0.88; }
.btn-ghost { background: white; color: var(--slate); border: 1.5px solid var(--border); }
.btn-ghost:hover { background: var(--surface); }
.btn-sm { padding: 7px 13px; font-size: 0.78rem; }
.btn-lg { padding: 14px 26px; font-size: 0.95rem; }

/* ── Empty States ────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 40px 24px; }
.empty-state-icon { font-size: 3rem; margin-bottom: 12px; }
.empty-state-title { font-family: var(--font-head); font-size: 1.05rem; font-weight: 800; color: var(--dark); margin-bottom: 6px; }
.empty-state-sub { font-size: 0.82rem; color: var(--muted); line-height: 1.6; max-width: 300px; margin: 0 auto; }

/* ── Toast ───────────────────────────────────────────────────── */
#fam-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--dark); color: white;
  padding: 12px 22px; border-radius: 30px;
  font-size: 0.85rem; font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 9999; pointer-events: none;
  opacity: 0; transition: opacity 0.3s ease;
  white-space: nowrap;
}
#fam-toast.visible { opacity: 1; }

/* ── Add Memory Modal ────────────────────────────────────────── */
.fam-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5); z-index: 9000;
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.fam-modal-overlay.active { display: flex; }
.fam-modal-card {
  background: white; border-radius: var(--radius-lg);
  padding: 28px; max-width: 480px; width: 100%;
  box-shadow: var(--shadow-lg);
  animation: fadeUp 0.3s ease both;
  max-height: 90vh; overflow-y: auto;
}
.fam-modal-title { font-family: var(--font-head); font-size: 1.2rem; font-weight: 900; color: var(--dark); margin-bottom: 6px; }
.fam-modal-sub { font-size: 0.82rem; color: var(--muted); margin-bottom: 20px; }
.fam-field { margin-bottom: 16px; }
.fam-label { font-size: 0.75rem; font-weight: 700; color: var(--slate); margin-bottom: 6px; display: block; text-transform: uppercase; letter-spacing: 0.04em; }
.fam-input, .fam-textarea, .fam-select {
  width: 100%; padding: 12px 14px;
  border-radius: var(--radius-sm); border: 1.5px solid var(--border);
  font-family: var(--font-main); font-size: 0.9rem; outline: none;
  transition: border-color 0.2s; color: var(--dark);
}
.fam-textarea { resize: none; min-height: 90px; }
.fam-input:focus, .fam-textarea:focus, .fam-select:focus { border-color: var(--green-mid); }
.fam-modal-actions { display: flex; gap: 10px; margin-top: 20px; }

/* ── Suggest Experience Panel ────────────────────────────────── */
.suggest-banner {
  background: linear-gradient(135deg, var(--purple-pale), white);
  border: 1.5px solid hsl(256,60%,85%);
  border-radius: var(--radius-md); padding: 16px 20px;
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 16px;
}
.suggest-banner-icon { font-size: 2rem; flex-shrink: 0; }
.suggest-banner-text { flex: 1; }
.suggest-banner-title { font-weight: 800; color: hsl(256,50%,35%); font-size: 0.9rem; margin-bottom: 3px; }
.suggest-banner-sub { font-size: 0.75rem; color: hsl(256,40%,55%); }

/* ── Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .sidebar { width: 100%; height: auto; position: relative; flex-direction: row; }
  .main-content { margin-left: 0; }
  .family-badge-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid-3 { grid-template-columns: 1fr; }
  .page-inner { padding: 16px; }
}
