@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root {
  /* Dark palette inspired by ArchSynth */
  --bg-primary: #0B0B0F;
  --bg-secondary: #111118;
  --bg-elevated: #16161E;
  --bg-card: rgba(255,255,255,0.06);
  --bg-card-hover: rgba(255,255,255,0.10);
  --bg-glass: rgba(255,255,255,0.07);

  /* Accent: warm terracotta + cool indigo blend */
  --accent: #C4724E;
  --accent-light: #D4937A;
  --accent-glow: rgba(196, 114, 78, 0.25);
  --accent-subtle: rgba(196, 114, 78, 0.08);
  --indigo: #6366f1;
  --indigo-glow: rgba(99, 102, 241, 0.2);

  /* Semantic */
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.1);
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.1);
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.1);
  --info: #3b82f6;
  --info-bg: rgba(59, 130, 246, 0.1);

  /* Text */
  --text-primary: rgba(255,255,255,0.92);
  --text-secondary: rgba(255,255,255,0.55);
  --text-tertiary: rgba(255,255,255,0.30);
  --text-inverse: #0B0B0F;

  /* Borders */
  --border: rgba(255,255,255,0.12);
  --border-hover: rgba(255,255,255,0.22);
  --border-accent: rgba(196, 114, 78, 0.3);

  /* Shadows & effects */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
  --shadow-xl: 0 24px 60px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 30px var(--accent-glow);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 100px;

  /* Fonts */
  --font-display: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, sans-serif;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.25s var(--ease);
  --transition-slow: 0.5s var(--ease);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
h4 { font-size: 1.15rem; }

p { max-width: 65ch; }

.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.text-muted { color: var(--text-secondary); }
.text-accent { color: var(--accent); }

/* ============================================
   LAYOUT
   ============================================ */

.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 2rem; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-col { display: flex; flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

/* ============================================
   NAVIGATION (Landing)
   ============================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(11, 11, 15, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-logo span { color: var(--accent); font-style: italic; }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 400;
  transition: var(--transition);
}

.nav-links a:hover { color: var(--text-primary); }

/* Hamburger */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-primary);
}

.nav-hamburger svg { display: block; }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 11, 15, 0.95);
  backdrop-filter: blur(24px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
}

.mobile-menu a:hover { color: var(--accent); }

.mobile-menu-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1.4;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--text-inverse);
}

.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: var(--accent);
  color: white;
}

.btn-accent:hover {
  background: #B5653F;
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 0.45rem 0.85rem;
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

.btn-sm { padding: 0.45rem 0.85rem; font-size: 0.8rem; }
.btn-lg { padding: 0.9rem 2rem; font-size: 0.95rem; }

.btn-icon {
  width: 36px; height: 36px; padding: 0;
  display: inline-flex;
  align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-glass);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.1rem;
}

.btn-icon:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

.btn[disabled], .btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

/* ============================================
   CARDS (glass morphism)
   ============================================ */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}

.card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.card-body { padding: 1.25rem; }

.card-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
  background: var(--bg-secondary);
}

/* ============================================
   FORMS
   ============================================ */

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.form-input {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: var(--transition);
  background: var(--bg-glass);
  color: var(--text-primary);
}

.form-input::placeholder { color: var(--text-tertiary); }

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.2rem;
}

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

/* ============================================
   BADGES
   ============================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-neutral { background: rgba(255,255,255,0.06); color: var(--text-secondary); }

/* ============================================
   TABLE
   ============================================ */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
}

table { width: 100%; border-collapse: collapse; }

thead { background: rgba(255,255,255,0.02); }

