:root {
  color-scheme: dark;
  --bg: #07111f;
  --panel: #0f1d31;
  --panel-2: #142640;
  --line: #29405e;
  --text: #f1f5f9;
  --muted: #9fb0c6;
  --primary: #7168ff;
  --primary-2: #4f46e5;
  --success: #2dd4bf;
  --danger: #fb7185;
  --warning: #fbbf24;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 10% -10%, rgba(113, 104, 255, .25), transparent 34rem),
    radial-gradient(circle at 100% 20%, rgba(45, 212, 191, .10), transparent 30rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a { color: #b9b5ff; text-decoration: none; }
a:hover { color: white; }
code, .code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid rgba(41,64,94,.8); background: rgba(7,17,31,.92); backdrop-filter: blur(16px); }
.header-inner { min-height: 72px; display: flex; align-items: center; gap: 22px; }
.brand { color: white; font-size: 1.2rem; font-weight: 850; letter-spacing: .05em; }
.brand-mark { color: var(--primary); }
.nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.nav a { color: var(--muted); padding: 9px 11px; border-radius: 10px; font-weight: 650; font-size: .92rem; }
.nav a:hover { color: white; background: rgba(255,255,255,.06); }
.main { padding: 36px 0 72px; }
.hero { padding: 32px 0 18px; }
.eyebrow { color: var(--success); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.15; margin-top: 0; }
h1 { font-size: clamp(2rem, 5vw, 3.6rem); margin-bottom: 14px; }
h2 { font-size: 1.35rem; margin-bottom: 18px; }
h3 { font-size: 1.05rem; }
.lead { max-width: 760px; color: var(--muted); font-size: 1.08rem; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.grid { display: grid; gap: 18px; }
.grid + .card { margin-top: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: linear-gradient(145deg, rgba(20,38,64,.96), rgba(12,27,47,.96)); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: 0 18px 40px rgba(0,0,0,.16); }
.card-header { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.card-header h2, .card-header h3 { margin-bottom: 4px; }
.stat strong { display: block; font-size: 2rem; }
.stat span { color: var(--muted); font-size: .9rem; }
.stack { display: grid; gap: 14px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.between { justify-content: space-between; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.divider { height: 1px; background: var(--line); margin: 20px 0; }
.badge { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font-size: .78rem; font-weight: 750; color: var(--muted); background: rgba(255,255,255,.03); }
.badge.active, .badge.paid { border-color: rgba(45,212,191,.5); color: #8af3e5; background: rgba(45,212,191,.08); }
.badge.suspended, .badge.revoked, .badge.failed { border-color: rgba(251,113,133,.55); color: #fecdd3; background: rgba(251,113,133,.08); }
.badge.warning, .badge.past_due { border-color: rgba(251,191,36,.5); color: #fde68a; background: rgba(251,191,36,.08); }
.button, button { appearance: none; display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-height: 42px; padding: 9px 15px; border: 1px solid transparent; border-radius: 11px; color: white; background: var(--primary-2); font: inherit; font-weight: 750; cursor: pointer; }
.button:hover, button:hover { color: white; background: var(--primary); }
.button.secondary, button.secondary { border-color: var(--line); background: rgba(255,255,255,.035); color: var(--text); }
.button.secondary:hover, button.secondary:hover { background: rgba(255,255,255,.09); }
.button.danger, button.danger { border-color: rgba(251,113,133,.45); background: rgba(251,113,133,.12); color: #fecdd3; }
.button.discord { background: #5865f2; }
.button.full, button.full { width: 100%; }
button[disabled], .button.disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
form.inline { display: inline-flex; }
.field { display: grid; gap: 7px; }
label { color: #d8e1ec; font-size: .88rem; font-weight: 700; }
input, select, textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; outline: none; color: var(--text); background: #091525; font: inherit; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(113,104,255,.14); }
input[type=checkbox] { width: 18px; min-height: auto; height: 18px; }
textarea { min-height: 100px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.notice { border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; margin-bottom: 20px; }
.notice.success { border-color: rgba(45,212,191,.45); background: rgba(45,212,191,.09); color: #b9fff5; }
.notice.error { border-color: rgba(251,113,133,.5); background: rgba(251,113,133,.10); color: #ffe4e8; }
.notice.warning { border-color: rgba(251,191,36,.5); background: rgba(251,191,36,.08); color: #ffefb0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 13px; }
table { width: 100%; border-collapse: collapse; background: rgba(9,21,37,.55); }
th, td { padding: 12px 13px; text-align: left; border-bottom: 1px solid rgba(41,64,94,.7); vertical-align: top; }
th { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.login-shell { width: min(460px, calc(100% - 32px)); margin: 7vh auto; }
.login-card { padding: 30px; }
.license-key { display: block; overflow-wrap: anywhere; padding: 16px; border: 1px dashed #645cf5; border-radius: 12px; background: #080f1c; color: #e8e6ff; font-size: clamp(1rem, 3vw, 1.25rem); }
.offer-card { display: flex; flex-direction: column; }
.offer-card .price { font-size: 2rem; font-weight: 850; margin: 10px 0; }
.offer-card .button { margin-top: auto; }
.machine { padding: 12px; border-radius: 11px; background: rgba(255,255,255,.035); }
.footer { border-top: 1px solid var(--line); color: var(--muted); padding: 24px 0; font-size: .86rem; }
.empty { text-align: center; padding: 32px 16px; color: var(--muted); }

@media (max-width: 900px) {
  .grid-4, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-inner { align-items: flex-start; padding: 14px 0; flex-direction: column; }
  .nav { margin-left: 0; }
}

@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2, .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .main { padding-top: 22px; }
  .card { padding: 17px; }
  .nav { display: grid; grid-template-columns: repeat(2, 1fr); width: 100%; }
  .nav a { text-align: center; }
}
