/*
 * SkillSwap Nepal — Design System v10.0
 * Font: Inter (Google Fonts)
 * Primary: Purple #6c5ce7
 * Aesthetic: Clean SaaS — generous whitespace, sharp type, subtle shadows
 * Dark mode: CSS variables via [data-theme="dark"] + prefers-color-scheme
 */

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

/* ─────────────────────────────────────────────────────────
   LIGHT MODE (default)
───────────────────────────────────────────────────────── */
:root {
  /* ── Color palette ── */
  --purple-50:  #f3f1fe;
  --purple-100: #e9e6fd;
  --purple-200: #d5cffc;
  --purple-300: #b5abf9;
  --purple-400: #9180f4;
  --purple-500: #6c5ce7;
  --purple-600: #5a4bd1;
  --purple-700: #4a3bb8;
  --purple-800: #3d3099;
  --purple-900: #2f2478;

  --green-500:  #10b981;
  --green-dim:  rgba(16,185,129,0.12);
  --amber-500:  #f59e0b;
  --amber-dim:  rgba(245,158,11,0.12);
  --red-500:    #ef4444;
  --red-dim:    rgba(239,68,68,0.12);
  --blue-500:   #3b82f6;
  --blue-dim:   rgba(59,130,246,0.12);

  /* ── Semantic tokens — light ── */
  --bg:            #ffffff;
  --bg-subtle:     #f8f9fc;
  --bg-muted:      #f1f3f8;
  --surface:       #ffffff;
  --surface-raised:#fafbfe;

  --border:        rgba(15,23,42,0.08);
  --border-strong: rgba(15,23,42,0.16);

  --text:          #0f172a;
  --text-secondary:#475569;
  --text-muted:    #94a3b8;
  --text-disabled: #cbd5e1;

  --accent:        var(--purple-500);
  --accent-hover:  var(--purple-600);
  --accent-dim:    var(--purple-50);
  --accent-border: rgba(108,92,231,0.25);

  --success:       var(--green-500);
  --success-dim:   var(--green-dim);
  --warning:       var(--amber-500);
  --warning-dim:   var(--amber-dim);
  --danger:        var(--red-500);
  --danger-dim:    var(--red-dim);
  --info:          var(--blue-500);
  --info-dim:      var(--blue-dim);

  /* ── Shadows ── */
  --shadow-xs:  0 1px 2px rgba(15,23,42,0.05);
  --shadow-sm:  0 1px 6px rgba(15,23,42,0.07), 0 1px 2px rgba(15,23,42,0.04);
  --shadow-md:  0 4px 16px rgba(15,23,42,0.09), 0 1px 4px rgba(15,23,42,0.05);
  --shadow-lg:  0 8px 32px rgba(15,23,42,0.11), 0 2px 8px rgba(15,23,42,0.06);
  --shadow-xl:  0 16px 48px rgba(15,23,42,0.14), 0 4px 16px rgba(15,23,42,0.07);
  --shadow-accent: 0 4px 20px rgba(108,92,231,0.30);

  /* ── Border radius ── */
  --r-xs:   4px;
  --r-sm:   6px;
  --r:      8px;
  --r-md:   10px;
  --r-lg:   14px;
  --r-xl:   18px;
  --r-2xl:  24px;
  --r-full: 9999px;

  /* ── Typography ── */
  --font:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* ── Type scale ── */
  --t-2xs:  10px;
  --t-xs:   11px;
  --t-sm:   13px;
  --t-base: 15px;
  --t-md:   17px;
  --t-lg:   20px;
  --t-xl:   24px;
  --t-2xl:  30px;
  --t-3xl:  36px;
  --t-4xl:  clamp(2.5rem, 5vw, 3.5rem);
  --t-5xl:  clamp(3rem, 7vw, 5rem);

  /* ── Spacing (8pt grid) ── */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  20px;
  --sp-6:  24px;
  --sp-8:  32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;
  --sp-24: 96px;

  /* ── Layout ── */
  --nav-h:    60px;
  --sidebar-w: 220px;
  --content-w: 1120px;
  --prose-w:   680px;

  /* ── Motion ── */
  --dur-fast:  0.12s;
  --dur-base:  0.20s;
  --dur-slow:  0.35s;
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:  cubic-bezier(0.0, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─────────────────────────────────────────────────────────
   DARK MODE
───────────────────────────────────────────────────────── */
[data-theme="dark"],
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:            #0d0d14;
    --bg-subtle:     #141420;
    --bg-muted:      #1a1a2c;
    --surface:       #181824;
    --surface-raised:#1e1e30;

    --border:        rgba(255,255,255,0.06);
    --border-strong: rgba(255,255,255,0.12);

    --text:          #f1f5f9;
    --text-secondary:#94a3b8;
    --text-muted:    #475569;
    --text-disabled: #334155;

    --accent:        #7c6ff0;
    --accent-hover:  #9080f4;
    --accent-dim:    rgba(108,92,231,0.12);
    --accent-border: rgba(108,92,231,0.30);

    --shadow-xs:  0 1px 2px rgba(0,0,0,0.3);
    --shadow-sm:  0 1px 6px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.25);
    --shadow-md:  0 4px 16px rgba(0,0,0,0.5), 0 1px 4px rgba(0,0,0,0.3);
    --shadow-lg:  0 8px 32px rgba(0,0,0,0.6), 0 2px 8px rgba(0,0,0,0.35);
    --shadow-xl:  0 16px 48px rgba(0,0,0,0.7), 0 4px 16px rgba(0,0,0,0.4);
  }
}
[data-theme="dark"] {
  --bg:            #0d0d14;
  --bg-subtle:     #141420;
  --bg-muted:      #1a1a2c;
  --surface:       #181824;
  --surface-raised:#1e1e30;

  --border:        rgba(255,255,255,0.06);
  --border-strong: rgba(255,255,255,0.12);

  --text:          #f1f5f9;
  --text-secondary:#94a3b8;
  --text-muted:    #475569;
  --text-disabled: #334155;

  --accent:        #7c6ff0;
  --accent-hover:  #9080f4;
  --accent-dim:    rgba(108,92,231,0.12);
  --accent-border: rgba(108,92,231,0.30);

  --shadow-xs:  0 1px 2px rgba(0,0,0,0.3);
  --shadow-sm:  0 1px 6px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.25);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.5), 0 1px 4px rgba(0,0,0,0.3);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.6), 0 2px 8px rgba(0,0,0,0.35);
  --shadow-xl:  0 16px 48px rgba(0,0,0,0.7), 0 4px 16px rgba(0,0,0,0.4);
}

