/* The simple home page. Builds on base.css and site.css. */

.home-main { position: relative; min-height: calc(100vh - var(--header-h)); padding: 26px 0 56px; background: linear-gradient(180deg, #faf3e6 0%, var(--bg) 60%); overflow: hidden; }
.home-main .hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.view { position: relative; }
.view.narrow { max-width: 720px; }

/* ================= Home ================= */
#view-home h1:focus, .view-title:focus { outline: none; }

/* On the home screen the page starts with the dark hero, right under a dark header. */
.on-home .home-main { padding: 0 0 64px; background: var(--bg); }
.on-home .home-main .hero-bg { display: none; }
.on-home .site-header, .on-home .site-header.scrolled { background: rgba(10, 13, 45, .96); border-color: rgba(255, 255, 255, .08); box-shadow: none; }
.on-home .site-header .logo { color: #fff; }
.on-home .site-header .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.on-home .site-header .btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.on-home .scroll-progress { background: var(--sun-500); }

/* Buy / Sell switch */
.hx-switch-wrap { position: relative; z-index: 2; display: flex; justify-content: center; margin-bottom: 26px; }
.hx-switch {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; width: 100%; max-width: 540px; padding: 5px;
  border-radius: 22px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 14px 34px rgba(0, 0, 0, .25); backdrop-filter: blur(8px);
}
.hx-switch-thumb {
  position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 17px;
  background: linear-gradient(180deg, #fff, #f1f7f3); box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
  transition: transform .5s cubic-bezier(.34, 1.35, .5, 1);
}
.mode-sell .hx-switch-thumb { transform: translateX(100%); }
.hx-switch button {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 62px; padding: 8px 10px;
  border: 0; border-radius: 17px; background: transparent; color: #fff; font: inherit; cursor: pointer; text-align: left; transition: color .35s;
}
.hx-switch button[aria-selected="true"] { color: var(--brand-900); }
.hx-switch button:focus-visible { outline: 3px solid var(--sun-400); outline-offset: 2px; }
.hx-switch .icon { width: 24px; height: 24px; flex: none; transition: transform .4s var(--ease-spring), color .35s; }
.hx-switch button[aria-selected="true"] .icon { color: var(--brand-600); transform: scale(1.1); }
.hx-switch b { display: block; font-family: var(--font-display); font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.hx-switch small { display: block; font-size: .76rem; font-weight: 600; opacity: .75; line-height: 1.2; }
@media (max-width: 400px) { .hx-switch small { display: none; } .hx-switch b { font-size: .98rem; } .hx-switch button { gap: 7px; min-height: 54px; } }

/* The panel that just appeared fades in */
#buy-hero:not([hidden]), #sell-hero:not([hidden]), #buy-rest:not([hidden]) { animation: panelIn .55s var(--ease-out); }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } }

/* Sell screen */
.hs { position: relative; z-index: 1; }
.mode-sell.on-home .home-main { padding-bottom: 0; }
.mode-sell .hx { min-height: calc(100vh - var(--header-h)); }
.hs-title { margin-top: 16px; color: #fff; font-size: clamp(2.1rem, 8.4vw, 3.6rem); line-height: 1.04; font-weight: 800; letter-spacing: -.045em; }
.hs-title:focus { outline: none; }
.hs-cards { margin-top: 24px; display: grid; gap: 12px; }
@media (min-width: 860px) { .hs-cards { grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px; } }
.hs-card {
  position: relative; display: grid; gap: 8px; align-content: start; padding: 20px; border-radius: 22px; color: #fff; text-decoration: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .04)); border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .22); transition: transform .3s var(--ease-spring), border-color .3s, background .3s;
}
.hs-card:hover { transform: translateY(-5px); border-color: var(--sun-400); background: linear-gradient(160deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, .06)); }
.hs-card:focus-visible { outline: 3px solid var(--sun-400); outline-offset: 3px; }
.hs-card b { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; }
.hs-card > span:not(.hs-ico):not(.hs-go) { color: rgba(255, 255, 255, .78); line-height: 1.5; font-size: .96rem; }
.hs-ico { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; margin-bottom: 4px; color: #fff; box-shadow: 0 8px 18px rgba(0, 0, 0, .25); }
.hs-ico .icon { width: 26px; height: 26px; }
.hs-ico.c1 { background: linear-gradient(135deg, #f59e0b, #d97706); }
.hs-ico.c2 { background: linear-gradient(135deg, #22c55e, #15803d); }
.hs-ico.c3 { background: linear-gradient(135deg, #38bdf8, #0369a1); }
.hs-go { margin-top: 6px; display: inline-flex; align-items: center; gap: 8px; color: var(--sun-400); font-weight: 800; }
.hs-go .icon { width: 18px; height: 18px; transition: transform .3s var(--ease-spring); }
.hs-card:hover .hs-go .icon { transform: translateX(5px); }
.hs .hx-ticks { margin-top: 24px; }

/* Hero */
.hx {
  position: relative; overflow: hidden; color: #fff; padding: 34px 0 44px;
  background:
    radial-gradient(600px 340px at 85% 10%, rgba(245, 158, 11, .28), transparent 70%),
    radial-gradient(520px 380px at 0% 100%, rgba(154, 47, 77, .45), transparent 70%),
    linear-gradient(160deg, #0a0d2d 0%, #171b4a 55%, #241f55 100%);
}
.hx::after { /* soft dot texture */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18;
  background-image: radial-gradient(rgba(255, 255, 255, .5) 1px, transparent 1px); background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.hx-grid { position: relative; z-index: 1; display: grid; gap: 30px; align-items: center; }
@media (min-width: 900px) { .hx { padding: 64px 0 76px; } .hx-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; } }

.hx-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); font-weight: 700; font-size: .88rem; }
.hx-pill .icon { width: 16px; height: 16px; color: var(--sun-400); }
.hx h1 { margin-top: 16px; color: #fff; font-size: clamp(2.1rem, 8.4vw, 3.6rem); line-height: 1.04; font-weight: 800; letter-spacing: -.045em; }
.hx-accent { color: var(--sun-400); }
.hx-lead { margin-top: 16px; max-width: 520px; font-size: clamp(1.05rem, 3.6vw, 1.2rem); line-height: 1.55; color: rgba(255, 255, 255, .82); }
.hx-cta { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.hx-btn { min-height: 56px; padding: 0 26px; font-size: 1.08rem; font-weight: 800; border-radius: 999px; gap: 10px; }
.hx-btn .icon { transition: transform .25s var(--ease-spring); }
.hx-btn:hover .icon { transform: translateX(4px); }
.hx-link { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, .4); }
.hx-link:hover { text-decoration-color: #fff; }
.hx-ticks { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .95rem; font-weight: 600; color: rgba(255, 255, 255, .9); }
.hx-ticks li { display: inline-flex; align-items: center; gap: 7px; }
.hx-ticks .icon { width: 18px; height: 18px; color: #5ee0a6; }
@media (max-width: 899px) { .hx-copy { text-align: left; } }

/* ---------- Live example price card (played by hero-card.js) ---------- */
@property --qa { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

.qx-stage { position: relative; width: 100%; max-width: 440px; justify-self: center; padding: 58px 0 30px; perspective: 1000px; }
.qx-stage::before { /* soft halo behind the card */
  content: ""; position: absolute; inset: 8% -6% 4%; z-index: 0; border-radius: 40px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(94, 224, 166, .45), rgba(251, 191, 36, .22) 60%, transparent);
  filter: blur(26px); animation: haloBreath 6s ease-in-out infinite;
}
@keyframes haloBreath { 50% { transform: scale(1.06); opacity: .75; } }

.qx {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 0%;
  position: relative; z-index: 1; color: var(--ink); padding: 18px; border-radius: 26px;
  border: 2px solid transparent;
  background:
    radial-gradient(420px 220px at var(--mx) var(--my), rgba(154, 47, 77, .06), transparent 60%) padding-box,
    linear-gradient(#fff, #fff) padding-box,
    conic-gradient(from var(--qa), #9a2f4d, #fbbf24, #5ee0a6, #0ea5e9, #9a2f4d) border-box;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .06), 0 24px 48px -10px rgba(0, 0, 0, .45), 0 50px 90px -30px rgba(10, 13, 45, .6);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .5s var(--ease-out), opacity .6s;
  animation: qaSpin 7s linear infinite, cardFloat 7s ease-in-out infinite;
}
@keyframes qaSpin { to { --qa: 360deg; } }
@keyframes cardFloat { 50% { translate: 0 -8px; } }
.qx.fading .qx-rows, .qx.fading .qx-save { opacity: 0; transition: opacity .55s; }

.qx-head { display: flex; align-items: center; gap: 12px; }
.qx-thumb { position: relative; width: 72px; height: 54px; flex: none; border-radius: 14px; overflow: hidden; box-shadow: 0 4px 12px rgba(0, 0, 0, .18); }
.qx-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qx-thumb::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.qx-title { min-width: 0; }
.qx-title b { display: block; font-family: var(--font-display); font-size: 1.12rem; font-weight: 800; letter-spacing: -.02em; }
.qx-title small { display: flex; align-items: center; gap: 7px; margin-top: 2px; color: var(--muted); font-weight: 600; font-size: .86rem; white-space: nowrap; }
.qx-live { position: relative; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--sun-500); }
.qx-live::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--sun-500); animation: ping 1.4s ease-out infinite; }
#qx-status.done .qx-live { background: var(--brand-500); }
#qx-status.done .qx-live::after { border-color: var(--brand-500); animation: none; opacity: 0; }
#qx-status.done { color: var(--brand-700); }
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.qx-tag { margin-left: auto; align-self: flex-start; padding: 4px 9px; border-radius: 999px; background: var(--sun-100); color: #7a4a00; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }

.qx-bar { margin: 14px 0 0; height: 5px; border-radius: 999px; background: #eef2f0; overflow: hidden; }
.qx-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #9a2f4d, #5ee0a6, #fbbf24); background-size: 200% 100%; transition: width .8s var(--ease-out); animation: barShine 2.4s linear infinite; }
@keyframes barShine { to { background-position: -200% 0; } }

.qx-rows { position: relative; margin-top: 14px; height: 212px; transition: opacity .55s; }
.qx-row {
  --y: 0px; --dy: 16px; --s: .96;
  position: absolute; left: 0; right: 0; top: 0; height: 64px; padding: 0 14px 0 10px;
  display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px;
  border-radius: 18px; background: #f4f7f5; border: 1.5px solid transparent; opacity: 0; overflow: visible;
  transform: translateY(calc(var(--y) + var(--dy))) scale(var(--s));
  transition: transform .75s cubic-bezier(.34, 1.4, .5, 1), opacity .45s, background .45s, border-color .45s, box-shadow .45s;
}
.qx-row.in { --dy: 0px; --s: 1; opacity: 1; }
.qx-row:nth-child(1) { --c: #6366f1; --c2: #4338ca; }
.qx-row:nth-child(2) { --c: #0ea5e9; --c2: #0369a1; }
.qx-row:nth-child(3) { --c: #f97316; --c2: #c2410c; }
.qx-row.dim { opacity: .55; }
.qx-av { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: #fff; font-weight: 800; font-size: .85rem; background: linear-gradient(135deg, var(--c), var(--c2)); box-shadow: 0 4px 10px rgba(0, 0, 0, .18); }
.qx-who { min-width: 0; display: grid; }
.qx-who b { font-weight: 800; font-size: 1rem; }
.qx-who small { color: var(--muted); font-size: .78rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qx-val { position: relative; display: grid; justify-items: end; min-width: 92px; }
.qx-num { grid-area: 1 / 1; font-size: 1.15rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.01em; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .4s var(--ease-out), color .4s, font-size .4s; }
.qx-row.got .qx-num { opacity: 1; transform: none; }
.qx-dots { grid-area: 1 / 1; display: inline-flex; gap: 4px; padding: 8px 11px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-sm); opacity: 0; transition: opacity .25s; }
.qx-row.typing .qx-dots { opacity: 1; }
.qx-dots i { width: 6px; height: 6px; border-radius: 50%; background: #9aa8a1; animation: dot 1s ease-in-out infinite; }
.qx-dots i:nth-child(2) { animation-delay: .15s; }
.qx-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 30% { transform: translateY(-4px); background: var(--brand-500); } 60% { transform: none; } }

.qx-best { position: absolute; top: -10px; right: 12px; padding: 3px 10px; border-radius: 999px; font-style: normal; font-size: .7rem; font-weight: 800; letter-spacing: .02em; color: #fff; background: linear-gradient(90deg, #7b1e3a, #a8445f); box-shadow: 0 4px 10px rgba(154, 47, 77, .4); transform: scale(0); transform-origin: right center; transition: transform .5s cubic-bezier(.34, 1.8, .5, 1); }
.qx-row.best { background: linear-gradient(100deg, #fbf1e2, #fffaf1); border-color: var(--brand-500); box-shadow: 0 12px 28px -8px rgba(154, 47, 77, .45); }
.qx-row.best .qx-best { transform: scale(1); }
.qx-row.best .qx-num { color: var(--brand-700); font-size: 1.32rem; }
.qx-row.best::after { /* one shine sweep */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .85) 50%, transparent 65%); background-size: 250% 100%;
  opacity: 0; animation: sweep 1.1s .1s ease-out;
}
@keyframes sweep { 0% { opacity: 1; background-position: 150% 0; } 85% { opacity: 1; } 100% { opacity: 0; background-position: -100% 0; } }

.qx-save { position: relative; margin-top: 14px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: linear-gradient(100deg, #171b4a, #2b3170); color: #fff; opacity: 0; transform: translateY(10px) scale(.97); transition: opacity .5s, transform .6s cubic-bezier(.34, 1.5, .5, 1); }
.qx-save.show { opacity: 1; transform: none; }
.qx-save-ico { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, .12); color: var(--sun-400); }
.qx-save-ico .icon { width: 20px; height: 20px; }
.qx-save > span:nth-child(2) { display: grid; font-weight: 700; line-height: 1.25; }
.qx-save b { font-family: var(--font-display); font-size: 1.45rem; font-weight: 800; color: var(--sun-400); font-variant-numeric: tabular-nums; }
.qx-save small { color: rgba(255, 255, 255, .75); font-weight: 600; font-size: .8rem; }
.qx-save > span:nth-child(2) { grid-template-columns: auto auto; justify-content: start; column-gap: 8px; align-items: baseline; }
.qx-save small { grid-column: 1 / -1; }
.qx-burst { position: absolute; left: 140px; top: 50%; width: 0; height: 0; pointer-events: none; }
.qx-burst i { position: absolute; width: 7px; height: 7px; border-radius: 2px; animation: burst .9s ease-out forwards; }
@keyframes burst { from { transform: translate(0, 0) scale(1) rotate(0); opacity: 1; } to { transform: translate(var(--x), var(--y)) scale(.3) rotate(220deg); opacity: 0; } }

/* "New price" notification that pops above the card */
.qx-toast {
  position: absolute; z-index: 3; top: 0; right: 10px; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px;
  border-radius: 16px; background: rgba(255, 255, 255, .97); color: var(--ink); box-shadow: 0 14px 34px rgba(0, 0, 0, .35);
  opacity: 0; transform: translateY(8px) scale(.9); pointer-events: none;
}
.qx-toast.show { animation: toastIn 1.5s cubic-bezier(.34, 1.5, .5, 1) forwards; }
@keyframes toastIn { 0% { opacity: 0; transform: translateY(10px) scale(.9); } 18%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-6px) scale(.97); } }
.qx-toast-ico { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: #25d366; color: #fff; }
.qx-toast-ico .icon { width: 18px; height: 18px; }
.qx-toast b { display: block; font-size: .85rem; font-weight: 800; }
.qx-toast small { display: block; color: var(--muted); font-size: .74rem; font-weight: 600; }

/* Floating privacy chip */
.qx-chip {
  position: absolute; z-index: 2; left: -8px; bottom: 6px; display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px;
  border-radius: 999px; background: #0a0d2d; color: #fff; font-size: .82rem; font-weight: 700; border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .35); animation: chipFloat 5s ease-in-out infinite;
}
.qx-chip .icon { width: 15px; height: 15px; color: #5ee0a6; }
@keyframes chipFloat { 50% { transform: translateY(-6px); } }
@media (max-width: 420px) { .qx { padding: 14px; } .qx-row { gap: 10px; padding: 0 12px 0 8px; } .qx-who small { font-size: .74rem; } .qx-chip { left: 0; } }

/* Hero background moves slowly, so the first screen feels alive */
.hx::before {
  content: ""; position: absolute; inset: -20%; pointer-events: none;
  background: radial-gradient(380px 260px at 30% 40%, rgba(94, 224, 166, .16), transparent 70%), radial-gradient(320px 240px at 75% 70%, rgba(251, 191, 36, .14), transparent 70%);
  animation: hxDrift 16s ease-in-out infinite alternate;
}
@keyframes hxDrift { to { transform: translate(6%, -4%) rotate(8deg); } }

/* Diwali strip */
.dx {
  position: relative; z-index: 2; width: 100%; margin-top: -22px; display: flex; align-items: center; gap: 14px; padding: 14px 16px; text-align: left; cursor: pointer;
  border: 0; border-radius: 20px; font: inherit; color: #3a2200;
  background: linear-gradient(100deg, #ffb020 0%, #ffcf4a 55%, #ffe08a 100%); box-shadow: 0 14px 30px rgba(217, 119, 6, .3);
  transition: transform .25s var(--ease-spring), box-shadow .25s;
}
.dx:hover { transform: translateY(-3px); box-shadow: 0 20px 38px rgba(217, 119, 6, .38); }
.dx-ico { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 14px; background: rgba(255, 255, 255, .55); }
.dx-ico .icon { width: 24px; height: 24px; color: #b45309; }
.dx-text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.dx-text b { font-family: var(--font-display); font-size: 1.1rem; font-weight: 800; }
.dx-text span { font-size: .92rem; font-weight: 600; opacity: .85; }
.dx-go { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 999px; background: #3a2200; color: #fff; font-weight: 800; font-size: .92rem; }
.dx-go .icon { width: 16px; height: 16px; }
@media (max-width: 560px) { .dx { flex-wrap: wrap; } .dx-go { width: 100%; justify-content: center; } }

/* Section titles */
.px { padding-top: 40px; scroll-margin-top: calc(var(--header-h) + 10px); }
.px-title { font-size: clamp(1.6rem, 5.6vw, 2.3rem); font-weight: 800; letter-spacing: -.035em; }
.px-sub { margin-top: 4px; color: var(--ink-2); font-size: 1.05rem; }

/* Picture tiles: full photo, dark fade at the bottom, white name */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.tile-big {
  position: relative; overflow: hidden; isolation: isolate; display: block; min-height: 190px; padding: 0; cursor: pointer; text-align: left;
  border: 0; border-radius: 22px; background: #183a2d; color: #fff; font: inherit; box-shadow: var(--shadow-md);
  transition: transform .3s var(--ease-spring), box-shadow .3s;
}
.tile-big:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tile-big:active { transform: scale(.985); }
.tile-big:focus-visible { outline: 3px solid var(--sun-500); outline-offset: 3px; }
.tile-pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--ease-out); }
.tile-big:hover .tile-pic { transform: scale(1.06); }
.tile-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, .45) 55%, rgba(0, 0, 0, .88) 100%); }
.tile-text { position: absolute; left: 14px; right: 52px; bottom: 14px; display: grid; gap: 2px; }
.tile-name { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; line-height: 1.1; text-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.tile-hint { font-size: .82rem; font-weight: 600; line-height: 1.3; color: rgba(255, 255, 255, .85); }
.tile-go { position: absolute; right: 12px; bottom: 14px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--brand-800); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease-spring), background .3s; }
.tile-go .icon { width: 18px; height: 18px; }
.tile-big:hover .tile-go { transform: translateX(3px); background: var(--sun-400); }
.tile-badge { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--sun-500); color: #3a2200; font-size: .78rem; font-weight: 800; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
.tile-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #b42318; animation: livePulse 1.6s ease-in-out infinite; }
@keyframes livePulse { 50% { transform: scale(1.6); opacity: .5; } }

/* Crackers is the big one; "something else" gets its own green look. */
.t-crackers { grid-column: 1 / -1; min-height: 230px; }
.t-crackers .tile-name { font-size: 1.7rem; }
.t-other { background: linear-gradient(150deg, var(--brand-700), var(--brand-950)); }
.tile-ico { position: absolute; top: 16px; left: 14px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: rgba(255, 255, 255, .12); color: var(--sun-400); }
.tile-ico .icon { width: 24px; height: 24px; }

@media (min-width: 760px) {
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 200px; gap: 16px; }
  .tile-big { min-height: 0; }
  .t-crackers { grid-column: span 2; grid-row: span 2; }
  .t-crackers .tile-name { font-size: 2.1rem; }
  .t-crackers .tile-hint { font-size: .95rem; }
  .t-fertilizer, .t-other { grid-column: span 2; }
}

/* How it works */
.wx { padding-top: 52px; scroll-margin-top: calc(var(--header-h) + 10px); }
.wx-steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 760px) { .wx-steps { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.wx-step { position: relative; display: grid; gap: 6px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-sm); }
.wx-ico { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--brand-50); color: var(--brand-700); margin-bottom: 6px; }
.wx-ico .icon { width: 24px; height: 24px; }
.wx-n { position: absolute; top: 18px; right: 20px; font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; line-height: 1; color: var(--brand-100); }
.wx-step b { font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; }
.wx-step p { color: var(--ink-2); line-height: 1.5; }

/* Trust */
.tx { margin-top: 16px; display: grid; gap: 12px; padding: 20px; border-radius: 22px; background: var(--brand-50); border: 1px solid var(--brand-100); }
@media (min-width: 760px) { .tx { grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 26px; } }
.tx-item { display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; row-gap: 2px; align-items: start; }
.tx-item .icon { grid-row: span 2; width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: #fff; color: var(--brand-600); box-shadow: var(--shadow-sm); }
.tx-item b { font-weight: 800; }
.tx-item span { color: var(--ink-2); font-size: .93rem; line-height: 1.45; }

/* Final push */
.ex { margin-top: 40px; padding: 34px 22px; text-align: center; border-radius: 28px; color: #fff; background: radial-gradient(420px 220px at 50% 0%, rgba(245, 158, 11, .25), transparent 70%), linear-gradient(160deg, var(--brand-900), var(--brand-950)); display: grid; justify-items: center; gap: 10px; }
.ex h2 { color: #fff; font-size: clamp(1.5rem, 5.4vw, 2.2rem); font-weight: 800; letter-spacing: -.035em; }
.ex p { color: rgba(255, 255, 255, .8); margin-bottom: 8px; }
.ex-shop .icon { vertical-align: -3px; margin-right: 6px; }
.ex-shop { margin-top: 10px; display: inline; max-width: 300px; color: rgba(255, 255, 255, .85); font-weight: 600; font-size: .93rem; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, .3); }
.ex-shop .icon { width: 18px; height: 18px; color: var(--sun-400); flex: none; }

@media (prefers-reduced-motion: reduce) {
  .qx, .qx-chip, .qx-stage::before, .hx::before, .qx-bar span, .qx-live::after, .qx-row.best::after { animation: none; }
  .qx-row, .qx-save, .qx-best, .qx-bar span { transition: none; }
  .tile-badge::before { animation: none; }
}

/* Shared bits for the inner screens */
.back-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px 0 8px; margin-bottom: 8px; border: 0; border-radius: 999px; background: transparent; color: var(--brand-800); font: inherit; font-weight: 700; cursor: pointer; }
.back-btn:hover { background: var(--brand-50); }
.view-title { font-size: clamp(1.6rem, 5vw, 2.3rem); font-weight: 800; letter-spacing: -.035em; }
.view-help { margin-top: 4px; color: var(--ink-2); }

/* Crackers list */
.cat-section { margin-top: 26px; }
.cat-sec-title { font-size: 1.2rem; font-weight: 800; margin-bottom: 10px; }
.cat-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .cat-items { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1000px) { .cat-items { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cat-item { display: grid; grid-template-rows: auto 1fr auto; gap: 6px; padding: 6px 6px 10px; background: #fff; border: 2px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); transition: border-color .25s, box-shadow .25s; }
.cat-item img { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 12px; display: block; }
.cat-item.in-cart { border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(154, 47, 77, .18); }
.cat-item-name { padding: 0 6px; font-family: var(--font); font-size: .95rem; font-weight: 800; line-height: 1.3; letter-spacing: 0; }
.cat-ctl { padding: 0 4px; }
.add-btn { width: 100%; }
.stepper.sm { width: 100%; justify-content: space-between; }
.stepper.sm button { width: 44px; height: 42px; }
.qty-num { flex: 1; text-align: center; font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.note-box { display: flex; gap: 10px; margin-top: 24px; padding: 12px 14px; border-radius: var(--r-md); background: var(--sun-50); border: 1px solid #f6d99a; color: #6b4a07; font-size: .92rem; }
.note-box .icon { color: var(--sun-600); margin-top: 2px; flex: none; }

#view-catalog { padding-bottom: 72px; } /* room for the cart bar */

/* Cart bar */
.cart-bar {
  position: fixed; z-index: 70; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: min(560px, calc(100% - 24px)); display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 18px; border-radius: 999px; background: var(--brand-900); color: #fff; box-shadow: 0 16px 40px rgba(10, 13, 45, .35);
}
.cart-bar.pop { animation: barIn .45s var(--ease-spring); }
@keyframes barIn { from { transform: translate(-50%, 120%); } }
.cart-sum { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.cart-bar .btn { min-height: 46px; }

/* Form */
.form-card { margin-top: 6px; padding: 22px 18px 24px; background: #fff; border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow-lg); }
@media (min-width: 640px) { .form-card { padding: 30px 34px 32px; } }
.form-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.form-pic { width: 112px; height: auto; aspect-ratio: 4 / 3; border-radius: 14px; object-fit: cover; flex: none; box-shadow: var(--shadow-sm); }
#req-form { display: grid; gap: 20px; }
.you-box { display: grid; gap: 16px; padding-top: 18px; border-top: 1px dashed var(--line-2); }
.big-btn { min-height: 58px; font-size: 1.1rem; }
.fine-print { margin-top: -8px; text-align: center; color: var(--muted); font-size: .88rem; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border: 1.5px dashed var(--brand-500); border-radius: 999px; background: var(--brand-50); color: var(--brand-800); font: inherit; font-weight: 700; cursor: pointer; justify-self: start; }

.cart-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cart-row { display: grid; grid-template-columns: 64px 1fr auto auto; align-items: center; gap: 10px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 14px; }
.cart-pic { width: 64px; height: 48px; border-radius: 8px; object-fit: cover; }
.cart-name { font-weight: 700; font-size: .95rem; line-height: 1.3; }
.cart-row .stepper.sm { width: auto; }
.cart-row .stepper.sm button { width: 38px; height: 38px; }
.cart-row .qty-num { min-width: 2.2em; }
.cart-rm { width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.cart-rm:hover { background: var(--danger-bg); color: var(--danger); }
@media (max-width: 480px) {
  .cart-row { grid-template-columns: 52px 1fr auto; }
  .cart-pic { width: 52px; height: 40px; }
  .cart-row .stepper.sm { grid-column: 2; justify-self: start; }
  .cart-rm { grid-column: 3; grid-row: 1 / span 2; }
}
#cart-field.invalid, #choice-field.invalid, #when-field.invalid { border: 1.5px solid var(--danger); border-radius: var(--r-md); padding: 8px; }

/* Done */
#view-done .success { display: grid; justify-items: center; gap: 14px; text-align: center; }
#view-done .btn { width: 100%; max-width: 420px; }
.simple-foot { margin-top: 0; }

@media (prefers-reduced-motion: reduce) { .cart-bar.pop { animation: none; } }

/* ================= Motion upgrade (home-fx.js) ================= */

/* Sparks and fireworks canvas sits behind the hero content */
.hx-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.hx-switch-wrap, .hx-grid, .hs { z-index: 1; }

/* Headline: each word rises in, blurred to sharp */
h1.split-ready .w { display: inline-block; opacity: 0; transform: translateY(.45em) rotate(2deg); filter: blur(8px); animation: wordRise .8s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(120ms + var(--i) * 70ms); }
@keyframes wordRise { to { opacity: 1; transform: none; filter: blur(0); } }
/* The gold line shimmers */
.hx-accent .w, .hx-accent:not(:has(.w)) {
  background: linear-gradient(100deg, #fbbf24 0%, #fbbf24 35%, #fff3c4 50%, #fbbf24 65%, #f59e0b 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
}
h1.split-ready .hx-accent .w { animation: wordRise .8s cubic-bezier(.2, .8, .2, 1) forwards, goldShine 4.5s linear infinite; animation-delay: calc(120ms + var(--i) * 70ms), 1.6s; }
@keyframes goldShine { from { background-position: 150% 0; } to { background-position: -100% 0; } }

/* Main button: soft pulse ring and a smooth "magnetic" lean */
.hx-btn { position: relative; transition: translate .25s var(--ease-out), transform .25s var(--ease-spring), box-shadow .25s, background .2s; }
.hx-btn::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(251, 191, 36, .55); animation: btnPulse 2.6s ease-out infinite; pointer-events: none; }
@keyframes btnPulse { 0% { box-shadow: 0 0 0 0 rgba(251, 191, 36, .55); } 70%, 100% { box-shadow: 0 0 0 16px rgba(251, 191, 36, 0); } }

/* Switch thumb gets a quick squash as it slides */
.hx-switch-thumb { transition: transform .55s cubic-bezier(.34, 1.35, .5, 1), scale .3s; }
.hx-switch:active .hx-switch-thumb { scale: .97 1; }

/* Sell cards come in one after another, icons float */
#sell-hero:not([hidden]) .hs-card { animation: cardIn .7s cubic-bezier(.2, .8, .2, 1) both; }
#sell-hero:not([hidden]) .hs-card:nth-child(2) { animation-delay: .1s; }
#sell-hero:not([hidden]) .hs-card:nth-child(3) { animation-delay: .2s; }
@keyframes cardIn { from { opacity: 0; transform: translateY(26px) scale(.97); } }
.hs-ico { animation: iconFloat 4s ease-in-out infinite; }
.hs-card:nth-child(2) .hs-ico { animation-delay: -1.3s; }
.hs-card:nth-child(3) .hs-ico { animation-delay: -2.6s; }
@keyframes iconFloat { 50% { transform: translateY(-5px) rotate(-3deg); } }

/* Diwali strip: moving shine and little rising sparks */
.dx { overflow: hidden; background-size: 200% 100%; animation: dxFlow 6s ease-in-out infinite alternate; }
@keyframes dxFlow { to { background-position: 100% 0; } }
.dx::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .55) 50%, transparent 60%); background-size: 300% 100%; animation: dxShine 3.8s ease-in-out infinite; }
@keyframes dxShine { 0% { background-position: 160% 0; } 60%, 100% { background-position: -60% 0; } }
.dx-ico { position: relative; animation: diyaGlow 2.2s ease-in-out infinite; }
@keyframes diyaGlow { 50% { box-shadow: 0 0 0 6px rgba(255, 255, 255, .25), 0 0 24px rgba(255, 170, 0, .7); } }
.dx-ico .icon { animation: spinSlow 6s linear infinite; }
@keyframes spinSlow { to { transform: rotate(360deg); } }
.dx-sparks { position: absolute; left: 30px; top: 50%; pointer-events: none; }
.dx-sparks i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #fff7d1; box-shadow: 0 0 8px #ffcf4a; opacity: 0; animation: sparkUp 2.4s ease-out infinite; }
.dx-sparks i:nth-child(1) { left: -6px; animation-delay: 0s; }
.dx-sparks i:nth-child(2) { left: 8px; animation-delay: .4s; }
.dx-sparks i:nth-child(3) { left: 2px; animation-delay: .8s; }
.dx-sparks i:nth-child(4) { left: 14px; animation-delay: 1.2s; }
.dx-sparks i:nth-child(5) { left: -2px; animation-delay: 1.6s; }
.dx-sparks i:nth-child(6) { left: 10px; animation-delay: 2s; }
@keyframes sparkUp { 0% { opacity: 0; transform: translate(0, 10px) scale(.6); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(6px, -40px) scale(.2); } }

/* Moving strip of popular items */
.mq { position: relative; margin-top: 14px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mq-track { display: flex; gap: 10px; width: max-content; animation: marquee 38s linear infinite; }
.mq-track span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-weight: 700; font-size: .88rem; color: var(--ink-2); white-space: nowrap; }
.mq-track span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-500); }
.mq-track span:nth-child(3n + 2)::before { background: var(--sun-500); }
.mq-track span:nth-child(3n)::before { background: #0ea5e9; }
.mq:hover .mq-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Section titles: a gold-green line draws under them */
.px-title { position: relative; display: inline-block; }
.px-title::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 4px; width: 64px; border-radius: 4px; background: linear-gradient(90deg, var(--brand-500), var(--sun-400)); transform-origin: left; transform: scaleX(0); transition: transform .9s .3s cubic-bezier(.2, .8, .2, 1); }
.px-title.in::after, .px-title:not(.reveal)::after { transform: scaleX(1); }

/* Photo tiles: slow zoom on crackers, a light that follows the mouse, a shine on hover */
.tile-big { transition: transform .35s var(--ease-out), box-shadow .3s, opacity .85s var(--ease-out) var(--d, 0ms); will-change: transform; }
.tile-big::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--lx, 50%) var(--ly, 30%), rgba(255, 255, 255, .22), transparent 60%); }
.tile-big:hover::after { opacity: 1; }
.tile-text, .tile-go, .tile-badge, .tile-ico { z-index: 1; }
.t-crackers .tile-pic { animation: kenBurns 14s ease-in-out infinite alternate; }
@keyframes kenBurns { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.12) translate(-2%, -2%); } }
.tile-big:hover .tile-go { animation: nudge .9s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(4px); } }
.t-other .tile-ico { animation: iconFloat 4s ease-in-out infinite; }

/* How it works: a dashed line joins the steps and draws itself */
.wx-steps { position: relative; }
.wx-steps::before {
  content: ""; position: absolute; z-index: 0; left: 43px; top: 40px; bottom: 40px; width: 3px; border-radius: 3px;
  background: repeating-linear-gradient(180deg, var(--brand-500) 0 8px, transparent 8px 14px);
  transform-origin: top; transform: scaleY(0); transition: transform 1.4s cubic-bezier(.2, .8, .2, 1) .2s;
}
.wx-steps.drawn::before { transform: none; }
@media (min-width: 760px) {
  .wx-steps::before { left: 60px; right: 60px; top: 43px; bottom: auto; width: auto; height: 3px; background: repeating-linear-gradient(90deg, var(--brand-500) 0 8px, transparent 8px 14px); transform-origin: left; transform: scaleX(0); }
}
.wx-step { z-index: 1; transition: transform .3s var(--ease-spring), box-shadow .3s, opacity .85s var(--ease-out) var(--d, 0ms); }
.wx-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.wx-ico { position: relative; z-index: 1; box-shadow: 0 0 0 6px #fff; transition: transform .45s var(--ease-spring), background .3s, color .3s; }
.wx-step:hover .wx-ico { transform: scale(1.1) rotate(-6deg); background: var(--brand-600); color: #fff; }
.wx-steps.drawn .wx-ico { animation: popIco .6s cubic-bezier(.34, 1.6, .5, 1) both; }
.wx-steps.drawn .wx-step:nth-child(2) .wx-ico { animation-delay: .45s; }
.wx-steps.drawn .wx-step:nth-child(3) .wx-ico { animation-delay: .9s; }
@keyframes popIco { from { transform: scale(.4); } }

/* Trust items: icon bounce on hover */
.tx-item .icon { transition: transform .4s var(--ease-spring), background .3s, color .3s; }
.tx-item:hover .icon { transform: translateY(-3px) rotate(-6deg); background: var(--brand-600); color: #fff; }

/* Final call to action: a slow turning glow */
.ex { position: relative; overflow: hidden; isolation: isolate; }
.ex-glow { position: absolute; inset: -60%; z-index: -1; pointer-events: none; background: conic-gradient(from 0deg, transparent 0 60%, rgba(251, 191, 36, .28) 70%, transparent 80%, rgba(94, 224, 166, .22) 90%, transparent); animation: spinSlow 14s linear infinite; }

@media (prefers-reduced-motion: reduce) {
  .hx-fx, .dx-sparks, .ex-glow { display: none; }
  .hx-btn::before, .dx, .dx::after, .dx-ico, .dx-ico .icon, .mq-track, .t-crackers .tile-pic, .hs-ico, .t-other .tile-ico, .hx-accent .w { animation: none !important; }
  .mq-track { flex-wrap: wrap; width: auto; }
  .px-title::after, .wx-steps::before { transform: none; transition: none; }
}
/* ===== Hero background scene: an evening street in Sullia ===== */
.hx { padding-bottom: 200px; }
@media (min-width: 900px) { .hx { padding-bottom: 230px; } }
.hx-scene { position: absolute; left: 0; right: 0; bottom: 0; height: 250px; z-index: 0; pointer-events: none; }
@media (min-width: 900px) { .hx-scene { height: 330px; } }
.hx-scene svg { display: block; width: 100%; height: 100%; }
.hx-scene text { font-family: inherit; }
.sc-shop text { fill: #fff; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.sc-tag text { fill: #0b6b47; font-size: 12.5px; font-weight: 800; }
.sc-palm { transform-box: fill-box; transform-origin: 50% 100%; animation: scSway 6s ease-in-out infinite alternate; }
.sc-palm.sp1 { animation-duration: 7.5s; animation-delay: -2s; }
.sc-palm.sp2 { animation-duration: 5.5s; animation-delay: -4s; }
@keyframes scSway { from { transform: rotate(-1.6deg); } to { transform: rotate(1.8deg); } }
.sc-mist { animation: scMist 22s ease-in-out infinite alternate; }
@keyframes scMist { to { transform: translateX(70px); } }
.sc-win { animation: scFlick 7s steps(1) infinite; }
.sc-win.w1 { animation-delay: -1.8s; } .sc-win.w2 { animation-delay: -3.9s; animation-duration: 9s; } .sc-win.w3 { animation-delay: -5.2s; animation-duration: 11s; }
@keyframes scFlick { 0%, 86% { opacity: 1; } 88% { opacity: .35; } 90% { opacity: 1; } 93% { opacity: .5; } 95%, 100% { opacity: 1; } }
.sc-front { animation: scBreath 4s ease-in-out infinite alternate; }
.sc-front.f1 { animation-delay: -1.3s; } .sc-front.f2 { animation-delay: -2.6s; }
@keyframes scBreath { from { opacity: .86; } to { opacity: 1; } }
.sc-bulb { animation: scTwinkle 1.6s ease-in-out infinite alternate; }
.sc-bulb.b1 { animation-delay: -.4s; } .sc-bulb.b2 { animation-delay: -.8s; } .sc-bulb.b3 { animation-delay: -1.2s; }
@keyframes scTwinkle { from { opacity: .3; } to { opacity: 1; } }
.sc-swing { transform-box: fill-box; transform-origin: 50% 0; animation: scSwing 3.4s ease-in-out infinite alternate; }
.sc-lantern.l1 .sc-swing { animation-delay: -1.2s; } .sc-lantern.l2 .sc-swing { animation-delay: -2.3s; }
@keyframes scSwing { from { transform: rotate(-8deg); } to { transform: rotate(8deg); } }
.sc-tag { opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; animation: scTag 8s ease-out infinite; }
.sc-tag.g1 { animation-delay: 1.1s; } .sc-tag.g2 { animation-delay: 2.3s; } .sc-tag.g3 { animation-delay: 3.4s; }
.sc-tag.g4 { animation-delay: 4.6s; } .sc-tag.g5 { animation-delay: 5.7s; } .sc-tag.g6 { animation-delay: 6.8s; }
@keyframes scTag {
  0% { opacity: 0; transform: translateY(16px) scale(.6); }
  9% { opacity: 1; transform: translateY(0) scale(1.06); }
  14% { transform: translateY(-4px) scale(1); }
  50% { opacity: 1; transform: translateY(-30px) scale(1); }
  64%, 100% { opacity: 0; transform: translateY(-48px) scale(.9); }
}
.sc-ride.r1 { animation: scRideR 15s linear infinite; }
.sc-ride.r2 { animation: scRideL 21s linear infinite; animation-delay: -9s; }
@keyframes scRideR { from { transform: translateX(-140px); } to { transform: translateX(1580px); } }
@keyframes scRideL { from { transform: translateX(1580px); } to { transform: translateX(-160px); } }
.hx-scene.paused * { animation-play-state: paused !important; }
/* Crescent moon */
.hx-moon { position: absolute; z-index: 0; top: 118px; right: 7%; width: 44px; height: 44px; pointer-events: none; animation: moonFloat 9s ease-in-out infinite alternate; }
.hx-moon::before { content: ""; position: absolute; inset: -60%; border-radius: 50%; background: radial-gradient(circle, rgba(253, 230, 138, .32), rgba(253, 230, 138, 0) 65%); }
.hx-moon::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 35% 40%, #fffbe8, #fde68a 60%, #f6c453);
  -webkit-mask: radial-gradient(circle at 74% 30%, transparent 47%, #000 48%); mask: radial-gradient(circle at 74% 30%, transparent 47%, #000 48%);
}
@keyframes moonFloat { to { transform: translateY(8px); } }
@media (min-width: 900px) { .hx-moon { top: 46px; right: 6%; width: 64px; height: 64px; } }
@media (prefers-reduced-motion: reduce) {
  .hx-scene *, .hx-moon { animation: none !important; }
  .sc-tag { opacity: 1; }
}
/* 3D item pictures in front of each shop bob gently */
.sc-item { transform-box: fill-box; transform-origin: 50% 100%; animation: scBob 3.2s ease-in-out infinite alternate; }
.sc-item.i1 { animation-delay: -1.1s; } .sc-item.i2 { animation-delay: -2.2s; }
@keyframes scBob { from { transform: translateY(0); } to { transform: translateY(-4px); } }
/* ===== Crackers catalog: real shop feel ===== */
#view-catalog { position: relative; }
.cat-section { margin-top: 30px; }
.cat-banner { position: relative; overflow: hidden; display: flex; align-items: flex-end; min-height: 150px; margin-bottom: 14px; padding: 16px 18px; border-radius: 22px; color: #fff; isolation: isolate; box-shadow: 0 14px 30px rgba(60, 20, 0, .22); }
@media (min-width: 700px) { .cat-banner { min-height: 190px; padding: 22px 26px; } }
.cat-banner-pic { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: cbZoom 14s ease-in-out infinite alternate; }
.cat-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10, 6, 2, .82) 0%, rgba(10, 6, 2, .35) 55%, rgba(10, 6, 2, .05) 100%); }
.cat-banner::after { /* slow golden shine across the banner */
  content: ""; position: absolute; inset: -40% auto -40% -60%; width: 40%; z-index: -1; transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 220, 140, .22), transparent); animation: cbShine 6s ease-in-out infinite;
}
@keyframes cbZoom { to { transform: scale(1.14) translate(-2%, -2%); } }
@keyframes cbShine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
.cat-banner .cat-sec-title { margin: 0; color: #fff; font-size: 1.45rem; letter-spacing: -.02em; text-shadow: 0 2px 10px rgba(0, 0, 0, .45); }
@media (min-width: 700px) { .cat-banner .cat-sec-title { font-size: 1.9rem; } }
.cat-banner-sub { margin-top: 2px; color: #ffe7b0; font-weight: 600; font-size: .95rem; }
.cat-banner-count { position: absolute; top: 12px; right: 12px; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-size: .8rem; font-weight: 800; }
.cat-item { position: relative; padding: 8px 8px 12px; border-radius: 20px; transition: border-color .25s, box-shadow .3s, transform .35s var(--ease-spring); }
.cat-item:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(120, 60, 0, .16); }
.cat-stage { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 14px; display: grid; place-items: center; padding: 10px;
  background: radial-gradient(70% 60% at 50% 42%, #fff6dc 0%, #ffe3a3 55%, #f6c26b 100%); }
.cat-stage::before { /* soft floor shadow under the item */
  content: ""; position: absolute; left: 18%; right: 18%; bottom: 9%; height: 10%; border-radius: 50%; background: rgba(90, 40, 0, .28); filter: blur(6px); }
.cat-stage::after { /* tiny sparkles that twinkle */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .8;
  background-image: radial-gradient(2px 2px at 14% 22%, #fff, transparent), radial-gradient(1.6px 1.6px at 84% 18%, #fff, transparent), radial-gradient(1.8px 1.8px at 76% 70%, #fff8, transparent), radial-gradient(1.4px 1.4px at 22% 78%, #fff, transparent);
  animation: ckTwinkle 2.8s ease-in-out infinite alternate; }
@keyframes ckTwinkle { from { opacity: .25; } to { opacity: 1; } }
.cat-item img.cat-pic { position: relative; width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; border-radius: 0; filter: drop-shadow(0 8px 10px rgba(80, 35, 0, .3)); transition: transform .45s var(--ease-spring); }
.cat-item:hover img.cat-pic { transform: scale(1.08) rotate(-2deg); }
.cat-item.in-cart .cat-stage { background: radial-gradient(70% 60% at 50% 42%, #f0fff7 0%, #c9f1dd 55%, #8fdcb8 100%); }
.cat-item.in-cart::after { content: "✓"; position: absolute; top: 14px; left: 14px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brand-600); color: #fff; font-weight: 900; font-size: .85rem; box-shadow: 0 4px 10px rgba(0, 0, 0, .2); }
.cat-item.just-added { animation: ckPop .5s var(--ease-spring); }
.cat-item.just-added img.cat-pic { animation: ckJump .55s var(--ease-spring); }
@keyframes ckPop { 40% { transform: scale(1.04); } }
@keyframes ckJump { 40% { transform: translateY(-10px) scale(1.1); } }
@media (prefers-reduced-motion: reduce) {
  .cat-banner-pic, .cat-banner::after, .cat-stage::after, .cat-item.just-added, .cat-item.just-added img.cat-pic { animation: none !important; }
}
/* keep every cracker picture fully inside its box */
.cat-stage { display: block; }
.cat-item img.cat-pic { position: absolute; inset: 10px 12px 12px; width: calc(100% - 24px); height: calc(100% - 22px); }
/* Wide screens: photo sits on the right and fades into a warm night colour, so it stays sharp */
@media (min-width: 700px) {
  .cat-banner { background: radial-gradient(120% 140% at 0% 100%, #5a2a08 0%, #2a1205 45%, #140a04 100%); min-height: 180px; }
  .cat-banner-pic { left: auto; width: 52%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%); mask-image: linear-gradient(90deg, transparent 0%, #000 38%); }
  .cat-banner::before { background: linear-gradient(90deg, rgba(20, 10, 4, .55) 0%, rgba(20, 10, 4, 0) 60%); }
  .cat-banner-count { top: 14px; right: 14px; }
}
/* ===== Price card, cinematic version ===== */
/* HD film loop above the card (AImplify Video Producer). The card overlaps its bottom edge. */
.qx-stage { padding-top: 6px; }
.qx-film { position: relative; z-index: 0; aspect-ratio: 16 / 10; border-radius: 24px; overflow: hidden; background: #0a0d2d url("/media/sullia-street-poster.webp") center / cover no-repeat;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 220, 140, .25); transform: translateZ(0); }
.qx-film video { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s; }
.qx-stage.film-on .qx-film video { opacity: 1; }
.qx-film::after { /* soft frame light + fade into the card */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(3, 20, 13, .35) 0%, transparent 22%, transparent 70%, rgba(3, 20, 13, .55) 100%); }
.qx-stage .qx { margin-top: -54px; }
.qx-stage .qx-toast { top: 12px; }
.qx-stage .qx-chip { bottom: 6px; }

/* Item on a glowing pedestal; it rides in, then rides out */
.qx-thumb { width: 86px; height: 66px; overflow: visible; border-radius: 16px; box-shadow: none;
  background: radial-gradient(70% 70% at 50% 45%, #fff6dc 0%, #ffe3a3 60%, #f6c26b 100%); }
.qx-thumb::after { inset: auto 14% 7% 14%; height: 9px; border-radius: 50%; box-shadow: none; background: rgba(90, 40, 0, .3); filter: blur(4px); }
.qx-thumb img { position: relative; z-index: 1; width: 112%; height: 112%; margin: -6% -6%; object-fit: contain; filter: drop-shadow(0 6px 6px rgba(80, 35, 0, .35)); }
.qx-thumb.arrive img { animation: itemIn .8s cubic-bezier(.3, 1.5, .5, 1) both; }
.qx-thumb.leave img { animation: itemOut .5s ease-in both; }
@keyframes itemIn { 0% { opacity: 0; transform: translateX(70px) scale(.7) rotate(6deg); } 65% { opacity: 1; transform: translateX(-4px) scale(1.06) rotate(-2deg); } 100% { transform: none; } }
@keyframes itemOut { to { opacity: 0; transform: translateX(-60px) scale(.8); } }
.qx-thumb.arrive::before { /* headlight / shine flash as it arrives */
  content: ""; position: absolute; z-index: 2; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(40% 50% at 20% 40%, rgba(255, 255, 255, .95), transparent 70%); opacity: 0; animation: flashIn .9s .35s ease-out; }
@keyframes flashIn { 30% { opacity: .9; } 100% { opacity: 0; } }

/* Shop avatars become small shop fronts with an awning */
.qx-av { position: relative; overflow: hidden; padding-top: 8px; transition: box-shadow .4s, filter .4s; }
.qx-av::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 9px;
  background: repeating-linear-gradient(90deg, #fff 0 6px, rgba(255, 255, 255, .25) 6px 12px); border-bottom: 1px solid rgba(0, 0, 0, .15); }
.qx-row.got .qx-av { box-shadow: 0 0 0 3px rgba(251, 191, 36, .35), 0 6px 14px rgba(0, 0, 0, .2); }

/* Chat bubble flies from the shop to the price */
.qx-fly { position: absolute; z-index: 3; left: 44px; top: 18px; width: 26px; height: 20px; border-radius: 10px 10px 10px 3px; background: #25d366; box-shadow: 0 6px 12px rgba(37, 211, 102, .45); pointer-events: none;
  animation: flyTo .8s cubic-bezier(.45, 0, .2, 1) forwards; }
.qx-fly::after { content: ""; position: absolute; inset: 6px 6px; border-radius: 2px; background: repeating-linear-gradient(180deg, #fff 0 2px, transparent 2px 4px); opacity: .85; }
@keyframes flyTo { 0% { transform: translate(0, 0) scale(.3); opacity: 0; } 20% { opacity: 1; transform: translate(calc(var(--dx) * .2), -18px) scale(1); }
  80% { opacity: 1; transform: translate(calc(var(--dx) * .9), -6px) scale(1); } 100% { opacity: 0; transform: translate(var(--dx), 0) scale(.4); } }

/* Rolling digits */
.qx-num { line-height: 1.15; white-space: nowrap; }
.od-d { display: inline-block; height: 1.15em; overflow: hidden; vertical-align: top; }
.od-s { display: flex; flex-direction: column; transition: transform .9s cubic-bezier(.2, .9, .25, 1); }
.od-s > span { height: 1.15em; line-height: 1.15em; }

/* Gold "Best price" stamp lands with a thud */
.qx-best { color: #4a2600; background: linear-gradient(135deg, #fff1b8, #fbbf24 55%, #f59e0b); box-shadow: 0 6px 14px rgba(217, 119, 6, .45), inset 0 0 0 1px rgba(255, 255, 255, .6); transform-origin: center; }
.qx-row.best .qx-best { transform: rotate(-4deg); animation: stampIn .55s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes stampIn { 0% { opacity: 0; transform: scale(2.6) rotate(-18deg); } 55% { opacity: 1; transform: scale(.9) rotate(-3deg); } 100% { transform: scale(1) rotate(-4deg); } }
.qx.thud { animation: qaSpin 7s linear infinite, cardFloat 7s ease-in-out infinite, thud .35s ease-out; }
@keyframes thud { 30% { scale: .985; } }

/* Rupee coins */
.qx-coins { position: absolute; z-index: 5; left: var(--ox, 50%); top: var(--oy, 50%); width: 0; height: 0; pointer-events: none; }
.qx-coin, .qx-drop { position: absolute; display: grid; place-items: center; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; font-style: normal; font-size: 11px; font-weight: 900; color: #7a4a00;
  background: radial-gradient(circle at 35% 30%, #fff7c2, #fbbf24 55%, #d97706); box-shadow: 0 2px 4px rgba(120, 60, 0, .35), inset 0 0 0 1.5px rgba(255, 240, 180, .8); }
.qx-coin { animation: coinFly 1.1s cubic-bezier(.2, .8, .3, 1) both; }
@keyframes coinFly { 0% { opacity: 0; transform: translate(0, 0) scale(.3); } 15% { opacity: 1; }
  60% { opacity: 1; transform: translate(var(--x), var(--y)) scale(1) rotate(var(--r)); } 100% { opacity: 0; transform: translate(var(--x), calc(var(--y) + 46px)) scale(.8) rotate(var(--r)); } }
.qx-save-ico { position: relative; overflow: visible; }
.qx-drop { left: 50%; top: 50%; animation: coinDrop .7s cubic-bezier(.5, 0, .7, 1.4) both; }
@keyframes coinDrop { 0% { opacity: 0; transform: translate(var(--dx), -70px) rotate(-120deg); } 20% { opacity: 1; } 75% { opacity: 1; transform: translate(0, 0) rotate(0); } 100% { opacity: 0; transform: translate(0, 4px) scale(.6); } }

@media (prefers-reduced-motion: reduce) {
  .qx-film video { display: none; }
  .qx-thumb img, .qx-thumb::before, .qx-fly, .qx-coin, .qx-drop, .qx-row.best .qx-best, .qx.thud { animation: none !important; }
  .od-s { transition: none; }
}
/* "Example" sits on the card's top edge, so the item name gets the full width */
.qx-stage .qx-tag { position: absolute; z-index: 4; top: -11px; right: 20px; margin: 0; background: #fff3c4; border: 1.5px solid #f6c453; box-shadow: 0 4px 10px rgba(0, 0, 0, .18); }
.qx-title b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* =====================================================================================
   Look and feel pass 2: textures, 3D assets, festive graphics and micro-effects
   ===================================================================================== */
/* Light sections sit on warm paper; dark sections get a fine film grain. */
.on-home .home-main { background: #faf6ec url("/img/tex/paper.webp") repeat; background-size: 512px; }
.hx::after { background-image: url("/img/tex/grain.webp"), radial-gradient(rgba(255, 255, 255, .5) 1px, transparent 1px); background-size: 128px, 22px 22px; opacity: .22; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--sun-400); }
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }

/* Hanging marigold toran */
.toran { position: absolute; z-index: 2; left: -12px; right: -12px; top: -2px; height: 76px; pointer-events: none;
  background: url("/img/tex/toran.svg") repeat-x; background-size: auto 76px; transform-origin: 50% 0; animation: toranSway 5.5s ease-in-out infinite alternate; }
@keyframes toranSway { from { transform: rotate(-.5deg) translateX(-3px); } to { transform: rotate(.5deg) translateX(3px); } }

/* Mouse light over dark sections (vfx.js sets --gx/--gy) */
.glow-zone { --gx: -999px; --gy: -999px; }

/* ---- How it works: a festive night section ---- */
.wx { padding-top: 46px; }
.wx-night { position: relative; overflow: hidden; isolation: isolate; padding: 88px 16px 18px; border-radius: 30px; color: #fff;
  background:
    radial-gradient(320px circle at var(--gx) var(--gy), rgba(255, 214, 140, .14), transparent 70%),
    radial-gradient(520px 260px at 85% 0%, rgba(245, 158, 11, .22), transparent 70%),
    radial-gradient(480px 300px at 0% 100%, rgba(154, 47, 77, .38), transparent 70%),
    linear-gradient(165deg, #0a0d2d 0%, #171b4a 60%, #241f55 100%);
  box-shadow: 0 30px 60px -24px rgba(10, 13, 45, .7); }
@media (min-width: 760px) { .wx-night { padding: 96px 30px 28px; } }
.wx-night::before { /* stars that twinkle */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .7;
  background-image: radial-gradient(1.4px 1.4px at 12% 20%, #fff, transparent), radial-gradient(1.2px 1.2px at 32% 64%, #fff, transparent), radial-gradient(1.6px 1.6px at 58% 30%, #fde68a, transparent), radial-gradient(1.2px 1.2px at 78% 72%, #fff, transparent), radial-gradient(1.4px 1.4px at 90% 26%, #fff, transparent), radial-gradient(1px 1px at 46% 88%, #fff, transparent);
  background-size: 260px 220px; animation: starTw 3.4s ease-in-out infinite alternate; }
@keyframes starTw { from { opacity: .35; } to { opacity: .8; } }
.wx-night::after, .ex::after { /* film grain */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background: url("/img/tex/grain.webp"); background-size: 128px; opacity: .5; mix-blend-mode: overlay; }
.wx-night .px-title { margin-top: 6px; color: #fff; }
.wx-night .wx-steps { margin-top: 20px; }
.wx-night .wx-step { padding: 14px 18px 20px; overflow: hidden; color: #fff;
  background: linear-gradient(160deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .03)); border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 18px 40px -16px rgba(0, 0, 0, .6); }
.wx-night .wx-step:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 24px 46px -14px rgba(0, 0, 0, .7); border-color: rgba(251, 191, 36, .45); }
.wx-night .wx-step b { color: #fff; }
.wx-night .wx-step p { color: rgba(255, 255, 255, .74); }
.wx-night .wx-n { top: 14px; right: 16px; font-size: 2.6rem; color: transparent; -webkit-text-stroke: 1.5px rgba(251, 191, 36, .55); }
.wx-art { position: relative; display: block; height: 124px; margin: 0 -6px 6px; border-radius: 18px;
  background: radial-gradient(60% 70% at 50% 60%, rgba(255, 207, 90, .22), transparent 70%); }
.wx-art svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .35)); }
.wx-night .wx-steps::before { left: 50%; top: 20px; bottom: 20px; margin-left: -1.5px; background: repeating-linear-gradient(180deg, #fbbf24 0 8px, transparent 8px 14px); }
@media (min-width: 760px) {
  .wx-night .wx-steps::before { left: 40px; right: 40px; top: 72px; bottom: auto; margin-left: 0; background: repeating-linear-gradient(90deg, #fbbf24 0 8px, transparent 8px 14px); }
}
/* the pictures move a little */
.a-float { transform-box: fill-box; animation: aFloat 4.2s ease-in-out infinite; }
@keyframes aFloat { 50% { transform: translateY(-5px); } }
.a-pop { transform-box: fill-box; transform-origin: 0% 100%; animation: aPop 3.2s ease-in-out infinite; }
@keyframes aPop { 0%, 100% { transform: scale(.9); } 50% { transform: translateY(-4px) scale(1.04); } }
.a-msg { transform-box: fill-box; transform-origin: left center; animation: aMsg 4.5s ease-out infinite; }
.a-msg.m2 { animation-delay: .45s; transform-origin: right center; } .a-msg.m3 { animation-delay: .9s; }
@keyframes aMsg { 0% { transform: scale(0, .6); opacity: 0; } 10% { transform: none; opacity: 1; } 86% { opacity: 1; } 100% { opacity: 0; } }
.a-tag { transform-box: fill-box; animation: aTag 3s ease-in-out infinite; }
.a-tag.g2 { animation-delay: -1s; } .a-tag.g3 { animation-delay: -2s; }
@keyframes aTag { 0%, 100% { transform: translateY(2px); } 50% { transform: translateY(-6px); } }
.a-sheen { transform-box: view-box; transform-origin: 80px 52px; animation: aSheen 3.6s ease-in-out infinite; }
@keyframes aSheen { 0%, 55% { transform: rotate(25deg) translateX(-30px); } 100% { transform: rotate(25deg) translateX(110px); } }
.a-twinkle { transform-box: fill-box; transform-origin: center; animation: aTw 2.2s ease-in-out infinite; }
.a-twinkle.t2 { animation-delay: -.7s; } .a-twinkle.t3 { animation-delay: -1.4s; }
@keyframes aTw { 0%, 100% { transform: scale(.4); opacity: .3; } 50% { transform: scale(1); opacity: 1; } }

/* Trust row inside the night section, with glossy 3D badges */
.wx-night .tx { margin-top: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.wx-night .tx-item b { color: #fff; }
.wx-night .tx-item span:not(.gloss) { color: rgba(255, 255, 255, .72); }
.tx-item { grid-template-columns: 46px 1fr; }
.gloss { position: relative; grid-row: span 2; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 15px; color: #fff;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .5), inset 0 -5px 10px rgba(0, 0, 0, .28), 0 10px 18px rgba(0, 0, 0, .35); }
.gloss::after { content: ""; position: absolute; left: 5px; right: 5px; top: 3px; height: 46%; border-radius: 12px 12px 20px 20px; background: linear-gradient(180deg, rgba(255, 255, 255, .6), rgba(255, 255, 255, 0)); pointer-events: none; }
.tx-item .gloss .icon { position: relative; z-index: 1; grid-row: auto; width: 22px; height: 22px; padding: 0; border-radius: 0; background: none; box-shadow: none; color: inherit; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .35)); }
.g-green { background: linear-gradient(150deg, #6ee7a8, #16a34a 55%, #2b3170); }
.g-blue { background: linear-gradient(150deg, #93c5fd, #2563eb 55%, #1e3a8a); }
.g-gold { background: linear-gradient(150deg, #fff1b8, #fbbf24 50%, #b45309); color: #4a2600; }
/* the same glossy finish for the sell cards */
.hs-ico { position: relative; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .5), inset 0 -5px 10px rgba(0, 0, 0, .25), 0 10px 20px rgba(0, 0, 0, .3); }
.hs-ico::after { content: ""; position: absolute; left: 5px; right: 5px; top: 3px; height: 46%; border-radius: 12px 12px 20px 20px; background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0)); pointer-events: none; }
.hs-ico .icon { position: relative; z-index: 1; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .3)); }
.mode-sell .hx { padding-bottom: 150px; }

/* ---- Tiles: 3D item pops out of the photo frame ---- */
.tiles { row-gap: 30px; margin-top: 34px; }
@media (min-width: 760px) { .tiles { row-gap: 34px; } }
.tile-big { overflow: visible; }
.tile-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: inherit; }
.tile-pic { filter: saturate(1.08) brightness(.82); }
.tile-floor { position: absolute; z-index: 1; right: 2%; top: -8%; width: 54%; height: 64%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 205, 100, .5), rgba(255, 205, 100, 0)); filter: blur(4px); }
.tile-3d { position: absolute; z-index: 2; right: -2px; top: -24px; width: min(58%, 170px); height: auto; max-height: 64%; object-fit: contain; object-position: right top; pointer-events: none;
  filter: drop-shadow(0 14px 12px rgba(0, 0, 0, .5)) drop-shadow(0 2px 2px rgba(0, 0, 0, .35));
  animation: popFloat 5s ease-in-out infinite; transition: transform .5s var(--ease-spring); }
.t-crackers .tile-3d { width: min(46%, 250px); top: -30px; }
.tile-big:nth-child(3) .tile-3d { animation-delay: -1.2s; } .tile-big:nth-child(4) .tile-3d { animation-delay: -2.4s; }
.tile-big:nth-child(5) .tile-3d { animation-delay: -3.1s; } .tile-big:nth-child(6) .tile-3d { animation-delay: -.6s; }
@keyframes popFloat { 50% { translate: 0 -7px; } }
.tile-big:hover .tile-3d { transform: translateY(-6px) scale(1.07) rotate(-3deg); }
.tile-big .tile-badge { z-index: 3; }
.t-other .tile-ico { width: 54px; height: 54px; border-radius: 17px; color: #4a2600; background: linear-gradient(150deg, #fff1b8, #fbbf24 50%, #b45309);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .5), inset 0 -5px 10px rgba(0, 0, 0, .25), 0 10px 20px rgba(0, 0, 0, .35); }

/* ---- Final push: toran on top, lit diyas below ---- */
.ex { position: relative; overflow: hidden; isolation: isolate; padding: 92px 22px 96px;
  background:
    radial-gradient(300px circle at var(--gx) var(--gy), rgba(255, 214, 140, .16), transparent 70%),
    radial-gradient(420px 220px at 50% 100%, rgba(245, 158, 11, .32), transparent 70%),
    linear-gradient(160deg, var(--brand-900), var(--brand-950)); }
.ex > * { position: relative; z-index: 1; }
.ex > .toran { position: absolute; z-index: 2; }
.diyas { position: absolute !important; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; align-items: flex-end; gap: 30px; pointer-events: none; }
.diya { position: relative; display: block; width: 62px; height: 31px; }
.diya.d2 { width: 76px; height: 38px; }
.diya svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .5)); }
.flame { position: absolute; left: 50%; bottom: 72%; width: 12px; height: 24px; margin-left: -6px; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: radial-gradient(ellipse at 50% 78%, #fff 0 16%, #ffe27a 34%, #ff9f1a 62%, rgba(255, 90, 0, 0) 72%);
  transform-origin: 50% 100%; animation: flicker 1.3s ease-in-out infinite; box-shadow: 0 -2px 18px 6px rgba(255, 170, 40, .45); }
.flame::after { content: ""; position: absolute; left: 50%; top: 40%; width: 70px; height: 70px; margin: -35px 0 0 -35px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 190, 80, .35), transparent); animation: halo 2.6s ease-in-out infinite alternate; }
.d2 .flame { width: 14px; height: 28px; margin-left: -7px; animation-delay: -.45s; }
.d3 .flame { animation-delay: -.85s; }
@keyframes flicker { 0%, 100% { transform: scale(1, 1) rotate(-2deg); } 25% { transform: scale(.9, 1.1) rotate(2deg); } 50% { transform: scale(1.06, .94) rotate(-1deg); } 75% { transform: scale(.95, 1.07) rotate(1.5deg); } }
@keyframes halo { from { opacity: .6; transform: scale(.9); } to { opacity: 1; transform: scale(1.1); } }

/* ---- Micro effects (vfx.js) ---- */
.fx-host { position: relative; }
.fx-clip { position: absolute; inset: 0; z-index: 4; overflow: hidden; border-radius: inherit; pointer-events: none; }
.fx-ripple { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .42), rgba(255, 255, 255, 0) 62%); transform: scale(0); animation: fxRipple .65s ease-out forwards; }
@keyframes fxRipple { to { transform: scale(1); opacity: 0; } }
.fx-spark { position: fixed; z-index: 9999; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; pointer-events: none;
  background: #ffe08a; box-shadow: 0 0 8px 2px rgba(255, 190, 60, .8); animation: fxSpark .6s cubic-bezier(.2, .8, .3, 1) forwards; }
@keyframes fxSpark { to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }
/* gold shine that passes across main buttons now and then (inside the button's own background,
   so the outer pulse glow is not clipped) */
.btn-sun { background-color: var(--sun-500);
  background-image: linear-gradient(110deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, .55) 50%, rgba(255, 255, 255, 0) 62%);
  background-repeat: no-repeat; background-size: 260% 100%; background-position: 160% 0; animation: btnShine 4.5s ease-in-out infinite; }
@keyframes btnShine { 0%, 70% { background-position: 160% 0; } 100% { background-position: -60% 0; } }

/* ---- Phone bar ---- */
.mcta { position: fixed; z-index: 60; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 9px 9px 16px; border-radius: 20px; color: #fff; background: rgba(10, 13, 45, .92); border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 16px 34px rgba(0, 0, 0, .35);
  transform: translateY(150%); opacity: 0; pointer-events: none; transition: transform .45s cubic-bezier(.34, 1.4, .5, 1), opacity .3s; }
.mcta.show { transform: none; opacity: 1; pointer-events: auto; }
.mcta-text { font-size: .86rem; font-weight: 600; line-height: 1.3; color: rgba(255, 255, 255, .85); }
.mcta-text b { color: var(--sun-400); }
.mcta .btn { flex: none; min-height: 44px; padding: 0 16px; }
@media (min-width: 760px) { .mcta { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .toran, .wx-night::before, .a-float, .a-pop, .a-msg, .a-tag, .a-sheen, .a-twinkle, .tile-3d, .flame, .flame::after, .btn-sun { animation: none !important; }
  .mcta { transition: none; }
}
/* night section label + title (beat the site-wide .eyebrow pill and heading colours) */
.wx-night .eyebrow { display: flex; width: fit-content; padding: 6px 12px; border-radius: 999px; background: rgba(251, 191, 36, .14); border: 1px solid rgba(251, 191, 36, .4); color: #fcd34d;
  font-size: .74rem; font-weight: 800; letter-spacing: .14em; -webkit-backdrop-filter: none; backdrop-filter: none; }
.wx .wx-night h2.px-title { color: #fff; }
.t-other .tile-3d { width: min(52%, 150px); }

/* =====================================================================================
   Store-style layout: two-row header with search, category bar, picture cards,
   "Popular" row, back to top, big footer. Our own green and gold, not anyone's brand.
   ===================================================================================== */
.home { --header-h: 116px; }
@media (min-width: 900px) { .home { --header-h: 72px; } }
.home .site-header, .home .site-header.scrolled { height: auto; background: #0a0d2d; border-color: rgba(255, 255, 255, .06); box-shadow: 0 6px 20px rgba(0, 0, 0, .18); -webkit-backdrop-filter: none; backdrop-filter: none; }
.home .site-header .logo { color: #fff; }
.home .header-row { height: auto; display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "logo sp list" "search search search"; align-items: center; gap: 8px 10px; padding-top: 8px; padding-bottom: 10px; }
.home .header-row .logo { grid-area: logo; }
.hd-list { grid-area: list; }
.hd-search { grid-area: search; }
.hd-loc, .hd-sell { display: none; }
@media (min-width: 600px) { .hd-loc { display: flex; grid-area: sp; justify-self: start; } }
@media (min-width: 900px) {
  .home .header-row { height: 72px; display: flex; gap: 12px; padding-top: 0; padding-bottom: 0; }
  .hd-search { flex: 1; min-width: 0; }
  .hd-sell { display: block; }
}
/* header buttons get a thin outline on hover, like a store header */
.hd-loc, .hd-sell, .hd-list { color: #fff; background: transparent; border: 1px solid transparent; border-radius: 8px; padding: 5px 8px; font: inherit; cursor: pointer; text-decoration: none; line-height: 1.15; }
.hd-loc:hover, .hd-sell:hover, .hd-list:hover { border-color: rgba(255, 255, 255, .7); }
.hd-loc { align-items: center; gap: 6px; text-align: left; }
.hd-loc .icon { width: 20px; height: 20px; color: var(--sun-400); }
.hd-loc small, .hd-sell small { display: block; font-size: .72rem; color: rgba(255, 255, 255, .7); font-weight: 600; }
.hd-loc b, .hd-sell b { font-size: .9rem; font-weight: 800; white-space: nowrap; }
.hd-list { display: flex; align-items: flex-end; gap: 4px; }
.hd-list-ico { position: relative; display: block; }
.hd-list-ico .icon { width: 30px; height: 30px; }
.hd-list-n { position: absolute; top: -7px; left: 50%; min-width: 20px; height: 20px; padding: 0 5px; transform: translateX(-30%); display: grid; place-items: center; border-radius: 10px; background: var(--sun-500); color: #3a2200; font-size: .76rem; font-weight: 900; box-shadow: 0 0 0 2px #0a0d2d; }
.hd-list b { font-size: .92rem; font-weight: 800; }
.hd-list.bump .hd-list-n { animation: listBump .5s cubic-bezier(.34, 1.8, .5, 1); }
@keyframes listBump { 40% { transform: translateX(-30%) scale(1.45); } }

/* search box */
.hd-search { position: relative; display: flex; height: 46px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 2px transparent; transition: box-shadow .2s; }
.hd-search:focus-within { box-shadow: 0 0 0 3px var(--sun-400); }
.hd-cat { flex: none; max-width: 92px; padding: 0 22px 0 12px; border: 0; border-right: 1px solid #dfe5e1; border-radius: 10px 0 0 10px; background: #eef2ef url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23334' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 9px center;
  color: var(--ink); font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; -webkit-appearance: none; appearance: none; }
.hd-cat:focus-visible { outline: 2px solid var(--brand-600); outline-offset: -2px; }
.hd-field { flex: 1; min-width: 0; }
.hd-field input { width: 100%; height: 100%; padding: 0 12px; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 16px; outline: none; }
.hd-field input::placeholder { color: #7a8a83; }
.hd-field input::-webkit-search-cancel-button { cursor: pointer; }
.hd-go { flex: none; width: 54px; border: 0; border-radius: 0 10px 10px 0; display: grid; place-items: center; cursor: pointer; color: #3a2200; background: linear-gradient(180deg, #fcd34d, #f59e0b); }
.hd-go:hover { background: linear-gradient(180deg, #fde68a, #fbbf24); }
.hd-go .icon { width: 22px; height: 22px; }
.hd-sug { position: absolute; z-index: 80; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; max-height: min(62vh, 460px); overflow: auto;
  background: #fff; border-radius: 14px; box-shadow: 0 24px 50px -12px rgba(0, 0, 0, .45), 0 0 0 1px rgba(0, 0, 0, .05); }
.hd-sug-head { padding: 8px 10px 4px; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.hd-opt { display: flex; align-items: center; gap: 12px; padding: 7px 10px; border-radius: 10px; cursor: pointer; color: var(--ink); }
.hd-opt:hover, .hd-opt[aria-selected="true"] { background: #faf3e6; }
.hd-opt img { flex: none; width: 44px; height: 44px; object-fit: contain; padding: 3px; border-radius: 9px; background: radial-gradient(70% 70% at 50% 45%, #fff6dc, #ffe3a3 70%, #f6c26b); }
.hd-opt-ico { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 9px; background: #eef2ef; color: var(--brand-700); font-weight: 900; }
.hd-opt-text { display: grid; min-width: 0; }
.hd-sug-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hd-sug-name mark { background: none; color: var(--brand-700); font-weight: 900; }
.hd-opt small { color: var(--muted); font-size: .76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* category bar */
.hd-nav { background: #20265d; color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.hd-nav-row { display: flex; align-items: center; gap: 2px; height: 42px; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent); mask-image: linear-gradient(90deg, #000 90%, transparent); }
.hd-nav-row::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .hd-nav-row { -webkit-mask-image: none; mask-image: none; } }
.hd-nav a { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid transparent; border-radius: 6px; color: #fff; font-size: .9rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.hd-nav a:hover { border-color: rgba(255, 255, 255, .7); }
.hd-nav a:focus-visible { outline: 2px solid var(--sun-400); outline-offset: 1px; }
.hd-nav .icon { width: 16px; height: 16px; color: var(--sun-400); }
.hd-all { font-weight: 800 !important; }
.hd-nav-sell { color: var(--sun-400) !important; font-weight: 800 !important; }
@media (min-width: 900px) { .hd-nav-sell { margin-left: auto; } }

/* picture cards (4 pictures each), overlapping the bottom of the hero */
.qc-wrap { position: relative; z-index: 3; margin-top: -40px; }
.qc-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 10px; scrollbar-width: none; }
.qc-row::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .qc-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; overflow: visible; margin: 0; padding: 0; } }
.qc { flex: 0 0 82%; scroll-snap-align: start; display: flex; flex-direction: column; padding: 16px 16px 14px; border-radius: 16px; background: #fff; color: var(--ink);
  box-shadow: 0 14px 30px -14px rgba(10, 13, 45, .45), 0 1px 0 rgba(0, 0, 0, .04); }
@media (min-width: 600px) { .qc { flex-basis: 46%; } }
.qc h2 { font-size: 1.1rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 12px; }
.qc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qc-grid a { display: grid; gap: 6px; color: var(--ink); font-size: .84rem; font-weight: 600; text-decoration: none; }
.qc-grid a:hover { color: var(--brand-700); }
.qc-pic { position: relative; display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: radial-gradient(70% 70% at 50% 45%, #fff6dc 0%, #ffe3a3 60%, #f6c26b 100%); }
.qc-pic img { width: 86%; height: 86%; object-fit: contain; filter: drop-shadow(0 6px 6px rgba(80, 35, 0, .3)); transition: transform .45s var(--ease-spring); }
.qc-grid a:hover .qc-pic img { transform: scale(1.08) rotate(-2deg); }
.qc-photo img { width: 100%; height: 100%; object-fit: cover; filter: none; }
.qc-tag { position: absolute; top: 6px; left: 6px; padding: 2px 7px; border-radius: 6px; background: #16a34a; color: #fff; font-size: .68rem; font-weight: 900; letter-spacing: .04em; }
.qc-ev img { filter: drop-shadow(0 6px 6px rgba(80, 35, 0, .3)) hue-rotate(95deg) saturate(1.1); }
.qc-more { margin-top: auto; padding-top: 12px; color: var(--brand-700); font-weight: 700; font-size: .9rem; text-decoration: none; }
.qc-more:hover { text-decoration: underline; }
.qc-sell { background: linear-gradient(170deg, #fffaf0, #fff1d6); }
.qc-sell p { margin: -4px 0 8px; color: var(--ink-2); font-size: .92rem; line-height: 1.45; }
.qc-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 4px; }
.qc-list a { display: flex; align-items: center; gap: 12px; padding: 6px 0; color: var(--ink); font-weight: 700; text-decoration: none; }
.qc-list a:hover { color: var(--brand-700); }
.qc-list .gloss { width: 38px; height: 38px; border-radius: 12px; }
.qc-list .gloss .icon { width: 19px; height: 19px; position: relative; z-index: 1; }
.qc-btn { margin-top: auto; width: 100%; justify-content: center; }
#buy-rest .dx { margin-top: 26px; }

/* "Popular this Diwali" row */
.pr { padding-top: 30px; }
.pr-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pr-title { font-size: clamp(1.3rem, 4.6vw, 1.7rem); font-weight: 800; letter-spacing: -.03em; }
.pr-all { display: inline-flex; align-items: center; gap: 4px; color: var(--brand-700); font-weight: 700; text-decoration: none; }
.pr-all .icon { width: 16px; height: 16px; }
.pr-scroll { position: relative; }
.pr-track { display: flex; gap: 12px; margin: 12px -16px 0; padding: 4px 16px 14px; list-style: none; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.pr-track::-webkit-scrollbar { display: none; }
.pr-card { flex: 0 0 164px; scroll-snap-align: start; display: grid; grid-template-rows: auto auto 1fr auto; gap: 6px; padding: 8px 8px 12px; border-radius: 14px; background: #fff; border: 1.5px solid #ece7da; box-shadow: 0 6px 16px -10px rgba(60, 30, 0, .35); transition: border-color .3s, transform .3s var(--ease-spring); }
.pr-card:hover { transform: translateY(-3px); }
.pr-card.in { border-color: var(--brand-500); }
@media (min-width: 760px) { .pr-card { flex-basis: 196px; } }
.pr-stage { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 8px; border: 0; border-radius: 10px; cursor: pointer; background: radial-gradient(70% 60% at 50% 42%, #fff6dc 0%, #ffe3a3 55%, #f6c26b 100%); }
.pr-stage img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(80, 35, 0, .3)); transition: transform .45s var(--ease-spring); }
.pr-card:hover .pr-stage img { transform: scale(1.07) rotate(-2deg); }
.pr-tag { justify-self: start; padding: 2px 8px; border-radius: 6px; background: #ffedd5; color: #9a3412; font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.pr-name { padding: 0 2px; font-size: .9rem; font-weight: 700; line-height: 1.3; }
.pr-ctl { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 40px; }
.pr-add { width: 100%; min-height: 40px; padding: 0 10px; font-size: .9rem; border-radius: 999px; }
.pr-step { width: 38px; height: 38px; flex: none; border: 1.5px solid var(--brand-500); border-radius: 50%; background: #fff; color: var(--brand-700); font: inherit; font-size: 1.2rem; font-weight: 800; cursor: pointer; }
.pr-step:hover { background: var(--brand-50); }
.pr-q { color: var(--brand-700); font-size: .84rem; font-weight: 800; text-align: center; }
.pr-nav { display: none; }
@media (hover: hover) and (pointer: fine) and (min-width: 760px) {
  .pr-nav { position: absolute; z-index: 2; top: 22%; display: grid; place-items: center; width: 38px; height: 54px; border: 0; border-radius: 10px; cursor: pointer; color: var(--ink); background: rgba(255, 255, 255, .96); box-shadow: 0 8px 20px rgba(0, 0, 0, .18); transition: opacity .2s; }
  .pr-nav .icon { width: 20px; height: 20px; }
  .pr-nav.prev { left: -20px; } .pr-nav.next { right: -20px; }
  .pr-nav:disabled { opacity: 0; pointer-events: none; }
}

/* jump target highlight (search, picture cards) */
.flash { animation: flashRing 1.8s ease-out; }
@keyframes flashRing { 0% { box-shadow: 0 0 0 0 rgba(251, 191, 36, .95); } 30% { box-shadow: 0 0 0 8px rgba(251, 191, 36, .45); } 100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); } }

/* back to top + big footer */
.to-top { display: block; width: 100%; padding: 15px; border: 0; background: #2b2560; color: #fff; font: inherit; font-size: .92rem; font-weight: 700; cursor: pointer; }
.to-top:hover { background: #33307a; }
.big-foot { padding-top: 30px; }
.foot-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; padding-bottom: 24px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
@media (min-width: 760px) { .foot-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.foot-col h2 { color: #fff; font-size: 1rem; font-weight: 800; margin-bottom: 10px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin: 7px 0; font-size: .92rem; }
.foot-col a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.foot-col a:hover { color: #fff; text-decoration: underline; }
.foot-col span { color: rgba(255, 255, 255, .62); }
.foot-base { padding-top: 20px; }

@media (prefers-reduced-motion: reduce) {
  .hd-list.bump .hd-list-n, .flash { animation: none; }
  .qc-pic img, .pr-stage img, .pr-card { transition: none; }
}

/* =====================================================================================
   Four doors at the top (what you can do here) + "How it works" tabs for each person
   ===================================================================================== */
.doors-wrap { padding: 14px 0 16px; background: #faf6ec url("/img/tex/paper.webp") repeat; background-size: 512px; border-bottom: 1px solid #ece4d0; }
.mode-sell .doors-wrap { display: none; }
.doors-title { margin-bottom: 10px; color: var(--ink-2); font-size: .95rem; font-weight: 600; }
.doors-title b { color: var(--brand-800); }
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 900px) { .doors { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }
.door { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 10px; padding: 12px 12px 12px 12px; border-radius: 16px; color: var(--ink); text-decoration: none;
  background: #fff; border: 1.5px solid #ece4d0; box-shadow: 0 8px 20px -14px rgba(60, 30, 0, .35); transition: transform .3s var(--ease-spring), border-color .25s, box-shadow .25s; }
.door:hover { transform: translateY(-3px); border-color: var(--sun-400); box-shadow: 0 16px 28px -14px rgba(60, 30, 0, .4); }
.door:focus-visible { outline: 3px solid var(--sun-500); outline-offset: 2px; }
.door .gloss { grid-row: span 2; width: 40px; height: 40px; border-radius: 13px; }
.door .gloss .icon { position: relative; z-index: 1; width: 20px; height: 20px; }
.door-text { display: grid; gap: 2px; min-width: 0; }
.door-text b { font-family: var(--font-display); font-size: .98rem; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.door-text small { color: var(--ink-2); font-size: .8rem; line-height: 1.35; }
.door-go { display: none; }
@media (min-width: 900px) {
  .door { grid-template-columns: auto 1fr auto; align-items: center; padding: 14px 16px; }
  .door .gloss { grid-row: auto; width: 46px; height: 46px; }
  .door-text b { font-size: 1.05rem; }
  .door-text small { font-size: .84rem; }
  .door-go { display: block; width: 18px; height: 18px; color: var(--brand-700); transition: transform .3s var(--ease-spring); }
  .door:hover .door-go { transform: translateX(4px); }
}
.d-buy { border-color: #f6d99a; background: linear-gradient(170deg, #fffaf0, #fff); }
.g-leaf { background: linear-gradient(150deg, #bef264, #65a30d 55%, #3f6212); }

/* category bar: crop links in gold */
.hd-nav-gold { color: #fde68a !important; }

/* "How it works" tabs */
.hw-tabs { display: flex; gap: 6px; margin-top: 14px; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); width: fit-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.hw-tabs::-webkit-scrollbar { display: none; }
.hw-tabs [role="tab"] { flex: none; min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: rgba(255, 255, 255, .82); font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer; transition: background .25s, color .25s; }
.hw-tabs [role="tab"]:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.hw-tabs [role="tab"][aria-selected="true"] { background: var(--sun-400); color: #3a2200; }
.hw-tabs [role="tab"]:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.hw-panel { margin-top: 20px; animation: hwIn .45s var(--ease-out); }
@keyframes hwIn { from { opacity: 0; transform: translateY(8px); } }
.hw-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 760px) { .hw-steps { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.hw-steps li { position: relative; display: grid; gap: 6px; padding: 18px; border-radius: 22px; color: #fff;
  background: linear-gradient(160deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .03)); border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 18px 40px -16px rgba(0, 0, 0, .6); }
.hw-steps .gloss { width: 48px; height: 48px; margin-bottom: 4px; }
.hw-steps .gloss .icon { position: relative; z-index: 1; width: 24px; height: 24px; }
.hw-steps .wx-n { position: absolute; top: 14px; right: 16px; font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(251, 191, 36, .55); }
.hw-steps b { font-family: var(--font-display); font-size: 1.12rem; font-weight: 800; }
.hw-steps p { color: rgba(255, 255, 255, .74); line-height: 1.5; }
.hw-cta { margin-top: 16px; }
@media (prefers-reduced-motion: reduce) { .hw-panel { animation: none; } .door { transition: none; } }
/* Phones: short line under each door, so the four doors stay small */
.door-text em { font-style: normal; color: var(--ink-2); font-size: .8rem; line-height: 1.3; }
@media (max-width: 899px) {
  .door { grid-template-columns: 1fr; gap: 8px; padding: 12px; }
  .door .gloss { grid-row: auto; }
  .door-text small { display: none; }
}
@media (min-width: 900px) { .door-text em { display: none; } }
@media (max-width: 420px) { .hw-tabs [role="tab"] { padding: 0 11px; font-size: .86rem; } }
