/* ═══ SnapAI Editor — design system ═══════════════════════════════════ */

:root {
  --bg: #08080F;
  --card: #0F0F1A;
  --card-2: #161624;
  --border: rgba(255, 255, 255, 0.07);
  --surface-hover: rgba(255, 255, 255, 0.03);
  --primary: #7C3AED;
  --primary-bright: #8B5CF6;
  --primary-2: #A78BFA;
  --electric: #C4B5FD;
  --success: #10B981;
  --error: #EF4444;
  --warning: #F59E0B;
  --text: #F8F8FF;
  --text-2: #9CA3AF;
  --text-3: rgba(255, 255, 255, 0.5);
  --radius-card: 12px;
  --radius-btn: 8px;
  --radius-pill: 999px;
  --glow: 0 0 40px rgba(124, 58, 237, 0.15);
  --glow-strong: 0 0 60px rgba(124, 58, 237, 0.4);
  --glow-soft: 0 0 120px rgba(124, 58, 237, 0.15);
  --gradient-primary: linear-gradient(135deg, #7C3AED, #9333EA, #A855F7);
  --gradient-shine: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.08) 50%, transparent 60%);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --font-display: "Syne", "Plus Jakarta Sans", sans-serif;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

/* Fixed atmospheric glow — stays put as the page scrolls */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(1100px 620px at 50% -220px, rgba(124, 58, 237, 0.16), transparent 70%);
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: clamp(32px, 6vw, 64px); }
h2 { font-size: clamp(28px, 4.5vw, 52px); }
h3 { font-size: 22px; }
p { color: var(--text-2); }
a { color: var(--primary-2); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--text); }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  padding: 13px 26px; border-radius: var(--radius-btn);
  border: 1px solid transparent; cursor: pointer;
  transition: all var(--transition); text-decoration: none; white-space: nowrap;
  position: relative;
}
.btn:focus-visible { outline: 2px solid var(--primary-2); outline-offset: 2px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn-primary {
  color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.35);
  background: linear-gradient(270deg, #7C3AED, #9333EA, #A855F7, #6D28D9, #7C3AED);
  background-size: 400% 400%;
  animation: btnGradientRotate 8s ease infinite;
  box-shadow: var(--glow), inset 0 1px 0 rgba(255,255,255,.18);
  overflow: hidden;
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: var(--gradient-shine); transform: translateX(-100%);
  transition: transform .6s ease; pointer-events: none;
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(124,58,237,.55), 0 0 70px rgba(124,58,237,.25), inset 0 1px 0 rgba(255,255,255,.18);
  color: #fff;
}
.btn-primary:hover:not(:disabled)::before { transform: translateX(100%); }
.btn-primary:active:not(:disabled) { transform: scale(0.97); }
@keyframes btnGradientRotate { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.btn-secondary { background: var(--card-2); color: var(--text); border-color: var(--border); }
.btn-secondary:hover:not(:disabled) { border-color: var(--primary-2); color: var(--text); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover:not(:disabled) { color: var(--text); background: var(--card-2); }
.btn-danger { background: transparent; color: var(--error); border-color: var(--error); }
.btn-danger:hover:not(:disabled) { background: rgba(239,68,68,.12); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 15px 32px; font-size: 17px; }
.btn-block { width: 100%; }

/* ── Forms ── */
label { display: block; font-size: 14px; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.input, textarea.input, select.input {
  width: 100%; background: var(--card-2); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-btn);
  padding: 11px 14px; font-size: 15px; font-family: var(--font-body);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124,58,237,.2); }
.input::placeholder { color: var(--text-3); }
.field { margin-bottom: 18px; }
.field-hint { font-size: 12px; color: var(--text-3); margin-top: 5px; }
.field-error { font-size: 13px; color: var(--error); margin-top: 5px; }

/* ── Cards ── */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: 24px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.card:hover { border-color: #3D3D52; }
.card-glow { box-shadow: var(--glow); border-color: rgba(124,58,237,.4); }

/* ── Pills / badges ── */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 600;
  background: var(--card-2); border: 1px solid var(--border); color: var(--text);
}
.pill-credits { border-color: rgba(124,58,237,.5); color: var(--primary-2); }
.badge { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 10px; border-radius: var(--radius-pill); }
.badge-success { background: rgba(16,185,129,.15); color: var(--success); }
.badge-warning { background: rgba(245,158,11,.15); color: var(--warning); }
.badge-error { background: rgba(239,68,68,.15); color: var(--error); }
.badge-primary { background: rgba(124,58,237,.2); color: var(--primary-2); }

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8, 8, 15, 0.8); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,58,237,.55), rgba(167,139,250,.55), transparent);
  pointer-events: none;
}
.nav .btn-primary {
  border-radius: var(--radius-pill);
  background: rgba(124, 58, 237, 0.14);
  border: 1px solid rgba(124, 58, 237, 0.5);
  animation: none; box-shadow: none;
}
.nav .btn-primary:hover:not(:disabled) {
  background: var(--gradient-primary);
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.5);
  transform: none;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--text); }