/* ─────────────────────────────────────────────────────────
   RESET
───────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  font-family: var(--font);
  font-size: var(--t-base);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
ul, ol { list-style: none; }

/* ─────────────────────────────────────────────────────────
   LAYOUT UTILITIES
───────────────────────────────────────────────────────── */
.container {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 max(var(--sp-6), 5%);
}
.section { padding: var(--sp-24) 0; }
.section-sm { padding: var(--sp-16) 0; }
.page-content { padding-top: var(--nav-h); min-height: 100vh; }

.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: var(--sp-1); }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }
.gap-6 { gap: var(--sp-6); }
.gap-8 { gap: var(--sp-8); }

/* ─────────────────────────────────────────────────────────
   TYPOGRAPHY
───────────────────────────────────────────────────────── */
.t-2xs   { font-size: var(--t-2xs); }
.t-xs    { font-size: var(--t-xs); }
.t-sm    { font-size: var(--t-sm); }
.t-base  { font-size: var(--t-base); }
.t-md    { font-size: var(--t-md); }
.t-lg    { font-size: var(--t-lg); }
.t-xl    { font-size: var(--t-xl); }
.t-2xl   { font-size: var(--t-2xl); }
.t-3xl   { font-size: var(--t-3xl); }

.t-muted      { color: var(--text-muted); }
.t-secondary  { color: var(--text-secondary); }
.t-accent     { color: var(--accent); }

.font-medium  { font-weight: 500; }
.font-semibold{ font-weight: 600; }
.font-bold    { font-weight: 700; }
.font-extrabold{ font-weight: 800; }

.tracking-tight { letter-spacing: -0.025em; }
.tracking-wide  { letter-spacing: 0.05em; }
.tracking-wider { letter-spacing: 0.08em; }
.tracking-widest{ letter-spacing: 0.12em; }

.uppercase { text-transform: uppercase; }
.leading-none  { line-height: 1; }
.leading-tight { line-height: 1.2; }
.leading-snug  { line-height: 1.4; }
.leading-relaxed{ line-height: 1.7; }

/* Section typography helpers */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-4);
}
.section-eyebrow::before {
  content: '';
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  flex-shrink: 0;
}

