/* ================================
   BRAND PALETTE & DESIGN TOKENS
================================== */
:root {
  /* Brand colors */
  --brand-gold: #f3b300;
  --brand-teal: #146274;
  --brand-black: #000000;
  --brand-white: #ffffff;

  /* Theme tokens */
  --bg: #020617; /* deep slate */
  --panel: rgba(15,23,42,0.96);
  --panel-soft: rgba(15,23,42,0.88);
  --text: #f9fafb;
  --muted: #9ca3af;
  --primary: var(--brand-gold);
  --primary-2: var(--brand-teal);
  --accent: var(--brand-teal);
  --warning: var(--brand-gold);
  --error: #ef4444;

  --radius-xl: 1.5rem;
  --radius-lg: 1rem;
  --radius-md: 0.875rem;
  --radius-sm: 0.5rem;
  --glass-blur: 14px;
  --shadow-1: 0 18px 45px rgba(0,0,0,.45);
  --shadow-2: 0 10px 30px rgba(0,0,0,.35);

  --grid-gap: 1rem;
  --section-padding: 2.25rem 1rem;
  --container-padding: 0 1rem;
}

/* ================================
   BASE / RESET
================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(243,179,0,0.35) 0%, rgba(2,6,23,0) 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(20,98,116,0.55) 0%, rgba(2,6,23,0) 64%),
    var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

/* ================================
   TYPOGRAPHY
================================== */
h1,
h2,
h3,
h4,
h5 {
  font-family: Space Grotesk, Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }

p {
  margin-bottom: 1rem;
}

.text-muted {
  color: var(--muted);
}

/* ================================
   LAYOUT UTILITIES
================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--container-padding);
}

.text-center { text-align: center; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.w-full { width: 100%; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.p-0 { padding: 0; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-8 { padding-top: 2.25rem; padding-bottom: 2.25rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }

.overflow-hidden { overflow: hidden; }

/* ================================
   NAVBAR
================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background:
    linear-gradient(to bottom, rgba(2,6,23,0.95), rgba(2,6,23,0.7));
  backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid rgba(243,179,0,0.16);
  padding: 0.75rem 1rem;
}

.navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 1rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 1.78rem;
}

.brand-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  border-radius: 999px;
  box-shadow:
    0 0 0 1px rgba(243,179,0,0.35),
    0 12px 25px rgba(0,0,0,0.6);
}

.brand-tagline {
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  background: rgba(20,98,116,0.25);
  border: 1px solid rgba(243,179,0,0.35);
  color: var(--primary);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
}

.nav-toggle {
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  width: 40px;
  height: 40px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--brand-white);
  transition: transform 0.25s ease, opacity 0.2s ease, background 0.2s ease;
}

.nav-toggle-bar + .nav-toggle-bar {
  margin-top: 4px;
}

/* Open → X */
.nav-toggle.open .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-menu {
  position: fixed;
  top: 60px;
  left: 0;
  width: 100%;
  background: radial-gradient(circle at top, rgba(243,179,0,0.1), transparent 55%),
              rgba(2,6,23,0.98);
  backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid rgba(243,179,0,0.2);
  padding: 1rem;
  flex-direction: column;
  gap: 0.5rem;
  display: none;
}

.nav-menu.active {
  display: flex;
}

.nav-link {
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
  padding: 0.5rem 0.25rem;
  display: block;
  font-size: 0.92rem;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.25s ease;
}

.nav-link.active,
.nav-link:hover {
  color: var(--brand-white);
}

.nav-link.active::after,
.nav-link:hover::after {
  width: 40%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.auth-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ================================
   BUTTONS
================================== */
.btn {
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: all 0.28s ease;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  white-space: nowrap;
}

.btn i {
  font-size: 1rem;
}

.btn-future {
  color: #111827;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow:
    0 12px 26px rgba(243,179,0,0.35),
    inset 0 -2px 8px rgba(0,0,0,0.35);
  border: 1px solid rgba(0,0,0,0.35);
}

.btn-future:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow:
    0 18px 35px rgba(243,179,0,0.45),
    inset 0 -2px 8px rgba(0,0,0,0.45);
  filter: brightness(1.02);
}

.btn-ghost {
  color: var(--text);
  background: rgba(15,23,42,0.8);
  border: 1px solid rgba(243,179,0,0.28);
  box-shadow: 0 8px 20px rgba(0,0,0,0.45);
}

