:root {
  --bg: #08080c;
  --bg-soft: #0f1016;
  --surface: rgba(20, 21, 29, 0.88);
  --surface-strong: #171821;
  --surface-hover: #20222d;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f8f8fb;
  --muted: #a8a9b5;
  --muted-2: #777985;
  --acid: #d9ff3f;
  --acid-2: #a7ff3e;
  --pink: #ff3f81;
  --violet: #8c68ff;
  --cyan: #42dcff;
  --success: #67f59d;
  --warning: #ffc75f;
  --danger: #ff6474;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; background: var(--bg); }
body {
  position: relative;
  isolation: isolate;
  min-height: 100%;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 9% 4%, rgba(217, 255, 63, 0.13), transparent 26rem),
    radial-gradient(circle at 92% 12%, rgba(255, 63, 129, 0.13), transparent 30rem),
    linear-gradient(180deg, #0b0b10 0%, #07070a 100%);
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button { color: inherit; }
a { color: inherit; }
::selection { color: #090a0c; background: var(--acid); }

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
}

.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  user-select: none;
}

.brand__icon {
  width: 44px;
  height: 44px;
  padding: 8px;
  color: #0b0b0e;
  background: var(--acid);
  border-radius: 14px;
  box-shadow: 0 10px 34px rgba(217, 255, 63, 0.20);
}

.brand__logo {
  width: 200px;
  height: 44px;
  flex: 0 0 200px;
  object-fit: contain;
}

.brand__type { display: grid; line-height: 1; }
.brand__short {
  font-size: 1.6rem;
  font-weight: 950;
  letter-spacing: -0.075em;
}
.brand__long {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--acid);
  font-size: 0.73rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 5px color-mix(in srgb, currentColor 14%, transparent);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(0.85); opacity: 0.65; }
  50% { transform: scale(1.12); opacity: 1; }
}

.card {
  background: linear-gradient(145deg, rgba(27, 28, 38, 0.95), rgba(17, 18, 25, 0.95));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 17px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.btn:hover { transform: translateY(-1px); background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.28); }
.btn:active { transform: translateY(0); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(217, 255, 63, 0.28);
  outline-offset: 2px;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn--primary { color: #0a0b0d; border-color: var(--acid); background: var(--acid); }
.btn--primary:hover { background: #e4ff72; border-color: #e4ff72; }
.btn--danger { color: #fff; border-color: rgba(255, 100, 116, 0.35); background: rgba(255, 100, 116, 0.12); }
.btn--ghost { border-color: transparent; background: transparent; }
.btn--small { min-height: 36px; padding: 0 12px; border-radius: 10px; font-size: 0.83rem; }

.icon { width: 19px; height: 19px; flex: 0 0 auto; }

.field { display: grid; gap: 7px; }
.field label { color: var(--muted); font-size: 0.78rem; font-weight: 750; }
.input, .select, .textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  color: var(--text);
  background: #11121a;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color 160ms ease, background 160ms ease;
}
.textarea { min-height: 90px; padding-top: 12px; resize: vertical; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--line-strong); }
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}
.badge--acid { color: var(--acid); background: rgba(217, 255, 63, 0.08); border-color: rgba(217, 255, 63, 0.20); }
.badge--pink { color: #ff92b9; background: rgba(255, 63, 129, 0.08); border-color: rgba(255, 63, 129, 0.20); }
.badge--success { color: var(--success); background: rgba(103, 245, 157, 0.08); border-color: rgba(103, 245, 157, 0.20); }
.badge--warning { color: var(--warning); background: rgba(255, 199, 95, 0.08); border-color: rgba(255, 199, 95, 0.20); }

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

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100;
  max-width: calc(100% - 32px);
  padding: 13px 18px;
  color: #0b0c0d;
  background: var(--acid);
  border-radius: 999px;
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.48);
  font-size: 0.88rem;
  font-weight: 900;
  transform: translate(-50%, 130%);
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
.toast.is-error { color: #fff; background: var(--danger); }

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.25);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin .75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

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