/* ============================================================
   LagChat – Master Design System
   Color Palette: Green #27AE60 / Gray #636e72 / Mint #00B894
   ============================================================ */

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

/* ─── CSS Custom Properties ─────────────────────────────── */
:root {
  --primary:        #27AE60;
  --primary-light:  #2ECC71;
  --primary-dark:   #1E8449;
  --primary-glow:   rgba(39,174,96,.18);
  --teal:           #00B894;
  --teal-light:     #55EFC4;
  --mint-bg:        #f0faf4;

  --secondary:      #636e72;
  --secondary-dark: #2d3436;
  --muted:          #b2bec3;

  --bg:             #f4fbf7;
  --surface:        #ffffff;
  --surface-2:      #f8fdf9;
  --border:         #d5ede0;
  --border-light:   #eaf7ef;

  --text:           #1a2e24;
  --text-muted:     #636e72;
  --text-light:     #99a8a0;

  --success:        #27AE60;
  --warning:        #F39C12;
  --danger:         #E74C3C;
  --info:           #2980B9;

  --radius-sm:      8px;
  --radius:         14px;
  --radius-lg:      20px;
  --radius-xl:      28px;
  --radius-full:    9999px;

  --shadow-xs:      0 1px 3px rgba(0,0,0,.06);
  --shadow-sm:      0 2px 8px rgba(39,174,96,.08);
  --shadow:         0 4px 20px rgba(39,174,96,.12);
  --shadow-lg:      0 8px 40px rgba(39,174,96,.18);
  --shadow-xl:      0 20px 60px rgba(39,174,96,.22);

  --gradient-primary: linear-gradient(135deg, #27AE60 0%, #00B894 100%);
  --gradient-hero:    linear-gradient(135deg, #1E8449 0%, #27AE60 50%, #00B894 100%);
  --gradient-card:    linear-gradient(145deg, #ffffff 0%, #f0faf4 100%);
  --gradient-dark:    linear-gradient(135deg, #1a2e24 0%, #2d3436 100%);

  --nav-height:     68px;
  --sidebar-width:  265px;

  --transition:     all .3s cubic-bezier(.4,0,.2,1);
  --transition-fast: all .15s cubic-bezier(.4,0,.2,1);
  --transition-slow: all .5s cubic-bezier(.4,0,.2,1);

  --font-sans:      'Inter', system-ui, sans-serif;
  --font-display:   'Poppins', system-ui, sans-serif;
}

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

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

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition-fast); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ─── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--border-light); }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ─── Typography ─────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.25; color: var(--text); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }
p  { color: var(--text-muted); line-height: 1.7; }

.text-primary   { color: var(--primary) !important; }
.text-muted     { color: var(--text-muted) !important; }
.text-danger    { color: var(--danger) !important; }
.text-success   { color: var(--success) !important; }
.text-warning   { color: var(--warning) !important; }
.text-info      { color: var(--info) !important; }
.text-center    { text-align: center; }
.text-right     { text-align: right; }
.fw-600         { font-weight: 600; }
.fw-700         { font-weight: 700; }
.small          { font-size: .825rem; }
.label          { font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }

