/* ═══════════════════════════════════════════════════════════════
   FAMILY HUB — Skylight-inspired Design System
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg-primary: #f0f4f8;
  --bg-secondary: #ffffff;
  --bg-tertiary: #e8edf5;
  --bg-warm: #fef9f0;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 40px rgba(0,0,0,0.1);
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Section Colors */
  --color-dashboard: #6366f1;
  --color-calendar: #3b82f6;
  --color-chores: #f59e0b;
  --color-todos: #22c55e;
  --color-recipes: #ef6c57;
  --color-mealplan: #14b8a6;
  --color-gallery: #ec4899;
  --color-profiles: #8b5cf6;
  --color-store: #f97316;
  --color-admin: #64748b;

  /* Profile Avatar Colors */
  --avatar-1: #f97066;
  --avatar-2: #3b82f6;
  --avatar-3: #22c55e;
  --avatar-4: #f59e0b;
  --avatar-5: #8b5cf6;
  --avatar-6: #ec4899;
  --avatar-7: #14b8a6;
  --avatar-8: #f97316;

  /* Sidebar */
  --sidebar-width: 240px;
  --sidebar-collapsed: 72px;
  --bottom-bar-height: 72px;

  /* Transitions */
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  overflow: hidden;
  height: 100%;
}

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  height: 100%;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#app {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

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

/* ─── SIDEBAR ───────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100vh;
  z-index: 100;
  transition: var(--transition);
}

.sidebar.hidden { display: none; }

.sidebar-header {
  padding: 16px 12px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.logo-icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}

.logo-text {
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-dashboard), var(--color-calendar));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
  overflow: hidden;
  transition: opacity var(--transition), width var(--transition);
}

.sidebar-toggle {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: var(--transition);
  padding: 0;
}

.sidebar-toggle:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.sidebar-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition);
}

/* ─── COLLAPSED SIDEBAR ─────────────────────────────────────── */
.sidebar.collapsed {
  width: var(--sidebar-collapsed);
  min-width: var(--sidebar-collapsed);
}

.sidebar.collapsed .sidebar-header {
  justify-content: center;
  padding: 16px 8px;
}

.sidebar.collapsed .logo-text {
  display: none;
}

.sidebar.collapsed .sidebar-toggle svg {
  transform: rotate(180deg);
}

.sidebar.collapsed .nav-list {
  padding: 12px 6px;
}

.sidebar.collapsed .nav-item {
  justify-content: center;
  padding: 12px;
  gap: 0;
}

.sidebar.collapsed .nav-item span {
  display: none;
}

.sidebar.collapsed .sidebar-footer {
  padding: 12px 6px;
}

.sidebar.collapsed .profile-selector {
  padding: 8px;
  display: flex;
  justify-content: center;
}

.sidebar.collapsed .profile-name {
  display: none;
}

.sidebar.collapsed .current-profile {
  gap: 0;
  justify-content: center;
}

.sidebar.collapsed .logout-btn {
  justify-content: center;
  padding: 12px;
  gap: 0;
}

.sidebar.collapsed .logout-btn span {
  display: none;
}

.nav-list {
  list-style: none;
  padding: 12px 8px;
  flex: 1;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 14.5px;
  transition: var(--transition);
  margin-bottom: 2px;
  user-select: none;
  -webkit-user-select: none;
}

.nav-item svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  stroke-width: 2;
}

.nav-item:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.nav-item.active {
  background: var(--color-dashboard);
  color: white;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.nav-item[data-page="calendar"].active { background: var(--color-calendar); box-shadow: 0 2px 8px rgba(59,130,246,0.3); }
.nav-item[data-page="chores"].active { background: var(--color-chores); box-shadow: 0 2px 8px rgba(245,158,11,0.3); }
.nav-item[data-page="todos"].active { background: var(--color-todos); box-shadow: 0 2px 8px rgba(34,197,94,0.3); }
.nav-item[data-page="recipes"].active { background: var(--color-recipes); box-shadow: 0 2px 8px rgba(239,108,87,0.3); }
.nav-item[data-page="mealplan"].active { background: var(--color-mealplan); box-shadow: 0 2px 8px rgba(20,184,166,0.3); }
.nav-item[data-page="gallery"].active { background: var(--color-gallery); box-shadow: 0 2px 8px rgba(236,72,153,0.3); }
.nav-item[data-page="profiles"].active { background: var(--color-profiles); box-shadow: 0 2px 8px rgba(139,92,246,0.3); }
.nav-item[data-page="store"].active { background: var(--color-store); box-shadow: 0 2px 8px rgba(249,115,22,0.3); }
.nav-item[data-page="admin"].active { background: var(--color-admin); box-shadow: 0 2px 8px rgba(100,116,139,0.3); }

.sidebar-footer {
  padding: 12px 8px;
  border-top: 1px solid var(--border-light);
}

.profile-selector {
  padding: 8px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

.profile-selector:hover {
  background: var(--bg-tertiary);
}

.current-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-avatar {
  font-size: 24px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
}

.profile-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
}

.logout-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: none;
  background: none;
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 14px;
  font-family: inherit;
  width: 100%;
  transition: var(--transition);
}