.section-title {
  font-size: var(--t-4xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: var(--sp-4);
}
.section-sub {
  font-size: var(--t-md);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 540px;
}

/* ─────────────────────────────────────────────────────────
   NAVBAR
───────────────────────────────────────────────────────── */
nav, .topnav {
  position: sticky;
  top: 0;
  z-index: 800;
  height: var(--nav-h);
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(var(--sp-6), 5%);
  transition: border-color var(--dur-base), box-shadow var(--dur-base), background var(--dur-base);
}
[data-theme="dark"] nav,
[data-theme="dark"] .topnav {
  background: rgba(13,13,20,0.90);
}
nav.scrolled, .topnav.scrolled {
  border-bottom-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.nav-logo, .logo {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-logo em, .logo em,
.nav-logo span.accent, .logo span.accent {
  color: var(--accent);
  font-style: normal;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  list-style: none;
}
.nav-links a {
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--text-secondary);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r);
  transition: color var(--dur-fast), background var(--dur-fast);
}
.nav-links a:hover {
  color: var(--text);
  background: var(--bg-subtle);
}
.nav-links a.active {
  color: var(--accent);
  background: var(--accent-dim);
}
.nav-actions { display: flex; gap: var(--sp-2); align-items: center; }

/* ─────────────────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--font);
  font-size: var(--t-sm);
  font-weight: 500;
  line-height: 1;
  border-radius: var(--r);
  padding: 9px 16px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--dur-fast) var(--ease);
  position: relative;
  outline: none;
  user-select: none;
}
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.btn:disabled, .btn[disabled] {
  opacity: 0.5;
  pointer-events: none;
}

/* Sizes */
.btn-xs { padding: 5px 10px; font-size: var(--t-2xs); border-radius: var(--r-sm); }
.btn-sm { padding: 7px 12px; font-size: var(--t-xs); }
.btn-md { padding: 9px 16px; font-size: var(--t-sm); }
.btn-lg { padding: 12px 22px; font-size: var(--t-base); }
.btn-xl { padding: 14px 28px; font-size: var(--t-md); }

/* Variants */
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 1px 3px rgba(108,92,231,0.20);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: var(--shadow-accent);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--bg-subtle);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  background: var(--bg-muted);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}
.btn-ghost:hover {
  background: var(--bg-subtle);
  color: var(--text);
}

.btn-danger {
  background: var(--danger-dim);
  color: var(--danger);
  border-color: rgba(239,68,68,0.2);
}
.btn-danger:hover {
  background: var(--danger);
  color: #fff;
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  border-color: var(--border);
  border-radius: var(--r);
}
.btn-icon:hover {
  background: var(--accent-dim);
  border-color: var(--accent-border);
  color: var(--accent);
}
.btn-icon-sm { width: 28px; height: 28px; border-radius: var(--r-sm); }
.btn-icon-lg { width: 44px; height: 44px; border-radius: var(--r-md); }

/* Loading state */
.btn-loading {
  pointer-events: none;
  opacity: 0.75;
}
.btn-spinner {
  width: 13px;
  height: 13px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─────────────────────────────────────────────────────────
   CARDS
───────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  position: relative;
  overflow: hidden;
  transition: border-color var(--dur-base), box-shadow var(--dur-base), transform var(--dur-base);
}
.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.card-interactive:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-border);
}

.card-sm { padding: var(--sp-4); border-radius: var(--r-lg); }
.card-md { padding: var(--sp-5); }
.card-lg { padding: var(--sp-8); border-radius: var(--r-2xl); }

/* Accent stripe card */
.card-accented::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--purple-300));
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-slow) var(--ease);
}
.card-accented:hover::before { transform: scaleX(1); }

/* Subtle glow card */
.card-glow:hover {
  border-color: var(--accent-border);
  box-shadow: 0 0 0 1px var(--accent-border), var(--shadow-md);
}

/* Post card — flat style now defined per-page in feed.html */

/* Sidebar card */
.sidebar-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  margin-bottom: var(--sp-3);
}

/* ─────────────────────────────────────────────────────────
   FORMS
───────────────────────────────────────────────────────── */
.field-label {
  display: block;
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: var(--sp-2);
}
.field-hint {
  font-size: var(--t-xs);
  color: var(--text-muted);
  margin-top: var(--sp-1);
}
.field-error {
  font-size: var(--t-xs);
  color: var(--danger);
  margin-top: var(--sp-1);
}