/* ─── Layout Utilities ───────────────────────────────────── */
.container       { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-sm    { max-width: 760px; }
.container-lg    { max-width: 1400px; }
.flex            { display: flex; }
.flex-col        { flex-direction: column; }
.items-center    { align-items: center; }
.items-start     { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.gap-1           { gap: 8px; }
.gap-2           { gap: 12px; }
.gap-3           { gap: 16px; }
.gap-4           { gap: 24px; }
.gap-6           { gap: 32px; }
.w-full          { width: 100%; }
.hidden          { display: none !important; }

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

/* ─── Spacing ────────────────────────────────────────────── */
.mt-1{margin-top:8px}.mt-2{margin-top:12px}.mt-3{margin-top:16px}.mt-4{margin-top:24px}.mt-6{margin-top:32px}.mt-8{margin-top:48px}
.mb-1{margin-bottom:8px}.mb-2{margin-bottom:12px}.mb-3{margin-bottom:16px}.mb-4{margin-bottom:24px}.mb-6{margin-bottom:32px}
.p-1{padding:8px}.p-2{padding:12px}.p-3{padding:16px}.p-4{padding:24px}.p-6{padding:32px}
.py-1{padding-top:8px;padding-bottom:8px}.py-2{padding-top:12px;padding-bottom:12px}.py-3{padding-top:16px;padding-bottom:16px}.py-4{padding-top:24px;padding-bottom:24px}
.px-3{padding-left:16px;padding-right:16px}.px-4{padding-left:24px;padding-right:24px}
.section-py { padding-top: 80px; padding-bottom: 80px; }

/* ─── Navigation ─────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-height);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(255,255,255,.98);
  box-shadow: var(--shadow);
}
.navbar .nav-inner {
  height: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { height: auto; width: 100%; margin-top: 30px; }
.nav-logo-text { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; }
.nav-logo-text span { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 14px; border-radius: var(--radius-sm);
  color: var(--text); font-size: .9rem; font-weight: 500;
  transition: var(--transition-fast);
}
.nav-links a:hover, .nav-links a.active {
  background: var(--primary-glow); color: var(--primary);
}
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-icon-btn {
  width: 40px; height: 40px; border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: var(--transition-fast);
  position: relative;
}
.nav-icon-btn:hover { background: var(--primary-glow); color: var(--primary); }
.nav-badge {
  position: absolute; top: 4px; right: 4px;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--danger); color: #fff;
  font-size: .6rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}
.nav-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--primary);
  cursor: pointer; transition: var(--transition-fast);
}
.nav-avatar:hover { transform: scale(1.05); box-shadow: 0 0 0 4px var(--primary-glow); }
.hamburger {
  display: none; flex-direction: column; gap: 5px; padding: 8px; cursor: pointer;
}
.hamburger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition-fast); }

/* ─── App Layout (Sidebar + Main) ────────────────────────── */
.app-layout { display: flex; min-height: 100vh; padding-top: var(--nav-height); }

.sidebar {
  width: var(--sidebar-width);
  background: var(--surface);
  border-right: 1px solid var(--border-light);
  position: fixed; top: var(--nav-height); left: 0; bottom: 0;
  overflow-y: auto; z-index: 900;
  padding: 20px 12px;
  transition: var(--transition);
}
.sidebar-section { margin-bottom: 6px; }
.sidebar-label {
  font-size: .68rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
  padding: 8px 12px 4px;
}
.sidebar-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: var(--radius-sm);
  color: var(--text-muted); font-size: .88rem; font-weight: 500;
  transition: var(--transition-fast); text-decoration: none;
  margin-bottom: 2px;
}
.sidebar-link:hover, .sidebar-link.active {
  background: var(--primary-glow); color: var(--primary);
}
.sidebar-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.sidebar-link .badge {
  margin-left: auto; background: var(--primary); color: #fff;
  font-size: .65rem; font-weight: 700; padding: 1px 7px; border-radius: 99px;
}

.main-content {
  margin-left: var(--sidebar-width);
  flex: 1; min-width: 0;
  padding: 32px 28px;
}

/* ─── Page Header ────────────────────────────────────────── */
.page-header { margin-bottom: 28px; }
.page-header h2 { margin-bottom: 6px; }
.page-header p { color: var(--text-muted); font-size: .95rem; }
.page-header-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 600; transition: var(--transition-fast);
  cursor: pointer; border: none; text-decoration: none;
  white-space: nowrap; position: relative; overflow: hidden;
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0); transition: var(--transition-fast);
}
.btn:hover::after { background: rgba(255,255,255,.1); }
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--gradient-primary); color: #fff;
  box-shadow: 0 4px 15px var(--primary-glow);
}
.btn-primary:hover { box-shadow: 0 6px 25px rgba(39,174,96,.35); color: #fff; transform: translateY(-1px); }

.btn-outline {
  background: transparent; color: var(--primary);
  border: 2px solid var(--primary); box-shadow: none;
}
.btn-outline:hover { background: var(--primary); color: #fff; }

.btn-ghost { background: var(--primary-glow); color: var(--primary); }
.btn-ghost:hover { background: var(--primary); color: #fff; }

.btn-danger { background: var(--danger); color: #fff; }
.btn-warning { background: var(--warning); color: #fff; }
.btn-info    { background: var(--info); color: #fff; }
.btn-dark    { background: var(--gradient-dark); color: #fff; }
.btn-light   { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn-light:hover { background: var(--border); }

.btn-sm  { padding: 7px 14px; font-size: .8rem; border-radius: 6px; }
.btn-lg  { padding: 14px 32px; font-size: 1rem; border-radius: var(--radius); }
.btn-xl  { padding: 16px 40px; font-size: 1.05rem; border-radius: var(--radius); }
.btn-icon { width: 38px; height: 38px; padding: 0; border-radius: var(--radius-sm); }
.btn-round { border-radius: var(--radius-full); }
.btn-block { width: 100%; }

/* ─── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-header { padding: 18px 20px; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; }
.card-header h4, .card-header h3 { margin: 0; }
.card-body { padding: 20px; }
.card-footer { padding: 14px 20px; border-top: 1px solid var(--border-light); background: var(--surface-2); }

.card-hover { transition: var(--transition); cursor: pointer; }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border); }

.card-glass {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.6);
}

/* ─── Stat Cards ─────────────────────────────────────────── */
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 22px;
  display: flex; align-items: center; gap: 18px;
  transition: var(--transition);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.stat-icon {
  width: 54px; height: 54px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-glow); color: var(--primary);
  font-size: 1.4rem; flex-shrink: 0;
}
.stat-icon.teal   { background: rgba(0,184,148,.12); color: var(--teal); }
.stat-icon.orange { background: rgba(243,156,18,.12); color: var(--warning); }
.stat-icon.red    { background: rgba(231,76,60,.12); color: var(--danger); }
.stat-icon.blue   { background: rgba(41,128,185,.12); color: var(--info); }
.stat-value { font-size: 1.7rem; font-weight: 800; color: var(--text); font-family: var(--font-display); line-height: 1; }
.stat-label { font-size: .82rem; color: var(--text-muted); margin-top: 3px; }

/* ─── Avatars ────────────────────────────────────────────── */
.avatar {
  border-radius: 50%; object-fit: cover; flex-shrink: 0;
  border: 2px solid var(--border-light);
}
.avatar-xs  { width: 28px; height: 28px; }
.avatar-sm  { width: 36px; height: 36px; }
.avatar-md  { width: 46px; height: 46px; }
.avatar-lg  { width: 60px; height: 60px; }
.avatar-xl  { width: 80px; height: 80px; }
.avatar-2xl { width: 110px; height: 110px; }
.avatar-online { position: relative; }
.avatar-online::after {
  content: ''; position: absolute; bottom: 1px; right: 1px;
  width: 11px; height: 11px; border-radius: 50%;
  background: #2ECC71; border: 2px solid #fff;
}

.avatar-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient-primary); color: #fff;
  font-weight: 700; font-family: var(--font-display);
  font-size: 1rem; border-radius: 50%;
}

/* ─── Badges ─────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: var(--radius-full);
  font-size: .72rem; font-weight: 700; letter-spacing: .03em;
}
.badge-primary { background: var(--primary-glow); color: var(--primary); }
.badge-success { background: rgba(39,174,96,.12); color: #1e8449; }
.badge-warning { background: rgba(243,156,18,.12); color: #d68910; }
.badge-danger  { background: rgba(231,76,60,.12); color: #c0392b; }
.badge-info    { background: rgba(41,128,185,.12); color: #1a6fa8; }
.badge-gray    { background: rgba(99,110,114,.1); color: var(--secondary); }
.badge-teal    { background: rgba(0,184,148,.12); color: #007a63; }
.badge-light   { background: var(--border-light); color: var(--text-muted); }

/* ─── Forms ──────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: .875rem; font-weight: 600; color: var(--text); margin-bottom: 7px; }
.form-control {
  width: 100%; padding: 11px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); background: var(--surface);
  color: var(--text); font-size: .9rem; font-family: inherit;
  transition: var(--transition-fast); outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.form-control::placeholder { color: var(--muted); }
textarea.form-control { min-height: 110px; resize: vertical; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2399a8a0' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

.input-group { position: relative; }
.input-group .input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.input-group .form-control { padding-left: 42px; }
.input-group .input-icon-right { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); cursor: pointer; }
.input-group-right .form-control { padding-right: 42px; }

.form-check { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.form-check input[type="checkbox"], .form-check input[type="radio"] {
  width: 17px; height: 17px; border: 2px solid var(--border);
  border-radius: 4px; appearance: none; cursor: pointer;
  transition: var(--transition-fast); flex-shrink: 0;
  position: relative;
}
.form-check input[type="checkbox"]:checked {
  background: var(--primary); border-color: var(--primary);
}
.form-check input[type="checkbox"]:checked::after {
  content: '✓'; position: absolute; top: -1px; left: 2px;
  font-size: .7rem; color: #fff; font-weight: 900;
}
.form-check label { font-size: .875rem; cursor: pointer; color: var(--text); }

.form-hint { font-size: .78rem; color: var(--text-muted); margin-top: 5px; }
.form-error { font-size: .78rem; color: var(--danger); margin-top: 5px; }

/* ─── Tabs ───────────────────────────────────────────────── */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border-light); margin-bottom: 24px; }
.tab-btn {
  padding: 10px 18px; border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  color: var(--text-muted); font-weight: 600; font-size: .88rem;
  cursor: pointer; border: none; background: none;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: var(--transition-fast);
}
.tab-btn:hover { color: var(--primary); background: var(--primary-glow); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); background: transparent; }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ─── Modals ─────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(26,46,36,.5); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; pointer-events: none;
  transition: var(--transition);
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal {
  background: var(--surface); border-radius: var(--radius-lg);
  width: 100%; max-width: 520px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: scale(.95) translateY(20px); transition: var(--transition);
}
.modal-overlay.active .modal { transform: scale(1) translateY(0); }
.modal-lg { max-width: 720px; }
.modal-header {
  padding: 22px 24px 18px; border-bottom: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-header h3 { font-size: 1.15rem; }
.modal-close {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: var(--transition-fast); cursor: pointer;
}
.modal-close:hover { background: var(--border-light); color: var(--text); }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border-light); display: flex; gap: 10px; justify-content: flex-end; }

/* ─── FAB (Floating Action Button) ──────────────────────── */
.fab {
  position: fixed; bottom: 30px; right: 30px; z-index: 800;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--gradient-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 30px rgba(39,174,96,.4);
  font-size: 1.5rem; cursor: pointer; border: none;
  transition: var(--transition);
}
.fab:hover { transform: scale(1.1) rotate(90deg); box-shadow: 0 10px 40px rgba(39,174,96,.5); }

/* ─── Alerts ─────────────────────────────────────────────── */
.alert {
  padding: 14px 18px; border-radius: var(--radius-sm);
  display: flex; align-items: flex-start; gap: 12px;
  font-size: .875rem; margin-bottom: 16px;
}
.alert-success { background: rgba(39,174,96,.1); border: 1px solid rgba(39,174,96,.25); color: var(--primary-dark); }
.alert-warning { background: rgba(243,156,18,.1); border: 1px solid rgba(243,156,18,.25); color: #9a6700; }
.alert-danger  { background: rgba(231,76,60,.1);  border: 1px solid rgba(231,76,60,.25);  color: #b03a2e; }
.alert-info    { background: rgba(41,128,185,.1); border: 1px solid rgba(41,128,185,.25); color: #1a6fa8; }

/* ─── Divider ────────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--border-light); margin: 20px 0; }
.divider-text { display: flex; align-items: center; gap: 14px; color: var(--text-muted); font-size: .83rem; margin: 20px 0; }
.divider-text::before, .divider-text::after { content: ''; flex: 1; height: 1px; background: var(--border-light); }

/* ─── User Row (List item) ───────────────────────────────── */
.user-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: var(--radius);
  transition: var(--transition-fast); cursor: pointer;
}
.user-row:hover { background: var(--surface-2); }
.user-info { flex: 1; min-width: 0; }
.user-info .name { font-weight: 600; font-size: .92rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-info .sub  { font-size: .8rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ─── Search Bar ─────────────────────────────────────────── */
.search-bar {
  position: relative; max-width: 380px;
}
.search-bar input {
  width: 100%; padding: 10px 16px 10px 42px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full); background: var(--surface);
  font-size: .875rem; color: var(--text); outline: none;
  transition: var(--transition-fast);
}
.search-bar input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.search-bar .search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }

/* ─── Mood Badges ────────────────────────────────────────── */
.mood { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; font-weight: 600; padding: 3px 10px; border-radius: var(--radius-full); }
.mood-happy    { background: #FFF8E1; color: #F9A825; }
.mood-sad      { background: #E3F2FD; color: #1565C0; }
.mood-anxious  { background: #FBE9E7; color: #BF360C; }
.mood-calm     { background: #E8F5E9; color: #2E7D32; }
.mood-angry    { background: #FFEBEE; color: #C62828; }
.mood-excited  { background: #FCE4EC; color: #AD1457; }
.mood-grateful { background: #E8EAF6; color: #283593; }
.mood-neutral  { background: #F5F5F5; color: #616161; }

/* ─── Online Status ──────────────────────────────────────── */
.status-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.status-online  { background: #2ECC71; }
.status-away    { background: #F39C12; }
.status-offline { background: #b2bec3; }
.status-busy    { background: #E74C3C; }

/* ─── Skeleton Loader ────────────────────────────────────── */
.skeleton { background: linear-gradient(90deg, var(--border-light) 25%, #e8f5e9 50%, var(--border-light) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius-sm); }
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ─── Progress Bar ───────────────────────────────────────── */
.progress { height: 6px; background: var(--border-light); border-radius: 99px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--gradient-primary); border-radius: 99px; transition: width .6s ease; }

/* ─── Rating Stars ───────────────────────────────────────── */
.stars { color: #F39C12; letter-spacing: 2px; }

/* ─── Toast Notification ─────────────────────────────────── */
.toast-container { position: fixed; top: calc(var(--nav-height) + 16px); right: 20px; z-index: 3000; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--primary);
  font-size: .875rem; min-width: 280px; max-width: 360px;
  animation: slideInRight .3s ease;
}
.toast-success { border-left-color: var(--success); }
.toast-danger  { border-left-color: var(--danger); }
.toast-warning { border-left-color: var(--warning); }
@keyframes slideInRight { from{transform:translateX(120%);opacity:0} to{transform:translateX(0);opacity:1} }

/* ─── Hero Section ───────────────────────────────────────── */
.hero-section {
  min-height: 100vh; display: flex; align-items: center;
  background: var(--gradient-hero);
  position: relative; overflow: hidden;
}
.hero-section::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-blob {
  position: absolute; width: 600px; height: 600px;
  border-radius: 50%; opacity: .12;
  background: radial-gradient(circle, #fff 0%, transparent 70%);
  pointer-events: none;
}
.hero-blob-1 { top: -200px; right: -100px; }
.hero-blob-2 { bottom: -300px; left: -200px; width: 500px; height: 500px; }
.hero-content { position: relative; z-index: 1; color: #fff; }
.hero-content .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.15); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.25);
  padding: 6px 16px; border-radius: var(--radius-full);
  font-size: .82rem; font-weight: 600; letter-spacing: .04em;
  color: rgba(255,255,255,.9); margin-bottom: 20px;
}
.hero-content h1 { color: #fff; margin-bottom: 20px; text-shadow: 0 2px 20px rgba(0,0,0,.2); }
.hero-content p  { color: rgba(255,255,255,.85); font-size: 1.1rem; margin-bottom: 32px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-btn-white {
  background: #fff; color: var(--primary);
  padding: 14px 32px; border-radius: var(--radius-full);
  font-weight: 700; font-size: 1rem;
  box-shadow: 0 6px 25px rgba(0,0,0,.15);
  transition: var(--transition); border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
}
.hero-btn-white:hover { transform: translateY(-3px); box-shadow: 0 10px 35px rgba(0,0,0,.2); color: var(--primary); }
.hero-btn-outline-white {
  background: transparent; color: #fff;
  border: 2px solid rgba(255,255,255,.5);
  padding: 13px 30px; border-radius: var(--radius-full);
  font-weight: 600; font-size: 1rem; cursor: pointer;
  transition: var(--transition); display: inline-flex; align-items: center; gap: 8px;
}
.hero-btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,.1); color: #fff; }

/* ─── Section Titles ─────────────────────────────────────── */
.section-title { text-align: center; margin-bottom: 56px; }
.section-title .eyebrow {
  display: inline-block; color: var(--primary); font-size: .82rem;
  font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 12px; padding: 4px 14px;
  background: var(--primary-glow); border-radius: var(--radius-full);
}
.section-title h2 { margin-bottom: 14px; }
.section-title p { color: var(--text-muted); max-width: 560px; margin: 0 auto; }

/* ─── Feature Cards ──────────────────────────────────────── */
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center; transition: var(--transition);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.feature-icon {
  width: 70px; height: 70px; border-radius: var(--radius);
  background: var(--gradient-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; margin: 0 auto 20px; box-shadow: 0 8px 25px var(--primary-glow);
}
.feature-card h3 { margin-bottom: 10px; font-size: 1.1rem; }
.feature-card p  { font-size: .875rem; }

/* ─── Post / Feed Card ───────────────────────────────────── */
.post-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden; margin-bottom: 16px;
  transition: var(--transition);
}
.post-card:hover { box-shadow: var(--shadow); }
.post-header { display: flex; align-items: center; gap: 12px; padding: 16px 20px 10px; }
.post-body { padding: 4px 20px 16px; }
.post-body p { color: var(--text); font-size: .92rem; }
.post-media { margin: 10px 0; border-radius: var(--radius-sm); overflow: hidden; }
.post-media img { width: 100%; max-height: 320px; object-fit: cover; }
.post-actions { padding: 10px 16px; border-top: 1px solid var(--border-light); display: flex; align-items: center; gap: 4px; }
.post-action-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: var(--radius-sm);
  color: var(--text-muted); font-size: .83rem; font-weight: 500;
  cursor: pointer; transition: var(--transition-fast); background: none; border: none;
}
.post-action-btn:hover, .post-action-btn.liked { color: var(--primary); background: var(--primary-glow); }
.post-action-btn.liked svg { fill: var(--primary); }

/* ─── Comment ────────────────────────────────────────────── */
.comment { display: flex; gap: 12px; margin-bottom: 16px; }
.comment-content { flex: 1; background: var(--surface-2); border-radius: 0 var(--radius) var(--radius); padding: 12px 16px; }
.comment-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.comment-name { font-weight: 600; font-size: .88rem; }
.comment-time { font-size: .75rem; color: var(--text-muted); }
.comment-text { font-size: .875rem; color: var(--text); }

/* ─── Chat UI ────────────────────────────────────────────── */
.chat-container { display: flex; height: calc(100vh - var(--nav-height) - 64px); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-light); }
.chat-sidebar { width: 300px; border-right: 1px solid var(--border-light); background: var(--surface); display: flex; flex-direction: column; flex-shrink: 0; }
.chat-main { flex: 1; display: flex; flex-direction: column; background: var(--surface); }
.chat-messages { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.msg { display: flex; gap: 10px; max-width: 75%; }
.msg.sent { margin-left: auto; flex-direction: row-reverse; }
.msg-bubble { padding: 11px 16px; border-radius: 18px; font-size: .88rem; line-height: 1.5; }
.msg.received .msg-bubble { background: var(--surface-2); color: var(--text); border-bottom-left-radius: 4px; }
.msg.sent .msg-bubble { background: var(--gradient-primary); color: #fff; border-bottom-right-radius: 4px; }
.msg-time { font-size: .68rem; color: var(--text-muted); margin-top: 4px; text-align: right; }
.msg.received .msg-time { text-align: left; }
.chat-input-bar {
  padding: 14px 16px; border-top: 1px solid var(--border-light);
  display: flex; align-items: center; gap: 10px;
}
.chat-input {
  flex: 1; padding: 11px 16px; border: 1.5px solid var(--border);
  border-radius: var(--radius-full); outline: none;
  font-size: .875rem; transition: var(--transition-fast);
}
.chat-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }

/* ─── Slider / Hero Carousel ─────────────────────────────── */
.slider-wrapper { position: relative; overflow: hidden; border-radius: var(--radius-xl); }
.slider-track { display: flex; transition: transform .7s cubic-bezier(.4,0,.2,1); }
.slider-slide { min-width: 100%; }
.slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.slider-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); cursor: pointer; transition: var(--transition-fast); }
.slider-dot.active { width: 24px; border-radius: 4px; background: var(--primary); }
.slider-prev, .slider-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.9);
  border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow); color: var(--text); z-index: 10;
  transition: var(--transition-fast);
}
.slider-prev { left: 16px; } .slider-next { right: 16px; }
.slider-prev:hover, .slider-next:hover { background: var(--primary); color: #fff; }

/* ─── Testimonial Card ───────────────────────────────────── */
.testimonial-card {
  background: var(--surface); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 28px;
  transition: var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.testimonial-quote { font-size: 2.5rem; color: var(--primary); line-height: 1; margin-bottom: 14px; }
.testimonial-text { font-size: .92rem; color: var(--text); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-author .name { font-weight: 700; font-size: .9rem; }
.testimonial-author .role { font-size: .78rem; color: var(--text-muted); }

/* ─── Counselor Card ─────────────────────────────────────── */
.counselor-card {
  background: var(--surface); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition);
  text-align: center;
}
.counselor-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.counselor-card-header { background: var(--gradient-primary); padding: 28px 20px 50px; position: relative; }
.counselor-avatar { width: 80px; height: 80px; border-radius: 50%; border: 4px solid #fff; object-fit: cover; position: absolute; left: 50%; bottom: -40px; transform: translateX(-50%); box-shadow: var(--shadow); }
.counselor-card-body { padding: 52px 20px 24px; }
.counselor-name { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.counselor-title { font-size: .8rem; color: var(--text-muted); margin-bottom: 12px; }

/* ─── Empty State ────────────────────────────────────────── */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state-icon { font-size: 3.5rem; margin-bottom: 16px; opacity: .4; }
.empty-state h4 { margin-bottom: 8px; color: var(--text); }
.empty-state p  { color: var(--text-muted); font-size: .875rem; max-width: 360px; margin: 0 auto 20px; }

/* ─── Dropdown ───────────────────────────────────────────── */
.dropdown { position: relative; display: inline-block; }
.dropdown-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--surface); border: 1px solid var(--border-light);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  min-width: 200px; z-index: 500; overflow: hidden;
  opacity: 0; pointer-events: none; transform: translateY(-8px);
  transition: var(--transition-fast);
}
.dropdown-menu.active { opacity: 1; pointer-events: all; transform: translateY(0); }
.dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; font-size: .875rem;
  color: var(--text); cursor: pointer; transition: var(--transition-fast);
}
.dropdown-item:hover { background: var(--primary-glow); color: var(--primary); }
.dropdown-item.danger { color: var(--danger); }
.dropdown-item.danger:hover { background: rgba(231,76,60,.08); }
.dropdown-divider { border-top: 1px solid var(--border-light); margin: 4px 0; }

/* ─── Horizontal Scroll ──────────────────────────────────── */
.h-scroll { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.h-scroll::-webkit-scrollbar { display: none; }

/* ─── Online User Bubble ─────────────────────────────────── */
.online-user {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  cursor: pointer; flex-shrink: 0;
}
.online-user .avatar-wrap { position: relative; }
.online-user .avatar-wrap::after {
  content: ''; position: absolute; bottom: 2px; right: 2px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #2ECC71; border: 2px solid #fff;
}
.online-user .name { font-size: .72rem; font-weight: 600; color: var(--text-muted); text-align: center; max-width: 58px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ─── Poll ───────────────────────────────────────────────── */
.poll-option { margin-bottom: 10px; }
.poll-option-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; font-size: .875rem; font-weight: 500; }
.poll-bar { height: 8px; background: var(--border-light); border-radius: 99px; overflow: hidden; }
.poll-fill { height: 100%; background: var(--gradient-primary); border-radius: 99px; transition: width 1s ease; }

/* ─── Notification Item ──────────────────────────────────── */
.notif-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 16px; border-radius: var(--radius);
  transition: var(--transition-fast); cursor: pointer;
  border-bottom: 1px solid var(--border-light);
}
.notif-item:hover { background: var(--surface-2); }
.notif-item.unread { background: var(--mint-bg); }
.notif-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--primary); margin-top: 6px; flex-shrink: 0; }
.notif-dot.read { background: transparent; border: 1.5px solid var(--muted); }
.notif-text { flex: 1; font-size: .875rem; color: var(--text); }
.notif-text strong { color: var(--text); }
.notif-time { font-size: .75rem; color: var(--text-muted); margin-top: 3px; }

/* ─── Transaction ────────────────────────────────────────── */
.tx-item { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: var(--radius); transition: var(--transition-fast); }
.tx-item:hover { background: var(--surface-2); }
.tx-icon { width: 44px; height: 44px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.1rem; }
.tx-credit { background: rgba(39,174,96,.12); color: var(--success); }
.tx-debit  { background: rgba(231,76,60,.12);  color: var(--danger); }
.tx-info   { flex: 1; min-width: 0; }
.tx-amount { font-weight: 700; font-size: 1rem; font-family: var(--font-display); }
.tx-amount.credit { color: var(--success); }
.tx-amount.debit  { color: var(--danger); }

/* ─── Quiz ───────────────────────────────────────────────── */
.quiz-option {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border: 2px solid var(--border);
  border-radius: var(--radius); cursor: pointer;
  transition: var(--transition-fast); margin-bottom: 10px;
  font-weight: 500;
}
.quiz-option:hover { border-color: var(--primary); background: var(--primary-glow); color: var(--primary); }
.quiz-option.selected { border-color: var(--primary); background: var(--primary-glow); color: var(--primary); }
.quiz-option.correct  { border-color: var(--success); background: rgba(39,174,96,.1); color: var(--success); }
.quiz-option.wrong    { border-color: var(--danger);  background: rgba(231,76,60,.1);  color: var(--danger); }

/* ─── Timeline ───────────────────────────────────────────── */
.timeline { position: relative; padding-left: 32px; }
.timeline::before { content: ''; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: var(--border-light); }
.timeline-item { position: relative; margin-bottom: 24px; }
.timeline-dot { position: absolute; left: -32px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--primary); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--primary); }
.timeline-content { background: var(--surface-2); border-radius: var(--radius); padding: 14px 16px; }
.timeline-time { font-size: .75rem; color: var(--text-muted); margin-bottom: 6px; }

/* ─── Podcast Card ───────────────────────────────────────── */
.podcast-card { background: var(--surface); border: 1px solid var(--border-light); border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition); }
.podcast-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.podcast-thumb { width: 100%; height: 160px; object-fit: cover; display: block; background: var(--gradient-primary); }
.podcast-body { padding: 18px; }

/* ─── Audio Player ───────────────────────────────────────── */
.audio-player { background: var(--gradient-dark); border-radius: var(--radius-lg); padding: 24px; color: #fff; }
.audio-progress { height: 4px; background: rgba(255,255,255,.2); border-radius: 99px; margin: 16px 0; cursor: pointer; position: relative; }
.audio-fill { height: 100%; background: var(--teal-light); border-radius: 99px; width: 35%; }
.audio-controls { display: flex; align-items: center; justify-content: center; gap: 20px; }
.audio-ctrl { background: rgba(255,255,255,.1); border: none; color: #fff; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition-fast); font-size: 1.1rem; }
.audio-ctrl:hover { background: rgba(255,255,255,.2); }
.audio-ctrl.play-btn { width: 56px; height: 56px; background: var(--primary); font-size: 1.3rem; }
.audio-ctrl.play-btn:hover { background: var(--primary-light); }

/* ─── Settings ───────────────────────────────────────────── */
.settings-card { background: var(--surface); border: 1px solid var(--border-light); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 20px; }
.settings-section { padding: 22px 24px; border-bottom: 1px solid var(--border-light); }
.settings-section:last-child { border-bottom: none; }
.settings-section-title { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); margin-bottom: 18px; }
.settings-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border-light); }
.settings-row:last-child { border-bottom: none; }
.settings-row-info h5 { font-size: .92rem; margin-bottom: 2px; }
.settings-row-info p { font-size: .8rem; color: var(--text-muted); }

/* Toggle Switch */
.toggle { position: relative; width: 48px; height: 26px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: var(--border); border-radius: 99px; cursor: pointer; transition: var(--transition-fast); }
.toggle-slider::before { content: ''; position: absolute; height: 20px; width: 20px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: var(--transition-fast); box-shadow: var(--shadow-xs); }
.toggle input:checked + .toggle-slider { background: var(--primary); }
.toggle input:checked + .toggle-slider::before { transform: translateX(22px); }

/* ─── Auth Pages ─────────────────────────────────────────── */
.auth-page {
  min-height: 100vh; display: flex;
  background: var(--gradient-hero);
}
.auth-left { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 60px 40px; color: #fff; }
.auth-right { width: 480px; background: var(--surface); display: flex; flex-direction: column; justify-content: center; padding: 60px 48px; overflow-y: auto; }
.auth-logo { margin-bottom: 32px; }
.auth-logo img { height: 48px; }
.auth-tagline { font-size: 1.1rem; color: rgba(255,255,255,.8); margin-bottom: 40px; max-width: 420px; line-height: 1.7; }
.auth-features { display: flex; flex-direction: column; gap: 16px; }
.auth-feature { display: flex; align-items: center; gap: 14px; }
.auth-feature-icon { width: 40px; height: 40px; border-radius: var(--radius-sm); background: rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.auth-feature-text h5 { color: #fff; font-size: .92rem; margin-bottom: 2px; }
.auth-feature-text p  { color: rgba(255,255,255,.7); font-size: .8rem; }
.auth-title { font-size: 1.75rem; margin-bottom: 6px; }
.auth-sub   { color: var(--text-muted); font-size: .9rem; margin-bottom: 30px; }
.auth-footer { text-align: center; margin-top: 24px; font-size: .875rem; color: var(--text-muted); }
.auth-footer a { color: var(--primary); font-weight: 600; }

/* ─── Social Proof strip ─────────────────────────────────── */
.social-proof { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.social-proof-avatars { display: flex; }
.social-proof-avatars img { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; margin-left: -10px; }
.social-proof-avatars img:first-child { margin-left: 0; }
.social-proof-text { font-size: .85rem; color: rgba(255,255,255,.85); }
.social-proof-text strong { color: #fff; }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .auth-left { display: none; }
  .auth-right { width: 100%; padding: 40px 28px; }
  .chat-sidebar { display: none; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .grid-2, .grid-3, .grid-4, .grid-auto { grid-template-columns: 1fr; }
  .main-content { padding: 20px 16px; }
  .section-py { padding-top: 56px; padding-bottom: 56px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .fab { bottom: 20px; right: 20px; width: 52px; height: 52px; }
  .modal { border-radius: var(--radius); }
}

/* ─── Animations ─────────────────────────────────────────── */
@keyframes fadeInUp   { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeIn     { from{opacity:0} to{opacity:1} }
@keyframes pulse-ring { 0%{box-shadow:0 0 0 0 var(--primary-glow)} 70%{box-shadow:0 0 0 12px rgba(39,174,96,0)} 100%{box-shadow:0 0 0 0 rgba(39,174,96,0)} }
@keyframes float      { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
@keyframes spin       { from{transform:rotate(0)} to{transform:rotate(360deg)} }
@keyframes bounce     { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }

.animate-fadeInUp   { animation: fadeInUp .5s ease both; }
.animate-fadeIn     { animation: fadeIn .4s ease both; }
.animate-float      { animation: float 3s ease-in-out infinite; }
.animate-spin       { animation: spin 1s linear infinite; }
.animate-bounce     { animation: bounce 1s ease infinite; }
.animate-pulse-ring { animation: pulse-ring 2s infinite; }

/* Stagger delays */
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }
.delay-4 { animation-delay: .4s; }
.delay-5 { animation-delay: .5s; }
.delay-6 { animation-delay: .6s; }

/* ─── Mobile Nav Overlay ─────────────────────────────────── */
.sidebar-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 899; opacity: 0; pointer-events: none; transition: var(--transition); }
.sidebar-overlay.active { opacity: 1; pointer-events: all; }

/* ─── Misc Helpers ───────────────────────────────────────── */
.rounded    { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }
.shadow     { box-shadow: var(--shadow); }
.shadow-lg  { box-shadow: var(--shadow-lg); }
.overflow-hidden { overflow: hidden; }
.relative   { position: relative; }
.absolute   { position: absolute; }
.truncate   { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.border     { border: 1px solid var(--border-light); }
.border-top { border-top: 1px solid var(--border-light); }
.cursor-pointer { cursor: pointer; }
.select-none    { user-select: none; }
.opacity-50     { opacity: .5; }
.pointer-events-none { pointer-events: none; }
