/* ============================================
   OpportunityHub — Tier-1 Glass Design System
   ============================================ */

:root {
  /* Shared */
  --blur: 20px;
  --grad-accent: linear-gradient(135deg, #6366f1 0%, #22d3ee 100%);
  --grad-cta: linear-gradient(135deg, #6366f1 0%, #a855f7 55%, #22d3ee 130%);

  /* ---- LIGHT THEME (default) ---- */
  --bg-0: #f4f6fc;
  --bg-1: #ffffff;
  --bg-2: #e9edf7;

  --glass: rgba(255, 255, 255, 0.55);
  --glass-2: rgba(255, 255, 255, 0.72);
  --glass-3: rgba(255, 255, 255, 0.92);
  --stroke: rgba(15, 23, 42, 0.1);
  --stroke-2: rgba(15, 23, 42, 0.2);

  --text-1: #0b1220;
  --text-2: #45506b;
  --text-3: #7b849e;

  --indigo: #4f46e5;
  --violet: #7c3aed;
  --cyan: #0891b2;
  --sky: #0284c7;
  --emerald: #059669;
  --amber: #b45309;
  --orange: #c2410c;
  --rose: #e11d48;
  --pink: #db2777;
  --teal: #0d9488;

  --grad-text: linear-gradient(92deg, #4f46e5 0%, #0891b2 100%);
  --aurora:
    radial-gradient(55% 42% at 12% -5%, rgba(99, 102, 241, 0.16), transparent 62%),
    radial-gradient(45% 38% at 88% 4%, rgba(34, 211, 238, 0.14), transparent 62%),
    radial-gradient(42% 42% at 72% 78%, rgba(168, 85, 247, 0.1), transparent 62%),
    radial-gradient(38% 38% at 8% 88%, rgba(56, 189, 248, 0.1), transparent 62%),
    var(--bg-0);
  --grid-line: rgba(15, 23, 42, 0.05);

  --field-bg: rgba(255, 255, 255, 0.7);
  --field-bg-focus: #ffffff;
  --nav-bg: rgba(255, 255, 255, 0.6);
  --nav-bg-strong: rgba(255, 255, 255, 0.85);
  --panel-pop: rgba(255, 255, 255, 0.97);
  --overlay-bg: rgba(244, 246, 252, 0.94);
  --well: rgba(255, 255, 255, 0.65);
  --footer-bg: rgba(255, 255, 255, 0.6);
  --shadow-card: 0 10px 32px rgba(15, 23, 42, 0.09);
  --shadow-pop: 0 24px 60px rgba(15, 23, 42, 0.16);
  --logo-l: 38%;
  --orb-o: 0.32;
  color-scheme: light;

  /* Type */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 1.9rem;
  --fs-4xl: 2.4rem;
  --fs-5xl: 3.1rem;
  --fs-6xl: 3.9rem;

  /* Space */
  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.25rem; --sp-6: 1.5rem; --sp-8: 2rem; --sp-10: 2.5rem;
  --sp-12: 3rem; --sp-16: 4rem; --sp-20: 5rem; --sp-24: 6rem;

  /* Radii */
  --r-sm: 10px; --r-md: 14px; --r-lg: 18px; --r-xl: 24px; --r-full: 999px;

  /* Shadow */
  --glow-accent: 0 6px 28px rgba(99, 102, 241, 0.38);

  /* Motion */
  --t-fast: 160ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-base: 260ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 380ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-spring: 480ms cubic-bezier(0.34, 1.56, 0.64, 1);

  --container: 1200px;
  --container-wide: 1360px;
  --nav-h: 68px;
  --nav-gap: 14px;
}

/* ---- DARK THEME ---- */
:root[data-theme="dark"] {
  --bg-0: #05070d;
  --bg-1: #0a0f1e;
  --bg-2: #0e1526;

  --glass: rgba(148, 163, 184, 0.055);
  --glass-2: rgba(148, 163, 184, 0.09);
  --glass-3: rgba(148, 163, 184, 0.14);
  --stroke: rgba(148, 163, 184, 0.13);
  --stroke-2: rgba(148, 163, 184, 0.24);

  --text-1: #eef2fb;
  --text-2: #a9b4cd;
  --text-3: #67718c;

  --indigo: #818cf8;
  --violet: #a78bfa;
  --cyan: #22d3ee;
  --sky: #38bdf8;
  --emerald: #34d399;
  --amber: #fbbf24;
  --orange: #fb923c;
  --rose: #fb7185;
  --pink: #f472b6;
  --teal: #2dd4bf;

  --grad-text: linear-gradient(92deg, #a5b4fc 0%, #67e8f9 100%);
  --aurora:
    radial-gradient(55% 42% at 12% -5%, rgba(99, 102, 241, 0.2), transparent 62%),
    radial-gradient(45% 38% at 88% 4%, rgba(34, 211, 238, 0.13), transparent 62%),
    radial-gradient(42% 42% at 72% 78%, rgba(168, 85, 247, 0.1), transparent 62%),
    radial-gradient(38% 38% at 8% 88%, rgba(56, 189, 248, 0.08), transparent 62%),
    var(--bg-0);
  --grid-line: rgba(148, 163, 184, 0.035);

  --field-bg: rgba(10, 15, 30, 0.55);
  --field-bg-focus: rgba(10, 15, 30, 0.8);
  --nav-bg: rgba(10, 15, 30, 0.6);
  --nav-bg-strong: rgba(10, 15, 30, 0.85);
  --panel-pop: rgba(14, 21, 38, 0.96);
  --overlay-bg: rgba(5, 7, 13, 0.92);
  --well: rgba(10, 15, 30, 0.4);
  --footer-bg: rgba(5, 7, 13, 0.6);
  --shadow-card: 0 10px 32px rgba(2, 6, 23, 0.5);
  --shadow-pop: 0 24px 60px rgba(2, 6, 23, 0.65);
  --logo-l: 74%;
  --orb-o: 0.5;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.55;
  color: var(--text-2);
  background: var(--bg-0);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Aurora backdrop */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--aurora);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 55% at 50% 0%, black, transparent 90%);
  -webkit-mask-image: radial-gradient(70% 55% at 50% 0%, black, transparent 90%);
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
main { min-width: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; touch-action: manipulation; }
input, select, textarea { font-family: inherit; font-size: var(--fs-base); min-width: 0; }

::selection { background: rgba(99, 102, 241, 0.45); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, 0.22); border-radius: 8px; border: 2px solid var(--bg-0); }
::-webkit-scrollbar-thumb:hover { background: rgba(148, 163, 184, 0.35); }

:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; border-radius: var(--r-sm); }

/* --- Layout utils --- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--sp-6); }
.container--wide { max-width: var(--container-wide); }
.section { padding: var(--sp-24) 0; position: relative; }

.section-header { text-align: center; max-width: 660px; margin: 0 auto var(--sp-16); }

.section-label {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--cyan);
  padding: var(--sp-1) var(--sp-4);
  background: rgba(34, 211, 238, 0.07);
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: var(--r-full);
  margin-bottom: var(--sp-5);
  backdrop-filter: blur(8px);
}
.section-label__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--grad-accent); }

.section-title {
  font-family: var(--font-display);
  font-size: var(--fs-4xl); font-weight: 700; letter-spacing: -0.02em;
  color: var(--text-1); line-height: 1.15; margin-bottom: var(--sp-4);
}
.section-subtitle { font-size: var(--fs-lg); color: var(--text-2); line-height: 1.7; }

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Glass primitive --- */
.glass {
  background: var(--glass);
  backdrop-filter: blur(var(--blur)) saturate(150%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(150%);
  border: 1px solid var(--stroke);
}

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  font-size: var(--fs-sm); font-weight: 600;
  border-radius: var(--r-md);
  transition: transform var(--t-base), box-shadow var(--t-base), background var(--t-base), border-color var(--t-base), color var(--t-base);
  white-space: nowrap; user-select: none;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn--primary { background: var(--grad-accent); color: #fff; box-shadow: var(--glow-accent); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 36px rgba(99, 102, 241, 0.5); }
.btn--primary:active { transform: translateY(0); }

.btn--glass {
  background: var(--glass-2); color: var(--text-1);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(12px);
}
.btn--glass:hover { background: var(--glass-3); border-color: var(--stroke-2); transform: translateY(-1px); }

.btn--ghost { color: var(--text-2); }
.btn--ghost:hover { color: var(--text-1); background: var(--glass-2); }

.btn--danger { background: rgba(251, 113, 133, 0.12); color: var(--rose); border: 1px solid rgba(251, 113, 133, 0.25); }
.btn--danger:hover { background: rgba(251, 113, 133, 0.2); }

.btn--lg { padding: var(--sp-4) var(--sp-8); font-size: var(--fs-base); border-radius: var(--r-lg); }
.btn--sm { padding: var(--sp-2) var(--sp-4); font-size: var(--fs-xs); border-radius: var(--r-sm); }
.btn--block { width: 100%; }

/* --- Badges & chips --- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 11px; font-size: var(--fs-xs); font-weight: 600;
  border-radius: var(--r-full); letter-spacing: 0.02em; line-height: 1.6;
  border: 1px solid transparent;
}
.badge--indigo  { background: rgba(129, 140, 248, 0.12); color: var(--indigo);  border-color: rgba(129, 140, 248, 0.25); }
.badge--violet  { background: rgba(167, 139, 250, 0.12); color: var(--violet);  border-color: rgba(167, 139, 250, 0.25); }
.badge--cyan    { background: rgba(34, 211, 238, 0.10);  color: var(--cyan);    border-color: rgba(34, 211, 238, 0.24); }
.badge--sky     { background: rgba(56, 189, 248, 0.11);  color: var(--sky);     border-color: rgba(56, 189, 248, 0.25); }
.badge--emerald { background: rgba(52, 211, 153, 0.10);  color: var(--emerald); border-color: rgba(52, 211, 153, 0.24); }
.badge--amber   { background: rgba(251, 191, 36, 0.10);  color: var(--amber);   border-color: rgba(251, 191, 36, 0.24); }
.badge--orange  { background: rgba(251, 146, 60, 0.11);  color: var(--orange);  border-color: rgba(251, 146, 60, 0.25); }
.badge--rose    { background: rgba(251, 113, 133, 0.11); color: var(--rose);    border-color: rgba(251, 113, 133, 0.25); }
.badge--pink    { background: rgba(244, 114, 182, 0.11); color: var(--pink);    border-color: rgba(244, 114, 182, 0.25); }
.badge--teal    { background: rgba(45, 212, 191, 0.10);  color: var(--teal);    border-color: rgba(45, 212, 191, 0.24); }
.badge--gray    { background: rgba(148, 163, 184, 0.10); color: var(--text-2);  border-color: rgba(148, 163, 184, 0.22); }

/* Deadline chip */
.dchip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; font-size: var(--fs-xs); font-weight: 600;
  border-radius: var(--r-full); border: 1px solid transparent;
}
.dchip svg { width: 13px; height: 13px; }
.dchip--urgent { background: rgba(251, 113, 133, 0.13); color: var(--rose); border-color: rgba(251, 113, 133, 0.3); animation: dchip-pulse 2.4s infinite; }
.dchip--soon   { background: rgba(251, 191, 36, 0.11); color: var(--amber); border-color: rgba(251, 191, 36, 0.26); }
.dchip--open   { background: rgba(148, 163, 184, 0.09); color: var(--text-2); border-color: var(--stroke); }
.dchip--closed { background: rgba(148, 163, 184, 0.07); color: var(--text-3); border-color: var(--stroke); }

@keyframes dchip-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(251, 113, 133, 0.25); }
  50% { box-shadow: 0 0 0 5px rgba(251, 113, 133, 0); }
}

