/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --red       : #e63946;
  --cyan      : #00e5ff;
  --pink      : #ff2d6b;
  --amber     : #f59e0b;
  --cyan-dim  : rgba(0,229,255,.12);
  --pink-dim  : rgba(255,45,107,.12);
  --amber-dim : rgba(245,158,11,.12);
  --bg        : #080810;
  --bg-card   : #10101a;
  --bg-card2  : #13131e;
  --border    : rgba(255,255,255,.07);
  --border-c  : rgba(0,229,255,.28);
  --text      : #eeeef5;
  --text-dim  : #6b7280;
  --grad      : linear-gradient(135deg, var(--cyan) 0%, var(--pink) 100%);
  --r         : 12px;
  --rs        : 8px;
}

/* ── Base ──────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 56px;
}

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, .orbitron { font-family: 'Orbitron', sans-serif; }

/* ── Utilities ─────────────────────────────────────────────── */
.container   { max-width: 720px; margin: 0 auto; padding: 0 18px; }
.section     { padding: 52px 0; }
.divider     { border: none; border-top: 1px solid var(--border); }
.mb-8        { margin-bottom: 8px; }
.mb-12       { margin-bottom: 12px; }
.mb-16       { margin-bottom: 16px; }
.mb-20       { margin-bottom: 20px; }
.text-dim    { color: var(--text-dim); }
.text-cyan   { color: var(--cyan); }
.text-pink   { color: var(--pink); }
.text-center { text-align: center; }

/* ── Section label ─────────────────────────────────────────── */
.section-label {
  font-family: 'Orbitron', sans-serif;
  font-size: .6rem; font-weight: 700;
  color: var(--cyan); text-transform: uppercase; letter-spacing: .14em;
  margin-bottom: 22px;
}

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px;
}
.card2 {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px;
}

/* ── Badges ────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 99px;
  font-size: .68rem; font-weight: 600;
}
.badge-cyan  { background: var(--cyan-dim);       color: var(--cyan);  border: 1px solid var(--border-c); }
.badge-pink  { background: var(--pink-dim);       color: var(--pink);  border: 1px solid rgba(255,45,107,.28); }
.badge-amber { background: var(--amber-dim);      color: var(--amber); border: 1px solid rgba(245,158,11,.28); }
.badge-gray  { background: rgba(255,255,255,.06); color: var(--text-dim); border: 1px solid var(--border); }
.badge-green { background: rgba(52,211,153,.12);  color: #34d399; border: 1px solid rgba(52,211,153,.3); }
.badge-red   { background: rgba(239,68,68,.12);   color: #ef4444; border: 1px solid rgba(239,68,68,.3); }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; border-radius: var(--r);
  font-weight: 700; font-size: .88rem;
  cursor: pointer; border: none;
  text-decoration: none; letter-spacing: .02em;
  transition: opacity .15s;
  white-space: nowrap;
}
.btn:active { opacity: .82; }
.btn-primary { background: var(--grad); color: #000; }
.btn-outline {
  background: transparent; color: var(--cyan);
  border: 1px solid var(--border-c) !important;
}
.btn-outline:hover { background: var(--cyan-dim); }
.btn-sm { padding: 8px 16px; font-size: .78rem; border-radius: var(--rs); }

/* ── Pulse dot ─────────────────────────────────────────────── */
.dot-pulse {
  width: 7px; height: 7px; border-radius: 50%; background: currentColor;
  animation: dotpulse 2s infinite; flex-shrink: 0;
}
@keyframes dotpulse { 0%,100%{opacity:1} 50%{opacity:.28} }
@media (prefers-reduced-motion: reduce) { .dot-pulse { animation: none; } }

/* ── Spinner ───────────────────────────────────────────────── */
.spinner {
  width: 22px; height: 22px; border: 2px solid var(--border);
  border-top-color: var(--cyan); border-radius: 50%;
  animation: spin .7s linear infinite; margin: 24px auto; display: block;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; border-color: var(--cyan); } }

