:root{
  --bg:#0b0f1a;
  --panel:#0f1323;
  --text:#e6f3ff;
  --muted:#8aa3c2;
  --cy:#00e5ff;
  --mg:#ff00e5;
  --ok:#18ffb2;
  --warn:#ffd166;
  --err:#ff4d6d;
  --glow:0 0 12px rgba(0,229,255,.45), 0 0 24px rgba(255,0,229,.25);
  --radius:18px;
  --border:1px solid rgba(255,255,255,.12);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:
    radial-gradient(1200px 800px at 20% -10%, rgba(0,229,255,.08), transparent 70%),
    radial-gradient(1200px 800px at 110% 110%, rgba(255,0,229,.06), transparent 60%),
    linear-gradient(180deg, #0a0d17 0%, #0b0f1a 100%);
  color:var(--text);
  font:500 16px/1.5 system-ui,Segoe UI,Roboto,Inter,Arial;
  letter-spacing:.2px;
}

/* background helper (renamed from neon-grid) */
.neon-bg{
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:0;
}

/* main layout */
.grid{
  max-width:980px;
  margin:110px auto 80px; /* extra top room for global header */
  padding:0 16px;
  display:grid;
  gap:18px;
  grid-template-columns:1fr;
  position:relative;
  z-index:1;
}

.bar{max-width:980px;margin:0 auto;padding:12px 16px;display:flex;align-items:center;gap:12px}
.brand{font-weight:800;letter-spacing:.4px}
.brand span{color:var(--cy);text-shadow:var(--glow)}
.spacer{flex:1}

.btn, button{
  appearance:none;
  border:var(--border);
  background:linear-gradient(180deg,#101733,#0d1224);
  color:var(--text);
  padding:10px 14px;
  border-radius:12px;
  cursor:pointer;
  outline:none;
}
.btn:hover{
  box-shadow:0 0 0 2px rgba(0,229,255,.45) inset, var(--glow);
}
.copy{display:inline-flex;align-items:center;gap:8px}

/* drawer */
.menu-drawer{
  position:fixed;
  inset:0 0 0 auto;
  width:300px;
  background:rgba(13,18,36,.96);
  backdrop-filter:blur(6px);
  border-left:1px solid rgba(255,255,255,.08);
  transform:translateX(110%);
  transition:transform .2s ease;
  z-index:60;
  display:flex;
  flex-direction:column;
}
.menu-drawer.open{transform:translateX(0)}
.menu-drawer header{
  display:flex;
  align-items:center;
  gap:8px;
  padding:16px;
  border-bottom:1px solid rgba(255,255,255,.08)
}
.menu-drawer a{
  color:var(--text);
  text-decoration:none;
  display:block;
  padding:12px 16px;
  border-bottom:1px solid rgba(255,255,255,.04)
}

/* cards */
.card{
  background:linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0) 60%), var(--panel);
  border:var(--border);
  border-radius:var(--radius);
  padding:16px 16px 18px;
  box-shadow:var(--glow);
}
.card h2{
  margin:0 0 10px;
  font-size:18px;
  color:#bfe9ff;
}

/* labels & inputs */
label{
  display:block;
  margin:10px 0 6px;
  color:var(--muted);
  font-size:14px;
}
input[type="text"],
input[type="password"],
input[type="number"],
textarea{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background:linear-gradient(180deg,#0e142b,#0b1021);
  color:var(--text);
}
textarea{
  min-height:140px;
  resize:vertical;
}

.row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.row > *{flex:1 1 200px}

.muted{color:var(--muted);font-size:13px}
.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.status{
  padding:10px 12px;
  border-radius:12px;
  border:1px dashed rgba(255,255,255,.14);
  font-size:14px;
}
.ok{color:var(--ok)}
.warn{color:var(--warn)}
.err{color:var(--err)}
.count{font-weight:700;letter-spacing:.5px}
.hidden{display:none !important}

footer{margin:40px 0 24px;color:var(--muted);text-align:center;font-size:13px}
.kbd{
  padding:2px 6px;
  border:1px solid rgba(255,255,255,.2);
  border-radius:6px;
  background:#0d1223;
}

/* destroy button */
#destroy{
  border-color:rgba(255,77,109,0.6);
  color:#ff4d6d;
}
#destroy:hover{
  box-shadow:0 0 12px rgba(255,77,109,0.8);
}