.btn-ghost:hover {
  background: rgba(20,98,116,0.25);
  border-color: rgba(243,179,0,0.5);
  transform: translateY(-1px);
}

/* Auth-specific primary/secondary (if needed) */
.btn-primary {
  color: #111827;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow:
    0 12px 26px rgba(243,179,0,0.35),
    inset 0 -2px 8px rgba(0,0,0,0.35);
  border: 1px solid rgba(0,0,0,0.35);
}

.btn-primary:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow:
    0 18px 35px rgba(243,179,0,0.45),
    inset 0 -2px 8px rgba(0,0,0,0.45);
  filter: brightness(1.02);
}

.btn-secondary {
  color: var(--text);
  background: rgba(15,23,42,0.8);
  border: 1px solid rgba(243,179,0,0.28);
  box-shadow: 0 8px 20px rgba(0,0,0,0.45);
}

/* ================================
   HERO / HOMEPAGE PANELS
================================== */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: var(--section-padding);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 400px at 10% 0%, rgba(243,179,0,0.12), transparent 65%),
    radial-gradient(800px 500px at 100% 100%, rgba(20,98,116,0.35), transparent 60%);
  opacity: 0.9;
  pointer-events: none;
  z-index: -1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--grid-gap);
  width: 100%;
}

.panel {
  background: linear-gradient(
    145deg,
    rgba(15,23,42,0.96),
    rgba(15,23,42,0.88)
  );
  border: 1px solid rgba(243,179,0,0.24);
  box-shadow: var(--shadow-1);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(18px);
}

.hero-copy {
  padding: 1.75rem 1.75rem 1.9rem;
}

.eyebrow {
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, var(--primary), transparent);
  opacity: 0.9;
}

.hero h1 {
  margin: 0.75rem 0 1rem;
}

.hero p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 30rem;
}

.cta-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Metrics */
.metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  margin-top: 2rem;
}

.metric {
  padding: 0.95rem 1.3rem;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 10% -20%, rgba(243,179,0,0.16), transparent 60%),
              rgba(15,23,42,0.9);
  border: 1px solid rgba(148,163,184,0.4);
  text-align: left;
  position: relative;
  overflow: hidden;
}

.metric::after {
  content: "";
  position: absolute;
  inset-inline-end: -40px;
  top: 30%;
  width: 90px;
  height: 90px;
  border-radius: 999px;
  border: 1px dashed rgba(243,179,0,0.35);
  opacity: 0.3;
}

.metric .k {
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--primary);
}

.metric .label {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Hero image */
.hero-image {
  position: relative;
}

.hero-image::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(243,179,0,0.4);
  opacity: 0.45;
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.7s ease;
}

.hero-image:hover img {
  transform: scale(1.06);
}

/* ================================
   CARDS / CAMPAIGNS
================================== */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
}

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--panel-soft);
  border: 1px solid rgba(148,163,184,0.45);
  box-shadow: var(--shadow-2);
  backdrop-filter: blur(18px);
}

.card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
}

.card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.35), transparent 40%);
  pointer-events: none;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(.2,.7,.1,1);
}

.card:hover .card-img img {
  transform: scale(1.06);
}

.card-body {
  padding: 1.1rem 1.2rem 1.3rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.78rem;
  background: rgba(243,179,0,0.12);
  color: var(--primary);
  border: 1px solid rgba(243,179,0,0.35);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.badge-soft::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--primary);
}

/* Progress */
.progress-wrap {
  margin-top: 0.625rem;
}

.progress {
  height: 12px;
  background: rgba(15,23,42,0.85);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(15,23,42,0.9);
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  box-shadow: 0 0 18px rgba(243,179,0,0.45);
}

.goal-raised {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.94rem;
  margin-top: 0.8rem;
}

.goal-raised strong {
  color: var(--brand-white);
  font-weight: 600;
}

/* ================================
   EVENTS / PARTNERS / SUBSCRIBE
================================== */
.event {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(15,23,42,0.96);
  border: 1px solid rgba(148,163,184,0.45);
  box-shadow: var(--shadow-2);
}

.event-date {
  display: grid;
  place-items: center;
  padding: 0.65rem 0.95rem;
  border-radius: 0.9rem;
  background: var(--primary);
  color: #111827;
  text-align: center;
  align-self: flex-start;
  box-shadow: 0 8px 18px rgba(243,179,0,0.4);
}