.logout-btn svg { width: 20px; height: 20px; }
.logout-btn:hover { background: #fef2f2; color: #ef4444; }

/* ─── BOTTOM BAR (Mobile) ───────────────────────────────────── */
.bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-bar-height);
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  justify-content: space-around;
  align-items: center;
  padding: 0 4px;
  padding-bottom: env(safe-area-inset-bottom, 0);
  z-index: 100;
}

.bottom-bar.hidden { display: none !important; }

.bottom-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 12px;
  border: none;
  background: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  font-family: inherit;
  transition: var(--transition);
  min-width: 60px;
}

.bottom-item svg { width: 24px; height: 24px; }

.bottom-item.active {
  color: var(--color-dashboard);
}

/* ─── MORE MENU ─────────────────────────────────────────────── */
.more-menu {
  position: fixed;
  bottom: var(--bottom-bar-height);
  left: 0;
  right: 0;
  top: 0;
  background: rgba(0,0,0,0.3);
  z-index: 99;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.more-menu.hidden { display: none; }

.more-menu-content {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 16px;
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-xl);
}

.more-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: none;
  background: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-primary);
  transition: var(--transition);
}

.more-menu-item:hover { background: var(--bg-tertiary); }

/* ─── MAIN CONTENT ──────────────────────────────────────────── */
.main-content {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.page-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* ─── PAGE HEADER ───────────────────────────────────────────── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.page-header h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
}

.page-header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ─── CARDS ─────────────────────────────────────────────────── */
.card {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.card-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
}

/* ─── BUTTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
  min-height: 48px;
  line-height: 1;
  text-decoration: none;
}

.btn svg { width: 18px; height: 18px; }

.btn-primary {
  background: var(--color-dashboard);
  color: white;
  box-shadow: 0 2px 8px rgba(99,102,241,0.3);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(99,102,241,0.4); }
.btn-primary:active { transform: translateY(0); }

.btn-success { background: var(--color-todos); color: white; box-shadow: 0 2px 8px rgba(34,197,94,0.3); }
.btn-danger { background: #ef4444; color: white; box-shadow: 0 2px 8px rgba(239,68,68,0.3); }
.btn-warning { background: var(--color-chores); color: white; box-shadow: 0 2px 8px rgba(245,158,11,0.3); }

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 2px solid var(--border);
}
.btn-outline:hover { border-color: var(--color-dashboard); color: var(--color-dashboard); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 10px 16px;
}
.btn-ghost:hover { background: var(--bg-tertiary); color: var(--text-primary); }

.btn-icon {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: var(--radius);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
  min-height: 36px;
}

.btn-lg {
  padding: 16px 28px;
  font-size: 16px;
  min-height: 56px;
  border-radius: var(--radius-lg);
}

.btn-block { width: 100%; }

.btn-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: var(--color-dashboard);
  color: white;
  box-shadow: var(--shadow-lg);
  font-size: 24px;
  z-index: 50;
  padding: 0;
}

.btn-fab:hover { transform: translateY(-2px); box-shadow: var(--shadow-xl); }

/* ─── FORM ELEMENTS ─────────────────────────────────────────── */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--bg-secondary);
  transition: var(--transition);
  min-height: 48px;
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-dashboard);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-inline {
  display: flex;
  gap: 8px;
  align-items: center;
}

.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ─── MODAL ─────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 16px;
  animation: fadeIn 0.2s ease;
}

.modal-overlay.hidden { display: none; }

.modal {
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  padding: 28px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: var(--shadow-xl);
  animation: slideUp 0.25s ease;
}

.modal .form-row-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  overflow: hidden;
}

.modal .form-row-stack > * {
  min-width: 0;
}

.modal .form-row-stack input[type="datetime-local"],
.modal .form-row-stack input[type="date"],
.modal .form-row-stack input[type="time"] {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  font-size: 14px;
  padding: 10px 8px;
}

@media (max-width: 600px) {
  .modal .form-row-stack {
    grid-template-columns: 1fr;
  }
}

/* Profile chips for event assignment */
.profile-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.profile-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  border: 2px solid var(--border);
  background: var(--bg-secondary);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  transition: var(--transition);
}

.profile-chip:hover {
  border-color: var(--text-muted);
}

.profile-chip.selected {
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow);
}

.profile-chip .chip-emoji {
  font-size: 16px;
}

.color-grid-lg {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.color-grid-lg .color-option {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  border: 3px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.color-grid-lg .color-option:hover { transform: scale(1.15); }
.color-grid-lg .color-option.selected { border-color: var(--text-primary); box-shadow: var(--shadow); }
.color-grid-lg .color-option.used-by-member {
  opacity: 0.3;
  pointer-events: none;
  position: relative;
}

.modal h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 24px;
}

/* ─── TOAST ─────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 14px 20px;
  box-shadow: var(--shadow-lg);
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInRight 0.3s ease;
  max-width: 360px;
  border-left: 4px solid var(--color-dashboard);
}

.toast.success { border-left-color: var(--color-todos); }
.toast.error { border-left-color: #ef4444; }
.toast.warning { border-left-color: var(--color-chores); }

/* ─── ANIMATIONS ────────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeInUp 0.3s ease forwards;
}

/* ═══════════════════════════════════════════════════════════════
   AUTH SCREENS
   ═══════════════════════════════════════════════════════════════ */
.auth-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100vw;
  background: linear-gradient(135deg, #e0e7ff 0%, #fce7f3 50%, #fef3c7 100%);
  padding: 20px;
}

.auth-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  padding: 40px;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  text-align: center;
}

.auth-card .logo-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 8px;
}

.auth-card h1 {
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-dashboard), var(--color-gallery));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.auth-card p {
  color: var(--text-secondary);
  margin-bottom: 28px;
  font-weight: 500;
}

.auth-card .form-group { text-align: left; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.db-option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.db-option {
  padding: 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: center;
  font-weight: 700;
  transition: var(--transition);
  background: var(--bg-secondary);
  font-family: inherit;
  font-size: 14px;
  color: var(--text-secondary);
}

.db-option:hover { border-color: var(--color-dashboard); }
.db-option.selected {
  border-color: var(--color-dashboard);
  background: rgba(99,102,241,0.08);
  color: var(--color-dashboard);
}

.db-option .db-icon {
  font-size: 28px;
  display: block;
  margin-bottom: 8px;
}

/* ═══════════════════════════════════════════════════════════════
   PROFILE PICKER
   ═══════════════════════════════════════════════════════════════ */
.profile-picker-modal {
  max-width: 560px;
  text-align: center;
}

.profile-picker-modal h2 {
  font-size: 26px;
  margin-bottom: 24px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.profile-card:hover {
  background: var(--bg-tertiary);
  transform: translateY(-2px);
}

.profile-card.selected {
  border-color: var(--color-dashboard);
  background: rgba(99,102,241,0.05);
}

.profile-card .avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: var(--shadow);
}

.profile-card .name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════════════════
   DASHBOARD
   ═══════════════════════════════════════════════════════════════ */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.dashboard-hero {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
  border-radius: var(--radius-xl);
  padding: 32px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 4px 20px rgba(99,102,241,0.3);
}

.hero-text h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 4px;
}

.hero-text p {
  font-size: 16px;
  opacity: 0.9;
  font-weight: 500;
}

.hero-clock {
  font-size: 48px;
  font-weight: 800;
  text-align: right;
  line-height: 1;
}

.hero-clock .clock-period {
  font-size: 20px;
  font-weight: 600;
  opacity: 0.8;
}

.dashboard-card {
  composes: card;
}

.dashboard-card .card-header .card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.dash-event-list,
.dash-chore-list,
.dash-todo-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dash-event-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  transition: var(--transition);
}

.dash-event-item:hover { background: var(--bg-tertiary); }

.event-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.event-time {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  min-width: 55px;
}

.event-title {
  font-weight: 600;
  font-size: 14px;
}

.dash-chore-item,
.dash-todo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  cursor: pointer;
  transition: var(--transition);
}

.dash-chore-item:hover,
.dash-todo-item:hover {
  background: var(--bg-tertiary);
}

.chore-avatar-small,
.todo-avatar-small {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}

.quick-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 12px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  background: var(--bg-primary);
  text-decoration: none;
  color: var(--text-primary);
}

.quick-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.quick-link-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
}

