:root{
  --bg: #0b0a14;
  --bg2:#0f0d1c;

  --surface:#141227;
  --surface2:#191635;
  --border: rgba(255,255,255,.10);

  --text:#f3f2ff;
  --muted: rgba(243,242,255,.72);

  --shadow: 0 10px 28px rgba(0,0,0,.28);

  --wa:#22c55e;
  --primary:#7c3aed;
  --donate:#f59e0b;
  --help:#38bdf8;

  --radius: 18px;
  --radius2: 24px;

  --max: 1120px;
  --pad: 16px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:
    radial-gradient(900px 520px at 18% 0%, rgba(124,58,237,.18), transparent 60%),
    radial-gradient(900px 520px at 82% 18%, rgba(34,197,94,.10), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2) 60%, #070612);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a{ color:inherit; }
.wrap{
  width:min(var(--max), calc(100% - 2*var(--pad)));
  margin:0 auto;
}

.skip{
  position:absolute; left:-9999px; top:auto;
  width:1px; height:1px; overflow:hidden;
}
.skip:focus{
  left:16px; top:16px;
  width:auto; height:auto;
  padding:10px 12px;
  background:rgba(20,18,39,.96);
  border:1px solid var(--border);
  border-radius:12px;
  z-index:9999;
}

.topbar{
  position:sticky; top:0;
  z-index:50;
  background:rgba(9,8,17,.72);
  backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(255,255,255,.06);
}
.topbar__inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:14px;
  padding:12px 0;
}

.brand{
  display:flex; align-items:center; gap:12px;
  text-decoration:none;
}
.brand__logo{
  border-radius:10px;
  box-shadow: 0 8px 18px rgba(0,0,0,.22);
}
.brand__name{ font-weight:800; font-size:14px; line-height:1; }
.brand__tag{ font-size:12px; color:var(--muted); margin-top:3px; }

.nav{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; justify-content:flex-end; }
.nav__link{
  font-size:13px;
  color:rgba(243,242,255,.88);
  text-decoration:none;
  padding:8px 10px;
  border-radius:12px;
  border:1px solid transparent;
}
.nav__link:hover{ border-color: rgba(255,255,255,.10); background: rgba(255,255,255,.04); }

.nav__link--donate{ border-color: rgba(245,158,11,.25); }
.nav__link--help{ border-color: rgba(56,189,248,.18); }
.nav__link--soon{ opacity:.9; }

.badge{
  display:inline-flex; align-items:center; justify-content:center;
  padding:4px 8px;
  border-radius:999px;
  font-size:12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
}
.badge--soon{ margin-left:6px; opacity:.9; }
.badge--id{ background: rgba(124,58,237,.16); border-color: rgba(124,58,237,.28); }
.badge--tiny{ padding:2px 8px; font-size:12px; opacity:.95; }

.hero{
  padding:24px 0 16px;
  display:grid;
  grid-template-columns: 1.12fr .88fr;
  gap:22px;
  align-items:center;
}
.kicker{
  margin:0 0 10px;
  color:rgba(243,242,255,.62);
  font-size:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
}
h1{
  margin:0;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height:1.08;
  letter-spacing:-.02em;
}
.sub{ margin:12px 0 0; color:var(--muted); font-size:16px; line-height:1.5; max-width:56ch; }

.cta{ display:flex; gap:10px; flex-wrap:wrap; margin-top:16px; }
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  text-decoration:none;
  border-radius:999px;
  padding:12px 14px;
  font-weight:800;
  font-size:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.btn:hover{ transform: translateY(-1px); background: rgba(255,255,255,.08); }
.btn:active{ transform: translateY(0); }
.btn--wa{ background: rgba(34,197,94,.14); border-color: rgba(34,197,94,.30); }
.btn--primary{ background: rgba(124,58,237,.20); border-color: rgba(124,58,237,.34); }
.btn--donate{ background: rgba(245,158,11,.14); border-color: rgba(245,158,11,.30); }
.btn--soon{ background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.10); opacity:.9; }
.btn--ghost{ background: transparent; }
.btn--small{ padding:10px 12px; font-size:13px; }

.emergency{
  margin:14px 0 0;
  color:rgba(243,242,255,.78);
  font-size:14px;
}

.heroCard{
  border-radius: var(--radius2);
  overflow:hidden;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow);
}
.heroCard img{
  width:100%; height:auto; display:block;
}

.section{ padding:18px 0 8px; }
.section__head{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:14px; flex-wrap:wrap;
  margin-bottom:12px;
}
h2{
  margin:0;
  font-size:22px;
  letter-spacing:-.01em;
}
.muted{ color:var(--muted); }
.small{ font-size:13px; }
.srOnly{
  position:absolute!important;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0);
  white-space:nowrap; border:0;
}

.search{
  position:relative;
  display:flex; align-items:center;
  gap:10px;
  background: rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.10);
  border-radius:999px;
  padding:10px 12px;
  min-width: min(520px, 100%);
}
.search input{
  width:100%;
  background: transparent;
  border:none;
  outline:none;
  color:var(--text);
  font-size:14px;
}
.iconBtn{
  border:none;
  background: rgba(255,255,255,.06);
  color:rgba(243,242,255,.88);
  border-radius:12px;
  width:34px; height:34px;
  cursor:pointer;
}
.iconBtn:hover{ background: rgba(255,255,255,.10); }

.toolsRow{
  display:flex; gap:10px; flex-wrap:wrap;
  margin:10px 0 14px;
}
.chip{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 12px;
  border-radius:999px;
  background: rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.10);
  font-weight:800;
  font-size:13px;
  text-decoration:none;
  cursor:pointer;
}
.chip:hover{ background: rgba(255,255,255,.08); }
.chip--wa{ border-color: rgba(34,197,94,.25); background: rgba(34,197,94,.12); }

