/* Sky Ai Inc · Groepsportaal — zelfde ontwerpsysteem als de Control Center-redesign (2026-10-26). */
:root {
  --sx-bg: #0a0e16; --sx-bg-2: #0e1420; --sx-surface: #121a28; --sx-surface-2: #172133; --sx-surface-3: #1d2940;
  --sx-line: rgba(148,163,184,.14); --sx-line-strong: rgba(148,163,184,.26);
  --sx-text: #e8eef7; --sx-muted: #9aa8bc; --sx-faint: #6b7a90;
  --sx-accent: #22d3ee; --sx-accent-ink: #06222a; --sx-accent-soft: rgba(34,211,238,.12);
  --sx-violet: #a78bfa; --sx-green: #34d399; --sx-amber: #fbbf24; --sx-red: #f87171;
  --sx-radius: 16px; --sx-radius-sm: 11px;
  --sx-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 10px 30px -12px rgba(0,0,0,.55);
  --sx-font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--sx-font); color: var(--sx-text); background: var(--sx-bg);
  -webkit-font-smoothing: antialiased; font-size: 15px; line-height: 1.45;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; opacity: .28;
  background: url('/assets/sky-night-stars-v1.jpg') 0 0/750px 750px repeat;
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(34,211,238,.08), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(167,139,250,.06), transparent 60%),
    linear-gradient(180deg, rgba(10,14,22,.35), rgba(10,14,22,.85));
}
button, input, select { font: inherit; color: inherit; }
.gp-app { max-width: 560px; margin: 0 auto; padding: 0 16px calc(110px + env(safe-area-inset-bottom)); }
.gp-loading { padding: 40vh 0; text-align: center; color: var(--sx-muted); }

/* Kop */
.gp-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; margin: 0 -16px; padding: 12px 16px;
  background: rgba(10,14,22,.82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--sx-line); }
.gp-logo { width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--sx-line-strong); background: #000; object-fit: cover; }
.gp-top-text { flex: 1; min-width: 0; }
.gp-top-title { font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gp-top-sub { color: var(--sx-muted); font-size: .82rem; }
.gp-icon-btn { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--sx-line-strong); background: var(--sx-surface);
  display: grid; place-items: center; cursor: pointer; color: var(--sx-text); }
.gp-icon-btn svg { width: 20px; height: 20px; }

/* Typografie */
.gp-eyebrow { color: var(--sx-accent); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin: 22px 0 6px; }
h1.gp-h1 { font-size: 1.75rem; line-height: 1.15; margin: 0 0 6px; letter-spacing: -.02em; }
.gp-lead { color: var(--sx-muted); margin: 0 0 18px; }
.gp-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--sx-line-strong);
  background: var(--sx-surface); color: var(--sx-muted); font-size: .82rem; margin-top: 16px; }
.gp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sx-green); box-shadow: 0 0 0 3px rgba(52,211,153,.18); }

/* Kaarten */
.gp-card { background: linear-gradient(180deg, var(--sx-surface), var(--sx-bg-2)); border: 1px solid var(--sx-line); border-radius: var(--sx-radius);
  box-shadow: var(--sx-shadow); padding: 18px; margin: 14px 0; }
.gp-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.gp-card-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--sx-accent-soft); font-size: 1.15rem; flex: none; }
.gp-card h2 { font-size: 1.02rem; margin: 0; letter-spacing: -.01em; }
.gp-card-sub { color: var(--sx-muted); font-size: .84rem; margin: 2px 0 0; }

