/* =========================
   Ninny.top Premium Theme
   Dark blue + black, animated glow, premium UI
   ========================= */

:root{
  --bg0:#050812;
  --bg1:#070b1a;
  --panel: rgba(255,255,255,.04);
  --panel2: rgba(255,255,255,.06);
  --border: rgba(255,255,255,.10);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.65);

  --blue:#2aa7ff;
  --blue2:#0b62ff;
  --cyan:#22d3ee;
  --vio:#7c3aed;

  --shadow: 0 18px 60px rgba(0,0,0,.55);
  --radius: 18px;
  --radius2: 24px;

  --max: 1120px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  color:var(--text);
  background: radial-gradient(1200px 700px at 15% 10%, rgba(42,167,255,.18), transparent 60%),
              radial-gradient(900px 600px at 85% 10%, rgba(124,58,237,.16), transparent 60%),
              radial-gradient(900px 700px at 50% 120%, rgba(34,211,238,.12), transparent 60%),
              linear-gradient(180deg, var(--bg0), var(--bg1));
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  overflow-x:hidden;
}

/* animated background grain + glow */
body::before{
  content:"";
  position:fixed; inset:0;
  pointer-events:none;
  background:
    radial-gradient(600px 300px at 20% 15%, rgba(42,167,255,.12), transparent 60%),
    radial-gradient(520px 260px at 80% 20%, rgba(124,58,237,.10), transparent 60%),
    radial-gradient(700px 360px at 50% 90%, rgba(34,211,238,.08), transparent 60%);
  opacity:.9;
  animation: floatGlow 10s ease-in-out infinite;
}
body::after{
  content:"";
  position:fixed; inset:-20%;
  pointer-events:none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  opacity:.06;
  transform: rotate(8deg);
}

@keyframes floatGlow{
  0%,100%{transform: translate3d(0,0,0)}
  50%{transform: translate3d(0,-10px,0)}
}

/* layout */
.wrap{max-width:var(--max); margin:0 auto; padding:0 20px}
.section{padding:56px 0}
.grid2{display:grid; grid-template-columns: 1.05fr .95fr; gap:18px}
.grid3{display:grid; grid-template-columns: repeat(3, 1fr); gap:14px}
@media (max-width: 980px){
  .grid2,.grid3{grid-template-columns: 1fr}
  .section{padding:44px 0}
}

/* topbar */
.topbar{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(8,10,18,.78), rgba(8,10,18,.46));
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbarInner{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; padding:14px 20px;
}
.brand{
  display:flex; align-items:center; gap:8px;
  text-decoration:none;
  font-weight:900; letter-spacing:.2px;
  color:var(--text);
  font-size:18px;
}
.brand .dot{
  color:var(--cyan);
  text-shadow: 0 0 18px rgba(34,211,238,.55);
}
.nav{display:flex; gap:10px; flex-wrap:wrap; align-items:center}
.nav a{
  text-decoration:none;
  color:var(--muted);
  padding:9px 12px;
  border-radius: 999px;
  border:1px solid transparent;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.nav a:hover{
  color:var(--text);
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.10);
  transform: translateY(-1px);
}
.nav a.active{
  color: var(--text);
  background: linear-gradient(90deg, rgba(42,167,255,.16), rgba(124,58,237,.12));
  border-color: rgba(42,167,255,.28);
  box-shadow: 0 0 0 1px rgba(42,167,255,.06) inset;
}

/* typography */
h1,h2,h3{margin:0 0 10px 0; line-height:1.08}
h1{font-size:44px}
h2{font-size:30px}
h3{font-size:18px}
@media (max-width: 700px){ h1{font-size:36px} }
.lead{color:var(--muted); font-size:16px; line-height:1.55; margin:0}
.kicker{
  display:inline-flex;
  gap:8px;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  font-size:12px;
  letter-spacing:.14em;
  color: rgba(255,255,255,.76);
  margin-bottom: 10px;
}

/* cards */
.card{
  position:relative;
  border-radius: var(--radius2);
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
  padding:16px;
  overflow:hidden;
}
.card::before{
  content:"";
  position:absolute; inset:-1px;
  background: radial-gradient(500px 180px at 15% 0%, rgba(42,167,255,.20), transparent 55%),
              radial-gradient(420px 170px at 85% 0%, rgba(124,58,237,.18), transparent 60%);
  opacity:.25;
  pointer-events:none;
}
.card:hover{ border-color: rgba(42,167,255,.22); }

