/* ============================================================
   GigsBuzz — Landing (waitlist)
   Brand: neon green #39FF14 on near-black #050505
   ============================================================ */

:root {
  --neon: #39ff14;
  --neon-soft: #39ff1433;
  --neon-glow: #39ff1466;
  --black: #050505;
  --charcoal: #1c1917;
  --charcoal-2: #12110f;
  --mint: #f0fff0;
  --text: #ececec;
  --text-dim: #9a9a9a;
  --text-muted: #6a6a6a;
  --border: #ffffff14;
  --border-strong: #ffffff22;

  --font-display: "Bungee", system-ui, sans-serif;
  --font-tag: "Righteous", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-num: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --container: 1180px;
}

* { box-sizing: border-box; }
*::selection { background: var(--neon); color: var(--black); }

/* The HTML `hidden` attribute must always win over class-level display rules.
   Without this, `<div class="role-fields" hidden>` stays visible because
   `.role-fields { display: flex }` beats the UA `[hidden] { display: none }`. */
[hidden] { display: none !important; }

html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ============================================================
   Animated background
   ============================================================ */

#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 0%, transparent 75%);
  opacity: 0.55;
  animation: grid-drift 40s linear infinite;
}

@keyframes grid-drift {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 60px 60px, 60px 60px; }
}

.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--neon-soft) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  mix-blend-mode: screen;
  filter: blur(20px);
}

body:hover .cursor-glow { opacity: 0.8; }

/* ============================================================
   Logo
   ============================================================ */

.logo-gigs, .logo-buzz {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}
.logo-gigs {
  color: var(--mint);
  /* Dark drop-shadow keeps the white letters legible when the video's bright
     sparks / coin reflections flash behind them. */
  text-shadow: 0 2px 12px rgba(0,0,0,0.75), 0 0 2px rgba(0,0,0,0.6);
}
.logo-buzz {
  color: var(--neon);
  text-shadow:
    0 0 8px var(--neon-glow),
    0 0 20px var(--neon-glow),
    0 0 40px var(--neon-soft);
  animation: buzz-pulse 3s ease-in-out infinite;
}

@keyframes buzz-pulse {
  0%, 100% {
    text-shadow:
      0 0 8px var(--neon-glow),
      0 0 20px var(--neon-glow),
      0 0 40px var(--neon-soft);
  }
  50% {
    text-shadow:
      0 0 12px var(--neon),
      0 0 30px var(--neon-glow),
      0 0 60px var(--neon-glow),
      0 0 80px var(--neon-soft);
  }
}

/* ============================================================
   Nav
   ============================================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(5, 5, 5, 0.55);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}

.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(5, 5, 5, 0.8);
}

.nav-logo {
  font-size: 20px;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  gap: 36px;
  font-family: var(--font-tag);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-links a {
  color: var(--text-dim);
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--neon); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--neon);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); }

@media (max-width: 780px) {
  .nav-links { display: none; }
  .nav { padding: 14px 18px; }
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--font-tag);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  background: var(--neon);
  color: var(--black);
  box-shadow:
    0 0 0 1px var(--neon),
    0 0 20px var(--neon-glow),
    0 0 40px var(--neon-soft);
}
.btn-primary::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
  transition: left 0.6s var(--ease);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px var(--neon),
    0 0 30px var(--neon),
    0 0 60px var(--neon-glow),
    0 8px 32px var(--neon-soft);
}
.btn-primary:hover::before { left: 100%; }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}
.btn-ghost:hover {
  box-shadow: inset 0 0 0 1px var(--neon);
  color: var(--neon);
}

.btn-lg { padding: 16px 30px; font-size: 15px; }

.btn-block { width: 100%; justify-content: center; }

.btn-arrow { transition: transform 0.25s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 24px 80px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

/* Background video — fills the hero, sits behind all content */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  pointer-events: none;
  /* Ambient sparks — let them shine. Slight contrast + saturation only. */
  filter: contrast(1.1) saturate(1.15);
  opacity: 0;
  animation: hero-video-in 1.4s var(--ease) 0.1s forwards;
}
@keyframes hero-video-in {
  to { opacity: 1; }
}

/* Overlay for ambient sparks video — sparse, already mostly dark at source.
   Light touch: nav + stats bands darkened, middle almost fully transparent so
   individual sparks read at full fidelity behind the logo. */
.hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(5,5,5,0.95) 0%,
      rgba(5,5,5,0.80) 14%,
      rgba(5,5,5,0.70) 35%,
      rgba(5,5,5,0.70) 60%,
      rgba(5,5,5,0.88) 80%,
      rgba(5,5,5,1.00) 100%);
}

.hero-inner {
  max-width: 960px;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* Respect users who disabled motion: hide the video, keep the poster */
@media (prefers-reduced-motion: reduce) {
  .hero-video { animation: none; opacity: 1; }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(57, 255, 20, 0.06);
  border: 1px solid var(--neon-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 40px;
  animation: fade-up 0.8s var(--ease) 0.1s both;
}
.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 10px var(--neon);
  animation: dot-pulse 1.6s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(56px, 12vw, 160px);
  line-height: 0.95;
  margin: 0 0 14px;
  letter-spacing: 0.01em;
  animation: fade-up 0.9s var(--ease) 0.2s both;
}

.hero-tagline {
  font-family: var(--font-tag);
  font-size: clamp(20px, 3vw, 32px);
  letter-spacing: 0.12em;
  color: var(--mint);
  margin: 0 0 28px;
  animation: fade-up 0.9s var(--ease) 0.3s both;
}

.hero-sub {
  max-width: 680px;
  margin: 0 auto 44px;
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--text-dim);
  animation: fade-up 0.9s var(--ease) 0.4s both;
}
.hero-sub strong {
  color: var(--neon);
  font-weight: 600;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 72px;
  animation: fade-up 0.9s var(--ease) 0.5s both;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  animation: fade-up 0.9s var(--ease) 0.6s both;
}
.stat {
  padding: 20px 18px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(28,25,23,0.6), rgba(18,17,15,0.4));
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.stat:hover {
  border-color: var(--neon-soft);
  transform: translateY(-3px);
}
.stat-highlight {
  border-color: var(--neon-soft);
  box-shadow: 0 0 30px var(--neon-soft);
}
.stat-num {
  font-family: var(--font-num);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 700;
  color: var(--neon);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}
.stat-highlight .stat-num { text-shadow: 0 0 20px var(--neon-glow); }

@media (max-width: 680px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  animation: fade-up 1s var(--ease) 1s both;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(180deg, var(--text-muted), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: "";
  position: absolute;
  top: -40px; left: 0;
  width: 1px; height: 40px;
  background: linear-gradient(180deg, transparent, var(--neon));
  animation: scroll-down 2s ease-in-out infinite;
}
@keyframes scroll-down {
  0% { top: -40px; }
  100% { top: 40px; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Sections
   ============================================================ */

.section {
  position: relative;
  z-index: 2;
  padding: 120px 24px;
}
.section-dark {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(57,255,20,0.04) 0%, transparent 60%),
    var(--charcoal-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-inner {
  max-width: var(--container);
  margin: 0 auto;
}

.kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--neon);
  margin-bottom: 14px;
  padding: 4px 12px;
  background: rgba(57,255,20,0.08);
  border: 1px solid var(--neon-soft);
  border-radius: 999px;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 72px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  margin: 0 0 18px;
  letter-spacing: 0.01em;
}
.section-head p {
  color: var(--text-dim);
  font-size: clamp(15px, 1.4vw, 17px);
  margin: 0;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ============================================================
   Steps (How it works)
   ============================================================ */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step {
  padding: 36px 28px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(28,25,23,0.6), rgba(18,17,15,0.3));
  border: 1px solid var(--border);
  transition: transform 0.4s var(--ease), border-color 0.3s;
  position: relative;
  overflow: hidden;
}
.step::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, var(--neon-soft), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
}
.step:hover { transform: translateY(-6px); }
.step:hover::before { opacity: 1; }
.step-num {
  font-family: var(--font-num);
  font-size: 44px;
  font-weight: 700;
  color: var(--neon);
  opacity: 0.4;
  line-height: 1;
  margin-bottom: 18px;
  text-shadow: 0 0 20px var(--neon-glow);
}
.step h3 {
  font-family: var(--font-tag);
  font-size: 22px;
  letter-spacing: 0.04em;
  margin: 0 0 10px;
}
.step p { color: var(--text-dim); margin: 0; font-size: 15px; }

@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; }
}

/* ============================================================
   Roles
   ============================================================ */