.input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font);
  font-size: var(--t-sm);
  font-weight: 400;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r);
  outline: none;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  -webkit-appearance: none;
}
.input::placeholder, input::placeholder, textarea::placeholder { color: var(--text-muted); }
.input:hover, input:hover, textarea:hover, select:hover { border-color: var(--accent-border); }
.input:focus, input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.input.error { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-dim); }
.input.success { border-color: var(--success); box-shadow: 0 0 0 3px var(--success-dim); }

textarea.input { min-height: 100px; resize: vertical; }
select.input { cursor: pointer; }

/* Input with icon */
.input-wrap { position: relative; }
.input-wrap .input,
.input-wrap input { padding-left: 38px; }
.input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
  transition: color var(--dur-fast);
}
.input-icon svg { width: 15px; height: 15px; }
.input-wrap:focus-within .input-icon { color: var(--accent); }

/* ─────────────────────────────────────────────────────────
   BADGES & TAGS
───────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 3px 8px;
  font-size: var(--t-xs);
  font-weight: 600;
  border-radius: var(--r-full);
  line-height: 1;
}
.badge-default { background: var(--bg-muted); color: var(--text-secondary); }
.badge-accent  { background: var(--accent-dim); color: var(--accent); border: 1px solid var(--accent-border); }
.badge-success { background: var(--success-dim); color: var(--success); }
.badge-warning { background: var(--warning-dim); color: var(--warning); }
.badge-danger  { background: var(--danger-dim); color: var(--danger); }
.badge-info    { background: var(--info-dim); color: var(--info); }
.badge-dot::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 4px 10px;
  font-size: var(--t-xs);
  font-weight: 500;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  cursor: default;
  transition: all var(--dur-fast);
}
.tag-accent { background: var(--accent-dim); color: var(--accent); border-color: var(--accent-border); }
.tag-success{ background: var(--success-dim); color: var(--success); border-color: transparent; }
.tag-warning{ background: var(--warning-dim); color: var(--warning); border-color: transparent; }
.tag-danger { background: var(--danger-dim); color: var(--danger); border-color: transparent; }
.tag-info   { background: var(--info-dim); color: var(--info); border-color: transparent; }

.skill-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 5px 12px;
  font-size: var(--t-xs);
  font-weight: 500;
  border-radius: var(--r-full);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--dur-fast);
}
.skill-badge:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-1px);
}

/* ─────────────────────────────────────────────────────────
   AVATARS
───────────────────────────────────────────────────────── */
.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-full);
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 600;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid var(--border);
  font-size: 12px;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-xs  { width: 24px; height: 24px; font-size: 10px; }
.avatar-sm  { width: 32px; height: 32px; font-size: 11px; }
.avatar-md  { width: 40px; height: 40px; font-size: 14px; }
.avatar-lg  { width: 48px; height: 48px; font-size: 16px; }
.avatar-xl  { width: 64px; height: 64px; font-size: 20px; }
.avatar-2xl { width: 80px; height: 80px; font-size: 24px; }

/* Online ring */
.avatar-online { position: relative; }
.avatar-online::after {
  content: '';
  position: absolute;
  bottom: 1px; right: 1px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--success);
  border: 2px solid var(--bg);
}

/* Avatar group */
.avatar-group { display: flex; }
.avatar-group .avatar { margin-left: -8px; border: 2px solid var(--bg); }
.avatar-group .avatar:first-child { margin-left: 0; }

/* ─────────────────────────────────────────────────────────
   MODAL / OVERLAY
───────────────────────────────────────────────────────── */
.modal-overlay, #popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
}
.modal-overlay.open, #popup-overlay.open { display: flex; }

.modal-box, .popup-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: var(--sp-8);
  width: 90%;
  max-width: 480px;
  position: relative;
  box-shadow: var(--shadow-xl);
  animation: modalIn 0.25s var(--ease-spring);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close, .popup-close {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--r);
  cursor: pointer;
  color: var(--text-muted);
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--dur-fast);
}
.modal-close:hover, .popup-close:hover {
  background: var(--bg-muted);
  color: var(--text);
}

