/* Redline – liquid glass UI */
:root {
  --bg: #06080c;
  --ink: #eef3f8;
  --sub: #9aa7b8;
  --mute: #66717f;
  --red: #ff3b47;
  --cyan: #46dce8;
  --good: #3ddc84;
  --warn: #ffb020;
  --bad: #ff5a5f;
  --glass: rgba(255, 255, 255, 0.075);
  --glass-2: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.16);
  --line-2: rgba(255, 255, 255, 0.28);
  --r: 22px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  font-family: Inter, "Inter Display", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background:
    radial-gradient(1200px 700px at 12% -10%, rgba(70, 220, 232, 0.22), transparent 60%),
    radial-gradient(900px 600px at 105% 10%, rgba(255, 59, 71, 0.20), transparent 60%),
    radial-gradient(800px 600px at 50% 120%, rgba(120, 90, 255, 0.14), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.photo::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background: url("/brand/hero.jpg") center/cover no-repeat;
  filter: saturate(1.1) brightness(0.45) blur(2px);
  transform: scale(1.03);
}
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: "Inter Display", Inter, sans-serif; letter-spacing: -0.02em; margin: 0 0 0.4em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* glass surfaces */
.glass {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04) 45%, rgba(255, 255, 255, 0.08));
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  backdrop-filter: blur(26px) saturate(170%);
  -webkit-backdrop-filter: blur(26px) saturate(170%);
}
.glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 38%);
  mask: linear-gradient(#000, transparent 60%);
}
.pad { padding: 22px 24px; }

