/* ============================================================
   LIFELINE BANGLADESH — style.css v6.0 "মধ্যরাতের বাংলা"
   Dark Aurora • 3D Motion • Glass Depth • 64-District 3D Map
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&family=Tiro+Bangla:ital@0;1&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  /* জাতীয় রঙ থেকে নেওয়া প্যালেট */
  --bg:          #07120d;
  --bg2:         #0a1812;
  --surface:     rgba(255,255,255,0.045);
  --surface-2:   rgba(255,255,255,0.07);
  --card:        rgba(16, 34, 26, 0.72);
  --border:      rgba(120, 220, 170, 0.14);
  --border-hi:   rgba(120, 220, 170, 0.32);

  --green:       #19c37d;       /* উজ্জ্বল পতাকা-সবুজ */
  --green-deep:  #0e7a53;
  --green-soft:  rgba(25,195,125,0.12);
  --red:         #ff4d5e;       /* জরুরি লাল */
  --red-dark:    #e11d48;
  --red-soft:    rgba(255,77,94,0.12);
  --blue:        #38bdf8;
  --blue-soft:   rgba(56,189,248,0.12);
  --orange:      #fbbf24;
  --orange-soft: rgba(251,191,36,0.12);
  --purple:      #a78bfa;
  --purple-soft: rgba(167,139,250,0.12);
  --gold:        #e9b949;

  --text:        #ecf7f0;
  --text2:       #c8ddd0;
  --text3:       #8fab9c;
  --text4:       #5c7368;

  --glass-bg:     rgba(10, 26, 19, 0.66);
  --glass-border: rgba(140, 230, 185, 0.16);

  --shadow-sm:  0 2px 14px rgba(0,0,0,0.35);
  --shadow:     0 10px 34px rgba(0,0,0,0.45);
  --shadow-lg:  0 18px 60px rgba(0,0,0,0.55);
  --glow-green: 0 0 24px rgba(25,195,125,0.35);
  --glow-red:   0 8px 30px rgba(255,77,94,0.4);

  --r-sm: 10px; --r: 16px; --r-lg: 20px; --r-xl: 28px; --r-2xl: 36px;
  --t: all .22s cubic-bezier(.4,0,.2,1);
  --t-spring: all .45s cubic-bezier(.34,1.56,.64,1);

  --font-body: 'Hind Siliguri', 'Inter', -apple-system, sans-serif;
  --font-display: 'Tiro Bangla', 'Hind Siliguri', serif;
  --font-num: 'Space Grotesk', 'Hind Siliguri', monospace;
}

/* ── RESET ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html { scroll-behavior:smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding-bottom: 88px;
  overflow-x: hidden;
}
button { font-family: inherit; }
input, select, textarea { font-family: inherit; color: var(--text); }
select option { background: #0d2018; color: var(--text); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 6px; }

/* ============================================================
   AURORA ATMOSPHERE — চলমান 3D ব্যাকগ্রাউন্ড
   ============================================================ */
.aurora {
  position: fixed; inset: 0; z-index: -2; overflow: hidden;
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(25,195,125,0.13), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(56,189,248,0.08), transparent 60%),
    radial-gradient(800px 700px at 50% 110%, rgba(255,77,94,0.07), transparent 60%),
    var(--bg);
}
.aurora::before, .aurora::after {
  content:""; position:absolute; border-radius:50%;
  filter: blur(90px); opacity:.5; will-change: transform;
}
.aurora::before {
  width:520px; height:520px; left:-160px; top:-120px;
  background: radial-gradient(circle, rgba(25,195,125,0.32), transparent 65%);
  animation: blobA 26s ease-in-out infinite alternate;
}
.aurora::after {
  width:460px; height:460px; right:-140px; bottom:-100px;
  background: radial-gradient(circle, rgba(56,189,248,0.2), transparent 65%);
  animation: blobB 32s ease-in-out infinite alternate;
}
@keyframes blobA { to { transform: translate(120px, 160px) scale(1.25) rotate(40deg); } }
@keyframes blobB { to { transform: translate(-140px, -120px) scale(1.18) rotate(-30deg); } }

