/* Shines Wali Diwali styles. Layout = festive banner on top, card overlapping, purple below (login.jpeg style) */
:root {
  --purple: #46208c;
  --purple-deep: #2f1470;
  --purple-mid: #6b3fc0;
  --lav: #f4f0fb;
  --lav-line: #ddd2f3;
  --white: #ffffff;
  --ink: #26104f;
  --ink-soft: #62508a;
  --gold: #e6b94d;
  --gold-soft: #f7e6b3;
  --gold-deep: #b8861f;
  --ok: #1d7a4a;
  --err: #c0224f;
  --font-display: "Yatra One", Georgia, serif;
  --font-body: "Hind", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { background: var(--white); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.5; margin: 0; }
.pad { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
p { margin: 0; }
h2 { font-weight: 700; font-size: 24px; line-height: 1.2; margin: 0; color: var(--purple-deep); text-wrap: balance; }
.sub { color: var(--ink-soft); font-size: 15px; }

/* ---------- Card + form ---------- */
.card { background: var(--white); border: 1px solid var(--lav-line); border-radius: 16px; padding: 28px 24px; display: flex; flex-direction: column; gap: 20px; box-shadow: 0 12px 36px rgba(30,10,70,.18); }
body.inner .card { box-shadow: 0 10px 30px rgba(30,10,70,.12); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); }
.head { display: flex; flex-direction: column; gap: 6px; }
.field { display: flex; flex-direction: column; gap: 7px; }
label, .lbl { font-size: 14px; font-weight: 600; color: var(--ink); }
.hint { font-size: 13px; color: var(--ink-soft); }
input[type=text], input[type=tel], select {
  width: 100%; font: inherit; color: var(--ink); background: var(--white);
  border: 1.5px solid var(--lav-line); border-radius: 10px; padding: 12px 14px; min-height: 50px;
}
input::placeholder { color: #9a8cba; }
.pfx { display: flex; align-items: stretch; border: 1.5px solid var(--lav-line); border-radius: 10px; overflow: hidden; background: var(--white); }
.pfx span { display: grid; place-items: center; padding: 0 14px; background: var(--lav); font-weight: 600; color: var(--purple); border-right: 1.5px solid var(--lav-line); }
.pfx input { border: 0; border-radius: 0; }
.pfx:focus-within { outline: 3px solid var(--purple-mid); outline-offset: 2px; }
.pfx input:focus-visible { outline: none; }
input:focus-visible, select:focus-visible, button:focus-visible, .opt:focus-within, .tile:focus-visible, .star:focus-visible, .ref img:focus-visible {
  outline: 3px solid var(--purple-mid); outline-offset: 2px;
}
.otps { display: flex; gap: 12px; justify-content: center; }
.otpbox { width: 64px; height: 64px; text-align: center; font: 700 26px var(--font-body); color: var(--purple); border: 1.5px solid var(--lav-line); border-radius: 12px; background: var(--lav); padding: 0; font-variant-numeric: tabular-nums; }
.otpbox:focus-visible { background: var(--white); }
.err { color: var(--err); font-size: 14px; min-height: 1.3em; }
.demo { background: var(--lav); border-radius: 10px; padding: 10px 14px; font-size: 13px; color: var(--ink-soft); }
.demo b { color: var(--purple); font-variant-numeric: tabular-nums; letter-spacing: .12em; font-size: 15px; }
.trust { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-soft); background: var(--lav); border-radius: 10px; padding: 10px 12px; }
.trust svg { width: 20px; height: 20px; flex: none; color: var(--purple); }

.btn { font: inherit; font-weight: 700; font-size: 16px; border: 0; border-radius: 10px; padding: 13px 22px; min-height: 50px; cursor: pointer; background: var(--purple); color: var(--white); }
.btn:hover { background: var(--purple-deep); }
.btn.ghost { background: var(--white); color: var(--purple); border: 1.5px solid var(--lav-line); }
.btn.ghost:hover { background: var(--lav); }
.btn.link { background: none; color: var(--purple); padding: 8px 4px; min-height: 40px; text-decoration: underline; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > * { flex: 1 1 140px; min-width: 0; }

/* reward parts */
.parts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 760px) { body.wide .parts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.part { border: 1.5px solid var(--lav-line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 14px; background: var(--white); min-width: 0; }
.part-h { display: flex; align-items: center; gap: 12px; }
.part .ic { width: 50px; height: 50px; border-radius: 12px; background: var(--lav); display: grid; place-items: center; flex: none; }
.part .ic svg { width: 34px; height: 34px; }
.part .tag { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); }
.part h3 { margin: 0; font-size: 19px; line-height: 1.2; color: var(--purple-deep); }
.brief { font-size: 15px; color: var(--ink); }
.part .btn { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 8px; }
.part .btn svg { width: 22px; height: 22px; }

/* reward options */
.opts { display: flex; flex-direction: column; gap: 12px; }
.opt { display: flex; gap: 14px; align-items: center; border: 1.5px solid var(--lav-line); border-radius: 12px; padding: 14px; cursor: pointer; background: var(--white); }
.opt .ic { width: 52px; height: 52px; border-radius: 12px; background: var(--lav); display: grid; place-items: center; flex: none; }
.opt .ic svg { width: 34px; height: 34px; }
.opt .tx { flex: 1; min-width: 0; }
.opt .t { font-weight: 700; color: var(--purple-deep); display: block; }
.opt .d { font-size: 14px; color: var(--ink-soft); display: block; }
.opt input { accent-color: var(--purple); width: 22px; height: 22px; flex: none; }
.opt.sel { border-color: var(--purple); background: var(--lav); }
.capture { display: flex; flex-direction: column; gap: 16px; border-top: 1px solid var(--lav-line); padding-top: 20px; }
.notice { background: var(--purple); color: var(--white); border-radius: 10px; padding: 12px 14px; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.notice svg { width: 22px; height: 22px; flex: none; color: var(--gold); margin-top: 1px; }
.notice b { color: var(--gold-soft); }
.refbox { background: var(--lav); border: 1px solid var(--lav-line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.refbox .rt { font-weight: 700; color: var(--purple-deep); }
.refs { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.ref { background: var(--white); border: 1px solid var(--lav-line); border-radius: 10px; overflow: hidden; min-width: 0; }
.ref img { display: block; width: 100%; height: auto; cursor: zoom-in; }
.ref .cap { font-size: 12px; color: var(--ink-soft); padding: 8px 10px; border-top: 1px solid var(--lav-line); }
.ref.ph .box { aspect-ratio: 4 / 3; display: grid; place-items: center; text-align: center; font-size: 13px; color: var(--ink-soft); background: var(--white); padding: 10px; }
.ref.ph svg { width: 30px; height: 30px; color: var(--purple-mid); display: block; margin: 0 auto 4px; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.slot { position: relative; aspect-ratio: 3/4; border-radius: 12px; border: 1.5px dashed var(--purple-mid); background: var(--lav); display: grid; place-items: center; text-align: center; font-size: 13px; font-weight: 600; color: var(--purple); cursor: pointer; overflow: hidden; padding: 0; font-family: inherit; min-width: 0; }
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot svg { width: 30px; height: 30px; color: var(--purple); display: block; margin: 0 auto 4px; }
.slot.has { border-style: solid; border-color: var(--purple); }
.slot .x { position: absolute; top: 5px; right: 5px; width: 28px; height: 28px; border-radius: 50%; background: var(--white); color: var(--purple); border: 1px solid var(--lav-line); font-size: 16px; line-height: 1; display: grid; place-items: center; cursor: pointer; padding: 0; }

/* gifts (view only) */
.gifts { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--lav-line); padding-top: 20px; }
.ggrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.gcard { border: 1px solid var(--lav-line); border-radius: 12px; overflow: hidden; background: var(--white); display: flex; flex-direction: column; min-width: 0; }
.gimg { background: var(--lav); aspect-ratio: 4/3; display: grid; place-items: center; }
.gimg svg { width: 62%; height: auto; max-height: 86%; }
.gtx { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; }
.gtx b { color: var(--purple-deep); font-size: 15px; }
.gtx span { font-size: 13px; color: var(--ink-soft); line-height: 1.4; }

/* survey */
.prog { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); }
.prog i { width: 26px; height: 6px; border-radius: 3px; background: var(--lav-line); }
.prog i.on { background: var(--gold); }
.qcard { background: var(--lav); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.qcard .lbl { font-size: 16px; font-weight: 700; color: var(--purple-deep); }
.qcard .lbl small { display: block; font-weight: 600; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 2px; }
.stars { display: flex; gap: 6px; justify-content: center; }
.star { background: none; border: 0; padding: 4px; cursor: pointer; border-radius: 10px; }
.star svg { width: 42px; height: 42px; display: block; fill: var(--white); stroke: var(--gold-deep); stroke-width: 1.4; transition: transform .12s; }
.star.on svg { fill: var(--gold); }
.star:hover svg { transform: scale(1.1); }
.scap { text-align: center; font-weight: 700; color: var(--purple); min-height: 1.5em; }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tile { position: relative; font: inherit; font-weight: 600; font-size: 14px; color: var(--purple); background: var(--white); border: 1.5px solid var(--lav-line); border-radius: 12px; padding: 14px 8px; min-height: 84px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; }
.tile svg { width: 28px; height: 28px; }
.tile.on { background: var(--purple); color: var(--white); border-color: var(--purple); }
.tile.on::after { content: ""; position: absolute; top: 6px; right: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f1470' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat; }

/* payout */
.elig { display: flex; gap: 12px; align-items: flex-start; background: var(--gold-soft); border-radius: 10px; padding: 12px 14px; color: var(--purple-deep); font-size: 14px; font-weight: 600; }
.elig svg { width: 24px; height: 24px; flex: none; color: var(--purple); }
.tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; background: var(--lav); padding: 5px; border-radius: 12px; }
.tab { font: inherit; font-size: 15px; font-weight: 700; border: 0; background: transparent; color: var(--ink-soft); padding: 10px 4px; border-radius: 8px; cursor: pointer; min-height: 46px; }
.tab[aria-selected=true] { background: var(--purple); color: var(--white); }

/* thanks */
.thanks { align-items: center; text-align: center; }
.tick { width: 72px; height: 72px; border-radius: 50%; background: var(--purple); display: grid; place-items: center; box-shadow: 0 0 0 8px var(--gold-soft); }
.tick svg { width: 38px; height: 38px; color: var(--white); }
.sum { width: 100%; text-align: left; display: flex; flex-direction: column; gap: 9px; background: var(--lav); border-radius: 12px; padding: 14px; font-size: 14px; }
.sum div { display: flex; justify-content: space-between; gap: 12px; }
.sum span:first-child { color: var(--ink-soft); flex: none; }
.sum span:last-child { text-align: right; min-width: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; font-weight: 600; }

/* overlays */
.cam, .lb { position: fixed; inset: 0; z-index: 50; background: var(--purple-deep); display: flex; justify-content: center; }
.cam-in { width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: 16px; padding-block: calc(16px + env(safe-area-inset-top, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)); color: var(--white); }
.cam-top { text-align: center; font-weight: 600; }
.cam video { width: 100%; flex: 1; min-height: 0; object-fit: cover; border-radius: 14px; background: var(--purple); }
.cam-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.cam-bar .btn { justify-self: start; padding-inline: 18px; }
.shutter { width: 74px; height: 74px; border-radius: 50%; border: 5px solid var(--gold); background: var(--white); cursor: pointer; padding: 0; }
.shutter:active { transform: scale(.94); }
.lb { align-items: center; flex-direction: column; gap: 14px; padding-block: calc(20px + env(safe-area-inset-top, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)); cursor: zoom-out; }
.lb img { max-width: 96%; max-height: 80%; border-radius: 10px; background: var(--white); }
.lb span { color: var(--gold-soft); font-size: 14px; }

@media (max-width: 420px) {
  .intro h1 { font-size: 38px; }
  .otpbox { width: 58px; height: 58px; }
  .star svg { width: 36px; height: 36px; }
  .card { padding: 24px 18px; }
  .site-tag { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .flame { animation: flick 1.6s ease-in-out infinite; transform-origin: 50% 90%; transform-box: fill-box; }
  .pack::after { animation: sweep 5s ease-in-out infinite; }
  @keyframes flick { 0%,100% { transform: scale(1) rotate(-2deg); } 50% { transform: scale(1.1, 1.18) rotate(2deg); } }
  @keyframes sweep { 0%, 55% { left: -60%; } 100% { left: 130%; } }
}

/* ---------- PHP version additions ---------- */
.site-right { display: flex; align-items: center; gap: 16px; }
.logout { font-size: 13px; font-weight: 600; color: var(--purple); text-decoration: underline; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack[hidden] { display: none !important; }
.note-ok { background: #e6f4ec; color: var(--ok); border-radius: 10px; padding: 10px 14px; font-size: 14px; font-weight: 600; }
.err:empty { display: none; }
.err { background: #fdecf1; border-radius: 10px; padding: 10px 14px; }
.otpbox { width: 56px; height: 60px; }
.slot input[type=hidden] { display: none; }
.slot .x[hidden] { display: none; }
.sum div { align-items: flex-start; }
.btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.part .btn { display: flex; }
.cam video { max-height: 70vh; }
@media (max-width: 420px) { .otpbox { width: 50px; height: 56px; } .otps { gap: 8px; } }


/* ---------- Page layout: BG.png as mobile background, logo on top, card over it ---------- */
:root { --bg-purple: #46208c; }
html { background: var(--bg-purple); }
body { margin: 0; min-height: 100vh; background: var(--bg-purple); display: flex; flex-direction: column; overflow-x: hidden; }

/* one mobile-style column; on big screens it stays centred (purple on the sides) */
.screen { width: 100%; max-width: 560px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg-purple) url(bg.jpg) center top / 100% auto no-repeat; }

/* logo sits in the empty cream space between the lanterns. All sizes in % of column width, so it scales on every screen */
.hero { position: relative; padding-top: 80%; }
body.inner .hero { padding-top: 38%; }
.hero .logo { position: absolute; left: 31%; width: 38%; top: 5%; height: auto; filter: drop-shadow(0 6px 10px rgba(60,30,100,.25)); }
body.inner .hero .logo { left: 33%; width: 34%; top: 4%; }
.logout { position: absolute; top: 12px; right: 14px; z-index: 3; font-size: 13px; font-weight: 700; color: var(--purple); background: rgba(255,255,255,.9); padding: 7px 14px; border-radius: 20px; text-decoration: none; box-shadow: 0 2px 8px rgba(30,10,70,.18); }

.wrap { width: 100%; padding: 0 16px 28px; position: relative; z-index: 2; flex: 1 0 auto; }
.panel { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

/* step progress (inner pages) */
.crumb { background: var(--white); border: 1px solid var(--lav-line); border-radius: 14px; padding: 12px 16px; display: flex; flex-direction: column; gap: 9px; box-shadow: 0 8px 24px rgba(30,10,70,.16); }
.crumb-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.crumb-t { font-family: var(--font-display); font-size: 20px; line-height: 1.1; color: var(--purple); }
.crumb-t span { color: var(--gold-deep); }
.crumb-s { font-size: 13px; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
.bars { display: flex; gap: 6px; }
.bars i { flex: 1; height: 5px; border-radius: 3px; background: var(--lav-line); }
.bars i.done { background: var(--gold); }
.bars i.now { background: var(--purple); }

.card { box-shadow: 0 14px 36px rgba(30,10,70,.24); }
.foot { background: transparent; border: 0; margin-top: auto; }
.foot-in { padding: 0 16px 22px; text-align: center; font-size: 13px; color: #cbbbee; }

.slot .req { display: block; font-size: 11px; font-weight: 600; color: var(--ink-soft); margin-top: 2px; }
.slot[data-idx="0"] .req { color: var(--err); }
.offer { background: var(--lav); border-radius: 12px; padding: 14px 16px; font-size: 15px; color: var(--ink); }
@media (max-width: 420px) { .wrap { padding: 0 12px 24px; } .card { padding: 22px 16px; } }
/* inner pages: only the festive top strip, cards sit on purple below it */
body.inner .screen { background: var(--bg-purple) url(bg_top.jpg) center top / 100% auto no-repeat; }
body.inner .hero { padding-top: 38%; }
body.inner .wrap { padding-top: 12px; }

/* ---------- polish ---------- */
/* inner pages: banner ka neecha kinara curve me, seedhi line nahi */
body.inner .hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26px; background: var(--bg-purple); border-radius: 26px 26px 0 0; z-index: 1; }
body.inner .hero .logout { z-index: 3; }
body.inner .wrap { padding-top: 0; margin-top: -2px; }
.crumb-t { font-family: var(--font-body); font-size: 15px; font-weight: 700; color: var(--purple-deep); }
.scap:empty { display: none; }
.qcard { gap: 12px; }
.head h2 { font-size: 24px; }
.card .head { gap: 8px; }
.row .btn { width: 100%; }
@media (max-width: 380px) {
  .row > * { flex-basis: 100%; }
  .head h2 { font-size: 21px; }
  .otps { gap: 8px; }
  .otpbox { width: 46px; height: 54px; }
}
@media (min-width: 900px) {
  .screen { max-width: 600px; box-shadow: 0 0 60px rgba(10, 0, 40, .45); }
  body { background: #36176d; }
  html { background: #36176d; }
}

/* =====================================================================
   DESKTOP (900px+): left = festive visual, right = steps card. Mobile design alag hai (upar).
   ===================================================================== */
@media (min-width: 900px) {
  html, body { background: #3a1a78; }
  body { background: radial-gradient(circle at 12% 8%, #6b3fc0 0, transparent 52%), radial-gradient(circle at 95% 95%, #2a0f5e 0, transparent 50%), #46208c; background-attachment: fixed; }

  .screen {
    max-width: 1180px; width: 100%; min-height: 100vh; margin: 0 auto; box-shadow: none;
    padding: 36px 40px 0; background: none !important;
    display: grid; grid-template-columns: minmax(0, 1fr) 500px; grid-template-rows: 1fr auto; column-gap: 56px; align-items: center;
  }

  /* left: festive banner image (logo + pack already in the image) */
  .hero, body.inner .hero {
    grid-column: 1; grid-row: 1; align-self: center; position: sticky; top: 28px;
    padding: 0; width: 100%; aspect-ratio: 775 / 650;
    background: url(hero.jpg) center / cover no-repeat; border-radius: 26px;
    box-shadow: 0 24px 60px rgba(10, 0, 40, .45), 0 0 0 6px rgba(255, 255, 255, .12);
  }
  .hero .logo { display: none; }
  body.inner .hero::after { display: none; }
  .logout { top: 16px; right: 16px; }

  /* right: progress + card */
  .wrap, body.inner .wrap { grid-column: 2; grid-row: 1; align-self: center; padding: 20px 0; margin: 0; }
  .card { padding: 32px 30px; box-shadow: 0 24px 60px rgba(10, 0, 40, .38); border-radius: 20px; }
  .crumb { box-shadow: 0 10px 30px rgba(10, 0, 40, .25); }
  .head h2 { font-size: 27px; }

  .foot { grid-column: 1 / -1; grid-row: 2; }
  .foot-in { padding: 18px 0 24px; border-top: 1px solid rgba(255, 255, 255, .14); }

  /* wider desktop: capture slots and reference a bit larger */
  .slots { gap: 14px; }
}

@media (min-width: 1300px) {
  .screen { max-width: 1280px; grid-template-columns: minmax(0, 1fr) 520px; column-gap: 72px; }
}

/* short laptop screens: sticky image should not push content */
@media (min-width: 900px) and (max-height: 760px) {
  .hero, body.inner .hero { position: relative; top: 0; }
}
@media (min-width: 900px) {
  .hero, body.inner .hero { align-self: start; margin-top: clamp(0px, calc(50vh - 330px), 150px); }
  .wrap, body.inner .wrap { align-self: start; margin-top: clamp(0px, calc(50vh - 330px), 150px); padding: 0 0 24px; }
}

/* ---------- Desktop: deskop.png poore page ka background, card right side me ---------- */
@media (min-width: 900px) {
  html { background: #46208c; }
  body, body.inner, body.login { background: #46208c url(desk.jpg) center top / cover no-repeat fixed; }

  /* left image panel ki zaroorat nahi: background me logo + pack already hai */
  .hero, body.inner .hero { display: contents; }
  .hero .logo { display: none; }
  .logout { position: fixed; top: 20px; right: 28px; z-index: 20; }

  .screen { grid-template-columns: minmax(0, 1fr) 500px; padding: 0 56px; }
  .wrap, body.inner .wrap { grid-column: 2; align-self: start; margin-top: clamp(28px, calc(50vh - 300px), 150px); padding: 0 0 32px; }
  .card { box-shadow: 0 24px 60px rgba(60, 30, 20, .28); }
  .crumb { box-shadow: 0 10px 30px rgba(60, 30, 20, .2); }

  /* footer purple wave par aata hai (image ke neeche) */
  .foot { grid-column: 1 / -1; }
  .foot-in { border-top: 0; color: #e4d8ff; padding: 14px 0 18px; }
}
@media (min-width: 1300px) {
  .screen { max-width: none; padding: 0 clamp(56px, 7vw, 140px); grid-template-columns: minmax(0, 1fr) 520px; }
}
@media (min-width: 900px) {
  .foot-in { text-align: right; padding: 0 0 12px; font-size: 12px; }
}

/* =====================================================================
   DESKTOP: page scroll nahi. Sab kuch ek screen me (compact layout)
   ===================================================================== */
@media (min-width: 900px) {
  html, body { height: 100%; overflow: hidden; }
  .screen { height: 100vh; min-height: 0; grid-template-rows: minmax(0, 1fr) auto; }
  .wrap, body.inner .wrap { align-self: center; margin: 0; padding: 0; max-height: calc(100vh - 44px); overflow-y: auto; scrollbar-width: none; }
  .wrap::-webkit-scrollbar { display: none; }
  .panel { gap: 10px; }
  .foot-in { padding: 0 0 10px; }

  .crumb { padding: 9px 16px; gap: 7px; }
  .crumb-t { font-size: 14px; }
  .card { padding: 22px 24px; gap: 14px; }
  .card .head { gap: 4px; }
  .head h2 { font-size: 23px; }
  .sub { font-size: 14px; }
  .btn { min-height: 46px; padding: 10px 20px; }
  input[type=text], input[type=tel] { min-height: 46px; padding: 9px 14px; }
  .field { gap: 5px; }

  /* login */
  body.login .card { gap: 16px; }

  /* choose */
  .offer { padding: 10px 14px; font-size: 14px; }
  .refs { gap: 8px; }
  .ref .cap { padding: 5px 10px; }

  /* capture: reference + text ek row me, chhote slots */
  .refbox { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: center; padding: 10px 12px; }
  .refbox .rt { font-size: 13px; line-height: 1.4; }
  .refbox .ref img { max-height: 110px; object-fit: cover; }
  .notice { padding: 8px 12px; font-size: 13px; }
  .slots { gap: 10px; }
  .slot { aspect-ratio: 1 / 0.78; }
  #capErr:empty, .err:empty { display: none; }

  /* survey */
  .qcard { padding: 12px 14px; gap: 9px; }
  .qcard .lbl { font-size: 15px; }
  .star svg { width: 34px; height: 34px; }
  .tiles { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .tile { min-height: 68px; padding: 8px 4px; font-size: 12.5px; }
  .tile svg { width: 24px; height: 24px; }
  .scap { min-height: 0; }

  /* payment, thanks */
  .elig { padding: 9px 12px; font-size: 13px; }
  .tab { min-height: 40px; padding: 7px 4px; }
  .tick { width: 56px; height: 56px; }
  .tick svg { width: 30px; height: 30px; }
  .sum { padding: 10px 12px; gap: 6px; font-size: 13.5px; }
}
@media (min-width: 900px) {
  #otpForm { padding-top: 12px !important; gap: 9px !important; }
  #otpForm .otpbox { height: 50px; }
  #otpForm .demo { padding: 7px 12px; }
}

/* =====================================================================
   CHOOSE PAGE (choose.png jaisa)
   ===================================================================== */
body.choose { background: #f7efe5; }
body.choose .screen { background: none; max-width: 560px; }
body.choose .hero { padding: 0; }
.hero-img { display: block; width: 100%; height: auto; }
.shopbar { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; justify-content: center; padding: 10px 14px; min-height: 64px; }
.shopbar img { position: absolute; left: 12px; top: 8px; width: 74px; height: auto; }
.shopbar h1 { margin: 0; font-family: var(--font-body); font-weight: 700; font-size: 28px; color: #1c1b3a; text-shadow: 0 1px 0 rgba(255,255,255,.6); }
body.choose .logout { top: auto; bottom: auto; right: 12px; top: 74px; }
body.choose .wrap { margin-top: -26px; padding: 0 14px 26px; }
.shop-title { display: none; }

.vis-card { background: #fff; border-radius: 26px; padding: 24px 18px 22px; box-shadow: 0 10px 34px rgba(60,30,20,.16); display: flex; flex-direction: column; gap: 26px; }
.vis-title { font-family: var(--font-body); font-weight: 800; font-size: 26px; line-height: 1.2; color: #2a2a8c; margin: 0; padding-bottom: 8px; border-bottom: 3px solid #f2c200; align-self: flex-start; }
.vis-box { border: 1px solid #dedada; border-radius: 18px; padding: 0 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.vis-head { display: flex; align-items: center; margin: 0 -17px; transform: translateY(-50%); height: 0; }
.vis-head::before, .vis-head::after { content: ""; flex: 1; height: 3px; background: #26246b; }
.vis-head span { background: #f7e63a; color: #26246b; font-weight: 800; font-size: 21px; padding: 6px 20px; border-radius: 999px; white-space: nowrap; line-height: 1.25; }
.vis-box p { margin: 26px 0 0; text-align: center; font-size: 16px; line-height: 1.7; color: #1b1b1b; }
.vis-box img { display: block; width: 100%; height: auto; border-radius: 16px; cursor: zoom-in; }
.vis-next .btn { width: 100%; }

@media (max-width: 380px) {
  .shopbar h1 { font-size: 23px; }
  .shopbar img { width: 60px; }
  .vis-title { font-size: 22px; }
  .vis-head span { font-size: 17px; padding: 5px 14px; }
}

/* desktop: deskop.png background, wide card right side, 2 sections side by side, no scroll */
@media (min-width: 900px) {
  body.choose { background: #46208c url(desk.jpg) center top / cover no-repeat fixed; }
  body.choose .hero-img, body.choose .shopbar { display: none; }
  body.choose .screen { max-width: none; grid-template-columns: minmax(0, 1fr) 760px; }
  body.choose .wrap { margin: 0; padding: 0; }
  .shop-title { display: block; margin: 0 0 10px; font-family: var(--font-body); font-weight: 800; font-size: 28px; color: #26246b; text-align: center; }
  .vis-card { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 20px; padding: 20px 22px; }
  .vis-title { grid-column: 1 / -1; font-size: 22px; }
  .vis-box { padding: 0 14px 14px; gap: 8px; }
  .vis-head span { font-size: 17px; padding: 4px 16px; }
  .vis-box p { margin-top: 20px; font-size: 13.5px; line-height: 1.5; }
  .vis-box img { height: 170px; object-fit: cover; }
  .vis-next { grid-column: 1 / -1; }
}
@media (min-width: 1300px) { body.choose .screen { grid-template-columns: minmax(0, 1fr) 800px; } }
/* choose: title cream band me pack ke upar (image jaisa) */
body.choose .hero { padding-top: 62px; background: #fbf8f3; }
.shopbar { height: 62px; min-height: 0; padding: 0 14px; }
.shopbar img { top: 4px; width: 70px; }
body.choose .logout { top: 80px; }
@media (min-width: 900px) {
  body.choose .hero { padding-top: 0; background: none; }
  body.choose .screen { grid-template-columns: minmax(0, 1fr) 620px; }
  .vis-card { gap: 20px 16px; padding: 18px 18px; }
  .vis-box img { height: 150px; }
  .vis-box p { font-size: 13px; }
  body.choose .logout { top: 20px; }
}
@media (min-width: 1300px) { body.choose .screen { grid-template-columns: minmax(0, 1fr) 660px; } }
@media (min-width: 900px) {
  .hide-desk { display: none; }
  .slot { aspect-ratio: 1 / 0.6; }
  .refbox .ref img { max-height: 84px; }
  .refbox { padding: 8px 12px; }
  .refbox .ref .cap { display: none; }
}
@media (min-width: 900px) {
  .gimg { aspect-ratio: 16 / 9; }
  .gimg svg { width: 38%; }
  .gtx { padding: 7px 10px 9px; }
  .gtx b { font-size: 14px; }
  .gtx span { font-size: 12px; }
  .ggrid { gap: 10px; }
}
@media (min-width: 900px) {
  .gimg { aspect-ratio: 16 / 6.5; }
  .gimg svg { width: 30%; }
}
/* choose: reference images ke upar patla dark frame (choose.png jaisa) */
.vis-box img { border: 2px solid #1c1b3a; box-sizing: border-box; }
@media (min-width: 900px) { .vis-box img { object-position: center 40%; } }
@media (min-width: 900px) { .vis-box img { margin-top: auto; } }
.lb img { object-fit: contain; }
/* capture: location status */
.geo { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-radius: 10px; padding: 9px 12px; font-size: 13.5px; font-weight: 600; background: var(--lav); color: var(--ink-soft); }
.geo.ok { background: #e6f4ec; color: var(--ok); }
.geo.ok::before { content: "\2713"; margin-right: 6px; }
.geo.bad { background: #fdecf1; color: var(--err); }
.geo-retry { font: inherit; font-weight: 700; font-size: 13px; background: var(--purple); color: #fff; border: 0; border-radius: 8px; padding: 6px 12px; cursor: pointer; white-space: nowrap; }
.geo-retry[hidden] { display: none; }

/* =====================================================================
   DESKTOP (login ke baad ke pages): upar carousel header, neeche content
   ===================================================================== */
.desk-carousel { display: none; }
@media (min-width: 900px) {
  html.pg-inner, html.pg-inner body { height: auto; overflow: visible; }
  body.inner, body.choose { background: #f6f0e8; background-attachment: scroll; }

  .desk-carousel { display: block; position: relative; height: clamp(250px, 32vh, 340px); overflow: hidden; background: #46208c; }
  .dc-slide { position: absolute; inset: 0; background-size: cover; background-position: center top; opacity: 0; transition: opacity .9s ease; }
  .dc-slide.on { opacity: 1; }
  .dc-offer { background-position: center 42%; }
  .dc-offer::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(35, 12, 80, .88) 0%, rgba(35, 12, 80, .55) 45%, rgba(35, 12, 80, 0) 75%); }
  .dc-cap { position: absolute; left: max(48px, 8vw); top: 50%; transform: translateY(-50%); max-width: 460px; color: #fff; display: flex; flex-direction: column; gap: 8px; }
  .dc-cap img { width: 120px; height: auto; margin-bottom: 4px; }
  .dc-cap b { font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.1; color: #f7e63a; }
  .dc-cap span { font-size: clamp(14px, 1.3vw, 18px); line-height: 1.45; color: #f2ecff; }
  .dc-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 8px; z-index: 3; }
  .dc-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: rgba(255, 255, 255, .55); box-shadow: 0 0 0 1px rgba(70, 32, 140, .25); transition: all .25s; }
  .dc-dots button.on { width: 26px; border-radius: 6px; background: #46208c; box-shadow: none; }
  .dc-logout { position: absolute; top: 16px; right: 24px; z-index: 5; font-size: 13px; font-weight: 700; color: var(--purple); background: rgba(255, 255, 255, .92); padding: 7px 16px; border-radius: 20px; text-decoration: none; box-shadow: 0 2px 8px rgba(30, 10, 70, .2); }

  /* content carousel ke neeche, normal page flow */
  body.inner .hero, body.choose .hero { display: none; }
  body.inner .screen, body.choose .screen { display: block; height: auto; min-height: 0; max-width: 780px; margin: 0 auto; padding: 22px 20px 0; background: none !important; }
  body.choose .screen { max-width: 880px; }
  body.inner .wrap, body.choose .wrap { max-height: none; overflow: visible; margin: 0; padding: 0 0 18px; }
  body.inner .foot, body.choose .foot { margin-top: 6px; }
  body.inner .foot-in, body.choose .foot-in { color: #7b6a9d; text-align: center; padding: 8px 0 22px; border: 0; }
  body.choose .shop-title { margin-bottom: 14px; }
  body.choose .vis-box img { height: 190px; }
  .card { box-shadow: 0 14px 40px rgba(60, 30, 80, .16); }
  .crumb { box-shadow: 0 8px 24px rgba(60, 30, 80, .12); }
}
/* choose: buttons + gifts lightbox */
.vis-next.row .btn { width: 100%; }
.lb-empty { background: #fff; color: var(--purple-deep); font-weight: 700; font-size: 18px; padding: 28px 34px; border-radius: 16px; text-align: center; max-width: 90%; }
.lb img[hidden], .lb-empty[hidden] { display: none; }
@media (min-width: 900px) { .vis-next.row { flex-wrap: nowrap; } }
@media (min-width: 900px) { .dc-dots { z-index: 1; } .dc-logout { z-index: 1; } }
/* 3 digit OTP boxes: fixed size, beech me */
.otps { justify-content: center; gap: 12px; }
.otps .otpbox { flex: 0 0 auto; width: 72px; height: 60px; }
#otpForm .otpbox { height: 56px; }

/* =====================================================================
   Upar ka header (login ke baad): user ka naam + Logout
   ===================================================================== */
.userbar { position: sticky; top: 0; z-index: 60; background: linear-gradient(90deg, var(--purple-deep), var(--purple)); color: #fff; box-shadow: 0 4px 16px rgba(30, 10, 70, .28); }
.ub-in { max-width: 1280px; margin: 0 auto; padding: 8px max(14px, env(safe-area-inset-right, 0px)) 8px max(14px, env(safe-area-inset-left, 0px)); display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; }
.ub-user { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ub-av { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), #f3d27e); color: var(--purple-deep); display: grid; place-items: center; font-weight: 700; flex: none; }
.ub-name { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #efe8ff; }
.ub-name b { color: #fff; font-weight: 600; }
.ub-logout { display: inline-flex; align-items: center; gap: 7px; color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; padding: 7px 15px; border-radius: 22px; border: 1.5px solid rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .1); transition: background .15s; flex: none; }
.ub-logout:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.ub-logout svg { width: 17px; height: 17px; }
@media (max-width: 380px) { .ub-name { font-size: 14px; } .ub-logout { padding: 7px 12px; } }
@media (min-width: 900px) { .ub-in { padding-left: 40px; padding-right: 40px; } }

/* ---------- Carousel fix: image crop nahi hogi ---------- */
@media (min-width: 900px) {
  /* height = banner image ke ratio (1672x330) se, taaki logo / lantern kate nahi */
  .desk-carousel { height: auto; aspect-ratio: 1672 / 330; max-height: 400px; min-height: 230px; }
  .dc-slide { background-size: 100% 100%; background-position: center; background-repeat: no-repeat; }

  /* offer slides: purple background, image POORI dikhe (right), text left */
  .dc-offer { background-color: #2f1470; background-image: none !important; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 clamp(48px, 8vw, 140px); }
  .dc-offer::before { display: none; }
  .dc-offer::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 30%, rgba(107, 63, 192, .55), transparent 55%), linear-gradient(120deg, #2f1470, #46208c 60%, #6b3fc0); z-index: 0; }
  .dc-offer .dc-cap { position: relative; z-index: 2; left: auto; top: auto; transform: none; max-width: 520px; flex: 1 1 auto; }
  .dc-offer .dc-pic { position: relative; z-index: 2; height: 80%; max-width: 46%; flex: none; display: flex; align-items: center; }
  .dc-offer .dc-pic img { height: 100%; width: auto; max-width: 100%; object-fit: contain; border-radius: 14px; border: 3px solid rgba(255, 255, 255, .85); box-shadow: 0 10px 28px rgba(10, 0, 40, .45); display: block; }
  .dc-cap img { width: 96px; }
}
@media (min-width: 900px) { .dc-dots button.on { background: var(--gold); box-shadow: 0 0 0 1.5px rgba(70, 32, 140, .55); } }

/* "Reference Images for Visibility" heading: center (desktop + mobile) */
.vis-title { align-self: center; text-align: center; width: fit-content; max-width: 100%; margin-left: auto; margin-right: auto; }
@media (min-width: 900px) { .vis-title { grid-column: 1 / -1; justify-self: center; } }
/* shop naam hata diya: mobile par logo beech me */
.shopbar img { position: static; width: 78px; }
.shopbar { justify-content: center; }

/* =====================================================================
   Carousel: mobile + desktop dono par (login ke baad ke pages)
   ===================================================================== */
.dc-first { background-image: url(bg_top.jpg); }
@media (min-width: 900px) { .dc-first { background-image: url(desk_top.jpg); } }

@media (max-width: 899px) {
  /* mobile: carousel hero ki jagah leta hai */
  body.inner .hero, body.choose .hero { display: none; }
  body.inner .screen { background: var(--bg-purple); min-height: 0; }
  body.choose .screen { background: none; }
  .desk-carousel { display: block; position: relative; overflow: hidden; background: #46208c; aspect-ratio: 941 / 400; min-height: 168px; touch-action: pan-y; }
  .dc-slide { position: absolute; inset: 0; background-size: cover; background-position: center top; background-repeat: no-repeat; opacity: 0; transition: opacity .7s ease; }
  .dc-slide.on { opacity: 1; }

  /* offer slides: text left, poori image right */
  .dc-offer { background-color: #2f1470; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 14px 18px 16px; }
  .dc-offer::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 15% 25%, rgba(107, 63, 192, .55), transparent 55%), linear-gradient(120deg, #2f1470, #46208c 60%, #6b3fc0); z-index: 0; }
  .dc-offer .dc-cap { position: relative; z-index: 2; color: #fff; display: flex; flex-direction: column; gap: 4px; flex: 1 1 0; min-width: 0; }
  .dc-cap img { width: 58px; height: auto; margin-bottom: 2px; }
  .dc-cap b { font-family: var(--font-display); font-weight: 400; font-size: clamp(17px, 5.2vw, 24px); line-height: 1.1; color: #f7e63a; }
  .dc-cap span { font-size: clamp(11px, 3.1vw, 13.5px); line-height: 1.35; color: #f2ecff; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .dc-offer .dc-pic { position: relative; z-index: 2; height: 76%; max-width: 46%; flex: none; display: flex; align-items: center; }
  .dc-offer .dc-pic img { height: 100%; width: auto; max-width: 100%; object-fit: contain; border-radius: 10px; border: 2px solid rgba(255, 255, 255, .85); box-shadow: 0 6px 18px rgba(10, 0, 40, .45); display: block; }

  .dc-dots { position: absolute; left: 0; right: 0; bottom: 7px; display: flex; justify-content: center; gap: 7px; z-index: 3; }
  .dc-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: rgba(255, 255, 255, .6); box-shadow: 0 0 0 1px rgba(70, 32, 140, .25); transition: all .25s; }
  .dc-dots button.on { width: 22px; border-radius: 5px; background: var(--gold); box-shadow: 0 0 0 1.5px rgba(70, 32, 140, .5); }

  /* choose page: carousel ke neeche cream background, card ooper chadha hua */
  body.choose .wrap { margin-top: 0; padding-top: 14px; }
  body.inner .wrap { padding-top: 14px; }
}
.dc-logo { display: none; }
@media (max-width: 899px) {
  .dc-logo { display: block; position: absolute; left: 50%; top: 6%; transform: translateX(-50%); height: 78%; width: auto; max-width: 52%; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(60, 30, 100, .25)); }
}

/* =====================================================================
   MOBILE: design pehle jaisa (logo wala banner + purple curve). Carousel me sirf images ghoomti hain.
   ===================================================================== */
@media (max-width: 899px) {
  .desk-carousel { aspect-ratio: 941 / 358; min-height: 0; }
  .dc-cash { background-image: url(ref_cashback.jpg); }
  .dc-disp { background-image: url(ref_display.jpg); }
  .dc-offer { display: block; padding: 0; background-color: #2f1470; background-size: cover; background-position: center; }
  .dc-offer::after { display: none; }
  .dc-offer .dc-cap, .dc-offer .dc-pic { display: none; }
  .dc-first .dc-logo { top: 5%; height: 80%; max-width: 40%; }
  /* neeche purple curve, jaisa pehle hero ke neeche tha */
  body.inner .desk-carousel::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26px; background: var(--bg-purple); border-radius: 26px 26px 0 0; z-index: 2; }
  body.inner .dc-dots { bottom: 32px; z-index: 3; }
  body.inner .wrap { padding-top: 0; margin-top: -2px; }
  /* choose page: cream curve */
  body.choose .desk-carousel::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22px; background: #f7efe5; border-radius: 22px 22px 0 0; z-index: 2; }
  body.choose .dc-dots { bottom: 28px; }
  body.choose .wrap { padding-top: 0; margin-top: -2px; }
}

/* =====================================================================
   Bugsheet fixes
   ===================================================================== */
/* BUG_002 / BUG_004: back arrow */
.back-arrow { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1.5px solid var(--lav-line); background: #fff; color: var(--purple); display: inline-grid; place-items: center; cursor: pointer; padding: 0; text-decoration: none; transition: background .15s; }
.back-arrow:hover { background: var(--lav); }
.back-arrow svg { width: 22px; height: 22px; }
.head-back { flex-direction: row; align-items: center; gap: 12px; }
.head-back h2 { flex: 1; }
.vis-card { position: relative; }
.vis-back { position: absolute; top: 16px; left: 14px; z-index: 2; }

/* BUG_003: OTP box + buttons chhote aur layout ke hisaab se */
#otpForm .otps { gap: 10px; }
#otpForm .otps .otpbox, .otps .otpbox { width: 54px; height: 50px; font-size: 22px; border-radius: 10px; }
#otpForm .row { gap: 10px; }
#otpForm .row .btn { min-height: 44px; padding: 9px 14px; font-size: 15px; flex: 1 1 130px; }
#otpForm .demo { font-size: 13px; padding: 8px 12px; }
@media (max-width: 380px) { .otps .otpbox, #otpForm .otps .otpbox { width: 48px; height: 46px; } }
@media (min-width: 900px) { #otpForm .otps .otpbox { height: 46px; } #otpForm .row .btn { min-height: 42px; } }

/* BUG_009: mobile par neeche faltu khaali jagah nahi */
@media (max-width: 899px) {
  .screen { min-height: 0; }
  .wrap { padding-bottom: 14px; }
  .foot-in { padding: 0 16px 14px; }
  body.inner .card { margin-bottom: 0; }
}

/* Back arrow ab upar header me, naam ke left side */
.ub-back { width: 36px; height: 36px; flex: none; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .12); color: #fff; display: inline-grid; place-items: center; cursor: pointer; padding: 0; text-decoration: none; transition: background .15s; }
.ub-back:hover { background: rgba(255, 255, 255, .26); color: #fff; }
.ub-back svg { width: 21px; height: 21px; }
.vis-back { display: none; }

/* =====================================================================
   Mobile carousel: images poori dikhein (crop / curve ke peeche na chhupein)
   ===================================================================== */
@media (max-width: 899px) {
  .desk-carousel { aspect-ratio: 941 / 430; }
  .dc-offer { background-image: none !important; background-color: #2a1060; overflow: hidden; }
  /* peeche: usi image ki blurred copy (khaali jagah bharne ke liye) */
  .dc-offer::before { content: ""; display: block !important; position: absolute; inset: -20px; background-size: cover; background-position: center; filter: blur(16px) brightness(.8); z-index: 0; }
  /* aage: poori image, curve aur dots ke upar */
  .dc-offer::after { content: ""; display: block !important; position: absolute; left: 8px; right: 8px; top: 8px; bottom: 34px; background-size: contain; background-position: center; background-repeat: no-repeat; background-color: transparent !important; background-image: inherit; z-index: 1; }
  .dc-cash::before, .dc-cash::after { background-image: url(ref_cashback.jpg); }
  .dc-disp::before, .dc-disp::after { background-image: url(ref_display.jpg); }
  body.inner .dc-dots, body.choose .dc-dots { bottom: 8px; }
  body.inner .dc-dots button, body.choose .dc-dots button { box-shadow: 0 0 0 1px rgba(255, 255, 255, .5); }
  /* curve ke upar dots dikhein: curve chhoti */
  body.inner .desk-carousel::after { height: 22px; }
  body.choose .desk-carousel::after { height: 18px; }
  .dc-first .dc-logo { top: 4%; height: 76%; }
}

/* ---------- Image zoom box (choose page): + / - ---------- */
.lb.zoombox { cursor: default; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; padding: 0; background: rgba(20, 8, 50, .96); }
.lb.zoombox[hidden] { display: none !important; }
.zb-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px; flex: none; }
.zb-tools { display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .12); border-radius: 30px; padding: 5px 8px; }
.zb-btn { min-width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: var(--purple); font: 700 24px/1 var(--font-body); cursor: pointer; display: grid; place-items: center; padding: 0 10px; }
.zb-btn:hover { background: var(--gold-soft); }
.zb-btn:disabled { opacity: .35; cursor: default; }
.zb-reset { border-radius: 20px; font-size: 14px; padding: 0 14px; }
.zb-level { min-width: 52px; text-align: center; color: #fff; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.zb-close { background: rgba(255, 255, 255, .18); color: #fff; font-size: 26px; padding: 0; }
.zb-close:hover { background: rgba(255, 255, 255, .32); }
.zb-stage { flex: 1; min-height: 0; display: grid; place-items: center; overflow: hidden; touch-action: none; position: relative; padding: 0 10px; }
.zb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; background: #fff; transform-origin: center; transition: transform .12s ease-out; user-select: none; -webkit-user-drag: none; cursor: zoom-in; }
.zb-stage.zoomed img { cursor: grab; }
.zb-stage.zoomed img:active { cursor: grabbing; transition: none; }
.zb-stage img[hidden] { display: none; }
.zb-hint { text-align: center; color: var(--gold-soft); font-size: 13px; padding: 10px 14px calc(12px + env(safe-area-inset-bottom, 0px)); flex: none; }
@media (max-width: 480px) { .zb-hint { font-size: 12px; } .zb-btn { min-width: 38px; height: 38px; } }
.lb.zoombox { z-index: 5000; }

/* Footer text: contrast better (light background par dark, purple background par white) */
.foot-in { font-weight: 500; }
@media (min-width: 900px) {
  body.inner .foot-in, body.choose .foot-in { color: #2f1470; font-size: 13px; }   /* cream background */
  body.login .foot-in { color: #fff; font-weight: 600; }                              /* purple wave */
}
@media (max-width: 899px) { .foot-in { color: #efe8ff; } }                           /* purple background */

/* =====================================================================
   Carousel slide 1 = banner 1 (desktop + mobile dono par)
   ===================================================================== */
.dc-first { background-image: url(banner1.jpg) !important; background-repeat: no-repeat; background-color: #efe6dc; }
.dc-first .dc-logo { display: none !important; }

/* desktop: banner ke ratio (1672x536) se height, bahut badi screen par limit */
@media (min-width: 900px) {
  .desk-carousel { aspect-ratio: 1672 / 536; height: auto; min-height: 0; max-height: 430px; }
  .dc-first { background-size: cover; background-position: center; }
  .dc-dots { bottom: 10px; }
}
/* mobile: patli banner me text chhota na ho, isliye thodi unchi strip, beech ka hissa dikhta hai (content beech me hai) */
@media (max-width: 899px) {
  .desk-carousel { aspect-ratio: 941 / 470; }
  .dc-first { background-size: cover; background-position: center; }
}
@media (max-width: 899px) {
  .desk-carousel { aspect-ratio: 941 / 520; }
  .dc-first { background-position: center top; }
}
@media (min-width: 900px) {
  /* poori banner dikhe; bahut badi screen par dono taraf usi ki blurred patti */
  .dc-first { background-size: contain; background-position: center; background-color: #efe6dc; overflow: hidden; }
  .dc-first::before { content: ""; position: absolute; inset: -20px; background: url(banner1.jpg) center / cover no-repeat; filter: blur(18px); z-index: 0; }
  .dc-first::after { content: ""; position: absolute; inset: 0; background: url(banner1.jpg) center / contain no-repeat; z-index: 1; }
  .dc-first { background-image: none !important; }
}

/* Banner: object-fit contain (poori image dikhe), khaali jagah usi image ki blurred copy se bhari */
.dc-first { background-image: none !important; background-color: #efe6dc; overflow: hidden; }
.dc-first::before { content: ""; position: absolute; inset: -20px; background: url(banner1.jpg) center / cover no-repeat; filter: blur(16px); z-index: 0; }
.dc-first::after { content: ""; position: absolute; inset: 0; background: url(banner1.jpg) center / contain no-repeat; z-index: 1; }
@media (max-width: 899px) {
  .desk-carousel { aspect-ratio: 941 / 360; }
  .dc-first::after { inset: 6px 0 24px 0; }      /* neeche curve aur dots ke liye jagah */
}

/* Mobile: banner ka beech wala hissa (text + packs) alag crop, taaki bada aur saaf dikhe, aur poora ho */
@media (max-width: 899px) {
  .desk-carousel { aspect-ratio: 780 / 560; }
  .dc-first::before { background-image: url(banner1_m.jpg); }
  .dc-first::after { background-image: url(banner1_m.jpg); inset: 0 0 20px 0; }
  .dc-dots { bottom: 6px !important; }
  body.inner .desk-carousel::after { height: 20px; }
  body.choose .desk-carousel::after { height: 16px; }
}

/* ---------- Carousel: banner 1 / 2 / 3 (desktop wide, mobile alag crop) ---------- */
.dc-b1 { --d: url(banner1.jpg); --m: url(banner1_m.jpg); }
.dc-b2 { --d: url(banner2.jpg); --m: url(banner2_m.jpg); }
.dc-b3 { --d: url(banner3.jpg); --m: url(banner3_m.jpg); }
.dc-first.dc-b1::before, .dc-first.dc-b1::after,
.dc-first.dc-b2::before, .dc-first.dc-b2::after,
.dc-first.dc-b3::before, .dc-first.dc-b3::after { background-image: var(--d); }
@media (max-width: 899px) {
  .dc-first.dc-b1::before, .dc-first.dc-b1::after,
  .dc-first.dc-b2::before, .dc-first.dc-b2::after,
  .dc-first.dc-b3::before, .dc-first.dc-b3::after { background-image: var(--m); }
}
/* purani text wali slides hat gayi hain */
.dc-offer { display: none !important; }

/* =====================================================================
   FOOTER (sab jagah): apni gehri purple strip + white text = hamesha saaf padha jaye
   ===================================================================== */
body .foot { background: #2f1470 !important; border: 0; margin-top: 18px; width: 100%; position: relative; z-index: 3; }
body .foot .foot-in { color: #ffffff !important; background: none; border: 0 !important; text-align: center !important; font-size: 13px; font-weight: 500; line-height: 1.4; padding: 14px 16px !important; max-width: none; margin: 0; }
@media (min-width: 900px) {
  .screen > .foot, body.login .foot { grid-column: 1 / -1; }
  body.login .screen { padding-bottom: 0; }
}
@media (min-width: 900px) { body .foot { width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); } }
.is-busy { opacity: .7; pointer-events: none; }

/* ---------- Choose page: gift carousel (Innovative Display box). Prefix gc- = header carousel (dc-) se alag ---------- */
.gc { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; border: 2px solid #1c1b3a; background: #1c1b3a; touch-action: pan-y; }
.gc-track { position: absolute; inset: 0; }
.gc-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; background: #1c1b3a; }
.gc-slide.on { opacity: 1; z-index: 1; }
/* khaali jagah usi image ki blur copy se nahi, seedha contain: poori image dikhe */
.gc-slide img { width: 100%; height: 100%; object-fit: contain; display: block; border: 0 !important; border-radius: 0 !important; margin: 0 !important; height: 100% !important; cursor: zoom-in; user-select: none; -webkit-user-drag: none; }
.gc-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .85); color: #26246b; font: 700 24px/1 var(--font-body); cursor: pointer; display: grid; place-items: center; padding: 0 0 3px; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.gc-nav:hover { background: #fff; }
.gc-prev { left: 8px; } .gc-next { right: 8px; }
.gc-dots { position: absolute; left: 0; right: 0; bottom: 8px; z-index: 3; display: flex; justify-content: center; gap: 7px; }
.gc-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: rgba(255, 255, 255, .65); box-shadow: 0 0 0 1px rgba(0, 0, 0, .35); cursor: pointer; transition: all .25s; }
.gc-dots button.on { width: 24px; border-radius: 5px; background: #f7e63a; }
@media (min-width: 900px) { .vis-box .gc { height: 150px; aspect-ratio: auto; margin-top: auto; } .gc-nav { width: 30px; height: 30px; font-size: 20px; } .gc-dots { bottom: 5px; } }
@media (min-width: 900px) { .vis-box .gc { height: 190px; } .vis-box .vis-head + p + .gc, .vis-box .gc { margin-top: 8px; } }

/* gift carousel: image poori box me (cover), side patti nahi */
.gc-slide img { object-fit: cover !important; object-position: center; }

/* gift carousel: arrow buttons aur dots nahi dikhne (auto-slide + swipe chalta rahega) */
.gc-nav, .gc-dots { display: none !important; }

/* ---------- Zoom modal: gallery (prev / next + thumbnails) ---------- */
.zb-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); color: #26246b; font: 700 30px/1 var(--font-body); cursor: pointer; display: grid; place-items: center; padding: 0 0 4px; box-shadow: 0 3px 12px rgba(0, 0, 0, .4); }
.zb-nav[hidden] { display: none; }
.zb-nav:hover { background: #fff; }
.zb-prev { left: 12px; } .zb-next { right: 12px; }
.zb-thumbs { flex: none; display: flex; justify-content: center; gap: 10px; padding: 8px 14px 0; }
.zb-thumbs[hidden] { display: none; }
.zb-th { width: 62px; height: 62px; border-radius: 10px; border: 2px solid rgba(255, 255, 255, .35); background: #000; padding: 0; overflow: hidden; cursor: pointer; opacity: .65; transition: all .15s; }
.zb-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zb-th.on { border-color: #f7e63a; opacity: 1; transform: scale(1.06); }
.zb-th:hover { opacity: 1; }
@media (max-width: 480px) { .zb-nav { width: 38px; height: 38px; font-size: 26px; } .zb-prev { left: 6px; } .zb-next { right: 6px; } .zb-th { width: 52px; height: 52px; } }
/* zoom modal: image stage ke andar fit (poori dikhe), kate nahi */
.zb-stage { display: flex; align-items: center; justify-content: center; }
.zb-stage img { width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 215px); max-height: calc(100dvh - 215px); }
@media (max-width: 480px) { .zb-stage img { max-height: calc(100vh - 200px); max-height: calc(100dvh - 200px); } }

/* ---------- Survey: outlet type options + input ---------- */
.qcard input[type=text] { background: #fff; }
.opts2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.opt2 { position: relative; display: flex; align-items: center; gap: 10px; background: #fff; border: 1.5px solid var(--lav-line); border-radius: 12px; padding: 12px 14px; min-height: 50px; cursor: pointer; font-weight: 600; color: var(--purple); transition: all .15s; }
.opt2 input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt2 .dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--purple-mid); flex: none; display: grid; place-items: center; }
.opt2.on { background: var(--purple); color: #fff; border-color: var(--purple); }
.opt2.on .dot { border-color: #fff; background: radial-gradient(circle, var(--gold) 0 45%, transparent 50%); }
.opt2:focus-within { outline: 3px solid var(--purple-mid); outline-offset: 2px; }
.prog i { width: 22px; }
@media (max-width: 380px) { .opts2 { grid-template-columns: 1fr; } }

/* ---------- choose: "Reference image" caption + ASSURED GIFTS box ---------- */
.ref-cap { text-align: center; font-size: 12px; font-weight: 600; color: #6b5c8f; letter-spacing: .03em; margin-top: -2px; }
.vis-wide { grid-column: 1 / -1; }
.ac-empty { text-align: center; color: #6b5c8f; font-weight: 600; padding: 26px 10px; background: #f7efe5; border-radius: 14px; margin-top: 22px; }
.vis-box .gc.ac { margin-top: 22px; }
@media (min-width: 900px) {
  .vis-box.vis-wide .gc.ac { height: 300px; margin-top: 24px; }
}

/* ---------- Scheme closed card ---------- */
.closed-card { text-align: center; align-items: center; gap: 12px; }
.closed-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--lav); color: var(--purple); display: grid; place-items: center; }
.closed-ic svg { width: 34px; height: 34px; }
.closed-card h2 { font-size: 28px; }
body .geo[hidden] { display: none !important; }

/* Camera overlay: sabse upar (header / footer / carousel kuch nahi dikhega), peeche page scroll nahi */
.cam { z-index: 9000 !important; }
html.cam-open, html.cam-open body { overflow: hidden !important; }
#skipBtn:disabled { opacity: .45; cursor: not-allowed; }
/* survey: required sawal ke aage sparkles icon */
.qcard .lbl { display: flex; align-items: flex-start; gap: 8px; }
.qcard .lbl .spark { width: 20px; height: 20px; flex: none; color: #7C3AED; margin-top: 2px; }

/* survey: Skip button heading ke right side me */
.survey-head { gap: 6px; }
.sh-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sh-row h2 { flex: 1; min-width: 0; }
.skip-top { flex: none; font: 600 14px var(--font-body); color: var(--purple); background: var(--lav); border: 1.5px solid var(--lav-line); border-radius: 22px; padding: 7px 16px; cursor: pointer; white-space: nowrap; transition: background .15s; }
.skip-top:hover:not(:disabled) { background: #e8def8; }
.skip-top:disabled { opacity: .45; cursor: not-allowed; }

/* =====================================================================
   ASSURED GIFT block (gift design.png): header badge + nila panel + coverflow carousel
   ===================================================================== */
.as-block { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; }
/* header image ki card-border wali line (y=138 / 196) ko card ke top border par rakho */
.as-head { display: block; width: 52%; height: auto; position: relative; z-index: 3; margin-bottom: calc(-52% * 58 / 718); pointer-events: none; }
.as-card { width: 100%; background: #fff; border: 1.5px solid #d6d6e6; border-radius: 24px; padding: 0 clamp(10px, 2.4vw, 22px) clamp(12px, 2.4vw, 20px); }
.as-line { width: 61%; height: 3px; background: #1b64b0; margin: clamp(46px, 7vw, 66px) auto clamp(14px, 2.4vw, 22px); border-radius: 2px; }
.as-panel { position: relative; background: #3e3585; border-radius: clamp(16px, 2.4vw, 24px); overflow: hidden; aspect-ratio: 1.22; touch-action: pan-y; }
@media (min-width: 900px) { .as-panel { aspect-ratio: 2.1; } .as-line { margin-top: 62px; } }

.as-stage { position: absolute; inset: 7% 0 14%; }
.as-slide { position: absolute; top: 0; bottom: 0; left: 50%; width: 62%; margin-left: -31%; background: #fff; border-radius: clamp(14px, 2.2vw, 24px); border: 3px solid #e3262d; display: grid; place-items: center; padding: 6%; cursor: pointer;
  transition: transform .55s cubic-bezier(.4, .1, .2, 1), opacity .45s ease, border-color .3s; will-change: transform; box-sizing: border-box; }
.as-slide img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; user-select: none; -webkit-user-drag: none; border-radius: 0; }
.as-slide[data-pos="c"]  { transform: none; opacity: 1; border-color: #e3262d; }
.as-slide[data-pos="l"]  { transform: translateX(-93%) scale(.78); opacity: 1; border-color: #1b64b0; border-width: 2px; }
.as-slide[data-pos="r"]  { transform: translateX(93%) scale(.78); opacity: 1; border-color: #1b64b0; border-width: 2px; }
.as-slide[data-pos="far-l"] { transform: translateX(-190%) scale(.7); opacity: 0; pointer-events: none; }
.as-slide[data-pos="far-r"] { transform: translateX(190%) scale(.7); opacity: 0; pointer-events: none; }
.as-slide[data-pos="c"] img { cursor: zoom-in; }

.as-dots { position: absolute; left: 0; right: 0; bottom: 4.5%; display: flex; justify-content: center; align-items: center; gap: 6px; z-index: 20; }
.as-dots button { width: 22px; height: 8px; border-radius: 6px; border: 0; padding: 0; background: rgba(255, 255, 255, .28); cursor: pointer; transition: all .25s; }
.as-dots button.on { width: 13px; height: 13px; border-radius: 50%; background: #fff; }
@media (max-width: 480px) { .as-slide { width: 66%; margin-left: -33%; } .as-dots button { width: 16px; height: 7px; } .as-dots button.on { width: 11px; height: 11px; } }
/* assured slide: image slide ke andar hi fit (bahar na nikle) */
.as-slide { display: block; padding: 0; }
.as-slide img { position: absolute; inset: 6%; width: 88%; height: 88%; max-width: none; max-height: none; object-fit: contain; }

/* Assured Gift header: aapki di hui CSS, desktop + mobile dono par */
.as-head {
    display: block;
    width: 61%;
    height: auto;
    position: relative;
    z-index: 3;
    margin-bottom: calc(-52% * 58 / 718);
    pointer-events: none;
}
.as-head { margin-bottom: calc(-61% * 58 / 718); }

/* Assured Gift: header aur neeli line ke beech gap kam, red/neeli border 1px */
.as-line { margin: clamp(26px, 4.6vw, 34px) auto clamp(10px, 2vw, 16px); }
@media (min-width: 900px) { .as-line { margin-top: 34px; margin-bottom: 14px; } }
.as-slide, .as-slide[data-pos="c"] { border-width: 1px; }
.as-slide[data-pos="l"], .as-slide[data-pos="r"] { border-width: 1px; }
@media (min-width: 900px) { .as-line { margin-top: 56px; margin-bottom: 14px; } }
@media (max-width: 899px) { .as-line { margin-top: calc(61vw * 0.0808 * 0.9 + 14px); } }

/* Assured Gift: header bada (72%), gap kam */
.as-head { width: 72%; margin-bottom: calc(-72% * 58 / 718); }
.as-line { margin: calc(72% * 58 / 718 + 4px) auto 8px; height: 2px; }
@media (min-width: 900px) { .as-line { margin: calc(72% * 58 / 718 + 4px) auto 10px; } }
@media (max-width: 899px) { .as-line { margin: calc(72% * 58 / 718 + 4px) auto 8px; } }
.as-line { margin-top: calc(72% * 58 / 718 + 14px) !important; }
/* Assured Gift: panel ki height badi (large dikhe): mobile ~ +30%, desktop ~ +25% */
.as-panel { aspect-ratio: .95; }
@media (min-width: 600px) { .as-panel { aspect-ratio: 1.45; } }
@media (min-width: 900px) { .as-panel { aspect-ratio: 1.7; } }
.as-stage { inset: 6% 0 12%; }
/* login mobile: naye background me logo already hai, upar se dobara logo nahi */
@media (max-width: 899px) { body.login .hero .logo { display: none; } }

/* ---------- Thank-you: tick animation + confetti canvas ---------- */
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 8000; }
.thanks .tick { animation: tickPop .7s cubic-bezier(.2, 1.4, .4, 1) both, tickRing 2s ease-out .5s 2; }
.thanks .tick svg path { stroke-dasharray: 26; stroke-dashoffset: 26; animation: tickDraw .5s ease-out .55s forwards; }
@keyframes tickPop { 0% { transform: scale(0) rotate(-40deg); opacity: 0; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes tickDraw { to { stroke-dashoffset: 0; } }
@keyframes tickRing { 0% { box-shadow: 0 0 0 8px var(--gold-soft), 0 0 0 8px rgba(230, 185, 77, .55); } 100% { box-shadow: 0 0 0 8px var(--gold-soft), 0 0 0 34px rgba(230, 185, 77, 0); } }
.thanks h2 { animation: thUp .6s ease-out .45s both; }
.thanks .sub, .thanks .sum, .thanks .hint { animation: thUp .6s ease-out .7s both; }
@keyframes thUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .thanks .tick, .thanks .tick svg path, .thanks h2, .thanks .sub, .thanks .sum, .thanks .hint { animation: none !important; stroke-dashoffset: 0 !important; } }

/* thank-you animation thodi slow */
.thanks .tick { animation: tickPop 1.1s cubic-bezier(.2, 1.4, .4, 1) both, tickRing 3s ease-out .8s 2; }
.thanks .tick svg path { animation: tickDraw .9s ease-out .9s forwards; }
.thanks h2 { animation: thUp .9s ease-out .8s both; }
.thanks .sub, .thanks .sum, .thanks .hint { animation: thUp .9s ease-out 1.2s both; }
.thanks .confirm-btn { width: 100%; text-decoration: none; margin-top: 4px; }