/* --- Form controls --- */
.input, .select {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  background: var(--field-bg);
  border: 1px solid var(--stroke);
  border-radius: var(--r-md);
  color: var(--text-1);
  font-size: var(--fs-sm);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.input::placeholder { color: var(--text-3); }
.input:focus, .select:focus {
  outline: none;
  border-color: rgba(129, 140, 248, 0.55);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
  background: var(--field-bg-focus);
}
.select {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2367718c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.select option { background: var(--bg-1); color: var(--text-1); }

.field { margin-bottom: var(--sp-5); }
.field__label { display: block; font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); margin-bottom: var(--sp-2); }
.field__error { font-size: var(--fs-xs); color: var(--rose); margin-top: var(--sp-2); }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: var(--nav-gap);
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--container-wide), calc(100% - 2 * var(--nav-gap)));
  height: var(--nav-h);
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(var(--blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
  border: 1px solid var(--stroke);
  border-radius: var(--r-full);
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.07);
  transition: background var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
}
.navbar.scrolled { background: var(--nav-bg-strong); border-color: var(--stroke-2); box-shadow: var(--shadow-card); }

.navbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; padding: 0 var(--sp-3) 0 var(--sp-5);
  gap: var(--sp-4);
}

.navbar__right { display: flex; align-items: center; gap: var(--sp-3); flex-shrink: 0; }

.navbar__logo { display: flex; align-items: center; gap: var(--sp-3); font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 700; color: var(--text-1); z-index: 1001; flex-shrink: 0; }
.navbar__logo-icon {
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--grad-accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--glow-accent);
}
.navbar__logo-text span { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.navbar__nav {
  display: flex; align-items: center; gap: 2px;
  padding: 5px;
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: var(--r-full);
  backdrop-filter: blur(12px);
}
.navbar__link {
  padding: 7px 15px; font-size: var(--fs-sm); font-weight: 500;
  color: var(--text-2); border-radius: var(--r-full);
  transition: color var(--t-fast), background var(--t-fast);
  white-space: nowrap;
}
.navbar__link:hover { color: var(--text-1); background: var(--glass-2); }
.navbar__link--active { color: var(--text-1); background: var(--glass-3); box-shadow: inset 0 0 0 1px var(--stroke-2); }

.navbar__actions { display: flex; align-items: center; gap: var(--sp-3); flex-shrink: 0; }
.navbar__login { padding: var(--sp-2) var(--sp-4); font-size: var(--fs-sm); font-weight: 500; color: var(--text-2); border-radius: var(--r-full); transition: all var(--t-fast); }
.navbar__login:hover { color: var(--text-1); background: var(--glass-2); }
.navbar__signup {
  padding: var(--sp-2) var(--sp-5); font-size: var(--fs-sm); font-weight: 600;
  color: #fff; background: var(--grad-accent); border-radius: var(--r-full);
  box-shadow: var(--glow-accent);
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.navbar__signup:hover { transform: translateY(-1px); box-shadow: 0 10px 32px rgba(99, 102, 241, 0.5); }

/* User chip + menu */
.userchip {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: 5px 14px 5px 5px;
  background: var(--glass-2); border: 1px solid var(--stroke);
  border-radius: var(--r-full); font-size: var(--fs-sm); font-weight: 600; color: var(--text-1);
  transition: all var(--t-fast); position: relative;
}
.userchip:hover { background: var(--glass-3); border-color: var(--stroke-2); }
.userchip__avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--grad-accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-xs); font-weight: 700;
}
.usermenu {
  position: absolute; top: calc(100% + 10px); right: var(--sp-3);
  min-width: 210px; padding: var(--sp-2);
  background: var(--panel-pop);
  backdrop-filter: blur(var(--blur)) saturate(160%);
  border: 1px solid var(--stroke-2); border-radius: var(--r-lg);
  box-shadow: var(--shadow-pop);
  display: none; flex-direction: column; gap: 2px; z-index: 1002;
}
.usermenu.open { display: flex; }
.usermenu__item {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4); font-size: var(--fs-sm); font-weight: 500;
  color: var(--text-2); border-radius: var(--r-sm); transition: all var(--t-fast);
  text-align: left; width: 100%;
}
.usermenu__item:hover { background: var(--glass-2); color: var(--text-1); }
.usermenu__item svg { width: 16px; height: 16px; }
.usermenu__divider { height: 1px; background: var(--stroke); margin: var(--sp-1) 0; }

/* Theme toggle */
.theme-btn {
  width: 40px; height: 40px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--glass-2); border: 1px solid var(--stroke);
  color: var(--text-1);
  transition: transform var(--t-base), background var(--t-fast), border-color var(--t-fast);
}
.theme-btn:hover { background: var(--glass-3); border-color: var(--stroke-2); transform: rotate(18deg); }
.theme-btn svg { width: 18px; height: 18px; }

/* Hamburger */
.navbar__toggle { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%; color: var(--text-1); z-index: 1001; background: var(--glass-2); border: 1px solid var(--stroke); }
.navbar__toggle-icon { width: 18px; height: 13px; position: relative; }
.navbar__toggle-icon span { display: block; width: 100%; height: 2px; background: currentColor; border-radius: 2px; position: absolute; left: 0; transition: all var(--t-base); }
.navbar__toggle-icon span:nth-child(1) { top: 0; }
.navbar__toggle-icon span:nth-child(2) { top: 5.5px; }
.navbar__toggle-icon span:nth-child(3) { top: 11px; }
.navbar__toggle.active .navbar__toggle-icon span:nth-child(1) { top: 5.5px; transform: rotate(45deg); }
.navbar__toggle.active .navbar__toggle-icon span:nth-child(2) { opacity: 0; }
.navbar__toggle.active .navbar__toggle-icon span:nth-child(3) { top: 5.5px; transform: rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none; position: fixed; inset: 0;
  background: var(--overlay-bg);
  backdrop-filter: blur(28px) saturate(150%);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  z-index: 999;
  padding: calc(var(--nav-h) + var(--nav-gap) + var(--sp-6)) var(--sp-6) var(--sp-8);
  overflow-y: auto; opacity: 0; transform: translateY(-8px);
  transition: opacity var(--t-base), transform var(--t-base);
}
.mobile-menu.active { display: flex; flex-direction: column; opacity: 1; transform: translateY(0); }
.mobile-menu__nav { display: flex; flex-direction: column; gap: var(--sp-1); margin-bottom: var(--sp-8); }
.mobile-menu__link {
  padding: var(--sp-4); font-size: var(--fs-lg); font-weight: 500; color: var(--text-2);
  border-radius: var(--r-md); border: 1px solid transparent; transition: all var(--t-fast);
}
.mobile-menu__link:hover, .mobile-menu__link--active { color: var(--text-1); background: var(--glass-2); border-color: var(--stroke); }
.mobile-menu__actions { display: flex; flex-direction: column; gap: var(--sp-3); margin-top: auto; }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + var(--sp-16)) 0 var(--sp-20);
  overflow: hidden;
}

