:root{
  --bg:#0b1220;
  --panel:#101a2e;
  --card:#0f1a33;
  --text:#e8edf7;
  --muted:#b8c3d9;
  --brand:#ff3b4a; /* Anonamed-style red accent */
  --link:#7db3ff;
  --border:rgba(255,255,255,.12);
  --shadow:0 14px 40px rgba(0,0,0,.35);
  --radius:14px;
  --max:1100px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--sans);
  color:var(--text);
  background:radial-gradient(1200px 700px at 15% 0%, #16264e 0%, var(--bg) 48%) fixed;
  line-height:1.5;
}
a{color:var(--link); text-decoration:none}
a:hover{text-decoration:underline}
.container{max-width:var(--max); margin:0 auto; padding:0 18px}
header{
  position:sticky; top:0; z-index:50;
  background:linear-gradient(180deg, rgba(11,18,32,.92), rgba(11,18,32,.70));
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
}
.navbar{display:flex; align-items:center; justify-content:space-between; padding:14px 0; gap:10px}
.brand{display:flex; align-items:center; gap:10px; min-width:220px}
.brand-badge{
  width:34px; height:34px; border-radius:10px;
  background:linear-gradient(135deg, var(--brand), #ff7b86);
  box-shadow:0 8px 20px rgba(255,59,74,.25);
}
.brand h1{font-size:16px; margin:0; letter-spacing:.3px}
.brand small{display:block; color:var(--muted); font-size:12px; margin-top:1px}
.nav-actions{display:flex; align-items:center; gap:10px}
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  border:1px solid var(--border);
  border-radius:12px;
  padding:10px 12px;
  background:rgba(255,255,255,.06);
  color:var(--text);
  cursor:pointer;
  user-select:none;
}
.btn:hover{background:rgba(255,255,255,.10)}
.btn-primary{
  border-color: rgba(255,59,74,.45);
  background: rgba(255,59,74,.16);
}
.menu{
  display:flex; gap:14px; flex-wrap:wrap; align-items:center;
}
.menu a{color:var(--text); font-size:13px; padding:8px 10px; border-radius:10px}
.menu a.active{background:rgba(255,255,255,.08); border:1px solid var(--border)}
.menu a:hover{background:rgba(255,255,255,.06)}
.hamburger{display:none}
.mobile-panel{display:none; padding:10px 0 16px}
.mobile-panel a{display:block; padding:12px 12px; border-radius:12px; border:1px solid var(--border); margin-top:10px; background:rgba(255,255,255,.05)}

.hero{padding:28px 0 18px}
.hero-grid{display:grid; grid-template-columns:1.3fr .7fr; gap:18px; align-items:stretch}
.card{
  background:linear-gradient(180deg, rgba(16,26,46,.95), rgba(15,26,51,.88));
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.card-pad{padding:18px}
.kicker{color:var(--muted); font-size:13px}
h2{margin:8px 0 8px; font-size:26px; letter-spacing:.2px}
p{margin:10px 0}
.badges{display:flex; flex-wrap:wrap; gap:10px; margin-top:12px}
.badge{font-size:12px; padding:8px 10px; border-radius:999px; border:1px solid var(--border); background:rgba(255,255,255,.05)}
.grid3{display:grid; grid-template-columns:repeat(3, 1fr); gap:14px}
.grid2{display:grid; grid-template-columns:repeat(2, 1fr); gap:14px}
.section{padding:18px 0 28px}
h3{margin:0 0 10px; font-size:18px}
.ul{margin:10px 0 0; padding-left:18px}
.notice{
  border-left:5px solid var(--brand);
  background:rgba(255,59,74,.10);
  padding:12px 14px; border-radius:12px; border:1px solid rgba(255,59,74,.25);
  color:var(--text);
}
.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  border:1px solid var(--border);
  border-radius:14px;
  background:rgba(255,255,255,.03);
}
.table th,.table td{
  padding:10px 10px;
  border-bottom:1px solid var(--border);
  font-size:13px;
  vertical-align:top;
}
.table th{color:var(--muted); font-weight:600; text-align:left; background:rgba(255,255,255,.04)}
.table tr:last-child td{border-bottom:0}
.pill{display:inline-block; font-size:12px; padding:6px 10px; border-radius:999px; border:1px solid var(--border); background:rgba(255,255,255,.05)}
.pill.high{border-color:rgba(255,59,74,.50); background:rgba(255,59,74,.14)}
.pill.free{border-color:rgba(70,255,151,.40); background:rgba(70,255,151,.12)}
.pill.mid{border-color:rgba(255,205,0,.35); background:rgba(255,205,0,.12)}
.searchbar{display:flex; gap:10px; flex-wrap:wrap; margin:10px 0 0}
.searchbar input, .searchbar select{
  padding:10px 12px; border-radius:12px; border:1px solid var(--border);
  background:rgba(255,255,255,.06); color:var(--text); outline:none;
}
.searchbar input::placeholder{color:rgba(232,237,247,.65)}
.footer{padding:22px 0 40px; color:rgba(232,237,247,.7)}
.footer a{color:rgba(232,237,247,.85)}
.small{font-size:12px; color:var(--muted)}
figure{margin:0}
figure img{width:100%; border-radius:14px; border:1px solid var(--border); background:#fff}
.code{
  font-family:var(--mono);
  background:rgba(0,0,0,.25);
  border:1px solid var(--border);
  border-radius:12px;
  padding:12px;
  overflow:auto;
  font-size:12px;
}
hr{border:0; border-top:1px solid var(--border); margin:16px 0}

@media (max-width: 900px){
  .hero-grid{grid-template-columns:1fr}
  .grid3{grid-template-columns:1fr}
  .grid2{grid-template-columns:1fr}
  .menu{display:none}
  .hamburger{display:inline-flex}
  .mobile-panel.show{display:block}
}


/* Hero figure (used on Country Risk page) */
.hero-figure{
  margin: 16px 0 24px;
  padding: 0;
}
.hero-figure img{
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
}
.hero-figure figcaption{
  margin-top: 8px;
  font-size: 0.95rem;
  opacity: 0.9;
}
