:root{
  --bg:#070b14;
  --panel:rgba(255,255,255,.075);
  --panel-strong:rgba(255,255,255,.115);
  --border:rgba(255,255,255,.13);
  --text:#f1f6ff;
  --muted:#a5b1c5;
  --soft:#dbe8ff;
  --blue:#59a9ff;
  --green:#39df92;
  --purple:#9d77ff;
  --orange:#ff9e42;
  --red:#ff5570;
  --yellow:#ffd957;
  --cyan:#4ce6ff;
  --pink:#ff6fd8;
}

*{box-sizing:border-box}

body{
  margin:0;
  min-height:100vh;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:
    radial-gradient(circle at 12% -10%,rgba(89,169,255,.28),transparent 30rem),
    radial-gradient(circle at 92% 12%,rgba(157,119,255,.20),transparent 32rem),
    radial-gradient(circle at 72% 100%,rgba(57,223,146,.10),transparent 28rem),
    linear-gradient(135deg,#070b14,#10182b 52%,#060911);
  color:var(--text);
}

.noise{
  position:fixed;
  inset:0;
  opacity:.035;
  pointer-events:none;
  background-image:linear-gradient(90deg,#fff 1px,transparent 1px),linear-gradient(#fff 1px,transparent 1px);
  background-size:42px 42px;
  mask-image:linear-gradient(to bottom,#000,transparent 75%);
}

.glow{
  position:fixed;
  border-radius:50%;
  filter:blur(75px);
  opacity:.25;
  pointer-events:none;
}

.glow-a{width:20rem;height:20rem;right:8%;bottom:8%;background:var(--blue)}
.glow-b{width:16rem;height:16rem;left:5%;bottom:22%;background:var(--purple)}

.page{
  width:min(1180px,calc(100% - 32px));
  margin:0 auto;
  padding:28px 0 70px;
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-bottom:34px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  color:var(--text);
  text-decoration:none;
}

.brand-mark{
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  border-radius:18px;
  background:linear-gradient(135deg,var(--blue),var(--purple));
  box-shadow:0 18px 45px rgba(0,0,0,.35);
  font-weight:950;
}

.brand strong{display:block;font-size:1.05rem}
.brand small{display:block;color:var(--muted);font-size:.86rem;margin-top:2px}

.auth-panel{
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px;
  border:1px solid var(--border);
  border-radius:999px;
  background:rgba(255,255,255,.07);
  backdrop-filter:blur(16px);
}

.auth-panel span{
  color:var(--muted);
  max-width:260px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  padding-left:9px;
}

.small-btn{
  border:0;
  border-radius:999px;
  padding:10px 15px;
  color:white;
  cursor:pointer;
  font-weight:850;
}

.small-btn.primary{background:linear-gradient(135deg,#208eff,#705cff)}
.small-btn.ghost{background:rgba(255,255,255,.11);border:1px solid var(--border)}

.hero{
  display:grid;
  grid-template-columns:1fr auto;
  gap:24px;
  align-items:end;
  padding:34px;
  border:1px solid var(--border);
  border-radius:34px;
  background:
    linear-gradient(135deg,rgba(255,255,255,.12),rgba(255,255,255,.055)),
    radial-gradient(circle at 10% 10%,rgba(89,169,255,.15),transparent 32rem);
  box-shadow:0 28px 90px rgba(0,0,0,.34);
  backdrop-filter:blur(18px);
}

.eyebrow{
  margin:0 0 10px;
  color:#98cfff;
  letter-spacing:.2em;
  text-transform:uppercase;
  font-size:.78rem;
  font-weight:900;
}

h1{
  margin:0;
  font-size:clamp(2.35rem,5.5vw,4.7rem);
  line-height:.98;
  letter-spacing:-.065em;
}

.hero-content p:last-child{
  margin:16px 0 0;
  color:var(--muted);
  font-size:1.05rem;
}

.hero-stats{
  display:flex;
  gap:12px;
}

.hero-stats div{
  min-width:128px;
  padding:16px;
  border:1px solid var(--border);
  border-radius:24px;
  background:rgba(0,0,0,.16);
}

.hero-stats strong{
  display:block;
  font-size:2rem;
  line-height:1;
}

.hero-stats span{
  display:block;
  color:var(--muted);
  margin-top:6px;
  font-size:.88rem;
}

.section{margin-top:34px}

.section-heading{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:16px;
}

.section-kicker{
  margin:0 0 5px;
  color:#98cfff;
  text-transform:uppercase;
  letter-spacing:.14em;
  font-size:.75rem;
  font-weight:900;
}

.section-heading h2{
  margin:0;
  font-size:1.45rem;
}

.section-heading > p{
  margin:0;
  color:var(--muted);
}

.grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}

.hub-card{
  position:relative;
  overflow:hidden;
  min-height:214px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  border:1px solid var(--border);
  border-radius:30px;
  padding:22px;
  color:var(--text);
  text-decoration:none;
  background:
    linear-gradient(180deg,rgba(255,255,255,.10),rgba(255,255,255,.055));
  box-shadow:0 20px 65px rgba(0,0,0,.28);
  backdrop-filter:blur(14px);
  transition:transform .18s ease,border-color .18s ease,background .18s ease;
}

.hub-card:hover{
  transform:translateY(-5px);
  border-color:rgba(255,255,255,.25);
  background:
    linear-gradient(180deg,rgba(255,255,255,.14),rgba(255,255,255,.075));
}

.hub-card::before{
  content:"";
  position:absolute;
  width:190px;
  height:190px;
  right:-72px;
  bottom:-82px;
  border-radius:50%;
  opacity:.32;
  filter:blur(3px);
}

.hub-card::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(120deg,rgba(255,255,255,.08),transparent 34%);
  opacity:.7;
  pointer-events:none;
}

.hub-card.blue::before{background:var(--blue)}
.hub-card.green::before{background:var(--green)}
.hub-card.purple::before{background:var(--purple)}
.hub-card.orange::before{background:var(--orange)}
.hub-card.red::before{background:var(--red)}
.hub-card.yellow::before{background:var(--yellow)}
.hub-card.cyan::before{background:var(--cyan)}
.hub-card.pink::before{background:var(--pink)}

.icon{
  position:absolute;
  right:19px;
  top:18px;
  display:grid;
  place-items:center;
  width:46px;
  height:46px;
  border:1px solid rgba(255,255,255,.13);
  border-radius:17px;
  background:rgba(255,255,255,.08);
  font-size:1.2rem;
  z-index:2;
}

.card-main,.card-footer,.copy-row{position:relative;z-index:2}

.badge{
  display:inline-flex;
  padding:6px 10px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:999px;
  background:rgba(255,255,255,.09);
  color:#e4eeff;
  font-size:.76rem;
  font-weight:900;
}

.hub-card h3{
  margin:28px 0 8px;
  font-size:1.32rem;
  letter-spacing:-.025em;
}

.hub-card p{
  margin:0;
  color:var(--muted);
  line-height:1.5;
}

.card-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:24px;
  color:var(--soft);
  font-weight:800;
  font-size:.9rem;
}

.arrow{
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  border:1px solid rgba(255,255,255,.13);
  border-radius:999px;
  background:rgba(255,255,255,.08);
}

.copy-row{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:22px;
  padding:9px;
  border:1px solid rgba(255,255,255,.13);
  border-radius:18px;
  background:rgba(0,0,0,.18);
}

.copy-row code{
  flex:1;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  color:#e7f1ff;
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:.9rem;
}

.copy-btn{
  border:0;
  border-radius:13px;
  padding:9px 11px;
  color:white;
  background:rgba(255,255,255,.13);
  cursor:pointer;
  font-weight:850;
}

.copy-btn:hover{background:rgba(255,255,255,.20)}

.locked-box{
  display:flex;
  align-items:center;
  gap:16px;
  border:1px solid var(--border);
  border-radius:28px;
  padding:22px;
  background:
    linear-gradient(135deg,rgba(255,255,255,.09),rgba(255,255,255,.045));
  color:var(--muted);
  backdrop-filter:blur(14px);
}

.lock-icon{
  display:grid;
  place-items:center;
  width:50px;
  height:50px;
  border-radius:18px;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.13);
}

.locked-box h3{
  margin:0 0 4px;
  color:var(--text);
}

.locked-box p{margin:0}

.toast{
  position:fixed;
  left:50%;
  bottom:26px;
  transform:translateX(-50%);
  border:1px solid var(--border);
  border-radius:999px;
  background:rgba(0,0,0,.84);
  color:white;
  padding:12px 16px;
  box-shadow:0 20px 60px rgba(0,0,0,.4);
  z-index:50;
}

.hidden{display:none!important}

button:focus-visible,a:focus-visible{
  outline:3px solid rgba(89,169,255,.65);
  outline-offset:3px;
}

@media(max-width:920px){
  .hero{grid-template-columns:1fr}
  .hero-stats{display:none}
  .grid{grid-template-columns:1fr 1fr}
}

@media(max-width:640px){
  .page{width:min(100% - 22px,1180px);padding-top:18px}
  .topbar{align-items:stretch;flex-direction:column}
  .auth-panel{justify-content:space-between;border-radius:22px}
  .hero{padding:24px;border-radius:28px}
  .section-heading{align-items:start;flex-direction:column;gap:6px}
  .grid{grid-template-columns:1fr}
  .hub-card{min-height:198px}
}


.modal-backdrop{
  position:fixed;
  inset:0;
  z-index:80;
  display:grid;
  place-items:center;
  padding:22px;
  background:rgba(3,7,14,.72);
  backdrop-filter:blur(10px);
}

.modal-card{
  position:relative;
  width:min(430px,100%);
  border:1px solid var(--border);
  border-radius:28px;
  padding:26px;
  background:
    linear-gradient(180deg,rgba(255,255,255,.14),rgba(255,255,255,.08)),
    #11182a;
  box-shadow:0 28px 100px rgba(0,0,0,.55);
}

.modal-close{
  position:absolute;
  right:16px;
  top:14px;
  border:0;
  width:34px;
  height:34px;
  border-radius:999px;
  background:rgba(255,255,255,.10);
  color:white;
  cursor:pointer;
  font-size:1.35rem;
}

.modal-kicker{
  margin:0 0 6px;
  color:#98cfff;
  text-transform:uppercase;
  letter-spacing:.14em;
  font-size:.73rem;
  font-weight:900;
}

.modal-card h2{
  margin:0 0 18px;
  font-size:1.8rem;
  letter-spacing:-.04em;
}

.form{
  display:grid;
  gap:9px;
}

.form label{
  color:#dbe8ff;
  font-weight:800;
  font-size:.9rem;
}

.form input{
  width:100%;
  border:1px solid rgba(255,255,255,.15);
  border-radius:16px;
  padding:13px 14px;
  background:rgba(0,0,0,.20);
  color:white;
  outline:none;
  font:inherit;
}

.form input:focus{
  border-color:rgba(89,169,255,.70);
  box-shadow:0 0 0 3px rgba(89,169,255,.18);
}

.modal-submit{
  margin-top:8px;
  border:0;
  border-radius:16px;
  padding:13px 14px;
  background:linear-gradient(135deg,#208eff,#705cff);
  color:white;
  cursor:pointer;
  font-weight:900;
}

.modal-submit.secondary{
  background:rgba(255,255,255,.13);
  border:1px solid rgba(255,255,255,.13);
}

.text-btn{
  margin-top:14px;
  border:0;
  background:transparent;
  color:#98cfff;
  cursor:pointer;
  font-weight:800;
}

.modal-message{
  min-height:20px;
  margin:14px 0 0;
  color:var(--muted);
}

.hint{
  margin:14px 0 0;
  color:var(--muted);
  font-size:.9rem;
  line-height:1.45;
}

.mini-form{
  padding-top:14px;
  margin-top:14px;
  border-top:1px solid rgba(255,255,255,.12);
}


.status-preview{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-top:16px;
  padding:18px 20px;
  border:1px solid var(--border);
  border-radius:26px;
  background:
    linear-gradient(135deg,rgba(255,255,255,.09),rgba(255,255,255,.045));
  backdrop-filter:blur(14px);
  box-shadow:0 18px 55px rgba(0,0,0,.22);
}

.status-preview-main{
  display:flex;
  align-items:center;
  gap:13px;
}

.status-preview-main strong{
  display:block;
  font-size:1rem;
}

.status-preview-main p{
  margin:3px 0 0;
  color:var(--muted);
}

.status-dot{
  width:14px;
  height:14px;
  border-radius:999px;
  background:#8b95a7;
  box-shadow:0 0 0 6px rgba(139,149,167,.12);
  flex:0 0 auto;
}

.status-dot.online{
  background:#39df92;
  box-shadow:0 0 0 6px rgba(57,223,146,.13),0 0 24px rgba(57,223,146,.55);
}

.status-dot.warning{
  background:#ffd957;
  box-shadow:0 0 0 6px rgba(255,217,87,.14),0 0 24px rgba(255,217,87,.48);
}

.status-dot.offline{
  background:#ff5570;
  box-shadow:0 0 0 6px rgba(255,85,112,.14),0 0 24px rgba(255,85,112,.48);
}

.status-dot.loading{
  animation:pulse 1.3s infinite ease-in-out;
}

.status-link{
  color:#dcecff;
  text-decoration:none;
  font-weight:850;
  padding:10px 13px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:999px;
  background:rgba(255,255,255,.08);
  white-space:nowrap;
}

.status-link:hover{
  background:rgba(255,255,255,.14);
}

@keyframes pulse{
  0%,100%{opacity:.45;transform:scale(.9)}
  50%{opacity:1;transform:scale(1.08)}
}

@media(max-width:640px){
  .status-preview{
    align-items:flex-start;
    flex-direction:column;
  }
}


.card-status{
  position:absolute;
  left:22px;
  top:22px;
  z-index:4;
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:6px 9px;
  border:1px solid rgba(255,255,255,.15);
  border-radius:999px;
  background:rgba(0,0,0,.24);
  color:#dbe8ff;
  font-size:.74rem;
  font-weight:900;
  backdrop-filter:blur(10px);
}

.card-status::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:999px;
  background:#8b95a7;
  box-shadow:0 0 0 4px rgba(139,149,167,.12);
}

.card-status.online::before{
  background:#39df92;
  box-shadow:0 0 0 4px rgba(57,223,146,.13),0 0 14px rgba(57,223,146,.55);
}

.card-status.warning::before{
  background:#ffd957;
  box-shadow:0 0 0 4px rgba(255,217,87,.14),0 0 14px rgba(255,217,87,.50);
}

.card-status.offline::before{
  background:#ff5570;
  box-shadow:0 0 0 4px rgba(255,85,112,.14),0 0 14px rgba(255,85,112,.50);
}

.hub-card.has-card-status .badge{
  margin-top:36px;
}


.status-checked{
  display:block;
  margin-top:4px;
  color:rgba(219,232,255,.58);
  font-size:.82rem;
}

.card-status{
  background:rgba(10,16,28,.42);
  color:rgba(235,244,255,.88);
  border-color:rgba(255,255,255,.11);
}

.card-status.online{
  background:rgba(57,223,146,.095);
  color:#dfffee;
  border-color:rgba(57,223,146,.20);
}

.card-status.warning{
  background:rgba(255,217,87,.105);
  color:#fff4c4;
  border-color:rgba(255,217,87,.22);
}

.card-status.offline{
  background:rgba(255,85,112,.105);
  color:#ffdbe2;
  border-color:rgba(255,85,112,.22);
}

.card-status.private{
  background:rgba(157,119,255,.12);
  color:#eee8ff;
  border-color:rgba(157,119,255,.24);
}

.card-status.private::before{
  background:#9d77ff;
  box-shadow:0 0 0 4px rgba(157,119,255,.13),0 0 14px rgba(157,119,255,.46);
}


.card-status.loading::before{
  background:#8b95a7;
  animation:pulse 1.3s infinite ease-in-out;
}

.hub-card.has-card-status .icon{
  top:20px;
}

.hub-card.has-card-status .card-main{
  padding-top:42px;
}

.hub-card.has-card-status .badge{
  margin-top:0;
}


/* V18 status badge sync fix */
.card-status{
  position:absolute;
  left:22px;
  top:20px;
  z-index:6;
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:6px 10px;
  border:1px solid rgba(255,255,255,.13);
  border-radius:999px;
  background:rgba(10,16,28,.48);
  color:rgba(235,244,255,.9);
  font-size:.74rem;
  font-weight:900;
  line-height:1;
  backdrop-filter:blur(10px);
}

.card-status::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:999px;
  background:#8b95a7;
  box-shadow:0 0 0 4px rgba(139,149,167,.12);
}

