/* Gift Yukti: soft aurora background, frosted glass cards, Plus Jakarta Sans + Inter. Always the light, whitish theme. */
:root {
  --ink: #1d1b2e; --ink2: #55526b; --muted: #8a87a0;
  --accent: #6a5cf0; --accent2: #9b8cff; --coral: #ff8f7e; --mint: #2fae8b; --amber: #c58410; --danger: #d4553f;
  --glass: rgba(255,255,255,.58); --glass-strong: rgba(255,255,255,.88); --line: rgba(255,255,255,.75); --hair: rgba(29,27,46,.08);
  --field: rgba(255,255,255,.85); --chip: rgba(255,255,255,.72); --tag: #f1eefc; --tag-ink: #4d43a8; --no: #fdeceb; --no-ink: #b54a3d;
  --shadow: 0 10px 40px rgba(76,60,160,.12), 0 2px 6px rgba(76,60,160,.06);
  --bg1: #f7f3ff; --bg2: #fdf2f0; --bg3: #eef7f4; --b1: #c9bcff; --b2: #ffc9bd; --b3: #bde8da;
  --r: 22px; color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif; color: var(--ink);
  background: var(--bg1); min-height: 100vh; -webkit-font-smoothing: antialiased; overflow-x: hidden; line-height: 1.45; }
