:root{
  --bg:#05070b;
  --panel:rgba(10,16,26,.72);
  --panel2:rgba(10,16,26,.52);
  --stroke:rgba(120,255,255,.18);
  --stroke2:rgba(120,255,255,.10);
  --text:rgba(230,255,255,.92);
  --muted:rgba(230,255,255,.66);
  --accent:rgba(120,255,255,1);
  --warn:rgba(255,190,120,.92);
  --danger:rgba(255,110,130,.92);

  --radius:16px;
  --shadow: 0 20px 80px rgba(0,0,0,.55);
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --title: Orbitron, Inter, system-ui, sans-serif;
  --ui: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

*{ box-sizing:border-box; }
html,body{ height:100%; margin:0; background:var(--bg); color:var(--text); font-family:var(--ui); overflow:hidden; }

#world{ position:fixed; inset:0; width:100%; height:100%; display:block; }

.scanlines{
  pointer-events:none;
  position:fixed; inset:0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,.02),
    rgba(255,255,255,.02) 1px,
    rgba(0,0,0,0) 3px,
    rgba(0,0,0,0) 6px
  );
  opacity:.12;
  mix-blend-mode: overlay;
}

.vignette{
  pointer-events:none;
  position:fixed; inset:0;
  background: radial-gradient(circle at 50% 35%,
    rgba(120,255,255,.07),
    rgba(0,0,0,.72) 62%,
    rgba(0,0,0,.92) 100%);
}

.hidden{ display:none !important; }

/* Gate */
.gate{
  position:fixed; inset:0;
  display:grid; place-items:center;
  padding:18px;
  background: radial-gradient(circle at 40% 30%, rgba(120,255,255,.09), rgba(0,0,0,.86) 60%);
  backdrop-filter: blur(10px);
  z-index:50;
}

.gate-card{
  width:min(720px, 96vw);
  border-radius: 20px;
  border:1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(10,16,26,.78), rgba(10,16,26,.55));
  box-shadow: var(--shadow);
  padding:16px;
  overflow:hidden;
}

.gate-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}

.gate-brand{ display:flex; align-items:center; gap:10px; }
.pulse-dot{
  width:10px; height:10px; border-radius:999px;
  background: rgba(120,255,255,.95);
  box-shadow: 0 0 20px rgba(120,255,255,.75);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse{
  0%,100%{ transform: scale(1); opacity:1; }
  50%{ transform: scale(1.25); opacity:.7; }
}

.gate-title{
  font-family: var(--title);
  letter-spacing: .14em;
  font-weight: 800;
  font-size: 18px;
}
.gate-sub{ color:var(--muted); font-size: 12px; margin-top:4px; }
.gate-badge{
  font-family: var(--title);
  letter-spacing:.14em;
  font-size: 12px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--stroke2);
  background: rgba(0,0,0,.16);
}

.gate-log{
  margin:14px 0 14px;
  padding:12px;
  border-radius: 14px;
  border:1px solid var(--stroke2);
  background: rgba(0,0,0,.16);
  font-family: var(--mono);
  color: rgba(230,255,255,.72);
  font-size: 12px;
  line-height: 1.7;
}

.gate-actions{ display:flex; gap:10px; flex-wrap:wrap; }
.gate-hint{ margin-top:12px; color: rgba(230,255,255,.55); font-size:12px; }

/* HUD Layout */
.hud{
  position:fixed; inset:0;
  padding: 14px;
  display:grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  z-index:10;
}

.topbar, .footer{
  border:1px solid var(--stroke2);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(10,16,26,.74), rgba(10,16,26,.52));
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  padding: 12px 14px;
}

.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 12px;
}

.brand{ display:flex; align-items:center; gap:10px; }
.brand-dot{
  width:10px; height:10px; border-radius:999px;
  background: rgba(120,255,255,.95);
  box-shadow: 0 0 22px rgba(120,255,255,.65);
}
.brand-title{
  font-family: var(--title);
  letter-spacing:.14em;
  font-weight: 800;
  font-size: 14px;
}
.brand-sub{ color:var(--muted); font-size:12px; margin-top:4px; }
.sep{ opacity:.5; padding:0 6px; }

.status{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.pill{
  display:flex;
  align-items:center;
  gap:8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke2);
  background: rgba(0,0,0,.16);
}
.pill-label{
  font-family: var(--title);
  letter-spacing:.14em;
  font-size:10px;
  color: rgba(230,255,255,.62);
}
.pill-value{
  font-family: var(--title);
  letter-spacing:.12em;
  font-size: 11px;
}
.offline{ color: var(--danger); text-shadow: 0 0 14px rgba(255,110,130,.35); }

.main{
  display:grid;
  grid-template-columns: 260px 1fr 320px;
  gap: 12px;
  min-height:0;
}

.panel{
  border:1px solid var(--stroke2);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(10,16,26,.72), rgba(10,16,26,.50));
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  padding: 14px;
  min-height:0;
  overflow:hidden;
  position:relative;
}

.panel-title{
  font-family: var(--title);
  letter-spacing:.14em;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
  color: rgba(230,255,255,.86);
}

.divider{
  height:1px;
  background: linear-gradient(90deg, transparent, rgba(120,255,255,.18), transparent);
  margin: 12px 0;
}

/* Nav */
.navbtn{
  width:100%;
  padding: 10px 12px;
  border-radius: 12px;
  border:1px solid rgba(120,255,255,.14);
  background: rgba(0,0,0,.14);
  color: var(--text);
  font-family: var(--title);
  letter-spacing: .12em;
  font-size: 11px;
  cursor:pointer;
  transition: transform .12s ease, border-color .18s ease, background .18s ease;
  margin-bottom:10px;
}
.navbtn:hover{
  transform: translateY(-1px);
  border-color: rgba(120,255,255,.35);
  background: rgba(120,255,255,.06);
}
.navbtn.active{
  border-color: rgba(120,255,255,.55);
  background: rgba(120,255,255,.10);
}

