:root{
  --aqua: #2dd4bf;
  --mint: #a3e635;

  --ink: #0b1220;
  --muted: rgba(11,18,32,.68);

  --card: rgba(255,255,255,.82);
  --border: rgba(11,18,32,.10);
  --shadow: 0 14px 44px rgba(11,18,32,.12);

  --radius: 18px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--ink);
  overflow-x:hidden;
}

.bg{
  position:fixed; inset:-40vh -25vw;
  background:
    radial-gradient(closest-side at 20% 18%, rgba(45,212,191,.55), transparent 62%),
    radial-gradient(closest-side at 78% 25%, rgba(163,230,53,.45), transparent 64%),
    radial-gradient(closest-side at 55% 90%, rgba(45,212,191,.20), transparent 60%),
    linear-gradient(180deg, #f4fffd 0%, #f6fff0 100%);
  filter: saturate(1.08);
  z-index:-2;
}

.wrap{
  width:min(1120px, 92vw);
  margin: 0 auto;
}

.header{
  padding: 26px 0 16px;
  display:flex;
  gap:16px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
}

.brand{
  display:flex;
  gap:14px;
  align-items:center;
}
.logo{
  width:52px; height:52px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  border:1px solid var(--border);
}

.brandText h1{
  margin:0;
  font-size: 22px;
  letter-spacing:.2px;
}
.sub{
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.btn{
  appearance:none;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.78);
  border-radius: 14px;
  padding: 10px 12px;
  font-weight: 750;
  color: var(--ink);
  text-decoration:none;
  cursor:pointer;
  box-shadow: 0 10px 26px rgba(11,18,32,.10);
  transition: transform .08s ease, background .15s ease, border-color .15s ease;
}
.btn:hover{ background: rgba(255,255,255,.92); border-color: rgba(11,18,32,.16); }
.btn:active{ transform: translateY(1px); }
.btn.ghost{
  background: transparent;
  box-shadow: none;
}

main{ padding: 10px 0 26px; }

.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.statusCard{ padding: 18px 18px 14px; }

.statusTop{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.statusTitle h2{ margin:0; font-size: 18px; }
.muted{ color: var(--muted); }
.small{ font-size: 12px; }
.mono{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }

.pill{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 10px 12px;
  border-radius: 999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.68);
  font-weight: 800;
}
.dot{
  width:10px; height:10px;
  border-radius:999px;
  background: rgba(11,18,32,.30);
}
.pill.online{
  background: rgba(163,230,53,.22);
  border-color: rgba(163,230,53,.38);
}
.pill.online .dot{ background: rgba(50,180,70,.95); }
.pill.offline{
  background: rgba(255, 107, 107, .16);
  border-color: rgba(255, 107, 107, .28);
}
.pill.offline .dot{ background: rgba(255, 107, 107, .95); }
.pill.neutral .dot{ background: rgba(11,18,32,.35); }

.grid3{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.stat{
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(11,18,32,.08);
  background: rgba(255,255,255,.62);
}
.label{ font-size: 12px; color: var(--muted); }
.value{
  margin-top: 6px;
  font-size: 22px;
  font-weight: 900;
}
.hint{ margin-top: 3px; font-size: 12px; color: var(--muted); }

.statusBottom{
  margin-top: 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}

.twoCol{
  margin-top: 14px;
  display:grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 14px;
}

.cardHead{
  padding: 16px 18px 10px;
  border-bottom: 1px solid rgba(11,18,32,.08);
}
.cardHead h2{ margin:0; font-size: 16px; }
.cardHead p{ margin: 4px 0 0; font-size: 12px; color: var(--muted); }

.embedWrap{ padding: 12px; }

.embedFrame{
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,.72);
  box-shadow: inset 0 0 0 1px rgba(11,18,32,.08);
  height: 520px;
}
.embedFrame iframe{
  width:100%;
  height:100%;
  border: 0;
  display:block;
}

.embedFrame.discord{
  height: 520px;
}

.padTop{ margin-top: 10px; }

.fallback{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap: 12px;
  padding: 20px;
  text-align:center;
  background: rgba(255,255,255,.85);
  border: 1px dashed rgba(11,18,32,.20);
}
.hidden{ display:none; }

.footer{
  padding: 18px 0 30px;
  text-align:center;
}

@media (max-width: 960px){
  .twoCol{ grid-template-columns: 1fr; }
  .embedFrame{ height: 460px; }
}
@media (max-width: 680px){
  .grid3{ grid-template-columns: 1fr; }
}