/* ─────────────────────────────────────────────────────────
   TOAST NOTIFICATIONS
───────────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-6);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  pointer-events: all;
  min-width: 280px;
  max-width: 380px;
  animation: toastIn 0.3s var(--ease-spring);
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(16px) scale(0.97); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
.toast-icon { font-size: 15px; flex-shrink: 0; margin-top: 1px; }
.toast-body { flex: 1; }
.toast-title { font-size: var(--t-sm); font-weight: 600; color: var(--text); }
.toast-msg   { font-size: var(--t-xs); color: var(--text-secondary); margin-top: 2px; }
.toast-success { border-left: 3px solid var(--success); }
.toast-error   { border-left: 3px solid var(--danger); }
.toast-info    { border-left: 3px solid var(--accent); }
.toast-warning { border-left: 3px solid var(--warning); }

/* ─────────────────────────────────────────────────────────
   SKELETON LOADERS
───────────────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-muted) 25%,
    var(--bg-subtle) 50%,
    var(--bg-muted) 75%
  );
  background-size: 200% 100%;
  border-radius: var(--r-sm);
  animation: shimmer 1.6s infinite;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-text  { height: 13px; border-radius: var(--r-sm); }
.skeleton-title { height: 20px; border-radius: var(--r-sm); }
.skeleton-avatar{ border-radius: 50%; }
.skeleton-card  { border-radius: var(--r-xl); min-height: 80px; }

/* ─────────────────────────────────────────────────────────
   ALERTS
───────────────────────────────────────────────────────── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: 12px var(--sp-4);
  border-radius: var(--r-md);
  font-size: var(--t-sm);
  line-height: 1.5;
  border: 1px solid transparent;
}
.alert-title { font-weight: 600; margin-bottom: 2px; }
.alert-success { background: var(--success-dim); color: #065f46; border-color: rgba(16,185,129,0.2); }
.alert-error   { background: var(--danger-dim);  color: #991b1b; border-color: rgba(239,68,68,0.2); }
.alert-warning { background: var(--warning-dim); color: #92400e; border-color: rgba(245,158,11,0.2); }
.alert-info    { background: var(--info-dim);    color: #1e40af; border-color: rgba(59,130,246,0.2); }

/* ─────────────────────────────────────────────────────────
   TABS
───────────────────────────────────────────────────────── */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
  padding: 10px 16px;
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color var(--dur-fast), border-color var(--dur-fast);
  background: transparent;
  border-top: none; border-left: none; border-right: none;
  outline: none;
  font-family: var(--font);
  text-decoration: none;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ─────────────────────────────────────────────────────────
   TOGGLE / SWITCH
───────────────────────────────────────────────────────── */
.toggle-wrap {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  cursor: pointer;
}
.toggle-wrap input[type="checkbox"] { display: none; }

.toggle-switch {
  width: 44px;
  height: 24px;
  background: var(--border-strong);
  border-radius: var(--r-full);
  position: relative;
  transition: background var(--dur-base);
  flex-shrink: 0;
  cursor: pointer;
}
.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  transition: transform var(--dur-base) var(--ease-spring);
}
.toggle-wrap input:checked + .toggle-switch {
  background: var(--accent);
}
.toggle-wrap input:checked + .toggle-switch::after {
  transform: translateX(20px);
}

/* ─────────────────────────────────────────────────────────
   CHECKBOXES
───────────────────────────────────────────────────────── */
.checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  cursor: pointer;
  user-select: none;
}
.checkbox-wrap input[type="checkbox"] { display: none; }

.checkbox {
  width: 18px; height: 18px;
  flex-shrink: 0;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  position: relative;
  transition: all var(--dur-fast);
  margin-top: 1px;
}
.checkbox::after {
  content: '';
  position: absolute;
  top: 2px; left: 5px;
  width: 5px; height: 8px;
  border: 2px solid #fff;
  border-top: none; border-left: none;
  transform: rotate(45deg) scale(0);
  transition: transform 0.12s var(--ease-spring);
}
.checkbox-wrap input:checked + .checkbox {
  background: var(--accent);
  border-color: var(--accent);
}
.checkbox-wrap input:checked + .checkbox::after {
  transform: rotate(45deg) scale(1);
}

