/* Skid Client website: the click GUI's look (dark maroon glass, coral accent, Inter). */
:root {
  --bg: #0a0607;
  --panel: rgba(23, 15, 18, 0.86);
  --panel-solid: #170f12;
  --glass: rgba(38, 24, 29, 0.72);
  --surface: #1f1518;
  --surface-2: #191114;
  --surface-hover: rgba(255, 255, 255, 0.055);
  --outline: rgba(255, 225, 228, 0.07);
  --outline-2: rgba(255, 225, 228, 0.12);
  --text: #f0e4e6;
  --text-2: #ded0d3;
  --muted: #a08e92;
  --ghost: #706064;
  --accent: #ff6b6b;
  --accent-2: #ff9a8b;
  --accent-soft: rgba(255, 107, 107, 0.16);
  --accent-glow: rgba(255, 107, 107, 0.35);
  --green: #4be39a;
  --amber: #ffb547;
  --red: #ff5c5c;
  --radius: 18px;
  --radius-s: 12px;
  --gradient: linear-gradient(135deg, var(--accent), var(--accent-2));
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  /* the soft red glows behind the glass, like the menu backdrop */
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(255, 107, 107, 0.16), transparent 60%),
    radial-gradient(700px 520px at 100% 20%, rgba(255, 154, 139, 0.09), transparent 60%),
    radial-gradient(800px 600px at 50% 120%, rgba(196, 0, 29, 0.12), transparent 60%),
    var(--bg);
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--accent-soft); }

/* ---- top bar ---------------------------------------------------------------------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  background: rgba(10, 6, 7, 0.62);
  border-bottom: 1px solid var(--outline);
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.logo-badge {
  /* the client's HUD logo: a dark disc with an accent ring and glow */
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 35%, #2a191e, #110b0d 70%);
  box-shadow: 0 0 0 1.5px var(--accent), 0 0 18px var(--accent-glow);
  flex: none;
}
.logo-badge img { width: 70%; height: auto; image-rendering: pixelated; }
.logo-badge.big { width: 96px; height: 96px; box-shadow: 0 0 0 2.5px var(--accent), 0 0 48px var(--accent-glow); }
.nav { display: flex; gap: 6px; margin: 0 auto; }
.nav a {
  padding: 8px 14px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 500;
  transition: color .15s, background .15s;
}
.nav a:hover, .nav a.active { color: var(--text); background: var(--surface-hover); }

/* ---- buttons ------------------------------------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: transform .12s, box-shadow .2s, background .2s, opacity .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--gradient); color: #1a0c0f; box-shadow: 0 8px 24px -8px var(--accent-glow); }
.btn-primary:hover { box-shadow: 0 10px 30px -6px var(--accent-glow); }
.btn-ghost { background: var(--surface); border-color: var(--outline-2); color: var(--text); }
.btn-ghost:hover { background: #281b1f; }
.btn-discord { background: #5865f2; color: #fff; box-shadow: 0 8px 24px -10px rgba(88, 101, 242, .7); }
.btn-discord:hover { background: #6772f4; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-small { padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }

/* ---- glass panels (click GUI window) ------------------------------------------------------------------------ */
.panel {
  background: var(--panel);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.panel-pad { padding: 24px 28px; }
.window-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--outline); }
.traffic { width: 11px; height: 11px; border-radius: 50%; }
.traffic.close { background: #ff5f57; }
.traffic.min { background: #febc2e; }
.traffic.max { background: #28c840; }
.window-title { margin-left: 10px; color: var(--muted); font-size: 13px; font-weight: 500; }

.card {
  background: var(--surface-2);
  border: 1px solid var(--outline);
  border-radius: 14px;
  padding: 18px;
  transition: border-color .15s, background .15s;
}
.card:hover { border-color: var(--outline-2); background: #1d1417; }
.icon-chip {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--outline-2);
  color: var(--text-2);
  flex: none;
}
.icon-chip svg, .side-link svg, .btn svg { width: 18px; height: 18px; }
.icon-chip.accent { background: var(--accent-soft); color: var(--accent); border-color: rgba(255, 107, 107, .25); }
.icon-chip.danger { background: rgba(255, 92, 92, .12); color: var(--red); border-color: rgba(255, 92, 92, .25); }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
h2 { font-size: 22px; }
h3 { font-size: 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ghost); font-weight: 600; }

/* ---- landing -------------------------------------------------------------------------------------------- */
.hero { max-width: 1200px; margin: 0 auto; padding: 90px 24px 60px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.04; font-weight: 800; }
.hero h1 .grad { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); font-size: 18px; max-width: 520px; margin: 20px 0 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 107, 107, .3);
  background: var(--accent-soft);
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 22px;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.mock { overflow: hidden; }
.mock-body { display: grid; grid-template-columns: 150px 1fr; min-height: 300px; }
.mock-side { border-right: 1px solid var(--outline); padding: 14px 10px; display: flex; flex-direction: column; gap: 4px; }
.mock-tab { padding: 8px 10px; border-radius: 9px; color: var(--muted); font-size: 13px; font-weight: 500; }
.mock-tab.on { background: var(--accent-soft); color: var(--text); box-shadow: inset 2px 0 0 var(--accent); }
.mock-main { padding: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
.mock-card { background: var(--surface-2); border: 1px solid var(--outline); border-radius: 12px; padding: 12px; }
.mock-card .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mock-card b { font-size: 13px; }
.mock-card p { margin: 6px 0 0; color: var(--ghost); font-size: 11.5px; line-height: 1.35; }
.section { max-width: 1200px; margin: 0 auto; padding: 40px 24px 80px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--outline-2);
  background: var(--surface-2);
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}
.chip.on { background: var(--accent-soft); border-color: rgba(255, 107, 107, .35); color: var(--text); }
.module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.module { display: flex; flex-direction: column; gap: 6px; }
.module-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.module-name { font-weight: 600; }
.module-desc { color: var(--muted); font-size: 13px; }
.tag { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--outline-2); color: var(--muted); }

