/* ─── Amplify HiFi Design System ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Playfair+Display:wght@400;600;700&display=swap');

:root {
  --bg:     #070505;
  --panel:  #0e0909;
  --panel2: #130a0a;
  --edge:   #2a1010;
  --glow:   #cc1500;
  --glow2:  #8b0000;
  --text:   #f0e8e8;
  --muted:  #9a8888;
  --good:   #44ffa8;
  --warn:   #ffcc66;
  --bad:    #ff5a7a;
  --shadow: 0 20px 60px rgba(0,0,0,.65);
  --radius: 22px;
  --radius2: 16px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
          "Liberation Mono", "Courier New", monospace;
  --sans: 'Poppins', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto,
          Helvetica, Arial, sans-serif;
  --serif: 'Playfair Display', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--sans);
  color: var(--text);
  background: #000;
  min-height: 100vh;
}

a { color: var(--glow); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Utility ────────────────────────────────────────────────────────────── */
.mono  { font-family: var(--mono); }
.muted { color: var(--muted); }
.upper { text-transform: uppercase; letter-spacing: .12em; }
.serif { font-family: var(--serif); }

/* ─── Panel ─────────────────────────────────────────────────────────────── */
.panel {
  border-radius: var(--radius2);
  background: linear-gradient(180deg, rgba(20,8,8,.80), rgba(10,5,5,.65));
  border: 1px solid rgba(255,255,255,.07);
  padding: 20px;
}

/* ─── Button ─────────────────────────────────────────────────────────────── */
.btn {
  appearance: none;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 14px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform .08s ease, background .15s ease, border-color .15s ease;
  user-select: none;
  text-decoration: none;
}
.btn:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(204,21,0,.35);
  text-decoration: none;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn.primary {
  background: #cc1500;
  border-color: #cc1500;
  border-radius: 4px;
  color: #fff;
  font-family: var(--sans);
  font-weight: 600;
  box-shadow: none;
}
.btn.primary:hover {
  background: #e01800;
  border-color: #e01800;
}
.btn.danger {
  border-color: rgba(255,90,122,.28);
  background: linear-gradient(135deg, rgba(255,90,122,.14), rgba(139,0,0,.10));
}

/* ─── Pill / Badge ───────────────────────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.dot {
  width: 8px; height: 8px;
  border-radius: 99px;
  background: var(--good);
  box-shadow: 0 0 14px rgba(68,255,168,.55);
  flex-shrink: 0;
}
.dot.warn { background: var(--warn); box-shadow: 0 0 14px rgba(255,204,102,.45); }
.dot.bad  { background: var(--bad);  box-shadow: 0 0 14px rgba(255,90,122,.45); }

/* ─── Card ───────────────────────────────────────────────────────────────── */
.card {
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(0,0,0,.22);
  padding: 16px;
  transition: border-color .15s ease, background .15s ease, transform .08s ease;
}
.card:hover {
  border-color: rgba(204,21,0,.28);
  background: rgba(204,21,0,.04);
}

/* ─── Section heading ────────────────────────────────────────────────────── */
.section-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px 0;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 16px 0;
  line-height: 1.15;
}

/* ─── Input / Select ─────────────────────────────────────────────────────── */
input[type="text"],
input[type="email"],
input[type="search"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.30);
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  border-color: rgba(204,21,0,.40);
  box-shadow: 0 0 0 3px rgba(204,21,0,.12);
}
select option { background: #0e0909; color: var(--text); }

/* ─── Glow border box ────────────────────────────────────────────────────── */
.glow-box {
  border-radius: calc(var(--radius) + 8px);
  background: linear-gradient(180deg, rgba(20,8,8,.95), rgba(12,5,5,.95));
  border: 1px solid rgba(204,21,0,.20);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.glow-box::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: conic-gradient(from 180deg at 50% 50%,
    rgba(204,21,0,.0), rgba(204,21,0,.25),
    rgba(139,0,0,.22), rgba(80,0,0,.15),
    rgba(204,21,0,.25), rgba(204,21,0,.0));
  filter: blur(20px);
  opacity: .28;
  pointer-events: none;
}