/* Pill checkbox */
.checkbox-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 6px 14px;
  border-radius: var(--r-full);
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  cursor: pointer;
  transition: all var(--dur-fast);
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--text-secondary);
  user-select: none;
}
.checkbox-pill input { display: none; }
.checkbox-pill:has(input:checked) {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

/* ─────────────────────────────────────────────────────────
   PROGRESS
───────────────────────────────────────────────────────── */
.progress {
  height: 4px;
  background: var(--bg-muted);
  border-radius: var(--r-full);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: var(--r-full);
  transition: width var(--dur-slow) var(--ease);
}
.progress-sm { height: 2px; }
.progress-lg { height: 6px; }

/* ─────────────────────────────────────────────────────────
   STEP INDICATOR
───────────────────────────────────────────────────────── */
.step-indicator {
  display: flex;
  align-items: center;
  margin-bottom: var(--sp-8);
}
.step-dot {
  width: 28px; height: 28px;
  border-radius: var(--r-full);
  background: var(--bg-subtle);
  border: 1.5px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600;
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: all var(--dur-base);
}
.step-dot.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.step-dot.done   { border-color: var(--accent); color: var(--accent); }
.step-line { flex: 1; height: 1.5px; background: var(--border-strong); }
.step-line.done  { background: var(--accent); opacity: 0.5; }

/* ─────────────────────────────────────────────────────────
   LOADERS
───────────────────────────────────────────────────────── */
.loader {
  width: 32px; height: 32px;
  border: 2.5px solid var(--bg-muted);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.loader-sm { width: 18px; height: 18px; border-width: 2px; }
.loader-lg { width: 48px; height: 48px; border-width: 3px; }

.loader-dots { display: flex; gap: 5px; align-items: center; }
.loader-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: dotBounce 1.1s ease-in-out infinite;
}
.loader-dot:nth-child(2) { animation-delay: 0.12s; }
.loader-dot:nth-child(3) { animation-delay: 0.24s; }
@keyframes dotBounce {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.4; }
  40%           { transform: scale(1.1); opacity: 1; }
}

/* ─────────────────────────────────────────────────────────
   DROPDOWNS
───────────────────────────────────────────────────────── */
.dropdown {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-1) 0;
  min-width: 180px;
  overflow: hidden;
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 9px 14px;
  font-size: var(--t-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--dur-fast), color var(--dur-fast);
  text-decoration: none;
}
.dropdown-item:hover { background: var(--bg-subtle); color: var(--text); }
.dropdown-item.danger { color: var(--danger); }
.dropdown-item.danger:hover { background: var(--danger-dim); }
.dropdown-divider { height: 1px; background: var(--border); margin: var(--sp-1) 0; }

/* ─────────────────────────────────────────────────────────
   DATA TABLE
───────────────────────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.data-table th {
  padding: 10px 14px;
  text-align: left;
  font-size: var(--t-2xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 12px 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  transition: background var(--dur-fast);
}
.data-table tr:hover td { background: var(--bg-subtle); }
.data-table tr:last-child td { border-bottom: none; }

/* ─────────────────────────────────────────────────────────
   TOOLTIPS
───────────────────────────────────────────────────────── */
.tooltip-wrap { position: relative; display: inline-flex; }
.tooltip-wrap .tooltip {
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--text);
  color: #fff;
  font-size: var(--t-xs);
  font-weight: 400;
  padding: 5px 10px;
  border-radius: var(--r);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s, transform 0.15s;
  z-index: 300;
}
.tooltip-wrap .tooltip::after {
  content: '';
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: var(--text);
}
.tooltip-wrap:hover .tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─────────────────────────────────────────────────────────
   EMPTY STATES
───────────────────────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--sp-16) var(--sp-6);
  text-align: center;
  color: var(--text-secondary);
}
.empty-state-icon {
  width: 52px; height: 52px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: var(--sp-4);
  color: var(--text-muted);
}
.empty-state-title {
  font-size: var(--t-md);
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--sp-2);
}
.empty-state p { font-size: var(--t-sm); max-width: 320px; }

/* ─────────────────────────────────────────────────────────
   SIDEBAR
───────────────────────────────────────────────────────── */
.sidebar {
  background: var(--bg-subtle);
  border-right: 1px solid var(--border);
  width: var(--sidebar-w);
  height: 100vh;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  overflow-y: auto;
  padding: var(--sp-4) var(--sp-3);
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 8px 10px;
  border-radius: var(--r);
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background var(--dur-fast), color var(--dur-fast);
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}
.nav-link:hover { background: var(--bg-muted); color: var(--text); }
.nav-link.active { background: var(--accent-dim); color: var(--accent); }
.nav-link svg { width: 16px; height: 16px; flex-shrink: 0; }