.card-status.loading::before{
  background:#8b95a7;
  animation:pulse 1.3s infinite ease-in-out;
}

.card-status.online{
  color:#dfffee;
  background:rgba(57,223,146,.105);
  border-color:rgba(57,223,146,.22);
}

.card-status.online::before{
  background:#39df92;
  box-shadow:0 0 0 4px rgba(57,223,146,.13),0 0 14px rgba(57,223,146,.55);
}

.card-status.warning{
  color:#fff4c4;
  background:rgba(255,217,87,.115);
  border-color:rgba(255,217,87,.24);
}

.card-status.warning::before{
  background:#ffd957;
  box-shadow:0 0 0 4px rgba(255,217,87,.14),0 0 14px rgba(255,217,87,.50);
}

.card-status.offline{
  color:#ffdbe2;
  background:rgba(255,85,112,.115);
  border-color:rgba(255,85,112,.24);
}

.card-status.offline::before{
  background:#ff5570;
  box-shadow:0 0 0 4px rgba(255,85,112,.14),0 0 14px rgba(255,85,112,.50);
}

.card-status.private{
  color:#eee8ff;
  background:rgba(157,119,255,.13);
  border-color:rgba(157,119,255,.25);
}

.card-status.private::before{
  background:#9d77ff;
  box-shadow:0 0 0 4px rgba(157,119,255,.13),0 0 14px rgba(157,119,255,.46);
}

.hub-card.has-card-status .card-main{
  padding-top:42px;
}

.hub-card.has-card-status .badge{
  margin-top:0!important;
}

.status-checked{
  display:block;
  margin-top:4px;
  color:rgba(219,232,255,.66);
  font-size:.82rem;
}


.status-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.status-button{
  font:inherit;
  cursor:pointer;
}

@media(max-width:640px){
  .status-actions{
    width:100%;
  }
  .status-actions .status-link{
    flex:1;
    text-align:center;
  }
}


.site-footer{
  display:flex;
  justify-content:center;
  gap:14px;
  margin-top:46px;
  padding-top:22px;
  border-top:1px solid rgba(255,255,255,.10);
}

.site-footer a{
  color:var(--muted);
  text-decoration:none;
  font-size:.9rem;
  font-weight:750;
  transition:color .18s ease;
}

.site-footer a:hover{
  color:var(--text);
}


.status-top-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
  flex-wrap:wrap;
}

.status-auth-panel{
  padding:6px;
}

.status-auth-panel span{
  max-width:180px;
}

@media(max-width:720px){
  .status-top-actions{
    width:100%;
    justify-content:space-between;
  }
}
