:root {
  --bg: #05070d;
  --bg-soft: #0b1020;
  --surface: rgba(14, 18, 32, 0.72);
  --surface-strong: #101627;
  --text: #f8fafc;
  --muted: #94a3b8;
  --faint: #64748b;
  --line: rgba(148, 163, 184, 0.16);
  --primary: #7c3aed;
  --primary-2: #6366f1;
  --accent: #ec4899;
  --ok: #34d399;
  --danger: #f87171;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
}

body {
  min-height: 100dvh;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
.btn {
  font-family: inherit;
}

.bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(124, 58, 237, 0.28), transparent 55%),
    radial-gradient(700px 360px at 8% 12%, rgba(99, 102, 241, 0.16), transparent 50%),
    linear-gradient(180deg, #070b16 0%, #05070d 48%, #05070d 100%);
}

.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 78%);
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 8px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

.mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.35);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 14px;
  letter-spacing: -0.02em;
}

.brand-copy span {
  font-size: 11px;
  color: var(--muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.12);
}

.hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0 28px;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

h1 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 600;
  max-width: 14ch;
}

.lede {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  max-width: 46ch;
}

.hint {
  margin-top: 18px;
  color: var(--faint);
  font-size: 14px;
}

.products {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.product {
  display: flex;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(124, 58, 237, 0.16);
  color: #c4b5fd;
}

.product h3 {
  font-size: 15px;
  letter-spacing: -0.03em;
}

.product p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.card {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(18px);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.card h2 {
  font-size: 22px;
}

.card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"] {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.55);
  color: var(--text);
  border-radius: 12px;
  padding: 0 14px;
  font-size: 16px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

input:focus {
  border-color: rgba(124, 58, 237, 0.8);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.18);
}

.focus-box {
  display: grid;
  gap: 10px;
}

.focus-title {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.focus-help,
.legal-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.legal-note a {
  color: #ddd6fe;
  text-decoration: underline;
}

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-height: 44px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
}

.check input {
  margin-top: 3px;
  accent-color: var(--primary);
}

.check strong {
  display: block;
  color: var(--text);
  font-size: 14px;
}

.check span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  padding: 0 16px;
  background: linear-gradient(180deg, #8b5cf6, var(--primary));
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease, opacity 160ms ease;
}

.btn:hover {
  filter: brightness(1.06);
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}

.error,
.ok {
  min-height: 18px;
  font-size: 13px;
}

.error {
  color: var(--danger);
}

.ok {
  color: var(--ok);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 48px 0 32px;
  color: var(--faint);
  font-size: 13px;
}

.thanks {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 32px 0;
}

.thanks .card {
  width: min(560px, 100%);
  text-align: center;
  padding: 40px 28px;
}

.thanks h1 {
  max-width: none;
  font-size: clamp(32px, 5vw, 46px);
}

.admin-shell {
  padding: 28px 0 48px;
}

.admin-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 24px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.stat {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.stat span {
  color: var(--muted);
  font-size: 13px;
}

.stat strong {
  display: block;
  margin-top: 6px;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.toolbar input {
  flex: 1;
  min-width: 220px;
}

.filters {
  display: flex;
  gap: 8px;
}

.filter {
  min-height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 0 14px;
  cursor: pointer;
}

.filter.active {
  color: var(--text);
  background: rgba(124, 58, 237, 0.18);
  border-color: rgba(124, 58, 237, 0.4);
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

th,
td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  vertical-align: top;
}

th {
  color: var(--faint);
  font-weight: 500;
  background: rgba(255, 255, 255, 0.02);
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
}

.badge.yes {
  background: rgba(52, 211, 153, 0.12);
  color: #6ee7b7;
}

.badge.no {
  background: rgba(248, 113, 113, 0.12);
  color: #fca5a5;
}

.empty {
  padding: 36px 16px;
  text-align: center;
  color: var(--muted);
}

.login-card {
  width: min(420px, 100%);
  margin: 12vh auto 0;
}

.admin-title {
  font-size: 36px;
}

.thanks-title {
  margin-top: 18px;
}

.muted-note {
  color: var(--faint);
}

.legal {
  max-width: 720px;
  padding: 24px 0 64px;
}

.legal h1 {
  font-size: clamp(32px, 5vw, 48px);
  max-width: none;
}

.legal h2 {
  margin-top: 28px;
  font-size: 20px;
}

.legal p,
.legal li {
  color: var(--muted);
}

.legal a {
  text-decoration: underline;
  color: #ddd6fe;
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(10, 14, 26, 0.94);
  box-shadow: var(--shadow);
}

.cookie-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  max-width: 72ch;
}

.cookie-banner a {
  color: #ddd6fe;
  text-decoration: underline;
}

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

  h1 {
    max-width: none;
  }

  .admin-head,
  .footer,
  .nav {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
