:root{
  --bg:#0b1020;
  --panel:#101a33;
  --panel2:#0f1730;
  --text:#e8ecff;
  --muted:#a9b3d7;
  --stroke:rgba(255,255,255,.10);
  --shadow: 0 20px 60px rgba(0,0,0,.35);
  --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, Arial, "Noto Sans Arabic", "Noto Naskh Arabic", sans-serif;
  color:var(--text);
  background:#123456;
}
a{color:inherit; text-decoration:none}
.container{max-width:1100px; margin:0 auto; padding:0 18px}
.topbar{
  position:sticky; top:0; z-index:10;
  background:rgba(11,16,32,.65);
  backdrop-filter: blur(14px);
  border-bottom:1px solid var(--stroke);
}
.topbar-inner{
  display:flex; align-items:center; gap:14px;
  padding:14px 0;
}
.brand{display:flex; align-items:center; gap:10px; font-weight:800; letter-spacing:.3px}
.nav{display:flex; align-items:center; gap:10px; margin-inline-start:auto}
.nav-link{padding:8px 10px; border-radius:10px; color:var(--muted)}
.nav-link:hover{background:rgba(255,255,255,.06); color:var(--text)}
.lang{margin-inline-start:10px}
.select{
  background:rgba(255,255,255,.06);
  color:var(--text);
  border:1px solid var(--stroke);
  border-radius:12px;
  padding:8px 10px;
  outline:none;
}

.hero{padding:28px 0 8px}
.hero-card{
  display:grid; grid-template-columns: 1.25fr .75fr;
  gap:18px;
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid var(--stroke);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:var(--shadow);
}
h1{margin:0 0 8px; font-size:40px; line-height:1.05}
.muted{color:var(--muted)}
.tiny{font-size:12px}
.wrap{word-break:break-word}
.ip-box{
  margin-top:16px;
  background:rgba(0,0,0,.18);
  border:1px solid var(--stroke);
  border-radius:16px;
  padding:14px;
}
.ip-label{color:var(--muted); font-weight:700; margin-bottom:6px}
.ip-value{
  font-size:34px; font-weight:900;
  letter-spacing:.6px;
  padding:8px 0 10px;
  word-break:break-word;
}
.ip-actions{display:flex; gap:10px; flex-wrap:wrap}
.btn{
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.08);
  color:var(--text);
  padding:10px 14px;
  border-radius:14px;
  cursor:pointer;
  font-weight:700;
}
.btn:hover{background:rgba(255,255,255,.12)}
.btn.ghost{background:transparent}
.btn.small{padding:8px 12px; border-radius:12px}

.card{
  background:rgba(255,255,255,.04);
  border:1px solid var(--stroke);
  border-radius:var(--radius);
  padding:14px;
}
.card-title{font-weight:900; margin-bottom:10px}
.kv{display:grid; grid-template-columns: 140px 1fr; gap:10px 12px}
.k{color:var(--muted); font-weight:700}
.v{font-weight:800}
.code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size:13px;
  white-space:pre-wrap;
  word-break:break-word;
  background:rgba(0,0,0,.18);
  border:1px solid var(--stroke);
  border-radius:16px;
  padding:12px;
}
.grid{
  padding:18px 0 8px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:18px;
}
details{border-radius:14px; padding:10px 12px; background:rgba(0,0,0,.16); border:1px solid var(--stroke)}
details + details{margin-top:10px}
summary{cursor:pointer; font-weight:800}
.articles{padding:18px 0 40px}
.section-title{font-weight:900; font-size:18px; margin:10px 0}
.article-list{display:grid; grid-template-columns: repeat(2, 1fr); gap:14px}
.article h3{margin:0 0 8px; font-size:16px}
.article p{margin:0}
.ad{margin:18px 0}

.page{padding:20px 0 40px}
.prose h2{margin:16px 0 6px}
.prose p{margin:0 0 10px; color:var(--muted); line-height:1.7}

.footer{
  border-top:1px solid var(--stroke);
  background:rgba(11,16,32,.55);
  backdrop-filter: blur(14px);
}
.footer-inner{
  display:flex; align-items:flex-start; justify-content:space-between;
  gap:20px; padding:20px 0;
}
.foot-title{font-weight:900; margin-bottom:6px}
.foot-muted{color:var(--muted); margin-top:6px}
.foot-right{display:flex; gap:12px; flex-wrap:wrap}
.cookie-bar{
  position:fixed;
  left:18px; right:18px; bottom:18px;
  background:rgba(16,26,51,.92);
  border:1px solid var(--stroke);
  border-radius:18px;
  padding:12px 14px;
  display:flex; align-items:center; justify-content:space-between;
  gap:12px;
  box-shadow:var(--shadow);
}
.cookie-text{color:var(--muted)}

@media (max-width: 900px){
  .hero-card{grid-template-columns:1fr}
  .grid{grid-template-columns:1fr}
  h1{font-size:34px}
  .article-list{grid-template-columns:1fr}
  .nav{display:none}
}
