:root{
  --bg:#081018;
  --panel:#0f1b28;
  --text:#eff6ff;
  --muted:#9cb3c9;
  --line:rgba(255,255,255,.08);
  --shadow:0 30px 90px rgba(0,0,0,.35);
  --ok-a:#31d1a7;
  --ok-b:#8bf0da;
  --down-a:#ff8b7a;
  --down-b:#ffcc8c;
  --load-a:#5cb8ff;
  --load-b:#9ce4ff;
}

*{box-sizing:border-box}

html,body{
  margin:0;
  min-height:100%;
}

body{
  font-family:"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at 15% 20%, rgba(92,184,255,.18), transparent 28%),
    radial-gradient(circle at 85% 18%, rgba(255,139,122,.18), transparent 26%),
    radial-gradient(circle at 50% 100%, rgba(255,255,255,.08), transparent 40%),
    var(--bg);
}

.status-shell{
  position:relative;
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:24px;
  overflow:hidden;
}

.status-orbit{
  position:absolute;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.09);
  pointer-events:none;
  opacity:.55;
}

.status-orbit-a{
  width:62vw;
  height:62vw;
  min-width:520px;
  min-height:520px;
  top:-18vw;
  right:-12vw;
  box-shadow:0 0 80px rgba(92,184,255,.08);
  animation:orbitDrift 16s ease-in-out infinite;
}

.status-orbit-b{
  width:38vw;
  height:38vw;
  min-width:300px;
  min-height:300px;
  bottom:-10vw;
  left:-8vw;
  border-style:dashed;
  animation:orbitSpin 24s linear infinite;
}

.status-noise{
  position:absolute;
  inset:-20%;
  background:
    linear-gradient(115deg, rgba(255,255,255,.04), transparent 30%, rgba(255,255,255,.02) 62%, transparent 75%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.02) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 24px);
  opacity:.45;
  transform:rotate(-7deg) scale(1.15);
  pointer-events:none;
}

.status-panel{
  position:relative;
  z-index:1;
  width:min(100%, 1040px);
  padding:40px 34px;
  border:1px solid var(--line);
  border-radius:34px;
  background:rgba(15,27,40,.72);
  backdrop-filter:blur(20px);
  box-shadow:var(--shadow);
  text-align:center;
}

.status-corners span{
  position:absolute;
  width:42px;
  height:42px;
  border-color:rgba(255,255,255,.16);
  border-style:solid;
  pointer-events:none;
}

.status-corners span:nth-child(1){
  top:18px;
  left:18px;
  border-width:2px 0 0 2px;
  border-top-left-radius:16px;
}

.status-corners span:nth-child(2){
  top:18px;
  right:18px;
  border-width:2px 2px 0 0;
  border-top-right-radius:16px;
}

.status-corners span:nth-child(3){
  bottom:18px;
  left:18px;
  border-width:0 0 2px 2px;
  border-bottom-left-radius:16px;
}

.status-corners span:nth-child(4){
  right:18px;
  bottom:18px;
  border-width:0 2px 2px 0;
  border-bottom-right-radius:16px;
}

.status-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:126px;
  padding:10px 18px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  font-size:14px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.status-kicker{
  margin:22px 0 10px;
  color:var(--muted);
  font-size:16px;
  letter-spacing:.22em;
  text-transform:uppercase;
}

.status-title{
  margin:0;
  font-size:clamp(54px, 11vw, 132px);
  line-height:.96;
  letter-spacing:.02em;
  font-weight:900;
}

.status-copy{
  width:min(100%, 760px);
  margin:22px auto 0;
  color:var(--text);
  font-size:clamp(18px, 2.2vw, 28px);
  line-height:1.5;
  font-weight:700;
}

.status-bars{
  display:flex;
  justify-content:center;
  gap:8px;
  margin-top:28px;
}

.status-bars span{
  width:56px;
  height:7px;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.04);
  animation:barsPulse 2.6s ease-in-out infinite;
}

.status-bars span:nth-child(2){animation-delay:.12s}
.status-bars span:nth-child(3){animation-delay:.24s}
.status-bars span:nth-child(4){animation-delay:.36s}
.status-bars span:nth-child(5){animation-delay:.48s}

.status-meta{
  margin-top:28px;
  color:var(--muted);
  font-size:15px;
  letter-spacing:.06em;
}

.status-shell[data-state="available"] .status-panel{
  background:
    radial-gradient(circle at 50% 0%, rgba(49,209,167,.14), transparent 40%),
    rgba(15,27,40,.76);
}

.status-shell[data-state="available"] .status-chip,
.status-shell[data-state="available"] .status-title{
  color:var(--ok-b);
}

.status-shell[data-state="available"] .status-title{
  text-shadow:0 0 20px rgba(49,209,167,.18), 0 0 46px rgba(49,209,167,.12);
}

.status-shell[data-state="available"] .status-bars span{
  background:linear-gradient(90deg, var(--ok-a), var(--ok-b));
}

.status-shell[data-state="maintenance"] .status-panel{
  background:
    radial-gradient(circle at 50% 0%, rgba(255,139,122,.18), transparent 42%),
    rgba(24,18,24,.8);
}

.status-shell[data-state="maintenance"] .status-chip,
.status-shell[data-state="maintenance"] .status-title{
  color:var(--down-b);
}

.status-shell[data-state="maintenance"] .status-title{
  text-shadow:0 0 24px rgba(255,139,122,.2), 0 0 48px rgba(255,204,140,.15);
}

.status-shell[data-state="maintenance"] .status-bars span{
  background:linear-gradient(90deg, var(--down-a), var(--down-b));
}

.status-shell[data-state="loading"] .status-chip,
.status-shell[data-state="loading"] .status-title{
  color:var(--load-b);
}

.status-shell[data-state="loading"] .status-bars span{
  background:linear-gradient(90deg, var(--load-a), var(--load-b));
}

@keyframes orbitDrift{
  0%,100%{transform:translate3d(0,0,0) scale(1)}
  50%{transform:translate3d(-18px,20px,0) scale(1.03)}
}

@keyframes orbitSpin{
  from{transform:rotate(0deg)}
  to{transform:rotate(360deg)}
}

@keyframes barsPulse{
  0%,100%{transform:scaleY(.84); opacity:.66}
  50%{transform:scaleY(1.12); opacity:1}
}

@media (max-width:720px){
  .status-panel{
    padding:28px 20px;
    border-radius:24px;
  }

  .status-corners span{
    width:28px;
    height:28px;
  }

  .status-bars span{
    width:34px;
  }

  .status-copy{
    margin-top:18px;
  }
}