/* 3D গ্রিড ফ্লোর */
.grid-floor {
  position: fixed; left:50%; bottom:-12vh; z-index:-1;
  width: 200vw; height: 60vh; transform: translateX(-50%) perspective(600px) rotateX(64deg);
  background:
    linear-gradient(rgba(25,195,125,0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25,195,125,0.14) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: linear-gradient(transparent, #000 35%, transparent 95%);
          mask-image: linear-gradient(transparent, #000 35%, transparent 95%);
  animation: gridMove 18s linear infinite;
  pointer-events: none;
}
@keyframes gridMove { to { background-position: 0 46px, 0 0; } }

/* ============================================================
   HEADER
   ============================================================ */
.app-header {
  position: sticky; top:0; z-index:60;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  background: rgba(7,18,13,0.72);
  border-bottom: 1px solid var(--border);
}
.header-top {
  display:flex; align-items:center; justify-content:space-between;
  padding: 12px 16px;
  max-width: 760px; margin: 0 auto;
}
.app-logo { display:flex; align-items:center; gap:10px; }
.logo-icon-wrap {
  border-radius: 10px; box-shadow: var(--glow-green);
  animation: logoPulse 4s ease-in-out infinite;
}
@keyframes logoPulse { 50% { box-shadow: 0 0 34px rgba(25,195,125,0.55); } }
.logo-label { font-family: var(--font-num); font-weight:700; font-size:19px; letter-spacing:.3px; }
.logo-label em { font-style:normal; color: var(--green); }
.header-badge {
  font-size: 11.5px; font-weight:600; color: var(--text2);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 12px;
}

.offline-notice {
  position: fixed; top:0; left:0; right:0; z-index:99;
  background: var(--orange); color:#1a1203; text-align:center;
  font-size:12.5px; font-weight:700; padding:7px;
}
.hidden { display:none !important; }

/* ============================================================
   PAGES
   ============================================================ */
.page { display:none; max-width:760px; margin:0 auto; animation: pageIn .42s cubic-bezier(.22,1,.36,1); }
.page.active { display:block; }
.page.slide-out { animation: pageOut .24s ease forwards; }
@keyframes pageIn  { from { opacity:0; transform: translateY(22px) scale(.985); } }
@keyframes pageOut { to   { opacity:0; transform: translateY(-14px); } }

.section-label {
  font-size: 14px; font-weight: 700; color: var(--text2);
  padding: 22px 18px 12px; letter-spacing: .2px;
}

/* স্ক্রল রিভিল */
.reveal { opacity:0; transform: translateY(26px); transition: opacity .6s ease, transform .6s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity:1; transform:none; }

/* ============================================================
   HERO — 3D থিসিস
   ============================================================ */
.hero {
  position: relative;
  margin: 18px 16px 6px;
  padding: 30px 22px 26px;
  border-radius: var(--r-2xl);
  background:
    radial-gradient(160% 130% at 100% 0%, rgba(25,195,125,0.16), transparent 55%),
    linear-gradient(160deg, rgba(14,40,28,0.92), rgba(8,20,14,0.94));
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.06);
  overflow: hidden;
  perspective: 900px;
}
.hero-blob {
  position:absolute; width:340px; height:340px; right:-120px; top:-120px;
  background: radial-gradient(circle, rgba(25,195,125,0.3), transparent 65%);
  border-radius:50%; filter: blur(50px);
  animation: blobA 18s ease-in-out infinite alternate;
}
.hero-eyebrow {
  display:inline-flex; align-items:center; gap:6px;
  font-size: 11.5px; font-weight:700; color: var(--green);
  background: var(--green-soft); border:1px solid rgba(25,195,125,0.3);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 14px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 8.4vw, 44px);
  line-height: 1.18; font-weight: 400;
  background: linear-gradient(100deg, #fff 30%, #9ff0cb 70%, var(--green));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
  position: relative; z-index:2;
}
.hero p { font-size: 14.5px; color: var(--text3); line-height: 1.7; position:relative; z-index:2; }

/* হিরোর ভাসমান 3D মানচিত্র */
.hero-map-wrap {
  position:absolute; right:-26px; top:50%;
  width: 168px; height: 230px;
  transform: translateY(-54%);
  transform-style: preserve-3d;
  animation: heroFloat 7s ease-in-out infinite;
  pointer-events:none; z-index:1; opacity:.95;
}
@keyframes heroFloat {
  0%,100% { transform: translateY(-54%) rotateY(-16deg) rotateX(8deg); }
  50%     { transform: translateY(-58%) rotateY(16deg) rotateX(12deg); }
}
.hero-map-svg { width:100%; height:100%; filter: drop-shadow(0 18px 28px rgba(0,0,0,.5)) drop-shadow(0 0 18px rgba(25,195,125,.25)); }
.hero-map-svg .bd-district {
  fill: rgba(25,195,125,0.16);
  stroke: rgba(25,195,125,0.75);
  stroke-width: 1.1;
}

.hero-stats {
  display:flex; align-items:center; gap:16px;
  margin-top: 20px; position:relative; z-index:2;
}
.hero-stat strong { font-family: var(--font-num); font-size: 21px; color:#fff; display:block; }
.hero-stat small { font-size: 11px; color: var(--text3); font-weight:600; }
.h-divider { width:1px; height:30px; background: var(--border-hi); }

/* হিরো CTA — ম্যাপ */
.hero-map-cta {
  margin-top: 20px; position:relative; z-index:2;
  display:inline-flex; align-items:center; gap:9px;
  background: linear-gradient(120deg, var(--green-deep), var(--green));
  color:#02160c; font-weight:700; font-size:13.5px;
  border:none; border-radius: 999px; padding: 12px 20px;
  cursor:pointer; box-shadow: var(--glow-green);
  transition: var(--t-spring);
}
.hero-map-cta:active { transform: scale(.95); }

/* ============================================================
   CARDS — 3D টিল্ট গ্লাস
   ============================================================ */
.card-wrap { padding: 0 16px; display:flex; flex-direction:column; gap:12px; }
.card {
  background: var(--card);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: var(--t-spring);
  transform-style: preserve-3d;
  position: relative;
}
.card:active { transform: scale(.975); }
.tilt { will-change: transform; }
.card-head { display:flex; align-items:center; gap:12px; }
.c-icon {
  width:46px; height:46px; min-width:46px; border-radius:14px;
  display:flex; align-items:center; justify-content:center;
  font-size:21px; transform: translateZ(20px);
  border:1px solid transparent;
}
.c-icon.red    { background: var(--red-soft);    border-color: rgba(255,77,94,.3); }
.c-icon.blue   { background: var(--blue-soft);   border-color: rgba(56,189,248,.3); }
.c-icon.green  { background: var(--green-soft);  border-color: rgba(25,195,125,.3); }
.c-icon.orange { background: var(--orange-soft); border-color: rgba(251,191,36,.3); }
.c-icon.purple { background: var(--purple-soft); border-color: rgba(167,139,250,.3); }
.c-title { font-size: 15px; font-weight:700; color:#fff; }
.c-sub   { font-size: 12px; color: var(--text3); margin-top:2px; }

/* ============================================================
   EMERGENCY STRIP
   ============================================================ */
.emergency-scroll {
  display:flex; gap:12px; overflow-x:auto; padding: 4px 16px 14px;
  scroll-snap-type: x mandatory; scrollbar-width:none;
}
.emergency-scroll::-webkit-scrollbar { display:none; }
.e-pill {
  scroll-snap-align:start;
  min-width: 196px;
  background: linear-gradient(160deg, rgba(46,18,22,0.85), rgba(20,10,12,0.9));
  border: 1px solid rgba(255,77,94,0.3);
  border-radius: var(--r-lg);
  padding: 14px;
  position:relative; overflow:hidden;
  box-shadow: 0 8px 26px rgba(225,29,72,0.18);
  transition: var(--t-spring);
}
.e-pill::after {
  content:""; position:absolute; inset:-40% auto auto -40%;
  width: 90px; height: 200%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.07), transparent);
  transform: rotate(20deg);
  animation: shine 5s ease-in-out infinite;
}
@keyframes shine { 0%,60% { left:-50%; } 100% { left: 130%; } }
.e-pill:active { transform: scale(.96); }
.e-title  { font-size:13.5px; font-weight:700; color:#fff; }
.e-number { font-family: var(--font-num); font-size:24px; font-weight:700; color: var(--red); margin:5px 0 2px; text-shadow: 0 0 18px rgba(255,77,94,.45); }
.e-desc   { font-size:11px; color: var(--text3); margin-bottom:10px; }
.call-btn-pill {
  display:inline-flex; align-items:center; gap:6px;
  background: linear-gradient(120deg, var(--red-dark), var(--red));
  color:#fff; font-size:12px; font-weight:700;
  border:none; border-radius:999px; padding: 8px 16px;
  cursor:pointer; box-shadow: var(--glow-red);
  text-decoration: none;
  transition: var(--t);
}
.call-btn-pill:active { transform: scale(.93); }

/* ============================================================
   SEARCH GLASS / FORMS
   ============================================================ */
.search-glass {
  margin: 0 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-xl);
  padding: 18px;
  display:flex; flex-direction:column; gap:14px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}
.chip-label { display:block; font-size:11.5px; font-weight:700; color: var(--text3); margin-bottom:6px; }
.chip-select, .f-sel, .form-input {
  width:100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 12px 14px;
  font-size: 14px;
  appearance:none; -webkit-appearance:none;
  transition: var(--t);
}
.chip-select:focus, .f-sel:focus, .form-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(25,195,125,0.16);
  outline:none;
}
.chip-select { background-image: linear-gradient(45deg, transparent 50%, var(--text3) 50%), linear-gradient(135deg, var(--text3) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat:no-repeat; }

.btn-search, .btn-submit {
  display:flex; align-items:center; justify-content:center; gap:8px;
  width:100%;
  background: linear-gradient(120deg, var(--red-dark), var(--red));
  color:#fff; font-size:14.5px; font-weight:700;
  border:none; border-radius:14px; padding: 14px;
  cursor:pointer; box-shadow: var(--glow-red);
  transition: var(--t-spring);
}
.btn-search:active, .btn-submit:active { transform: scale(.96); }
.btn-submit.green { background: linear-gradient(120deg, var(--green-deep), var(--green)); color:#02160c; box-shadow: var(--glow-green); }

.upazila-chips-scroll { display:flex; gap:8px; overflow-x:auto; padding:2px; scrollbar-width:none; }
.upazila-chips-scroll::-webkit-scrollbar { display:none; }
.uz-chip {
  flex:0 0 auto; white-space:nowrap;
  background: var(--surface); color: var(--text2);
  border:1px solid var(--border); border-radius:999px;
  padding: 8px 15px; font-size:12.5px; font-weight:600;
  cursor:pointer; transition: var(--t);
  display:inline-flex; align-items:center; gap:6px;
}
.uz-chip.active {
  background: var(--green-soft); color: var(--green);
  border-color: var(--green); box-shadow: 0 0 14px rgba(25,195,125,.25);
}
.div-dot { width:8px; height:8px; border-radius:50%; display:inline-block; }

.live-label { float:right; display:inline-flex; align-items:center; gap:6px; font-size:11px; color: var(--green); font-weight:700; }
.live-dot { width:8px; height:8px; border-radius:50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: livePulse 1.6s ease-in-out infinite; }
@keyframes livePulse { 50% { opacity:.35; transform: scale(.8); } }

/* ============================================================
   DONOR / JOB / INFO CARDS  (JS-generated)
   ============================================================ */
.donor-card {
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  background: var(--card); border:1px solid var(--glass-border);
  border-radius: var(--r-lg); padding: 14px 16px; margin: 0 16px 12px;
  box-shadow: var(--shadow-sm); backdrop-filter: blur(12px);
  animation: pageIn .4s ease both;
}
.donor-left { flex:1; min-width:0; }
.donor-masked { font-size:15px; font-weight:700; color:#fff; }
.donor-tags { display:flex; flex-wrap:wrap; gap:6px; margin-top:7px; }
.dtag { font-size:10.5px; font-weight:700; border-radius:999px; padding:4px 10px; }
.dtag.blood { background: var(--red-soft); color: var(--red); border:1px solid rgba(255,77,94,.3); }
.dtag.area  { background: var(--blue-soft); color: var(--blue); border:1px solid rgba(56,189,248,.3); }
.dtag.type  { background: var(--green-soft); color: var(--green); border:1px solid rgba(25,195,125,.3); }

.no-result {
  text-align:center; color: var(--text3); font-size:13.5px;
  padding: 36px 24px; margin: 0 16px;
  border:1px dashed var(--border-hi); border-radius: var(--r-lg);
}

.job-item { background: var(--card); border:1px solid var(--glass-border); border-radius: var(--r-lg); padding:15px; box-shadow: var(--shadow-sm); }
.job-top { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.jbadge { font-size:10.5px; font-weight:700; padding:4px 10px; border-radius:999px; }
.jbadge.ft { background: var(--green-soft); color: var(--green); }
.jbadge.pt { background: var(--orange-soft); color: var(--orange); }
.jbadge.in { background: var(--purple-soft); color: var(--purple); }
.job-detail { font-size:12.5px; color: var(--text3); margin-top:6px; line-height:1.6; }
.job-seats { font-size:11.5px; color: var(--gold); font-weight:700; margin-top:6px; }

.info-list { display:flex; flex-direction:column; gap:8px; margin-top:10px; }
.info-item { font-size:13px; color: var(--text2); line-height:1.65; }
.a-map { color: var(--blue); font-weight:600; text-decoration:none; font-size:12.5px; }
.med-result { margin-top:12px; font-size:13px; color: var(--text2); line-height:1.7; }
.nri { color: var(--text3); }
.ptag { font-size:10.5px; font-weight:700; padding:4px 10px; border-radius:999px; background: var(--green-soft); color: var(--green); }

/* ============================================================
   SKELETONS
   ============================================================ */
.skeleton {
  background: linear-gradient(100deg, rgba(255,255,255,0.05) 35%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.05) 65%);
  background-size: 300% 100%;
  animation: skel 1.3s ease-in-out infinite;
  border-radius: 8px;
}
@keyframes skel { to { background-position: -300% 0; } }
.sk-card { background: var(--card); border:1px solid var(--border); border-radius: var(--r-lg); padding:16px; margin:0 16px 12px; }
.sk-line { height:13px; margin-bottom:9px; }
.sk-line.w60 { width:60%; } .sk-line.w80 { width:80%; }
.sk-pill { height:30px; width:104px; border-radius:999px; }

/* ============================================================
   3D MAP PAGE — সিগনেচার ফিচার
   ============================================================ */
.map-hero-label {
  text-align:center; padding: 18px 20px 4px;
}
.map-hero-label h2 {
  font-family: var(--font-display); font-weight:400;
  font-size: clamp(23px, 6.4vw, 30px); color:#fff;
}
.map-hero-label h2 em { font-style:normal; color: var(--green); }
.map-hero-label p { font-size:12.5px; color: var(--text3); margin-top:5px; }

.map-toolbar { padding: 12px 16px 4px; position:relative; z-index:5; }
.map-search-wrap { position:relative; }
#map-search {
  width:100%; background: var(--glass-bg); border:1px solid var(--glass-border);
  border-radius: 999px; padding: 13px 18px 13px 42px; font-size:14px;
  backdrop-filter: blur(14px); transition: var(--t);
}
#map-search:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(25,195,125,.16); outline:none; }
.map-search-icon { position:absolute; left:16px; top:50%; transform:translateY(-50%); font-size:15px; opacity:.7; }
.map-search-results {
  display:none; position:absolute; top: calc(100% + 8px); left:0; right:0; z-index:30;
  background: rgba(10,26,19,0.97); border:1px solid var(--border-hi);
  border-radius: var(--r); overflow:hidden; box-shadow: var(--shadow-lg);
}
.map-search-results.show { display:block; }
.map-sr-item {
  display:block; width:100%; text-align:left;
  background:none; border:none; border-bottom:1px solid var(--border);
  color: var(--text); font-size:14px; padding: 13px 16px; cursor:pointer;
}
.map-sr-item small { color: var(--text4); font-size:11px; margin-left:6px; }
.map-sr-item:active { background: var(--green-soft); }
.map-sr-empty { padding:14px 16px; font-size:13px; color: var(--text3); }

.map-div-chips-scroll { display:flex; gap:8px; overflow-x:auto; padding: 12px 16px 4px; scrollbar-width:none; }
.map-div-chips-scroll::-webkit-scrollbar { display:none; }

/* —— মঞ্চ —— */
#map3d-stage {
  position: relative;
  height: min(64vh, 560px);
  margin: 6px 10px 0;
  perspective: 1100px;
  touch-action: none;
  cursor: grab;
  border-radius: var(--r-xl);
  overflow: hidden;
  background:
    radial-gradient(80% 60% at 50% 30%, rgba(25,195,125,0.08), transparent 70%);
}
#map3d-stage.grabbing { cursor: grabbing; }
#map3d-stage::after { /* মেঝের আলো */
  content:""; position:absolute; left:50%; bottom:6%;
  width:70%; height:14%; transform:translateX(-50%);
  background: radial-gradient(ellipse, rgba(25,195,125,0.22), transparent 70%);
  filter: blur(18px); pointer-events:none;
}
#map3d-world {
  position:absolute; inset: 4% 6%;
  transform-style: preserve-3d;
  transform: rotateX(42deg);
  will-change: transform;
}
#map3d-world svg { position:absolute; inset:0; width:100%; height:100%; overflow:visible; }
.map-depth { transform: translateZ(-22px); filter: blur(1px); }
.map-depth .bd-district { fill:#03130b; stroke:#0a3322; stroke-width:1.4; }
.map-top { transform: translateZ(0); filter: drop-shadow(0 24px 30px rgba(0,0,0,0.55)); }

.bd-district {
  fill: color-mix(in srgb, var(--dc, #19c37d) 22%, #06130d);
  stroke: color-mix(in srgb, var(--dc, #19c37d) 80%, #fff 0%);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
  transition: fill .25s ease, opacity .25s ease, filter .25s ease;
  cursor: pointer;
}
@supports not (fill: color-mix(in srgb, red 50%, blue)) {
  .bd-district { fill: rgba(25,195,125,0.2); stroke: rgba(25,195,125,0.8); }
}
.map-top .bd-district:hover { fill: color-mix(in srgb, var(--dc, #19c37d) 48%, #06130d); filter: drop-shadow(0 0 10px var(--dc)); }
.map-top .bd-district.selected {
  fill: color-mix(in srgb, var(--dc, #19c37d) 62%, #fff 6%);
  stroke: #fff; stroke-width: 1.8;
  filter: drop-shadow(0 0 16px var(--dc));
  animation: distPop .5s cubic-bezier(.34,1.56,.64,1);
}
@keyframes distPop { 0% { transform: translateZ(0);} 50% { transform: translateZ(26px);} 100% { transform: translateZ(14px);} }
.map-top .bd-district.dimmed { opacity:.28; }

.map-ctrl {
  position:absolute; right:14px; top:14px; z-index:10;
  display:flex; flex-direction:column; gap:8px;
}
.map-ctrl button {
  width:42px; height:42px; border-radius:13px;
  background: var(--glass-bg); border:1px solid var(--glass-border);
  color: var(--text); font-size:18px; font-weight:700;
  cursor:pointer; backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm); transition: var(--t);
}
.map-ctrl button:active { transform: scale(.9); background: var(--green-soft); }
.map-hint {
  text-align:center; font-size:11.5px; color: var(--text4);
  padding: 10px 20px 4px;
}

/* —— জেলা ইনফো শিট —— */
.district-sheet {
  position: fixed; left:0; right:0; bottom:0; z-index:88;
  max-width:760px; margin:0 auto;
  background: rgba(10, 26, 19, 0.92);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border:1px solid var(--border-hi); border-bottom:none;
  border-radius: var(--r-2xl) var(--r-2xl) 0 0;
  padding: 12px 22px calc(20px + env(safe-area-inset-bottom));
  transform: translateY(110%);
  transition: transform .5s cubic-bezier(.22,1,.36,1);
  box-shadow: 0 -16px 60px rgba(0,0,0,.6);
}
.district-sheet.open { transform: translateY(0); }
.dsheet-handle { width:42px; height:4.5px; border-radius:99px; background: var(--border-hi); margin: 0 auto 14px; }
.dsheet-head { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
#dsheet-name { font-family: var(--font-display); font-size:27px; font-weight:400; color:#fff; line-height:1.15; }
#dsheet-div { font-size:12px; font-weight:700; color: var(--green); margin-top:3px; }
.dsheet-close {
  background: var(--surface); border:1px solid var(--border);
  color: var(--text2); width:34px; height:34px; min-width:34px; border-radius:50%;
  font-size:15px; cursor:pointer; transition: var(--t);
}
.dsheet-close:active { transform: scale(.88); }
.dsheet-stats { display:flex; gap:10px; margin: 16px 0 12px; }
.dsheet-stat {
  flex:1; text-align:center;
  background: var(--surface); border:1px solid var(--border);
  border-radius: var(--r); padding: 11px 8px;
}
.dsheet-stat strong { font-family: var(--font-num); display:block; font-size:14.5px; color:#fff; }
.dsheet-stat small { font-size:10.5px; color: var(--text3); font-weight:600; }
.dsheet-famous { font-size:13px; color: var(--text2); line-height:1.7; }
.dsheet-famous b { color: var(--gold); font-weight:700; }
.dsheet-actions { display:flex; gap:10px; margin-top:16px; }
.dsheet-actions button {
  flex:1; display:flex; align-items:center; justify-content:center; gap:7px;
  font-size:13px; font-weight:700; border:none; border-radius:14px;
  padding: 13px; cursor:pointer; transition: var(--t-spring);
}
.dsheet-actions button:active { transform: scale(.95); }
#dsheet-blood { background: linear-gradient(120deg, var(--red-dark), var(--red)); color:#fff; box-shadow: var(--glow-red); }
#dsheet-em { background: var(--surface-2); color: var(--text); border:1px solid var(--border-hi) !important; }

/* ============================================================
   MODALS (bottom sheets)
   ============================================================ */
.modal-overlay {
  position: fixed; inset:0; z-index:90;
  background: rgba(2,8,5,0.66);
  backdrop-filter: blur(6px);
  opacity:0; pointer-events:none;
  transition: opacity .3s ease;
  overflow-y:auto;
  display:flex; align-items:flex-end; justify-content:center;
}
.modal-overlay.open { opacity:1; pointer-events:auto; }
.modal-sheet {
  width:100%; max-width:560px; max-height: 90vh; overflow-y:auto;
  background: rgba(12, 28, 20, 0.97);
  border:1px solid var(--border-hi); border-bottom:none;
  border-radius: var(--r-2xl) var(--r-2xl) 0 0;
  padding-bottom: calc(22px + env(safe-area-inset-bottom));
  transform: translateY(60px);
  transition: transform .45s cubic-bezier(.22,1,.36,1);
  box-shadow: 0 -16px 60px rgba(0,0,0,.65);
}
.modal-overlay.open .modal-sheet { transform: translateY(0); }
.modal-handle { width:42px; height:4.5px; border-radius:99px; background: var(--border-hi); margin: 12px auto 4px; }
.modal-title { font-size:17px; font-weight:700; color:#fff; text-align:center; padding: 12px 22px 4px; }

.form-body, .form-group, .f-group { text-align:left; }
.form-group, .f-group { margin-bottom: 14px; }
.form-label, .f-label { display:block; font-size:12px; font-weight:700; color: var(--text3); margin-bottom:6px; }
.f-group input, .form-group input, .form-group textarea, .form-group select {
  width:100%; background: var(--surface); border:1px solid var(--border);
  border-radius:13px; padding:12px 14px; font-size:14px; transition: var(--t);
}
.f-group input:focus, .form-group input:focus, .form-group textarea:focus {
  border-color: var(--green); box-shadow: 0 0 0 3px rgba(25,195,125,.14); outline:none;
}
.f-row { display:flex; gap:12px; }
.f-row > * { flex:1; }
input::placeholder, textarea::placeholder { color: var(--text4); }

/* ============================================================
   INSTALL MODAL
   ============================================================ */
.install-overlay { position:fixed; inset:0; z-index:95; background: rgba(2,8,5,0.7); backdrop-filter: blur(8px); }
.install-modal {
  position:fixed; left:50%; top:50%; z-index:96;
  transform: translate(-50%,-50%);
  width: min(88vw, 360px);
  background: linear-gradient(165deg, rgba(16,38,27,0.98), rgba(8,20,14,0.99));
  border:1px solid var(--border-hi); border-radius: var(--r-2xl);
  padding: 28px 24px; text-align:center;
  box-shadow: var(--shadow-lg), var(--glow-green);
  animation: pageIn .5s cubic-bezier(.34,1.56,.64,1);
}
.install-modal-icon img { width:72px; height:72px; border-radius:18px; box-shadow: var(--glow-green); }
.install-modal-title { font-family: var(--font-display); font-weight:400; font-size:23px; color:#fff; margin-top:14px; }
.install-modal-sub { font-size:12.5px; color: var(--text3); margin-top:4px; }
.install-modal-features { list-style:none; text-align:left; margin: 18px auto 6px; max-width:230px; }
.install-modal-features li { font-size:13.5px; color: var(--text2); padding: 6px 0; }
.install-modal-btn-primary {
  width:100%; margin-top:14px;
  background: linear-gradient(120deg, var(--green-deep), var(--green));
  color:#02160c; font-size:14.5px; font-weight:700;
  border:none; border-radius:14px; padding:14px; cursor:pointer;
  box-shadow: var(--glow-green); transition: var(--t-spring);
}
.install-modal-btn-primary:active { transform: scale(.96); }
.install-modal-btn-secondary {
  width:100%; margin-top:10px; background:none;
  color: var(--text3); font-size:13px; font-weight:600;
  border:none; padding:8px; cursor:pointer;
}

/* ============================================================
   FAB + TOAST + NAV
   ============================================================ */
.fab {
  position:fixed; right:18px; bottom: 96px; z-index:70;
  width:58px; height:58px; border-radius:50%;
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  color:#fff; font-size:28px; border:none; cursor:pointer;
  box-shadow: var(--glow-red);
  transition: var(--t-spring);
  animation: fabFloat 3.5s ease-in-out infinite;
}
@keyframes fabFloat { 50% { transform: translateY(-6px); } }
.fab:active { transform: scale(.88); }

#toast {
  position:fixed; left:50%; bottom:104px; z-index:99;
  transform: translateX(-50%) translateY(20px);
  background: rgba(10,26,19,0.95); color:#fff;
  border:1px solid var(--border-hi);
  font-size:13.5px; font-weight:600;
  border-radius:999px; padding: 12px 22px;
  opacity:0; pointer-events:none;
  transition: var(--t-spring);
  box-shadow: var(--shadow-lg);
  white-space:nowrap; max-width:90vw; overflow:hidden; text-overflow:ellipsis;
}
#toast.show { opacity:1; transform: translateX(-50%) translateY(0); }

.bottom-nav {
  position:fixed; left:50%; bottom: 14px; z-index:85;
  transform: translateX(-50%);
  width: min(96vw, 520px);
  display:flex; justify-content:space-around; align-items:center;
  background: rgba(9, 22, 16, 0.82);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom)/2);
  box-shadow: var(--shadow-lg);
}
.nav-item {
  flex: 1; display:flex; flex-direction:column; align-items:center; gap:3px;
  background:none; border:none; cursor:pointer;
  padding: 6px 4px; border-radius:18px;
  color: var(--text4); transition: var(--t-spring);
  position:relative; min-width: 0;
}
.nav-icon { font-size:20px; transition: var(--t-spring); filter: grayscale(.6) opacity(.7); line-height:1; }
.nav-label { font-size:9px; font-weight:700; white-space:nowrap; }
.nav-item.active { color: var(--green); }
.nav-item.active .nav-icon { transform: translateY(-2px) scale(1.15); filter:none; }
.nav-item.active::before {
  content:""; position:absolute; inset: 2px 2px;
  background: var(--green-soft); border:1px solid rgba(25,195,125,.25);
  border-radius:18px; z-index:-1;
}

/* ============================================================
   RESPONSIVE + MOTION
   ============================================================ */
@media (min-width: 700px) {
  .hero { padding: 44px 38px; }
  .hero-map-wrap { width: 230px; height: 320px; right: 10px; }
  #map3d-stage { height: 600px; }
}
@media (max-width: 380px) {
  .hero-map-wrap { opacity:.4; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity:1; transform:none; }
}

/* ============================================================
   IN-APP BROWSER BANNER (FB/Instagram) v7.7
   ============================================================ */
.inapp-banner {
  position: fixed;
  top: env(safe-area-inset-top, 0);
  left: 0; right: 0;
  z-index: 9999;
  background: linear-gradient(180deg, #1a3a25 0%, #0f2418 100%);
  border-bottom: 1px solid rgba(255, 200, 60, 0.3);
  padding: 12px 16px calc(12px + env(safe-area-inset-top, 0));
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  transform: translateY(-110%);
  transition: transform .4s cubic-bezier(.22,1,.36,1);
  font-family: var(--font-bn, 'Hind Siliguri', sans-serif);
}
.inapp-banner.show { transform: translateY(0); }
.inapp-banner.hidden { display: none; }
.iab-body {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.iab-icon { font-size: 22px; flex-shrink: 0; }
.iab-text { display: flex; flex-direction: column; min-width: 0; }
.iab-text strong {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}
.iab-text small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  line-height: 1.3;
  margin-top: 2px;
}
.iab-actions { display: flex; gap: 6px; flex-shrink: 0; }
.iab-btn {
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.iab-primary {
  background: #19c37d;
  color: #06130d;
}
.iab-primary:active { background: #15a86b; }
.iab-ghost {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
@media (max-width: 420px) {
  .inapp-banner { flex-direction: column; align-items: stretch; }
  .iab-actions { justify-content: stretch; }
  .iab-btn { flex: 1; padding: 10px; }
}

/* ============================================================
   LOW-PERFORMANCE MODE v7.7
   ── Facebook/Instagram in-app browser, পুরোনো ফোন, কম RAM
   ── অটো-detect হলে .low-perf class বসে — সব heavy effect বন্ধ
   ============================================================ */
html.low-perf .aurora,
html.low-perf .aurora::before,
html.low-perf .aurora::after {
  animation: none !important;
  filter: none !important;
  opacity: .3 !important;
}
html.low-perf .grid-floor {
  animation: none !important;
  opacity: .25 !important;
}
html.low-perf .hero-video,
html.low-perf .map-ambient-video,
html.low-perf .g-video {
  display: none !important;
}
html.low-perf .hero-video-fallback { z-index: 0 !important; }
html.low-perf * {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
html.low-perf .splash-pulse,
html.low-perf .splash-logo img,
html.low-perf .live-dot,
html.low-perf .ic-pulse {
  animation: none !important;
}
html.low-perf .hero-bg-overlay,
html.low-perf .hero-bg-vignette {
  background: linear-gradient(180deg, rgba(5,16,11,0.85), rgba(5,16,11,0.95)) !important;
}
html.low-perf .install-sheet,
html.low-perf .install-sheet-overlay,
html.low-perf .install-chip {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background-color: rgba(7, 18, 13, 0.98) !important;
}
html.low-perf .install-sheet-overlay {
  background: rgba(2, 8, 5, 0.85) !important;
}
/* FB browser এ scroll glitch fix */
html.low-perf body {
  -webkit-overflow-scrolling: auto !important;
  overflow-anchor: none;
}
/* heavy 3D transforms বন্ধ low-perf এ */
html.low-perf .map-depth,
html.low-perf .map-top {
  transform: none !important;
  filter: none !important;
}
html.low-perf .reveal {
  opacity: 1 !important;
  transform: none !important;
}

/* ============================================================
   PHOTO LAYER v6.1 — হিরো স্লাইডশো, গ্যালারি, শিট-ফটো
   ============================================================ */

/* —— হিরো সিনেমাটিক ব্যাকগ্রাউন্ড —— */
.hero-bg { position:absolute; inset:0; z-index:0; overflow:hidden; border-radius: inherit; }
.hb-img {
  position:absolute; inset:0; width:100%; height:100%;
  object-fit: cover; opacity:0;
  animation: heroSlide 18s ease-in-out infinite;
  will-change: opacity, transform;
}
.hb-1 { animation-delay: 0s; }
.hb-2 { animation-delay: 6s; }
.hb-3 { animation-delay: 12s; }
@keyframes heroSlide {
  0%      { opacity:0; transform: scale(1.08); }
  4%,30%  { opacity:1; }
  36%,100%{ opacity:0; transform: scale(1.18); }
}
.hero-bg-overlay {
  position:absolute; inset:0;
  background:
    linear-gradient(100deg, rgba(5,16,11,0.93) 38%, rgba(5,16,11,0.55) 68%, rgba(5,16,11,0.3)),
    linear-gradient(0deg, rgba(5,16,11,0.55), transparent 45%);
}
.hero > *:not(.hero-bg):not(.hero-map-wrap):not(.hero-blob) { position:relative; z-index:2; }
.hero .hero-map-wrap { z-index:1; }
.hero .hero-eyebrow { backdrop-filter: blur(6px); background: rgba(25,195,125,0.16); }
.hero p { color: var(--text2); text-shadow: 0 1px 10px rgba(0,0,0,.5); }
.hero-stat strong { text-shadow: 0 2px 14px rgba(0,0,0,.6); }

/* —— বাংলাদেশ আবিষ্কার গ্যালারি —— */
.gallery-scroll {
  display:flex; gap:12px; overflow-x:auto;
  padding: 4px 16px 16px;
  scroll-snap-type: x mandatory; scrollbar-width:none;
  align-items: flex-end;
}
.gallery-scroll::-webkit-scrollbar { display:none; }
.g-card {
  position:relative; flex:0 0 auto;
  width: 168px; height: 210px;
  scroll-snap-align:start;
  border:none; border-radius: var(--r-lg);
  overflow:hidden; cursor:pointer; padding:0;
  background: var(--card);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  transition: var(--t-spring);
  transform-style: preserve-3d;
}
.g-card.g-tall { height: 250px; }
.g-card:active { transform: scale(.94) rotateZ(-1deg); }
.g-card img {
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover;
  transition: transform .8s cubic-bezier(.22,1,.36,1);
}
.g-card:hover img { transform: scale(1.1); }
.g-grad {
  position:absolute; inset:0;
  background: linear-gradient(0deg, rgba(4,12,8,0.88) 0%, rgba(4,12,8,0.25) 45%, transparent 70%);
}
.g-meta {
  position:absolute; left:12px; right:12px; bottom:11px;
  text-align:left; display:flex; flex-direction:column; gap:2px;
}
.g-meta strong { font-size:13.5px; font-weight:700; color:#fff; text-shadow: 0 1px 8px rgba(0,0,0,.7); }
.g-meta small { font-size:10.5px; font-weight:600; color: var(--green); }

/* —— জেলা শিটের ফটো হেডার —— */
.dsheet-photo {
  display:none; position:relative;
  margin: -12px -22px 10px;
  height: 148px; overflow:hidden;
  border-radius: var(--r-2xl) var(--r-2xl) 0 0;
}
.dsheet-photo.show { display:block; }
.dsheet-photo img { width:100%; height:100%; object-fit:cover; }
.dsheet-photo-grad {
  position:absolute; inset:0;
  background: linear-gradient(0deg, rgba(10,26,19,1) 4%, rgba(10,26,19,0.25) 55%, rgba(10,26,19,0.15));
}
.district-sheet { overflow:hidden; }

@media (min-width:700px) {
  .g-card { width: 210px; height: 240px; }
  .g-card.g-tall { height: 290px; }
  .dsheet-photo { height: 190px; }
}

/* ============================================================
   VIDEO LAYER v6.2 — সিনেমাটিক মুভিং ব্যাকগ্রাউন্ড
   ============================================================ */

/* ── হিরো ভিডিও ── */
.hero-video {
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit: cover;
  z-index:0;
  /* কালার গ্রেডিং — সবুজ-নীল ফিল্টার, ব্র্যান্ডের সাথে মিল */
  filter: brightness(0.62) saturate(1.15) contrast(1.08) hue-rotate(-8deg);
  animation: heroVideoZoom 25s ease-in-out infinite alternate;
}
@keyframes heroVideoZoom {
  0%   { transform: scale(1.04) translateX(0); }
  100% { transform: scale(1.14) translateX(-2%); }
}
.hero-video-fallback {
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; z-index:-1;
}
.hero-bg-vignette {
  position:absolute; inset:0; z-index:1;
  background:
    radial-gradient(120% 100% at 50% 0%, transparent 40%, rgba(5,16,11,0.75)),
    linear-gradient(180deg, rgba(5,16,11,0.4) 0%, transparent 25%, transparent 70%, rgba(5,16,11,0.8) 100%);
  pointer-events:none;
}
.hero-bg-overlay {
  z-index:1;
  background:
    linear-gradient(100deg, rgba(5,16,11,0.78) 30%, rgba(5,16,11,0.4) 65%, rgba(5,16,11,0.15)),
    linear-gradient(0deg, rgba(5,16,11,0.45), transparent 50%);
}
/* old slideshow images — কাজে নেই */
.hb-img { display:none; }

/* ── ম্যাপ পেজের অ্যাম্বিয়েন্ট ভিডিও ── */
.map-ambient-video {
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  z-index:0; opacity:0.32;
  filter: blur(2px) brightness(0.55) saturate(1.3) hue-rotate(-15deg);
  animation: ambientPan 30s ease-in-out infinite alternate;
}
@keyframes ambientPan {
  0%   { transform: scale(1.1) translateX(0); }
  100% { transform: scale(1.18) translateX(-3%); }
}
.map-ambient-overlay {
  position:absolute; inset:0; z-index:1;
  background:
    radial-gradient(80% 60% at 50% 30%, rgba(25,195,125,0.12), transparent 70%),
    linear-gradient(180deg, rgba(7,18,13,0.5), rgba(7,18,13,0.7));
  pointer-events:none;
}
#map3d-world { z-index:2; }
#map3d-stage .map-ctrl { z-index:10; }

/* ── গ্যালারির ভিডিও কার্ড ── */
.g-video-card { position:relative; }
.g-video {
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  filter: brightness(0.85) saturate(1.1);
  transition: transform .8s cubic-bezier(.22,1,.36,1);
}
.g-card:hover .g-video { transform: scale(1.08); }
.g-video-badge {
  position:absolute; top:10px; left:10px;
  background: rgba(255,77,94,0.92);
  color:#fff; font-family: var(--font-num);
  font-size:10px; font-weight:700;
  padding: 4px 10px; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(255,77,94,0.4);
  letter-spacing: .5px;
  animation: liveBadgePulse 2s ease-in-out infinite;
  backdrop-filter: blur(8px);
}
@keyframes liveBadgePulse {
  50% { box-shadow: 0 4px 22px rgba(255,77,94,0.7); transform: scale(1.04); }
}

/* মোবাইল ডেটা সাশ্রয়ের জন্য prefers-reduced-data হলে ভিডিও বন্ধ */
@media (prefers-reduced-data: reduce) {
  .hero-video, .map-ambient-video, .g-video { display:none; }
  .hero-video-fallback { z-index:0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-video, .map-ambient-video, .g-video {
    animation: none !important;
  }
}

/* ============================================================
   NATIVE-APP LAYER v6.3
   স্প্ল্যাশ • ইনস্টল শিট • চিপ • অ্যাপ-মোড পলিশ
   ============================================================ */

/* — স্ট্যান্ডঅ্যালোন (অ্যাপ মোডে) safe-area + no select — */
html.standalone-app, html.standalone-app body {
  overscroll-behavior: none;
  -webkit-user-select: none; user-select: none;
}
html.standalone-app input,
html.standalone-app textarea {
  -webkit-user-select: text; user-select: text;
}
html.standalone-app body { padding-top: env(safe-area-inset-top); }
html.standalone-app .app-header { padding-top: env(safe-area-inset-top); }
html.standalone-app .bottom-nav { bottom: max(14px, env(safe-area-inset-bottom)); }

/* iOS-এ overscroll bounce-এর সবুজ ব্যাকগ্রাউন্ড */
html.is-ios body::before {
  content:""; position: fixed; top:-100px; left:0; right:0; height: 100px;
  background: var(--bg); z-index:-1;
}

/* ────────────────────────────────────────
   স্প্ল্যাশ স্ক্রিন
   ──────────────────────────────────────── */
.app-splash {
  position: fixed; inset:0; z-index: 9999;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  background:
    radial-gradient(120% 90% at 50% 30%, rgba(25,195,125,0.18), transparent 65%),
    var(--bg);
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
  transition: opacity .55s cubic-bezier(.22,1,.36,1), visibility .55s;
}
.app-splash.splash-done { opacity:0; visibility: hidden; pointer-events: none; }

.splash-logo {
  position: relative;
  width: 110px; height: 110px;
  display:flex; align-items:center; justify-content:center;
  margin-bottom: 22px;
}
.splash-logo img {
  width: 96px; height: 96px;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(0,0,0,.5), 0 0 40px rgba(25,195,125,.35);
  animation: splashLogo 2s cubic-bezier(.34,1.56,.64,1) infinite alternate;
  position: relative; z-index:2;
}
@keyframes splashLogo {
  0%   { transform: scale(1) rotate(-2deg); }
  100% { transform: scale(1.06) rotate(2deg); }
}
.splash-pulse {
  position:absolute; inset:-12px;
  border: 2px solid rgba(25,195,125,.4);
  border-radius: 32px;
  animation: splashPulse 2s ease-out infinite;
}
@keyframes splashPulse {
  0%   { transform: scale(.9); opacity:.8; }
  100% { transform: scale(1.3); opacity:0; }
}

.splash-title {
  font-family: var(--font-num);
  font-weight: 700; font-size: 30px;
  letter-spacing: .5px; color: #fff;
  margin-bottom: 6px;
  animation: splashFade .7s ease both .2s;
}
.splash-title em { font-style:normal; color: var(--green); }
.splash-sub {
  font-size: 13px; color: var(--text3);
  animation: splashFade .7s ease both .35s;
}

.splash-bar {
  width: 130px; height: 3px; margin-top: 26px;
  background: rgba(255,255,255,.07);
  border-radius: 99px; overflow: hidden;
  animation: splashFade .7s ease both .5s;
}
.splash-bar span {
  display:block; height: 100%; width: 40%;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  border-radius: 99px;
  animation: splashBar 1.2s ease-in-out infinite;
}
@keyframes splashBar {
  0%   { transform: translateX(-130%); }
  100% { transform: translateX(330%); }
}
@keyframes splashFade {
  from { opacity:0; transform: translateY(8px); }
  to   { opacity:1; transform:none; }
}

.splash-credit {
  position: absolute; bottom: calc(28px + env(safe-area-inset-bottom));
  font-size: 11px; color: var(--text4); font-weight: 600;
  animation: splashFade .7s ease both .7s;
}

/* ────────────────────────────────────────
   ইনস্টল চিপ (ছোট ফ্লোটিং বাটন)
   ──────────────────────────────────────── */
.install-chip {
  position: fixed; left: 50%; bottom: 86px;
  transform: translateX(-50%) translateY(20px);
  z-index: 75;
  display: inline-flex; align-items:center; gap: 9px;
  background: rgba(10, 26, 19, 0.92);
  border: 1px solid var(--border-hi);
  border-radius: 999px;
  padding: 10px 14px 10px 18px;
  color: var(--text);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 12px 36px rgba(0,0,0,.55), 0 0 24px rgba(25,195,125,.18);
  cursor: pointer;
  font-family: inherit;
  opacity: 0; pointer-events: none;
  transition: var(--t-spring);
}
.install-chip.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.install-chip.hidden { display: none; }
.install-chip:active { transform: translateX(-50%) translateY(0) scale(.95); }

.ic-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 12px var(--green);
  animation: livePulse 1.6s ease-in-out infinite;
}
.ic-icon { font-size: 16px; }
.ic-text { font-size: 13px; font-weight: 700; }
.ic-close {
  margin-left: 4px; padding: 4px 6px;
  border-radius: 50%; font-size: 11px;
  color: var(--text4);
  transition: background .15s;
}
.ic-close:hover { background: var(--surface-2); }

/* হোম পেজে যখন বটম nav-এর সাথে collide না করে */
html.standalone-app .install-chip { display: none !important; }

/* ────────────────────────────────────────
   ইনস্টল বটম-শিট
   ──────────────────────────────────────── */
.install-sheet-overlay {
  position: fixed; inset:0; z-index: 96;
  background: rgba(2,8,5,0.72);
  backdrop-filter: blur(8px);
  opacity: 0; transition: opacity .35s ease;
  pointer-events: none;
}
.install-sheet-overlay.open { opacity:1; pointer-events: auto; }
.install-sheet-overlay.hidden { display: none; }

.install-sheet {
  position: fixed; left:0; right:0; bottom:0; z-index: 97;
  max-width: 560px; margin: 0 auto;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(25,195,125,.12), transparent 60%),
    linear-gradient(180deg, rgba(14,32,23,0.98), rgba(7,18,13,0.99));
  border: 1px solid var(--border-hi);
  border-bottom: none;
  border-radius: var(--r-2xl) var(--r-2xl) 0 0;
  padding: 10px 0 calc(22px + env(safe-area-inset-bottom));
  transform: translateY(110%);
  transition: transform .5s cubic-bezier(.22,1,.36,1);
  box-shadow: 0 -16px 60px rgba(0,0,0,.7);
  max-height: 92vh; overflow-y: auto;
}
.install-sheet.open { transform: translateY(0); }
.install-sheet.hidden { display: none; }

.ins-handle {
  width: 42px; height: 4.5px; border-radius: 99px;
  background: var(--border-hi);
  margin: 0 auto 6px;
}

/* প্রিভিউ এরিয়া — ফোন মকআপ + grow */
.ins-preview {
  position: relative;
  height: 170px;
  overflow: hidden;
  margin: 4px 0 -6px;
}
.ins-phone {
  position: absolute; left: 50%; top: 18px;
  transform: translateX(-50%) perspective(700px) rotateX(8deg);
  width: 120px; height: 200px;
  background: linear-gradient(160deg, #1a3024, #07120d);
  border: 2px solid #0d3624;
  border-radius: 22px;
  padding: 10px 6px;
  box-shadow:
    0 30px 50px rgba(0,0,0,.6),
    0 0 40px rgba(25,195,125,.25),
    inset 0 1px 0 rgba(255,255,255,.06);
  animation: phoneFloat 4s ease-in-out infinite alternate;
}
@keyframes phoneFloat {
  0%   { transform: translateX(-50%) perspective(700px) rotateX(8deg) translateY(0); }
  100% { transform: translateX(-50%) perspective(700px) rotateX(12deg) translateY(-6px); }
}
.ins-phone-notch {
  position: absolute; top: 4px; left: 50%; transform: translateX(-50%);
  width: 38px; height: 5px; background: #000;
  border-radius: 99px;
}
.ins-phone-screen {
  background: linear-gradient(180deg, #0a1d14, #050c08);
  border-radius: 14px; padding: 14px 10px 10px;
  height: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 9px;
}
.ins-phone-screen img {
  width: 38px; height: 38px; border-radius: 9px;
  margin-top: 6px; box-shadow: 0 4px 12px rgba(25,195,125,.4);
}
.ins-phone-bar {
  width: 80%; height: 6px; border-radius: 99px;
  background: linear-gradient(90deg, rgba(25,195,125,.5), rgba(25,195,125,.15));
}
.ins-phone-bar.w70 { width: 65%; background: linear-gradient(90deg, rgba(56,189,248,.5), rgba(56,189,248,.15)); }
.ins-phone-bar.w50 { width: 45%; background: linear-gradient(90deg, rgba(255,77,94,.5), rgba(255,77,94,.15)); }

.ins-glow {
  position: absolute; inset: auto 0 -10px 0;
  height: 100px;
  background: radial-gradient(60% 100% at 50% 100%, rgba(25,195,125,.3), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

.ins-body { padding: 6px 22px 0; }

.ins-app {
  display: flex; align-items: center; gap: 12px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  margin-bottom: 18px;
}
.ins-app-icon {
  width: 52px; height: 52px; border-radius: 13px;
  box-shadow: 0 6px 18px rgba(25,195,125,.3);
}
.ins-app-name {
  font-size: 15px; font-weight: 700; color: #fff;
}
.ins-app-meta {
  font-size: 11.5px; color: var(--text3);
  margin-top: 3px; font-weight: 600;
}
.ins-app-meta span:first-child { color: var(--gold); }

.ins-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: 24px; color: #fff; line-height: 1.2;
  text-align: center; margin-bottom: 6px;
}
.ins-sub {
  font-size: 13px; color: var(--text3); text-align: center;
  line-height: 1.6; margin-bottom: 18px;
}

.ins-features {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; margin-bottom: 20px;
}
.ins-feat {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 11px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 11.5px;
}
.ins-feat-i {
  font-size: 18px; line-height: 1; margin-top: 1px;
}
.ins-feat b { color: #fff; font-size: 12px; display: block; }
.ins-feat small { color: var(--text3); font-size: 10.5px; }

.ins-btn {
  width: 100%; padding: 15px;
  border: none; border-radius: 14px;
  font-family: inherit; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: var(--t-spring);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.ins-btn:active { transform: scale(.96); }
.ins-btn-primary {
  background: linear-gradient(120deg, var(--green-deep), var(--green));
  color: #02160c;
  box-shadow: var(--glow-green);
  margin-bottom: 10px;
}
.ins-btn-ghost {
  background: transparent;
  color: var(--text3);
  font-size: 13px; font-weight: 600;
  padding: 12px;
}

/* iOS গাইড */
.ins-ios-guide { margin-bottom: 14px; }
.ins-ios-guide.hidden { display: none; }
.ins-ios-step {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 8px;
  font-size: 13px; color: var(--text2);
  line-height: 1.55;
}
.ins-ios-num {
  width: 26px; height: 26px; flex-shrink: 0;
  background: var(--green-soft);
  color: var(--green);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: var(--font-num);
  border: 1px solid rgba(25,195,125,.3);
}
.ins-ios-step strong { color: #fff; }
.ins-ios-share {
  width: 16px; height: 16px; vertical-align: middle;
  color: #38bdf8; margin: 0 2px;
}

.ins-trust {
  display: flex; justify-content: center; gap: 16px;
  margin-top: 14px;
  font-size: 11px; color: var(--text4); font-weight: 600;
}

@media (min-width: 700px) {
  .ins-preview { height: 200px; }
  .ins-phone { width: 140px; height: 230px; }
}

/* ============================================================
   HEADER INSTALL BUTTON v6.4
   সবসময় available — user যেকোনো সময় install ট্রিগার করতে পারে
   ============================================================ */
.header-install-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(120deg, var(--green-deep), var(--green));
  border: none; border-radius: 999px;
  color: #02160c;
  padding: 7px 14px;
  font-family: inherit; font-size: 12px; font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(25,195,125,0.35), 0 0 0 0 rgba(25,195,125,0.4);
  transition: var(--t-spring);
  animation: hibPulse 2.6s ease-in-out infinite;
}
@keyframes hibPulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(25,195,125,0.35), 0 0 0 0 rgba(25,195,125,0.5); }
  50%      { box-shadow: 0 4px 18px rgba(25,195,125,0.55), 0 0 0 8px rgba(25,195,125,0); }
}
.header-install-btn:active { transform: scale(.92); }
.hib-icon { font-size: 13px; }
.hib-text { letter-spacing: .2px; }

/* Standalone (already installed) — hide install button */
html.standalone-app .header-install-btn { display: none; }
html.standalone-app .header-install-btn + .header-badge,
html.standalone-app .app-header::after {
  content: "🇧🇩 সমগ্র বাংলাদেশ";
  font-size: 11.5px; font-weight: 600; color: var(--text2);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 12px;
}

/* ছোট স্ক্রিনে শুধু আইকন */
@media (max-width: 360px) {
  .hib-text { display: none; }
  .header-install-btn { padding: 8px 11px; }
}

/* Better install button states */
#ins-install-btn:disabled {
  opacity: 0.65; cursor: not-allowed;
  animation: none;
}

/* InWebView warning (Facebook/Instagram browser) */
.webview-warning {
  position: fixed; top: 0; left: 0; right: 0; z-index: 99;
  background: linear-gradient(120deg, #fbbf24, #f59e0b);
  color: #1a1203; padding: 10px 16px; text-align: center;
  font-size: 12px; font-weight: 700;
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
}

/* ============================================================
   FEATURES v6.5 — Light Theme • Header Btns • Search • Notif
   ============================================================ */

/* ── LIGHT THEME ── */
html[data-theme="light"] {
  --bg:          #f4f7f5;
  --bg2:         #e9efeb;
  --surface:     rgba(10,40,28,0.04);
  --surface-2:   rgba(10,40,28,0.07);
  --card:        rgba(255,255,255,0.85);
  --border:      rgba(15,110,75,0.16);
  --border-hi:   rgba(15,110,75,0.32);

  --green-soft:  rgba(25,150,100,0.12);
  --red:         #e11d48;
  --red-soft:    rgba(225,29,72,0.10);

  --text:        #0d2419;
  --text2:       #1f3a2e;
  --text3:       #4a6356;
  --text4:       #7d9387;

  --glass-bg:     rgba(255,255,255,0.78);
  --glass-border: rgba(15,110,75,0.18);

  --shadow-sm:  0 2px 14px rgba(20,60,40,0.08);
  --shadow:     0 10px 34px rgba(20,60,40,0.12);
  --shadow-lg:  0 18px 60px rgba(20,60,40,0.16);
  --glow-green: 0 0 22px rgba(25,150,100,0.22);
}
/* লাইট মোডে aurora/grid নরম */
html[data-theme="light"] .aurora {
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(25,150,100,0.10), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(56,150,200,0.06), transparent 60%),
    var(--bg);
}
html[data-theme="light"] .aurora::before { opacity:.25; }
html[data-theme="light"] .aurora::after { opacity:.2; }
html[data-theme="light"] .grid-floor {
  background:
    linear-gradient(rgba(25,150,100,0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25,150,100,0.10) 1px, transparent 1px);
  background-size: 46px 46px;
}
html[data-theme="light"] .app-header { background: rgba(244,247,245,0.82); }
html[data-theme="light"] .bottom-nav { background: rgba(255,255,255,0.86); }
html[data-theme="light"] .logo-label { color: #0d2419; }
html[data-theme="light"] .hero h1 {
  background: linear-gradient(100deg, #0d2419 30%, #0f6e56 75%, var(--green));
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
}
html[data-theme="light"] .hero-bg-overlay {
  background:
    linear-gradient(100deg, rgba(244,247,245,0.82) 30%, rgba(244,247,245,0.45) 65%, rgba(244,247,245,0.2)),
    linear-gradient(0deg, rgba(244,247,245,0.5), transparent 50%);
}
/* smooth theme transition */
body, .app-header, .card, .bottom-nav, .global-search-wrap { transition: background .3s ease, color .3s ease, border-color .3s ease; }

/* ── HEADER ACTION BUTTONS ── */
.header-actions { display:flex; align-items:center; gap:8px; }
.hdr-icon-btn {
  width:38px; height:38px; border-radius:50%;
  background: var(--surface); border:1px solid var(--border);
  color: var(--text); font-size:15px; font-weight:700;
  cursor:pointer; display:flex; align-items:center; justify-content:center;
  transition: var(--t-spring); font-family: var(--font-num);
  padding:0;
}
.hdr-icon-btn:active { transform: scale(.88); }
.hdr-icon-btn:hover { background: var(--surface-2); border-color: var(--border-hi); }
#lang-label { font-size:12px; letter-spacing:.3px; }

@media (max-width:380px){
  .hdr-icon-btn { width:34px; height:34px; font-size:13px; }
  .header-actions { gap:6px; }
}

/* ── GLOBAL SEARCH ── */
.global-search-wrap {
  position: relative;
  margin: 16px 16px 4px;
}
#global-search {
  width:100%;
  background: var(--glass-bg);
  border:1px solid var(--glass-border);
  border-radius: 999px;
  padding: 14px 44px 14px 44px;
  font-size:14px; color: var(--text);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  transition: var(--t);
}
#global-search:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(25,195,125,.16);
  outline:none;
}
#global-search::placeholder { color: var(--text4); }
.gs-icon {
  position:absolute; left:16px; top:50%; transform:translateY(-50%);
  font-size:15px; opacity:.7; pointer-events:none;
}
.gs-clear {
  position:absolute; right:12px; top:50%; transform:translateY(-50%);
  width:26px; height:26px; border-radius:50%;
  background: var(--surface-2); border:none; color: var(--text3);
  font-size:12px; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
}
.gs-clear.hidden { display:none; }
.global-search-results {
  display:none; position:absolute; top:calc(100% + 8px); left:0; right:0; z-index:40;
  background: var(--glass-bg);
  border:1px solid var(--border-hi);
  border-radius: var(--r);
  overflow:hidden; box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}
.global-search-results.show { display:block; animation: pageIn .25s ease; }
.gs-item {
  display:flex; align-items:center; gap:12px; width:100%;
  background:none; border:none; border-bottom:1px solid var(--border);
  padding: 13px 16px; cursor:pointer; text-align:left;
  transition: background .12s;
}
.gs-item:last-child { border-bottom:none; }
.gs-item:hover, .gs-item:active { background: var(--green-soft); }
.gs-item-icon { font-size:19px; flex-shrink:0; }
.gs-item-txt { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.gs-item-txt b { font-size:14px; font-weight:700; color: var(--text); }
.gs-item-txt small { font-size:11.5px; color: var(--text3); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.gs-item-arrow { color: var(--text4); font-size:18px; flex-shrink:0; }
.gs-empty { padding:18px 16px; text-align:center; font-size:13px; color: var(--text3); }

/* ── NOTIFICATION CARD ── */
.notif-card {
  display:flex; align-items:center; gap:12px; flex-wrap:wrap;
  margin: 16px 16px 4px;
  padding: 16px;
  background: linear-gradient(135deg, var(--green-soft), var(--surface));
  border:1px solid var(--border-hi);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.notif-card-icon {
  width:46px; height:46px; border-radius:14px; flex-shrink:0;
  background: var(--green-soft); border:1px solid rgba(25,195,125,.3);
  display:flex; align-items:center; justify-content:center; font-size:22px;
  animation: bellRing 3s ease-in-out infinite;
}
@keyframes bellRing {
  0%,90%,100% { transform: rotate(0); }
  93% { transform: rotate(12deg); } 96% { transform: rotate(-10deg); }
}
.notif-card-body { flex:1; min-width:140px; }
.notif-card-title { font-size:15px; font-weight:700; color: var(--text); }
.notif-card-sub { font-size:12px; color: var(--text3); margin-top:2px; }
.notif-toggle-btn {
  width:100%; margin-top:4px;
  background: linear-gradient(120deg, var(--green-deep), var(--green));
  color:#02160c; font-size:13.5px; font-weight:700;
  border:none; border-radius:12px; padding:12px;
  cursor:pointer; box-shadow: var(--glow-green);
  transition: var(--t-spring);
}
.notif-toggle-btn:active { transform: scale(.96); }
.notif-toggle-btn.notif-on {
  background: var(--surface-2); color: var(--green);
  border:1px solid var(--green); box-shadow:none;
}

/* ============================================================
   UPAZILA ANIMATED SELECT — donor form
   ============================================================ */
@keyframes upazilaSlideIn {
  from { opacity:0; transform: translateY(-10px) scale(.97); }
  to   { opacity:1; transform: translateY(0) scale(1); }
}

.upazila-select-wrap { position:relative; }

.upazila-select-box {
  position: relative;
  display: flex; align-items: center;
}

.upazila-animated-select {
  width: 100%;
  appearance: none; -webkit-appearance: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 14px 44px 14px 16px;
  font-size: 14px; font-family: var(--font-body);
  color: var(--text);
  cursor: pointer;
  transition: border-color .22s ease, box-shadow .22s ease;
  line-height: 1.4;
}
.upazila-animated-select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(25,195,125,.18);
  outline: none;
}
/* বাংলা option text */
.upazila-animated-select option {
  font-family: var(--font-body);
  background: #0d2018;
  color: var(--text);
  padding: 8px;
}
/* selected value highlight */
.upazila-animated-select:not([value=""]):valid {
  border-color: var(--green);
  background: linear-gradient(135deg, var(--green-soft), var(--surface));
}

/* কাস্টম ▾ তীর */
.upazila-select-arrow {
  position: absolute; right: 16px;
  font-size: 14px; color: var(--text3);
  pointer-events: none;
  transition: transform .25s ease;
}
.upazila-animated-select:focus ~ .upazila-select-arrow {
  color: var(--green);
  transform: rotate(180deg);
}

/* জেলা select করার পর upazila wrap-এর label badge */
#new-upazila-wrap .f-label::after {
  content: " ✓";
  font-size: 10px;
  color: var(--green);
  opacity: 0;
  transition: opacity .3s ease;
}
.upazila-animated-select:not([value=""]) ~ span + .f-label::after { opacity:1; }

/* ============================================================
   ✦ PREMIUM UPGRADE v6.6 — "সোনালি গভীরতা" (Gold Depth)
   Cinematic 3D map • refined depth/lighting • micro-interactions
   Appended layer — purely additive, overrides where intended.
   ============================================================ */

/* ── 3D logo intro canvas ── */
.splash-logo.intro-3d {
  width: 240px; height: 240px; margin-bottom: 30px;
}
.splash-logo.intro-3d img,
.splash-logo.intro-3d .splash-pulse { display: none; }
.intro-canvas-wrap {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.intro-canvas-wrap canvas { display: block; }

/* ════════════════════════════════════════
   CINEMATIC 3D MAP
   ════════════════════════════════════════ */
#map3d-stage {
  background:
    radial-gradient(90% 70% at 50% 18%, rgba(34,224,158,0.10), transparent 68%),
    radial-gradient(120% 90% at 50% 120%, rgba(7,18,13,0.0), rgba(3,9,7,0.55) 90%),
    linear-gradient(180deg, rgba(10,26,19,0.55), rgba(4,11,8,0.85));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    inset 0 0 90px rgba(0,0,0,0.55),
    var(--shadow-lg);
}
/* soft top spotlight — gives the scene a lit-from-above read */
#map3d-stage::before {
  content:""; position:absolute; left:50%; top:-22%;
  width:80%; height:55%; transform:translateX(-50%);
  background: radial-gradient(ellipse at 50% 0%, rgba(120,240,190,0.20), transparent 70%);
  filter: blur(26px); pointer-events:none; z-index:1;
}
#map3d-stage::after { /* warmer, wider floor glow */
  width:78%; height:18%;
  background: radial-gradient(ellipse, rgba(34,224,158,0.28), rgba(216,178,74,0.10) 55%, transparent 72%);
  filter: blur(26px);
}

/* world depth ramp: base → extruded wall → glossy surface */
.map-depth { transform: translateZ(-30px); filter: blur(2px); opacity:.92; }
.map-depth .bd-district {
  fill:#02100a; stroke: rgba(6,40,26,0.9); stroke-width:1.2;
  stroke-linejoin: round; stroke-linecap: round;
}
.map-mid { transform: translateZ(-15px); filter: blur(.4px); }
.map-mid .bd-district {
  fill: color-mix(in srgb, var(--dc, #19c37d) 26%, #02110a);
  stroke: color-mix(in srgb, var(--dc, #19c37d) 38%, #000);
  stroke-width: 1; stroke-linejoin: round; stroke-linecap: round;
}
@supports not (fill: color-mix(in srgb, red 50%, blue)) {
  .map-mid .bd-district { fill: rgba(20,120,85,0.5); stroke: rgba(10,60,40,0.8); }
}
.map-top {
  transform: translateZ(2px);
  filter: drop-shadow(0 26px 32px rgba(0,0,0,0.6)) drop-shadow(0 0 1px rgba(255,255,255,0.12));
}

/* glossy surface fill + crisp rounded borders */
.map-top .bd-district {
  fill: color-mix(in srgb, var(--dc, #19c37d) 30%, #05130d);
  stroke: color-mix(in srgb, var(--dc, #19c37d) 78%, #ffffff 10%);
  stroke-width: 1.1; stroke-linejoin: round; stroke-linecap: round;
  transition: fill .3s ease, opacity .35s ease, filter .3s ease, stroke .3s ease;
}
.map-top .bd-district:hover {
  fill: color-mix(in srgb, var(--dc, #19c37d) 55%, #05130d);
  stroke: color-mix(in srgb, var(--dc) 60%, #fff 40%);
  filter: drop-shadow(0 0 14px var(--dc)) drop-shadow(0 0 4px var(--dc));
}
.map-top .bd-district.selected {
  fill: color-mix(in srgb, var(--dc, #19c37d) 68%, #fff 8%);
  stroke: var(--gold); stroke-width: 2;
  animation: distPop .55s cubic-bezier(.34,1.56,.64,1), distGlow 1.9s ease-in-out .55s infinite;
}
@keyframes distGlow {
  0%, 100% { filter: drop-shadow(0 0 8px var(--dc)) drop-shadow(0 0 14px rgba(233,185,73,0.35)); }
  50%      { filter: drop-shadow(0 0 20px var(--dc)) drop-shadow(0 0 30px rgba(233,185,73,0.65)); }
}
.map-top .bd-district.dimmed { opacity:.22; }

/* hero floating map — a touch richer */
.hero-map-svg .bd-district {
  fill: rgba(34,224,158,0.18);
  stroke: rgba(120,240,190,0.8);
  stroke-linejoin: round;
}

/* ════════════════════════════════════════
   AESTHETIC POLISH — depth, micro-interactions
   ════════════════════════════════════════ */

/* smoother type rendering + tighter display headings */
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
.hero h1, .map-hero-label h2 { letter-spacing: -0.01em; }
.section-label { display:flex; align-items:center; }

/* page entrance — gentler, premium ease */
.page { animation: pageInPremium .5s cubic-bezier(.16,1,.3,1); }
@keyframes pageInPremium {
  from { opacity:0; transform: translateY(16px); filter: blur(2px); }
  to   { opacity:1; transform:none; filter: blur(0); }
}

/* cards: lift on hover (pointer devices only — won't fight the JS tilt on mobile) */
@media (hover: hover) {
  .card { transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s ease, border-color .3s ease; }
  .card:hover {
    border-color: var(--border-hi);
    box-shadow: 0 18px 44px rgba(0,0,0,0.5), 0 0 22px rgba(34,224,158,0.10), inset 0 1px 0 rgba(255,255,255,0.06);
  }
  .card:hover .c-icon { transform: translateZ(20px) scale(1.06); transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
  .g-card:hover img, .g-card:hover .g-video { transform: scale(1.06); }
  .g-card img, .g-card .g-video { transition: transform .6s cubic-bezier(.16,1,.3,1); }
  .e-pill:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(225,29,72,0.28); }
  .uz-chip:hover { border-color: var(--border-hi); }
}

/* buttons: consistent hover sheen + lift, snappy active */
.btn-search, .btn-submit, .hero-map-cta, .call-btn-pill, .header-install-btn {
  will-change: transform;
}
@media (hover: hover) {
  .btn-search:hover, .btn-submit:hover {
    transform: translateY(-2px); filter: brightness(1.07) saturate(1.05);
    box-shadow: 0 14px 34px rgba(225,29,72,0.42);
  }
  .btn-submit.green:hover { box-shadow: 0 14px 34px rgba(25,195,125,0.42); }
  .hero-map-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(25,195,125,0.5); }
  .call-btn-pill:hover { transform: translateY(-1px); filter: brightness(1.08); }
  .map-ctrl button:hover { background: var(--green-soft); border-color: var(--border-hi); transform: translateY(-1px); }
}

/* gold-rim accent on the primary glass surfaces for premium depth */
.search-glass, .hero, .install-sheet, .modal-sheet {
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.06), inset 0 0 0 1px rgba(233,185,73,0.05);
}

/* bottom nav active — gold-touched glow */
.nav-item.active::before {
  box-shadow: 0 0 18px rgba(34,224,158,0.28), inset 0 0 12px rgba(233,185,73,0.10);
}
.nav-item .nav-icon { transition: transform .4s cubic-bezier(.34,1.56,.64,1), filter .3s ease; }

/* focus rings a touch softer */
.chip-select:focus, .f-sel:focus, .form-input:focus, #map-search:focus {
  box-shadow: 0 0 0 3px rgba(34,224,158,0.18), 0 0 18px rgba(34,224,158,0.12);
}

/* live dot already pulses; make the header logo settle elegant after intro */
.app-logo { will-change: transform, opacity; }

@media (prefers-reduced-motion: reduce) {
  .map-top .bd-district.selected { animation: none !important; }
  .page { animation: none !important; }
}

/* ============================================================
   AUTH + CHAT — v2 (Fullscreen Chat + Split Login)
   ============================================================ */

.hidden { display: none !important; }

/* ── চ্যাট fullscreen mode: header + bottom nav + background সব hide ── */
body.chat-fullscreen .app-header,
body.chat-fullscreen .bottom-nav,
body.chat-fullscreen .fab,
body.chat-fullscreen #hero-video,
body.chat-fullscreen .hero-bg-video,
body.chat-fullscreen video { display: none !important; }

body.chat-fullscreen { overflow: hidden; }
body.chat-fullscreen .page-wrap, body.chat-fullscreen main { padding: 0 !important; margin: 0 !important; }
body.chat-fullscreen #page-chat {
  position: fixed; inset: 0; padding: 0; margin: 0;
  background: var(--bg); z-index: 9000;
  max-width: none; width: 100%;
}

/* ============================================================
   চ্যাট থ্রেড — FULLSCREEN (WhatsApp-style)
   ============================================================ */
.chat-thread-fullscreen {
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
  background: var(--bg);
  z-index: 9001;
}

/* হেডার — sticky top */
.chat-thread-fullscreen .chat-thread-header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(14,30,22,0.96), rgba(10,24,18,0.92));
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  position: sticky; top: 0; z-index: 10;
  flex-shrink: 0;
}
.chat-thread-fullscreen .chat-back-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--t-spring); flex-shrink: 0;
}
.chat-thread-fullscreen .chat-back-btn:active { transform: scale(.9); }
.chat-thread-titlebox { flex: 1; min-width: 0; }
.chat-thread-titlebox .chat-user-name { font-size: 15px; font-weight: 700; color: #fff; }
.chat-thread-status { font-size: 11.5px; color: var(--green); margin-top: 2px; font-weight: 600; }

/* মেসেজ এরিয়া — scrollable middle */
.chat-thread-fullscreen .chat-messages {
  flex: 1; overflow-y: auto;
  padding: 16px;
  display: flex; flex-direction: column; gap: 8px;
  background:
    radial-gradient(ellipse at top, rgba(25,195,125,0.04), transparent 50%),
    var(--bg);
  min-height: 0; /* flex scroll fix */
  max-height: none;
}

/* মেসেজ বাবল */
.chat-bubble-row { display: flex; }
.chat-bubble-row.mine { justify-content: flex-end; }
.chat-bubble-row.theirs { justify-content: flex-start; }
.chat-bubble {
  max-width: 75%; padding: 9px 13px; border-radius: 14px;
  font-size: 14px; line-height: 1.5; word-wrap: break-word;
  box-shadow: var(--shadow-sm);
}
.chat-bubble-row.mine .chat-bubble {
  background: linear-gradient(120deg, var(--green-deep), var(--green));
  color: #02160c; border-bottom-right-radius: 4px;
}
.chat-bubble-row.theirs .chat-bubble {
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  color: var(--text); border-bottom-left-radius: 4px;
}
.chat-bubble-text { white-space: pre-wrap; }
.chat-bubble-time { font-size: 10px; opacity: .65; margin-top: 4px; text-align: right; }

/* ইনপুট বার — sticky bottom */
.chat-thread-fullscreen .chat-input-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px;
  background: linear-gradient(0deg, rgba(10,24,18,0.96), rgba(14,30,22,0.88));
  border-top: 1px solid var(--border);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  flex-shrink: 0;
  /* safe area for iOS notch */
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}
.chat-thread-fullscreen .chat-input-bar .form-input {
  flex: 1; margin: 0; padding: 11px 16px; border-radius: 22px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  font-size: 14px;
}
.chat-send-btn {
  width: 44px; height: 44px; min-width: 44px; border-radius: 50%; border: none;
  background: linear-gradient(120deg, var(--green-deep), var(--green));
  color: #02160c; font-size: 17px; cursor: pointer; box-shadow: var(--glow-green);
  display: flex; align-items: center; justify-content: center; transition: var(--t-spring);
}
.chat-send-btn:active { transform: scale(.88); }

/* ============================================================
   চ্যাট লিস্ট (লগইন এর পরে যেটা দেখায়)
   ============================================================ */
.auth-profile-bar {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--glass-border); border-radius: var(--r-lg);
  padding: 12px 14px; margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.btn-logout {
  margin-left: auto; padding: 8px 14px; border-radius: var(--r);
  background: var(--red-soft); color: var(--red); border: 1px solid rgba(255,77,94,.3);
  font-weight: 700; font-size: 12.5px; cursor: pointer; transition: var(--t-spring);
}
.btn-logout:active { transform: scale(.95); }

.chat-avatar {
  width: 46px; height: 46px; min-width: 46px; border-radius: 50%;
  background: linear-gradient(120deg, var(--green-deep), var(--green));
  display: flex; align-items: center; justify-content: center;
  color: #02160c; font-weight: 800; font-size: 18px; overflow: hidden;
}
.chat-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.chat-user-list { display: flex; flex-direction: column; gap: 8px; }
.chat-user-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--glass-border); border-radius: var(--r-lg);
  padding: 12px 14px; cursor: pointer; transition: var(--t-spring);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.05);
}
.chat-user-item:active { transform: scale(.98); }
@media (hover: hover) {
  .chat-user-item:hover { border-color: var(--border-hi); transform: translateY(-1px); }
}
.chat-user-info { flex: 1; min-width: 0; }
.chat-user-name { font-size: 14.5px; font-weight: 700; color: #fff; }
.chat-user-sub { font-size: 12px; color: var(--text3); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-arrow { color: var(--text4); font-size: 20px; }
.chat-empty { text-align: center; color: var(--text3); font-size: 13.5px; padding: 40px 20px; }
.chat-loading { text-align: center; color: var(--text4); font-size: 13px; padding: 20px; }

/* ============================================================
   লগইন পেজ — Split-screen (Magnific/Facebook-style)
   ============================================================ */
.auth-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 72vh;
  border-radius: var(--r-2xl);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
  margin: 8px 0;
  background: var(--card);
}

/* ── বাম পাশ: animated brand visual ── */
.auth-visual {
  position: relative;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(25,195,125,0.20), transparent 55%),
    radial-gradient(ellipse at 70% 80%, rgba(14,122,83,0.25), transparent 55%),
    linear-gradient(135deg, #0a2018 0%, #061812 50%, #0a2018 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 32px; overflow: hidden;
  min-height: 460px;
}
.auth-visual-glow {
  position: absolute; width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(25,195,125,0.18), transparent 65%);
  filter: blur(40px);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  animation: authGlowPulse 6s ease-in-out infinite;
}
@keyframes authGlowPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: .7; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}
.auth-visual-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(25,195,125,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25,195,125,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.auth-brand {
  position: relative; z-index: 2;
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.auth-brand-logo {
  position: relative; width: 120px; height: 120px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 6px;
}
.auth-brand-logo img {
  width: 90px; height: 90px; border-radius: 24px;
  box-shadow: 0 0 50px rgba(25,195,125,0.4), 0 14px 40px rgba(0,0,0,0.6);
  animation: authLogoFloat 4s ease-in-out infinite;
  position: relative; z-index: 3;
}
@keyframes authLogoFloat {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-8px) rotate(2deg); }
}
.auth-brand-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(25,195,125,0.35);
  animation: authRingPulse 3s ease-out infinite;
}
.auth-brand-ring-2 { animation-delay: 1.5s; border-color: rgba(233,185,73,0.25); }
@keyframes authRingPulse {
  0% { transform: scale(.7); opacity: 0; }
  40% { opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}
.auth-brand-name {
  font-size: 32px; font-weight: 900; color: #fff;
  letter-spacing: -0.5px;
}
.auth-brand-name em { font-style: normal; color: var(--green); }
.auth-brand-tagline {
  font-size: 13.5px; color: var(--text2); max-width: 280px; line-height: 1.6;
  margin-bottom: 16px;
}
.auth-brand-stats {
  display: flex; gap: 18px; padding-top: 14px;
  border-top: 1px solid rgba(25,195,125,0.18);
}
.auth-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.auth-stat b {
  font-size: 18px; font-weight: 800;
  background: linear-gradient(100deg, #fff 30%, var(--green));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.auth-stat small { font-size: 10.5px; color: var(--text3); font-weight: 600; }

/* ── ডান পাশ: clean login form ── */
.auth-panel {
  display: flex; align-items: center; justify-content: center;
  padding: 40px 32px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
}
.auth-panel-inner { width: 100%; max-width: 360px; }
.auth-welcome {
  font-size: 26px; font-weight: 800; color: #fff;
  margin-bottom: 6px; letter-spacing: -0.3px;
}
.auth-welcome-sub {
  font-size: 13px; color: var(--text3); line-height: 1.55;
  margin-bottom: 24px;
}

/* Google বাটন — ক্লিন সাদা স্টাইল */
.btn-google {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 18px; border-radius: 12px;
  background: #fff; color: #1f1f1f; font-weight: 600; font-size: 14.5px;
  border: 1px solid var(--glass-border); cursor: pointer;
  box-shadow: var(--shadow-sm); transition: var(--t-spring);
  font-family: inherit;
}
.btn-google:active { transform: scale(.97); }
@media (hover: hover) { .btn-google:hover { transform: translateY(-2px); box-shadow: var(--shadow); } }
.btn-google-icon {
  width: 20px; height: 20px; display: flex; align-items: center; justify-content: center;
}
.btn-google-icon svg { width: 20px; height: 20px; }

/* বিভাজক */
.auth-divider {
  display: flex; align-items: center; gap: 12px; margin: 18px 0 14px;
  color: var(--text4); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
}
.auth-divider::before, .auth-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}

/* ট্যাব */
.auth-tabs {
  display: flex; gap: 6px; margin-bottom: 14px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 12px;
  padding: 4px;
}
.auth-tab {
  flex: 1; padding: 9px; border: none; border-radius: 8px;
  background: transparent; color: var(--text3); font-weight: 600; font-size: 13px;
  cursor: pointer; transition: var(--t-spring); font-family: inherit;
}
.auth-tab.active {
  background: linear-gradient(120deg, var(--green-deep), var(--green));
  color: #02160c; box-shadow: 0 4px 16px rgba(25,195,125,0.25);
}

.auth-form.hidden { display: none; }
.auth-form .form-group { margin-bottom: 12px; }
.auth-form .form-input {
  padding: 11px 14px; border-radius: 10px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  font-size: 14px;
}
.auth-foot {
  margin-top: 18px; font-size: 11px; color: var(--text4); text-align: center; line-height: 1.6;
}

/* ── ছোট স্ক্রিন: stack করো (visual উপরে, form নিচে) ── */
@media (max-width: 760px) {
  .auth-split { grid-template-columns: 1fr; min-height: auto; }
  .auth-visual {
    min-height: 280px; padding: 32px 24px;
  }
  .auth-brand-logo { width: 90px; height: 90px; }
  .auth-brand-logo img { width: 70px; height: 70px; border-radius: 18px; }
  .auth-brand-name { font-size: 26px; }
  .auth-brand-tagline { font-size: 12.5px; }
  .auth-panel { padding: 28px 22px; }
  .auth-welcome { font-size: 22px; }
}

/* ── locked nav (লগইন ছাড়া subtle dim) ── */
.nav-item.nav-locked .nav-icon { opacity: .55; }

/* ============================================================
   CHAT LIST — Messenger-style topbar + search
   ============================================================ */
.chat-list-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 2px 14px;
}
.chat-list-title {
  font-size: 26px; font-weight: 900; color: #fff;
  letter-spacing: -0.5px;
}
.chat-settings-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--t-spring);
}
.chat-settings-btn:active { transform: scale(.9); }
@media (hover: hover) {
  .chat-settings-btn:hover { background: var(--surface-2); border-color: var(--border-hi); }
}

.chat-search-wrap {
  position: relative;
  display: flex; align-items: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border); border-radius: 24px;
  padding: 0 14px 0 42px;
  margin-bottom: 4px;
  transition: var(--t-spring);
}
.chat-search-wrap:focus-within {
  border-color: var(--green); box-shadow: 0 0 0 3px rgba(25,195,125,0.15);
}
.chat-search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-size: 15px; opacity: .7;
}
.chat-search-input {
  flex: 1; background: transparent; border: none; outline: none;
  padding: 11px 0; font-size: 14px; color: var(--text);
  font-family: inherit;
}
.chat-search-input::placeholder { color: var(--text4); }
.chat-search-clear {
  background: var(--surface); border: 1px solid var(--border); border-radius: 50%;
  width: 26px; height: 26px; cursor: pointer; color: var(--text3);
  font-size: 11px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.chat-search-clear:active { transform: scale(.9); }

/* কথোপকথন লিস্টে last message preview */
.chat-user-sub.chat-last-msg { color: var(--text3); }
.chat-user-item .chat-meta {
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
  flex-shrink: 0; font-size: 11px; color: var(--text4);
}
.chat-meta .chat-unread {
  background: var(--green); color: #02160c; font-weight: 700;
  border-radius: 50%; min-width: 20px; height: 20px; padding: 0 6px;
  display: flex; align-items: center; justify-content: center; font-size: 11px;
}

/* ============================================================
   SETTINGS PAGE
   ============================================================ */
.settings-scroll {
  flex: 1; overflow-y: auto; padding: 16px 16px 100px;
  min-height: 0;
}

/* প্রোফাইল কার্ড — settings এর উপরে */
.settings-profile-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 24px 16px 20px;
  background: linear-gradient(135deg, rgba(25,195,125,0.10), rgba(14,122,83,0.05));
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}
.settings-big-avatar {
  width: 80px; height: 80px; min-width: 80px;
  font-size: 32px;
  border: 3px solid rgba(25,195,125,0.3);
  box-shadow: 0 8px 24px rgba(25,195,125,0.25);
}
.settings-profile-name {
  font-size: 18px; font-weight: 800; color: #fff; margin-top: 6px;
}
.settings-profile-email {
  font-size: 12.5px; color: var(--text3);
}

/* সেকশন টাইটেল */
/* সেটিংস গ্রুপ */
.settings-group {
  background: var(--card); border: 1px solid var(--glass-border);
  border-radius: var(--r-lg); overflow: hidden;
  margin-bottom: 6px;
  box-shadow: var(--shadow-sm);
}
.settings-item {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 14px 16px; background: transparent; border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text); font-size: 14.5px; font-weight: 600;
  cursor: pointer; transition: background .2s ease;
  text-align: left; font-family: inherit;
}
.settings-item:last-child { border-bottom: none; }
.settings-item:active { background: rgba(255,255,255,0.04); }
@media (hover: hover) {
  .settings-item:hover { background: rgba(255,255,255,0.03); }
}
.settings-item-icon {
  width: 36px; height: 36px; min-width: 36px;
  background: rgba(25,195,125,0.10);
  border: 1px solid rgba(25,195,125,0.20);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.settings-item-label { flex: 1; }
.settings-item-arrow { color: var(--text4); font-size: 20px; font-weight: 300; }
.settings-item-value { color: var(--text3); font-size: 13px; font-weight: 500; }
.settings-item-static { cursor: default; }
.settings-item-static:active { background: transparent; }

/* লগআউট বাটন */
.settings-logout-btn {
  width: 100%; padding: 14px; margin-top: 22px;
  background: var(--red-soft); color: var(--red);
  border: 1px solid rgba(255,77,94,.3); border-radius: var(--r-lg);
  font-size: 14.5px; font-weight: 700; cursor: pointer;
  transition: var(--t-spring); font-family: inherit;
}
.settings-logout-btn:active { transform: scale(.97); }
@media (hover: hover) {
  .settings-logout-btn:hover { background: rgba(255,77,94,.18); }
}

/* ইনফো বক্স (নাম পরিবর্তন প্যানেলে) */
.settings-info-box {
  background: rgba(25,195,125,0.08);
  border: 1px solid rgba(25,195,125,0.18);
  border-radius: var(--r); padding: 12px 14px;
  margin-bottom: 16px;
}
.settings-info-box p {
  margin: 0; font-size: 13px; color: var(--text2); line-height: 1.55;
}

/* ============================================================
   DONATION / PARTNERSHIP / HELP — শেয়ারড স্টাইল
   ============================================================ */
.donation-hero {
  text-align: center; padding: 24px 16px 20px;
  background: linear-gradient(135deg, rgba(25,195,125,0.10), rgba(233,185,73,0.05));
  border: 1px solid var(--glass-border); border-radius: var(--r-lg);
  margin-bottom: 18px;
}
.donation-icon {
  font-size: 48px; line-height: 1; margin-bottom: 10px;
  filter: drop-shadow(0 4px 12px rgba(25,195,125,0.3));
}
.donation-title {
  font-size: 18px; font-weight: 800; color: #fff;
  margin: 0 0 8px; letter-spacing: -0.2px;
}
.donation-desc {
  font-size: 13.5px; color: var(--text2); line-height: 1.65;
  margin: 0; max-width: 420px; margin-left: auto; margin-right: auto;
}

.donation-method {
  background: var(--card); border: 1px solid var(--glass-border);
  border-radius: var(--r-lg); padding: 16px;
  box-shadow: var(--shadow-sm);
}
.donation-method-label {
  font-size: 12px; font-weight: 700; color: var(--text3);
  text-transform: uppercase; letter-spacing: 0.8px;
  margin-bottom: 10px;
}
.donation-number-row {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px dashed var(--border-hi);
  border-radius: 12px; padding: 12px 14px;
}
.donation-number {
  flex: 1; font-size: 22px; font-weight: 800;
  color: var(--green); letter-spacing: 1px;
  font-family: 'Courier New', monospace;
}
.copy-btn {
  background: var(--green-soft); color: var(--green);
  border: 1px solid rgba(25,195,125,.3); border-radius: 10px;
  padding: 8px 12px; font-size: 12px; font-weight: 700;
  cursor: pointer; transition: var(--t-spring); font-family: inherit;
}
.copy-btn:active { transform: scale(.93); }
@media (hover: hover) {
  .copy-btn:hover { background: rgba(25,195,125,0.18); }
}
.donation-name-row {
  margin-top: 10px; padding: 0 4px;
  color: var(--text3); font-size: 12px;
}
.donation-name-row small b { color: var(--text); font-weight: 700; }

/* ============================================================
   CONTACT LIST (partnership / help)
   ============================================================ */
.contact-list {
  background: var(--card); border: 1px solid var(--glass-border);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.contact-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text); text-decoration: none;
  transition: background .2s ease;
}
.contact-item:last-child { border-bottom: none; }
.contact-link { cursor: pointer; }
.contact-link:active { background: rgba(255,255,255,0.04); }
@media (hover: hover) {
  .contact-link:hover { background: rgba(255,255,255,0.03); }
}
.contact-icon {
  width: 40px; height: 40px; min-width: 40px;
  background: rgba(25,195,125,0.10);
  border: 1px solid rgba(25,195,125,0.20);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.contact-detail { flex: 1; min-width: 0; }
.contact-detail small {
  display: block; color: var(--text4); font-size: 11px;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.contact-detail > div {
  font-size: 14px; font-weight: 600; color: #fff;
  overflow: hidden; text-overflow: ellipsis;
}

/* ── চ্যাট কথোপকথন টাইম স্ট্যাম্প ── */
.chat-conv-time {
  font-size: 11px; color: var(--text4);
  flex-shrink: 0; padding-left: 8px;
  white-space: nowrap;
}

/* ── data-action click cursor ── */
[data-action="open-chat"], [data-action="open-chat-from-all"] {
  cursor: pointer;
}

/* ============================================================
   GLOBAL SETTINGS PAGE — v6.9
   ============================================================ */
.settings-page-wrap {
  padding: 16px 16px 120px;
}

/* Settings section title — more visible */
.settings-section-title {
  font-size: 11px; font-weight: 800; color: var(--text2);
  text-transform: uppercase; letter-spacing: 1px;
  padding: 4px 4px 8px; margin-top: 18px; margin-bottom: 2px;
}

/* প্রোফাইল কার্ড — settings টপে */
.gs-profile-card {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(120deg, rgba(25,195,125,0.10), rgba(14,122,83,0.05));
  border: 1px solid var(--glass-border); border-radius: var(--r-lg);
  padding: 16px; margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.gs-avatar {
  width: 64px; height: 64px; min-width: 64px;
  font-size: 26px;
  border: 2px solid rgba(25,195,125,0.3);
  box-shadow: 0 4px 16px rgba(25,195,125,0.2);
}
.gs-profile-info { flex: 1; min-width: 0; }
.gs-profile-name {
  font-size: 17px; font-weight: 800; color: #fff;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gs-profile-email {
  font-size: 12px; color: var(--text3); margin-top: 3px;
  overflow: hidden; text-overflow: ellipsis;
}
.gs-edit-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 16px; cursor: pointer; transition: var(--t-spring);
  display: flex; align-items: center; justify-content: center;
}
.gs-edit-btn:active { transform: scale(.9); }

/* ── Toggle Switch (Dark mode / Language) ── */
.settings-item-toggle {
  justify-content: space-between;
  cursor: default !important;
}
.settings-item-toggle:active { background: transparent !important; }
.settings-item-toggle .settings-item-label { flex: 1; }
.gs-toggle-switch {
  position: relative; width: 46px; height: 26px;
  display: inline-block; flex-shrink: 0; cursor: pointer;
}
.gs-toggle-switch input { opacity: 0; width: 0; height: 0; }
.gs-toggle-slider {
  position: absolute; inset: 0; border-radius: 26px;
  background: rgba(255,255,255,0.12); border: 1px solid var(--border);
  transition: .3s ease;
}
.gs-toggle-slider::before {
  content: ""; position: absolute;
  width: 20px; height: 20px; border-radius: 50%;
  left: 2px; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.7);
  transition: .3s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.gs-toggle-switch input:checked + .gs-toggle-slider {
  background: linear-gradient(120deg, var(--green-deep), var(--green));
  border-color: var(--green);
  box-shadow: var(--glow-green);
}
.gs-toggle-switch input:checked + .gs-toggle-slider::before {
  transform: translateY(-50%) translateX(20px);
  background: #fff;
}

/* ============================================================
   নির্মাতা সম্পর্কে (Founder Profile) প্যানেল
   ============================================================ */
.founder-hero {
  text-align: center; padding: 28px 16px 22px;
  background: linear-gradient(135deg, rgba(25,195,125,0.12), rgba(233,185,73,0.06));
  border: 1px solid var(--glass-border); border-radius: var(--r-lg);
  margin-bottom: 18px;
}
.founder-avatar {
  width: 84px; height: 84px; margin: 0 auto 12px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--green-deep), var(--green));
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 900; color: #02160c;
  box-shadow: 0 8px 28px rgba(25,195,125,0.35);
  border: 3px solid rgba(25,195,125,0.3);
}
.founder-name {
  font-size: 22px; font-weight: 800; color: #fff; letter-spacing: -0.3px;
}
.founder-title {
  font-size: 13.5px; color: var(--green); font-weight: 700; margin-top: 4px;
}
.founder-badges {
  display: flex; gap: 8px; justify-content: center; margin-top: 14px; flex-wrap: wrap;
}
.founder-badge {
  font-size: 12px; font-weight: 700; color: var(--text2);
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  padding: 6px 12px; border-radius: 999px;
}

.founder-info-card {
  background: var(--card); border: 1px solid var(--glass-border);
  border-radius: var(--r-lg); overflow: hidden; margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.founder-info-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
}
.founder-info-row:last-child { border-bottom: none; }
.founder-info-icon {
  width: 40px; height: 40px; min-width: 40px;
  background: rgba(25,195,125,0.10); border: 1px solid rgba(25,195,125,0.20);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.founder-info-text { flex: 1; min-width: 0; }
.founder-info-text small {
  display: block; color: var(--text4); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px;
}
.founder-info-text > div {
  font-size: 14px; font-weight: 600; color: #fff; line-height: 1.4;
}

.founder-section-title {
  font-size: 12px; font-weight: 800; color: var(--green);
  text-transform: uppercase; letter-spacing: 1px;
  padding: 0 4px 8px; margin-top: 18px;
}
.founder-text-card {
  background: var(--card); border: 1px solid var(--glass-border);
  border-radius: var(--r-lg); padding: 16px;
  box-shadow: var(--shadow-sm);
}
.founder-text-card p {
  margin: 0 0 12px; font-size: 13.5px; color: var(--text2); line-height: 1.7;
}
.founder-text-card p:last-child { margin-bottom: 0; }

/* ── লগইন প্রম্পট (লগইন না থাকলে settings-এ উপরে) ── */
.gs-login-prompt {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(120deg, rgba(25,195,125,0.12), rgba(233,185,73,0.06));
  border: 1px solid rgba(25,195,125,0.25); border-radius: var(--r-lg);
  padding: 14px 16px; margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.gs-login-prompt.hidden { display: none; }
.gs-login-icon {
  font-size: 32px; line-height: 1; flex-shrink: 0;
  animation: gsWave 2s ease-in-out infinite;
}
@keyframes gsWave {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(15deg); }
  75% { transform: rotate(-10deg); }
}
.gs-login-body { flex: 1; min-width: 0; }
.gs-login-title { font-size: 15px; font-weight: 800; color: #fff; }
.gs-login-sub { font-size: 12px; color: var(--text2); margin-top: 2px; line-height: 1.4; }
.gs-login-btn {
  background: linear-gradient(120deg, var(--green-deep), var(--green));
  color: #02160c; border: none; border-radius: 999px;
  padding: 8px 16px; font-size: 13px; font-weight: 800; cursor: pointer;
  box-shadow: var(--glow-green); transition: var(--t-spring);
  font-family: inherit; flex-shrink: 0;
}
.gs-login-btn:active { transform: scale(.93); }