:root {
  --bg: #07110d;
  --bg-2: #0b1813;
  --surface: #10211a;
  --surface-2: #152b22;
  --border: #1f3a2e;
  --text: #e8f5ee;
  --muted: #8fa89b;
  --accent: #34d399;
  --accent-2: #10b981;
  --accent-ink: #04231a;
  --gold: #fbbf24;
  --danger: #f87171;
  --radius: 14px;
  --radius-sm: 9px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: dark; }
body {
  font-family: var(--font);
  background:
    radial-gradient(1200px 600px at 50% -200px, rgba(52, 211, 153, .14), transparent 70%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }

/* ---------- Pasek górny ---------- */
.topbar { border-bottom: 1px solid var(--border); background: rgba(7, 17, 13, .85); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 10; }
.topbar__inner { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 18px; letter-spacing: .2px; }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 8px; image-rendering: pixelated; }
.brand span b { color: var(--accent); font-weight: 800; }
.nav { display: flex; gap: 18px; margin-left: auto; }
.nav a { color: var(--muted); font-weight: 600; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); text-decoration: none; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); font-weight: 700; cursor: pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.btn:hover { text-decoration: none; border-color: var(--accent); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); border-color: transparent; }
.btn--primary:hover { filter: brightness(1.07); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- Hero ---------- */
.hero { padding-top: 64px; padding-bottom: 40px; text-align: center; }
.hero__logo { width: 96px; height: 96px; margin: 0 auto 20px; border-radius: 18px; image-rendering: pixelated; box-shadow: 0 10px 40px rgba(52, 211, 153, .25); }
.hero h1 { font-size: clamp(30px, 6vw, 48px); line-height: 1.15; font-weight: 800; letter-spacing: -.5px; }
.hero h1 b { color: var(--accent); }
.hero p { color: var(--muted); max-width: 620px; margin: 14px auto 0; font-size: 17px; }
.hero__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.ip { font-family: ui-monospace, Consolas, monospace; }
.status { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--muted); font-size: 14px; }
.status__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.status--on .status__dot { background: var(--accent); box-shadow: 0 0 0 4px rgba(52, 211, 153, .18); }
.status--off .status__dot { background: var(--danger); }

/* ---------- Sekcje ---------- */
.section { padding-top: 36px; padding-bottom: 36px; }
.section__title { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.section__lead { color: var(--muted); margin-bottom: 22px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.step__num { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(52, 211, 153, .14); color: var(--accent); font-weight: 800; margin-bottom: 10px; }
.step h3 { font-size: 17px; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 15px; }
.step code { background: var(--bg-2); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; font-size: 14px; color: var(--text); }

/* ---------- Doładowanie ---------- */
.topup { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: start; }
.packages { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.pkg {
  position: relative; text-align: left; background: var(--surface); border: 2px solid var(--border);
  border-radius: var(--radius); padding: 18px 16px; cursor: pointer; transition: border-color .12s ease, transform .12s ease;
}
.pkg:hover { border-color: #2f5a47; }
.pkg[aria-checked="true"] { border-color: var(--accent); background: linear-gradient(180deg, rgba(52, 211, 153, .1), var(--surface)); }
.pkg__amount { font-size: 28px; font-weight: 800; line-height: 1.1; }
.pkg__amount small { font-size: 14px; color: var(--accent); font-weight: 700; margin-left: 4px; }
.pkg__price { color: var(--muted); margin-top: 6px; font-weight: 600; }
.pkg__badge { position: absolute; top: -10px; right: 12px; background: var(--gold); color: #2a1d00; font-size: 12px; font-weight: 800; padding: 2px 9px; border-radius: 999px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.form { display: grid; gap: 14px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.field label span { color: var(--muted); font-weight: 500; }
.input-wrap { display: flex; align-items: center; gap: 10px; }
.input-wrap img { width: 40px; height: 40px; border-radius: 8px; background: var(--bg-2); image-rendering: pixelated; flex: none; }
input[type="text"], input[type="email"] {
  width: 100%; padding: 11px 13px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg-2); outline: none;
}
input:focus { border-color: var(--accent); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { margin-top: 4px; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.summary { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; border-top: 1px solid var(--border); }
.summary b { font-size: 22px; }
.error { color: var(--danger); font-size: 14px; min-height: 1em; }
.note { font-size: 13px; color: var(--muted); }

.result { display: none; margin-bottom: 22px; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.result.is-visible { display: block; }
.result--ok { border-color: var(--accent); background: rgba(52, 211, 153, .08); }
.result--wait { border-color: var(--gold); background: rgba(251, 191, 36, .07); }
.result--bad { border-color: var(--danger); background: rgba(248, 113, 113, .07); }
.result h3 { font-size: 17px; margin-bottom: 2px; }

.recent { display: grid; gap: 8px; }
.recent__item { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.recent__item img { width: 26px; height: 26px; border-radius: 6px; image-rendering: pixelated; }
.recent__item span { color: var(--muted); margin-left: auto; font-size: 13px; }

/* ---------- Dokumenty ---------- */
.doc { max-width: 780px; padding-top: 44px; padding-bottom: 64px; }
.doc h1 { font-size: 34px; font-weight: 800; margin-bottom: 6px; }
.doc h2 { font-size: 19px; margin: 30px 0 10px; }
.doc p, .doc li { color: #c8d8cf; }
.doc ol, .doc ul { padding-left: 22px; display: grid; gap: 6px; }

/* ---------- Stopka ---------- */
.footer { margin-top: auto; border-top: 1px solid var(--border); padding: 26px 0; color: var(--muted); font-size: 13px; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; }
.footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }

@media (max-width: 820px) {
  .topup { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nav { gap: 12px; }
  .nav a.hide-sm { display: none; }
  .hero { padding-top: 40px; }
}