/* hero card glow */
.heroCard{padding:0}
.heroInner{position:relative; padding:18px}
.heroGlow{
  position:absolute; inset:-40%;
  background: radial-gradient(closest-side, rgba(42,167,255,.22), transparent 60%);
  filter: blur(18px);
  opacity:.6;
  animation: heroPulse 6s ease-in-out infinite;
  pointer-events:none;
}
@keyframes heroPulse{
  0%,100%{transform: translate3d(0,0,0) scale(1)}
  50%{transform: translate3d(0,-6px,0) scale(1.04)}
}

.sep{
  border:0;
  height:1px;
  margin:12px 0;
  background: rgba(255,255,255,.10);
}

/* buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 14px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  color: var(--text);
  text-decoration:none;
  cursor:pointer;
  transition: transform .12s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
  position:relative;
  overflow:hidden;
}
.btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.06);
  border-color: rgba(42,167,255,.24);
  box-shadow: 0 0 0 1px rgba(42,167,255,.08) inset;
}
.btn:active{transform: translateY(0px) scale(.99)}
.btn.primary{
  border-color: rgba(34,211,238,.22);
  background: linear-gradient(90deg, rgba(42,167,255,.20), rgba(34,211,238,.14));
}
.btn.primary::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(90deg, rgba(42,167,255,.0), rgba(42,167,255,.25), rgba(42,167,255,.0));
  transform: translateX(-120%);
  animation: shine 2.8s ease-in-out infinite;
  opacity:.55;
}
@keyframes shine{
  0%{transform: translateX(-120%)}
  55%{transform: translateX(120%)}
  100%{transform: translateX(120%)}
}

/* pills/badges */
.badge, .pill{
  display:inline-flex;
  align-items:center;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.82);
  font-size:12px;
}
.pill.ok{border-color: rgba(34,211,238,.35); background: rgba(34,211,238,.12)}
.pill.down{border-color: rgba(255,80,80,.38); background: rgba(255,80,80,.12)}

/* forms + tables */
input, select, textarea{
  width:100%;
  padding:12px 12px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  color: var(--text);
  outline:none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus{
  border-color: rgba(34,211,238,.35);
  box-shadow: 0 0 0 4px rgba(34,211,238,.10);
}
label{display:block;margin:10px 0 6px 0;color:var(--muted);font-size:13px}
.row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media (max-width: 800px){ .row{grid-template-columns:1fr} }

.table{
  width:100%;
  border-collapse:collapse;
  margin-top:10px;
  overflow:hidden;
  border-radius: 16px;
}
.table th,.table td{
  padding:10px 10px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  text-align:left;
  font-size:13px;
}
.table th{color:var(--muted); font-weight:800}
.table tr:hover td{background: rgba(255,255,255,.03)}
.mono{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace}

/* notices */
.notice{
  padding:12px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
}
.notice.ok{border-color: rgba(34,211,238,.35); background: rgba(34,211,238,.10)}
.notice.err{border-color: rgba(255,80,80,.35); background: rgba(255,80,80,.10)}
.small{font-size:13px; color: var(--muted)}

/* footer */
.footer{
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 0;
  margin-top: 26px;
}
.footInner{
  display:flex;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  color: rgba(255,255,255,.70);
}

/* Top Loader */
#topLoader{
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s ease;
}
#topLoader.show{ opacity: 1; }
.topLoader__bar{
  height: 100%;
  width: 100%;
  transform-origin: left;
  transform: scaleX(0);
  opacity: 0;
  background: linear-gradient(90deg, rgba(42,167,255,.0), rgba(42,167,255,.85), rgba(34,211,238,.85), rgba(124,58,237,.6));
  box-shadow: 0 0 18px rgba(34,211,238,.25);
  transition: transform .35s ease, opacity .15s ease;
}

/* Announcement banner */
.announce{
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.25);
  backdrop-filter: blur(10px);
}
.announce__inner{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 20px;
  flex-wrap:wrap;
}
.announce__tag{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
}
.announce__msg{ color: rgba(255,255,255,.78); }
.announce__x{
  margin-left:auto;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.86);
  border-radius: 999px;
  padding:6px 10px;
  cursor:pointer;
}

/* accessibility */
@media (prefers-reduced-motion: reduce){
  *{animation:none !important; transition:none !important;}
  body::before{animation:none !important;}
}


/* Site banner */
.site-banner{position:sticky;top:0;z-index:9999;border-bottom:1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(12px); background: rgba(10,18,35,.78);}
.site-banner .pill{border:1px solid rgba(255,255,255,.15); padding:2px 8px; border-radius:999px; font-size:12px}
.site-banner.info{box-shadow: 0 12px 40px rgba(0,145,255,.08)}
.site-banner.warn{background: rgba(35,25,10,.82)}
.site-banner.err{background: rgba(35,10,10,.82)}
.site-banner.ok{background: rgba(10,35,18,.82)}