.hero__orbs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero__orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: var(--orb-o); animation: orb-float 22s infinite ease-in-out; }
.hero__orb:nth-child(1) { width: 520px; height: 520px; background: rgba(99, 102, 241, 0.28); top: -180px; right: -80px; }
.hero__orb:nth-child(2) { width: 420px; height: 420px; background: rgba(34, 211, 238, 0.16); bottom: -140px; left: -140px; animation-delay: -8s; animation-duration: 28s; }
.hero__orb:nth-child(3) { width: 300px; height: 300px; background: rgba(168, 85, 247, 0.18); top: 42%; right: 16%; animation-delay: -15s; animation-duration: 32s; }

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(36px, -28px) scale(1.06); }
  66% { transform: translate(-24px, 22px) scale(0.95); }
}

.hero__content { position: relative; z-index: 1; text-align: center; max-width: 860px; margin: 0 auto; }

.hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-6xl); font-weight: 700; letter-spacing: -0.03em;
  color: var(--text-1); line-height: 1.06; margin-bottom: var(--sp-6);
  animation: rise 0.7s ease-out 0.08s both;
}
.hero__description {
  font-size: var(--fs-lg); color: var(--text-2); line-height: 1.75;
  max-width: 620px; margin: 0 auto var(--sp-10);
  animation: rise 0.7s ease-out 0.16s both;
}

/* Search */
.hero__search { position: relative; max-width: 700px; margin: 0 auto; animation: rise 0.7s ease-out 0.24s both; }
.search-bar {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-2);
  background: var(--glass-2);
  backdrop-filter: blur(var(--blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
  border: 1px solid var(--stroke);
  border-radius: var(--r-xl);
  transition: border-color var(--t-base), box-shadow var(--t-base), background var(--t-base);
}
.search-bar:focus-within {
  border-color: rgba(129, 140, 248, 0.5);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.14), var(--shadow-pop);
  background: var(--glass-3);
}
.search-bar__icon { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; color: var(--text-3); flex-shrink: 0; }
.search-bar__icon svg { width: 20px; height: 20px; }
.search-bar__input { flex: 1; min-width: 0; background: none; border: none; outline: none; color: var(--text-1); font-size: var(--fs-base); padding: var(--sp-3) 0; }
.search-bar__input::placeholder { color: var(--text-3); }
.search-bar__filter {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4); color: var(--text-2);
  font-size: var(--fs-sm); font-weight: 500; border-radius: var(--r-lg);
  transition: all var(--t-fast); flex-shrink: 0;
}
.search-bar__filter svg { width: 15px; height: 15px; }
.search-bar__filter:hover { background: var(--glass-2); color: var(--text-1); }
.search-bar__submit {
  padding: var(--sp-3) var(--sp-6); background: var(--grad-accent); color: #fff;
  font-size: var(--fs-sm); font-weight: 600; border-radius: var(--r-lg);
  box-shadow: var(--glow-accent); flex-shrink: 0;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.search-bar__submit:hover { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(99, 102, 241, 0.5); }

/* Suggestions dropdown */
.search-suggest {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: var(--panel-pop);
  backdrop-filter: blur(var(--blur)) saturate(160%);
  border: 1px solid var(--stroke-2); border-radius: var(--r-lg);
  box-shadow: var(--shadow-pop);
  padding: var(--sp-2); display: none; z-index: 50; text-align: left;
  max-height: 330px; overflow-y: auto;
}
.search-suggest.open { display: block; }
.search-suggest__item {
  display: flex; align-items: center; gap: var(--sp-3);
  width: 100%; padding: var(--sp-3); border-radius: var(--r-sm);
  transition: background var(--t-fast); text-align: left;
}
.search-suggest__item:hover { background: var(--glass-2); }
.search-suggest__logo {
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-xs); font-weight: 700; flex-shrink: 0;
  background: hsla(var(--h, 230), 75%, 55%, 0.14);
  color: hsl(var(--h, 230), 70%, var(--logo-l));
  border: 1px solid hsla(var(--h, 230), 75%, 55%, 0.32);
}
.search-suggest__title { font-size: var(--fs-sm); font-weight: 600; color: var(--text-1); display: block; }
.search-suggest__sub { font-size: var(--fs-xs); color: var(--text-3); }
.search-suggest__all { justify-content: center; color: var(--cyan); font-size: var(--fs-sm); font-weight: 600; }

.hero__suggestions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-5); animation: rise 0.7s ease-out 0.32s both; }
.hero__suggestions-label { font-size: var(--fs-sm); color: var(--text-3); }
.hero__suggestion-tag {
  padding: 5px 14px; background: var(--glass); border: 1px solid var(--stroke);
  border-radius: var(--r-full); color: var(--text-2); font-size: var(--fs-xs); font-weight: 500;
  transition: all var(--t-fast); backdrop-filter: blur(8px);
}
.hero__suggestion-tag:hover { background: var(--glass-3); color: var(--text-1); border-color: var(--stroke-2); transform: translateY(-1px); }

/* Stats */
.hero__stats {
  display: flex; align-items: stretch; justify-content: center;
  margin: var(--sp-16) auto 0; max-width: 760px;
  background: var(--glass); border: 1px solid var(--stroke); border-radius: var(--r-xl);
  backdrop-filter: blur(var(--blur));
  animation: rise 0.7s ease-out 0.4s both;
}
.hero__stat { flex: 1; text-align: center; padding: var(--sp-5) var(--sp-4); position: relative; }
.hero__stat + .hero__stat::before { content: ''; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--stroke); }
.hero__stat-number { font-family: var(--font-display); font-size: var(--fs-3xl); font-weight: 700; color: var(--text-1); line-height: 1.1; }
.hero__stat-label { font-size: var(--fs-xs); color: var(--text-3); margin-top: var(--sp-1); text-transform: uppercase; letter-spacing: 0.08em; }

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

/* ============================================
   CLOSING SOON STRIP
   ============================================ */
.strip { padding: var(--sp-12) 0 0; }
.strip__head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--sp-6); }
.strip__title { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 700; color: var(--text-1); display: flex; align-items: center; gap: var(--sp-3); }
.strip__title .dchip { transform: translateY(-1px); }
.strip__scroller { display: grid; grid-auto-flow: column; grid-auto-columns: min(340px, 82vw); gap: var(--sp-5); overflow-x: auto; padding: var(--sp-2) var(--sp-1) var(--sp-5); scroll-snap-type: x mandatory; scrollbar-width: thin; }
.strip__scroller > * { scroll-snap-align: start; }

/* ============================================
   CATEGORY CARDS
   ============================================ */
.explore__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: var(--sp-5); }

.category-card {
  position: relative;
  background: var(--glass);
  backdrop-filter: blur(var(--blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(140%);
  border: 1px solid var(--stroke);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-4);
  overflow: hidden;
  transition: transform var(--t-base), border-color var(--t-base), box-shadow var(--t-base), background var(--t-base);
}
.category-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% -10%, var(--card-tint, rgba(99, 102, 241, 0.14)), transparent 55%);
  opacity: 0; transition: opacity var(--t-base);
}
.category-card:hover { transform: translateY(-5px); border-color: var(--stroke-2); box-shadow: var(--shadow-card); background: var(--glass-2); }
.category-card:hover::before { opacity: 1; }
.category-card > * { position: relative; }

.category-card__icon {
  width: 54px; height: 54px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
  background: var(--glass-2); border: 1px solid var(--stroke);
  transition: transform var(--t-spring);
}
.category-card:hover .category-card__icon { transform: scale(1.12) rotate(-4deg); }
.category-card__title { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 700; color: var(--text-1); }
.category-card__count { font-size: var(--fs-xs); font-weight: 600; color: var(--cyan); }
.category-card__description { font-size: var(--fs-sm); color: var(--text-2); line-height: 1.65; }
.category-card__arrow { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); font-weight: 600; color: var(--indigo); margin-top: auto; transition: gap var(--t-base), color var(--t-base); }
.category-card:hover .category-card__arrow { gap: var(--sp-3); color: var(--cyan); }
.category-card__arrow svg { width: 15px; height: 15px; }

/* ============================================
   OPPORTUNITY CARD
   ============================================ */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: var(--sp-5); }