/* top bar */
.nav { position: sticky; top: 14px; z-index: 20; margin: 14px auto 0; display: flex; align-items: center; gap: 18px; padding: 10px 14px 10px 18px; border-radius: 999px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0.02em; color: var(--ink); }
.logo img { width: 30px; height: 30px; border-radius: 9px; }
.nav .spacer { flex: 1; }
.nav a.item { color: var(--sub); font-weight: 600; font-size: 14px; }
.nav a.item:hover { color: var(--ink); text-decoration: none; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); color: var(--ink);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06));
  padding: 10px 16px; border-radius: 14px; font-weight: 650; font-size: 14px; cursor: pointer;
  transition: transform 0.12s ease, background 0.2s ease, border-color 0.2s ease; font-family: inherit;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(255, 255, 255, 0.45); text-decoration: none; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn.red { background: linear-gradient(180deg, #ff5a63, #d81f2c); border-color: rgba(255, 140, 145, 0.7); box-shadow: 0 8px 28px rgba(255, 59, 71, 0.35); }
.btn.cyan { background: linear-gradient(180deg, #6eeaf3, #1fb6c4); color: #032227; border-color: rgba(190, 250, 255, 0.8); box-shadow: 0 8px 28px rgba(70, 220, 232, 0.3); }
.btn.ghost { background: transparent; }
.btn.small { padding: 6px 10px; font-size: 13px; border-radius: 10px; }
.btn.danger { border-color: rgba(255, 90, 95, 0.6); color: #ffd6d8; }

/* hero */
.hero { padding: 90px 0 40px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 74px); line-height: 1.02; font-weight: 850; }
.hero h1 .r { background: linear-gradient(90deg, var(--red), #ff9a5a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { color: var(--sub); font-size: 18px; max-width: 560px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.counters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.counter { padding: 18px; text-align: left; }
.counter .v { font-size: 38px; font-weight: 850; letter-spacing: -0.03em; }
.counter .k { color: var(--sub); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--good); box-shadow: 0 0 12px var(--good); margin-right: 6px; animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { opacity: 0.4; } }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature h3 { font-size: 18px; }
.feature p { color: var(--sub); margin: 0; font-size: 15px; }
.feature .ico { font-size: 26px; margin-bottom: 8px; }
section { margin: 46px 0; }
.section-title { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.section-title .tag { color: var(--cyan); font-weight: 700; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }

/* tables / lists */
.list { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); }
.row .grow { flex: 1; min-width: 0; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(255, 255, 255, 0.09); border: 1px solid rgba(255, 255, 255, 0.14); color: var(--sub); }
.pill.good { color: #bff5d6; border-color: rgba(61, 220, 132, 0.45); background: rgba(61, 220, 132, 0.12); }
.pill.warn { color: #ffe2a8; border-color: rgba(255, 176, 32, 0.45); background: rgba(255, 176, 32, 0.12); }
.pill.bad { color: #ffd0d2; border-color: rgba(255, 90, 95, 0.45); background: rgba(255, 90, 95, 0.12); }
.muted { color: var(--sub); }
.tiny { font-size: 12px; color: var(--mute); }
.mono { font-family: ui-monospace, "JetBrains Mono", Consolas, monospace; font-size: 12.5px; }
.avatar { width: 34px; height: 34px; border-radius: 10px; background: #1b2130; object-fit: cover; }

/* inputs */
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: rgba(0, 0, 0, 0.28); border: 1px solid var(--line);
  padding: 10px 12px; border-radius: 12px; outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(70, 220, 232, 0.15); }
label { display: block; font-size: 13px; color: var(--sub); font-weight: 600; margin: 10px 0 6px; }
.form-row { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.form-row > * { flex: 1; min-width: 160px; }

/* dashboard layout */
.app { display: grid; grid-template-columns: 250px 1fr; gap: 18px; padding: 18px; min-height: 100vh; }
.side { position: sticky; top: 18px; height: calc(100vh - 36px); display: flex; flex-direction: column; padding: 16px; }
.side .me { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 14px; background: rgba(255, 255, 255, 0.06); margin-top: auto; }
.tabs { display: flex; flex-direction: column; gap: 4px; margin-top: 18px; }
.tab { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; color: var(--sub); font-weight: 600; cursor: pointer; border: 1px solid transparent; background: none; font: inherit; text-align: left; }
.tab:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }
.tab.on { color: var(--ink); background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05)); border-color: var(--line); }
.tab[hidden] { display: none; }
.main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi .v { font-size: 30px; font-weight: 850; letter-spacing: -0.02em; }
.kpi .k { color: var(--sub); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }
.server { padding: 16px; }
.server .head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.server .players { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pchip { display: flex; align-items: center; gap: 8px; padding: 5px 10px 5px 5px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); font-size: 13px; }
.pchip img { width: 26px; height: 26px; border-radius: 8px; }
.empty { text-align: center; padding: 40px; color: var(--sub); }

/* modal + toast */
.veil { position: fixed; inset: 0; background: rgba(3, 5, 8, 0.6); backdrop-filter: blur(6px); display: grid; place-items: center; z-index: 50; }
.veil[hidden] { display: none; }
.modal { width: min(460px, 92vw); padding: 26px; }
.code-input { font-size: 30px; letter-spacing: 0.4em; text-align: center; font-weight: 800; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 60; padding: 14px 18px; max-width: 420px; transform: translateY(20px); opacity: 0; transition: 0.25s; }
.toast.show { transform: none; opacity: 1; }

/* verify */
.center { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.vcard { width: min(520px, 94vw); padding: 34px; text-align: center; }
.steps { display: flex; justify-content: center; gap: 8px; margin: 18px 0 26px; }
.step { width: 36px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.15); }
.step.on { background: linear-gradient(90deg, var(--cyan), #8ff3fa); box-shadow: 0 0 14px rgba(70, 220, 232, 0.6); }
.ring { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; font-size: 34px; background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.05)); border: 1px solid var(--line-2); }
.progress { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.1); overflow: hidden; margin: 18px 0; }
.progress > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), var(--red)); transition: width 0.2s; }
.hp { position: absolute; left: -9999px; }

svg.spark { width: 100%; height: 120px; display: block; }
footer { color: var(--mute); font-size: 13px; padding: 40px 0 60px; text-align: center; }

@media (max-width: 900px) {
  .hero, .grid3, .grid2 { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .app { grid-template-columns: 1fr; }
  .side { position: static; height: auto; }
  .nav .item { display: none; }
}
