:root {
  color-scheme: dark;
  --bg: #20272b;
  --panel: #2b3338;
  --panel-2: #313a40;
  --text: #f6f8f9;
  --muted: #b8c3c8;
  --accent: #8be7df;
  --accent-strong: #aaf5ef;
  --border: rgba(139, 231, 223, .42);
  --danger: #ffb5b5;
  --success: #9be3b0;
  --shadow: 0 18px 45px rgba(0,0,0,.28);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font-family: Inter, "Segoe UI", Arial, sans-serif; }
button, input { font: inherit; }
a { color: inherit; }

.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 22px; background: rgba(32,39,43,.96); border-bottom: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(12px); }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: .02em; }
.brand img { width: 36px; height: 36px; }
.member-chip { color: var(--muted); font-size: .9rem; }

main { width: min(1120px, 100%); margin: 0 auto; padding: 32px 20px 48px; flex: 1; }
.hero { display: grid; gap: 20px; grid-template-columns: 1.2fr .8fr; align-items: stretch; }
.card { background: linear-gradient(145deg, var(--panel-2), var(--panel)); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow); padding: 28px; }
.eyebrow { margin: 0 0 10px; color: var(--accent); text-transform: uppercase; font-weight: 800; font-size: .78rem; letter-spacing: .14em; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.2rem, 7vw, 4rem); line-height: .98; margin-bottom: 18px; }
h2 { font-size: clamp(1.55rem, 4vw, 2.25rem); }
.lead { color: var(--muted); line-height: 1.65; max-width: 62ch; }
.tagline { display: inline-flex; border: 1px solid var(--border); color: var(--accent-strong); border-radius: 999px; padding: 10px 14px; font-weight: 700; }

.form-grid { display: grid; gap: 16px; }
label { display: grid; gap: 8px; color: var(--accent-strong); font-weight: 700; }
input { width: 100%; padding: 14px 16px; border: 1px solid var(--border); border-radius: 13px; background: rgba(255,255,255,.04); color: var(--text); outline: none; }
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(139,231,223,.12); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { cursor: pointer; border: 1px solid var(--border); border-radius: 13px; padding: 13px 18px; background: transparent; color: var(--accent-strong); font-weight: 800; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); background: rgba(139,231,223,.1); }
.btn.primary { background: var(--accent); color: #162124; border-color: transparent; }
.btn.danger { color: var(--danger); border-color: rgba(255,181,181,.4); }
.message { min-height: 1.2em; color: var(--danger); font-weight: 700; }
.success { color: var(--success); }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; margin-top: 22px; }
.platform { min-height: 145px; display: flex; flex-direction: column; justify-content: space-between; }
.platform h3 { margin-bottom: 8px; }
.platform p { color: var(--muted); line-height: 1.5; }
.status { font-size: .85rem; color: var(--muted); }
.status strong { color: var(--accent-strong); }

.nav-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; }
.nav-row .btn.active { background: rgba(139,231,223,.16); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.stat strong { display: block; font-size: 2.2rem; color: var(--accent-strong); }
.stat span { color: var(--muted); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 13px 10px; border-bottom: 1px solid rgba(255,255,255,.08); }
.table th { color: var(--accent-strong); }
.footer { padding: 18px 20px; text-align: center; color: var(--muted); border-top: 1px solid rgba(255,255,255,.08); }

@media (max-width: 760px) {
  .hero, .grid, .stats { grid-template-columns: 1fr; }
  .topbar { align-items: flex-start; }
  .member-chip { text-align: right; }
  main { padding-top: 22px; }
  .card { padding: 22px; }
}
