/* =========================================================
   পাকুন্দিয়া ই-সেবা — Public Website Stylesheet
   Mobile-first. Desktop centers the app-width column so the
   site keeps the same feel as the phone design.
   ========================================================= */

:root{
  --primary:        #157A3C;
  --primary-dark:   #0E5C2C;
  --primary-light:  #E8F5EC;
  --green:  #1B9E4E;
  --blue:   #2E86DE;
  --red:    #E64A3B;
  --purple: #8E44AD;
  --teal:   #16A08A;
  --orange: #F0932B;
  --navy:   #2C3E63;
  --amber:  #E8A317;
  --pink:   #D6558A;

  --bg:        #F4F6F5;
  --card:      #FFFFFF;
  --text:      #1A2B22;
  --text-soft: #6B7A72;
  --border:    #E7ECE9;
  --radius:    16px;
  --radius-sm: 10px;
  --shadow:    0 2px 10px rgba(15, 60, 35, 0.06);
  --app-width: 460px;
  --nav-h: 64px;
  --header-h: 58px;
}

*{ box-sizing:border-box; }

html{ -webkit-text-size-adjust:100%; text-size-adjust:100%; }
html, body{ overflow-x:hidden; width:100%; }

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:"Noto Sans Bengali","Roboto",-apple-system,sans-serif;
  -webkit-font-smoothing:antialiased;
}

a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; }
img{ max-width:100%; display:block; }
input, select, textarea, button{ font-size:16px; }