.event-date div {
  font-weight: 700;
}

/* Partners */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.logo-box {
  display: grid;
  place-items: center;
  height: 86px;
  border-radius: 1rem;
  background: radial-gradient(circle at top, rgba(243,179,0,0.12), transparent 60%),
              rgba(15,23,42,0.95);
  border: 1px dashed rgba(148,163,184,0.6);
  box-shadow: 0 10px 26px rgba(0,0,0,0.45);
}

.logo-box img {
  max-height: 50px;
  opacity: .9;
  filter: saturate(115%) contrast(1.05);
}

/* Subscribe box */
.subscribe {
  background:
    radial-gradient(circle at 0% 0%, rgba(243,179,0,0.2), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(20,98,116,0.55), transparent 60%),
    linear-gradient(135deg, rgba(15,23,42,0.98), rgba(15,23,42,0.9));
  border: 1px solid rgba(243,179,0,0.35);
  border-radius: var(--radius-xl);
  padding: 1.7rem 1.8rem;
  box-shadow: 0 16px 40px rgba(0,0,0,0.6);
}

.subscribe-content {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* ================================
   FORM ELEMENTS (GLOBAL)
================================== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* unify subscribe + auth inputs */
.form-control,
.form-input {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(2,6,23,0.9);
  border: 1px solid rgba(148,163,184,0.6);
  color: var(--text);
  font-size: 1rem;
  box-shadow: inset 0 0 0 1px rgba(15,23,42,1);
  width: 100%;
  transition: all 0.3s ease;
}

.form-control::placeholder,
.form-input::placeholder {
  color: var(--muted);
}

.form-control:focus,
.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow:
    0 0 0 1px rgba(243,179,0,0.6),
    0 0 0 18px rgba(243,179,0,0.08);
}

textarea.form-input,
textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

select.form-input,
select.form-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
                    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px),
                       calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.form-label {
  display: block;
  font-weight: 500;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

/* ================================
   FOOTER
================================== */
footer {
  border-top: 1px solid rgba(148,163,184,0.5);
  margin-top: 3.25rem;
  padding: 1.5rem 1rem;
  background: radial-gradient(circle at top, rgba(243,179,0,0.08), transparent 55%),
              rgba(2,6,23,1);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  font-size: 0.9rem;
  color: var(--muted);
}

.social-links {
  display: flex;
  gap: 0.5rem;
}

/* ================================
   PARTICLE CANVAS
================================== */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* ================================
   SCROLL TO TOP BUTTON
================================== */
.scroll-top {
  position: fixed;
  right: 1rem;
  bottom: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0,0,0,0.5);
  box-shadow:
    0 10px 25px rgba(0,0,0,0.6),
    0 0 0 1px rgba(243,179,0,0.35);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 60;
}

.scroll-top-icon {
  width: 20px;
  height: 20px;
  stroke: #111827;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(6px);
  box-shadow:
    0 16px 32px rgba(0,0,0,0.7),
    0 0 0 1px rgba(243,179,0,0.6);
  filter: brightness(1.02);
}

/* ================================
   AUTH / LOGIN / SIGNUP
================================== */
.auth-container {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--section-padding);
  position: relative;
}

.auth-content {
  display: flex;
  flex-direction: column;
  gap: var(--grid-gap);
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.auth-card {
  padding: 2.1rem 2.2rem 2.4rem;
}

/* Tabs (support both .tabs/.tab and .auth-tabs/.auth-tab) */
.tabs,
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  background: rgba(15,23,42,0.9);
  border-radius: var(--radius-lg);
  padding: 0.25rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(148,163,184,0.5);
}

.tab,
.auth-tab {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.92rem;
}

.tab.active,
.auth-tab.active {
  background: radial-gradient(circle at top, rgba(243,179,0,0.18), transparent 70%);
  color: var(--brand-white);
  box-shadow: 0 8px 18px rgba(243,179,0,0.35);
}

/* auth grids */
.form-row,
.auth-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

/* Password wrapper / toggle */
.password-wrapper {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0.25rem;
}

.password-toggle:hover {
  color: var(--brand-white);
}

/* Strength Meter */
.strength-meter {
  height: 4px;
  border-radius: 2px;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
  background: rgba(15,23,42,1);
  border: 1px solid rgba(15,23,42,1);
}