.opp-card {
  position: relative;
  background: var(--glass);
  backdrop-filter: blur(var(--blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(140%);
  border: 1px solid var(--stroke);
  border-radius: var(--r-xl);
  display: flex; flex-direction: column;
  overflow: hidden; cursor: pointer;
  transition: transform var(--t-base), border-color var(--t-base), box-shadow var(--t-base), background var(--t-base);
}
.opp-card::after {
  content: '';
  position: absolute; top: 0; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(129, 140, 248, 0.7), rgba(34, 211, 238, 0.7), transparent);
  opacity: 0; transition: opacity var(--t-base);
}
.opp-card:hover { transform: translateY(-5px); border-color: var(--stroke-2); box-shadow: var(--shadow-card); background: var(--glass-2); }
.opp-card:hover::after { opacity: 1; }

.opp-card__top { padding: var(--sp-6) var(--sp-6) 0; display: flex; align-items: flex-start; gap: var(--sp-4); }
.opp-card__logo {
  width: 48px; height: 48px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: var(--fs-base); font-weight: 700; flex-shrink: 0;
  background: hsla(var(--h, 230), 75%, 55%, 0.14);
  color: hsl(var(--h, 230), 70%, var(--logo-l));
  border: 1px solid hsla(var(--h, 230), 75%, 55%, 0.32);
}
.opp-card__meta { flex: 1; min-width: 0; }
.opp-card__title { font-size: var(--fs-base); font-weight: 700; color: var(--text-1); line-height: 1.35; margin-bottom: 3px; }
.opp-card__org { font-size: var(--fs-xs); color: var(--text-3); }
.opp-card__save {
  width: 36px; height: 36px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm); color: var(--text-3);
  border: 1px solid transparent;
  transition: all var(--t-fast);
}
.opp-card__save svg { width: 17px; height: 17px; }
.opp-card__save:hover { color: var(--cyan); background: var(--glass-2); border-color: var(--stroke); }
.opp-card__save.saved { color: var(--cyan); }
.opp-card__save.saved svg { fill: currentColor; }

.opp-card__body { padding: var(--sp-4) var(--sp-6); flex: 1; }
.opp-card__badges { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-3); }
.opp-card__desc {
  font-size: var(--fs-sm); color: var(--text-2); line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.opp-card__details { padding: 0 var(--sp-6); display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-4); }
.opp-card__detail { display: flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--text-3); }
.opp-card__detail svg { width: 13px; height: 13px; opacity: 0.7; }
.country-label { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; }
.country-flag { width: 20px; height: 15px; flex: 0 0 auto; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.1); }
.country-flag--world { height: auto; border-radius: 0; object-fit: initial; box-shadow: none; font-size: 14px; line-height: 1; text-align: center; }

.opp-card__foot {
  padding: var(--sp-4) var(--sp-6) var(--sp-5);
  margin-top: var(--sp-4);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  border-top: 1px solid var(--stroke);
}
.opp-card__cta { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); font-weight: 600; color: var(--indigo); transition: gap var(--t-base), color var(--t-base); }
.opp-card__cta svg { width: 15px; height: 15px; }
.opp-card:hover .opp-card__cta { gap: var(--sp-3); color: var(--cyan); }

/* ============================================
   PAGE HERO (inner pages)
   ============================================ */
.page-hero { padding: calc(var(--nav-h) + var(--sp-16)) 0 var(--sp-10); position: relative; overflow: hidden; }
.page-hero__glow { position: absolute; top: -220px; left: 50%; transform: translateX(-50%); width: 720px; height: 480px; border-radius: 50%; filter: blur(90px); background: var(--page-glow, rgba(99, 102, 241, 0.16)); pointer-events: none; }
.page-hero__inner { position: relative; text-align: center; max-width: 720px; margin: 0 auto; }
.page-hero__title { font-family: var(--font-display); font-size: var(--fs-5xl); font-weight: 700; letter-spacing: -0.025em; color: var(--text-1); line-height: 1.1; margin-bottom: var(--sp-4); }
.page-hero__subtitle { font-size: var(--fs-lg); color: var(--text-2); line-height: 1.7; }

/* ============================================
   TOOLBAR / FILTERS
   ============================================ */
.toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3);
  padding: var(--sp-4);
  background: var(--glass);
  backdrop-filter: blur(var(--blur)) saturate(150%);
  border: 1px solid var(--stroke); border-radius: var(--r-lg);
  margin-bottom: var(--sp-8);
  position: sticky; top: calc(var(--nav-h) + var(--nav-gap) + var(--sp-3)); z-index: 40;
}
.toolbar .input { max-width: 240px; }
.toolbar .select { width: auto; min-width: 140px; flex: 0 1 auto; }
.toolbar__count { font-size: var(--fs-sm); color: var(--text-3); margin-left: auto; white-space: nowrap; }
.toolbar__count strong { color: var(--text-1); }
.toolbar__clear { font-size: var(--fs-xs); font-weight: 600; color: var(--rose); padding: var(--sp-2) var(--sp-3); border-radius: var(--r-sm); transition: background var(--t-fast); }
.toolbar__clear:hover { background: rgba(251, 113, 133, 0.1); }

.empty-state { text-align: center; padding: var(--sp-20) var(--sp-6); }
.empty-state__icon { font-size: 3rem; margin-bottom: var(--sp-4); }
.empty-state__title { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 700; color: var(--text-1); margin-bottom: var(--sp-2); }
.empty-state__text { color: var(--text-3); margin-bottom: var(--sp-6); }

/* ============================================
   DETAIL PAGE
   ============================================ */
.detail { padding: calc(var(--nav-h) + var(--sp-12)) 0 var(--sp-24); }
.detail__back { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); font-weight: 500; color: var(--text-3); margin-bottom: var(--sp-6); transition: color var(--t-fast); }
.detail__back:hover { color: var(--text-1); }
.detail__back svg { width: 15px; height: 15px; }

.detail__hero {
  background: var(--glass);
  backdrop-filter: blur(var(--blur)) saturate(150%);
  border: 1px solid var(--stroke); border-radius: var(--r-xl);
  padding: var(--sp-10); position: relative; overflow: hidden;
  margin-bottom: var(--sp-6);
}
.detail__hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(90% 120% at 15% -20%, hsla(var(--h, 230), 75%, 60%, 0.14), transparent 55%);
  pointer-events: none;
}
.detail__head { display: flex; align-items: flex-start; gap: var(--sp-6); position: relative; flex-wrap: wrap; }
.detail__logo {
  width: 76px; height: 76px; border-radius: var(--r-lg); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 700;
  background: hsla(var(--h, 230), 75%, 55%, 0.14);
  color: hsl(var(--h, 230), 70%, var(--logo-l));
  border: 1px solid hsla(var(--h, 230), 75%, 55%, 0.32);
}
.detail__headmeta { flex: 1; min-width: 260px; }
.detail__title { font-family: var(--font-display); font-size: var(--fs-3xl); font-weight: 700; letter-spacing: -0.015em; color: var(--text-1); line-height: 1.2; margin-bottom: var(--sp-2); }
.detail__org { font-size: var(--fs-base); color: var(--text-3); margin-bottom: var(--sp-4); }
.detail__badges { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

.detail__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-8); position: relative; }

.detail__grid { display: grid; grid-template-columns: 1fr 340px; gap: var(--sp-6); align-items: start; }

.panel {
  background: var(--glass);
  backdrop-filter: blur(var(--blur)) saturate(150%);
  border: 1px solid var(--stroke); border-radius: var(--r-xl);
  padding: var(--sp-8);
}
.panel + .panel { margin-top: var(--sp-6); }
.panel__title { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 700; color: var(--text-1); margin-bottom: var(--sp-5); display: flex; align-items: center; gap: var(--sp-3); }
.panel__title-icon { font-size: 1.1rem; }
.panel p { line-height: 1.75; }

.checklist { display: flex; flex-direction: column; gap: var(--sp-3); }
.checklist li { display: flex; align-items: flex-start; gap: var(--sp-3); font-size: var(--fs-sm); color: var(--text-2); line-height: 1.6; }
.checklist svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 2px; }
.checklist--check svg { color: var(--emerald); }
.checklist--req svg { color: var(--sky); }

.meta-list { display: flex; flex-direction: column; }
.meta-list__row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-3) 0; border-bottom: 1px solid var(--stroke); font-size: var(--fs-sm); }
.meta-list__row:last-child { border-bottom: none; }
.meta-list__key { color: var(--text-3); display: flex; align-items: center; gap: var(--sp-2); }
.meta-list__key svg { width: 15px; height: 15px; }
.meta-list__val { color: var(--text-1); font-weight: 600; text-align: right; }

.countdown { display: flex; gap: var(--sp-3); margin: var(--sp-5) 0; }
.countdown__cell { flex: 1; text-align: center; padding: var(--sp-3) var(--sp-2); background: var(--glass-2); border: 1px solid var(--stroke); border-radius: var(--r-md); }
.countdown__num { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 700; color: var(--text-1); line-height: 1.1; }
.countdown__lbl { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3); margin-top: 2px; }

