/* ============================================================
   Base — reset, typography, primitives
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--f-body);
  background: var(--bg-grad);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
a  { color: var(--sky); text-decoration: none; }
a:hover { color: #8ad8ff; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--amber); color: #1a1300; }

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-sm); }

.mono { font-family: var(--f-mono); font-feature-settings: "tnum" 1; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.center { text-align: center; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.hidden { display: none !important; }

.eyebrow {
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--amber);
  display: inline-flex; align-items: center; gap: 9px;
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 12px var(--amber);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px; border-radius: var(--r-sm); border: 1px solid transparent;
  font-weight: 700; font-size: .95rem; letter-spacing: .01em;
  transition: transform .14s ease, background .18s ease, border-color .18s ease, color .18s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--amber); color: #1a1300; }
.btn-primary:hover { background: #ffc056; color: #1a1300; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--sky); color: #fff; }
.btn-sky { background: var(--sky); color: #042033; }
.btn-sky:hover { background: #7ad4ff; }
.btn-danger { background: var(--red-soft); border-color: rgba(255,107,107,.4); color: #ffb0b0; }
.btn-danger:hover { background: var(--red); color: #2a0808; }
.btn-sm { padding: 7px 13px; font-size: .82rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---- Forms ---- */
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-size: .82rem; font-weight: 600; color: var(--muted); }
.input, .select, textarea.input {
  width: 100%; padding: 12px 14px; font-family: inherit; font-size: .95rem;
  background: #0c1322; border: 1px solid var(--border); border-radius: var(--r-sm);
  color: var(--text); transition: border-color .16s, box-shadow .16s;
}
.input::placeholder { color: var(--faint); }
.input:focus, .select:focus, textarea.input:focus { border-color: var(--sky); box-shadow: var(--ring); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-error { color: #ffb0b0; font-size: .82rem; min-height: 1.1em; }

/* ---- Badges / status ---- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px; font-size: .73rem; font-weight: 700;
  font-family: var(--f-mono); letter-spacing: .04em; text-transform: uppercase;
}
.badge::before { content:""; width:7px; height:7px; border-radius:50%; background: currentColor; }
.badge-active   { background: var(--green-soft); color: var(--green); }
.badge-expired  { background: var(--red-soft);   color: var(--red); }
.badge-pending  { background: var(--amber-soft);  color: var(--amber); }
.badge-suspended{ background: rgba(147,160,189,.14); color: var(--muted); }

@media (max-width: 540px) { .field-row { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto; }
}
