/* Quarder Net Setup Portal — dark theme, blue accents */
:root {
  --bg: #0a0e1a;
  --bg2: #0f1526;
  --card: #131b31;
  --card2: #182242;
  --border: #22305a;
  --text: #e8edf7;
  --muted: #8b98b8;
  --blue: #2f7bff;
  --blue2: #1f5fd6;
  --green: #22c55e;
  --red: #ef4444;
  --amber: #f59e0b;
  --gold: #d9a92e;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* nav */
.nav { background: var(--bg2); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.nav-inner { max-width: 1080px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 28px; }
.brand { font-weight: 800; font-size: 18px; letter-spacing: 1px; color: var(--text); text-decoration: none; }
.brand span { color: var(--blue); }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: 14px; }
.nav-links a:hover, .nav-links a.active { color: var(--text); text-decoration: none; }

/* hero */
.hero { text-align: center; padding: 72px 20px 48px; }
.hero h1 { font-size: 42px; margin: 0 0 12px; letter-spacing: -0.5px; }
.hero h1 span { color: var(--blue); }
.hero p { color: var(--muted); font-size: 18px; max-width: 640px; margin: 0 auto 28px; }
.btn { display: inline-block; background: var(--blue); color: #fff; font-weight: 700; padding: 13px 28px; border-radius: 8px; border: none; cursor: pointer; font-size: 15px; }
.btn:hover { background: var(--blue2); text-decoration: none; }
.btn.ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn.ghost:hover { border-color: var(--blue); }
.btn.small { padding: 8px 16px; font-size: 13px; }
.btn.danger { background: transparent; border: 1px solid var(--red); color: var(--red); }
.btn:disabled { opacity: .5; cursor: default; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 20px 0 60px; }
.step { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 28px 24px; }
.step .num { display: inline-flex; width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; align-items: center; justify-content: center; margin-bottom: 14px; }
.step h3 { margin: 0 0 8px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

/* cards / tables */
.section { padding: 32px 0; }
.section h2 { margin: 0 0 6px; font-size: 26px; }
.section .sub { color: var(--muted); margin: 0 0 22px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 22px; margin-bottom: 16px; }
.card h3 { margin: 0 0 8px; }
.card p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.row .grow { flex: 1; min-width: 200px; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; letter-spacing: .5px; }
.pill.on { background: rgba(34,197,94,.15); color: var(--green); border: 1px solid var(--green); }
.pill.off { background: rgba(239,68,68,.12); color: var(--red); border: 1px solid var(--red); }
.pill.warn { background: rgba(245,158,11,.12); color: var(--amber); border: 1px solid var(--amber); }
.pill.info { background: rgba(47,123,255,.12); color: var(--blue); border: 1px solid var(--blue); }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; }
.code-box { background: #060a14; border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; overflow-x: auto; white-space: pre-wrap; word-break: break-word; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* pairing code display */
.pair-code { font-size: 52px; font-weight: 800; letter-spacing: 12px; text-align: center; color: var(--gold); font-family: ui-monospace, Menlo, Consolas, monospace; margin: 18px 0 6px; }

/* check list */
.check { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--border); }
.check:last-child { border-bottom: none; }
.dot { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; margin-top: 2px; }
.dot.pass { background: rgba(34,197,94,.2); color: var(--green); border: 1px solid var(--green); }
.dot.fail { background: rgba(239,68,68,.2); color: var(--red); border: 1px solid var(--red); }
.dot.pending { background: rgba(245,158,11,.15); color: var(--amber); border: 1px solid var(--amber); }
.check .t { font-weight: 700; }
.check .d { color: var(--muted); font-size: 13px; margin-top: 2px; }
.badge-sim { font-size: 11px; background: rgba(245,158,11,.15); color: var(--amber); border: 1px solid var(--amber); border-radius: 4px; padding: 1px 7px; margin-left: 8px; font-weight: 700; }

/* toggle switch */
.switch { position: relative; width: 46px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; inset: 0; background: #2a3556; border-radius: 999px; transition: .2s; }
.slider:before { position: absolute; content: ""; height: 20px; width: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + .slider { background: var(--green); }
.switch input:checked + .slider:before { transform: translateX(20px); }

/* form */
input[type=text], select { background: #060a14; border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 11px 14px; font-size: 14px; width: 100%; }
label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }

footer { border-top: 1px solid var(--border); margin-top: 60px; padding: 24px 20px; text-align: center; color: var(--muted); font-size: 13px; }

@media (max-width: 760px) {
  .hero h1 { font-size: 30px; }
  .steps { grid-template-columns: 1fr; }
  .nav-links { gap: 14px; }
  .pair-code { font-size: 40px; letter-spacing: 8px; }
}
