:root{
  --bg:#fbf7f1; --surface:#ffffff; --surface-2:#f4efe7; --ink:#18232c; --ink-2:#4c5963; --ink-3:#7d8891;
  --line:#e8e0d4; --brand:#e2475a; --brand-ink:#ffffff; --brand-soft:#fde8ea; --teal:#0f7f78; --teal-soft:#e0f2f0;
  --amber:#b86e00; --amber-soft:#fff2dc; --danger:#c62828; --danger-soft:#fdecea; --ok:#2e7d32; --ok-soft:#e7f4e8;
  --radius:18px; --radius-sm:12px; --shadow:0 1px 2px rgba(24,35,44,.06),0 8px 24px rgba(24,35,44,.06);
  --font:'Plus Jakarta Sans',system-ui,-apple-system,'Segoe UI',Roboto,'Noto Sans','Noto Sans Bengali','Noto Naskh Arabic',sans-serif;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:#11171c; --surface:#1a2228; --surface-2:#222c33; --ink:#eef2f4; --ink-2:#b5c0c7; --ink-3:#8a969e; --line:#2c373f;
    --brand:#ff6676; --brand-soft:#3a1f25; --teal:#38b2a9; --teal-soft:#12302e; --amber:#f0a83a; --amber-soft:#36290f;
    --danger:#ff6b6b; --danger-soft:#3b1d1d; --ok:#6fcf73; --ok-soft:#173019; --shadow:0 1px 2px rgba(0,0,0,.3),0 8px 24px rgba(0,0,0,.25);
  }
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font);font-size:17px;line-height:1.5;padding-bottom:84px}
a{color:var(--teal);text-decoration:none}
button,input,select,textarea{font:inherit;color:inherit}
img{max-width:100%;display:block}
h1,h2,h3{line-height:1.2;margin:0 0 .5em;letter-spacing:-.01em}
h1{font-size:clamp(28px,6vw,44px);font-weight:800}
h2{font-size:22px;font-weight:800}
h3{font-size:18px;font-weight:700}
p{margin:0 0 1em}
.wrap{max-width:880px;margin:0 auto;padding:0 16px}
.muted{color:var(--ink-3)} .small{font-size:14px}
.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.spacer{flex:1}
.hidden{display:none!important}