.strength-0 { width: 20%; background: #ef4444; }
.strength-1 { width: 40%; background: #f97316; }
.strength-2 { width: 60%; background: #facc15; }
.strength-3 { width: 80%; background: #84cc16; }
.strength-4,
.strength-5 { width: 100%; background: #22c55e; }

.strength-label {
  font-size: 0.75rem;
  margin-top: 0.25rem;
  text-align: right;
  color: var(--muted);
}

/* Character Counter */
.char-counter {
  font-size: 0.75rem;
  text-align: right;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* Checkbox group */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.checkbox {
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 0.3rem;
  background: rgba(2,6,23,0.9);
  border: 1px solid rgba(148,163,184,0.6);
  margin-top: 0.125rem;
  flex-shrink: 0;
  appearance: none;
  -webkit-appearance: none;
  position: relative;
}

.checkbox:checked {
  background: var(--primary);
  border-color: var(--primary);
}

.checkbox:checked::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -58%);
  font-size: 0.75rem;
  color: #111827;
  font-weight: 700;
}

.checkbox-label {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.4;
}

.link,
.link-small {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.85rem;
}

.link:hover,
.link-small:hover {
  text-decoration: underline;
}

/* Auth layout helpers */
.auth-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.auth-btn-primary {
  width: 100%;
}

.forms-container,
.auth-forms {
  position: relative;
  min-height: 360px;
}

/* Form animations */
.form-transition {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.form-hidden {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.form-visible {
  opacity: 1;
  transform: translateY(0);
  position: relative;
}

/* Target amount prefix */
.target-wrapper {
  position: relative;
}

.target-prefix {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  color: var(--muted);
}

.target-input {
  padding-left: 3rem;
}

/* Validation */
.error-message {
  color: var(--error);
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

/* ================================
   RESPONSIVE BREAKPOINTS
================================== */
@media (min-width: 576px) {
  :root {
    --section-padding: 2.5rem 1.5rem;
    --container-padding: 0 1.5rem;
    --grid-gap: 1.25rem;
  }

  h1 { font-size: 2.7rem; }
  h2 { font-size: 2.1rem; }

  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .logo-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cta-row {
    flex-direction: row;
  }

  .btn {
    flex: 1;
  }

  .form-row,
  .auth-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 768px) {
  :root {
    --section-padding: 3.2rem 2rem;
    --container-padding: 0 2rem;
    --grid-gap: 1.5rem;
  }

  h1 { font-size: 3.1rem; }
  h2 { font-size: 2.3rem; }

  .hero-content {
    flex-direction: row;
    align-items: center;
  }

  .hero-copy {
    flex: 1.2;
  }

  .hero-image {
    flex: 0.9;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .metrics {
    grid-template-columns: repeat(3, 1fr);
  }

  .logo-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .subscribe-content {
    flex-direction: row;
    align-items: center;
  }

  .form-group {
    flex-direction: row;
    flex: 1;
  }

  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }

  .nav-toggle {
    display: none;
  }

  .nav-menu {
    position: static;
    display: flex;
    flex-direction: row;
    background: none;
    backdrop-filter: none;
    border: none;
    padding: 0;
    width: auto;
    align-items: center;
  }

  .nav-actions {
    margin-top: 0;
    margin-left: 1rem;
  }

  .scroll-top {
    right: 2rem;
    bottom: 2rem;
    width: 50px;
    height: 50px;
  }

  .scroll-top-icon {
    width: 22px;
    height: 22px;
  }

  .auth-card {
    padding: 2.4rem 2.6rem 2.7rem;
  }
}

@media (min-width: 992px) {
  :root {
    --section-padding: 4rem 2rem;
    --grid-gap: 1.75rem;
  }

  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.5rem; }

  .hero-copy {
    padding: 2.5rem 2.6rem;
  }

  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  :root {
    --section-padding: 4.6rem 2rem;
    --grid-gap: 2rem;
  }

  h1 { font-size: 3.8rem; }
}

/* ================================
   ACCESSIBILITY
================================== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.focus\:outline-none:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ======================
   AUTH / LOGIN / SIGNUP
======================= */
    /* ===== AUTH SECTION ===== */
    .auth-container {
      min-height: calc(100vh - 64px);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: var(--section-padding);
      position: relative;
    }

    .auth-content {
      display: flex;
      flex-direction: column;
      gap: var(--grid-gap);
      width: 100%;
      max-width: 520px;
      margin: 0 auto;
    }

    .panel {
      background: linear-gradient(
        145deg,
        rgba(15,23,42,0.96),
        rgba(15,23,42,0.88)
      );
      border: 1px solid rgba(243,179,0,0.24);
      box-shadow: var(--shadow-1);
      border-radius: var(--radius-xl);
      backdrop-filter: blur(18px);
    }

    .auth-card {
      padding: 2.1rem 2.2rem 2.4rem;
    }

    .eyebrow {
      color: var(--primary);
      font-weight: 600;
      letter-spacing: 0.24em;
      text-transform: uppercase;
      font-size: 0.7rem;
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
    }

    .eyebrow::before {
      content: "";
      width: 22px;
      height: 1px;
      background: linear-gradient(90deg, var(--primary), transparent);
      opacity: 0.9;
    }

    /* ===== TABS ===== */
    .tabs {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0.4rem;
      background: rgba(15,23,42,0.9);
      border-radius: var(--radius-lg);
      padding: 0.25rem;
      margin-bottom: 1.5rem;
      border: 1px solid rgba(148,163,184,0.5);
    }

    .tab {
      padding: 0.75rem 1rem;
      border-radius: var(--radius-md);
      font-weight: 600;
      text-align: center;
      cursor: pointer;
      transition: all 0.3s ease;
      border: none;
      background: transparent;
      color: var(--muted);
      font-size: 0.92rem;
    }

    .tab.active {
      background: radial-gradient(circle at top, rgba(243,179,0,0.18), transparent 70%);
      color: var(--brand-white);
      box-shadow: 0 8px 18px rgba(243,179,0,0.35);
    }

    /* ===== FORM ELEMENTS (MATCH HOME SUBSCRIBE INPUTS) ===== */
    .form-group {
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }

    .form-row {
      display: grid;
      grid-template-columns: 1fr;
      gap: 1rem;
    }

    .form-label {
      display: block;
      font-weight: 500;
      font-size: 0.875rem;
      margin-bottom: 0.5rem;
      color: var(--text);
    }

    .form-input {
      width: 100%;
      padding: 0.8rem 1rem;
      border-radius: var(--radius-md);
      background: rgba(2,6,23,0.9);
      border: 1px solid rgba(148,163,184,0.6);
      color: var(--text);
      font-size: 1rem;
      box-shadow: inset 0 0 0 1px rgba(15,23,42,1);
      transition: all 0.3s ease;
    }

    .form-input::placeholder {
      color: var(--muted);
    }

    .form-input:focus {
      outline: none;
      border-color: var(--primary);
      box-shadow:
        0 0 0 1px rgba(243,179,0,0.6),
        0 0 0 18px rgba(243,179,0,0.08);
    }

    textarea.form-input {
      resize: vertical;
      min-height: 120px;
    }

    select.form-input {
      appearance: none;
      -webkit-appearance: none;
      -moz-appearance: none;
      background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
                        linear-gradient(135deg, var(--muted) 50%, transparent 50%);
      background-position: calc(100% - 18px) calc(50% - 3px),
                           calc(100% - 12px) calc(50% - 3px);
      background-size: 6px 6px, 6px 6px;
      background-repeat: no-repeat;
    }

    .password-wrapper {
      position: relative;
    }

    .password-toggle {
      position: absolute;
      right: 0.75rem;
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: none;
      color: var(--muted);
      cursor: pointer;
      padding: 0.25rem;
    }

    .password-toggle:hover {
      color: var(--brand-white);
    }

    /* Buttons (aligned with homepage CTA) */
    .btn {
      padding: 0.9rem 1.5rem;
      border-radius: 999px;
      font-weight: 700;
      letter-spacing: 0.03em;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.6rem;
      transition: all 0.28s ease;
      border: none;
      cursor: pointer;
      font-size: 0.95rem;
      width: 100%;
      white-space: nowrap;
    }

    .btn i { font-size: 1rem; }

    .btn-primary {
      color: #111827;
      background: linear-gradient(135deg, var(--primary), var(--accent));
      box-shadow:
        0 12px 26px rgba(243,179,0,0.35),
        inset 0 -2px 8px rgba(0,0,0,0.35);
      border: 1px solid rgba(0,0,0,0.35);
    }

    .btn-primary:hover {
      transform: translateY(-1px) scale(1.01);
      box-shadow:
        0 18px 35px rgba(243,179,0,0.45),
        inset 0 -2px 8px rgba(0,0,0,0.45);
      filter: brightness(1.02);
    }

    .btn-secondary {
      color: var(--text);
      background: rgba(15,23,42,0.8);
      border: 1px solid rgba(243,179,0,0.28);
      box-shadow: 0 8px 20px rgba(0,0,0,0.45);
      width: auto;
    }

    .btn-secondary:hover {
      background: rgba(20,98,116,0.25);
      border-color: rgba(243,179,0,0.5);
      transform: translateY(-1px);
    }

    /* Strength Meter */
    .strength-meter {
      height: 4px;
      border-radius: 2px;
      transition: all 0.3s ease;
      margin-top: 0.5rem;
      background: rgba(15,23,42,1);
      border: 1px solid rgba(15,23,42,1);
    }

    .strength-0 { width: 20%; background: #ef4444; }
    .strength-1 { width: 40%; background: #f97316; }
    .strength-2 { width: 60%; background: #facc15; }
    .strength-3 { width: 80%; background: #84cc16; }
    .strength-4,
    .strength-5 { width: 100%; background: #22c55e; }

    .strength-label {
      font-size: 0.75rem;
      margin-top: 0.25rem;
      text-align: right;
      color: var(--muted);
    }

    /* Character Counter */
    .char-counter {
      font-size: 0.75rem;
      text-align: right;
      color: var(--muted);
      margin-top: 0.25rem;
    }

    /* Checkbox */
    .checkbox-group {
      display: flex;
      align-items: flex-start;
      gap: 0.75rem;
    }

    .checkbox {
      width: 1.125rem;
      height: 1.125rem;
      border-radius: 0.3rem;
      background: rgba(2,6,23,0.9);
      border: 1px solid rgba(148,163,184,0.6);
      margin-top: 0.125rem;
      flex-shrink: 0;
      appearance: none;
      -webkit-appearance: none;
      position: relative;
    }

    .checkbox:checked {
      background: var(--primary);
      border-color: var(--primary);
    }

    .checkbox:checked::after {
      content: "✓";
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -58%);
      font-size: 0.75rem;
      color: #111827;
      font-weight: 700;
    }

    .checkbox-label {
      font-size: 0.875rem;
      color: var(--muted);
      line-height: 1.4;
    }

    .link {
      color: var(--primary);
      text-decoration: none;
    }

    .link:hover {
      text-decoration: underline;
    }

    /* 3D Particle Canvas */
    #particle-canvas {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: -1;
      pointer-events: none;
    }

    /* Form animations */
    .form-transition {
      transition: opacity 0.3s ease, transform 0.3s ease;
    }
    
    .form-hidden {
      opacity: 0;
      transform: translateY(10px);
      pointer-events: none;
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
    }
    
    .form-visible {
      opacity: 1;
      transform: translateY(0);
      position: relative;
    }

    .forms-container {
      position: relative;
      min-height: 360px;
    }

    /* Form validation */
    .error-message {
      color: var(--error);
      font-size: 0.75rem;
      margin-top: 0.25rem;
    }

    /* ===== RESPONSIVE BREAKPOINTS ===== */
    @media (min-width: 576px) {
      :root {
        --section-padding: 3rem 1.75rem;
        --container-padding: 0 1.75rem;
        --grid-gap: 1.25rem;
      }

      h1 { font-size: 2.7rem; }
      h2 { font-size: 2.1rem; }

      .form-row {
        grid-template-columns: 1fr 1fr;
      }
    }

    @media (min-width: 768px) {
      :root {
        --section-padding: 3.4rem 2.25rem;
        --container-padding: 0 2.25rem;
        --grid-gap: 1.5rem;
      }

      h1 { font-size: 3rem; }
      h2 { font-size: 2.3rem; }

      .auth-card {
        padding: 2.4rem 2.6rem 2.7rem;
      }
    }

    @media (min-width: 992px) {
      :root {
        --section-padding: 4rem 2.5rem;
        --grid-gap: 1.75rem;
      }

      h1 { font-size: 3.4rem; }
      h2 { font-size: 2.5rem; }
    }

    /* ===== ACCESSIBILITY ===== */
    @media (prefers-reduced-motion: reduce) {
      * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
      }
    }

    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }