:root{
  --bg:#05070c;
  --card: rgba(0,0,0,.55);
  --card2: rgba(0,0,0,.35);
  --txt: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.70);
  --muted2: rgba(255,255,255,.55);
  --blue:#00c3ff;
  --blue2:#1aa7ff;
  --border: rgba(255,255,255,.12);
  --shadow: 0 20px 60px rgba(0,0,0,.55);
  --radius: 18px;
}

*{margin:0;padding:0;box-sizing:border-box}
html,body{height:100%}
body{
  font-family:'Roboto',system-ui,-apple-system,Segoe UI,Arial,sans-serif;
  background: var(--bg);
  color: var(--txt);
  overflow-x:hidden;
}

/* Background image */
.bg{
  position:fixed; inset:0;
  background:url("/images/su-data-banner.png") center/cover no-repeat;
  transform: scale(1.06);
  filter: blur(7px) brightness(.35) saturate(1.1);
  z-index:-3;
}

/* subtle animated grid/glow */
.fx{
  position:fixed; inset:-40%;
  background:
    radial-gradient(circle at 50% 20%, rgba(0,195,255,.28), transparent 55%),
    radial-gradient(circle at 20% 80%, rgba(0,195,255,.16), transparent 50%),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: auto, auto, 80px 80px, 80px 80px;
  animation: drift 18s linear infinite;
  z-index:-2;
  opacity:.55;
  pointer-events:none;
}

@keyframes drift{
  0%{transform: translate3d(0,0,0)}
  100%{transform: translate3d(120px,80px,0)}
}

/* Page container */
.wrap{
  min-height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 26px 16px;
}

.card{
  width:min(980px, 100%);
  background: linear-gradient(180deg, var(--card), var(--card2));
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  padding: 26px;
  position:relative;
  overflow:hidden;
}

.card:before{
  content:"";
  position:absolute;
  inset:-2px;
  background: radial-gradient(circle at 50% 0%, rgba(0,195,255,.22), transparent 55%);
  opacity:.9;
  pointer-events:none;
}

.top{
  display:flex;
  gap:14px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  position:relative;
  z-index:1;
}

.brand{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.title{
  font-family:'Orbitron',sans-serif;
  font-weight:700;
  letter-spacing: 2px;
  font-size: clamp(22px, 4vw, 34px);
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(0,195,255,.25);
}

.tagline{
  color: var(--muted);
  font-size: 14px;
  letter-spacing:.5px;
}

.lang{
  display:flex;
  gap:10px;
  align-items:center;
  background: rgba(0,0,0,.28);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px;
}

.lang button{
  border:0;
  background:transparent;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  cursor:pointer;
  font-weight:500;
  transition: .2s ease;
}
.lang button.active{
  background: rgba(0,195,255,.18);
  color: #eaffff;
  box-shadow: inset 0 0 0 1px rgba(0,195,255,.25);
}
.lang button:hover{color:#fff}

.divider{
  height:1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.16), transparent);
  margin: 18px 0 18px 0;
  position:relative;
  z-index:1;
}

.status{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0,195,255,.10);
  border: 1px solid rgba(0,195,255,.20);
  color: #dff8ff;
  font-weight:500;
  letter-spacing:.3px;
  animation: pulse 2.2s ease-in-out infinite;
  text-transform: uppercase;
  font-size: 13px;
}

@keyframes pulse{
  0%{opacity:1}
  50%{opacity:.65}
  100%{opacity:1}
}

.content{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:18px;
  margin-top: 18px;
}

.box{
  background: rgba(0,0,0,.28);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}

.box h2{
  font-size: 16px;
  margin-bottom: 10px;
  font-weight:600;
  color: #f5feff;
  letter-spacing:.2px;
}

.box p{
  color: var(--muted);
  line-height:1.6;
  font-size: 14.5px;
}

.list{
  margin-top: 12px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.pill{
  font-size: 12px;
  color: #eaffff;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(0,195,255,.10);
  border: 1px solid rgba(0,195,255,.18);
  white-space:nowrap;
}

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

.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.06);
  color: #fff;
  text-decoration:none;
  font-weight:500;
  transition: .18s ease;
  cursor:pointer;
  user-select:none;
}
.btn:hover{
  transform: translateY(-1px);
  border-color: rgba(0,195,255,.35);
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
}

.btn.primary{
  background: rgba(0,195,255,.16);
  border-color: rgba(0,195,255,.28);
}

.mini{
  font-size: 12px;
  color: var(--muted2);
  margin-top: 10px;
  line-height: 1.5;
}

.footer{
  position:relative;
  z-index:1;
  margin-top: 16px;
  display:flex;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  color: var(--muted2);
  font-size: 12px;
  padding-top: 8px;
}

.copy-ok{
  display:none;
  margin-left:8px;
  color:#bff5ff;
}

@media (max-width: 860px){
  .content{grid-template-columns: 1fr; }
}

/* --- KiwiIRC modal --- */
.modal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 9999;
}

.modal-backdrop.open{ display: flex; }

.modal{
  width: min(1100px, 100%);
  height: min(760px, 92vh);
  background: rgba(10,12,18,.92);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  box-shadow: 0 30px 90px rgba(0,0,0,.65);
  overflow: hidden;
  position: relative;
}

.modal-head{
  height: 52px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.25);
}

.modal-title{
  font-family:'Orbitron',sans-serif;
  letter-spacing: 1px;
  font-size: 14px;
  color: rgba(255,255,255,.9);
}

.modal-close{
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: #fff;
  padding: 8px 10px;
  border-radius: 10px;
  cursor:pointer;
}

.modal-close:hover{
  border-color: rgba(0,195,255,.35);
}

.modal-body{
  height: calc(100% - 52px);
}

.modal-body iframe{
  width: 100%;
  height: 100%;
  border: 0;
  display:block;
  background: #000;
}