.roles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.role-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 36px 30px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(28,25,23,0.8), rgba(18,17,15,0.5));
  border: 1px solid var(--border);
  transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s;
  position: relative;
  overflow: hidden;
  color: var(--text);
}
.role-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease);
}
.role-card:hover {
  transform: translateY(-8px);
  border-color: var(--neon-soft);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.5),
    0 0 40px var(--neon-soft);
}
.role-card:hover::before { transform: translateX(0); }

.role-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(57,255,20,0.08);
  border: 1px solid var(--neon-soft);
  color: var(--neon);
  margin-bottom: 22px;
  transition: transform 0.4s var(--ease), box-shadow 0.3s;
}
.role-icon svg { width: 28px; height: 28px; }
.role-card:hover .role-icon {
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 0 30px var(--neon-glow);
}

.role-card h3 {
  font-family: var(--font-display);
  font-size: 32px;
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}
.role-pitch {
  color: var(--text-dim);
  margin: 0 0 22px;
  font-size: 15px;
}
.role-perks {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  flex-grow: 1;
}
.role-perks li {
  padding: 8px 0 8px 24px;
  position: relative;
  font-size: 14px;
  color: var(--text);
  border-top: 1px dashed var(--border);
}
.role-perks li:first-child { border-top: 0; }
.role-perks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--neon);
  font-weight: bold;
}
.role-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-tag);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neon);
}
.role-card:hover .role-cta .btn-arrow { transform: translateX(4px); }

@media (max-width: 900px) {
  .roles { grid-template-columns: 1fr; }
}

/* ============================================================
   Features
   ============================================================ */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  padding: 28px 24px;
  border-radius: 16px;
  background: rgba(28,25,23,0.4);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: var(--neon-soft);
}
.feature-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--neon);
  padding: 3px 10px;
  background: rgba(57,255,20,0.08);
  border-radius: 4px;
  margin-bottom: 14px;
}
.feature h4 {
  font-family: var(--font-tag);
  font-size: 18px;
  margin: 0 0 8px;
  letter-spacing: 0.02em;
}
.feature p { color: var(--text-dim); margin: 0; font-size: 14px; }

@media (max-width: 820px) {
  .features { grid-template-columns: 1fr; }
}

/* ============================================================
   Final CTA
   ============================================================ */

.cta-final { padding: 60px 24px 120px; }
.cta-card {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  padding: 60px 40px;
  border-radius: 28px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(57,255,20,0.12) 0%, transparent 70%),
    linear-gradient(180deg, var(--charcoal), var(--charcoal-2));
  border: 1px solid var(--neon-soft);
  box-shadow: 0 0 80px rgba(57,255,20,0.08);
  position: relative;
  overflow: hidden;
}
.cta-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, var(--neon-soft) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, var(--neon-soft) 0%, transparent 40%);
  opacity: 0.3;
  pointer-events: none;
}
.cta-card > * { position: relative; z-index: 1; }
.cta-card h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  margin: 0 0 14px;
  letter-spacing: 0.01em;
}
.cta-card p {
  color: var(--text-dim);
  margin: 0 0 32px;
  font-size: 17px;
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
  position: relative;
  z-index: 2;
  padding: 40px 24px;
  border-top: 1px solid var(--border);
  background: var(--black);
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-brand .nav-logo { font-size: 18px; }
.footer-tag {
  font-family: var(--font-tag);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin: 4px 0 0;
}
.footer-meta {
  display: flex;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  flex-wrap: wrap;
}

/* ============================================================
   Modal
   ============================================================ */

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}
.modal[hidden] { display: none; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 5, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: fade-in 0.3s var(--ease);
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  padding: 28px 28px 24px;
  border-radius: 22px;
  background: linear-gradient(180deg, var(--charcoal), var(--charcoal-2));
  border: 1px solid var(--neon-soft);
  box-shadow:
    0 20px 80px rgba(0,0,0,0.6),
    0 0 60px var(--neon-soft);
  animation: modal-in 0.4s var(--ease);
  margin: auto;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}

.modal-close {
  position: absolute;
  top: 10px; right: 10px;
  width: 34px; height: 34px;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  z-index: 2;
}
.modal-close:hover {
  background: var(--border);
  color: var(--neon);
}

.modal-head { margin-bottom: 16px; padding-right: 30px; }
.modal-head .kicker { margin-bottom: 8px; }
.modal-head h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0 0 4px;
  letter-spacing: 0.01em;
  color: var(--mint);
}
#role-label { color: var(--neon); text-shadow: 0 0 15px var(--neon-glow); }
.modal-sub {
  color: var(--text-dim);
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
}