th {
  padding: 0.7rem 1rem;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

td {
  padding: 0.8rem 1rem;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

tr:last-child td { border-bottom: none; }
tr { transition: var(--transition); cursor: pointer; }
tr:hover td { background: rgba(255,255,255,0.02); }

/* ============================================
   SIDEBAR (Dashboard)
   ============================================ */

.app-layout {
  min-height: 100vh;
}

.sidebar {
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 250px;
  z-index: 100;
  overflow-y: auto;
}

.sidebar-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  padding: 0.5rem 0.6rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  text-decoration: none;
  display: block;
}

.sidebar-logo span { color: var(--accent); font-style: italic; }

.sidebar-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.7rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.sidebar-nav a:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}

.sidebar-nav a.active {
  color: var(--text-primary);
  background: var(--accent-subtle);
}

.sidebar-nav a .nav-icon { width: 18px; height: 18px; opacity: 0.5; flex-shrink: 0; }
.sidebar-nav a.active .nav-icon,
.sidebar-nav a:hover .nav-icon { opacity: 0.9; }

.sidebar-section {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  padding: 1.5rem 0.7rem 0.4rem;
  font-weight: 700;
}

.sidebar-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: auto;
}

.sidebar-user { display: flex; align-items: center; gap: 0.65rem; padding: 0.4rem; }

.sidebar-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center; justify-content: center;
  font-weight: 600; font-size: 0.8rem; color: white;
  flex-shrink: 0;
}

.sidebar-user-name { font-size: 0.85rem; font-weight: 500; }
.sidebar-user-role { font-size: 0.68rem; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.04em; }

/* Mobile sidebar toggle */
.sidebar-mobile-toggle {
  display: none;
  position: fixed;
  top: 0.75rem; left: 0.75rem;
  z-index: 200;
  width: 40px; height: 40px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  cursor: pointer;
  align-items: center; justify-content: center;
}

.sidebar-mobile-toggle svg { display: block; }

.main-content {
  margin-left: 250px;
  padding: 1.75rem 2rem;
  min-height: 100vh;
  min-width: 0;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 1rem;
}

.page-title { font-family: var(--font-display); font-size: 1.7rem; font-weight: 400; }
.page-subtitle { color: var(--text-secondary); font-size: 0.88rem; margin-top: 0.2rem; }

/* ============================================
   STAT CARDS
   ============================================ */

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  backdrop-filter: blur(8px);
}

.stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 500;
  line-height: 1;
}

.stat-change { font-size: 0.78rem; margin-top: 0.35rem; color: var(--text-secondary); }
.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* ============================================
   MOOD BOARD GRID
   ============================================ */

.mood-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.mood-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  aspect-ratio: 3/4;
  border: 2px solid transparent;
}

.mood-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.mood-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,11,15,0.85) 0%, rgba(11,11,15,0.2) 40%, transparent 70%);
  transition: var(--transition);
}

.mood-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.mood-card:hover img { transform: scale(1.05); }

.mood-card.selected {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.mood-card.selected .mood-check {
  opacity: 1;
  transform: scale(1);
}

.mood-check {
  position: absolute;
  top: 0.6rem; right: 0.6rem;
  width: 26px; height: 26px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700;
  z-index: 5;
  opacity: 0;
  transform: scale(0.5);
  transition: var(--transition);
}

.mood-card-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0.9rem;
  z-index: 3;
  color: white;
}

.mood-card-label h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: white;
  margin-bottom: 0.1rem;
}

.mood-card-label p { font-size: 0.72rem; opacity: 0.7; }

/* ============================================
   PROGRESS
   ============================================ */

.progress-bar {
  width: 100%; height: 3px;
  background: var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--indigo));
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}

/* ============================================
   VR VIEWER
   ============================================ */

.vr-viewer {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #050508;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.vr-viewer-inner {
  width: 100%; height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 3px;
}

.vr-eye {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center; justify-content: center;
}

.vr-eye img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

.vr-eye-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center; justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 0.75rem;
  text-align: center;
  pointer-events: none;
}

.vr-controls {
  position: absolute;
  bottom: 1rem; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 0.5rem;
  z-index: 5;
}

.vr-room-nav {
  display: flex; gap: 0.5rem;
  margin-top: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.vr-room-btn {
  padding: 0.5rem 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.vr-room-btn:hover { border-color: var(--border-hover); color: var(--text-primary); }

.vr-room-btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* ============================================
   MODAL
   ============================================ */

.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: center; justify-content: center;
  padding: 1rem;
}

.modal-overlay.active { display: flex; }

.modal {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
}

.modal-header {
  padding: 1.25rem 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.modal-body { padding: 1.25rem 1.5rem; }
.modal-footer { padding: 0 1.5rem 1.25rem; display: flex; justify-content: flex-end; gap: 0.6rem; }

/* ============================================
   TOAST NOTIFICATION
   ============================================ */

.toast-container {
  position: fixed;
  top: 1rem; right: 1rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  padding: 0.8rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: toastIn 0.3s var(--ease);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  min-width: 250px;
}

.toast-success { background: rgba(16,185,129,0.15); color: var(--success); border-color: rgba(16,185,129,0.2); }
.toast-info { background: rgba(59,130,246,0.15); color: var(--info); border-color: rgba(59,130,246,0.2); }
.toast-warning { background: rgba(245,158,11,0.15); color: var(--warning); border-color: rgba(245,158,11,0.2); }

.toast.removing { animation: toastOut 0.3s var(--ease) forwards; }

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

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

/* ============================================
   TABS
   ============================================ */

.tabs {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

.tab {
  padding: 0.65rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  border: none; background: none;
  font-family: var(--font-body);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: var(--transition);
  white-space: nowrap;
}

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

.tab.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 0.3s ease; }

/* ============================================
   ANIMATIONS
   ============================================ */

.fade-in { animation: fadeIn 0.5s ease both; }
.fade-in-up { animation: fadeInUp 0.5s ease both; }
.stagger-1 { animation-delay: 0.08s; }
.stagger-2 { animation-delay: 0.16s; }
.stagger-3 { animation-delay: 0.24s; }
.stagger-4 { animation-delay: 0.32s; }
.stagger-5 { animation-delay: 0.4s; }

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

.notif-counter {
  display: inline-flex;
  align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: white;
  font-size: 0.62rem;
  font-weight: 700;
  margin-left: 0.4rem;
}

/* ============================================
   TOGGLE SWITCH
   ============================================ */

.toggle-switch { position: relative; width: 36px; height: 20px; display: inline-block; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }

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

.toggle-slider::before {
  content: ''; position: absolute;
  width: 16px; height: 16px;
  left: 2px; bottom: 2px;
  background: var(--text-primary);
  border-radius: 50%;
  transition: var(--transition);
}

.toggle-switch input:checked + .toggle-slider { background: var(--success); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(16px); }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-hamburger { display: block; }

  /* Sidebar collapse */
  .sidebar { transform: translateX(-100%); transition: transform 0.3s var(--ease); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-mobile-toggle { display: flex; }
  .main-content { margin-left: 0; padding: 3.5rem 1rem 1.5rem; }
  .page-header { flex-direction: column; }
  .mood-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
}

@media (max-width: 480px) {
  .mood-grid { grid-template-columns: repeat(2, 1fr); }
  .container, .container-narrow { padding: 0 1rem; }
  h1 { font-size: 1.8rem; }
  .btn-lg { padding: 0.75rem 1.5rem; font-size: 0.88rem; }
}

/* ============================================
   LANGUAGE SWITCHER
   ============================================ */

.lang-switch { display: flex; gap: 2px; }
.lang-btn { padding: 0.25rem 0.5rem; font-size: 0.7rem; font-weight: 600; border: 1px solid var(--border); background: transparent; color: var(--text-secondary); cursor: pointer; transition: var(--transition); font-family: var(--font-body); border-radius: var(--radius-sm); }
.lang-btn:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.lang-btn:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.lang-btn.active { background: var(--accent); color: white; border-color: var(--accent); }
