/* ─── MadCool Design System ─────────────────────────────────────────────── */
:root {
  --bg:     #070a12;
  --panel:  #0b1021;
  --panel2: #0a1329;
  --edge:   #1b2a55;
  --glow:   #49d9ff;
  --glow2:  #b56bff;
  --text:   #e8f1ff;
  --muted:  #93a7c7;
  --good:   #44ffa8;
  --warn:   #ffcc66;
  --bad:    #ff5a7a;
  --shadow: 0 20px 60px rgba(0,0,0,.55);
  --radius: 22px;
  --radius2: 16px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
          "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto,
          Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

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

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

body {
  font-family: var(--sans);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 20% 10%, rgba(73,217,255,.10), transparent 60%),
    radial-gradient(1000px 700px at 80%  0%, rgba(181,107,255,.10), transparent 55%),
    radial-gradient( 700px 700px at 80% 80%, rgba(68,255,168,.07), transparent 55%),
    linear-gradient(180deg, #05070d, #070a12 30%, #04060c);
  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; }

/* ─── Panel ─────────────────────────────────────────────────────────────── */
.panel {
  border-radius: var(--radius2);
  background: linear-gradient(180deg, rgba(11,19,42,.70), rgba(7,10,20,.55));
  border: 1px solid rgba(255,255,255,.08);
  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,.06);
  border-color: rgba(73,217,255,.25);
  text-decoration: none;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn.primary {
  border-color: rgba(73,217,255,.30);
  background: linear-gradient(135deg, rgba(73,217,255,.14), rgba(181,107,255,.10));
  box-shadow: 0 0 0 1px rgba(0,0,0,.28) inset, 0 10px 26px rgba(73,217,255,.10);
}
.btn.danger {
  border-color: rgba(255,90,122,.28);
  background: linear-gradient(135deg, rgba(255,90,122,.14), rgba(181,107,255,.07));
}

/* ─── 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,.08);
  background: rgba(0,0,0,.18);
  padding: 16px;
  transition: border-color .15s ease, background .15s ease, transform .08s ease;
}
.card:hover {
  border-color: rgba(73,217,255,.22);
  background: rgba(255,255,255,.03);
}

/* ─── 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-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 16px 0;
  line-height: 1.15;
}

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

/* ─── Glow border box ────────────────────────────────────────────────────── */
.glow-box {
  border-radius: calc(var(--radius) + 8px);
  background: linear-gradient(180deg, rgba(13,19,39,.95), rgba(8,12,24,.95));
  border: 1px solid rgba(73,217,255,.18);
  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(73,217,255,.0), rgba(73,217,255,.25),
    rgba(181,107,255,.22), rgba(68,255,168,.18),
    rgba(73,217,255,.25), rgba(73,217,255,.0));
  filter: blur(18px);
  opacity: .30;
  pointer-events: none;
}
