
:root{--blue:#1565c0;--green:#2e7d32;--dark:#17212b;--muted:#64748b;--bg:#f6f8fb;--card:#fff;--red:#c62828}
*{box-sizing:border-box}body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;background:var(--bg);color:var(--dark)}
a{color:var(--blue);text-decoration:none}.topbar{position:sticky;top:0;z-index:20;display:flex;justify-content:space-between;align-items:center;padding:14px 5%;background:#fff;border-bottom:1px solid #e5e7eb}
.brand{display:flex;gap:10px;align-items:center;font-size:20px;color:var(--dark)}.logo{display:inline-grid;place-items:center;width:42px;height:42px;border-radius:14px;background:linear-gradient(135deg,var(--blue),var(--green));color:white}
nav{display:flex;gap:14px;align-items:center;flex-wrap:wrap}nav a{color:#334155;font-weight:600}.pill,.btn{background:var(--blue);color:#fff!important;padding:10px 14px;border-radius:999px;display:inline-block;border:0;cursor:pointer}
.btn.green{background:var(--green)}.btn.light{background:#e8f1fb;color:var(--blue)!important}.hero{padding:60px 5%;display:grid;grid-template-columns:1.1fr .9fr;gap:30px;align-items:center}
.hero h1{font-size:clamp(34px,5vw,64px);line-height:1.02;margin:0 0 18px}.hero p{font-size:18px;color:var(--muted);max-width:700px}.hero-card,.card{background:var(--card);border:1px solid #e5e7eb;border-radius:24px;padding:24px;box-shadow:0 12px 30px rgba(15,23,42,.06)}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:22px}.stat{background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:18px;text-align:center}.stat b{font-size:28px;color:var(--blue)}.stat span{display:block;color:var(--muted);font-size:13px}
.container{padding:28px 5%;max-width:1300px;margin:auto}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:18px}.form{display:grid;gap:14px}.input,select,textarea{width:100%;padding:13px 14px;border:1px solid #cbd5e1;border-radius:14px;background:#fff;font:inherit}textarea{min-height:120px}.map{height:520px;border-radius:24px;border:1px solid #e5e7eb;overflow:hidden;background:#dbeafe}.badge{display:inline-block;padding:5px 9px;border-radius:999px;background:#e8f1fb;color:var(--blue);font-size:12px;font-weight:700}.urgent-critical{color:var(--red)}.table{width:100%;border-collapse:collapse;background:#fff;border-radius:18px;overflow:hidden}.table th,.table td{border-bottom:1px solid #e5e7eb;padding:12px;text-align:left}.table th{background:#f8fafc}.footer{margin-top:40px;padding:30px 5%;display:flex;justify-content:space-between;background:#0f172a;color:#cbd5e1}.footer a{color:#fff}
.adminbar{background:#0f172a;color:white;padding:16px 5%;display:flex;gap:15px;flex-wrap:wrap}.adminbar a{color:white}.notice{padding:12px 16px;border-radius:14px;background:#ecfdf5;color:#166534;margin:12px 0}.error{padding:12px 16px;border-radius:14px;background:#fef2f2;color:#991b1b;margin:12px 0}
@media(max-width:850px){.hero,.grid,.grid2{grid-template-columns:1fr}.stats{grid-template-columns:repeat(2,1fr)}.topbar{align-items:flex-start;gap:10px;flex-direction:column}nav{font-size:14px}.footer{flex-direction:column;gap:14px}}

/* === Jaaduwul footer === */
.jw-footer{
  margin-top:60px;
  background:#0f172a;
  color:#e5e7eb;
}
.jw-footer a{
  color:#e5e7eb;
  text-decoration:none;
}
.jw-footer a:hover{
  color:#93c5fd;
}
.jw-footer-inner{
  width:min(1440px,94vw);
  margin:0 auto;
  padding:44px 0;
  display:grid;
  grid-template-columns:2fr 1fr 1fr;
  gap:34px;
}
.jw-footer-logo{
  display:flex;
  align-items:center;
  gap:12px;
  font-size:28px;
  font-weight:950;
}
.jw-footer-logo img{
  width:48px;
  height:48px;
}
.jw-footer-brand p{
  max-width:620px;
  color:#cbd5e1;
  line-height:1.6;
}
.jw-footer-warning{
  padding:12px 14px;
  border-radius:16px;
  background:rgba(251,191,36,.12);
  border:1px solid rgba(251,191,36,.35);
  color:#fde68a!important;
}
.jw-footer-col{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.jw-footer-col h3{
  color:#fff;
  margin:0 0 8px;
}
.jw-footer-bottom{
  border-top:1px solid rgba(255,255,255,.10);
  width:min(1440px,94vw);
  margin:0 auto;
  padding:18px 0;
  color:#94a3b8;
}
@media(max-width:850px){
  .jw-footer-inner{
    grid-template-columns:1fr;
  }
}

/* === Footer Jaaduwul clean === */
.jw-footer{
  margin-top:60px;
  background:#0f172a;
  color:#e5e7eb;
  clear:both;
}
.jw-footer a{
  color:#e5e7eb;
  text-decoration:none;
}
.jw-footer a:hover{
  color:#93c5fd;
}
.jw-footer-inner{
  width:min(1440px,94vw);
  margin:0 auto;
  padding:44px 0;
  display:grid;
  grid-template-columns:2fr 1fr 1fr;
  gap:34px;
}
.jw-footer-logo{
  display:flex;
  align-items:center;
  gap:12px;
  font-size:28px;
  font-weight:950;
}
.jw-footer-logo img{
  width:48px;
  height:48px;
}
.jw-footer-brand p{
  max-width:620px;
  color:#cbd5e1;
  line-height:1.6;
}
.jw-footer-warning{
  padding:12px 14px;
  border-radius:16px;
  background:rgba(251,191,36,.12);
  border:1px solid rgba(251,191,36,.35);
  color:#fde68a!important;
}
.jw-footer-col{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.jw-footer-col h3{
  color:#fff;
  margin:0 0 8px;
}
.jw-footer-bottom{
  border-top:1px solid rgba(255,255,255,.10);
  width:min(1440px,94vw);
  margin:0 auto;
  padding:18px 0;
  color:#94a3b8;
}
@media(max-width:850px){
  .jw-footer-inner{
    grid-template-columns:1fr;
  }
}

/* === New report location picker === */
.report-location-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:8px 0 12px;
}
.report-pick-map{
  display:none;
  width:100%;
  height:360px;
  border-radius:20px;
  border:1px solid #dbeafe;
  overflow:hidden;
  margin:12px 0;
  background:#e0f2fe;
}
@media(max-width:700px){
  .report-pick-map{
    height:300px;
    border-radius:16px;
  }
}

/* === New report map always visible === */
.report-pick-map{
  display:block!important;
  width:100%;
  height:360px;
  border-radius:20px;
  border:1px solid #dbeafe;
  overflow:hidden;
  margin:12px 0;
  background:#e0f2fe;
}

/* === Search page === */
.jw-search-page{
  max-width:1200px;
}
.jw-search-hero h1{
  font-size:clamp(32px,4vw,56px);
  margin-bottom:8px;
}
.jw-search-box{
  display:grid;
  grid-template-columns:1fr auto;
  gap:10px;
  margin:22px 0;
}
.jw-search-options{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}
.jw-search-options label{
  display:flex;
  align-items:center;
  gap:8px;
  margin:9px 0;
  font-weight:700;
}
.jw-search-results{
  display:grid;
  gap:12px;
}
.jw-search-result{
  display:grid;
  grid-template-columns:96px 1fr;
  gap:14px;
  padding:14px;
  border:1px solid #e5e7eb;
  border-radius:18px;
  background:#fff;
  color:#0f172a;
  text-decoration:none;
}
.jw-search-result:hover{
  border-color:#93c5fd;
  box-shadow:0 12px 28px rgba(15,23,42,.08);
}
.jw-search-result img,
.jw-search-thumb{
  width:96px;
  height:82px;
  border-radius:14px;
  object-fit:cover;
  background:#eff6ff;
}
.jw-search-thumb{
  display:grid;
  place-items:center;
  font-size:30px;
}
.jw-search-result h3{
  margin:6px 0;
}
.jw-search-result p{
  margin:0 0 6px;
  color:#475569;
}
@media(max-width:760px){
  .jw-search-box{
    grid-template-columns:1fr;
  }
  .jw-search-options{
    grid-template-columns:1fr;
  }
  .jw-search-result{
    grid-template-columns:72px 1fr;
  }
  .jw-search-result img,
  .jw-search-thumb{
    width:72px;
    height:72px;
  }
}

/* === Contribute organization map === */
.org-pick-map{
  display:block;
  width:100%;
  height:360px;
  border-radius:20px;
  border:1px solid #dbeafe;
  overflow:hidden;
  margin:12px 0;
  background:#e0f2fe;
}
.org-location-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:8px 0 12px;
}
@media(max-width:700px){
  .org-pick-map{height:300px;border-radius:16px;}
}

/* === Auth pages === */
.auth-page{
  max-width:720px;
}
.auth-card{
  margin:30px auto;
}
.auth-card h1{
  font-size:clamp(32px,4vw,52px);
  margin-bottom:14px;
}
.terms-check{
  display:flex;
  align-items:flex-start;
  gap:10px;
  line-height:1.45;
  font-weight:700;
}
.terms-check input{
  margin-top:4px;
}

/* === Terms modal register === */
.terms-link{
  border:0;
  background:transparent;
  color:#1565c0;
  font-weight:900;
  text-decoration:underline;
  cursor:pointer;
  padding:0;
}
.terms-modal{
  display:none;
  position:fixed;
  z-index:9999;
  inset:0;
  background:rgba(15,23,42,.72);
  padding:24px;
}
.terms-modal.show{
  display:grid;
  place-items:center;
}
.terms-modal-box{
  width:min(760px,94vw);
  max-height:86vh;
  overflow:auto;
  background:#fff;
  border-radius:24px;
  padding:24px;
  position:relative;
  box-shadow:0 30px 90px rgba(0,0,0,.35);
}
.terms-close{
  position:absolute;
  top:14px;
  right:16px;
  width:38px;
  height:38px;
  border:0;
  border-radius:999px;
  background:#fee2e2;
  color:#991b1b;
  font-size:26px;
  font-weight:900;
  cursor:pointer;
}
.terms-content{
  line-height:1.65;
  color:#334155;
}

/* === Sensitive alert === */
.sensitive-alert-box{
  margin-top:22px;
  border:1px solid #fecaca;
  background:#fff7f7;
}
.sensitive-alert-box h2{
  color:#991b1b;
}
.sensitive-options{
  display:grid;
  gap:10px;
  margin-top:14px;
  padding:14px;
  border-radius:16px;
  background:#fff;
  border:1px solid #fee2e2;
}
.sensitive-options label{
  font-weight:800;
}

/* === User profile === */
.profile-page{
  max-width:1200px;
}
.profile-hero{
  display:grid;
  grid-template-columns:120px 1fr;
  gap:22px;
  align-items:center;
}
.profile-photo{
  width:120px;
  height:120px;
  border-radius:34px;
  background:linear-gradient(135deg,#1565c0,#2e7d32);
  display:grid;
  place-items:center;
  color:white;
  font-size:52px;
  font-weight:950;
  overflow:hidden;
}
.profile-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.profile-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}
.profile-row{
  display:block;
  padding:12px 0;
  border-bottom:1px solid #e5e7eb;
  color:#0f172a;
  text-decoration:none;
}
.profile-row span{
  display:block;
  color:#64748b;
  margin-top:4px;
}
@media(max-width:800px){
  .profile-hero,
  .profile-grid{
    grid-template-columns:1fr;
  }
}

/* === Public organization page === */
.org-page{max-width:1280px}
.org-hero{
  display:grid;
  grid-template-columns:1fr auto;
  gap:20px;
  align-items:center;
}
.org-hero h1{
  font-size:clamp(34px,4vw,58px);
  margin:10px 0;
}
.org-actions{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.org-rating-line{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  margin-top:14px;
}
.stars{
  color:#f59e0b;
  font-size:20px;
  letter-spacing:1px;
}
.org-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}
.org-info{
  display:grid;
  grid-template-columns:160px 1fr;
  gap:10px;
}
.org-info dt{
  font-weight:900;
  color:#334155;
}
.org-info dd{
  margin:0;
  color:#475569;
}
.org-stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
}
.org-stats div{
  background:#eff6ff;
  border-radius:18px;
  padding:16px;
  text-align:center;
}
.org-stats strong{
  display:block;
  font-size:30px;
  color:#1565c0;
}
.org-stats span{
  color:#475569;
  font-weight:800;
}
.org-public-map{
  height:420px;
  border-radius:22px;
  border:1px solid #dbeafe;
  overflow:hidden;
  background:#e0f2fe;
}
.org-review,.org-message,.org-row{
  padding:14px 0;
  border-bottom:1px solid #e5e7eb;
}
.org-review p,.org-message p,.org-row p{
  color:#475569;
}
.org-review small,.org-message small,.org-row span{
  color:#64748b;
}
@media(max-width:850px){
  .org-hero,.org-grid{
    grid-template-columns:1fr;
  }
  .org-actions{
    flex-direction:row;
    flex-wrap:wrap;
  }
  .org-info{
    grid-template-columns:1fr;
  }
}

/* === YouTube-style live chat === */
.jw-live-chat-card{
  margin-top:22px;
}
.jw-live-chat-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
}
.jw-live-chat-messages{
  height:420px;
  overflow:auto;
  border:1px solid #e5e7eb;
  border-radius:18px;
  background:#f8fafc;
  padding:12px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.jw-live-chat-msg{
  display:grid;
  grid-template-columns:42px 1fr;
  gap:10px;
  align-items:flex-start;
}
.jw-live-chat-avatar{
  width:42px;
  height:42px;
  border-radius:999px;
  background:linear-gradient(135deg,#1565c0,#2e7d32);
  color:white;
  display:grid;
  place-items:center;
  font-weight:950;
  overflow:hidden;
}
.jw-live-chat-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.jw-live-chat-msg strong{
  font-size:14px;
}
.jw-live-chat-msg p{
  margin:3px 0;
  color:#334155;
}
.jw-live-chat-msg small{
  color:#94a3b8;
}
.jw-live-chat-form{
  display:grid;
  grid-template-columns:1fr auto;
  gap:10px;
  margin-top:12px;
}
.jw-live-chat-form input{
  border:1px solid #cbd5e1;
  border-radius:999px;
  padding:13px 16px;
}
@media(max-width:700px){
  .jw-live-chat-messages{
    height:320px;
  }
  .jw-live-chat-form{
    grid-template-columns:1fr;
  }
}

/* === President pages + vote charts === */
.president-page{max-width:1280px}
.president-hero{
  display:grid;
  grid-template-columns:180px 1fr;
  gap:22px;
  align-items:center;
}
.president-photo{
  width:180px;
  height:180px;
  border-radius:34px;
  object-fit:cover;
  background:#e0f2fe;
}
.president-hero h1{
  font-size:clamp(34px,4vw,60px);
  margin:10px 0;
}
.president-article{
  border-bottom:1px solid #e5e7eb;
  padding:16px 0;
}
.president-article img{
  width:100%;
  max-height:320px;
  object-fit:cover;
  border-radius:18px;
  margin-bottom:12px;
}
.jw-vote-chart{
  margin-top:18px;
  border:1px solid #e5e7eb;
  border-radius:18px;
  padding:14px;
  background:#fff;
}
.jw-vote-chart-svg{
  width:100%;
  height:auto;
}
.jw-chart-legend{
  display:flex;
  gap:18px;
  font-weight:900;
  margin-top:8px;
}
@media(max-width:800px){
  .president-hero{
    grid-template-columns:1fr;
  }
}

/* === Jaaduwul attractive public pages === */
.jw-public-hero{
  position:relative;
  overflow:hidden;
  border-radius:30px;
  padding:34px;
  background:
    radial-gradient(circle at top right, rgba(46,125,50,.22), transparent 36%),
    linear-gradient(135deg,#eff6ff,#ffffff);
  border:1px solid #dbeafe;
  box-shadow:0 20px 60px rgba(15,23,42,.08);
}
.jw-public-hero h1{
  font-size:clamp(34px,5vw,68px);
  line-height:1;
  margin:10px 0;
}
.jw-public-hero p{
  color:#475569;
  font-size:18px;
  max-width:840px;
}
.jw-public-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 360px;
  gap:20px;
  align-items:start;
}
.jw-public-sidebar{
  position:sticky;
  top:94px;
}
.jw-public-stats{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(140px,1fr));
  gap:12px;
}
.jw-public-stats div{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:20px;
  padding:18px;
  text-align:center;
  box-shadow:0 10px 26px rgba(15,23,42,.05);
}
.jw-public-stats strong{
  display:block;
  color:#1565c0;
  font-size:34px;
  line-height:1;
}
.jw-public-stats span{
  display:block;
  color:#475569;
  font-weight:900;
  margin-top:7px;
}
.jw-vote-widget{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  margin:14px 0;
}
.jw-share-bar{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:14px;
}
.jw-section-title{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}
.jw-timeline-card{
  border-left:5px solid #1565c0;
  padding:14px 16px;
  background:#fff;
  border-radius:16px;
  margin:10px 0;
  box-shadow:0 8px 22px rgba(15,23,42,.04);
}
.jw-gallery-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
  gap:14px;
}
.jw-gallery-grid img,
.jw-gallery-grid video{
  width:100%;
  height:160px;
  object-fit:cover;
  border-radius:18px;
  background:#e0f2fe;
}
@media(max-width:980px){
  .jw-public-layout{
    grid-template-columns:1fr;
  }
  .jw-public-sidebar{
    position:static;
  }
}