.nav-logo .accent { color: var(--primary-2); }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a { color: var(--text-2); font-size: 15px; letter-spacing: 0.01em; font-weight: 500; position: relative; padding-bottom: 4px; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a::after {
  content: ''; position: absolute; left: 50%; bottom: -3px; transform: translateX(-50%) scale(0);
  width: 4px; height: 4px; border-radius: 50%; background: var(--primary-2);
  box-shadow: 0 0 8px rgba(167,139,250,.9); transition: transform 0.2s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { transform: translateX(-50%) scale(1); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-burger { display: none; background: none; border: none; color: var(--text); font-size: 24px; cursor: pointer; padding: 6px; }
.nav-mobile { display: none; flex-direction: column; gap: 4px; padding: 12px 20px 20px; border-top: 1px solid var(--border); }
.nav-mobile a { padding: 10px 0; color: var(--text-2); font-weight: 500; }
.nav-mobile.open { display: flex; }
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .nav-actions .hide-mobile { display: none; }
}

/* Profile dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 6px; display: none; box-shadow: 0 12px 40px rgba(0,0,0,.5); z-index: 200;
}
.dropdown-menu.open { display: block; animation: fadeUp .18s ease; }
.dropdown-menu a, .dropdown-menu button {
  display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px;
  color: var(--text-2); font-size: 14px; background: none; border: none; cursor: pointer; font-family: inherit;
}
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--card-2); color: var(--text); }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; color: #fff; border: none;
}

/* ── Toasts ── */
#toast-root { position: fixed; bottom: 20px; right: 20px; z-index: 1000; display: flex; flex-direction: column; gap: 12px; max-width: min(420px, calc(100vw - 40px)); }
.toast {
  background: var(--card); border: 1px solid var(--border); border-left: 3px solid var(--primary);
  border-radius: var(--radius-card); padding: 16px 18px 19px; font-size: 14.5px; color: var(--text); min-width: 280px;
  box-shadow: 0 10px 30px rgba(0,0,0,.5); animation: slideIn .28s ease; display: flex; gap: 10px; align-items: flex-start;
}
.toast-success { border-left-color: var(--success); }
.toast-error { border-left-color: var(--error); }
.toast-warning { border-left-color: var(--warning); }
.toast .close { margin-left: auto; background: none; border: none; color: var(--text-3); cursor: pointer; font-size: 16px; line-height: 1; }
@keyframes slideIn { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fadeUp { from { transform: translateY(6px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ── Modal ── */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(5,5,10,.7); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center; z-index: 500; padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: rgba(19,19,26,.92); border: 1px solid var(--border); border-radius: 16px;
  padding: 28px; max-width: 460px; width: 100%; box-shadow: var(--glow); animation: fadeUp .22s ease;
}

/* ── Skeletons ── */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,.05) 25%, rgba(255,255,255,.1) 50%, rgba(255,255,255,.05) 75%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 8px; color: transparent !important;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── Spinner ── */
.spinner {
  width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.25); border-top-color: #fff;
  border-radius: 50%; animation: spin .7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Tables ── */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-card); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; padding: 11px 14px; color: var(--text-3); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--border); background: var(--card-2); white-space: nowrap; }
td { padding: 11px 14px; border-bottom: 1px solid var(--border); color: var(--text-2); }
tr:last-child td { border-bottom: none; }
tbody tr { transition: background var(--transition); }
tbody tr:hover { background: rgba(124,58,237,.05); }

/* ── Footer ── */
.footer { border-top: 1px solid var(--border); margin-top: 80px; padding: 48px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 28px; }
.footer h4 { font-size: 14px; margin-bottom: 14px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer ul a { color: var(--text-3); font-size: 14px; }
.footer ul a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-3); flex-wrap: wrap; gap: 12px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* Footer social icons */
.social-row { display: flex; gap: 12px; margin-bottom: 24px; }
.social-row a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border); color: var(--text-2);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.social-row a:hover { border-color: var(--primary-2); color: var(--text); }
.social-row svg { width: 17px; height: 17px; fill: currentColor; }