/* optional meter (unused in current HTML but safe to keep) */
.meter{
  height:8px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  margin-top:8px;
  overflow:hidden;
  background:rgba(255,255,255,.06)
}
.meter .fill{
  height:100%;
  width:0%;
  background:linear-gradient(90deg,var(--cy),var(--mg));
  box-shadow:0 0 10px rgba(0,229,255,.5)
}

/* subtle float */
.neon-float{animation:floaty 14s ease-in-out infinite;}
@keyframes floaty{
  0%{transform:translateY(0px)}
  50%{transform:translateY(3px)}
  100%{transform:translateY(0px)}
}

/* simple toast placeholder if needed */
.toast{
  position:fixed;
  right:16px;
  bottom:16px;
  background:rgba(13,18,36,.95);
  border:1px solid rgba(255,255,255,.15);
  border-radius:12px;
  padding:10px 14px;
  box-shadow:var(--glow);
  z-index:80;
  font-size:14px;
}

/* =========================================================
   🔵 New Neon Blueprint Header / Footer
   (matches the URL Shortener GO pattern you approved)
========================================================= */

.stp-header{
  position:fixed;
  top:0; left:0; right:0;
  padding:10px 16px;
  background:linear-gradient(90deg, rgba(2,4,10,.96), rgba(6,9,22,.96));
  border-bottom:1px solid rgba(255,255,255,.06);
  box-shadow:0 10px 30px rgba(0,0,0,.6), 0 0 22px rgba(0,255,255,.25);
  z-index:1000;
}

.stp-hamburger{
  max-width:1080px;
  margin:0 auto;
  display:flex;
  align-items:center;
  gap:12px;
}

.stp-brand{
  font-weight:800;
  letter-spacing:.08em;
  font-family:system-ui,Segoe UI,Roboto,Inter,Arial;
  color:var(--cy);
  text-shadow:var(--glow);
}

/* local control buttons (refresh + app drawer) */
.stp-local-controls{
  display:flex;
  align-items:center;
  gap:8px;
  margin-left:24px;
}
.stp-local-btn{
  border-radius:10px;
  border:1px solid rgba(255,255,255,.18);
  background:linear-gradient(180deg,#101733,#0d1224);
  color:var(--text);
  padding:6px 10px;
  font-size:.85rem;
  cursor:pointer;
}
.stp-local-btn:hover{
  box-shadow:0 0 0 2px rgba(0,229,255,.14) inset, var(--glow);
}

/* global hamburger & dropdown */
.stp-menu-box{
  margin-left:auto;
  position:relative;
}
.stp-menu-toggle{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.stp-burger{
  display:flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  border-radius:10px;
  border:1px solid rgba(0,255,255,.28);
  background:#03050a;
  color:#00fff9;
  cursor:pointer;
  font-size:1.2rem;
  text-shadow:0 0 10px rgba(0,255,255,.65);
}

.stp-menu{
  list-style:none;
  margin:0;
  padding:8px 10px;
  position:absolute;
  top:120%;
  right:0;
  min-width:190px;
  border-radius:12px;
  background:rgba(3,5,10,.98);
  border:1px solid rgba(0,255,255,.25);
  box-shadow:0 14px 30px rgba(0,0,0,.8),0 0 22px rgba(0,255,255,.3);
  display:none;
}
.stp-menu-toggle:checked ~ .stp-menu{display:block;}

.stp-menu li{margin:4px 0;}
.stp-menu a{
  display:block;
  padding:6px 10px;
  border-radius:8px;
  color:var(--text);
  font-size:.9rem;
  text-decoration:none;
}
.stp-menu a:hover{
  background:rgba(0,255,255,.15);
  color:#fff;
  box-shadow:0 0 12px rgba(0,255,255,.35);
}

/* footer */
.stp-footer{
  position:fixed;
  left:0; right:0; bottom:0;
  background:rgba(11,15,26,.96);
  border-top:1px solid rgba(0,229,255,.2);
  box-shadow:0 -12px 30px rgba(0,0,0,.8);
  padding:10px 16px 12px;
  text-align:center;
  color:var(--muted);
  font-size:.9rem;
  z-index:900;
}
.stp-footer-links{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  margin-bottom:4px;
}
.stp-footer-links a{
  color:var(--cy);
  text-decoration:none;
}
.stp-footer-links a:hover{
  color:#ff66cc;
  text-shadow:0 0 10px rgba(255,102,204,.7);
}
.stp-footer-copy{opacity:.9;}
.stp-footer-tip{margin-top:3px; font-size:.8rem;}

/* responsive tweak */
@media (max-width:720px){
  .grid{margin:104px auto 90px;}
  .stp-local-controls{display:none;} /* keep header compact on small screens */
}