.quick-link-label {
  font-size: 13px;
  font-weight: 700;
}

.empty-state {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  font-weight: 500;
}

.empty-state .empty-icon {
  font-size: 40px;
  margin-bottom: 8px;
  display: block;
}

/* ═══════════════════════════════════════════════════════════════
   CALENDAR
   ═══════════════════════════════════════════════════════════════ */
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}

.calendar-profile-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.cal-profile-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 5px 6px;
  border-radius: var(--radius-full);
  border: none;
  box-shadow: var(--shadow-sm);
  cursor: default;
  transition: var(--transition);
}

.cal-profile-chip:hover {
  box-shadow: var(--shadow);
  filter: brightness(1.08);
}

.cal-profile-chip-avatar {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  background: rgba(255,255,255,0.3);
}

.cal-profile-chip-name {
  font-size: 12px;
  font-weight: 700;
  color: white;
  white-space: nowrap;
}

.calendar-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.calendar-nav h2 {
  font-size: 24px;
  font-weight: 800;
  min-width: 220px;
  text-align: center;
}

.calendar-nav .btn-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.calendar-nav .btn-icon:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
  background: var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  max-width: 100%;
}

.calendar-page {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 96px);
  min-height: 0;
  overflow: hidden;
}

.calendar-grid {
  flex: 1;
  grid-auto-rows: 1fr;
}

.calendar-day-header {
  padding: 10px 8px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.calendar-day {
  min-height: 0;
  padding: 8px;
  background: var(--bg-secondary);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.calendar-day:hover {
  background: var(--bg-primary);
}

.calendar-day.other-month {
  background: var(--bg-primary);
  opacity: 0.5;
}

.calendar-day.today {
  background: rgba(99,102,241,0.06);
}

.calendar-day.today .day-number {
  background: var(--color-calendar);
  color: white;
  border-radius: var(--radius-full);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.day-number {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.day-events {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.day-event {
  font-size: 13px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.day-event-more {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 2px 4px;
}

/* ═══════════════════════════════════════════════════════════════
   CHORES
   ═══════════════════════════════════════════════════════════════ */

/* Filter chips (shared with chores page) */
.chores-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 10px 20px;
  border-radius: var(--radius-full);
  border: 2px solid var(--border);
  background: var(--bg-secondary);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  min-height: 44px;
}

.filter-chip:hover { border-color: var(--color-chores); color: var(--color-chores); }
.filter-chip.active {
  background: var(--color-chores);
  color: white;
  border-color: var(--color-chores);
}

/* ── Column layout ── */
.chores-page { display: flex; flex-direction: column; height: 100%; }

.chores-columns-wrap {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 20px;
  flex: 1;
  align-items: flex-start;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.chores-columns-wrap:active { cursor: grabbing; }
.chores-columns-wrap::-webkit-scrollbar { height: 8px; }
.chores-columns-wrap::-webkit-scrollbar-track { background: transparent; }
.chores-columns-wrap::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* ── Single column ── */
.chore-column {
  flex: 0 0 340px;
  display: flex;
  flex-direction: column;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  overflow: hidden;
  user-select: none;
}

.chore-column-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  color: white;
}

.chore-col-avatar {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}

.chore-col-info { flex: 1; min-width: 0; }

.chore-col-name {
  font-size: 19px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chore-col-stats {
  font-size: 14px;
  opacity: 0.9;
  font-weight: 600;
  margin-top: 3px;
}

/* Progress bar */
.chore-col-progress {
  height: 6px;
  background: var(--border-light);
  overflow: hidden;
}

.chore-col-progress-bar {
  height: 100%;
  transition: width 0.4s ease;
  opacity: 0.8;
}

/* Column body (scrollable chore list) */
.chore-col-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  overflow-y: auto;
  max-height: calc(100vh - 280px);
}

.chore-col-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 32px 0;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 600;
}
.chore-col-empty span:first-child { font-size: 32px; }

/* ── Chore card ── */
.chore-card {
  background: var(--bg-primary);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: var(--transition);
}

.chore-card:hover { box-shadow: var(--shadow); }

.chore-card.completed {
  opacity: 0.55;
}

.chore-card.completed .chore-card-title {
  text-decoration: line-through;
  color: var(--text-muted);
}

.chore-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.chore-card-check {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 3px solid var(--border);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: white;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition);
  font-family: inherit;
}

.chore-card-check:hover { border-color: var(--color-chores); }
.chore-card-check.done { color: white; }

.chore-card-title {
  flex: 1;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.chore-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-left: 50px;
}

.chore-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.chore-tag.points {
  background: rgba(245,158,11,0.12);
  color: var(--color-chores);
}

.chore-card-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding-top: 2px;
}

/* ── Extra-small button variant ── */
.btn-xs {
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
  min-height: 34px;
}
.btn-xs:hover { background: var(--bg-tertiary); }

/* ═══════════════════════════════════════════════════════════════
   TODOS
   ═══════════════════════════════════════════════════════════════ */
.todo-lists-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.todo-list-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
}

.todo-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.todo-list-title {
  font-size: 18px;
  font-weight: 800;
}

.todo-count {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  color: var(--text-muted);
}

.todo-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.todo-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.todo-item:hover { background: var(--bg-primary); }

.todo-item.completed { opacity: 0.5; }
.todo-item.completed .todo-text { text-decoration: line-through; }

.todo-check {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
  font-size: 12px;
  color: transparent;
}

.todo-item.completed .todo-check {
  background: var(--color-todos);
  border-color: var(--color-todos);
  color: white;
}

.todo-text {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
}

.todo-priority {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.todo-priority.high { background: #ef4444; }
.todo-priority.medium { background: var(--color-chores); }
.todo-priority.low { background: var(--color-todos); }

.todo-add-inline {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.todo-add-inline input {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  outline: none;
  transition: var(--transition);
}

.todo-add-inline input:focus { border-color: var(--color-todos); }

/* ═══════════════════════════════════════════════════════════════
   RECIPES
   ═══════════════════════════════════════════════════════════════ */
.recipes-toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.search-box {
  flex: 1;
  min-width: 200px;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  outline: none;
  transition: var(--transition);
}

.search-box input:focus { border-color: var(--color-recipes); }

.search-box svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

.category-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.category-pill {
  padding: 8px 14px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--bg-tertiary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.category-pill:hover { background: var(--border); }
.category-pill.active { background: var(--color-recipes); color: white; }

.recipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.recipe-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: var(--transition);
}

.recipe-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.recipe-image {
  height: 160px;
  background: linear-gradient(135deg, #fce7f3, #fef3c7, #e0e7ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.recipe-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recipe-card-body {
  padding: 16px;
}

.recipe-card-body h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.recipe-card-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.recipe-card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.recipe-category-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  margin-top: 8px;
}

/* Recipe Detail View */
.recipe-detail {
  max-width: 700px;
}

.recipe-detail-header {
  margin-bottom: 24px;
}

.recipe-detail-header h2 {
  font-size: 28px;
  margin-bottom: 8px;
}

.recipe-detail-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.recipe-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-primary);
  border-radius: var(--radius);
  min-width: 80px;
}

.recipe-stat .stat-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-recipes);
}