/* ---------- app shell ---------- */
.app-shell{
  max-width:var(--app-width);
  margin:0 auto;
  min-height:100vh;
  background:var(--bg);
  position:relative;
  padding-bottom:calc(var(--nav-h) + 14px + env(safe-area-inset-bottom, 0));
  box-shadow:0 0 40px rgba(0,0,0,0.06);
}
@media (min-width:520px){
  body{ background:linear-gradient(180deg,#0E5C2C 0%, #0E5C2C 220px, var(--bg) 220px); }
  .app-shell{ margin-top:24px; margin-bottom:24px; border-radius:22px; overflow:hidden; min-height:auto; }
}

/* ---------- top header ---------- */
.topbar{
  background:linear-gradient(135deg,var(--primary) 0%, var(--primary-dark) 100%);
  color:#fff;
  padding:16px 16px 18px;
  position:sticky; top:0; z-index:60;
}
.topbar-row{ display:flex; align-items:center; gap:10px; }
.topbar-notif-bell{ position:relative; width:32px; height:32px; border-radius:50%; background:rgba(255,255,255,0.16); color:#fff; display:flex; align-items:center; justify-content:center; font-size:14px; flex-shrink:0; }
.topbar-notif-count{ position:absolute; top:-4px; right:-4px; background:#FF4D4D; color:#fff; font-size:9.5px; font-weight:800; min-width:16px; height:16px; border-radius:8px; display:flex; align-items:center; justify-content:center; padding:0 3px; border:1.5px solid var(--primary-dark); }
.topbar-icon-btn{
  width:36px; height:36px; border:0; background:rgba(255,255,255,0.16);
  color:#fff; border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-size:15px; cursor:pointer; flex-shrink:0;
}
.topbar-title{ flex:1; font-size:17px; font-weight:700; }
.topbar-title small{ display:block; font-weight:400; font-size:11.5px; opacity:.85; margin-top:1px; }
.topbar-brand{ display:flex; align-items:center; gap:10px; flex:1; }
.topbar-logo{
  width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,0.18);
  display:flex;align-items:center;justify-content:center;font-size:17px;flex-shrink:0;
}

.search-box{
  margin-top:14px; background:#fff; border-radius:12px; display:flex; align-items:center;
  gap:10px; padding:11px 14px; box-shadow:0 4px 14px rgba(0,0,0,0.12);
}
.search-box input{
  border:0; outline:0; flex:1; font-size:16px; font-family:inherit; color:var(--text); background:transparent;
}
.search-box i{ color:var(--text-soft); }
.search-box button{ background:none; border:0; color:var(--text-soft); cursor:pointer; }

/* ---------- category tabs / chips (khujun screen) ---------- */
.tabs{ display:flex; gap:8px; padding:12px 16px 4px; overflow-x:auto; }
.tabs a{
  padding:8px 16px; border-radius:20px; background:#fff; color:var(--text-soft);
  font-size:13.5px; font-weight:600; white-space:nowrap; border:1px solid var(--border);
}
.tabs a.active{ background:var(--primary); color:#fff; border-color:var(--primary); }

/* ---------- main content ---------- */
.content{ padding:16px; }
.section{ margin-bottom:22px; }
.section-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
.section-head h2{ font-size:15.5px; margin:0; font-weight:700; }
.section-head a{ font-size:12.5px; color:var(--primary); font-weight:600; }

/* ---------- banner ---------- */
.banner{
  position:relative; border-radius:var(--radius); overflow:hidden; height:150px;
  background:linear-gradient(135deg,var(--green),var(--primary-dark));
  margin-bottom:20px; box-shadow:var(--shadow);
}
.banner img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.banner-overlay{
  position:absolute; inset:0; background:linear-gradient(180deg,rgba(0,0,0,0) 30%,rgba(0,30,15,0.75) 100%);
  display:flex; flex-direction:column; justify-content:flex-end; padding:16px; color:#fff;
}
.banner-overlay h3{ margin:0 0 4px; font-size:17px; font-weight:800; }
.banner-overlay p{ margin:0; font-size:12px; opacity:.9; }

/* ---------- category grid (home) ---------- */
.cat-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px 8px; }
.cat-item{ display:flex; flex-direction:column; align-items:center; gap:7px; text-align:center; }
.cat-icon{
  width:52px; height:52px; border-radius:16px; display:flex; align-items:center; justify-content:center;
  font-size:19px; color:#fff; box-shadow:var(--shadow);
}
.cat-item span{ font-size:11.5px; font-weight:600; color:var(--text); line-height:1.25; }

.bg-green{background:linear-gradient(135deg,#1FB65E,#0E6B32);}
.bg-blue{background:linear-gradient(135deg,#4A9CF0,#1D5FB0);}
.bg-red{background:linear-gradient(135deg,#F0665A,#C0392B);}
.bg-purple{background:linear-gradient(135deg,#A55BC9,#6C3483);}
.bg-teal{background:linear-gradient(135deg,#28C4A8,#0E7C68);}
.bg-orange{background:linear-gradient(135deg,#F5A94E,#D6790F);}
.bg-navy{background:linear-gradient(135deg,#3E5589,#22315A);}
.bg-amber{background:linear-gradient(135deg,#F2C14E,#C9930A);}
.bg-pink{background:linear-gradient(135deg,#E67FA6,#B03E68);}

/* ---------- category list rows (categories.php) ---------- */
.cat-row{
  display:flex; align-items:center; gap:14px; background:#fff; border-radius:var(--radius-sm);
  padding:12px 14px; margin-bottom:10px; box-shadow:var(--shadow);
}
.cat-row .cat-icon{ width:44px; height:44px; border-radius:12px; font-size:16px; }
.cat-row-body{ flex:1; min-width:0; }
.cat-row-body h4{ margin:0 0 2px; font-size:14.5px; font-weight:700; }
.cat-row-body p{ margin:0; font-size:12px; color:var(--text-soft); }
.cat-row .chev{ color:#C7D1CB; font-size:13px; }

/* ---------- notice list ---------- */
.notice-item{ display:flex; gap:12px; background:#fff; border-radius:var(--radius-sm); padding:12px 14px; margin-bottom:10px; box-shadow:var(--shadow); }
.notice-dot{ width:34px; height:34px; border-radius:50%; background:#FDEDEB; color:var(--red); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.notice-body h4{ margin:0 0 3px; font-size:13.5px; font-weight:700; }
.notice-body span{ font-size:11.5px; color:var(--text-soft); }

/* ---------- listing cards (hospital / doctor / item list) ---------- */
.list-card{
  display:flex; gap:12px; background:#fff; border-radius:var(--radius); padding:12px; margin-bottom:12px;
  box-shadow:var(--shadow); align-items:center; position:relative;
}
.list-card .thumb{
  width:64px; height:64px; border-radius:12px; object-fit:cover; flex-shrink:0; background:var(--primary-light);
}
.list-card .thumb.icon-thumb{ display:flex; align-items:center; justify-content:center; font-size:22px; color:#fff; }
.list-card-body{ flex:1; min-width:0; }
.list-card-body h4{ margin:0 0 4px; font-size:14px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.list-card-body p{ margin:0 0 4px; font-size:12px; color:var(--text-soft); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.list-card-body .tag{ display:inline-flex; align-items:center; gap:4px; font-size:10.5px; background:var(--primary-light); color:var(--primary-dark); padding:2px 8px; border-radius:8px; font-weight:600; }
.list-card .bookmark-btn{ background:none; border:0; color:#C7D1CB; font-size:16px; cursor:pointer; padding:6px; }
.list-card .bookmark-btn.active{ color:var(--red); }
.list-card .call-btn{ width:38px; height:38px; border-radius:50%; background:var(--primary); color:#fff; display:flex; align-items:center; justify-content:center; flex-shrink:0; font-size:14px; box-shadow:var(--shadow); }
.emergency-badge{ position:absolute; top:8px; right:8px; background:var(--red); color:#fff; font-size:9.5px; font-weight:700; padding:2px 7px; border-radius:6px; }

/* ---------- empty state ---------- */
.empty-state{ text-align:center; padding:50px 20px; color:var(--text-soft); }
.empty-state i{ font-size:38px; color:#D7E2DC; margin-bottom:12px; display:block; }
.empty-state p{ margin:0; font-size:13.5px; }

/* ---------- detail page ---------- */
.detail-cover{ width:100%; height:210px; object-fit:cover; background:var(--primary-light); }
.detail-body{ padding:16px; margin-top:-26px; position:relative; }
.detail-card{ background:#fff; border-radius:var(--radius); padding:18px; box-shadow:var(--shadow); }
.detail-card h1{ font-size:19px; margin:0 0 6px; font-weight:800; }
.verified-badge{ display:inline-flex; align-items:center; gap:4px; background:#E8F5EC; color:var(--primary); font-size:11px; font-weight:700; padding:3px 9px; border-radius:8px; margin-bottom:10px; }
.detail-category{ font-size:12.5px; color:var(--text-soft); margin-bottom:14px; }
.detail-row{ display:flex; align-items:flex-start; gap:12px; padding:12px 0; border-bottom:1px solid var(--border); }
.detail-row:last-child{ border-bottom:0; }
.detail-row .ic{ width:34px; height:34px; border-radius:10px; background:var(--primary-light); color:var(--primary); display:flex; align-items:center; justify-content:center; flex-shrink:0; font-size:14px; }
.detail-row .txt{ font-size:13.5px; line-height:1.5; padding-top:6px; }
.detail-row .txt small{ display:block; color:var(--text-soft); font-size:11px; margin-bottom:2px; }
.detail-desc{ margin-top:18px; background:var(--primary-light); border-radius:var(--radius-sm); padding:14px; font-size:13px; line-height:1.7; color:#2C4A38; }

/* ---------- share row ---------- */
.share-row{ display:flex; gap:8px; margin-top:16px; }
.share-btn{ flex:1; display:flex; align-items:center; justify-content:center; gap:6px; padding:11px 8px; border-radius:10px; font-size:12.5px; font-weight:700; border:0; cursor:pointer; font-family:inherit; }
.share-fb{ background:#1877F2; color:#fff; }
.share-wa{ background:#25D366; color:#fff; }
.share-copy{ background:var(--primary-light); color:var(--primary-dark); }

/* ---------- map embed ---------- */
.map-embed{ margin-top:16px; border-radius:var(--radius-sm); overflow:hidden; height:160px; box-shadow:var(--shadow); }
.map-embed iframe{ width:100%; height:100%; border:0; }
.map-directions-link{ display:flex; align-items:center; justify-content:center; gap:8px; margin-top:8px; padding:11px; background:#fff; border:1.5px solid var(--primary); color:var(--primary); border-radius:10px; font-size:13px; font-weight:700; }

/* ---------- ratings & reviews ---------- */
.rating-summary{ display:flex; align-items:center; gap:8px; margin-bottom:10px; }
.rating-summary .stars{ color:#E0E0E0; font-size:13px; letter-spacing:1px; }
.rating-summary .stars i.filled{ color:#F5A623; }
.rating-summary b{ font-size:14px; }
.rating-summary .count{ font-size:11.5px; color:var(--text-soft); }
.star-select{ display:flex; gap:6px; font-size:26px; }
.star-select .star-pick{ color:#E0E0E0; cursor:pointer; transition:color .15s; }
.star-select .star-pick.active{ color:#F5A623; }
.review-item{ padding:12px 0; border-bottom:1px solid var(--border); }
.review-item:last-child{ border-bottom:0; }
.review-item-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:4px; }
.review-item-head b{ font-size:13px; }
.stars.small{ font-size:11px; color:#E0E0E0; }
.stars.small i.filled{ color:#F5A623; }
.review-item p{ font-size:13px; color:var(--text); margin:0 0 4px; line-height:1.6; }
.review-time{ font-size:11px; color:var(--text-soft); }
.floating-call{
  position:fixed; bottom:calc(var(--nav-h) + 14px + env(safe-area-inset-bottom, 0)); left:50%; transform:translateX(-50%);
  width:calc(var(--app-width) - 32px); max-width:calc(100% - 32px); background:var(--primary); color:#fff;
  border:0; border-radius:14px; padding:15px; font-size:15px; font-weight:700; display:flex; align-items:center;
  justify-content:center; gap:8px; box-shadow:0 8px 22px rgba(14,92,44,0.35); cursor:pointer; z-index:25;
}

/* ---------- forms ---------- */
.form-wrap{ padding:20px 16px; }
.form-hero{ text-align:center; margin-bottom:26px; }
.form-hero .logo-circle{ width:70px; height:70px; border-radius:50%; background:var(--primary-light); color:var(--primary); display:flex; align-items:center; justify-content:center; font-size:30px; margin:0 auto 14px; }
.form-hero h1{ font-size:19px; margin:0 0 6px; }
.form-hero p{ margin:0; color:var(--text-soft); font-size:13px; }
.field{ margin-bottom:14px; }
.field label{ display:block; font-size:12.5px; font-weight:600; margin-bottom:6px; color:var(--text); }
.field .input-wrap{ display:flex; align-items:center; background:#fff; border:1px solid var(--border); border-radius:12px; padding:12px 14px; gap:10px; }
.field .input-wrap i{ color:var(--text-soft); width:16px; text-align:center; }
.field input{ border:0; outline:0; flex:1; font-size:16px; font-family:inherit; background:transparent; color:var(--text); }
.btn-primary{ width:100%; background:var(--primary); color:#fff; border:0; border-radius:12px; padding:14px; font-size:15px; font-weight:700; cursor:pointer; box-shadow:0 6px 16px rgba(14,92,44,0.28); }
.btn-outline{ width:100%; background:#fff; color:var(--primary); border:1.5px solid var(--primary); border-radius:12px; padding:13px; font-size:14.5px; font-weight:700; cursor:pointer; }
.form-alt{ text-align:center; margin-top:16px; font-size:13px; color:var(--text-soft); }
.form-alt a{ color:var(--primary); font-weight:700; }
.alert{ padding:12px 14px; border-radius:10px; font-size:13px; margin-bottom:16px; }
.alert-error{ background:#FDECEA; color:#B3261E; }
.alert-success{ background:#E8F5EC; color:var(--primary-dark); }

/* ---------- profile ---------- */
.profile-header{ background:linear-gradient(135deg,var(--primary),var(--primary-dark)); padding:26px 20px 46px; color:#fff; }
.profile-header .avatar{ width:68px; height:68px; border-radius:50%; background:rgba(255,255,255,0.2); display:flex; align-items:center; justify-content:center; font-size:26px; font-weight:700; margin-bottom:12px; }
.profile-header h2{ margin:0 0 4px; font-size:18px; }
.profile-header span{ display:block; font-size:12.5px; opacity:.9; }
.profile-menu{ margin:-30px 16px 0; background:#fff; border-radius:var(--radius); box-shadow:var(--shadow); overflow:hidden; }
.profile-menu a, .profile-menu button{
  width:100%; display:flex; align-items:center; gap:14px; padding:15px 16px; border:0; background:none;
  border-bottom:1px solid var(--border); font-size:14px; text-align:left; cursor:pointer; color:var(--text); font-family:inherit;
}
.profile-menu a:last-child, .profile-menu button:last-child{ border-bottom:0; }
.profile-menu .ic{ width:30px; color:var(--primary); text-align:center; }
.profile-menu .chev{ margin-left:auto; color:#C7D1CB; }
.profile-menu .danger{ color:var(--red); }
.profile-menu .danger .ic{ color:var(--red); }

/* ---------- bottom nav ---------- */
.bottom-nav{
  position:fixed; bottom:0; left:0; right:0; max-width:var(--app-width); margin:0 auto; background:#fff;
  border-top:1px solid var(--border); display:flex; z-index:40; box-shadow:0 -2px 12px rgba(0,0,0,0.05);
  padding-bottom:env(safe-area-inset-bottom, 0);
}
.bottom-nav a{ flex:1; display:flex; flex-direction:column; align-items:center; gap:3px; padding:9px 0 8px; color:#9AA7A0; font-size:10.5px; font-weight:600; }
.bottom-nav a i{ font-size:18px; }
.bottom-nav a.active{ color:var(--primary); }

.sr-only{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* ---------- page transition ---------- */
html.pes-page-loading body{ opacity:0; }
body{ opacity:1; transition:opacity .18s ease; }

.pes-progress-bar{
  position:fixed; top:0; left:0; height:3px; width:0%; background:var(--primary);
  z-index:9999; transition:width .4s ease; box-shadow:0 0 8px var(--primary);
}

/* ---------- alert banner ---------- */
.alert-banner{
  display:flex; align-items:center; gap:10px; padding:12px 14px; font-size:12.5px; font-weight:600;
  position:relative; z-index:35; border-radius:14px; margin:10px 16px 0; box-shadow:0 2px 10px rgba(0,0,0,0.06);
}
.alert-banner span{ flex:1; line-height:1.4; }
.alert-banner .alert-close{ background:rgba(0,0,0,0.06); border:0; color:inherit; opacity:.8; cursor:pointer; font-size:12px; padding:5px 7px; border-radius:8px; flex-shrink:0; }
.alert-banner i:first-child{ font-size:16px; flex-shrink:0; width:30px; height:30px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:rgba(255,255,255,0.55); }
.alert-banner-info{ background:#E7F1FC; color:#1B5FA8; }
.alert-banner-success{ background:#E8F5EC; color:#0E5C2C; }
.alert-banner-warning{ background:#FEF3E2; color:#9A5B0A; }
.alert-banner-danger{ background:#FDECEA; color:#B3261E; }

/* ---------- scrolling notice ticker ---------- */
.notice-ticker{
  display:flex; align-items:center; gap:10px; background:var(--primary-light); color:var(--primary-dark); padding:9px 12px;
  overflow:hidden; white-space:nowrap; position:relative; z-index:34; border-radius:14px; margin:10px 16px 0; box-shadow:0 2px 10px rgba(0,0,0,0.06);
}
.notice-ticker-icon{ flex-shrink:0; font-size:12px; color:#fff; width:24px; height:24px; border-radius:50%; background:var(--primary); display:flex; align-items:center; justify-content:center; }
.notice-ticker-viewport{ flex:1; overflow:hidden; white-space:nowrap; }
.notice-ticker-track{
  display:inline-block; white-space:nowrap; padding-left:100%;
  animation:ticker-scroll 16s linear infinite;
}
.notice-ticker-text{ font-size:12.5px; font-weight:700; }
@keyframes ticker-scroll{
  0%{ transform:translateX(0); }
  100%{ transform:translateX(-100%); }
}

/* ---------- quick action tiles ---------- */
.quick-actions-row{ display:flex; gap:10px; }
.quick-action-tile{
  flex:1; display:flex; flex-direction:column; align-items:center; gap:8px; padding:16px 8px; border-radius:var(--radius);
  color:#fff; box-shadow:var(--shadow); text-align:center;
}
.quick-action-tile i{ font-size:19px; }
.quick-action-tile span{ font-size:11px; font-weight:700; line-height:1.25; }
.quick-action-tile.qa-green{ background:linear-gradient(135deg,#1FB65E,#0E6B32); }
.quick-action-tile.qa-red{ background:linear-gradient(135deg,#F0665A,#C0392B); }
.quick-action-tile.qa-blue{ background:linear-gradient(135deg,#4A9CF0,#1D5FB0); }

/* ---------- PWA install popup (nice centered modal) ---------- */
.install-modal-overlay{
  position:fixed; inset:0; background:rgba(10,20,15,0.55); z-index:9995;
  display:flex; align-items:center; justify-content:center; padding:20px;
  opacity:0; transition:opacity .25s ease;
}
.install-modal-overlay.open{ opacity:1; }
.install-modal-card{
  background:#fff; border-radius:22px; padding:28px 24px 22px; max-width:340px; width:100%;
  text-align:center; position:relative; box-shadow:0 24px 60px rgba(0,0,0,0.3);
  transform:translateY(14px) scale(.96); transition:transform .25s ease;
}
.install-modal-overlay.open .install-modal-card{ transform:translateY(0) scale(1); }
.install-modal-close{
  position:absolute; top:12px; right:12px; width:30px; height:30px; border-radius:50%;
  background:var(--bg); border:0; color:var(--text-soft); font-size:13px; cursor:pointer;
}
.install-modal-icon{
  width:72px; height:72px; border-radius:20px; margin:0 auto 16px; overflow:hidden;
  box-shadow:0 8px 20px rgba(0,0,0,0.15);
}
.install-modal-icon img{ width:100%; height:100%; object-fit:cover; }
.install-modal-card h3{ font-size:17px; margin-bottom:8px; }
.install-modal-card p{ font-size:12.5px; color:var(--text-soft); line-height:1.6; margin-bottom:20px; }
.install-modal-btn{
  width:100%; background:var(--primary); color:#fff; border:0; border-radius:12px;
  padding:13px; font-size:14px; font-weight:700; font-family:inherit; cursor:pointer;
  display:flex; align-items:center; justify-content:center; gap:8px;
  box-shadow:0 8px 18px color-mix(in srgb, var(--primary) 40%, transparent);
}
.install-modal-later{
  width:100%; background:transparent; border:0; color:var(--text-soft); font-size:12.5px;
  font-family:inherit; cursor:pointer; padding:12px 0 0;
}

/* ---------- blood donor filter ---------- */
.blood-group-filter{ display:flex; gap:8px; overflow-x:auto; padding-bottom:14px; scrollbar-width:none; }
.blood-group-filter::-webkit-scrollbar{ display:none; }
.blood-group-filter a{ flex:0 0 auto; padding:8px 16px; border-radius:20px; background:#fff; color:var(--text-soft); font-size:13px; font-weight:700; border:1px solid var(--border); }
.blood-group-filter a.active{ background:var(--red); color:#fff; border-color:var(--red); }

/* ---------- hamburger + side menu drawer ---------- */
.hamburger-btn{
  width:36px; height:36px; border:0; background:rgba(255,255,255,0.16); color:#fff; border-radius:50%;
  display:flex; align-items:center; justify-content:center; font-size:15px; cursor:pointer; flex-shrink:0; margin-left:auto;
}
.side-menu-backdrop{
  position:fixed; inset:0; background:rgba(10,20,15,0.5); opacity:0; visibility:hidden; transition:opacity .25s ease; z-index:9990;
}
.side-menu-backdrop.open{ opacity:1; visibility:visible; }
.side-menu{
  position:fixed; top:0; right:0; bottom:0; width:82%; max-width:320px; background:#fff; z-index:9991;
  transform:translateX(100%); transition:transform .3s ease; display:flex; flex-direction:column;
  box-shadow:-6px 0 24px rgba(0,0,0,0.15);
}
.side-menu.open{ transform:translateX(0); }
.side-menu-head{
  background:linear-gradient(135deg,var(--primary),var(--primary-dark)); color:#fff; padding:22px 18px;
  display:flex; align-items:flex-start; justify-content:space-between; flex-shrink:0;
}
.side-menu-user{ display:flex; align-items:center; gap:12px; }
.side-menu-avatar{
  width:46px; height:46px; border-radius:50%; background:rgba(255,255,255,0.2); display:flex; align-items:center;
  justify-content:center; font-size:18px; font-weight:700; flex-shrink:0;
}
.side-menu-user h4{ margin:0 0 3px; font-size:14.5px; }
.side-menu-user a{ font-size:11.5px; color:rgba(255,255,255,0.85); text-decoration:underline; }
.side-menu-close{ background:rgba(255,255,255,0.16); border:0; color:#fff; width:30px; height:30px; border-radius:50%; cursor:pointer; flex-shrink:0; }
.side-menu-body{ flex:1; overflow-y:auto; padding:14px 0 20px; }
.side-menu-label{ font-size:11px; font-weight:700; color:var(--text-soft); text-transform:uppercase; letter-spacing:.5px; padding:14px 18px 6px; }
.side-menu-section{ padding:0 10px; }
.side-menu-section a{
  display:flex; align-items:center; gap:12px; padding:12px 10px; border-radius:10px; font-size:13.5px; font-weight:600;
  color:var(--text);
}
.side-menu-section a i{ width:18px; text-align:center; color:var(--primary); font-size:14px; }
.side-menu-section a:active{ background:var(--bg); }

/* ---------- live / video section ---------- */
.video-embed-wrap{ position:relative; width:100%; aspect-ratio:16/9; border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow); background:#000; }
.video-embed-wrap iframe, .video-embed-wrap video, .video-embed-wrap embed{
  width:100% !important; height:100% !important; aspect-ratio:16/9; display:block; border:0; position:absolute; inset:0;
}
.live-dot{ display:inline-block; width:9px; height:9px; border-radius:50%; background:var(--red); animation:live-pulse 1.4s ease-in-out infinite; vertical-align:middle; }
@keyframes live-pulse{
  0%{ box-shadow:0 0 0 0 rgba(230,74,59,0.5); }
  70%{ box-shadow:0 0 0 7px rgba(230,74,59,0); }
  100%{ box-shadow:0 0 0 0 rgba(230,74,59,0); }
}

/* ---------- horizontally auto-scrolling reviews marquee ---------- */
.reviews-vscroll-viewport{ overflow:hidden; position:relative; margin:0 -16px; -webkit-mask-image:linear-gradient(90deg,transparent,#000 4%,#000 96%,transparent); mask-image:linear-gradient(90deg,transparent,#000 4%,#000 96%,transparent); }
.reviews-vscroll-track{ display:flex; gap:10px; padding:0 16px; width:max-content; animation:reviews-hscroll linear infinite; animation-duration:30s; }
.reviews-vscroll-viewport:hover .reviews-vscroll-track{ animation-play-state:paused; }
.review-vcard{ flex:0 0 auto; width:230px; background:#fff; border-radius:14px; box-shadow:var(--shadow); padding:14px; }
@keyframes reviews-hscroll{
  0%{ transform:translateX(0); }
  100%{ transform:translateX(-50%); }
}

/* ---------- poll widget ---------- */
.poll-widget{ background:#fff; border-radius:var(--radius); padding:18px; box-shadow:var(--shadow); }
.poll-widget-head{ display:flex; align-items:center; gap:6px; font-size:11.5px; font-weight:700; color:var(--primary); text-transform:uppercase; letter-spacing:.3px; margin-bottom:8px; }
.poll-widget h3{ font-size:14.5px; margin:0 0 14px; line-height:1.5; }
.poll-opt-pick{ display:flex; align-items:center; gap:10px; padding:11px 14px; border:1.5px solid var(--border); border-radius:12px; margin-bottom:9px; cursor:pointer; font-size:13.5px; font-weight:600; }
.poll-opt-pick input{ width:16px; height:16px; accent-color:var(--primary); }
.poll-opt-pick:has(input:checked){ border-color:var(--primary); background:var(--primary-light); }
.poll-opt-result{ margin-bottom:12px; }
.poll-opt-label{ display:flex; justify-content:space-between; font-size:13px; font-weight:600; margin-bottom:5px; }
.poll-opt-track{ background:var(--bg); border-radius:8px; height:12px; overflow:hidden; }
.poll-opt-fill{ background:linear-gradient(90deg,var(--green),var(--primary)); height:100%; border-radius:8px; transition:width .4s ease; }
.poll-total{ font-size:11.5px; color:var(--text-soft); margin-top:8px; text-align:center; }

/* ---------- fare rate chart ---------- */
.fare-table{ background:#fff; border-radius:var(--radius-sm); overflow:hidden; box-shadow:var(--shadow); }
.fare-row{ display:flex; align-items:center; justify-content:space-between; padding:13px 14px; border-bottom:1px solid var(--border); }
.fare-row:last-child{ border-bottom:0; }
.fare-route{ display:flex; align-items:center; gap:8px; font-size:13px; font-weight:600; color:var(--text); }
.fare-route i{ font-size:10px; color:var(--text-soft); }
.fare-amount{ font-size:14px; font-weight:800; color:var(--primary-dark); background:var(--primary-light); padding:4px 10px; border-radius:8px; }
.fare-note{ font-size:11px; color:var(--text-soft); padding:0 14px 10px; margin-top:-6px; }

/* ---------- user directory ---------- */
.user-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.user-card{ background:#fff; border-radius:14px; padding:14px 8px; text-align:center; box-shadow:var(--shadow); display:flex; flex-direction:column; align-items:center; gap:6px; }
.user-card-avatar{ width:56px; height:56px; border-radius:50%; background:var(--primary-light); color:var(--primary); display:flex; align-items:center; justify-content:center; font-size:20px; font-weight:700; overflow:hidden; }
.user-card-avatar img{ width:100%; height:100%; object-fit:cover; }
.user-card h4{ font-size:12px; font-weight:700; margin:0; line-height:1.3; color:var(--text); }
.user-card-since{ font-size:10px; color:var(--text-soft); }

/* ---------- emergency quick-dial ---------- */
.emergency-dial-row{ display:flex; gap:10px; overflow-x:auto; padding-bottom:2px; margin:0 -16px; padding-left:16px; padding-right:16px; -webkit-overflow-scrolling:touch; scrollbar-width:none; }
.emergency-dial-row::-webkit-scrollbar{ display:none; }
.emergency-dial-item{ flex:0 0 auto; width:84px; display:flex; flex-direction:column; align-items:center; gap:6px; background:#fff; border-radius:14px; padding:14px 6px 10px; box-shadow:var(--shadow); text-align:center; }
.emergency-dial-icon{ width:42px; height:42px; border-radius:50%; display:flex; align-items:center; justify-content:center; color:#fff; font-size:16px; }
.emergency-dial-item span{ font-size:11px; font-weight:700; color:var(--text); line-height:1.25; }
.emergency-dial-item .emergency-call-tag{ display:flex; align-items:center; gap:3px; font-size:9.5px; font-weight:700; color:var(--primary); background:var(--primary-light); padding:2px 8px; border-radius:10px; }

.news-gallery-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-top:16px; }
.news-gallery-grid a{ display:block; border-radius:10px; overflow:hidden; aspect-ratio:1/1; }
.news-gallery-grid img{ width:100%; height:100%; object-fit:cover; }

/* ---------- news section (featured + list) ---------- */
.news-featured{ position:relative; display:block; width:100%; aspect-ratio:16/9; border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow); margin-bottom:12px; background:linear-gradient(135deg,var(--green),var(--primary-dark)); }
.news-featured img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.news-featured-noimg{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:30px; color:rgba(255,255,255,0.6); }
.news-featured-overlay{ position:absolute; left:0; right:0; bottom:0; padding:14px; background:linear-gradient(180deg,rgba(0,0,0,0) 0%,rgba(0,0,0,0.78) 90%); color:#fff; }
.news-featured-overlay h3{ margin:0 0 6px; font-size:15px; font-weight:800; line-height:1.35; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.news-featured-overlay span{ font-size:11px; opacity:.9; display:flex; align-items:center; gap:5px; }
.news-video-badge{ position:absolute; top:10px; right:10px; width:34px; height:34px; border-radius:50%; background:rgba(230,74,59,0.92); color:#fff; display:flex; align-items:center; justify-content:center; font-size:13px; box-shadow:0 2px 8px rgba(0,0,0,0.3); }
.news-video-badge-sm{ position:absolute; top:auto; bottom:4px; right:4px; width:20px; height:20px; font-size:8px; }

.news-list{ display:flex; flex-direction:column; gap:10px; }
.news-row{ display:flex; gap:12px; align-items:center; background:#fff; border-radius:var(--radius-sm); padding:9px; box-shadow:var(--shadow); }
.news-row-thumb{ position:relative; width:72px; height:72px; border-radius:10px; overflow:hidden; flex-shrink:0; background:var(--primary-light); }
.news-row-thumb img{ width:100%; height:100%; object-fit:cover; }
.news-row-body{ flex:1; min-width:0; }
.news-row-body h4{ margin:0 0 5px; font-size:13px; font-weight:700; line-height:1.35; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; color:var(--text); }
.news-row-body span{ font-size:10.5px; color:var(--text-soft); display:flex; align-items:center; gap:4px; }

/* ---------- news scroll cards ---------- */
.news-scroll{ display:flex; gap:12px; overflow-x:auto; padding-bottom:4px; margin:0 -16px; padding-left:16px; padding-right:16px; -webkit-overflow-scrolling:touch; scrollbar-width:none; }
.news-scroll::-webkit-scrollbar{ display:none; }
.news-grid{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.news-card{ background:#fff; border-radius:12px; overflow:hidden; box-shadow:var(--shadow); }
.news-scroll .news-card{ flex:0 0 auto; width:180px; }
.news-card img{ width:100%; height:80px; object-fit:cover; }
.news-card-noimg{ width:100%; height:80px; background:var(--primary-light); color:var(--primary); display:flex; align-items:center; justify-content:center; font-size:20px; }
.news-card-body{ padding:8px 10px 10px; }
.news-card-body h4{ margin:0 0 4px; font-size:12px; font-weight:700; line-height:1.35; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.news-card-body span{ font-size:10px; color:var(--text-soft); }

/* ---------- home banner slider ---------- */
.banner-slider{ position:relative; border-radius:var(--radius); overflow:hidden; width:100%; aspect-ratio:16/9; margin-bottom:20px; box-shadow:var(--shadow); background:linear-gradient(135deg,var(--green),var(--primary-dark)); }
.banner-track{ display:flex; height:100%; transition:transform .45s ease; }
.banner-slide{ position:relative; display:block; min-width:100%; height:100%; }
.banner-slide img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.banner-slide .banner-overlay{ position:absolute; inset:0; }
.banner-cta{ display:inline-flex; align-items:center; gap:6px; margin-top:8px; background:rgba(255,255,255,0.2); padding:5px 12px; border-radius:8px; font-size:11.5px; font-weight:700; width:fit-content; }
.banner-dots{ position:absolute; bottom:10px; left:0; right:0; display:flex; justify-content:center; gap:6px; z-index:5; }
.banner-dots span{ width:6px; height:6px; border-radius:50%; background:rgba(255,255,255,0.5); transition:all .25s; }
.banner-dots span.active{ background:#fff; width:16px; border-radius:4px; }

/* ---------- community section: paginated icon slider ---------- */
.community-slider{ display:flex; overflow-x:auto; scroll-snap-type:x mandatory; -webkit-overflow-scrolling:touch; scrollbar-width:none; margin:0 -16px; }
.community-slider::-webkit-scrollbar{ display:none; }
.community-slide{ flex:0 0 100%; scroll-snap-align:start; display:grid; grid-template-columns:repeat(4,1fr); gap:16px 8px; padding:2px 16px 6px; }
.community-slider-dots{ display:flex; justify-content:center; gap:6px; margin-top:8px; }
.community-slider-dot{ width:6px; height:6px; border-radius:50%; background:var(--border); transition:all .25s; }
.community-slider-dot.active{ background:var(--primary); width:16px; border-radius:4px; }

/* ---------- status badges ---------- */
.status-badge{ display:inline-flex; align-items:center; gap:5px; font-size:11px; font-weight:700; padding:4px 10px; border-radius:8px; }
.status-pending{ background:#FEF3E2; color:#9A5B0A; }
.status-published{ background:#E8F5EC; color:#0E5C2C; }
.status-rejected{ background:#FDECEA; color:#B3261E; }

/* ---------- submission cards ---------- */
.sub-card{ background:#fff; border-radius:var(--radius-sm); padding:14px; margin-bottom:12px; box-shadow:var(--shadow); }
.sub-card-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:6px; gap:10px; }
.sub-card-head h4{ margin:0; font-size:14px; font-weight:700; }
.sub-card p{ margin:0; font-size:12px; color:var(--text-soft); }
.sub-card .reject-reason{ margin-top:8px; background:#FDECEA; color:#B3261E; padding:8px 10px; border-radius:8px; font-size:12px; }

/* ---------- step form (submit item) ---------- */
.step-indicator{ display:flex; align-items:center; gap:6px; padding:0 16px 14px; }
.step-dot{ flex:1; height:4px; border-radius:3px; background:var(--border); }
.step-dot.done{ background:var(--primary); }
.step-title{ font-size:15px; font-weight:800; margin:0 0 4px; padding:0 16px; }
.step-sub{ font-size:12.5px; color:var(--text-soft); margin:0 0 16px; padding:0 16px; }
.pick-list{ padding:0 16px; }
.cat-pick-row{
  display:flex; align-items:center; gap:12px; background:#fff; border:1.5px solid var(--border);
  border-radius:14px; padding:12px 14px; margin-bottom:10px; cursor:pointer;
}
.cat-pick-row.selected{ border-color:var(--primary); background:var(--primary-light); }
.cat-pick-name{ flex:1; font-size:13.5px; font-weight:700; color:var(--text); }
.cat-pick-check{ color:var(--primary); font-size:15px; display:none; }
.cat-pick-row.selected .cat-pick-check{ display:inline-block; }
.pick-row{
  display:flex; align-items:center; justify-content:space-between; background:#fff; border:1.5px solid var(--border);
  border-radius:12px; padding:13px 16px; margin-bottom:9px; cursor:pointer; font-size:13.5px; font-weight:600;
}
.pick-row.selected{ border-color:var(--primary); background:var(--primary-light); color:var(--primary-dark); }
.pick-row i{ color:var(--primary); display:none; }
.pick-row.selected i{ display:inline-block; }
.step-actions{ padding:16px; display:flex; gap:10px; }
.step-actions .btn-outline{ flex:0 0 auto; width:auto; padding:13px 20px; }
.upload-box{
  border:1.5px dashed var(--border); border-radius:12px; padding:20px; text-align:center; cursor:pointer; background:#FAFCFB;
}
.upload-box i{ font-size:22px; color:var(--text-soft); margin-bottom:8px; display:block; }
.upload-box span{ font-size:12.5px; color:var(--text-soft); }
.upload-preview{ margin-top:10px; border-radius:10px; max-height:160px; object-fit:cover; width:100%; }
.field textarea{ border:0; outline:0; flex:1; font-size:16px; font-family:inherit; background:transparent; color:var(--text); resize:vertical; min-height:80px; }

/* ---------- feedback board ---------- */
.feedback-intro{ display:flex; gap:12px; background:linear-gradient(135deg,#EEF3FF,#E4ECFF); border-radius:var(--radius); padding:16px; margin-bottom:16px; }
.feedback-intro i{ font-size:22px; color:#4A6CF7; flex-shrink:0; margin-top:2px; }
.feedback-intro h3{ font-size:14px; margin:0 0 5px; color:var(--text); }
.feedback-intro p{ font-size:12px; color:var(--text-soft); margin:0; line-height:1.6; }

/* ---------- nice modal dialog (reusable) ---------- */
.dialog-backdrop{
  position:fixed; inset:0; background:rgba(0,0,0,0.5); z-index:100; display:flex; align-items:flex-end;
  opacity:0; pointer-events:none; transition:opacity .25s;
}
.dialog-backdrop.show{ opacity:1; pointer-events:auto; }
.dialog-box{
  background:#fff; width:100%; max-width:var(--app-width); margin:0 auto; border-radius:20px 20px 0 0;
  padding:22px 20px calc(20px + env(safe-area-inset-bottom,0)); transform:translateY(30px); transition:transform .25s;
  max-height:85vh; overflow-y:auto;
}
.dialog-backdrop.show .dialog-box{ transform:translateY(0); }
@media (min-width:520px){
  .dialog-backdrop{ align-items:center; }
  .dialog-box{ border-radius:20px; max-width:420px; }
}
.dialog-header{ display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; }
.dialog-header h3{ font-size:16px; margin:0; display:flex; align-items:center; gap:8px; color:var(--text); }
.dialog-close{ width:32px; height:32px; border-radius:50%; border:0; background:var(--bg); color:var(--text-soft); font-size:14px; cursor:pointer; }
.page-body{ padding:18px 16px 30px; font-size:13.5px; line-height:1.9; }
.page-body h2{ font-size:16px; }
.static-card{ background:#fff; border-radius:var(--radius); padding:18px; box-shadow:var(--shadow); }

/* ---------- responsive tweaks ---------- */
@media (max-width:360px){
  .content{ padding:12px; }
  .cat-grid{ gap:10px 6px; }
  .cat-icon{ width:46px; height:46px; font-size:17px; }
  .cat-item span{ font-size:10.5px; }
  .banner{ height:130px; }
  .topbar{ padding:14px 12px 16px; }
  .step-actions{ padding:14px; }
  .news-card{ width:150px; }
}

@media (min-width:420px) and (max-width:519px){
  .cat-grid{ grid-template-columns:repeat(4,1fr); }
}