/* PWA install banner */
.pwa-banner {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  z-index: 1100; max-width: min(480px, calc(100vw - 32px));
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 12px 16px; display: flex; align-items: center; gap: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,.55), var(--glow);
  font-size: 14px; color: var(--text); animation: fadeUp .25s ease;
}

/* Site announcement banner (admin-managed) */
.site-banner {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 10px 44px 10px 16px; font-size: 14px; font-weight: 500;
  color: var(--text); text-align: center; position: relative; z-index: 110;
}
.site-banner-purple { background: rgba(124,58,237,.22); border-bottom: 1px solid rgba(124,58,237,.45); }
.site-banner-green { background: rgba(16,185,129,.18); border-bottom: 1px solid rgba(16,185,129,.4); }
.site-banner-red { background: rgba(239,68,68,.18); border-bottom: 1px solid rgba(239,68,68,.4); }
.site-banner-blue { background: rgba(59,130,246,.18); border-bottom: 1px solid rgba(59,130,246,.4); }
.site-banner-close {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-2); cursor: pointer; font-size: 18px; line-height: 1;
}
.site-banner-close:hover { color: var(--text); }

/* ── Utility ── */
.text-center { text-align: center; }
.text-sm { font-size: 13px; }
.text-muted { color: var(--text-3); }
.text-success { color: var(--success); }
.text-error { color: var(--error); }
.text-warning { color: var(--warning); }
.mono { font-family: var(--font-mono); }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 40px; }
.flex { display: flex; gap: 12px; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-4 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.section { padding: 72px 0; }
.section-title { text-align: center; margin-bottom: 12px; }
.section-sub { text-align: center; max-width: 560px; margin: 0 auto 44px; }

/* Progress bar */
.progress { height: 6px; background: var(--card-2); border-radius: var(--radius-pill); overflow: hidden; }
.progress > div { height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-2)); border-radius: var(--radius-pill); transition: width .3s ease; }

/* Accordion */
.accordion-item { border: 1px solid var(--border); border-radius: var(--radius-card); margin-bottom: 10px; background: var(--card); overflow: hidden; }
.accordion-item summary { padding: 16px 20px; cursor: pointer; font-weight: 600; color: var(--text); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary::after { content: '+'; color: var(--primary-2); font-size: 20px; transition: transform var(--transition); }
.accordion-item[open] summary::after { transform: rotate(45deg); }
.accordion-item .accordion-body { padding: 0 20px 16px; color: var(--text-2); font-size: 15px; }

/* Back to top */
#back-to-top {
  position: fixed; bottom: 24px; left: 24px; z-index: 90;
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--card); color: var(--text-2); cursor: pointer; font-size: 18px;
  opacity: 0; pointer-events: none; transition: opacity var(--transition);
}
#back-to-top.visible { opacity: 1; pointer-events: auto; }
#back-to-top:hover { color: var(--text); border-color: var(--primary-2); }