/* ── Navbar ────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(8,8,16,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  height: 56px;
}
.nav-inner {
  max-width: 720px; margin: 0 auto; padding: 0 18px;
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.nav-logo {
  display: flex; align-items: center; gap: 7px;
  text-decoration: none;
}
.nav-star {
  color: var(--red); font-size: 1.15rem; line-height: 1;
  filter: drop-shadow(0 0 6px rgba(230,57,70,.6));
}
.nav-name {
  font-family: 'Orbitron', sans-serif; font-size: .88rem; font-weight: 900;
  background: var(--grad); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.nav-links {
  display: flex; align-items: center; gap: 4px;
}
.nav-link {
  padding: 6px 14px; border-radius: 6px;
  font-size: .8rem; font-weight: 600;
  color: var(--text-dim); text-decoration: none;
  transition: color .15s, background .15s;
}
.nav-link:hover  { color: var(--text); background: rgba(255,255,255,.05); }
.nav-link.active { color: var(--cyan); background: var(--cyan-dim); }
.nav-badge {
  font-size: .68rem; font-weight: 600;
}

/* ── Footer ────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 18px;
  text-align: center;
}
.footer-logo {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-bottom: 6px;
}
.footer-star { color: var(--red); font-size: 1.2rem; filter: drop-shadow(0 0 6px rgba(230,57,70,.5)); }
.footer-name {
  font-family: 'Orbitron', sans-serif; font-size: 1rem; font-weight: 900;
  background: var(--grad); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.footer-sub { font-size: .76rem; color: var(--text-dim); }
.footer-social { display: flex; justify-content: center; gap: 16px; margin: 12px 0; }
.footer-social a { color: var(--text-dim); transition: color .15s; }
.footer-social a:hover { color: var(--cyan); }
.footer-copy { font-size: .72rem; color: var(--text-dim); margin-top: 8px; }

/* ── Sticky CTA ─────────────────────────────────────────────── */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 150;
  display: flex; gap: 8px;
  padding: 10px 14px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(8,8,16,.96);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.sticky-cta > * {
  flex: 1; padding: 11px 6px; border-radius: var(--r);
  font-weight: 700; font-size: .8rem;
  text-decoration: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  transition: opacity .15s;
}
.sticky-cta > *:active { opacity: .8; }
.cta-primary  { background: var(--grad); color: #000; }
.cta-outline  { background: transparent; color: var(--cyan); border: 1px solid var(--border-c) !important; }
.cta-social   { background: rgba(255,255,255,.06); color: var(--text-dim); border: 1px solid var(--border) !important; }

/* ── Input ─────────────────────────────────────────────────── */
.input-field {
  width: 100%; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--rs); padding: 11px 14px; color: var(--text);
  font-size: .88rem; outline: none; transition: border-color .15s;
}
.input-field:focus { border-color: var(--border-c); }
.input-field::placeholder { color: var(--text-dim); }
.input-field.orbitron-input {
  font-family: 'Orbitron', sans-serif; font-size: .72rem; font-weight: 700;
  letter-spacing: .04em;
}
.input-field.orbitron-input::placeholder {
  font-family: 'Inter', sans-serif; font-weight: 400;
  letter-spacing: 0; font-size: .8rem;
}
.input-field.error   { border-color: rgba(239,68,68,.5); }
.input-field.success { border-color: rgba(52,211,153,.5); }

/* ── Form rows ─────────────────────────────────────────────── */
.r-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 7px 0; border-bottom: 1px solid var(--border);
  font-size: .85rem;
}
.r-row:last-child { border-bottom: none; }
.r-key { color: var(--text-dim); }
.r-val { font-weight: 600; }

/* ── Progress bar ──────────────────────────────────────────── */
.prog-bar  { width:100%; height:4px; background:var(--cyan-dim); border-radius:3px; overflow:hidden; }
.prog-fill { height:100%; border-radius:3px; background:var(--grad); transition:width .4s ease; }
@media (prefers-reduced-motion: reduce) { .prog-fill { transition: none; } }

/* ── Lightbox ──────────────────────────────────────────────── */
#lightbox {
  display: none; position: fixed; inset: 0; z-index: 400;
  background: rgba(0,0,0,.94);
  align-items: center; justify-content: center; padding: 20px;
}
#lightbox.open { display: flex; }
#lightbox img  { max-width: 100%; max-height: 88vh; border-radius: var(--rs); object-fit: contain; }
.lb-close {
  position: absolute; top: 14px; right: 18px;
  background: none; border: none; color: var(--text); font-size: 2rem;
  cursor: pointer; line-height: 1;
}
.lb-legend {
  position: absolute; bottom: 18px; left: 0; right: 0;
  text-align: center; font-size: .82rem; color: var(--text-dim);
}

/* ── Social buttons ────────────────────────────────────────── */
.social-btn {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: var(--r);
  background: var(--bg-card); border: 1px solid var(--border);
  text-decoration: none; color: var(--text); font-size: .88rem; font-weight: 500;
  transition: border-color .15s;
}
.social-btn:hover { border-color: var(--border-c); }
.social-icon { width: 22px; height: 22px; flex-shrink: 0; }