/* the click GUI's toggle */
.toggle { width: 36px; height: 20px; border-radius: 999px; background: rgba(255, 235, 238, .1); position: relative; flex: none; transition: background .2s; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.toggle.on { background: var(--gradient); }
.toggle.on::after { transform: translateX(16px); }

/* ---- footer ------------------------------------------------------------------------------------------- */
.footer { border-top: 1px solid var(--outline); margin-top: 40px; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 36px 24px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.footer a:hover { color: var(--text); }

/* ---- login ---------------------------------------------------------------------------------------------- */
.center-screen { min-height: calc(100vh - 70px); display: grid; place-items: center; padding: 24px; }
.login-card { width: min(460px, 100%); text-align: center; overflow: hidden; }
.login-card .panel-pad { padding: 40px 36px 36px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.login-card h1 { font-size: 30px; margin-top: 8px; }
.discord-badge { width: 76px; height: 76px; border-radius: 20px; background: #5865f2; display: grid; place-items: center; box-shadow: 0 16px 40px -14px rgba(88, 101, 242, .8); }
.discord-badge svg { width: 42px; height: 42px; }
.notice { width: 100%; padding: 12px 14px; border-radius: 12px; font-size: 14px; text-align: left; }
.notice.error { background: rgba(255, 92, 92, .1); border: 1px solid rgba(255, 92, 92, .25); color: #ffb3b3; }
.notice.ok { background: rgba(75, 227, 154, .1); border: 1px solid rgba(75, 227, 154, .25); color: #a7f3cf; }
.notice.info { background: var(--accent-soft); border: 1px solid rgba(255, 107, 107, .25); color: var(--text-2); }

/* ---- dashboard ---------------------------------------------------------------------------------------- */
.dash { max-width: 1200px; margin: 0 auto; padding: 28px 24px 60px; display: grid; grid-template-columns: 260px 1fr; gap: 22px; align-items: start; }
.sidebar { position: sticky; top: 92px; padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.side-group { padding: 12px 12px 6px; }
.side-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 11px;
  color: var(--muted);
  font-weight: 500;
  cursor: pointer;
  position: relative;
  transition: background .15s, color .15s;
}
.side-link:hover { background: var(--surface-hover); color: var(--text); }
.side-link.active { background: var(--accent-soft); color: var(--text); }
.side-link.active::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: var(--gradient); }
.side-link.active svg { color: var(--accent); }
.side-link .lock { margin-left: auto; width: 14px; height: 14px; color: var(--ghost); }
.side-link.locked { opacity: .55; }
.user-card { margin-top: 12px; padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--outline); display: flex; align-items: center; gap: 12px; }
.user-card img { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--outline-2); }
.user-card .who { min-width: 0; flex: 1; }
.user-card .who b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-card .who span { font-size: 12.5px; color: var(--muted); }
.icon-btn { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); border: 1px solid transparent; cursor: pointer; background: transparent; }
.icon-btn:hover { color: var(--text); background: var(--surface-hover); border-color: var(--outline); }
.icon-btn svg { width: 17px; height: 17px; }
.content { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.row { display: flex; align-items: center; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.launcher { text-align: center; padding: 20px 12px; }
.launcher .emoji { font-size: 30px; line-height: 1; }
.launcher b { display: block; margin-top: 10px; }
.kv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kv b { display: block; margin-top: 4px; }
.stat-badge { font-size: 12px; padding: 4px 10px; border-radius: 999px; font-weight: 700; }
.stat-badge.active { background: rgba(75, 227, 154, .12); color: var(--green); border: 1px solid rgba(75, 227, 154, .25); }
.stat-badge.paused { background: rgba(255, 181, 71, .12); color: var(--amber); border: 1px solid rgba(255, 181, 71, .25); }
.stat-badge.none, .stat-badge.expired, .stat-badge.revoked { background: rgba(255, 92, 92, .1); color: var(--red); border: 1px solid rgba(255, 92, 92, .25); }

.input, .textarea {
  width: 100%;
  background: #0d0809;
  border: 1px solid var(--outline-2);
  border-radius: 12px;
  padding: 13px 16px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, .textarea:focus { border-color: rgba(255, 107, 107, .5); box-shadow: 0 0 0 3px rgba(255, 107, 107, .12); }
.input.mono { font-family: "JetBrains Mono", ui-monospace, Consolas, monospace; letter-spacing: .06em; }
.textarea { min-height: 150px; resize: vertical; font-family: "JetBrains Mono", ui-monospace, Consolas, monospace; font-size: 13px; }
.textarea.prose { font-family: inherit; font-size: 15px; }

.changelog h3 { font-size: 18px; }
.changelog .group { margin-top: 16px; }
.changelog ul { margin: 8px 0 0; padding: 0; list-style: none; }
.changelog li { padding: 3px 0 3px 18px; position: relative; color: var(--text-2); }
.changelog li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--ghost); }
.changelog .added li::before { background: var(--green); }
.changelog .improved li::before { background: var(--accent); }
.changelog .fixed li::before { background: var(--amber); }

.segmented { display: inline-flex; padding: 4px; gap: 2px; background: var(--surface-2); border: 1px solid var(--outline); border-radius: 12px; }
.segmented button { border: 0; background: transparent; color: var(--muted); padding: 6px 14px; border-radius: 9px; cursor: pointer; font-weight: 600; font-size: 13px; }
.segmented button.on { background: var(--gradient); color: #1a0c0f; }
.suggestion { display: flex; gap: 14px; align-items: flex-start; }
.vote { width: 52px; flex: none; border-radius: 12px; border: 1px solid var(--outline-2); background: var(--surface); display: flex; flex-direction: column; align-items: center; padding: 8px 0; cursor: pointer; color: var(--muted); font-weight: 700; }
.vote:hover { border-color: rgba(255, 107, 107, .4); color: var(--text); }
.vote.on { background: var(--accent-soft); border-color: rgba(255, 107, 107, .45); color: var(--accent); }
.vote svg { width: 16px; height: 16px; }
.meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.status { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--outline-2); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.pager button { min-width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--outline); background: var(--surface-2); color: var(--muted); cursor: pointer; font-weight: 600; }
.pager button.on { background: var(--gradient); color: #1a0c0f; border-color: transparent; }
.stars { display: inline-flex; gap: 2px; color: var(--amber); }
.stars svg { width: 16px; height: 16px; }
.star-pick { display: inline-flex; gap: 4px; }
.star-pick button { border: 0; background: none; cursor: pointer; color: var(--ghost); padding: 2px; }
.star-pick button.on { color: var(--amber); }
.star-pick svg { width: 26px; height: 26px; }
.review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.review-head img { width: 34px; height: 34px; border-radius: 50%; }
.faq-item { padding: 0; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 700; font-size: 16px; cursor: pointer; }
.faq-q svg { width: 18px; height: 18px; color: var(--muted); transition: transform .2s; flex: none; }
.faq-item.open .faq-q svg { transform: rotate(45deg); color: var(--accent); }
.faq-a { display: none; padding: 0 20px 18px; color: var(--muted); }
.faq-item.open .faq-a { display: block; }
.locked-view { text-align: center; padding: 50px 28px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--outline-2); border-top-color: var(--accent); animation: spin .8s linear infinite; margin: 60px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 50; max-width: 360px; padding: 14px 16px; border-radius: 14px; background: var(--panel-solid); border: 1px solid var(--outline-2); box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .7); display: flex; gap: 10px; align-items: center; animation: toast .25s ease; }
.toast .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
.toast.error .dot { background: var(--red); }
@keyframes toast { from { opacity: 0; transform: translateY(8px); } }
.analysis { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.hidden { display: none !important; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 50px; }
  .dash { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .grid-3, .grid-4, .kv { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4, .kv, .mock-main { grid-template-columns: 1fr; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  .panel-pad { padding: 20px; }
  .topbar-inner { padding: 12px 16px; }
}