.recipe-stat .stat-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.recipe-section {
  margin-bottom: 24px;
}

.recipe-section h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.ingredient-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ingredient-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  font-weight: 500;
}

.ingredient-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-recipes);
  flex-shrink: 0;
}

.instruction-list {
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.instruction-list li {
  counter-increment: step;
  display: flex;
  gap: 14px;
  padding: 12px;
  background: var(--bg-primary);
  border-radius: var(--radius);
  font-weight: 500;
  line-height: 1.6;
}

.instruction-list li::before {
  content: counter(step);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--color-recipes);
  color: white;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   MEAL PLAN
   ═══════════════════════════════════════════════════════════════ */
.mealplan-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.mealplan-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mealplan-nav h2 {
  font-size: 20px;
  font-weight: 800;
  min-width: 200px;
  text-align: center;
}

.mealplan-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  overflow-x: auto;
}

.mealplan-day {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 14px;
  min-width: 140px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.mealplan-day.today {
  border-color: var(--color-mealplan);
  box-shadow: 0 0 0 2px rgba(20,184,166,0.15);
}

.mealplan-day-header {
  text-align: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}

.mealplan-day-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.mealplan-day-date {
  font-size: 20px;
  font-weight: 800;
}

.meal-slot {
  margin-bottom: 10px;
}

.meal-slot-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.meal-slot-content {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  min-height: 36px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.meal-slot-content.empty {
  border: 2px dashed var(--border);
  color: var(--text-muted);
  justify-content: center;
}

.meal-slot-content.filled {
  background: var(--bg-primary);
  color: var(--text-primary);
  position: relative;
}

.meal-slot-content.empty:hover { border-color: var(--color-mealplan); color: var(--color-mealplan); }
.meal-slot-content.filled:hover { background: var(--bg-tertiary); }

.meal-remove {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: rgba(239,68,68,0.1);
  color: #ef4444;
  border: none;
  cursor: pointer;
  font-size: 12px;
  display: none;
  align-items: center;
  justify-content: center;
}

.meal-slot-content.filled:hover .meal-remove { display: flex; }

/* ═══════════════════════════════════════════════════════════════
   GALLERY
   ═══════════════════════════════════════════════════════════════ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.gallery-item {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: var(--bg-tertiary);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  color: white;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-item-overlay { opacity: 1; }

.gallery-item-caption {
  font-size: 13px;
  font-weight: 600;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.92);
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox.hidden { display: none; }

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.15);
  color: white;
  border: none;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 85vh;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.18);
  color: white;
  border: 2px solid rgba(255,255,255,0.25);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.32); }
.lightbox-nav.prev { left: 16px; }
.lightbox-nav.next { right: 16px; }

.lightbox-footer {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.lightbox-caption {
  color: white;
  font-weight: 600;
  text-align: center;
  background: rgba(0,0,0,0.55);
  padding: 6px 20px;
  border-radius: var(--radius-full);
  font-size: 14px;
}

.lightbox-counter {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.lightbox-delete {
  margin-top: 4px;
  padding: 8px 20px;
  background: rgba(239,68,68,0.75);
  color: white;
  border: 2px solid rgba(239,68,68,0.5);
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.lightbox-delete:hover { background: rgba(239,68,68,1); }
.lightbox-delete.hidden { display: none; }

/* ═══════════════════════════════════════════════════════════════
   PROFILES PAGE
   ═══════════════════════════════════════════════════════════════ */
.profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.profile-detail-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.profile-detail-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.profile-detail-avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  box-shadow: var(--shadow);
}

.profile-detail-name {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 4px;
}

.profile-detail-role {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: capitalize;
  margin-bottom: 16px;
}

.profile-stats {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.profile-stat {
  text-align: center;
}

.profile-stat-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-profiles);
}