.mini{ color: rgba(230,255,255,.70); font-size: 12px; }
.mini-title{
  font-family: var(--title);
  letter-spacing:.14em;
  font-size: 11px;
  color: rgba(230,255,255,.78);
  margin-bottom: 8px;
}
.chips{ display:flex; flex-wrap:wrap; gap:8px; }
.chip{
  border:1px solid rgba(120,255,255,.16);
  background: rgba(120,255,255,.06);
  color: rgba(230,255,255,.85);
  font-family: var(--mono);
  font-size: 11px;
  padding: 6px 8px;
  border-radius: 999px;
  cursor:pointer;
}

.linkcol{ display:flex; flex-direction:column; gap:8px; }
.linkcol a{
  color: rgba(230,255,255,.86);
  text-decoration:none;
  border-bottom: 1px dashed rgba(120,255,255,.22);
  width: fit-content;
}
.linkcol a:hover{ border-bottom-color: rgba(120,255,255,.55); }
.muted{ opacity:.7; }

/* Content */
.view{
  height: calc(100% - 26px);
  overflow:auto;
  padding-right: 6px;
}
.view::-webkit-scrollbar{ width:10px; }
.view::-webkit-scrollbar-thumb{
  background: rgba(120,255,255,.10);
  border:1px solid rgba(120,255,255,.10);
  border-radius:999px;
}

.h1{
  font-family: var(--title);
  letter-spacing:.10em;
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 8px;
}
.sub{
  color: rgba(230,255,255,.72);
  font-weight: 600;
  margin: 0 0 14px;
}
.p{ color: rgba(230,255,255,.72); line-height: 1.7; margin: 0 0 12px; }

.grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.card{
  border:1px solid rgba(120,255,255,.14);
  background: rgba(0,0,0,.14);
  border-radius: 14px;
  padding: 12px;
}
.card-title{
  font-family: var(--title);
  letter-spacing:.12em;
  font-size: 11px;
  margin: 0 0 8px;
}
.tags{ display:flex; flex-wrap:wrap; gap:8px; }
.tag{
  border:1px solid rgba(120,255,255,.14);
  background: rgba(120,255,255,.06);
  color: rgba(230,255,255,.80);
  border-radius: 999px;
  padding: 6px 8px;
  font-family: var(--mono);
  font-size: 11px;
}

/* Console */
.feed{
  height: calc(100% - 160px);
  overflow:auto;
  padding: 12px;
  border-radius: 14px;
  border:1px solid rgba(120,255,255,.12);
  background: rgba(0,0,0,.16);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  color: rgba(230,255,255,.86);
}
.feed::-webkit-scrollbar{ width:10px; }
.feed::-webkit-scrollbar-thumb{ background: rgba(120,255,255,.10); border-radius:999px; }

.line{ margin: 0 0 8px; opacity:.95; }
.k{ color: rgba(120,255,255,.92); }
.warn{ color: var(--warn); }
.err{ color: var(--danger); }

.cmdrow{ display:flex; gap:10px; margin-top: 10px; }
.cmd{
  flex:1;
  padding: 10px 12px;
  border-radius: 12px;
  border:1px solid rgba(120,255,255,.18);
  background: rgba(0,0,0,.14);
  color: rgba(230,255,255,.92);
  outline:none;
}
.cmd::placeholder{ color: rgba(230,255,255,.45); }

.btn{
  padding: 10px 12px;
  border-radius: 12px;
  border:1px solid rgba(120,255,255,.18);
  background: rgba(0,0,0,.16);
  color: rgba(230,255,255,.92);
  font-family: var(--title);
  letter-spacing:.10em;
  font-size: 11px;
  cursor:pointer;
  transition: transform .12s ease, border-color .18s ease, background .18s ease;
}
.btn:hover{
  transform: translateY(-1px);
  border-color: rgba(120,255,255,.40);
  background: rgba(120,255,255,.06);
}
.btn.primary{
  border-color: rgba(120,255,255,.40);
  background: rgba(120,255,255,.10);
}
.btn.ghost{
  border-style: dashed;
  background: rgba(0,0,0,.12);
}
.btn.small{ padding: 9px 10px; font-size: 10.5px; }

.btnrow{ display:flex; gap:10px; flex-wrap:wrap; margin-top: 10px; }
.note{ margin-top: 10px; color: rgba(230,255,255,.55); font-size: 12px; }

/* Footer */
.footer{
  display:flex;
  justify-content:space-between;
  align-items:center;
  color: rgba(230,255,255,.62);
  font-size: 12px;
}

/* Added: premium contact link + small muted labels */
.contact-link{
  color: rgba(120,255,255,.95);
  text-decoration: none;
  border-bottom: 1px dashed rgba(120,255,255,.28);
  padding-bottom: 2px;
}
.contact-link:hover{
  color: rgba(230,255,255,.98);
  border-bottom-color: rgba(120,255,255,.60);
  text-shadow: 0 0 18px rgba(120,255,255,.28);
}
.small-muted{
  color: rgba(230,255,255,.55);
  font-size: 12px;
}

@media (max-width: 1050px){
  html,body{ overflow:auto; }
  .hud{ position:relative; min-height: 100vh; }
  .main{ grid-template-columns: 1fr; }
  .hide-mobile{ display:none; }
  .feed{ height: 260px; }
}