.status{
  margin:10px 0 10px;
  color:rgba(243,242,255,.75);
  font-size:13px;
}

.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
}

.tile{
  text-align:left;
  padding:0;
  border:none;
  border-radius: var(--radius);
  overflow:hidden;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  cursor:pointer;
}
.tile:hover{ border-color: rgba(255,255,255,.16); }
.tile__media{
  position:relative;
  aspect-ratio: 16 / 9;
  background: rgba(255,255,255,.03);
}
.tile__media img{
  width:100%; height:100%;
  object-fit:cover;
  display:block;
}
.tile__badge{
  position:absolute;
  left:10px; top:10px;
}
.tile__meta{
  padding:10px 10px 12px;
}
.tile__title{
  font-weight:900;
  font-size:14px;
  line-height:1.2;
}
.tile__summary{
  margin-top:6px;
  font-size:13px;
  color:rgba(243,242,255,.70);
  line-height:1.35;
  display:-webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow:hidden;
  min-height: 2.7em;
}

.pager{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:14px 0 0;
}
.pager__info{ text-align:center; flex:1; }

.soonCard{
  padding:16px;
  border-radius: var(--radius2);
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.soonCard__title{ font-weight:900; font-size:16px; }
.soonCard__sub{ margin-top:6px; margin-bottom:12px; }

.helpCard{
  display:flex;
  gap:14px;
  justify-content:space-between;
  align-items:flex-start;
  flex-wrap:wrap;
  padding:16px;
  border-radius: var(--radius2);
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.helpCard__left{ flex: 1 1 320px; }
.helpCard__right{
  display:flex;
  gap:10px;
  flex: 0 0 auto;
  align-items:center;
  flex-wrap:wrap;
}
.helpLabel{ display:block; font-weight:900; margin-bottom:8px; }
.helpInput{
  width: min(340px, 100%);
  padding:12px 12px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.15);
  color:var(--text);
  outline:none;
  font-size:14px;
}

.footer{
  margin-top:24px;
  padding:18px 0 28px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer__inner{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}
.footer__title{ font-weight:900; }
.footer__meta{ text-align:right; }

.mobileBar{
  position:fixed;
  left:0; right:0; bottom:0;
  padding:10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(9,8,17,.72);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,.08);
  display:none;
  gap:10px;
  justify-content:center;
  z-index:60;
}

.modal{
  position:fixed;
  inset:0;
  display:none;
  z-index:80;
}
.modal[aria-hidden="false"]{ display:block; }
.modal__backdrop{
  position:absolute; inset:0;
  background: rgba(0,0,0,.60);
}
.modal__panel{
  position:relative;
  width:min(980px, calc(100% - 2*var(--pad)));
  margin: calc(24px + env(safe-area-inset-top)) auto;
  border-radius: var(--radius2);
  background: rgba(15,12,28,.92);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
  overflow:hidden;
  max-height: calc(100vh - 48px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  display:flex;
  flex-direction:column;
}
.modal__top{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px;
  padding:12px 12px 0;
}
.modal__titleRow{ display:flex; align-items:center; gap:10px; }
.modal__title{ margin:0; font-size:16px; font-weight:900; }

.modal__actions{
  padding:10px 12px 12px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.modal__body{
  padding:0 12px 14px;
  overflow:auto;
  -webkit-overflow-scrolling: touch;
}
.modalMedia{ position:relative; }
.navArrow{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(20,18,39,.78);
  backdrop-filter: blur(6px);
  color: rgba(243,242,255,.92);
  font-size:22px;
  font-weight:900;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 10px 22px rgba(0,0,0,.35);
}
.navArrow:hover{ background: rgba(20,18,39,.90); }
.navArrow:active{ transform: translateY(-50%) scale(.98); }
.navArrow:disabled{
  opacity:.35;
  cursor:not-allowed;
}
.navArrow--left{ left:10px; }
.navArrow--right{ right:10px; }
.imgWrap{
  border-radius: 18px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.imgWrap img{
  width:100%;
  height:auto;
  display:block;
}
.modal__hint{ margin-top:10px; }

.toast{
  position:fixed;
  left:50%; bottom: 16px;
  transform: translateX(-50%);
  background: rgba(20,18,39,.96);
  border:1px solid rgba(255,255,255,.12);
  color:rgba(243,242,255,.92);
  padding:10px 12px;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
  display:none;
  z-index:90;
  max-width: min(720px, calc(100% - 24px));
  text-align:center;
  font-weight:900;
  font-size:13px;
}

@media (max-width: 860px){
  .hero{ grid-template-columns: 1fr; }
  .hero__right{ order:-1; }
  .grid{ grid-template-columns: repeat(2, 1fr); }
  .footer__meta{ text-align:left; }
}
@media (max-width: 560px){
  .grid{ grid-template-columns: 1fr; }
  .mobileBar{ display:flex; }
  body{ padding-bottom: 76px; }
}
@media (prefers-reduced-motion: reduce){
  .btn{ transition:none; }
  .btn:hover{ transform:none; }
}


.topics{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin: 6px 0 14px;
}
.topicChip{
  padding:10px 12px;
  border-radius:999px;
  background: rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.10);
  color: rgba(243,242,255,.92);
  font-weight:800;
  font-size:13px;
  cursor:pointer;
}
.topicChip:hover{ background: rgba(255,255,255,.08); }
.topicChip--active{ background: rgba(124,58,237,.22); border-color: rgba(124,58,237,.32); }