.profile-stat-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.profile-detail-actions {
  margin-top: 16px;
  display: flex;
  gap: 8px;
  justify-content: center;
}

/* Avatar/Emoji Picker */
.emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
  max-height: 200px;
  overflow-y: auto;
  padding: 4px;
}

.emoji-option {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  background: none;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.emoji-option:hover { background: var(--bg-tertiary); }
.emoji-option.selected { border-color: var(--color-profiles); background: rgba(139,92,246,0.1); }

.color-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.color-option {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 3px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.color-option:hover { transform: scale(1.15); }
.color-option.selected { border-color: var(--text-primary); box-shadow: var(--shadow); }

/* ═══════════════════════════════════════════════════════════════
   SLIDESHOW MODE
   ═══════════════════════════════════════════════════════════════ */
.slideshow-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #000;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slideshow-overlay.hidden { display: none; }

.slideshow-overlay > img {
  max-width: 100vw;
  max-height: 100vh;
  object-fit: contain;
}

.slideshow-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.75);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  pointer-events: none;
}

.slideshow-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.15);
  color: white;
  border: 2px solid rgba(255,255,255,0.2);
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}
.slideshow-nav:hover { background: rgba(255,255,255,0.28); }
.slideshow-nav.prev { left: 20px; }
.slideshow-nav.next { right: 20px; }

.slideshow-exit {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 12px 24px;
  background: rgba(255,255,255,0.18);
  color: white;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.slideshow-exit:hover { background: rgba(255,255,255,0.3); }

/* ═══════════════════════════════════════════════════════════════
   PROFILE VIEW TOGGLE
   ═══════════════════════════════════════════════════════════════ */
.profile-view-toggle {
  display: flex;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
}

.view-toggle-btn {
  padding: 8px 16px;
  border: none;
  background: transparent;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.view-toggle-btn:hover { color: var(--text-primary); }

.view-toggle-btn.active {
  background: var(--color-profiles);
  color: white;
  box-shadow: var(--shadow-sm);
}

/* ═══════════════════════════════════════════════════════════════
   PERSONAL PROFILE
   ═══════════════════════════════════════════════════════════════ */
.personal-profile {
  max-width: 800px;
}

.personal-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  padding: 24px;
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
}

.personal-avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  flex-shrink: 0;
  box-shadow: var(--shadow);
}

.personal-info h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 2px;
}

.personal-role {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: capitalize;
  background: var(--bg-tertiary);
  padding: 2px 12px;
  border-radius: var(--radius-full);
  display: inline-block;
}