/* App layout with sidebar */
.app-layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
  padding-top: var(--nav-h);
}

/* ─────────────────────────────────────────────────────────
   CHAT BUBBLES
───────────────────────────────────────────────────────── */
.bubble-own {
  background: var(--accent);
  color: #fff;
  border-radius: 16px 16px 4px 16px;
  padding: 10px 14px;
  font-size: var(--t-sm);
  line-height: 1.5;
  max-width: 72%;
}
.bubble-other {
  background: var(--bg-subtle);
  color: var(--text);
  border-radius: 16px 16px 16px 4px;
  padding: 10px 14px;
  font-size: var(--t-sm);
  line-height: 1.5;
  max-width: 72%;
  border: 1px solid var(--border);
}

/* ─────────────────────────────────────────────────────────
   NOTIFICATIONS
───────────────────────────────────────────────────────── */
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-4);
  border-radius: var(--r-lg);
  transition: background var(--dur-fast);
  cursor: pointer;
}
.notif-item:hover { background: var(--bg-subtle); }
.notif-item.unread {
  background: var(--accent-dim);
  border-left: 2px solid var(--accent);
}

/* ─────────────────────────────────────────────────────────
   PROFILE COVER
───────────────────────────────────────────────────────── */
.profile-cover {
  height: 160px;
  background: linear-gradient(135deg, var(--bg-muted) 0%, var(--accent-dim) 100%);
  border-radius: var(--r-xl);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}

/* ─────────────────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────────────────── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: var(--sp-6) max(var(--sp-6), 5%);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
}
.footer-logo {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.footer-logo em { color: var(--accent); font-style: normal; }
.footer-links { display: flex; gap: var(--sp-6); flex-wrap: wrap; list-style: none; }
.footer-links a { font-size: var(--t-sm); color: var(--text-secondary); transition: color var(--dur-fast); }
.footer-links a:hover { color: var(--accent); }
.footer-copy { font-size: var(--t-xs); color: var(--text-muted); }

/* ─────────────────────────────────────────────────────────
   DIVIDERS
───────────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: var(--sp-6) 0;
}
.divider-label {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--t-xs);
  color: var(--text-muted);
}
.divider-label::before,
.divider-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ─────────────────────────────────────────────────────────
   SCROLLBAR
───────────────────────────────────────────────────────── */
::selection { background: var(--accent-dim); color: var(--accent); }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: var(--r-full); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ─────────────────────────────────────────────────────────
   ANIMATIONS
───────────────────────────────────────────────────────── */
@keyframes fadeUp   { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn   { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn  { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
@keyframes blink    { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes pulse    { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* Scroll-triggered reveal */
.reveal {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: no-preference) {
  .js-reveal-ready .reveal:not(.visible) {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  }
  .js-reveal-ready .reveal.visible {
    opacity: 1;
    transform: none;
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  }
  .reveal-delay-1 { transition-delay: 0.08s; }
  .reveal-delay-2 { transition-delay: 0.16s; }
  .reveal-delay-3 { transition-delay: 0.24s; }
}

/* ─────────────────────────────────────────────────────────
   SVG ICON SYSTEM
───────────────────────────────────────────────────────── */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon svg { display: block; }
.icon-xs svg  { width: 12px; height: 12px; }
.icon-sm svg  { width: 14px; height: 14px; }
.icon svg     { width: 16px; height: 16px; }
.icon-md svg  { width: 18px; height: 18px; }
.icon-lg svg  { width: 20px; height: 20px; }
.icon-xl svg  { width: 24px; height: 24px; }

/* Icon wrapper box */
.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r);
  background: var(--accent-dim);
  color: var(--accent);
  flex-shrink: 0;
}
.icon-box svg { width: 18px; height: 18px; }
.icon-box-sm  { width: 32px; height: 32px; }
.icon-box-md  { width: 40px; height: 40px; }
.icon-box-lg  { width: 48px; height: 48px; border-radius: var(--r-md); }
.icon-box-xl  { width: 56px; height: 56px; border-radius: var(--r-lg); }

/* ─────────────────────────────────────────────────────────
   STATUS INDICATORS
───────────────────────────────────────────────────────── */
.status-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  vertical-align: middle;
}
.status-online  { background: var(--success); }
.status-offline { background: var(--border-strong); }
.status-busy    { background: var(--danger); }
.status-away    { background: var(--warning); }

/* Pulsing live dot */
.live-dot {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--success);
}
.live-dot::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: blink 1.8s infinite;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────────
   MATCH SCORE BADGE
───────────────────────────────────────────────────────── */
.match-score {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--t-xs);
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 3px 8px;
  border-radius: var(--r-full);
}

/* ─────────────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .app-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  nav .nav-links, .topnav .nav-links { display: none; }
  .container { padding: 0 var(--sp-5); }
}
@media (max-width: 640px) {
  :root { --nav-h: 56px; }
  .section { padding: var(--sp-16) 0; }
  footer .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .toast-container { left: var(--sp-4); right: var(--sp-4); bottom: var(--sp-4); }
  .toast { min-width: unset; max-width: unset; width: 100%; }
}

/* ─────────────────────────────────────────────────────────
   LEGACY ALIASES (backward compat with other pages)
───────────────────────────────────────────────────────── */
:root {
  /* Old token names → new tokens */
  --bg2: var(--bg-subtle);
  --bg3: var(--bg-muted);
  --text-2: var(--text-secondary);
  --text-3: var(--text-muted);
  --border-hi: var(--border-strong);
  --accent-glow: rgba(108,92,231,0.20);
  --shadow: var(--shadow-sm);

  /* Font aliases */
  --font-body:    var(--font);
  --font-display: var(--font);

  /* Spacing aliases */
  --sp-3: 12px;
  --sp-6: 24px;

  /* Old primary color aliases → purple accent */
  --red:        var(--accent);
  --red2:       var(--accent-hover);
  --red-faint:  var(--accent-dim);
  --red-dim:    var(--accent-dim);
  --border-red: var(--accent-border);
  --coral:      var(--accent);
  --ink:        var(--text);
  --ink2:       var(--text);
  --surface2:   var(--bg-subtle);
  --surface3:   var(--bg-muted);
  --surface-hi: var(--bg-muted);
  --bg-base:    var(--bg);
  --bg-elevated:var(--bg-subtle);
  --bg-overlay: var(--accent-dim);
  --bg-border:  var(--border);
  --bg-border-hi:var(--border-strong);
  --silver:     var(--text-muted);
  --white:      #ffffff;
  --white-mid:  rgba(255,255,255,0.70);

  /* Color aliases */
  --lime:   #10b981;
  --teal:   #10b981;
  --teal-dim: rgba(16,185,129,0.12);
  --green:  #10b981;
  --green-dim: rgba(16,185,129,0.12);
  --amber:  #f59e0b;
  --amber-dim: rgba(245,158,11,0.12);
  --blue:   #3b82f6;
  --blue-dim: rgba(59,130,246,0.12);
  --navy:   #1e1b4b;
  --navy2:  #312e81;
  --gold:   #f59e0b;
  --muted:  var(--text-secondary);
  --muted2: var(--text-muted);

  /* Radius aliases */
  --r-xs:   4px;
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   14px;
  --r-xl:   18px;
  --r-full: 9999px;
  --rl:     18px;

  /* Old shadow names */
  --shadow-sm: 0 1px 6px rgba(15,23,42,0.07), 0 1px 2px rgba(15,23,42,0.04);
  --shadow-md: 0 4px 16px rgba(15,23,42,0.09), 0 1px 4px rgba(15,23,42,0.05);
  --shadow-lg: 0 8px 32px rgba(15,23,42,0.11), 0 2px 8px rgba(15,23,42,0.06);

  /* Nav height alias */
  --nav-h: 60px;
}

/* Button aliases */
.btn-red { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-red:hover { background: var(--accent-hover); }
.btn-outline-lg {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-full);
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px; font-size: var(--t-md);
  transition: all var(--dur-fast); cursor: pointer;
}
.btn-outline-lg:hover { border-color: var(--text); background: var(--bg-subtle); }

.btn-primary-lg {
  background: var(--accent); color: #fff;
  border: 1.5px solid var(--accent);
  border-radius: var(--r-full);
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px; font-size: var(--t-md);
  box-shadow: var(--shadow-accent);
  transition: all var(--dur-fast); cursor: pointer;
}
.btn-primary-lg:hover { background: var(--accent-hover); transform: translateY(-1px); }

/* Tag aliases */
.tag-teal  { background: var(--teal-dim); color: var(--teal); border-color: transparent; }
.tag-red   { background: var(--accent-dim); color: var(--accent); border-color: var(--accent-border); }
