/* ===== Creation wizard ===== */
.wizard-page { background: linear-gradient(#fff5f6, #fffaf6 40%); }
.wz { padding-bottom: 90px; }
.wz-top { background: rgba(255, 255, 255, .9); border-bottom: 1px solid #f3e1e5; position: sticky; top: var(--hdr, 64px); z-index: 900; backdrop-filter: blur(10px); }
.wz-steps { list-style: none; display: flex; gap: 4px; margin: 0; padding: 10px 0; overflow-x: auto; scrollbar-width: none; }
.wz-steps::-webkit-scrollbar { display: none; }
.wz-steps li { flex: 1 0 auto; }
.wz-steps button { width: 100%; display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 4px 10px; border-radius: 999px; color: #9a8489; font-size: .85rem; font-weight: 500; white-space: nowrap; }
.wz-steps button:disabled { cursor: default; }
.wz-steps .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #f3e6e9; font-weight: 700; font-size: .8rem; flex: none; }
.wz-steps li.on button { color: var(--rose-d); font-weight: 700; } .wz-steps li.on .n { background: var(--rose); color: #fff; box-shadow: 0 4px 12px rgba(225, 29, 72, .4); }
.wz-steps li.done .n { background: #16a34a; color: #fff; } .wz-steps li.done button { color: #4d3a3e; }
@media (max-width: 767px) { .wz-steps .l { display: none; } .wz-steps li.on .l { display: inline; } .wz-steps li { flex: 0 0 auto; } }
.wz-container { max-width: 900px; padding-top: 26px; }
.wz-h { font-family: var(--disp); font-size: clamp(1.6rem, 4.5vw, 2.3rem); margin-bottom: 6px; }
.wz-sub { color: var(--muted); margin-bottom: 22px; }
.wz-body { animation: wzIn .35s ease both; } @keyframes wzIn { from { opacity: 0; transform: translateY(10px); } }
.wz-bar { position: fixed; left: 0; right: 0; bottom: 0; background: rgba(255, 255, 255, .95); border-top: 1px solid #f3e1e5; padding: 10px 0 max(10px, env(safe-area-inset-bottom)); z-index: 950; backdrop-filter: blur(10px); }
.wz-save { font-size: .82rem; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; } .wz-save.saved { color: #15803d; } .wz-save.error { color: #b91c1c; }
.spin { width: 14px; height: 14px; border: 2px solid #f0c1cb; border-top-color: var(--rose); border-radius: 50%; display: inline-block; animation: sp .7s linear infinite; } .spin.lg { width: 34px; height: 34px; border-width: 3px; } @keyframes sp { to { transform: rotate(360deg); } }
.wz-toast { position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); background: #2b1a1e; color: #fff; padding: 11px 18px; border-radius: 999px; z-index: 3000; opacity: 0; transition: all .3s; max-width: 92vw; text-align: center; font-size: .92rem; }
.wz-toast.in { opacity: 1; transform: translate(-50%, 0); } .wz-toast.warn { background: #b45309; }

/* occasion + template pickers */
.occ-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.occ-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 10px; background: #fff; border: 2px solid #f3e1e5; border-radius: 20px; font-weight: 600; color: #4a2f35; transition: all .2s; }
.occ-card .ic { font-size: 2.2rem; } .occ-card:hover { transform: translateY(-4px); border-color: #fb7185; box-shadow: 0 14px 30px rgba(190, 18, 60, .14); }
.occ-card.on { border-color: var(--rose); background: var(--rose-l); }
.tpl-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.tpl-opt { text-align: left; background: #fff; border: 2px solid #f3e1e5; border-radius: 20px; padding: 0; overflow: hidden; transition: all .2s; position: relative; }
.tpl-opt:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(190, 18, 60, .14); }
.tpl-opt.on { border-color: var(--rose); box-shadow: 0 0 0 4px rgba(225, 29, 72, .15); }
.tpl-opt .thumb { height: 130px; position: relative; display: grid; place-items: center; }
.tpl-opt .ic { position: absolute; top: 10px; left: 12px; font-size: 1.25rem; }
.tpl-opt .paper { width: 74px; height: 76px; border-radius: 5px; padding: 12px 10px; transform: rotate(-4deg) translateY(12px); box-shadow: 0 8px 22px rgba(0, 0, 0, .35); }
.tpl-opt .paper i { display: block; height: 4px; margin-bottom: 7px; border-radius: 2px; background: #000; opacity: .18; } .tpl-opt .paper i.s { width: 60%; }
.tpl-opt .tick { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%; background: var(--rose); color: #fff; display: none; place-items: center; }
.tpl-opt.on .tick { display: grid; }
.tpl-opt .meta { padding: 12px 14px 16px; } .tpl-opt .meta b { display: block; } .tpl-opt .meta small { color: var(--muted); }

/* editor */
.editor { border: 1.5px solid #ecd6db; border-radius: 18px; background: #fff; }
.editor:focus-within { border-color: #fb7185; box-shadow: 0 0 0 .22rem rgba(244, 63, 94, .15); }
.ed-toolbar { border-radius: 16px 16px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 8px 10px; background: #fff7f8; border-bottom: 1px solid #f3e1e5; position: sticky; top: calc(var(--hdr, 64px) + 54px); z-index: 5; }
.ed-btn { width: 34px; height: 34px; border: 0; border-radius: 9px; background: none; color: #4a2f35; font-size: 1.05rem; } .ed-btn:hover { background: #ffe4e9; }
.ed-sel { border: 1px solid #ecd6db; border-radius: 9px; padding: 5px 6px; font-size: .82rem; background: #fff; max-width: 96px; }
.sep { width: 1px; height: 22px; background: #ecd6db; margin: 0 4px; }
.ed-colors { display: flex; gap: 4px; align-items: center; }
.ed-color { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #d9c3c8; padding: 0; position: relative; display: inline-grid; place-items: center; cursor: pointer; }
.ed-color.custom { background: conic-gradient(#f43f5e, #f59e0b, #22c55e, #3b82f6, #a855f7, #f43f5e); overflow: hidden; color: #fff; font-size: .7rem; } .ed-color.custom input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.ed-emoji { width: 268px; padding: 8px; display: none; flex-wrap: wrap; gap: 2px; } .ed-emoji.show { display: flex; }
.ed-emoji button { border: 0; background: none; font-size: 1.3rem; width: 40px; height: 40px; border-radius: 8px; } .ed-emoji button:hover { background: #ffe4e9; }
.ed-area { min-height: 300px; padding: 18px 20px; font-size: 1.08rem; line-height: 1.75; outline: none; font-family: 'Inter', 'Hind Siliguri', sans-serif; }
.ed-area:empty::before { content: attr(data-ph); color: #b7a2a8; pointer-events: none; }
.ed-area p, .ed-area div { margin: 0 0 .7em; }
.ed-foot { display: flex; justify-content: space-between; padding: 8px 14px; border-top: 1px solid #f7e9ec; font-size: .82rem; color: var(--muted); }

/* photos */
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 30px 16px; text-align: center; border: 2px dashed #f2b3c0; border-radius: 22px; background: #fff8f9; cursor: pointer; transition: all .2s; margin-bottom: 14px; }
.dropzone i { font-size: 2.2rem; color: var(--rose); } .dropzone:hover, .dropzone.over { background: #ffe9ee; border-color: var(--rose); } .dropzone.busy { opacity: .7; pointer-events: none; }
.dropzone small { color: var(--muted); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 22px; }
.ph { position: relative; background: #fff; border: 1px solid #f0dde1; border-radius: 16px; padding: 6px; cursor: grab; } .ph.drag { opacity: .4; }
.ph img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 11px; display: block; pointer-events: none; }
.ph .no { position: absolute; top: 12px; left: 12px; background: rgba(0, 0, 0, .55); color: #fff; width: 24px; height: 24px; border-radius: 50%; font-size: .75rem; display: grid; place-items: center; }
.ph .acts { position: absolute; top: 12px; right: 12px; display: flex; gap: 4px; } .ph .acts button { width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); box-shadow: 0 2px 6px rgba(0, 0, 0, .2); font-size: .75rem; }
.ph .acts .d { color: #b91c1c; }
.ph .cap { width: 100%; border: 0; border-top: 1px dashed #f0dde1; margin-top: 6px; padding: 6px 4px 2px; font-size: .82rem; background: none; outline: none; }
.voice-card { background: #fff; border: 1px solid #f0dde1; border-radius: 20px; padding: 18px; }
.btn.recording { background: #dc2626; color: #fff; border-color: #dc2626; animation: pulse 1.2s infinite; } @keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(220, 38, 38, .2); } }

/* customize + share */
.cust-block { background: #fff; border: 1px solid #f0dde1; border-radius: 20px; padding: 18px; margin-bottom: 14px; } .cust-block h2 { font-size: 1rem; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.chips button { border: 1.5px solid #f0dde1; background: #fff; border-radius: 999px; padding: 8px 16px; font-weight: 500; }
.chips button.on { border-color: var(--rose); background: var(--rose-l); color: var(--rose-d); font-weight: 600; }
.chips.big button { border-radius: 16px; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 96px; padding: 12px; } .chips.big button span { font-size: 1.6rem; }
.chips.fonts button { border-radius: 16px; display: flex; flex-direction: column; min-width: 140px; text-align: left; } .chips.fonts span { font-size: 1.5rem; } .chips.fonts small { color: var(--muted); font-size: .72rem; }
.f-hand span { font-family: 'Caveat', 'Atma', cursive; } .f-script span { font-family: 'Dancing Script', 'Galada', cursive; } .f-serif span { font-family: 'Playfair Display', 'Noto Serif Bengali', serif; } .f-clean span { font-family: 'Inter', 'Hind Siliguri', sans-serif; }
.phone { width: min(92vw, 340px); margin: 0 auto; background: #111; border-radius: 42px; padding: 12px; box-shadow: 0 30px 70px rgba(0, 0, 0, .35); position: relative; }
.phone-notch { position: absolute; top: 20px; left: 50%; width: 90px; height: 22px; margin-left: -45px; background: #111; border-radius: 0 0 14px 14px; z-index: 3; }
.phone-screen { height: min(64vh, 620px); border-radius: 32px; overflow: hidden; background: #2b0b1a; position: relative; } .phone-screen iframe { width: 100%; height: 100%; border: 0; display: block; }
.pv-load { display: grid; place-items: center; height: 100%; }
.share-opts { max-width: 640px; }
.opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; cursor: pointer; } .opt small { display: block; color: var(--muted); font-size: .82rem; }
.guest-hint { background: #fff7e6; border: 1px solid #fcd9a8; border-radius: 14px; padding: 12px 14px; font-size: .9rem; margin-bottom: 14px; }
.result { max-width: 640px; margin: 0 auto; text-align: center; } .result .wz-h { margin-top: 4px; } .result-burst { font-size: 60px; animation: pop .8s cubic-bezier(.3, 1.6, .5, 1) both; } @keyframes pop { from { transform: scale(0) rotate(-30deg); } }
.link-box { display: flex; gap: 8px; background: #fff; border: 2px solid #fbc7d1; border-radius: 999px; padding: 6px 6px 6px 18px; align-items: center; }
.link-box input { flex: 1; border: 0; outline: none; background: none; min-width: 0; font-weight: 600; color: var(--rose-d); }
.share-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.share-btns a, .share-btns button { display: inline-flex; gap: 6px; align-items: center; padding: 9px 16px; border-radius: 999px; color: #fff; text-decoration: none; font-weight: 600; font-size: .9rem; border: 0; background: #475569; }
.share-btns .wa { background: #16a34a; } .share-btns .ms { background: #0084ff; } .share-btns .tg { background: #229ed9; } .share-btns .em { background: #6b7280; }
.manage-box { background: #fff7e6; border-color: #fcd9a8; text-align: left; }
.result .cust-block { text-align: left; }

/* signature + flower pickers */
.sig-stage { min-height: 92px; padding: 6px 16px; margin: 12px 0; background: #fffdf8; border: 1px dashed #ecd6db; border-radius: 14px; text-align: right; font-size: 2.8rem; line-height: 1.35; display: flex; align-items: center; justify-content: flex-end; color: #9f1239; overflow: hidden; word-break: break-word; }
.sg-great_vibes { font-family: 'Great Vibes', 'Galada', cursive; }
.sg-allura { font-family: 'Allura', 'Galada', cursive; }
.sg-pinyon { font-family: 'Pinyon Script', 'Galada', cursive; }
.sg-delafield { font-family: 'Mrs Saint Delafield', 'Galada', cursive; font-size: 3.6rem; }
.chips.sigs button { border-radius: 14px; min-width: 150px; max-width: 100%; padding: 4px 14px; text-align: center; overflow: hidden; }
.chips.sigs button span { font-size: 1.9rem; line-height: 1.4; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.chips.sigs button.sg-delafield span { font-size: 2.6rem; }
.flower-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.fp { border: 2px solid #f0dde1; background: #fff; border-radius: 16px; padding: 8px 4px 6px; display: flex; flex-direction: column; align-items: center; gap: 4px; transition: all .15s; }
.fp:hover { transform: translateY(-2px); border-color: #fb7185; }
.fp.on { border-color: var(--rose); background: var(--rose-l); box-shadow: 0 0 0 3px rgba(225, 29, 72, .14); }
.fp-svg { display: block; width: 62px; height: 86px; }
.fp-svg i { font-size: 2rem; display: grid; place-items: center; height: 86px; font-style: normal; }
.fp small { font-size: .75rem; text-align: center; line-height: 1.2; }
.chips.tones { margin-top: 14px; gap: 10px; }
.chips.tones .tone { width: 34px; height: 34px; padding: 0; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px #d9c3c8; min-width: 0; }
.chips.tones .tone.on { box-shadow: 0 0 0 3px var(--rose); }

/* ---- editor v2 ---- */
.ed-toolbar { flex-direction: column; align-items: stretch; gap: 6px; padding: 10px; }
.ed-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.ed-font { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #ecd6db; background: #fff; border-radius: 10px; padding: 6px 10px; font-size: .85rem; min-width: 150px; justify-content: space-between; }
.ed-font span { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-fontmenu { max-height: 320px; overflow-y: auto; min-width: 260px; padding: 6px; }
.ed-fontmenu button { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; width: 100%; border: 0; background: none; padding: 8px 10px; border-radius: 8px; text-align: left; font-size: 1.15rem; line-height: 1.3; }
.ed-fontmenu button:hover { background: #ffe9ee; }
.ed-fontmenu small { color: #9a8489; font-size: .8rem; white-space: nowrap; }
.ed-pop { padding: 10px; min-width: 210px; }
.sw-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.sw { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #d9c3c8; padding: 0; }
.sw.hl { border-radius: 8px; }
.sw:hover { transform: scale(1.15); }
.sw-custom { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: .85rem; color: #6b5257; }
.sw-custom input { width: 34px; height: 26px; border: 0; padding: 0; background: none; }
.emo-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; width: 260px; }
.emo-grid button { border: 0; background: none; font-size: 1.3rem; height: 40px; border-radius: 8px; } .emo-grid button:hover { background: #ffe4e9; }
.ed-area { font-size: 1.12rem; }
.ed-area span[style*="background"] { border-radius: 4px; padding: 0 2px; }

/* ---- signature pad ---- */
.pad-wrap { position: relative; background: #fffdf8; border: 1.5px dashed #ecd6db; border-radius: 14px; overflow: hidden; }
#sig-pad { display: block; width: 100%; aspect-ratio: 1000 / 360; touch-action: none; cursor: crosshair; }
.pad-line { position: absolute; left: 6%; right: 6%; top: 74%; border-top: 1px solid #ecd6db; pointer-events: none; }

/* ---- style step previews ---- */
.fl-stage { position: relative; height: 290px; border-radius: 18px; display: grid; place-items: center; overflow: hidden; margin-bottom: 14px; }
.fl-box { width: 190px; }
.fl-note { position: absolute; inset: auto 12px 12px; margin: 0; color: #fff; text-align: center; font-size: .9rem; opacity: .85; }
.fl-replay { position: absolute; top: 10px; right: 10px; border-radius: 999px; }
.lay-stage { position: relative; height: 300px; border-radius: 18px; overflow: hidden; margin-bottom: 12px; cursor: pointer; }
.lay-mini { position: relative; height: 84px; border-radius: 10px; overflow: hidden; pointer-events: none; }
.ls-wrap { position: absolute; inset: 0; padding: 8%; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 4%; }
.ph-i { display: block; width: 100%; height: 100%; background-size: cover; background-position: center; }
.lay-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
.lay-card { border: 2px solid #f0dde1; background: #fff; border-radius: 14px; padding: 5px 5px 7px; display: flex; flex-direction: column; gap: 6px; } .lay-card small { font-size: .78rem; }
.lay-card.on { border-color: var(--rose); background: var(--rose-l); box-shadow: 0 0 0 3px rgba(225, 29, 72, .14); }
.ld-pz, .ld-gi, .ld-fl, .ld-sl, .ld-ti, .ld-fr, .ld-hi { margin: 0; opacity: 0; transform: scale(.6); transition: all .5s cubic-bezier(.3, 1.4, .5, 1); }
.ld-pz.in, .ld-gi.in, .ld-fl.in, .ld-ti.in, .ld-fr.in, .ld-hi.in { opacity: 1; transform: none; }
.ld-pz { width: 28%; aspect-ratio: 1; background: #fff; padding: 3% 3% 9%; box-shadow: 0 4px 10px rgba(0, 0, 0, .35); } .ld-pz.in { transform: rotate(var(--r)); }
.ld-gi { width: 30%; aspect-ratio: 1; border: 2px solid #fff; border-radius: 8px; overflow: hidden; }
.ld-film { flex-wrap: nowrap !important; background: #111; margin: 26% -8%; padding: 6% 8% !important; gap: 3% !important; border-block: 6px dashed #333; align-content: center !important; justify-content: flex-start !important; overflow: hidden; }
.ld-fr { flex: none; width: 34%; aspect-ratio: 4 / 5; border: 2px solid #f5f0e6; }
.ld-hi { position: absolute; border-radius: 50%; overflow: hidden; border: 2px solid #fff; aspect-ratio: 1; }
.ld-hcore { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); color: #ff5d7d; font-size: 2rem; opacity: .85; }
.ld-fl { position: absolute; width: 26%; aspect-ratio: 1; background: #fff; padding: 3%; box-shadow: 0 4px 12px rgba(0, 0, 0, .35); animation: floaty 4s ease-in-out var(--d) infinite; } .ld-fl.in { transform: rotate(var(--r)); }
.ld-ss { display: block !important; padding: 0 !important; } .ld-ss .ld-sl { position: absolute; inset: 10% 20%; opacity: 0; border: 4px solid #fff; transition: opacity .8s; transform: none; } .ld-ss .ld-sl.on { opacity: 1; }
.ld-dots { position: absolute; left: 0; right: 0; bottom: 5%; display: flex; justify-content: center; gap: 5px; } .ld-dots b { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .7); }
.ld-tl { flex-direction: column !important; flex-wrap: nowrap !important; align-content: center !important; position: absolute; gap: 3% !important; }
.ld-tl::before { content: ''; position: absolute; left: 50%; top: 4%; bottom: 4%; width: 2px; background: rgba(255, 255, 255, .5); }
.ld-ti { width: 28%; aspect-ratio: 5 / 3; border: 2px solid #fff; border-radius: 5px; overflow: hidden; position: relative; } .ld-ti.l { align-self: flex-start; margin-left: 18%; } .ld-ti.r { align-self: flex-end; margin-right: 18%; }
.anim-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.anim-card { text-align: left; border: 2px solid #f0dde1; background: #fff; border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; } .anim-card b { font-size: .9rem; }
.anim-card.on { border-color: var(--rose); background: var(--rose-l); box-shadow: 0 0 0 3px rgba(225, 29, 72, .14); }
.anim-demo { min-height: 74px; font-size: 1.35rem; line-height: 1.5; color: #4a2a2f; }
.anim-demo.f-hand { font-family: 'Caveat', 'Atma', cursive; } .anim-demo.f-script { font-family: 'Dancing Script', 'Galada', cursive; } .anim-demo.f-serif { font-family: 'Playfair Display', 'Noto Serif Bengali', serif; font-size: 1.1rem; } .anim-demo.f-clean { font-family: 'Inter', 'Hind Siliguri', sans-serif; font-size: 1.05rem; }
.dw { opacity: 0; transition: opacity .5s, transform .5s, filter .5s; } .dw.rise { transform: translateY(6px); filter: blur(2px); } .dw.on { opacity: 1; transform: none; filter: none; } .dw.line { display: block; }
.fx-stage { position: relative; height: 130px; margin-top: 12px; border-radius: 14px; overflow: hidden; }
.fx-p { position: absolute; bottom: -30px; animation: fxUp 3.4s linear forwards; } .fx-p.confetti { top: -30px; bottom: auto; animation-name: fxDown; }
@keyframes fxUp { to { transform: translateY(-190px); opacity: 0; } } @keyframes fxDown { to { transform: translateY(190px) rotate(200deg); opacity: 0; } }
.lay-stage .ld-pz { width: 21%; }
.lay-stage .ls-wrap { padding: 5%; gap: 3%; }
.lay-stage .ld-gi { width: 28%; }

.own-occ { max-width: 560px; margin: 26px auto 0; background: #fff; border: 1px dashed #f2b3c0; border-radius: 18px; padding: 16px 18px; }
.own-occ .form-label { font-weight: 600; color: var(--rose-d); }