/* ═══ Level-1000 design system additions ═══════════════════════════════ */

/* ── Glass morphism utilities ── */
.glass { background: var(--glass-bg); border: 1px solid var(--glass-border); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.glass-card { background: var(--glass-bg); border: 1px solid var(--glass-border); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: 16px; padding: 24px; }
.glow-text { text-shadow: 0 0 30px rgba(167, 139, 250, 0.8); }
.gradient-text { background: var(--gradient-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }
.shine { position: relative; overflow: hidden; }
.shine::after {
  content: ''; position: absolute; inset: 0; background: var(--gradient-shine);
  transform: translateX(-120%); transition: transform .7s ease; pointer-events: none;
}
.shine:hover::after { transform: translateX(120%); }

/* ── Premium cards ── */
.card-premium {
  position: relative; background: var(--glass-bg);
  border: 1px solid var(--glass-border); border-radius: 16px; padding: 24px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 0 40px rgba(124,58,237,.04);
  transition: all var(--transition);
}
.card-premium:hover {
  transform: translateY(-6px);
  border-color: rgba(167,139,250,.35);
  box-shadow: var(--glow-strong), inset 0 0 40px rgba(124,58,237,.07);
}
.card:hover { border-color: rgba(167,139,250,.4); background: linear-gradient(rgba(124,58,237,.04), rgba(124,58,237,.02)), var(--card); }

/* ── Scroll-in animations ── */
[data-animate] { opacity: 0; transition: opacity .7s ease, transform .7s cubic-bezier(.22,.9,.3,1); will-change: opacity, transform; }
[data-animate="fade-up"] { transform: translateY(40px); }
[data-animate="fade-in"] { transform: none; }
[data-animate="scale-in"] { transform: scale(0.92); }
[data-animate="slide-left"] { transform: translateX(-60px); }
[data-animate="slide-right"] { transform: translateX(60px); }
[data-animate].in-view { opacity: 1; transform: none; }
[data-delay="100"] { transition-delay: .1s; } [data-delay="200"] { transition-delay: .2s; }
[data-delay="300"] { transition-delay: .3s; } [data-delay="400"] { transition-delay: .4s; }
[data-delay="500"] { transition-delay: .5s; } [data-delay="600"] { transition-delay: .6s; }
@media (prefers-reduced-motion: reduce) { [data-animate] { opacity: 1 !important; transform: none !important; } }

/* ── Custom scrollbar (webkit) ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(124, 58, 237, 0.4); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(124, 58, 237, 0.7); }

/* ── Page load overlay ── */
.page-loader {
  position: fixed; inset: 0; z-index: 2000; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  transition: opacity .4s ease;
}
.page-loader.done { opacity: 0; pointer-events: none; }
.page-loader .loader-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--text); }
.page-loader .loader-bar { width: 160px; height: 3px; border-radius: 999px; background: var(--card-2); overflow: hidden; }
.page-loader .loader-bar::after {
  content: ''; display: block; height: 100%; width: 40%;
  background: var(--gradient-primary); border-radius: 999px;
  animation: loaderSlide 0.9s ease-in-out infinite;
}
@keyframes loaderSlide { 0% { transform: translateX(-100%); } 100% { transform: translateX(400%); } }

/* ── Page transitions ── */
body { opacity: 1; transition: opacity .18s ease; }
body.page-exit { opacity: 0; }
@media (prefers-reduced-motion: reduce) { body { transition: none; } }