h1, h2, h3, h4, .display { font-family: "Plus Jakarta Sans", -apple-system, system-ui, sans-serif; letter-spacing: -.02em; margin: 0; }
a { color: var(--accent); }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: linear-gradient(160deg, var(--bg1) 0%, var(--bg2) 45%, var(--bg3) 100%); }
.aurora i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: drift 22s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { width: 520px; height: 520px; background: var(--b1); left: -140px; top: -140px; }
.aurora i:nth-child(2) { width: 460px; height: 460px; background: var(--b2); right: -120px; top: 140px; animation-delay: -6s; }
.aurora i:nth-child(3) { width: 420px; height: 420px; background: var(--b3); left: 30%; bottom: -200px; animation-delay: -12s; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { *, .aurora i { animation: none !important; transition: none !important; } }

.glass { background: var(--glass); backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: var(--r); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 560px; margin: 0 auto; padding: 0 16px; }

/* header */
.top { position: sticky; top: 0; z-index: 30; padding: 10px 0; }
.top .topbar { display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 14px; border-radius: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: "Plus Jakarta Sans"; font-weight: 800; font-size: 17px; color: var(--ink); text-decoration: none; }
.logo { width: 30px; height: 30px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), var(--coral)); display: grid; place-items: center; color: #fff; font-size: 15px; }
.spacer { flex: 1; }
.av { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #fff;
  background: linear-gradient(135deg, #9b8cff, #ff8f7e); object-fit: cover; }
.av.anon { background: #b9b4cc; }

/* atoms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 20px; border-radius: 16px; font-weight: 600; font-size: 15px;
  transition: transform .15s, box-shadow .2s, opacity .2s; text-decoration: none; color: inherit; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; pointer-events: none; }
.btn.primary { background: linear-gradient(135deg, var(--accent), #8a6cf6); color: #fff; box-shadow: 0 8px 22px rgba(106,92,240,.35); }
.btn.soft { background: var(--chip); border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(76,60,160,.08); }
.btn.ghost { color: var(--muted); }
.btn.danger { color: var(--danger); }
.btn.block { width: 100%; }
.btn.sm { padding: 9px 14px; border-radius: 12px; font-size: 13.5px; }
.btn.google { background: #fff; color: #1d1b2e; border: 1px solid rgba(29,27,46,.08); box-shadow: var(--shadow); }
.btn.wa { background: #25d366; color: #fff; }
.iconbtn { width: 38px; height: 38px; border-radius: 12px; display: inline-grid; place-items: center; color: var(--ink2); }
.iconbtn:hover { background: var(--chip); }
.iconbtn svg, .btn svg { width: 20px; height: 20px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 500;
  background: var(--chip); border: 1px solid var(--line); white-space: nowrap; }
.chip.on { background: var(--ink); color: var(--bg1); border-color: var(--ink); }
button.chip:hover { border-color: var(--accent2); }
.muted { color: var(--muted); } .small { font-size: 13px; } .tiny { font-size: 11.5px; }
.row { display: flex; align-items: center; gap: 10px; } .between { justify-content: space-between; } .wrapf { flex-wrap: wrap; }
.stack > * + * { margin-top: 12px; }
.card { padding: 16px; }
.label { font-size: 12px; font-weight: 600; color: var(--ink2); text-transform: uppercase; letter-spacing: .06em; margin: 18px 2px 8px; display: block; }
.field { width: 100%; padding: 13px 14px; border-radius: 14px; border: 1px solid var(--hair); background: var(--field); outline: none; transition: .2s; }
.field:focus { border-color: var(--accent2); box-shadow: 0 0 0 4px rgba(106,92,240,.14); }
textarea.field { resize: vertical; min-height: 74px; }
.toggle { width: 46px; height: 28px; border-radius: 999px; background: #cfcae0; position: relative; flex: none; transition: .25s; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.18); transition: .25s; }
.toggle[aria-checked="true"] { background: var(--mint); } .toggle[aria-checked="true"]::after { left: 21px; }
.store { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 9px 3px 3px; border-radius: 999px;
  background: var(--glass-strong); border: 1px solid var(--hair); }
.store i { width: 18px; height: 18px; border-radius: 6px; display: grid; place-items: center; font-style: normal; color: #fff; font-size: 10px; font-weight: 800; background: #8a87a0; }
.s-amazon i { background: #232f3e; } .s-flipkart i { background: #2874f0; } .s-zepto i { background: #5b1fa8; } .s-blinkit i { background: #f7c600; color: #1d1b2e; }
.s-instamart i { background: #fc8019; } .s-myntra i { background: #ff3f6c; } .s-nykaa i { background: #e80071; } .s-firstcry i { background: #f57f20; }
.thumb { width: 66px; height: 66px; border-radius: 16px; flex: none; display: grid; place-items: center; font-size: 30px; overflow: hidden;
  background: linear-gradient(135deg, #efeaff, #ffeee9); }
.thumb img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.item { display: flex; gap: 12px; padding: 12px; align-items: center; }
.item h4 { font-size: 15px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.pill { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.pill.must { background: #ffe9e4; color: #c8492f; } .pill.done { background: #dff5ec; color: #1f8a68; } .pill.part { background: #fff1d6; color: #9e6a0a; }
.purchased { opacity: .6; } .purchased h4 { text-decoration: line-through; }
.gone { animation: shelf .6s forwards; } @keyframes shelf { to { opacity: 0; transform: translateX(40px) scale(.96); } }
.pop { animation: pop .5s cubic-bezier(.2,.9,.2,1.3); } @keyframes pop { from { transform: scale(.9); opacity: 0; } }
.rise { animation: rise .45s cubic-bezier(.2,.8,.2,1); } @keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* sheet (bottom on phones, centered dialog on wide screens) */
.sheet-bg { position: fixed; inset: 0; background: rgba(20,18,34,.32); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: .3s; z-index: 60; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; max-height: 90vh; overflow-y: auto; border-radius: 28px 28px 0 0; padding: 10px 18px calc(24px + env(safe-area-inset-bottom));
  background: var(--glass-strong); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); transform: translateY(105%);
  transition: transform .42s cubic-bezier(.2,.9,.2,1); z-index: 61; box-shadow: 0 -10px 40px rgba(0,0,0,.12); }
.sheet .grab { width: 40px; height: 5px; border-radius: 9px; background: #cfcae0; margin: 0 auto 14px; }
body.sheet-open .sheet-bg { opacity: 1; pointer-events: auto; } body.sheet-open .sheet { transform: none; }
body.sheet-open { overflow: hidden; }
@media (min-width: 720px) {
  .sheet { left: 50%; right: auto; bottom: 50%; width: 520px; border-radius: 28px; transform: translate(-50%, 60%) scale(.96); opacity: 0;
    transition: transform .35s cubic-bezier(.2,.9,.2,1), opacity .25s; pointer-events: none; }
  body.sheet-open .sheet { transform: translate(-50%, 50%); opacity: 1; pointer-events: auto; }
  .sheet .grab { display: none; }
}
.toast { position: fixed; left: 50%; top: 18px; transform: translate(-50%, -30px); opacity: 0; padding: 11px 18px; border-radius: 999px;
  background: rgba(29,27,46,.92); color: #fff; font-size: 14px; font-weight: 600; z-index: 80; transition: .35s; max-width: calc(100% - 32px); text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); } .toast.err { background: #b2402c; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 70; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 12px; border-radius: 2px; animation: fall 1.7s ease-in forwards; }
@keyframes fall { to { transform: translateY(105vh) rotate(560deg); opacity: .2; } }

/* covers */
.cover { border-radius: 28px; padding: 22px 20px 20px; color: #fff; position: relative; overflow: hidden; }
.cover::after { content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%; background: rgba(255,255,255,.17); right: -70px; top: -90px; }
.cover h1, .cover h2 { font-size: clamp(26px, 5vw, 34px); line-height: 1.08; margin-top: 6px; position: relative; z-index: 1; }
.cover .meta { font-size: 14px; opacity: .92; margin-top: 6px; position: relative; z-index: 1; }
.cover .eyebrow { font-size: 13px; opacity: .92; position: relative; z-index: 1; }
.c-kids { background: linear-gradient(140deg, #4fbf9f, #6f95f2 55%, #ad97f5); }
.c-wedding { background: linear-gradient(140deg, #e88f9f, #c08cf0 55%, #f5b48f); }
.c-birthday { background: linear-gradient(140deg, #7b6cf6, #c08cf0 55%, #ff9f8f); }
.c-house { background: linear-gradient(140deg, #3fae8d, #5ea7d8 60%, #8a9cf0); }
.c-baby { background: linear-gradient(140deg, #79a8f0, #b79cf0 55%, #f4a3c2); }
.c-anniv { background: linear-gradient(140deg, #e0727f, #b071d6 60%, #8a7cf0); }
.c-fest { background: linear-gradient(140deg, #f29e38, #ef7b5a 55%, #d0588a); }
.c-other { background: linear-gradient(140deg, #6a5cf0, #9b8cff 60%, #ff8f7e); }
.ring { --p: 0; width: 56px; height: 56px; border-radius: 50%; background: conic-gradient(#fff calc(var(--p) * 1%), rgba(255,255,255,.3) 0); display: grid; place-items: center; flex: none; position: relative; z-index: 1; }
.ring b { width: 44px; height: 44px; border-radius: 50%; background: rgba(40,30,90,.35); display: grid; place-items: center; font-size: 12px; }

/* templates grid */
.tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tpl { padding: 14px; border-radius: 20px; text-align: left; min-height: 112px; border: 2px solid transparent; transition: .2s; color: #1d1b2e; }
.tpl.on { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.tpl .e { font-size: 30px; } .tpl b { display: block; margin-top: 8px; font-family: "Plus Jakarta Sans"; font-size: 15px; } .tpl span { font-size: 12px; color: #55526b; }
.t-kids { background: linear-gradient(140deg, #fff6d8, #e2f7ec); } .t-wedding { background: linear-gradient(140deg, #fff0ea, #ffe1ec); }
.t-birthday { background: linear-gradient(140deg, #efe9ff, #e3f0ff); } .t-house { background: linear-gradient(140deg, #e7f6f0, #eef0ff); }
.t-baby { background: linear-gradient(140deg, #e8f2ff, #fdeaf3); } .t-anniv { background: linear-gradient(140deg, #ffe8e3, #f3e8ff); }
.t-fest { background: linear-gradient(140deg, #fff1d9, #ffe3d6); } .t-other { background: var(--chip); border: 2px dashed #cfcae0; color: var(--ink); }
.t-other span { color: var(--ink2); }
.steps { display: flex; gap: 6px; margin: 4px 0 18px; } .steps i { height: 4px; flex: 1; border-radius: 4px; background: rgba(140,130,180,.25); } .steps i.on { background: var(--accent); }

/* about hints */
.hint { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--hair); font-size: 14px; } .hint:first-child { border: 0; }
.hint .k { width: 28px; font-size: 18px; flex: none; text-align: center; }
.taglist { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag { font-size: 12.5px; padding: 5px 10px; border-radius: 999px; background: var(--tag); color: var(--tag-ink); display: inline-flex; gap: 6px; align-items: center; }
.tag.no { background: var(--no); color: var(--no-ink); }
.tag button { font-size: 13px; line-height: 1; opacity: .7; }
.hand { font-family: Caveat, cursive; font-size: 21px; line-height: 1.15; }

/* e-cards */
.ecards { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; }
.ecards::-webkit-scrollbar { display: none; }
.ecard { flex: none; width: 104px; height: 132px; border-radius: 18px; padding: 10px; display: flex; flex-direction: column; justify-content: flex-end;
  font-family: Caveat, cursive; font-size: 19px; line-height: 1.05; color: #fff; border: 3px solid transparent; transition: .2s; text-align: left; }
.ecard.on { border-color: var(--ink); transform: translateY(-3px); }
.cardpreview { border-radius: 22px; padding: 20px; min-height: 180px; color: #fff; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.cardpreview .msg { font-family: Caveat, cursive; font-size: 27px; line-height: 1.12; outline: none; min-height: 60px; overflow-wrap: anywhere; white-space: pre-wrap; }
.cardpreview small { font-size: 12px; opacity: .92; }
.e-blush { background: linear-gradient(160deg, #ff9a8b, #ff6a88); } .e-sky { background: linear-gradient(160deg, #7f7fd5, #86a8e7 60%, #91eae4); }
.e-sunset { background: linear-gradient(160deg, #f6c365, #fd8a75); } .e-mint { background: linear-gradient(160deg, #43c6ac, #2a8a7f); }
.e-gold { background: linear-gradient(160deg, #d9a74a, #a86b1d); } .e-night { background: linear-gradient(160deg, #3a3170, #6a5cf0); }

/* skeleton */
.shimmer { background: linear-gradient(90deg, rgba(140,130,180,.15) 25%, rgba(140,130,180,.28) 50%, rgba(140,130,180,.15) 75%); background-size: 200% 100%; animation: sh 1.2s infinite; border-radius: 8px; }
@keyframes sh { to { background-position: -200% 0; } }
.detect { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 10px 12px; border-radius: 14px; background: rgba(47,174,139,.12); color: var(--mint); margin-top: 10px; }
.detect.warn { background: rgba(197,132,16,.12); color: var(--amber); }

/* dashboard bits */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.kpi { padding: 14px 16px; } .kpi b { display: block; font-family: "Plus Jakarta Sans"; font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.kpi span { font-size: 13px; color: var(--ink2); }
.bar { height: 8px; border-radius: 9px; background: rgba(140,130,180,.2); overflow: hidden; } .bar i { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, var(--accent), var(--accent2)); }
.spark { display: flex; align-items: flex-end; gap: 6px; height: 110px; padding-top: 18px; }
.spark div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; position: relative; }
.spark i { width: 100%; max-width: 36px; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--accent2), var(--accent)); min-height: 3px; }
.spark em { font-style: normal; font-size: 11px; color: var(--ink2); }
.spark span { font-size: 11px; color: var(--muted); }
.wishmsg { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--hair); } .wishmsg:first-child { border: 0; }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; overflow-x: auto; scrollbar-width: none; }
.tabs button { padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--ink2); white-space: nowrap; }
.tabs button.on { background: var(--glass-strong); color: var(--ink); box-shadow: 0 2px 10px rgba(76,60,160,.15); }
.fab { position: fixed; right: max(20px, calc(50% - 520px)); bottom: calc(22px + env(safe-area-inset-bottom)); height: 58px; padding: 0 22px; border-radius: 20px;
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--accent), #8a6cf6);
  box-shadow: 0 12px 28px rgba(106,92,240,.45); z-index: 25; }
.fab svg { width: 22px; height: 22px; }
.empty { text-align: center; padding: 34px 18px; }
.empty .big { font-size: 44px; }
.grid2 { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 900px) { .grid2 { grid-template-columns: 1.5fr 1fr; align-items: start; } }
.listcard { display: block; text-decoration: none; color: inherit; transition: transform .2s; }
.listcard:hover { transform: translateY(-2px); }
.qr { width: 180px; height: 180px; margin: 6px auto 12px; padding: 10px; background: #fff; border-radius: 18px; }
.qr img, .qr canvas { width: 100% !important; height: 100% !important; }
footer.foot { text-align: center; padding: 30px 16px 40px; font-size: 13px; color: var(--muted); }
footer.foot a { color: var(--muted); }
.prose { line-height: 1.65; } .prose h1 { font-size: 34px; margin-bottom: 8px; } .prose h2 { font-size: 20px; margin: 26px 0 8px; }

/* landing */
.landing { text-align: center; padding: 36px 0 20px; }
.landing h1 { font-size: clamp(40px, 7vw, 68px); line-height: 1.02; font-weight: 800; }
.landing h1 span { background: linear-gradient(120deg, var(--accent), var(--coral)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.landing .lede { font-size: 18px; color: var(--ink2); max-width: 580px; margin: 18px auto 26px; }
.float-cards { position: relative; height: 230px; max-width: 700px; margin: 36px auto 0; }
.fc { position: absolute; width: 230px; padding: 12px; animation: bob 6s ease-in-out infinite; text-align: left; }
.fc:nth-child(1) { left: 0; top: 30px; rotate: -5deg; } .fc:nth-child(2) { left: 50%; margin-left: -115px; top: 0; animation-delay: -2s; }
.fc:nth-child(3) { right: 0; top: 40px; rotate: 5deg; animation-delay: -4s; }
@keyframes bob { 50% { translate: 0 -10px; } }
.feat { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 30px; text-align: left; }
.feat .glass { padding: 20px; } .feat h3 { font-size: 17px; margin: 10px 0 6px; } .feat p { font-size: 14px; color: var(--ink2); margin: 0; }
.feat .ico { font-size: 26px; }
.how { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 14px; text-align: left; }
.how .glass { padding: 18px; } .how b { font-family: "Plus Jakarta Sans"; }
.how .glass::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; margin-bottom: 10px;
  background: linear-gradient(135deg, var(--accent), var(--coral)); color: #fff; font-weight: 800; }
.faq details { padding: 14px 16px; margin-top: 10px; text-align: left; } .faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--ink2); margin: 10px 0 0; }
@media (max-width: 640px) {
  .float-cards { height: auto; display: grid; gap: 12px; max-width: 330px; }
  .fc, .fc:nth-child(2), .fc:nth-child(3) { position: static; width: auto; margin: 0; rotate: 0deg; }
  .fc:nth-child(1) { rotate: -2deg; } .fc:nth-child(3) { rotate: 2deg; }
}
.cover.has-photo { padding-top: 0; }
.cover-photo { display: block; width: calc(100% + 40px); margin: 0 -20px 16px; height: 220px; object-fit: cover; position: relative; z-index: 1;
  mask-image: linear-gradient(180deg, #000 70%, transparent); -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); }
.cover:has(.cover-photo) { padding-top: 0; }
.card-img { width: 100%; border-radius: 16px; max-height: 220px; object-fit: cover; display: block; }
.opts { display: grid; gap: 8px; margin-top: 10px; }
.opt { text-align: left; padding: 12px 14px; border-radius: 14px; background: var(--chip); border: 1px solid var(--line); font-size: 14px; }
.opt:hover { border-color: var(--accent2); }
.aibtn { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--accent); padding: 6px 10px; border-radius: 10px; background: rgba(106,92,240,.1); }
.aibtn:disabled { opacity: .5; }
.photo-drop { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; border-radius: 16px; border: 2px dashed rgba(140,130,180,.4); color: var(--ink2); font-weight: 600; font-size: 14px; cursor: pointer; }
.photo-drop:hover { border-color: var(--accent2); }
