/* ===== App-style design (mobile first look, used by the Android app too) ===== */
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.appbar,.tabbar,.m-home{display:none}

/* ---------- service detail (all screens) ---------- */
.svd{padding:48px 0 0}
.svd-grid{display:grid;grid-template-columns:.8fr 1.2fr;gap:40px;align-items:start}
.svd-hero{background:var(--navy);border-radius:28px;aspect-ratio:1;display:grid;place-items:center;position:relative;overflow:hidden;position:sticky;top:100px}
.svd-hero::after{content:"";position:absolute;right:-50px;bottom:-50px;width:200px;height:200px;background:var(--orange);clip-path:polygon(50% 0,100% 100%,0 100%);opacity:.95}
.svd-ic{width:150px;height:150px;border-radius:36px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);display:grid;place-items:center;color:var(--orange);position:relative;z-index:1}
.svd-ic svg{width:84px;height:84px;stroke-width:1.5}
.svd-body h1{font-size:clamp(28px,4vw,40px);margin:12px 0 8px}
.svd-meta{display:flex;flex-wrap:wrap;gap:8px 18px;color:var(--muted);font-size:15px}
.svd-meta span{display:inline-flex;align-items:center;gap:6px}
.svd-meta svg{width:17px;height:17px;color:#16A34A}
.svd-desc{color:#334155;font-size:17px;margin:14px 0 6px}
.svd-body h2{font-size:20px;margin:26px 0 12px}
.svd-list{list-style:none;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.svd-list li{display:flex;gap:10px;align-items:center;background:var(--bg);border:1px solid var(--line);border-radius:14px;padding:12px 14px;font-weight:500}
.svd-list svg{width:20px;height:20px;color:#16A34A;flex:none}
.svd-steps{list-style:none;counter-reset:st;display:grid;gap:0}
.svd-steps li{counter-increment:st;position:relative;padding:0 0 18px 48px}
.svd-steps li::before{content:counter(st);position:absolute;left:0;top:0;width:32px;height:32px;border-radius:50%;background:var(--navy);color:#fff;font:600 14px 'Poppins';display:grid;place-items:center}
.svd-steps li:not(:last-child)::after{content:"";position:absolute;left:15px;top:34px;bottom:2px;width:2px;background:var(--line)}
.svd-steps b{display:block;color:var(--navy)}
.svd-steps span{color:var(--muted);font-size:15px}
.svd-note{display:flex;gap:12px;align-items:flex-start;background:var(--orange-soft);border-radius:16px;padding:14px 16px;color:#7C3A00;font-size:15px;margin-top:8px}
.svd-note svg{width:22px;height:22px;flex:none;margin-top:2px}
.svd-note b{color:#5A2A00}
.svd-cta{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:24px;border:1px solid var(--line);border-radius:18px;padding:16px 18px}
.svd-cta small{display:block;color:var(--muted);font-size:13px}
.svd-cta b{color:var(--navy);font-size:18px}
.svd-rel{margin-top:56px}
.svd-rel h2{font-size:22px;margin-bottom:14px}

/* horizontal service cards (home "popular" + related) */
.m-pop{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px}
.m-pop a{background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;display:flex;flex-direction:column;transition:.2s}
.m-pop a:hover{box-shadow:var(--shadow);transform:translateY(-2px)}
.mp-top{height:96px;background:var(--navy);display:grid;place-items:center;color:var(--orange)}
.mp-top svg{width:40px;height:40px;stroke-width:1.6}
.mp-b{padding:12px 14px 14px;display:flex;flex-direction:column;gap:2px;flex:1}
.mp-b b{color:var(--navy);font-size:16px}
.mp-b small{color:var(--muted);font-size:13.5px;line-height:1.45;flex:1}
.mp-b em{font-style:normal;color:#C2410C;font-weight:600;font-size:14px;display:inline-flex;align-items:center;gap:4px;margin-top:6px}
.mp-b em svg{width:15px;height:15px}

/* booking chips */
.chips{display:flex;gap:8px;flex-wrap:wrap}
.chips button{border:1.5px solid var(--line);background:#fff;border-radius:12px;padding:8px 14px;font:600 14.5px 'Hind Siliguri',sans-serif;color:var(--ink);cursor:pointer;transition:.15s}
.chips button.on{background:var(--navy);border-color:var(--navy);color:#fff}
.chips .dchip{flex:1;min-width:58px;padding:6px 4px;display:flex;flex-direction:column;align-items:center;line-height:1.2}
.chips .dchip small{font-size:12px;font-weight:500}
.chips .dchip b{font-size:18px}
#dateChips{margin-bottom:6px}
.f .opt{font-weight:400;color:var(--muted);font-size:13px}
.svc-t{display:block;flex:1}

/* login extras */
.auth-logo{display:flex;justify-content:center;margin-bottom:18px}
.auth-logo img{width:240px;height:auto}
.auth .or{display:flex;align-items:center;gap:10px;color:#94A3B8;font-size:14px}
.auth .or::before,.auth .or::after{content:"";flex:1;height:1px;background:var(--line)}

/* dashboard stats */
.dstats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:14px}
.dstats div{background:var(--bg);border-radius:14px;padding:10px 4px}
.dstats b{display:block;font-size:20px;color:var(--navy);line-height:1.2}
.dstats small{color:var(--muted);font-size:12.5px}

@media (max-width:900px){.svd-grid{grid-template-columns:1fr}.svd-hero{position:relative;top:0;aspect-ratio:auto;height:240px}}

/* =================================================================
   MOBILE / APP MODE
   ================================================================= */
@media (max-width:768px){
  body{background:#F1F5F9;padding-bottom:calc(84px + env(safe-area-inset-bottom))}
  body.sheet-open{overflow:hidden}
  .top,header.nav{display:none}
  .wrap{padding:0 16px}
  .sec{padding:36px 0}
  .sec-head{margin-bottom:20px;text-align:left}
  .sec-head .tag{display:none}
  .sec-head h2{font-size:21px;margin:0 0 4px}
  .sec-head p{font-size:15px}

  /* top app bar for inner pages */
  .appbar{display:flex;align-items:center;gap:6px;position:sticky;top:0;z-index:60;background:#fff;border-bottom:1px solid var(--line);height:60px;padding:0 8px;padding-top:env(safe-area-inset-top)}
  .ab-btn{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;color:var(--navy);flex:none}
  .ab-btn svg{width:22px;height:22px}
  .ab-title{flex:1;font-size:18px;color:var(--navy);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

  /* bottom tab bar */
  .tabbar{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;left:0;right:0;bottom:0;z-index:90;background:#fff;border-top:1px solid var(--line);height:calc(70px + env(safe-area-inset-bottom));padding:6px 4px env(safe-area-inset-bottom);box-shadow:0 -6px 20px -12px rgba(5,43,82,.25)}
  .tabbar a,.tabbar button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font:500 12px 'Hind Siliguri',sans-serif;color:#64748B;background:none;border:0;cursor:pointer;min-height:44px}
  .tabbar svg{width:23px;height:23px}
  .tabbar .on{color:var(--navy);font-weight:700}
  .tabbar .on svg{stroke-width:2.4}
  .tb-book{color:var(--navy)!important;font-weight:700!important}
  .tb-fab{width:50px;height:50px;border-radius:16px;background:var(--orange);color:#fff;display:grid;place-items:center;margin-top:-26px;box-shadow:0 8px 18px -6px rgba(252,134,8,.8);border:3px solid #fff}
  .tb-fab svg{width:24px;height:24px}
  .fab{bottom:calc(92px + env(safe-area-inset-bottom));width:52px;height:52px;right:14px}
  .fab svg{width:24px;height:24px}

  /* ---------- home ---------- */
  .page-home .hero,.page-home .app-sec{display:none}
  .m-home{display:block}
  .m-head{background:var(--navy);color:#fff;padding:calc(18px + env(safe-area-inset-top)) 18px 62px;border-radius:0 0 28px 28px}
  .mh-top{display:flex;align-items:center;gap:10px}
  .mh-logo{width:46px;height:46px;border-radius:14px;background:#fff;display:grid;place-items:center;flex:none}
  .mh-logo img{width:34px;height:auto}
  .mh-brand{flex:1;min-width:0;line-height:1.25}
  .mh-brand small{display:block;color:#A9BCD0;font-size:12.5px}
  .mh-brand b{font-size:17px}
  .mh-ic{width:44px;height:44px;border-radius:14px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16);display:grid;place-items:center;flex:none}
  .mh-ic svg{width:20px;height:20px}
  .m-head h1{color:#fff;font-size:23px;line-height:1.4;margin-top:20px}
  .m-search{margin:-40px 16px 0;position:relative;display:flex;align-items:center;gap:10px;background:#fff;border-radius:16px;padding:0 8px 0 16px;height:56px;box-shadow:0 10px 26px -10px rgba(5,43,82,.3)}
  .m-search>svg{width:20px;height:20px;color:var(--muted);flex:none}
  .m-search select{flex:1;min-width:0;border:0;outline:0;background:transparent;font:500 15px 'Hind Siliguri',sans-serif;color:var(--ink);height:100%;appearance:none;-webkit-appearance:none}
  .ms-go{width:42px;height:42px;border:0;border-radius:12px;background:var(--navy);color:#fff;display:grid;place-items:center;flex:none}
  .ms-go svg{width:18px;height:18px}
  .m-banner{margin:18px 16px 0;background:var(--orange);border-radius:20px;padding:16px 12px 16px 18px;display:flex;align-items:center;gap:8px;color:#fff;overflow:hidden}
  .m-banner>div{flex:1;min-width:0}
  .mb-tag{display:inline-block;background:var(--navy);font-size:12px;font-weight:600;padding:2px 10px;border-radius:20px}
  .m-banner b{display:block;font-size:18px;line-height:1.3;margin-top:8px;color:#fff}
  .m-banner small{display:block;font-size:13px;color:#FFF4E6;margin-top:2px}
  .mb-btn{margin-top:10px;display:inline-flex;align-items:center;gap:6px;background:#fff;color:var(--navy);border:0;border-radius:12px;padding:9px 14px;font:700 14.5px 'Hind Siliguri',sans-serif;min-height:44px}
  .mb-btn svg{width:16px;height:16px}
  .m-banner img{width:86px;height:auto;flex:none;background:#fff;border-radius:18px;padding:8px}
  .m-sec{margin:24px 16px 0}
  .m-sh{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:12px}
  .m-sh h2{font-size:18px}
  .m-sh a{color:#C2410C;font-weight:600;font-size:14px}
  .m-cats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 8px}
  .m-cats a{display:flex;flex-direction:column;align-items:center;gap:6px;font-size:12.5px;font-weight:500;text-align:center;line-height:1.25;color:var(--ink)}
  .m-cats span{width:62px;height:62px;border-radius:18px;background:#fff;border:1px solid var(--line);display:grid;place-items:center;color:var(--navy)}
  .m-cats span.more{background:var(--navy);color:#fff;border-color:var(--navy)}
  .m-cats svg{width:26px;height:26px;stroke-width:1.8}
  .m-pop{display:flex;gap:12px;overflow-x:auto;margin:0 -16px;padding:0 16px 4px;scroll-snap-type:x mandatory;scroll-padding-inline:16px;scrollbar-width:none}
  .m-pop::-webkit-scrollbar{display:none}
  .m-pop a{flex:0 0 210px;scroll-snap-align:start}
  .m-trust{margin:22px 16px 0;background:#fff;border:1px solid var(--line);border-radius:18px;padding:14px 8px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));text-align:center;gap:4px}
  .m-trust svg{width:22px;height:22px;color:var(--orange);margin:0 auto 4px;display:block}
  .m-trust b{display:block;font-size:13.5px;color:var(--navy);line-height:1.3}
  .m-trust small{color:var(--muted);font-size:12px}

  /* services list → app rows */
  .cats{justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;margin:0 -16px 14px;padding:0 16px 4px;scrollbar-width:none}
  .cats::-webkit-scrollbar{display:none}
  .cats button{flex:none;padding:7px 16px;font-size:14px}
  .grid{grid-template-columns:1fr;gap:10px}
  .svc{flex-direction:row;align-items:center;gap:14px;padding:12px 14px;border-radius:16px}
  .svc .ic{margin:0;width:50px;height:50px;flex:none}
  .svc p{display:block!important;font-size:13.5px;line-height:1.45}
  .svc h3{font-size:16px!important;margin:0}
  .svc .go{margin:0;font-size:0;color:#94A3B8}
  .svc .go svg{width:20px;height:20px}

  /* other home sections, compact */
  .steps{grid-template-columns:1fr 1fr;row-gap:22px}
  .step .n{width:62px;height:62px;margin-bottom:10px}
  .step .n svg{width:26px;height:26px}
  .step h3{font-size:16px}.step p{font-size:13.5px}
  .why{gap:20px}.why h2{font-size:22px}.why .lead{font-size:15px;margin-bottom:16px}
  .feat{grid-template-columns:1fr 1fr;gap:10px}.feat div{padding:14px;background:#fff}
  .feat p{font-size:13px}.feat h3{font-size:15px}
  .why-vis{padding:24px;border-radius:22px}.why-vis h3{font-size:20px}.chk li{font-size:15px}
  .join{padding:24px 20px;border-radius:22px;margin:0 0}.join h2{font-size:21px}.join p{font-size:15px}
  .faq details{padding:0 16px}.faq summary{font-size:15.5px;padding:14px 0}
  .cinfo{padding:22px;border-radius:20px}
  form.cf{padding:18px;border-radius:20px;background:#fff}

  /* footer compact */
  footer{margin-top:36px}
  footer .wrap{grid-template-columns:1fr 1fr;gap:20px;padding-top:28px;padding-bottom:20px}
  footer .wrap>div:first-child{grid-column:1/-1}
  footer .wrap>div:nth-child(2){display:none}
  footer .fl img{height:40px}
  footer p{font-size:14px}
  .in-app footer .wrap{display:none}

  /* booking → bottom sheet */
  .modal{align-items:flex-end;padding:0}
  .mbox{border-radius:24px 24px 0 0;max-height:92vh;padding:12px 18px calc(22px + env(safe-area-inset-bottom));animation:sheetUp .22s ease-out}
  .sheet-grip{display:block;width:44px;height:5px;border-radius:3px;background:#CBD5E1;margin:0 auto 14px}
  .mbox h3{font-size:20px}
  .mbox .btn{width:100%;justify-content:center;min-height:52px}
  .x{top:10px}

  /* inner pages */
  .page-hero{display:none}
  .panel{border-radius:20px}
  .auth{padding:20px 0 0;min-height:0;place-items:stretch}
  .auth .panel{box-shadow:none}
  .auth-logo img{width:220px}
  .dash-side{background:var(--navy);color:#fff;border:0}
  .dash-side h2{color:#fff}
  .dash-side p{color:#B9C8D9}
  .dash-side .dstats div{background:rgba(255,255,255,.08)}
  .dash-side .dstats b{color:#fff}
  .dash-side .dstats small{color:#B9C8D9}
  .dash-side .btn-ghost{color:#fff;border-color:rgba(255,255,255,.3)}
  .svd{padding:0}
  .svd .wrap.svd-grid{padding:0;gap:0}
  .svd-hero{border-radius:0;height:210px}
  .svd-ic{width:120px;height:120px;border-radius:30px}
  .svd-ic svg{width:64px;height:64px}
  .svd-body{background:#fff;border-radius:24px 24px 0 0;margin-top:-24px;position:relative;z-index:1;padding:20px 16px 8px}
  .svd-body h1{font-size:24px}
  .svd-desc{font-size:15px}
  .svd-body h2{font-size:17px;margin:20px 0 10px}
  .svd-list{grid-template-columns:1fr;gap:8px}
  .svd-list li{padding:10px 12px;font-size:15px}
  .svd-cta{position:fixed;left:0;right:0;bottom:calc(70px + env(safe-area-inset-bottom));z-index:80;margin:0;border:0;border-top:1px solid var(--line);border-radius:0;background:#fff;padding:10px 16px;box-shadow:0 -8px 20px -14px rgba(5,43,82,.35)}
  .svd-cta .btn{min-height:50px;padding:0 22px}
  .page-service{padding-bottom:calc(150px + env(safe-area-inset-bottom))}
  .svd-rel{margin-top:24px}
  .svd-rel h2{font-size:18px}

  /* registration: hide tab bar so the form's own buttons stay reachable */
  .page-register .tabbar,.page-register .fab{display:none}
  .page-register{padding-bottom:0}
}
@keyframes sheetUp{from{transform:translateY(40px);opacity:.4}to{transform:none;opacity:1}}
.x svg{width:20px;height:20px}
@media (max-width:768px){.page-service .fab{bottom:calc(156px + env(safe-area-inset-bottom))}}