.role-switch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  background: var(--black);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 16px;
}
.role-switch-btn {
  padding: 9px 0;
  font-family: var(--font-tag);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-radius: 7px;
  transition: background 0.2s, color 0.2s;
}
.role-switch-btn[aria-selected="true"] {
  background: var(--neon);
  color: var(--black);
  box-shadow: 0 0 14px var(--neon-soft);
}
.role-switch-btn:not([aria-selected="true"]):hover {
  color: var(--neon);
  background: var(--border);
}

.google-signin {
  display: flex;
  justify-content: center;
  min-height: 42px;
  margin-bottom: 12px;
}
.google-signin-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  background: #fff;
  color: #1f1f1f;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid #dadce0;
  transition: box-shadow 0.2s, transform 0.2s;
}
.google-signin-fallback:hover {
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transform: translateY(-1px);
}
.google-signin-fallback svg { width: 18px; height: 18px; }

.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.form { display: flex; flex-direction: column; gap: 10px; }

/* "Signed in as …" strip shown inside the form once Google auth completes. */
.google-user-intro {
  margin: 0 0 2px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-muted);
  background: rgba(57, 255, 20, 0.06);
  border: 1px solid rgba(57, 255, 20, 0.18);
  border-radius: 10px;
  line-height: 1.4;
}
.google-user-intro strong {
  color: var(--text);
  font-weight: 600;
}
.google-user-intro .google-user-email {
  display: block;
  font-size: 12px;
  opacity: 0.75;
  margin-top: 2px;
}

/* Pair adjacent fields in a 2-column grid on wider modals.
   On mobile they'll drop to 1 column via the media query below. */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.role-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.field > span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mint);
  opacity: 0.85;
  font-weight: 500;
}
.field input,
.field select {
  padding: 11px 13px;
  border-radius: 9px;
  background: var(--black);
  border: 1px solid var(--border-strong);
  color: var(--mint);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
.field input::placeholder { color: #7a7a7a; font-weight: 400; }
.field input:hover,
.field select:hover { border-color: #ffffff33; }
.field input:focus,
.field select:focus {
  border-color: var(--neon);
  box-shadow: 0 0 0 3px var(--neon-soft);
  background: #000;
}

/* Select dropdown arrow (neon chevron) */
.field select {
  padding-right: 36px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%2339ff14' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
.field select option {
  background: var(--charcoal);
  color: var(--mint);
  font-weight: 500;
}
.field select:invalid,
.field select option[value=""] { color: #7a7a7a; }

.form button[type="submit"] { margin-top: 4px; }

.form-foot {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin: 2px 0 0;
  line-height: 1.4;
}

/* Success state */
.success {
  text-align: center;
  padding: 8px 0;
}
.success-icon {
  width: 60px; height: 60px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--neon);
  color: var(--black);
  box-shadow: 0 0 40px var(--neon-glow);
  animation: success-pop 0.5s var(--ease);
}
.success-icon svg { width: 30px; height: 30px; }
@keyframes success-pop {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}
.success h3 {
  font-family: var(--font-display);
  font-size: 24px;
  margin: 0 0 8px;
  color: var(--mint);
}
.success p {
  color: var(--text-dim);
  margin: 0 0 18px;
  font-size: 14px;
}

/* ---- Mobile: panel goes edge-to-edge, fields stack, tighter pads ---- */
@media (max-width: 560px) {
  .modal { padding: 0; align-items: stretch; }
  .modal-panel {
    max-width: 100%;
    min-height: 100%;
    border-radius: 0;
    padding: 22px 18px 20px;
    margin: 0;
    border-left: 0;
    border-right: 0;
  }
  .modal-head h3 { font-size: 20px; }
  .form-row { grid-template-columns: 1fr; }
  .field input { font-size: 16px; } /* 16px prevents iOS zoom on focus */
}

/* Short-height screens — shrink vertical rhythm further */
@media (max-height: 720px) {
  .modal-panel { padding-top: 20px; padding-bottom: 18px; }
  .modal-head { margin-bottom: 10px; }
  .modal-head h3 { font-size: 20px; }
  .modal-sub { display: none; }
  .role-switch { margin-bottom: 10px; }
  .google-signin { margin-bottom: 8px; }
  .form { gap: 8px; }
  .form-row, .role-fields { gap: 8px; }
  .field input { padding: 9px 12px; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@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; }
}