.related { margin-top: var(--sp-16); }
.related__title { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 700; color: var(--text-1); margin-bottom: var(--sp-6); }

/* ============================================
   CALENDAR
   ============================================ */
.calendar-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: var(--sp-6); align-items: start; }

.calendar {
  background: var(--glass);
  backdrop-filter: blur(var(--blur)) saturate(150%);
  border: 1px solid var(--stroke); border-radius: var(--r-xl);
  padding: var(--sp-6); overflow: hidden;
}
.calendar__head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--sp-4); }
.calendar__month { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 700; color: var(--text-1); }
.calendar__summary { font-size: var(--fs-sm); color: var(--text-3); margin-top: 2px; }
.calendar__nav { display: flex; align-items: center; gap: var(--sp-2); }
.calendar__navbtn {
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm); color: var(--text-2);
  background: var(--glass-2); border: 1px solid var(--stroke);
  transition: all var(--t-fast);
}
.calendar__navbtn:hover { color: var(--text-1); background: var(--glass-3); border-color: var(--stroke-2); }
.calendar__navbtn svg { width: 16px; height: 16px; }
.calendar__today { padding: 0 var(--sp-4); width: auto; font-size: var(--fs-xs); font-weight: 600; }

.calendar__filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(170px, auto) auto;
  gap: var(--sp-3);
  align-items: center;
  padding: var(--sp-3);
  margin-bottom: var(--sp-5);
  background: var(--well);
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
}
.calendar__search, .calendar__type { min-height: 42px; }
.calendar__saved {
  min-height: 42px;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: 0 var(--sp-4);
  border-radius: var(--r-md);
  background: var(--glass-2);
  border: 1px solid var(--stroke);
  color: var(--text-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  white-space: nowrap;
}
.calendar__saved input { accent-color: var(--indigo); }

.agenda-list { display: flex; flex-direction: column; gap: var(--sp-4); }
.agenda-week {
  color: var(--text-3);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: var(--sp-2) var(--sp-1) 0;
}
.agenda-day {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: var(--sp-3);
  align-items: start;
}
.agenda-day__date {
  position: sticky;
  top: calc(var(--nav-h) + var(--nav-gap) + var(--sp-4));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: var(--sp-2) 0;
  border-radius: var(--r-full);
  color: var(--text-2);
}
.agenda-day--today .agenda-day__date {
  background: rgba(129, 140, 248, 0.18);
  box-shadow: inset 0 0 0 1px rgba(129, 140, 248, 0.3);
  color: var(--text-1);
}
.agenda-day__dow { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.agenda-day__num { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 700; line-height: 1; }
.agenda-day__events { display: flex; flex-direction: column; gap: var(--sp-3); min-width: 0; }
.agenda-card {
  display: grid;
  grid-template-columns: 4px minmax(0, 1fr) 38px;
  align-items: stretch;
  min-height: 76px;
  border-radius: var(--r-md);
  background: var(--well);
  border: 1px solid var(--stroke);
  overflow: hidden;
  transition: transform var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.agenda-card:hover { transform: translateY(-1px); border-color: var(--stroke-2); background: var(--glass-2); }
.agenda-card__stripe { display: block; }
.agenda-card__main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: var(--sp-3) var(--sp-4);
}
.agenda-card__title {
  display: block;
  color: var(--text-1);
  font-size: var(--fs-base);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.agenda-card__meta {
  display: block;
  color: var(--text-3);
  font-size: var(--fs-xs);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.agenda-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 3px; }
.agenda-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: var(--r-full);
  background: var(--glass-2);
  color: var(--text-2);
  font-size: 0.68rem;
  font-weight: 700;
}
.agenda-card__remind {
  width: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  border-left: 1px solid var(--stroke);
  transition: all var(--t-fast);
}
.agenda-card__remind:hover { color: var(--text-1); background: var(--glass-3); }
.agenda-card__remind svg { width: 17px; height: 17px; }
.agenda-empty {
  text-align: center;
  padding: var(--sp-12) var(--sp-4);
  border: 1px dashed var(--stroke-2);
  border-radius: var(--r-lg);
  background: var(--well);
}
.agenda-empty__icon { font-size: var(--fs-4xl); margin-bottom: var(--sp-3); }

.pill--indigo  { background: rgba(129, 140, 248, 0.16); color: var(--indigo); }
.pill--violet  { background: rgba(167, 139, 250, 0.16); color: var(--violet); }
.pill--cyan    { background: rgba(34, 211, 238, 0.14);  color: var(--cyan); }
.pill--sky     { background: rgba(56, 189, 248, 0.15);  color: var(--sky); }
.pill--emerald { background: rgba(52, 211, 153, 0.14);  color: var(--emerald); }
.pill--amber   { background: rgba(251, 191, 36, 0.14);  color: var(--amber); }
.pill--orange  { background: rgba(251, 146, 60, 0.15);  color: var(--orange); }
.pill--rose    { background: rgba(251, 113, 133, 0.15); color: var(--rose); }
.pill--pink    { background: rgba(244, 114, 182, 0.15); color: var(--pink); }
.pill--teal    { background: rgba(45, 212, 191, 0.14);  color: var(--teal); }

.calendar__legend { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px solid var(--stroke); }
.calendar__legend-item { display: flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--text-3); }
.calendar__legend-dot { width: 8px; height: 8px; border-radius: 3px; }

/* Calendar sidebar */
.cal-side { display: flex; flex-direction: column; gap: var(--sp-5); position: sticky; top: calc(var(--nav-h) + var(--nav-gap) + var(--sp-4)); }
.cal-side .panel { padding: var(--sp-6); }
.cal-events { display: flex; flex-direction: column; gap: var(--sp-3); }
.cal-event {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3); border-radius: var(--r-md);
  background: var(--well); border: 1px solid var(--stroke);
  transition: all var(--t-fast);
}
.cal-event:hover { border-color: var(--stroke-2); background: var(--glass-2); transform: translateX(3px); }
.cal-event__date {
  width: 46px; flex-shrink: 0; text-align: center;
  padding: var(--sp-1) 0; border-radius: var(--r-sm);
  background: var(--glass-2); border: 1px solid var(--stroke);
}
.cal-event__day { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 700; color: var(--text-1); line-height: 1.1; display: block; }
.cal-event__mon { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3); }
.cal-event__meta { flex: 1; min-width: 0; }
.cal-event__title { font-size: var(--fs-sm); font-weight: 600; color: var(--text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.cal-event__sub { font-size: var(--fs-xs); color: var(--text-3); display: flex; align-items: center; gap: var(--sp-2); margin-top: 2px; }
.cal-event__dot { width: 7px; height: 7px; border-radius: 3px; flex-shrink: 0; }

.cal-side__empty { font-size: var(--fs-sm); color: var(--text-3); text-align: center; padding: var(--sp-6) 0; }

/* ============================================
   HOME — CALENDAR PROMO
   ============================================ */
.calpromo__wrap { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-10); align-items: center; }
.calpromo__title { font-family: var(--font-display); font-size: var(--fs-4xl); font-weight: 700; letter-spacing: -0.02em; color: var(--text-1); line-height: 1.15; margin-bottom: var(--sp-4); }
.calpromo__text { font-size: var(--fs-lg); color: var(--text-2); line-height: 1.75; margin-bottom: var(--sp-8); }

/* ============================================
   HOW IT WORKS
   ============================================ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
.step {
  text-align: center; padding: var(--sp-10) var(--sp-6);
  background: var(--glass);
  backdrop-filter: blur(var(--blur)) saturate(140%);
  border: 1px solid var(--stroke); border-radius: var(--r-xl);
  transition: transform var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
  position: relative; overflow: hidden;
}
.step:hover { transform: translateY(-4px); border-color: var(--stroke-2); box-shadow: var(--shadow-card); }
.step__icon {
  width: 84px; height: 84px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--sp-6); position: relative;
  background: var(--glass-2); border: 1px solid var(--stroke-2);
  font-size: 1.9rem;
}
.step__number {
  position: absolute; top: -3px; right: -3px;
  width: 27px; height: 27px; border-radius: 50%;
  background: var(--grad-accent); color: #fff;
  font-size: var(--fs-xs); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--glow-accent);
}
.step__title { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 700; color: var(--text-1); margin-bottom: var(--sp-3); }
.step__description { font-size: var(--fs-sm); color: var(--text-2); line-height: 1.7; }

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  position: relative; overflow: hidden; text-align: center;
  border-radius: var(--r-xl); padding: var(--sp-16) var(--sp-10);
  background:
    radial-gradient(80% 140% at 20% -20%, rgba(99, 102, 241, 0.32), transparent 55%),
    radial-gradient(70% 130% at 85% 120%, rgba(34, 211, 238, 0.2), transparent 55%),
    var(--glass-2);
  border: 1px solid var(--stroke-2);
  backdrop-filter: blur(var(--blur));
}
.cta-banner__title { font-family: var(--font-display); font-size: var(--fs-4xl); font-weight: 700; letter-spacing: -0.02em; color: var(--text-1); margin-bottom: var(--sp-4); }
.cta-banner__text { font-size: var(--fs-lg); color: var(--text-2); max-width: 560px; margin: 0 auto var(--sp-8); line-height: 1.7; }
.cta-banner__features { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3); margin-bottom: var(--sp-10); }
.cta-banner__feature {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  background: var(--glass-2); border: 1px solid var(--stroke);
  border-radius: var(--r-full); font-size: var(--fs-sm); color: var(--text-1);
  backdrop-filter: blur(10px);
}
.cta-banner__feature svg { width: 15px; height: 15px; color: var(--cyan); }

/* ============================================
   AUTH PAGES
   ============================================ */
.auth { min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: calc(var(--nav-h) + var(--sp-10)) var(--sp-6) var(--sp-16); }
.auth__card {
  width: 100%; max-width: 440px;
  background: var(--glass);
  backdrop-filter: blur(var(--blur)) saturate(150%);
  border: 1px solid var(--stroke-2); border-radius: var(--r-xl);
  padding: var(--sp-10); box-shadow: var(--shadow-pop);
}
.auth__icon { width: 56px; height: 56px; border-radius: var(--r-md); background: var(--grad-accent); color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto var(--sp-6); box-shadow: var(--glow-accent); }
.auth__icon svg { width: 26px; height: 26px; }
.auth__title { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 700; color: var(--text-1); text-align: center; margin-bottom: var(--sp-2); }
.auth__sub { font-size: var(--fs-sm); color: var(--text-3); text-align: center; margin-bottom: var(--sp-8); }
.auth__notice {
  display: grid; gap: var(--sp-2); padding: var(--sp-5);
  border: 1px solid rgba(34, 211, 238, 0.32); border-radius: var(--r-md);
  background: rgba(34, 211, 238, 0.08); color: var(--text-2);
  font-size: var(--fs-sm); line-height: 1.6; text-align: center;
}
.auth__notice strong { color: var(--text-1); font-size: var(--fs-base); }
.auth__notice[hidden] { display: none; }
.auth .btn:disabled { cursor: wait; opacity: 0.7; transform: none; }
.btn--google {
  background: #fff; color: #202124; border: 1px solid #dadce0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.btn--google:hover { background: #f8f9fa; color: #202124; border-color: #c7cacf; }
.auth__google-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; margin-right: var(--sp-2);
  color: #4285f4; font-weight: 800; font-size: 1.1rem;
}
.auth__divider {
  display: flex; align-items: center; gap: var(--sp-3);
  margin: var(--sp-6) 0; color: var(--text-3);
  font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em;
}
.auth__divider::before, .auth__divider::after { content: ''; flex: 1; height: 1px; background: var(--stroke); }
.auth__divider span { white-space: nowrap; }
.password-field { position: relative; }
.password-field .input { width: 100%; padding-right: 76px; }
.password-toggle {
  position: absolute; top: 50%; right: var(--sp-3); transform: translateY(-50%);
  min-width: 48px; padding: 6px 8px; border-radius: var(--r-sm);
  color: var(--cyan); background: var(--glass-2);
  font-size: var(--fs-xs); font-weight: 700;
}
.password-toggle:hover, .password-toggle:focus-visible { color: var(--text-1); background: var(--well); }
.auth__alt { text-align: center; font-size: var(--fs-sm); color: var(--text-3); margin-top: var(--sp-6); }
.auth__alt a { color: var(--cyan); font-weight: 600; }
.auth__alt a:hover { text-decoration: underline; }

/* ============================================
   DASHBOARD
   ============================================ */
.dash { padding: calc(var(--nav-h) + var(--sp-12)) 0 var(--sp-24); }
.dash__head { display: flex; align-items: center; gap: var(--sp-5); margin-bottom: var(--sp-10); flex-wrap: wrap; }
.dash__avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--grad-accent); color: #fff;
  font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--glow-accent);
}
.dash__title { font-family: var(--font-display); font-size: var(--fs-3xl); font-weight: 700; color: var(--text-1); }
.dash__email { color: var(--text-3); font-size: var(--fs-sm); }
.dash__grid { display: grid; grid-template-columns: 1fr 340px; gap: var(--sp-6); align-items: start; }
.dash__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); margin-bottom: var(--sp-6); }
.dash__stat { text-align: center; padding: var(--sp-5); background: var(--glass); border: 1px solid var(--stroke); border-radius: var(--r-lg); backdrop-filter: blur(12px); }
.dash__stat-num { font-family: var(--font-display); font-size: var(--fs-3xl); font-weight: 700; color: var(--text-1); }
.dash__stat-lbl { font-size: var(--fs-xs); color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 2px; }

/* ============================================
   PROFILE
   ============================================ */
.profile-page { padding: calc(var(--nav-h) + var(--sp-12)) 0 var(--sp-24); }
.profile-shell { max-width: 1040px; }
.profile-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--sp-5); margin-bottom: var(--sp-8); flex-wrap: wrap; }
.profile-head h1 { font-family: var(--font-display); color: var(--text-1); font-size: var(--fs-4xl); }
.profile-head p:not(.admin-kicker) { color: var(--text-3); margin-top: var(--sp-2); }
.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); }
.profile-card { padding: var(--sp-6); background: var(--glass); border: 1px solid var(--stroke); border-radius: var(--r-xl); backdrop-filter: blur(var(--blur)); }
.profile-card h2 { font-family: var(--font-display); color: var(--text-1); font-size: var(--fs-xl); margin-bottom: var(--sp-2); }
.profile-card__sub { color: var(--text-3); font-size: var(--fs-sm); line-height: 1.6; margin-bottom: var(--sp-5); }
.profile-card--danger { border-color: rgba(251, 113, 133, 0.28); }
.profile-card--danger h2 { color: var(--rose); }

/* ============================================
   ADMIN
   ============================================ */
.admin { padding: calc(var(--nav-h) + var(--sp-10)) 0 var(--sp-20); }
.admin-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: var(--sp-6); align-items: start; }
.admin-side {
  position: sticky; top: calc(var(--nav-h) + var(--nav-gap) + var(--sp-4));
  background: var(--glass); border: 1px solid var(--stroke); border-radius: var(--r-xl);
  padding: var(--sp-5); backdrop-filter: blur(var(--blur)); display: flex; flex-direction: column; gap: var(--sp-5);
}
.admin-side__brand { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 700; color: var(--text-1); }
.admin-side__brand span { display: block; font-family: var(--font-body); font-size: var(--fs-xs); color: var(--text-3); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.12em; }
.admin-side__nav { display: flex; flex-direction: column; gap: var(--sp-2); }
.admin-side__link { padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md); color: var(--text-2); font-size: var(--fs-sm); font-weight: 600; }
.admin-side__link:hover, .admin-side__link.active { background: var(--glass-2); color: var(--text-1); }
.admin-main { min-width: 0; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--sp-6); flex-wrap: wrap; }
.admin-head--small { margin-bottom: var(--sp-4); }
.admin-head h1 { font-family: var(--font-display); color: var(--text-1); font-size: var(--fs-3xl); line-height: 1.15; }
.admin-head h2, .admin-panel h2 { font-family: var(--font-display); color: var(--text-1); font-size: var(--fs-xl); }
.admin-kicker { color: var(--cyan); text-transform: uppercase; letter-spacing: 0.12em; font-size: var(--fs-xs); font-weight: 700; margin-bottom: var(--sp-1); }
.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); margin-bottom: var(--sp-6); }
.admin-stat, .admin-panel, .admin-form, .admin-table-wrap {
  background: var(--glass); border: 1px solid var(--stroke); border-radius: var(--r-xl); backdrop-filter: blur(var(--blur));
}
.admin-stat { padding: var(--sp-5); }
.admin-stat span { color: var(--text-3); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }
.admin-stat strong { display: block; margin-top: var(--sp-2); font-family: var(--font-display); color: var(--text-1); font-size: var(--fs-3xl); }
.admin-panel { padding: var(--sp-6); }
.admin-list { display: flex; flex-direction: column; gap: var(--sp-2); margin-top: var(--sp-4); }
.admin-row { display: flex; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-3); border-radius: var(--r-md); background: var(--well); }
.admin-row strong { color: var(--text-1); }
.admin-row span { color: var(--text-3); font-size: var(--fs-sm); }
.admin-toolbar { display: grid; grid-template-columns: minmax(220px, 1fr) 180px auto; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.admin-table th, .admin-table td { padding: var(--sp-4); text-align: left; border-bottom: 1px solid var(--stroke); vertical-align: top; font-size: var(--fs-sm); }
.admin-table th { color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; font-size: var(--fs-xs); }
.admin-table td strong { display: block; color: var(--text-1); margin-bottom: 2px; }
.admin-table td span { color: var(--text-3); }
.admin-status { display: inline-flex; padding: 4px 10px; border-radius: var(--r-full); font-size: var(--fs-xs); font-weight: 700; }
.admin-status.published { color: var(--emerald); background: rgba(52, 211, 153, 0.12); }
.admin-status.draft { color: var(--amber); background: rgba(251, 191, 36, 0.12); }
.admin-status.active { color: var(--emerald); background: rgba(52, 211, 153, 0.12); }
.admin-status.unconfirmed { color: var(--amber); background: rgba(251, 191, 36, 0.12); }
.admin-status.suspended { color: var(--rose); background: rgba(251, 113, 133, 0.12); }
.admin-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.admin-actions a, .admin-actions button { color: var(--cyan); font-size: var(--fs-xs); font-weight: 700; padding: 4px 0; }
.admin-actions .danger { color: var(--rose); }
.admin-form { padding: var(--sp-6); }
.admin-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
.admin-textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
.admin-checks { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin: var(--sp-4) 0; color: var(--text-2); font-size: var(--fs-sm); }
.admin-checks label { display: inline-flex; align-items: center; gap: var(--sp-2); }
.admin-checks input { accent-color: var(--indigo); }
.admin-form__actions, .admin-export { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.admin-help { color: var(--text-3); font-size: var(--fs-sm); line-height: 1.6; }
.admin-users-note { margin: calc(-1 * var(--sp-2)) 0 var(--sp-4); }
.admin-users-table { min-width: 1120px; }
.admin-users-table th:first-child, .admin-users-table td:first-child { width: 42px; text-align: center; }
.admin-users-table input[type="checkbox"] { accent-color: var(--indigo); width: 16px; height: 16px; }
.admin-loading { display: flex; align-items: center; justify-content: center; gap: var(--sp-3); min-height: 180px; color: var(--text-3); }
.admin-spinner { width: 20px; height: 20px; border: 2px solid var(--stroke-2); border-top-color: var(--cyan); border-radius: 50%; animation: spin 0.8s linear infinite; }
.admin-empty { padding: var(--sp-8); text-align: center; color: var(--text-3); }
@keyframes spin { to { transform: rotate(360deg); } }
.admin-alert { background: rgba(251, 113, 133, 0.1); color: var(--rose); border: 1px solid rgba(251, 113, 133, 0.25); border-radius: var(--r-lg); padding: var(--sp-4); margin-bottom: var(--sp-5); font-size: var(--fs-sm); }
.admin .btn:disabled, .newsletter__submit:disabled { cursor: not-allowed; opacity: 0.55; transform: none; }
.admin-newsletter-list { margin-bottom: var(--sp-6); }
.admin-newsletter-list .admin-head { align-items: flex-start; }
.admin-newsletter-table { min-width: 760px; }
.admin-newsletter-table th:first-child, .admin-newsletter-table td:first-child { width: 42px; text-align: center; }
.admin-newsletter-table input[type="checkbox"] { accent-color: var(--indigo); width: 16px; height: 16px; }
.admin-file-button { cursor: pointer; }
.admin-newsletter-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: var(--sp-6); align-items: start; }
.newsletter-recipient-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.newsletter-manual { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-2); margin-bottom: var(--sp-5); }
.newsletter-recipient-summary { padding: var(--sp-4); border: 1px solid var(--stroke); border-radius: var(--r-lg); background: var(--well); }
.newsletter-recipient-summary strong { display: block; color: var(--text-1); margin-bottom: var(--sp-3); }
.newsletter-recipient-preview { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.newsletter-recipient-preview span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; padding: 5px 9px; border-radius: var(--r-full); background: var(--glass-2); color: var(--text-2); font-size: var(--fs-xs); }
.newsletter-recipient-preview em { color: var(--text-3); font-size: var(--fs-sm); }
.email-toolbar { display: flex; flex-wrap: wrap; gap: 6px; margin: var(--sp-4) 0 0; padding: var(--sp-2); border: 1px solid var(--stroke); border-bottom: 0; border-radius: var(--r-md) var(--r-md) 0 0; background: var(--well); }
.email-toolbar button { min-width: 34px; padding: 7px 9px; border-radius: var(--r-sm); color: var(--text-2); font-size: var(--fs-xs); font-weight: 700; }
.email-toolbar button:hover, .email-toolbar button:focus-visible { background: var(--glass-2); color: var(--text-1); }
.email-editor { min-height: 250px; padding: var(--sp-4); overflow: auto; border: 1px solid var(--stroke); border-radius: 0 0 var(--r-md) var(--r-md); background: var(--well); color: var(--text-1); line-height: 1.7; outline: none; }
.email-editor:focus { border-color: var(--stroke-2); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.08); }
.email-editor:empty::before { content: attr(data-placeholder); color: var(--text-3); pointer-events: none; }
.newsletter-compose-actions { margin-top: var(--sp-4); }
.email-send-note { margin-top: var(--sp-3); color: var(--text-3); font-size: var(--fs-xs); line-height: 1.5; }

/* ============================================
   ABOUT / FAQ
   ============================================ */
.prose { max-width: 760px; margin: 0 auto; }
.prose p { margin-bottom: var(--sp-5); line-height: 1.8; color: var(--text-2); }
.prose h3 { font-family: var(--font-display); color: var(--text-1); font-size: var(--fs-xl); margin: var(--sp-8) 0 var(--sp-4); }

.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--sp-3); }
.faq details {
  background: var(--glass); border: 1px solid var(--stroke); border-radius: var(--r-lg);
  backdrop-filter: blur(12px); overflow: hidden;
  transition: border-color var(--t-fast);
}
.faq details[open] { border-color: var(--stroke-2); }
.faq summary {
  padding: var(--sp-5) var(--sp-6); cursor: pointer; list-style: none;
  font-weight: 600; color: var(--text-1); font-size: var(--fs-base);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: var(--fs-xl); color: var(--text-3); transition: transform var(--t-base); line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 var(--sp-6) var(--sp-5); color: var(--text-2); font-size: var(--fs-sm); line-height: 1.75; }

/* ============================================
   NEWSLETTER (footer card)
   ============================================ */
.newsletter__card {
  background:
    radial-gradient(90% 160% at 80% -40%, rgba(34, 211, 238, 0.14), transparent 55%),
    var(--glass);
  backdrop-filter: blur(var(--blur)) saturate(150%);
  border: 1px solid var(--stroke-2); border-radius: var(--r-xl);
  padding: var(--sp-12) var(--sp-10);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-10);
  margin-bottom: var(--sp-16); flex-wrap: wrap;
}
.newsletter__title { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 700; color: var(--text-1); margin-bottom: var(--sp-2); }
.newsletter__description { font-size: var(--fs-sm); color: var(--text-2); max-width: 420px; line-height: 1.7; }
.newsletter__form { display: flex; gap: var(--sp-3); flex: 1; min-width: 300px; max-width: 460px; }
.newsletter__form .input { flex: 1; }
.newsletter__submit {
  padding: var(--sp-3) var(--sp-6); background: var(--grad-accent); color: #fff;
  font-size: var(--fs-sm); font-weight: 600; border-radius: var(--r-md);
  box-shadow: var(--glow-accent); white-space: nowrap;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.newsletter__submit:hover { transform: translateY(-1px); }

/* ============================================
   FOOTER
   ============================================ */
.footer { border-top: 1px solid var(--stroke); background: var(--footer-bg); backdrop-filter: blur(var(--blur)); padding: var(--sp-20) 0 0; margin-top: var(--sp-12); }
.footer__top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--sp-10); padding-bottom: var(--sp-16); border-bottom: 1px solid var(--stroke); }
.footer__brand { padding-right: var(--sp-8); }
.footer__logo { display: flex; align-items: center; gap: var(--sp-3); font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 700; color: var(--text-1); margin-bottom: var(--sp-4); }
.footer__logo-icon { width: 36px; height: 36px; background: var(--grad-accent); border-radius: 11px; display: flex; align-items: center; justify-content: center; box-shadow: var(--glow-accent); }
.footer__tagline { font-size: var(--fs-sm); line-height: 1.7; margin-bottom: var(--sp-6); color: var(--text-3); }
.footer__socials { display: flex; gap: var(--sp-3); }
.footer__social {
  width: 40px; height: 40px; border-radius: var(--r-md);
  background: var(--glass-2); border: 1px solid var(--stroke);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3); transition: all var(--t-fast);
}
.footer__social:hover { color: var(--cyan); border-color: var(--stroke-2); transform: translateY(-2px); }
.footer__social svg { width: 17px; height: 17px; }
.footer__social-letter { font-family: Arial, sans-serif; font-size: 22px; font-weight: 800; line-height: 1; }
.footer__column-title { font-size: var(--fs-xs); font-weight: 700; color: var(--text-1); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: var(--sp-5); }
.footer__links { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer__link { font-size: var(--fs-sm); color: var(--text-3); transition: all var(--t-fast); width: fit-content; }
.footer__link:hover { color: var(--cyan); transform: translateX(2px); }
.footer__bottom { padding: var(--sp-6) 0; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; }
.footer__copyright { font-size: var(--fs-xs); color: var(--text-3); }
.footer__bottom-links { display: flex; gap: var(--sp-6); }
.footer__bottom-link { font-size: var(--fs-xs); color: var(--text-3); transition: color var(--t-fast); }
.footer__bottom-link:hover { color: var(--text-1); }

/* ============================================
   TOASTS
   ============================================ */
.toast-wrap { position: fixed; bottom: var(--sp-6); left: 50%; transform: translateX(-50%); z-index: 3000; display: flex; flex-direction: column; gap: var(--sp-2); align-items: center; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-6);
  background: var(--panel-pop);
  backdrop-filter: blur(var(--blur)) saturate(160%);
  border: 1px solid var(--stroke-2); border-radius: var(--r-full);
  box-shadow: var(--shadow-pop);
  color: var(--text-1); font-size: var(--fs-sm); font-weight: 500;
  animation: toast-in 0.35s var(--t-spring) both;
  pointer-events: auto; white-space: nowrap;
}
.toast--out { animation: toast-out 0.3s ease-in both; }
.toast__icon { font-size: 1rem; }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(0.94); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px) scale(0.96); } }

/* Back to top */
.backtop {
  position: fixed; bottom: var(--sp-6); right: var(--sp-6); z-index: 900;
  width: 46px; height: 46px; border-radius: var(--r-md);
  background: var(--glass-2); border: 1px solid var(--stroke-2);
  backdrop-filter: blur(var(--blur));
  color: var(--text-1);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: all var(--t-base);
}
.backtop.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.backtop:hover { background: var(--glass-3); transform: translateY(-2px); }
.backtop svg { width: 18px; height: 18px; }

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease-out, transform 0.7s ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.06s; }
.reveal-delay-2 { transition-delay: 0.12s; }
.reveal-delay-3 { transition-delay: 0.18s; }
.reveal-delay-4 { transition-delay: 0.24s; }
.reveal-delay-5 { transition-delay: 0.3s; }
.reveal-delay-6 { transition-delay: 0.36s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1080px) {
  .navbar__nav, .navbar__actions { display: none; }
  .navbar__toggle { display: flex; }
  .hero__title { font-size: var(--fs-5xl); }
  .detail__grid, .calendar-layout, .dash__grid, .admin-layout { grid-template-columns: 1fr; }
  .cal-side { position: static; }
  .admin-side { position: static; }
  .admin-side__nav { flex-direction: row; overflow-x: auto; padding-bottom: var(--sp-1); }
  .admin-side__link { white-space: nowrap; }
  .admin-newsletter-grid { grid-template-columns: 1fr; }
  .calpromo__wrap { grid-template-columns: 1fr; gap: var(--sp-8); }
  .footer__top { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
  .footer__brand { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
}

@media (max-width: 768px) {
  :root { --nav-h: 58px; --nav-gap: 10px; }
  .container { padding: 0 var(--sp-4); }
  .section { padding: var(--sp-16) 0; }
  .section-title { font-size: var(--fs-3xl); }
  .page-hero { padding: calc(var(--nav-h) + var(--sp-10)) 0 var(--sp-8); }
  .page-hero__title { font-size: var(--fs-4xl); }
  .page-hero__subtitle { font-size: var(--fs-base); }
  .navbar { width: calc(100% - 2 * var(--nav-gap)); border-radius: var(--r-lg); }
  .navbar__inner { padding: 0 var(--sp-3); gap: var(--sp-2); }
  .navbar__logo { gap: var(--sp-2); font-size: var(--fs-lg); }
  .navbar__logo-icon { width: 34px; height: 34px; border-radius: 10px; }
  .theme-btn, .navbar__toggle { width: 38px; height: 38px; }
  .mobile-menu { padding: calc(var(--nav-h) + var(--nav-gap) + var(--sp-4)) var(--sp-4) calc(var(--sp-6) + env(safe-area-inset-bottom)); }
  .mobile-menu__link { padding: var(--sp-3) var(--sp-4); font-size: var(--fs-base); }
  .hero { min-height: auto; padding: calc(var(--nav-h) + var(--sp-12)) 0 var(--sp-16); }
  .hero__title { font-size: var(--fs-4xl); }
  .hero__description { font-size: var(--fs-base); }

  .search-bar { flex-wrap: wrap; }
  .search-bar__icon { display: none; }
  .search-bar__input { flex: 1 1 100%; order: -1; padding: var(--sp-3) var(--sp-4); }
  .search-bar__filter { flex: 0 0 auto; }
  .search-bar__submit { flex: 1; }

  .hero__stats { flex-wrap: wrap; }
  .hero__stat { flex: 1 1 40%; }
  .hero__stat:nth-child(3)::before { display: none; }

  .toolbar { position: static; }
  .toolbar .input { max-width: none; flex: 1 1 100%; }
  .toolbar .select { flex: 1 1 44%; min-width: 0; }
  .toolbar__clear { min-height: 42px; padding: 0 var(--sp-4); }
  .toolbar__count { margin-left: 0; flex: 1 1 100%; }

  .detail__hero { padding: var(--sp-6); }
  .detail__head { gap: var(--sp-4); }
  .detail__logo { width: 58px; height: 58px; border-radius: var(--r-md); font-size: var(--fs-xl); }
  .detail__headmeta { min-width: 0; }
  .detail__title { font-size: var(--fs-2xl); }
  .detail__actions { flex-direction: column; }
  .detail__actions .btn { width: 100%; justify-content: center; }
  .meta-list__row { align-items: flex-start; flex-direction: column; gap: var(--sp-1); }
  .meta-list__val { text-align: left; }
  .panel { padding: var(--sp-6); }
  .cards-grid { grid-template-columns: 1fr; }
  .explore__grid { grid-template-columns: 1fr; }
  .opp-card__top { padding: var(--sp-5) var(--sp-5) 0; gap: var(--sp-3); }
  .opp-card__body { padding: var(--sp-4) var(--sp-5); }
  .opp-card__details { padding: 0 var(--sp-5); }
  .opp-card__foot { padding: var(--sp-4) var(--sp-5) var(--sp-5); flex-wrap: wrap; align-items: flex-start; }

  .calendar { padding: var(--sp-4); }
  .calendar__filters { grid-template-columns: 1fr; }
  .calendar__type { width: 100%; }
  .calendar__saved { justify-content: flex-start; }
  .agenda-day { grid-template-columns: 48px minmax(0, 1fr); gap: var(--sp-2); }
  .agenda-day__date { position: static; }
  .agenda-day__num { font-size: var(--fs-xl); }
  .agenda-card { grid-template-columns: 4px minmax(0, 1fr) 36px; min-height: 70px; }
  .agenda-card__main { padding: var(--sp-3); }
  .agenda-card__title { font-size: var(--fs-sm); }

  .newsletter__card { padding: var(--sp-8) var(--sp-6); }
  .newsletter__form { flex-direction: column; max-width: none; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .dash__stats { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
  .admin { padding-top: calc(var(--nav-h) + var(--sp-8)); }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .admin-toolbar, .admin-form__grid { grid-template-columns: 1fr; }
  .newsletter-manual { grid-template-columns: 1fr; }
  .newsletter-manual .btn { width: 100%; }
  .admin-row { flex-direction: column; }
  .cta-banner { padding: var(--sp-10) var(--sp-6); }
  .cta-banner__title { font-size: var(--fs-3xl); }
}

@media (max-width: 480px) {
  :root {
    --fs-3xl: 1.65rem;
    --fs-4xl: 2rem;
  }
  .container { padding: 0 var(--sp-3); }
  .hero__title { font-size: var(--fs-3xl); }
  .hero__suggestions { display: none; }
  .search-bar__filter, .search-bar__submit { min-height: 44px; justify-content: center; }
  .search-bar__submit { flex-basis: 100%; }
  .hero__stats { display: grid; grid-template-columns: 1fr 1fr; }
  .hero__stat { padding: var(--sp-4) var(--sp-2); }
  .hero__stat + .hero__stat::before { display: none; }
  .strip__head { align-items: flex-start; flex-direction: column; }
  .category-card { padding: var(--sp-6); }
  .opp-card__logo { width: 42px; height: 42px; }
  .opp-card__save { width: 40px; height: 40px; }
  .page-hero__title { font-size: var(--fs-3xl); }
  .countdown__num { font-size: var(--fs-xl); }
  .calendar__head { align-items: flex-start; }
  .calendar__nav { width: 100%; justify-content: space-between; }
  .calendar__navbtn { width: 36px; height: 36px; }
  .calendar__today { flex: 1; }
  .agenda-day { grid-template-columns: 42px minmax(0, 1fr); }
  .agenda-chip { font-size: 0.64rem; }
  .newsletter__card { padding: var(--sp-6) var(--sp-4); }
  .newsletter__form { min-width: 0; }
  .footer { padding-top: var(--sp-12); }
  .admin-stats { grid-template-columns: 1fr; }
  .admin-head { align-items: stretch; }
  .admin-head .btn, .admin-export .btn, .admin-form__actions .btn { width: 100%; justify-content: center; }
  .admin-side { padding: var(--sp-4); }
  .admin-table { min-width: 680px; }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0;
}