.personal-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.personal-stat-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.personal-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.personal-stat-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.personal-stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
}

.personal-stat-card.earned .personal-stat-value { color: #f59e0b; }
.personal-stat-card.spent .personal-stat-value { color: #ef4444; }
.personal-stat-card.balance .personal-stat-value { color: #22c55e; }
.personal-stat-card.chores .personal-stat-value { color: var(--color-profiles); }

.personal-stat-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 2px;
}

.personal-sections {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.personal-section {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.personal-section h3 {
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 800;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-primary);
}

.personal-list {
  max-height: 400px;
  overflow-y: auto;
}

.personal-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.personal-list-item:last-child { border-bottom: none; }
.personal-list-item:hover { background: var(--bg-primary); }

.personal-list-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}

.personal-list-icon.chore-done {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.personal-list-icon.purchase {
  background: rgba(249, 115, 22, 0.15);
  color: #f97316;
}

.personal-list-info {
  flex: 1;
  min-width: 0;
}

.personal-list-title {
  font-weight: 700;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.personal-list-meta {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2px;
}

.personal-list-points {
  font-weight: 800;
  font-size: 14px;
  color: #22c55e;
  flex-shrink: 0;
}

.personal-list-points.spent {
  color: #ef4444;
}

/* ═══════════════════════════════════════════════════════════════
   POINT STORE
   ═══════════════════════════════════════════════════════════════ */
.store-balance-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-weight: 800;
  box-shadow: var(--shadow);
  border: 2px solid #f59e0b;
}

.balance-icon { font-size: 18px; }
.balance-amount { font-size: 20px; color: #b45309; }
.balance-label { font-size: 13px; color: #92400e; font-weight: 700; }

.store-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.store-summary-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
}

.store-summary-icon { font-size: 24px; margin-bottom: 4px; }

.store-summary-value {
  font-size: 24px;
  font-weight: 800;
}

.store-summary-card.earned .store-summary-value { color: #f59e0b; }
.store-summary-card.spent .store-summary-value { color: #ef4444; }
.store-summary-card.balance .store-summary-value { color: #22c55e; }

.store-summary-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 2px;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.store-item-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.store-item-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.store-item-card.cant-afford {
  opacity: 0.6;
}

.store-item-emoji {
  font-size: 48px;
  line-height: 1;
  margin-bottom: 4px;
}

.store-item-name {
  font-size: 16px;
  font-weight: 800;
}

.store-item-desc {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.store-item-price {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-radius: var(--radius-full);
  margin: 4px 0;
}

.price-star { font-size: 14px; }
.price-amount { font-size: 16px; font-weight: 800; color: #b45309; }
.price-label { font-size: 12px; color: #92400e; font-weight: 700; }

.store-buy-btn {
  margin-top: 4px;
  width: 100%;
}

/* ═══════════════════════════════════════════════════════════════
   ADMIN PAGE
   ═══════════════════════════════════════════════════════════════ */
.admin-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  padding: 4px;
  margin-bottom: 24px;
  width: fit-content;
}

.admin-tab {
  padding: 10px 20px;
  border: none;
  background: transparent;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.admin-tab:hover { color: var(--text-primary); }

.admin-tab.active {
  background: var(--color-admin);
  color: white;
  box-shadow: var(--shadow-sm);
}

.admin-section {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.admin-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-primary);
}

.admin-section-header h3 {
  font-size: 16px;
  font-weight: 800;
}

.admin-items-list,
.admin-purchases-list {
  max-height: 600px;
  overflow-y: auto;
}

.admin-item-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.admin-item-row:last-child { border-bottom: none; }
.admin-item-row:hover { background: var(--bg-primary); }

.admin-item-emoji {
  font-size: 28px;
  flex-shrink: 0;
}

.admin-item-info {
  flex: 1;
  min-width: 0;
}

.admin-item-name {
  font-weight: 700;
  font-size: 15px;
}

.admin-item-meta {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2px;
}

.admin-item-status {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.admin-item-status.available {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.admin-item-status.unavailable {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.admin-item-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

/* Purchase rows */
.admin-purchase-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.admin-purchase-row:last-child { border-bottom: none; }
.admin-purchase-row:hover { background: var(--bg-primary); }

.admin-purchase-user {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 120px;
}

.mini-avatar {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.purchase-user-name {
  font-weight: 700;
  font-size: 14px;
}

.admin-purchase-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.purchase-cost {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.admin-purchase-date {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  flex-shrink: 0;
  min-width: 100px;
}

.admin-purchase-status {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  align-items: center;
}

.status-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.pending {
  background: rgba(245, 158, 11, 0.15);
  color: #b45309;
}

.status-badge.approved {
  background: rgba(34, 197, 94, 0.15);
  color: #16a34a;
}

.status-badge.denied {
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626;
}

/* Settings */
.admin-settings-list {
  padding: 8px 0;
}

.admin-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  gap: 20px;
}

.admin-setting-name {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
}

.admin-setting-desc {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
  max-width: 400px;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--border);
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: var(--radius-full);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.toggle-switch input:checked + .toggle-slider {
  background: #22c55e;
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(24px);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .calendar-page { height: auto; }
  .calendar-grid .calendar-day { min-height: 80px; }
  .mealplan-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
  .sidebar { display: none !important; }

  .bottom-bar:not(.hidden) {
    display: flex !important;
  }

  .main-content {
    padding-bottom: var(--bottom-bar-height);
  }

  .page-content {
    padding: 16px;
  }

  .page-header h1 { font-size: 22px; }

  .dashboard-hero {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }

  .hero-clock {
    text-align: center;
    font-size: 36px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .calendar-grid { font-size: 12px; }
  .calendar-day { min-height: 60px; padding: 4px; }
  .calendar-nav h2 { font-size: 18px; min-width: 160px; }
  .day-event { display: none; }
  .day-number { font-size: 12px; }
  .calendar-day.today .day-number { width: 24px; height: 24px; }
  .calendar-day-header { padding: 8px 4px; font-size: 11px; }

  .calendar-day .day-events {
    flex-direction: row;
    gap: 2px;
    flex-wrap: wrap;
  }

  .calendar-day .day-event {
    display: block;
    width: 6px;
    height: 6px;
    border-radius: var(--radius-full);
    padding: 0;
    font-size: 0;
    overflow: hidden;
  }

  .mealplan-grid {
    grid-template-columns: 1fr;
  }

  .recipes-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  .recipe-image { height: 120px; }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
  }

  .todo-lists-container { grid-template-columns: 1fr; }

  .btn-fab {
    bottom: calc(var(--bottom-bar-height) + 16px);
    right: 16px;
    width: 52px;
    height: 52px;
  }

  .form-row { grid-template-columns: 1fr; }

  .modal {
    padding: 20px;
    margin: 8px;
    max-height: 85vh;
    border-radius: var(--radius-lg);
  }

  .leaderboard { gap: 10px; }
  .leaderboard-card { min-width: 80px; padding: 12px; }

  .profiles-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

  /* Calendar header responsive — hide icon, keep name */
  .cal-profile-chip-avatar { display: none; }
  .cal-profile-chip { padding: 4px 10px; }
  .cal-profile-chip-name { font-size: 11px; }

  /* Store responsive */
  .store-summary { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .store-summary-value { font-size: 18px; }
  .store-summary-card { padding: 14px; }
  .store-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .store-item-emoji { font-size: 36px; }
  .store-balance-badge { padding: 6px 12px; }
  .balance-amount { font-size: 16px; }

  /* Personal profile responsive */
  .personal-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .personal-stat-value { font-size: 22px; }
  .personal-header { flex-direction: column; text-align: center; padding: 20px; }
  .personal-avatar { width: 64px; height: 64px; font-size: 32px; }

  /* Admin responsive */
  .admin-tabs { width: 100%; overflow-x: auto; }
  .admin-tab { padding: 8px 14px; font-size: 13px; }
  .admin-item-row { flex-wrap: wrap; gap: 8px; }
  .admin-item-status { order: 3; }
  .admin-item-actions { order: 4; width: 100%; justify-content: flex-end; }
  .admin-purchase-row { flex-wrap: wrap; gap: 8px; }
  .admin-purchase-date { min-width: auto; }
  .admin-purchase-status { width: 100%; justify-content: flex-end; }

  /* Profile toggle responsive */
  .page-header { flex-direction: column; gap: 12px; align-items: flex-start; }
  .profile-view-toggle { width: 100%; }
  .view-toggle-btn { flex: 1; text-align: center; padding: 8px 12px; }
}

@media (max-width: 480px) {
  .auth-card { padding: 24px; }
  .auth-card h1 { font-size: 26px; }
  .hero-text h1 { font-size: 24px; }
  .quick-links { grid-template-columns: repeat(2, 1fr); }
  .store-grid { grid-template-columns: repeat(2, 1fr); }
  .personal-stat-card { padding: 14px; }
}

/* ─── UTILITY CLASSES ───────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 13px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