/* Login */
.gp-login { min-height: 100vh; display: flex; align-items: center; padding: 28px 0; }
.gp-login .gp-card { width: 100%; padding: 30px 24px; }
.gp-login-logo { width: 74px; height: 74px; border-radius: 20px; border: 1px solid var(--sx-line-strong); background: #000; }
.gp-label { display: block; font-weight: 600; font-size: .9rem; color: #c8d3e3; margin: 16px 0 7px; }
.gp-input { width: 100%; height: 50px; border-radius: 12px; border: 1px solid var(--sx-line-strong); background: #0c111b; padding: 0 15px; font-size: 1.05rem; outline: none; }
.gp-input:focus { border-color: var(--sx-accent); box-shadow: 0 0 0 3px var(--sx-accent-soft); }
.gp-code { letter-spacing: .5em; text-align: center; font-size: 1.4rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.gp-btn { width: 100%; height: 50px; border: 0; border-radius: 12px; background: var(--sx-accent); color: var(--sx-accent-ink); font-weight: 700;
  font-size: 1rem; cursor: pointer; margin-top: 16px; box-shadow: 0 8px 24px -10px rgba(34,211,238,.7); }
.gp-btn:disabled { opacity: .55; cursor: default; }
.gp-btn.gp-ghost { background: var(--sx-surface-2); color: var(--sx-text); border: 1px solid var(--sx-line-strong); box-shadow: none; }
.gp-or { display: flex; align-items: center; gap: 12px; color: var(--sx-faint); font-size: .8rem; margin: 22px 0 14px; }
.gp-or::before, .gp-or::after { content: ""; flex: 1; height: 1px; background: var(--sx-line); }
.gp-hint { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 12px; background: var(--sx-accent-soft); border: 1px solid rgba(34,211,238,.22); font-size: .9rem; color: #cfeff5; }
.gp-hint b { color: #fff; }
.gp-kbd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: rgba(0,0,0,.35); padding: 1px 6px; border-radius: 6px; color: var(--sx-accent); }
.gp-small { color: var(--sx-faint); font-size: .8rem; text-align: center; margin-top: 18px; }
.gp-error { color: var(--sx-red); font-size: .88rem; margin-top: 10px; min-height: 1.2em; }
.gp-link { background: none; border: 0; color: var(--sx-accent); padding: 0; cursor: pointer; font-weight: 600; }

/* Groepenlijst */
.gp-group { width: 100%; text-align: left; display: flex; align-items: center; gap: 14px; cursor: pointer; padding: 16px; }
.gp-avatar { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 1.05rem; flex: none;
  background: linear-gradient(135deg, rgba(34,211,238,.25), rgba(167,139,250,.25)); border: 1px solid var(--sx-line-strong); }
.gp-group-main { flex: 1; min-width: 0; }
.gp-group-name { font-weight: 700; font-size: 1.02rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gp-group-meta { color: var(--sx-muted); font-size: .84rem; margin-top: 2px; }
.gp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.gp-tag { font-size: .74rem; padding: 3px 9px; border-radius: 999px; background: var(--sx-surface-3); color: #c8d3e3; border: 1px solid var(--sx-line); }
.gp-tag.on { background: rgba(52,211,153,.12); color: #a7f3d0; border-color: rgba(52,211,153,.3); }
.gp-chevron { color: var(--sx-faint); font-size: 1.4rem; }

/* Rijen met schakelaars */
.gp-row { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid var(--sx-line); }
.gp-row:first-of-type { border-top: 0; }
.gp-row-icon { width: 28px; text-align: center; font-size: 1.1rem; flex: none; }
.gp-row-main { flex: 1; min-width: 0; }
.gp-row-title { font-weight: 600; font-size: .95rem; }
.gp-row-sub { color: var(--sx-muted); font-size: .8rem; margin-top: 1px; }
.gp-row-sub.lock { color: var(--sx-amber); }
.gp-switch { position: relative; width: 50px; height: 30px; flex: none; }
.gp-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.gp-switch span { position: absolute; inset: 0; border-radius: 999px; background: #2a3448; border: 1px solid var(--sx-line-strong); transition: .18s; }
.gp-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #cbd5e1; transition: .18s; }
.gp-switch input:checked + span { background: var(--sx-accent); border-color: var(--sx-accent); }
.gp-switch input:checked + span::after { transform: translateX(20px); background: #fff; }
.gp-switch input:disabled { cursor: not-allowed; }
.gp-switch input:disabled + span { opacity: .45; }

/* Gamekeuze */
.gp-games { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.gp-game { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; border: 1px solid var(--sx-line-strong);
  background: var(--sx-surface-2); cursor: pointer; font-weight: 600; font-size: .92rem; }
.gp-game input { position: absolute; opacity: 0; }
.gp-game .gp-emoji { font-size: 1.25rem; }
.gp-game .gp-check { margin-left: auto; width: 20px; height: 20px; border-radius: 6px; border: 1px solid var(--sx-line-strong); display: grid; place-items: center; font-size: .75rem; }
.gp-game.on { border-color: rgba(34,211,238,.55); background: rgba(34,211,238,.09); }
.gp-game.on .gp-check { background: var(--sx-accent); border-color: var(--sx-accent); color: var(--sx-accent-ink); }
.gp-game.off-all { opacity: .5; }

/* Tijd en limieten */
.gp-seg { display: flex; gap: 6px; padding: 4px; border-radius: 12px; background: #0c111b; border: 1px solid var(--sx-line-strong); margin-top: 10px; }
.gp-seg button { flex: 1; height: 38px; border: 0; border-radius: 9px; background: transparent; color: var(--sx-muted); font-weight: 600; cursor: pointer; font-variant-numeric: tabular-nums; }
.gp-seg button.on { background: var(--sx-accent); color: var(--sx-accent-ink); }
.gp-seg button:disabled { opacity: .5; }
.gp-stepper { display: flex; align-items: center; gap: 8px; }
.gp-stepper button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--sx-line-strong); background: var(--sx-surface-2); font-size: 1.15rem; cursor: pointer; }
.gp-stepper output { min-width: 74px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; font-size: .92rem; }
.gp-meter { height: 6px; border-radius: 99px; background: #0c111b; overflow: hidden; margin-top: 6px; }
.gp-meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--sx-accent), var(--sx-violet)); }
.gp-note { color: var(--sx-faint); font-size: .78rem; margin-top: 10px; }

/* Opslaan */
.gp-savebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(10,14,22,.92); backdrop-filter: blur(14px); border-top: 1px solid var(--sx-line-strong); display: none; }
.gp-savebar.show { display: block; animation: gp-up .18s ease-out; }
@keyframes gp-up { from { transform: translateY(100%); } to { transform: none; } }
.gp-savebar-inner { max-width: 560px; margin: 0 auto; display: flex; gap: 10px; align-items: center; }
.gp-savebar-text { flex: 1; font-size: .86rem; color: var(--sx-muted); }
.gp-savebar-text b { color: var(--sx-text); display: block; font-size: .95rem; }
.gp-savebar .gp-btn { width: auto; padding: 0 20px; margin: 0; height: 46px; }
.gp-toast { position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 20; background: var(--sx-surface-3);
  border: 1px solid var(--sx-line-strong); padding: 10px 16px; border-radius: 12px; font-size: .9rem; box-shadow: var(--sx-shadow); max-width: 90vw; }
.gp-foot { color: var(--sx-faint); font-size: .78rem; text-align: center; margin: 22px 0 8px; }
.gp-empty { text-align: center; color: var(--sx-muted); padding: 26px 8px; }

/* Pakket E: Discord-servers */
.gp-badge-discord { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 2px 8px; border-radius: 999px; font-size: .68rem; font-weight: 800; letter-spacing: .02em; background: rgba(88,101,242,.18); color: #c7cdff; border: 1px solid rgba(88,101,242,.4); }
.gp-group.is-discord .gp-avatar { background: linear-gradient(135deg, #5865f2, #3b44c4); color: #fff; }
.gp-eyebrow-discord { margin-top: 22px; color: #a5b4fc; }
.gp-hint-discord { margin-top: 10px; background: rgba(88,101,242,.12); border-color: rgba(88,101,242,.35); }
.gp-select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #94a3b8 50%), linear-gradient(135deg, #94a3b8 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.gp-tag.gp-tag-discord { background: rgba(88,101,242,.18); color: #c7cdff; border-color: rgba(88,101,242,.4); }