/* header */
.top{position:sticky;top:0;z-index:20;background:color-mix(in srgb,var(--bg) 88%,transparent);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
.top .wrap{display:flex;align-items:center;gap:10px;height:60px}
.logo{display:flex;align-items:center;flex:none}
.logo img{height:38px;width:auto;display:block}
@media (max-width:370px){.logo img{height:32px}}
.logo .heart{width:30px;height:30px;border-radius:9px;background:var(--brand);display:grid;place-items:center;color:#fff}
.logo b{color:var(--brand)}
.topnav{display:none;gap:4px;margin-left:14px}
.topnav a{color:var(--ink-2);padding:8px 12px;border-radius:999px;font-weight:600;font-size:15px}
.topnav a.on{background:var(--surface);color:var(--ink);box-shadow:var(--shadow)}
.iconbtn{border:1px solid var(--line);background:var(--surface);border-radius:999px;height:40px;min-width:40px;padding:0 12px;display:inline-flex;align-items:center;gap:6px;cursor:pointer;font-weight:600;font-size:15px}
@media (min-width:860px){.topnav{display:flex} body{padding-bottom:0} .bottomnav{display:none!important}}

/* bottom nav */
.bottomnav{position:fixed;bottom:0;left:0;right:0;z-index:20;background:var(--surface);border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(5,1fr);padding:6px 4px calc(6px + env(safe-area-inset-bottom))}
.bottomnav a{display:flex;flex-direction:column;align-items:center;gap:2px;color:var(--ink-3);font-size:11.5px;font-weight:600;padding:4px 0;text-align:center}
.bottomnav a.on{color:var(--brand)}
.bottomnav a svg{width:24px;height:24px}
.bottomnav a.fab span.ic{width:52px;height:52px;margin-top:-22px;border-radius:50%;background:var(--brand);color:#fff;display:grid;place-items:center;box-shadow:0 6px 18px rgba(226,71,90,.45)}

/* cards & buttons */
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:18px;box-shadow:var(--shadow)}
.stack>*+*{margin-top:12px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:999px;padding:13px 20px;font-weight:700;cursor:pointer;background:var(--surface-2);color:var(--ink);min-height:48px;text-align:center}
.btn.primary{background:var(--brand);color:var(--brand-ink)}
.btn.teal{background:var(--teal);color:#fff}
.btn.wa{background:#1fa855;color:#fff}
.btn.ghost{background:transparent;border:1px solid var(--line)}
.btn.small{padding:8px 14px;min-height:38px;font-size:14px}
.btn.block{width:100%}
.btn:disabled{opacity:.6;cursor:default}
.btn svg{width:20px;height:20px}
.chip{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:3px 10px;font-size:13px;font-weight:700;background:var(--surface-2);color:var(--ink-2)}
.chip.new{background:var(--amber-soft);color:var(--amber)}
.chip.sent{background:var(--teal-soft);color:var(--teal)}
.chip.ack{background:var(--teal-soft);color:var(--teal)}
.chip.resolved{background:var(--ok-soft);color:var(--ok)}
.chip.danger{background:var(--danger-soft);color:var(--danger)}
.chip.pin{background:var(--brand-soft);color:var(--brand)}
.linkbtn{background:none;border:0;padding:0;color:var(--teal);font-weight:600;cursor:pointer;font-size:14px}

/* hero */
.hero{padding:28px 0 8px}
.hero h1 b{color:var(--brand)}
.hero-top{display:flex;gap:18px;align-items:center}
.hero-badge{flex:none;width:112px;height:112px;filter:drop-shadow(0 8px 20px rgba(226,71,90,.25))}
.hero-top h1{font-size:clamp(24px,5.4vw,40px);margin:0}
@media (min-width:700px){.hero-badge{width:180px;height:180px}.hero-top{gap:28px}}
.hero p.lead{font-size:18px;color:var(--ink-2);max-width:620px}
.hero .ctas{display:grid;gap:10px;grid-template-columns:1fr;margin-top:18px}
@media (min-width:560px){.hero .ctas{grid-template-columns:auto auto;justify-content:start}}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:22px 0}
.stat{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-sm);padding:12px 8px;text-align:center}
.stat b{display:block;font-size:24px;font-weight:800}
.stat span{font-size:12px;color:var(--ink-3);line-height:1.2;display:block}
.how{display:grid;gap:10px;grid-template-columns:1fr}
@media (min-width:700px){.how{grid-template-columns:repeat(3,1fr)}}
.how .step{display:flex;gap:12px;align-items:flex-start}
.how .num{flex:none;width:34px;height:34px;border-radius:50%;background:var(--brand-soft);color:var(--brand);font-weight:800;display:grid;place-items:center}
.section{margin:28px 0}
.section-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:10px}
.section-head h2{margin:0}

/* lists */
.list{display:grid;gap:12px}
.item{display:block;color:inherit}
.item .meta{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:13.5px;color:var(--ink-3);margin-bottom:6px}
.item h3{margin:0 0 4px}
.item p{color:var(--ink-2);margin:0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.item .thumbs{display:flex;gap:6px;margin-top:10px}
.item .thumbs img{width:72px;height:72px;object-fit:cover;border-radius:10px}
.body{white-space:pre-wrap;word-wrap:break-word}
.photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:8px;margin:12px 0}
.photos img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:12px;cursor:zoom-in}
.actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;align-items:center}
.metoo{border:2px solid var(--brand);color:var(--brand);background:transparent}
.metoo.on{background:var(--brand);color:#fff}
.replies{border-left:3px solid var(--line);padding-left:14px;margin-top:16px}
.reply{padding:10px 0;border-bottom:1px solid var(--line)}
.reply:last-child{border:0}

/* forms */
label.f{display:block;font-weight:700;font-size:15px;margin:14px 0 6px}
.input,select.input,textarea.input{width:100%;border:1.5px solid var(--line);background:var(--surface);border-radius:var(--radius-sm);padding:13px 14px;font-size:17px;min-height:50px;outline:none}
.input:focus{border-color:var(--teal);box-shadow:0 0 0 3px var(--teal-soft)}
textarea.input{min-height:110px;resize:vertical}
.help{font-size:13.5px;color:var(--ink-3);margin-top:4px}
.check{display:flex;gap:12px;align-items:flex-start;margin:14px 0;font-size:15px;cursor:pointer}
.check input{width:22px;height:22px;flex:none;margin-top:2px;accent-color:var(--brand)}
.cats{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
@media (min-width:600px){.cats{grid-template-columns:repeat(5,1fr)}}
.cat{border:1.5px solid var(--line);background:var(--surface);border-radius:14px;padding:12px 6px;text-align:center;cursor:pointer;font-size:13.5px;font-weight:700;display:flex;flex-direction:column;align-items:center;gap:6px;min-height:84px;justify-content:center}
.cat .em{font-size:26px;line-height:1}
.cat.on{border-color:var(--brand);background:var(--brand-soft);color:var(--brand)}
.banner{border-radius:var(--radius-sm);padding:12px 14px;font-size:15px;display:flex;gap:10px;align-items:flex-start}
.banner.danger{background:var(--danger-soft);color:var(--danger);font-weight:600}
.banner.ok{background:var(--ok-soft);color:var(--ok);font-weight:600}
.banner.info{background:var(--teal-soft);color:var(--teal)}
.photopick{display:flex;gap:8px;flex-wrap:wrap}
.photopick .ph{width:84px;height:84px;border-radius:12px;overflow:hidden;position:relative;background:var(--surface-2)}
.photopick .ph img{width:100%;height:100%;object-fit:cover}
.photopick .ph button{position:absolute;top:4px;right:4px;width:26px;height:26px;border-radius:50%;border:0;background:rgba(0,0,0,.6);color:#fff;cursor:pointer}
.photopick label.add{width:84px;height:84px;border-radius:12px;border:2px dashed var(--line);display:grid;place-items:center;cursor:pointer;color:var(--ink-3);font-size:30px}
.hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}

/* progress & polls */
.progress{height:12px;border-radius:999px;background:var(--surface-2);overflow:hidden;margin:10px 0 6px}
.progress i{display:block;height:100%;background:linear-gradient(90deg,var(--brand),#ff8a65);border-radius:999px;transition:width .6s}
.opt{position:relative;display:block;width:100%;text-align:start;border:1.5px solid var(--line);background:var(--surface);border-radius:14px;padding:13px 14px;margin-top:8px;cursor:pointer;overflow:hidden;font-weight:600}
.opt .bar{position:absolute;inset:0 auto 0 0;background:var(--teal-soft);z-index:0;transition:width .5s}
[dir=rtl] .opt .bar{inset:0 0 0 auto}
.opt span{position:relative;z-index:1;display:flex;justify-content:space-between;gap:10px}
.opt.mine{border-color:var(--teal)}
.opt.mine .label::before{content:'✓ ';color:var(--teal)}
.opt.multi .label::before{content:'☐ ';color:var(--ink-3)}
.opt.multi.mine .label::before{content:'☑ ';color:var(--teal)}

/* modal */
.modal-bg{position:fixed;inset:0;background:rgba(10,15,20,.5);z-index:50;display:flex;align-items:flex-end;justify-content:center}
@media (min-width:640px){.modal-bg{align-items:center}}
.modal{background:var(--surface);width:100%;max-width:560px;max-height:92vh;overflow:auto;border-radius:22px 22px 0 0;padding:22px 18px calc(22px + env(safe-area-inset-bottom))}
@media (min-width:640px){.modal{border-radius:22px}}
.langs{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.langs button{border:1.5px solid var(--line);background:var(--surface);border-radius:14px;padding:14px;font-size:17px;font-weight:700;cursor:pointer;text-align:center}
.langs button.on{border-color:var(--brand);background:var(--brand-soft);color:var(--brand)}
.toast{position:fixed;left:50%;bottom:100px;transform:translateX(-50%);background:var(--ink);color:var(--bg);padding:12px 18px;border-radius:16px;z-index:60;font-weight:600;font-size:15px;max-width:90vw;text-align:center}
.lightbox{position:fixed;inset:0;background:rgba(0,0,0,.92);z-index:70;display:grid;place-items:center;padding:16px}
.lightbox img{max-height:90vh;border-radius:12px}

/* tabs */
.tabs{display:flex;gap:6px;overflow-x:auto;padding-bottom:4px;margin-bottom:12px;scrollbar-width:none}
.tabs button{flex:none;border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:8px 14px;font-weight:700;font-size:14px;cursor:pointer;color:var(--ink-2)}
.tabs button.on{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.empty{text-align:center;color:var(--ink-3);padding:30px 10px}
table.t{width:100%;border-collapse:collapse;font-size:14px}
table.t td,table.t th{border-bottom:1px solid var(--line);padding:8px 6px;text-align:start;vertical-align:top}
.prose h2{margin-top:1.4em} .prose li{margin-bottom:.4em}
footer.site{margin:40px 0 20px;color:var(--ink-3);font-size:14px;text-align:center}
footer.site a{color:var(--ink-2)}
.skel{height:80px;border-radius:var(--radius);background:linear-gradient(90deg,var(--surface-2),var(--surface),var(--surface-2));background-size:200% 100%;animation:sk 1.2s infinite}
@keyframes sk{to{background-position:-200% 0}}

/* posters (print) */
.poster-controls{margin-bottom:16px}
.sheet{background:#fff;color:#18232c;width:100%;max-width:794px;aspect-ratio:210/297;margin:0 auto 20px;box-shadow:var(--shadow);overflow:hidden;position:relative}
.sheet *{color:inherit}
.p-a4{display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding:6% 7%;text-align:center;height:100%}
.p-a4 .p-top{font-weight:800;font-size:clamp(14px,2.4vw,20px);color:#e2475a;letter-spacing:.08em;text-transform:uppercase}
.p-a4 h1{font-size:clamp(30px,7.4vw,64px);margin:.2em 0;color:#18232c}
.p-a4 h1 b{color:#e2475a}
.p-a4 .p-sub{font-size:clamp(14px,2.6vw,22px);color:#4c5963;max-width:90%}
.p-a4 .badge{width:44%}
.p-a4 .badge.sm{width:24%}
.p-a4 .qr{width:40%;background:#fff;padding:2%;border:6px solid #e2475a;border-radius:24px}
.p-a4 .qr svg{width:100%;height:auto;display:block}
.p-a4 .url{font-weight:800;font-size:clamp(16px,3.4vw,30px)}
.p-a4 .scan{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 12px;font-size:clamp(9px,1.6vw,14px);color:#4c5963;font-weight:600}
.p-a4 .bullets{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;font-weight:700;font-size:clamp(11px,2vw,17px)}
.p-a4 .bullets span{background:#fde8ea;color:#c2334a;border-radius:999px;padding:4px 12px}
.p-grid{display:grid;height:100%}
.p-grid.flyers{grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr}
.p-grid.stickers{grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(4,1fr)}
.p-cell{border:1px dashed #c9c2b8;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:5%;gap:3%}
.p-cell .lk{width:70%}
.stickers .p-cell .lk{width:86%}
.p-cell .t1{font-weight:800;color:#e2475a;font-size:clamp(11px,2.4vw,22px);line-height:1.1}
.p-cell .t2{font-size:clamp(8px,1.5vw,13px);color:#4c5963;font-weight:600}
.p-cell .qr{width:62%}
.stickers .p-cell .qr{width:70%}
.p-cell .qr svg{width:100%;height:auto;display:block}
.p-cell .u{font-weight:800;font-size:clamp(7px,1.4vw,12px)}
@media print{
  @page{size:A4;margin:0}
  body{background:#fff;padding:0}
  .top,.bottomnav,footer.site,.poster-controls,.noprint{display:none!important}
  .wrap{max-width:none;padding:0}
  .sheet{box-shadow:none;margin:0;width:210mm;height:297mm;max-width:none;page-break-after:always}
  main{padding:0!important}
}
.kicker{font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--brand,#e2475a);margin-bottom:6px}
.about p{margin:8px 0 0}
.p-a4 .p-assoc{font-weight:800;font-size:clamp(11px,1.9vw,16px);color:#18232c;letter-spacing:.04em;text-transform:uppercase}
