:root{
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:#eef8f8;
  background:#07171c;
  line-height:1.45;
  --glass:rgba(5,29,36,.44);
  --glass-strong:rgba(5,32,39,.64);
  --glass-soft:rgba(255,255,255,.075);
  --line:rgba(255,255,255,.18);
  --line-strong:rgba(255,255,255,.26);
  --text:#eef8f8;
  --muted:#a8bec1;
  --accent:#69e8e6;
  --accent2:#7fb9ff;
  --ok:#62d9a0;
  --warn:#efc466;
  --bad:#ff8a8a;
}
*{box-sizing:border-box}
html,body{min-height:100%}
body{
  margin:0;
  min-height:100vh;
  color:var(--text);
  background:
    radial-gradient(circle at 16% 12%,rgba(45,114,124,.22),transparent 28%),
    radial-gradient(circle at 86% 10%,rgba(56,89,135,.18),transparent 32%),
    linear-gradient(145deg,#081c22 0%,#061318 56%,#07171c 100%);
}
body.auth-page{
  background:
    linear-gradient(180deg,rgba(3,18,23,.42),rgba(3,17,22,.68)),
    url('/backgrounds/zenex-front.png') center center/cover fixed no-repeat;
}
body.auth-page::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background:radial-gradient(circle at 50% 28%,rgba(73,170,174,.10),transparent 40%);
}
a{color:inherit}
.topbar{
  min-height:70px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
  margin:16px auto 0;
  padding:0 20px;
  width:min(calc(100% - 32px),1180px);
  border:1.5px solid var(--line);
  border-radius:17px;
  background:rgba(5,32,39,.34);
  -webkit-backdrop-filter:blur(18px) saturate(120%);
  backdrop-filter:blur(18px) saturate(120%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 16px 40px rgba(0,0,0,.13);
  position:sticky;
  top:12px;
  z-index:5;
}
.auth-page .topbar{
  background:rgba(5,32,39,.28);
}
.brand{
  font-size:20px;
  font-weight:800;
  text-decoration:none;
  color:#fff;
  letter-spacing:-.02em;
}
.brand span{font-weight:500;color:#b7d0d2}
.topuser{display:flex;gap:18px;align-items:center;font-size:14px;color:#dcebec}
.page{max-width:1180px;margin:0 auto;padding:44px 28px 70px;position:relative;z-index:1}
footer{text-align:center;color:#789094;font-size:13px;padding:26px}
.auth-page footer{color:rgba(255,255,255,.68)}

.hero{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:28px}
.hero h1,.authcard h1{margin:6px 0 8px;font-size:34px;letter-spacing:-.035em;color:#fff}
.eyebrow{text-transform:uppercase;font-size:12px;font-weight:800;letter-spacing:.12em;color:#76dcda}
.muted{color:var(--muted);margin-top:4px}
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.two{display:grid;grid-template-columns:1.25fr .75fr;gap:18px}

.card,.authcard,.actioncard,.tablewrap{
  border:1.5px solid var(--line);
  background:transparent;
  -webkit-backdrop-filter:blur(18px) saturate(118%);
  backdrop-filter:blur(18px) saturate(118%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 18px 45px rgba(0,0,0,.13);
}
.card,.actioncard,.tablewrap{border-radius:18px}
.card{padding:24px}
.cardhead{display:flex;align-items:center;justify-content:space-between}
.card h2{font-size:16px;margin:0;color:#f5fbfb}
.bigstatus{font-size:24px;font-weight:760;margin-top:24px;letter-spacing:-.02em;color:#fff}
.dot{width:10px;height:10px;border-radius:50%;background:#7d8b93;box-shadow:0 0 14px rgba(255,255,255,.12)}
.dot.ok{background:var(--ok);box-shadow:0 0 14px rgba(98,217,160,.4)}
.dot.pending{background:var(--warn);box-shadow:0 0 14px rgba(239,196,102,.28)}
.dot.bad{background:var(--bad);box-shadow:0 0 14px rgba(255,138,138,.3)}
.sectiontitle{font-size:18px;margin:34px 0 14px;color:#eef8f8}
.pill{display:inline-flex;align-items:center;border-radius:999px;padding:7px 11px;font-size:12px;font-weight:750;border:1px solid var(--line);background:rgba(255,255,255,.07);color:#c6d6d8}
.pill.ok{background:rgba(34,146,96,.20);color:#91ecc0;border-color:rgba(98,217,160,.26)}
.pill.bad{background:rgba(178,56,56,.18);color:#ffb1b1;border-color:rgba(255,138,138,.24)}
.adminlinks{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}
.actioncard{display:flex;flex-direction:column;gap:6px;padding:21px;text-decoration:none;color:#eef8f8;transition:.18s ease}
.actioncard span{color:#a8bec1;font-size:14px}
.actioncard:hover{border-color:rgba(105,232,230,.46);transform:translateY(-1px);background:transparent}

.authcard{
  max-width:470px;
  margin:64px auto;
  padding:34px;
  border-radius:20px;
  background:rgba(4,28,35,.47);
}
.auth-page .authcard{
  background:rgba(4,28,35,.48);
  border-color:rgba(255,255,255,.24);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.09),0 24px 70px rgba(0,0,0,.28);
  -webkit-backdrop-filter:blur(20px) saturate(118%);
  backdrop-filter:blur(20px) saturate(118%);
}
.authcard.wide{max-width:760px}
.form{display:flex;flex-direction:column;gap:16px;margin-top:24px}
.form label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:700;color:#c8dadd}
.form input,.form select{
  width:100%;
  padding:12px 13px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:11px;
  background:rgba(255,255,255,.08);
  color:#fff;
  font:inherit;
  outline:none;
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
}
.form select option{color:#172033;background:#fff}
.form input::placeholder{color:#8fa5a9}
.form input:focus,.form select:focus{border-color:rgba(105,232,230,.72);box-shadow:0 0 0 3px rgba(105,232,230,.11);background:rgba(255,255,255,.11)}

button,.buttonlike{font:inherit}
.primary,.secondary{
  border-radius:12px;
  padding:12px 16px;
  font-weight:760;
  cursor:pointer;
  text-decoration:none;
  display:inline-flex;
  justify-content:center;
  align-items:center;
  transition:.16s ease;
}
.primary{
  border:1px solid rgba(117,242,239,.55);
  background:linear-gradient(145deg,rgba(52,157,159,.78),rgba(26,112,119,.82));
  color:#fff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 8px 20px rgba(0,0,0,.12);
}
.primary:hover{filter:brightness(1.08);transform:translateY(-1px)}
.secondary{
  background:rgba(255,255,255,.08);
  color:#eaf5f5;
  border:1px solid rgba(255,255,255,.18);
}
.secondary:hover{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.28)}
.linkbtn{border:0;background:none;color:#9ededd;padding:0;cursor:pointer}
.alert{margin-top:18px;padding:12px 14px;border-radius:11px;background:rgba(153,36,36,.24);color:#ffd0d0;border:1px solid rgba(255,138,138,.28)}
.codebox{padding:16px;border-radius:12px;background:rgba(255,255,255,.07);border:1px solid var(--line);font-family:ui-monospace,monospace;overflow-wrap:anywhere;margin:20px 0;color:#dff4f4}
.tablewrap{overflow:auto}
.tablewrap table{width:100%;border-collapse:collapse}
.tablewrap th,.tablewrap td{text-align:left;padding:14px 16px;border-bottom:1px solid rgba(255,255,255,.09);font-size:13px}
.tablewrap th{font-size:11px;text-transform:uppercase;letter-spacing:.07em;color:#91aaad;background:rgba(255,255,255,.035)}
.tablewrap tr:last-child td{border-bottom:0}
small{color:#8fa7aa}

@media(max-width:760px){
  .topbar{width:calc(100% - 20px);margin-top:10px;padding:0 15px;min-height:62px}
  .page{padding:30px 16px 50px}
  .grid,.two,.adminlinks{grid-template-columns:1fr}
  .hero{flex-direction:column}
  .hero h1,.authcard h1{font-size:28px}
  .authcard{margin:34px auto;padding:25px}
  .topuser>span{display:none}
  body.auth-page{background-attachment:scroll}
}

.oauth-actions{display:flex;gap:12px;margin-top:24px}.oauth-actions form{margin:0}
@media(max-width:520px){.oauth-actions{flex-direction:column}.oauth-actions form button{width:100%}}