/* ── Cursor follower ── */
#cursor-dot {
  position: fixed; top: 0; left: 0; z-index: 3000; pointer-events: none;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--electric);
  box-shadow: 0 0 14px rgba(124,58,237,.7);
  transform: translate(-50%, -50%); transition: width .2s ease, height .2s ease, opacity .2s ease;
  opacity: 0; mix-blend-mode: difference;
}
#cursor-dot.visible { opacity: 1; }
#cursor-dot.hovering { width: 20px; height: 20px; opacity: .55; }
@media (pointer: coarse) { #cursor-dot { display: none; } }

/* ── Nav logo glow pulse ── */
.nav-logo img { animation: logoPulse 5s ease-in-out infinite; border-radius: 8px; }
@keyframes logoPulse {
  0%, 84%, 100% { filter: drop-shadow(0 0 0 rgba(124,58,237,0)); }
  92% { filter: drop-shadow(0 0 12px rgba(167,139,250,.8)); }
}

/* ── Inputs: focus glow ── */
.input:focus { box-shadow: 0 0 0 3px rgba(124,58,237,.22), 0 0 24px rgba(124,58,237,.18); }
input[type="checkbox"] { transition: transform .15s ease; }
input[type="checkbox"]:checked { animation: checkPop .28s cubic-bezier(.34,1.56,.64,1); }
@keyframes checkPop { 0% { transform: scale(.7); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }

/* ── Toast v2: spring slide + progress bar ── */
.toast {
  overflow: hidden; padding-bottom: 16px;
  animation: toastSpring .5s cubic-bezier(.22,1.4,.36,1);
}
.toast .toast-icon { font-size: 20px; line-height: 1.2; }
.toast .toast-progress {
  position: absolute; left: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  width: 100%; transform-origin: left;
}
.toast { position: relative; }
@keyframes toastSpring {
  0% { transform: translateX(110%); opacity: 0; }
  60% { transform: translateX(-6px); opacity: 1; }
  100% { transform: none; opacity: 1; }
}
@keyframes toastProgress { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* ── Footer v2: gradient divider, newsletter, bigger logo ── */
.footer { position: relative; border-top: none; padding-top: 56px; background: #0B0B14; }
.footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,58,237,.7), rgba(167,139,250,.7), transparent);
}
.footer .nav-logo { font-size: 24px; }
.footer .nav-logo img { width: 32px; height: 32px; }
.newsletter { display: flex; gap: 10px; margin-top: 16px; max-width: 340px; }
.newsletter .input { flex: 1; font-size: 14px; }
.social-row a { background: var(--glass-bg); backdrop-filter: blur(8px); }
.social-row a:hover { box-shadow: 0 0 18px rgba(124,58,237,.5); border-color: var(--primary); transform: translateY(-2px); }
.footer-bottom .heart { color: var(--error); }

/* ── Reduced motion: kill decorative animation ── */
@media (prefers-reduced-motion: reduce) {
  .btn-primary, .nav-logo img { animation: none; }
}

/* ── Ambient particle layer (landing hero, CTA banner, auth promo) ── */
#hero-particles { position: absolute; inset: 0; pointer-events: none; }
.hero-particle {
  position: absolute; border-radius: 50%; background: #fff; pointer-events: none;
  animation-name: particleRise; animation-timing-function: linear; animation-iteration-count: infinite;
}
@keyframes particleRise {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  12% { opacity: var(--p-opacity, .25); }
  82% { opacity: var(--p-opacity, .25); }
  100% { transform: translateY(-105vh) translateX(var(--p-sway, 20px)); opacity: 0; }
}

/* ── Skip-to-content (visible on keyboard focus only) ── */
.skip-link {
  position: fixed; top: -48px; left: 16px; z-index: 4000;
  padding: 10px 18px; border-radius: 8px;
  background: var(--primary); color: #fff; font-weight: 600; font-size: 14px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; color: #fff; outline: 2px solid var(--electric); }
