/* =============================================================
   Mémoire — shared styles (storefront, auth, order, account)
   ============================================================= */
:root {
  --bg: #1f0a10; --bg2: #280d15; --card: #2f1019; --card2: #3a1521;
  --line: rgba(232,160,176,.18); --line2: rgba(232,160,176,.32);
  --pink: #e8a0b0; --pink-d: #c9738a; --cream: #f6e9e4; --muted: #b89aa2; --silver: #d9d9df;
  --ok: #8fd3a8; --warn: #f0c987; --bad: #f08a8a;
  --gold: #dcbf94; --gold-d: #b98f5e; --wine: #4a1424; --plum: #3a1530;
  --display: 'Cormorant', 'Cormorant Garamond', 'Times New Roman', serif;
  --serif: 'Cormorant Garamond', 'Cormorant', 'Times New Roman', serif;
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 14px;
}
[dir=rtl] { --display: 'Amiri', 'Cormorant', serif; --serif: 'Amiri', 'Cormorant Garamond', serif; --sans: 'Tajawal', 'Jost', system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--cream); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .005em; }
[dir=rtl] h1, [dir=rtl] h2, [dir=rtl] h3, [dir=rtl] h4 { line-height: 1.4; }
h1 { font-size: clamp(2.3rem, 6vw, 4rem); font-style: italic; font-weight: 400; }
[dir=rtl] h1 { font-style: normal; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-style: italic; font-weight: 400; }
[dir=rtl] h2 { font-style: normal; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 20px; }
.center { text-align: center; }
.narrow { max-width: 560px; margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.nowrap { white-space: nowrap; }
[hidden] { display: none !important; }
.eyebrow { font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; color: var(--pink); margin: 0 0 14px; font-weight: 500; }
[dir=rtl] .eyebrow { letter-spacing: .06em; font-size: .85rem; }
.lead { font-size: 1.12rem; color: #e4cdd0; max-width: 520px; }
.lead.center { margin-inline: auto; }

/* ---------- header / footer ---------- */
#site-header { position: sticky; top: 0; z-index: 40; background: rgba(31,10,16,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.hdr { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { font-family: var(--display); font-size: 1.5rem; font-weight: 600; text-decoration: none; letter-spacing: .04em; text-transform: none; color: var(--cream); }
.brand::first-letter { color: var(--gold); }
.nav { display: flex; gap: 22px; margin-inline-start: 18px; }
.nav a { text-decoration: none; color: var(--muted); font-size: .92rem; transition: color .2s; }
.nav a:hover { color: var(--cream); }
.hdr-r { margin-inline-start: auto; display: flex; align-items: center; gap: 12px; }
.lang-btn, .link-btn { background: none; border: 0; color: var(--muted); font: inherit; font-size: .9rem; cursor: pointer; padding: 6px 4px; }
.lang-btn:hover, .link-btn:hover { color: var(--pink); }
.link-btn.danger { color: var(--bad); }
.center-btn { display: block; margin: 12px auto 0; }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 34px; margin-top: 60px; border-top: 1px solid var(--line); color: var(--muted); }
.foot p { margin: 4px 0 0; font-size: .9rem; }
.foot .brand { font-size: 1.4rem; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 500; font-size: .95rem; padding: 12px 26px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: transform .15s, background .2s, border-color .2s, opacity .2s; line-height: 1.2; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--pink); color: #3a0f1c; }
.btn-primary:hover { background: #f0b3c1; }
.btn-ghost { background: transparent; color: var(--cream); border-color: var(--line2); }
.btn-ghost:hover { border-color: var(--pink); color: var(--pink); }
.btn-ghost.danger, .btn.danger { color: var(--bad); }
.btn-sm { padding: 8px 16px; font-size: .85rem; }
.btn.block { display: flex; width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.busy { position: relative; color: transparent !important; pointer-events: none; }
.btn.busy::after { content: ''; position: absolute; width: 18px; height: 18px; border: 2px solid rgba(58,15,28,.3); border-top-color: #3a0f1c; border-radius: 50%; animation: spin .7s linear infinite; }
.btn-ghost.busy::after { border-color: rgba(246,233,228,.3); border-top-color: var(--cream); }
@keyframes spin { to { transform: rotate(360deg); } }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.row.end { justify-content: flex-end; }
.row.between { justify-content: space-between; }

/* ---------- forms ---------- */
.field { display: block; margin-bottom: 16px; position: relative; }
.field > span { display: block; font-size: .8rem; letter-spacing: .04em; color: var(--muted); margin-bottom: 6px; }
input, textarea, select { width: 100%; font: inherit; color: var(--cream); background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; outline: none; transition: border-color .2s, box-shadow .2s; }
input:focus, textarea:focus, select:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(232,160,176,.14); }
input[type=date] { color-scheme: dark; }
textarea { resize: vertical; min-height: 60px; }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--pink); }
select option { background: var(--bg2); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.hint-s { display: block; font-style: normal; font-size: .78rem; color: var(--muted); margin-top: 5px; }
.counter { position: absolute; inset-inline-end: 10px; bottom: 8px; font-style: normal; font-size: .72rem; color: var(--muted); pointer-events: none; }
.form-error { color: var(--bad); font-size: .9rem; min-height: 1.3em; margin: 0 0 8px; }
.seg { display: inline-flex; background: var(--bg2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { background: none; border: 0; color: var(--muted); font: inherit; font-size: .88rem; padding: 8px 20px; border-radius: 999px; cursor: pointer; }
.seg button.on { background: var(--pink); color: #3a0f1c; font-weight: 500; }
#auth-tabs { display: flex; margin-bottom: 22px; } #auth-tabs button { flex: 1; }

/* ---------- misc components ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; margin-bottom: 18px; }
.card-h { font-size: 1.4rem; margin-bottom: 14px; }
.kv { display: flex; justify-content: space-between; gap: 18px; padding: 9px 0; border-top: 1px solid var(--line); font-size: .93rem; }
.kv:first-of-type { border-top: 0; }
.kv span { color: var(--muted); flex: none; }
.kv b { font-weight: 500; text-align: end; }
.notice { background: rgba(232,160,176,.08); border: 1px solid var(--line2); border-radius: 14px; padding: 16px 18px; margin-bottom: 18px; }
.notice p { margin: 4px 0 0; color: #e4cdd0; }
.notice.ok { border-color: rgba(143,211,168,.5); background: rgba(143,211,168,.08); color: var(--ok); }
.notice.bad { border-color: rgba(240,138,138,.5); background: rgba(240,138,138,.08); color: var(--bad); }
.badge { display: inline-block; font-size: .74rem; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line2); color: var(--muted); white-space: nowrap; }
.badge.pay-confirmed { color: var(--ok); border-color: rgba(143,211,168,.5); }
.badge.pay-pending_review, .badge.pay-awaiting_proof { color: var(--warn); border-color: rgba(240,201,135,.5); }
.badge.pay-rejected { color: var(--bad); border-color: rgba(240,138,138,.5); }
.badge.pay-cod { color: var(--silver); }
.empty { text-align: center; padding: 60px 0; }
.skeleton { height: 280px; border-radius: 18px; background: linear-gradient(100deg, var(--bg2) 30%, var(--card) 50%, var(--bg2) 70%); background-size: 200% 100%; animation: sh 1.4s infinite; }
.skeleton.tall { height: 420px; margin-top: 30px; }
@keyframes sh { to { background-position: -200% 0; } }
.demo-banner { background: #3a1521; color: var(--warn); text-align: center; font-size: .82rem; padding: 6px 12px; border-bottom: 1px solid var(--line); }
.demo-hint { text-align: center; color: var(--muted); font-size: .8rem; margin-top: 18px; }
.demo-hint a { color: var(--pink); }
#toasts { position: fixed; inset-block-end: 22px; inset-inline: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 300; pointer-events: none; padding-inline: 16px; }
.toast { background: var(--card2); border: 1px solid var(--line2); color: var(--cream); padding: 11px 20px; border-radius: 999px; font-size: .9rem; box-shadow: 0 10px 30px rgba(0,0,0,.4); animation: rise .25s ease; }
.toast.ok { border-color: rgba(143,211,168,.5); } .toast.err { border-color: rgba(240,138,138,.6); color: #ffd0d0; }
.toast.out { opacity: 0; transform: translateY(6px); transition: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.modal-wrap { position: fixed; inset: 0; background: rgba(10,3,6,.72); backdrop-filter: blur(4px); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 18px; overflow-y: auto; }
.modal { position: relative; background: var(--card); border: 1px solid var(--line2); border-radius: 20px; padding: 28px; width: 100%; max-width: 440px; max-height: 92vh; overflow-y: auto; animation: rise .25s ease; }
.modal.wide { max-width: 640px; }
.modal.phone-modal { max-width: 400px; padding: 10px; background: #12060a; }
.preview-frame { width: 100%; height: min(78vh, 740px); border: 0; border-radius: 14px; background: var(--bg); display: block; }
.modal-x { position: absolute; inset-block-start: 10px; inset-inline-end: 12px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; background: rgba(0,0,0,.35); border: 0; color: var(--cream); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.modal-x.static { position: static; flex: none; background: var(--bg2); }
.confirm-msg { font-size: 1.05rem; margin: 6px 0 18px; padding-inline-end: 24px; }
.spin { width: 22px; height: 22px; border: 2px solid var(--line2); border-top-color: var(--pink); border-radius: 50%; animation: spin .8s linear infinite; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-block: 56px 40px; }
.hero h1 { margin-bottom: .35em; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-visual { position: relative; display: grid; place-items: center; min-height: 600px; padding-bottom: 26px; }
.glow { position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(201,115,138,.35), transparent 65%); filter: blur(20px); }
.phone { position: relative; width: 272px; height: 548px; border-radius: 38px; background: #12060a; border: 2px solid #5b3a45; box-shadow: 0 30px 80px rgba(0,0,0,.55), inset 0 0 0 5px #1b0b11; padding: 12px; animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.phone-notch { position: absolute; inset-block-start: 12px; inset-inline: 0; margin-inline: auto; width: 84px; height: 22px; background: #12060a; border-radius: 0 0 14px 14px; z-index: 3; }
.phone-screen { position: relative; height: 100%; border-radius: 28px; overflow: hidden; background: linear-gradient(180deg, #2a0e17, #1f0a10); }
.dscr { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 38px 18px 18px; opacity: 0; transform: translateY(10px) scale(.985); pointer-events: none; transition: opacity .6s ease, transform .6s ease; }
.dscr.on { opacity: 1; transform: none; }
.dscr small { font-size: .56rem; letter-spacing: .28em; color: var(--pink); text-transform: uppercase; }
[dir=rtl] .dscr small { letter-spacing: .04em; font-size: .72rem; }
.dscr h3 { font-style: italic; font-weight: 500; font-size: 2rem; margin: 6px 0 10px; }
.dscr h4 { font-style: italic; font-weight: 500; font-size: 1.28rem; margin: 4px 0 2px; font-family: var(--serif); }
[dir=rtl] .dscr h3, [dir=rtl] .dscr h4 { font-style: normal; }
.dscr p { font-family: var(--serif); font-style: italic; font-size: .92rem; line-height: 1.45; color: #ead6d3; margin: 0 0 18px; max-width: 18ch; }
[dir=rtl] .dscr p { font-style: normal; }
.dbtn { display: inline-block; font-size: .68rem; padding: 9px 20px; border-radius: 999px; background: var(--pink); color: #3a0f1c; font-weight: 500; box-shadow: 0 6px 18px rgba(232,160,176,.25); transition: transform .2s; }
.dbtn.press { transform: scale(.92); }
.d3 { justify-content: center; padding-top: 30px; }
.dcar { width: 100%; overflow: hidden; margin-top: 12px; padding: 10px 0; }
.dtrack { --cw: 132px; --gap: 12px; display: flex; gap: var(--gap); padding-inline: calc(50% - var(--cw) / 2); transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.dcard { flex: 0 0 var(--cw); height: 196px; perspective: 700px; transform: scale(.84); opacity: .55; transition: transform .6s, opacity .6s; }
.dcard.active { transform: scale(1); opacity: 1; }
.dinner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.dcard.flipped .dinner { transform: rotateY(180deg); }
.dface { position: absolute; inset: 0; border-radius: 12px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 10px 22px rgba(0,0,0,.45); }
.dfront img { width: 100%; height: 100%; object-fit: cover; }
.dfront::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(31,10,16,.7)); }
.dfront span { position: absolute; inset-inline: 0; bottom: 7px; z-index: 2; font-family: var(--serif); font-style: italic; font-size: .64rem; }
.dback { transform: rotateY(180deg); background: linear-gradient(160deg, #3a1521, #2a0e17); border: 1px solid var(--line); display: flex; }
.dback > div { margin: auto; padding: 10px 9px; text-align: center; }
.dback i { color: var(--pink); font-style: normal; font-size: .7rem; display: block; margin-bottom: 5px; }
.dback p { margin: 0; font-size: .62rem; line-height: 1.4; max-width: none; color: var(--cream); }
.ddots { display: flex; gap: 5px; margin: 8px 0 12px; } .ddots i { width: 5px; height: 5px; border-radius: 9px; background: #6b3a4a; transition: .4s; } .ddots i.on { width: 18px; background: var(--pink); }
.ddays { font-family: var(--serif); font-size: .78rem; padding: 5px 14px; border: 1px solid var(--pink); border-radius: 999px; } .ddays b { color: var(--pink); }
.dvoice { display: flex; align-items: center; gap: 9px; margin-top: 14px; width: 100%; padding: 7px 10px; border: 1px solid var(--line); border-radius: 14px; background: rgba(47,16,25,.7); text-align: start; font-size: .56rem; color: var(--muted); }
.dplay { width: 24px; height: 24px; border-radius: 50%; background: var(--pink); flex: none; position: relative; }
.dplay::after { content: ''; position: absolute; inset-inline-start: 9px; inset-block-start: 6.5px; border-style: solid; border-width: 5.5px 0 5.5px 8px; border-color: transparent transparent transparent #3a0f1c; }
[dir=rtl] .dplay::after { border-width: 5.5px 8px 5.5px 0; border-color: transparent #3a0f1c transparent transparent; }
.dvoice > div { flex: 1; } .dbar { height: 3px; background: #4a2230; border-radius: 3px; margin-top: 6px; overflow: hidden; } .dbar u { display: block; height: 100%; width: 0; background: var(--pink); text-decoration: none; }
.dvoice.go .dbar u { width: 100%; transition: width 3s linear; }
.finger { position: absolute; z-index: 5; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.55), rgba(255,255,255,.18) 60%, transparent 70%); border: 1px solid rgba(255,255,255,.5); left: 70%; top: 85%; opacity: 0; transform: scale(1); transition: left .8s cubic-bezier(.4,0,.2,1), top .8s cubic-bezier(.4,0,.2,1), opacity .35s, transform .2s; pointer-events: none; }
.finger.show { opacity: 1; } .finger.down { transform: scale(.7); background: radial-gradient(circle, rgba(232,160,176,.9), rgba(232,160,176,.3) 65%, transparent 72%); }
.demo-cap { position: absolute; inset-inline: 0; bottom: -4px; text-align: center; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0; }
[dir=rtl] .demo-cap { letter-spacing: .04em; font-size: .82rem; }
.petal { position: absolute; width: 9px; height: 15px; border-radius: 50%; background: var(--pink); opacity: .55; animation: fall 9s linear infinite; }
.petal.p1 { inset-inline-start: 8%; inset-block-start: -4%; } .petal.p2 { inset-inline-start: 82%; animation-delay: 2s; animation-duration: 11s; }
.petal.p3 { inset-inline-start: 22%; animation-delay: 4s; width: 7px; height: 12px; } .petal.p4 { inset-inline-start: 68%; animation-delay: 6s; animation-duration: 12s; }
@keyframes fall { from { transform: translateY(-20px) rotate(0); } to { transform: translateY(560px) translateX(40px) rotate(260deg); opacity: 0; } }

/* ---------- sections ---------- */
.section { padding-block: 64px; }
.tap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 760px; margin: 38px auto 10px; }
.tap-card { text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 26px 22px; }
.tap-card p { color: var(--muted); font-size: .94rem; margin: 0; }
.tap-svg { width: 150px; height: 225px; margin: 0 auto 14px; overflow: visible; }
.ph-body { fill: #170810; stroke: #6a4551; stroke-width: 2; } .ph-screen { fill: #2a0f18; } .ph-notch { fill: #0d0408; }
.ring { fill: none; stroke: var(--pink); stroke-width: 1.4; transform-origin: 100px 14px; animation: pulse 2.6s ease-out infinite; opacity: 0; }
.ring.r2 { animation-delay: 1.3s; }
.mid ~ .ring, .tap-card:nth-child(2) .ring { transform-origin: 100px 150px; }
@keyframes pulse { 0% { transform: scale(.35); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
.pendant { animation: nudge 2.6s ease-in-out infinite; } .chain { stroke: var(--silver); stroke-width: 1.3; fill: none; }
.heart { fill: var(--silver); stroke: #fff; stroke-width: .6; }
@keyframes nudge { 0%, 100% { transform: translateY(14px); } 50% { transform: translateY(0); } }
.steps { list-style: none; padding: 0; margin: 46px auto 0; max-width: 860px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: s; }
.steps li { display: flex; gap: 14px; }
.steps b { font-family: 'Cormorant Garamond', serif; font-style: italic; color: var(--pink); font-size: 1.6rem; min-width: 34px; font-weight: 500; }
.steps h4 { font-size: 1.2rem; margin-bottom: 4px; } .steps p { color: var(--muted); font-size: .92rem; margin: 0; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 340px)); justify-content: center; gap: 24px; margin-top: 38px; }
.product { background: var(--card); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, border-color .25s; }
.product:hover { transform: translateY(-4px); border-color: var(--line2); }
.product-img { aspect-ratio: 1 / 1; background: var(--bg2); overflow: hidden; } .product-img img { width: 100%; height: 100%; object-fit: cover; }
.ph-img { width: 100%; height: 100%; display: grid; place-items: center; background: radial-gradient(circle at 30% 25%, #4a1c2b, #1f0a10 70%); }
.ph-img span { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 4rem; color: var(--pink); opacity: .7; }
.product-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.product-body p { font-size: .92rem; flex: 1; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price { font-family: var(--display); font-size: 1.65rem; font-weight: 600; color: var(--gold); font-variant-numeric: lining-nums; }
.info-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 50px; padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: var(--bg2); }
.info-band div { display: flex; flex-direction: column; gap: 4px; } .info-band b { font-family: var(--serif); font-size: 1.2rem; font-weight: 500; } .info-band span { color: var(--muted); font-size: .9rem; }

/* ---------- auth ---------- */
.auth-wrap { display: flex; justify-content: center; padding-block: 54px; }
.auth-card { width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 34px 30px; align-self: flex-start; }
.auth-title { font-size: 2.2rem !important; margin-bottom: 20px; }

/* ---------- order / account ---------- */
.order-wrap { max-width: 760px; padding-block: 36px 20px; }
.order-head h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); }
.stepper { list-style: none; display: flex; gap: 10px; padding: 0; margin: 10px 0 24px; }
.stepper li { flex: 1; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; color: var(--muted); font-size: .9rem; }
.stepper i { font-style: normal; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line2); font-size: .8rem; flex: none; }
.stepper li.now { color: var(--cream); border-color: var(--pink); } .stepper li.now i { background: var(--pink); color: #3a0f1c; border-color: var(--pink); }
.stepper li.done i { background: rgba(143,211,168,.2); border-color: var(--ok); color: var(--ok); }
.summary { padding: 8px 24px; } .sum-row { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); } .sum-row:first-child { border-top: 0; }
.sum-row.total { font-family: var(--display); font-size: 1.5rem; font-weight: 600; color: var(--gold); font-variant-numeric: lining-nums; }
.pay-opts { display: grid; gap: 12px; }
.pay-opt { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .2s, background .2s; }
.pay-opt:has(input:checked) { border-color: var(--pink); background: rgba(232,160,176,.07); }
.pay-opt.off { opacity: .45; cursor: not-allowed; } .pay-opt b { display: block; font-weight: 500; } .pay-opt span { color: var(--muted); font-size: .86rem; }
.success { text-align: center; padding: 12px 0 26px; } .success h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
.check { width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: rgba(143,211,168,.14); border: 1px solid var(--ok); color: var(--ok); }
.ref { display: inline-block; margin-top: 4px; padding: 4px 14px; border: 1px dashed var(--line2); border-radius: 999px; font-size: .85rem; color: var(--pink); letter-spacing: .1em; }
.tracker { list-style: none; display: flex; padding: 0; margin: 14px 0 20px; }
.tracker li { flex: 1; text-align: center; position: relative; font-size: .78rem; color: var(--muted); }
.tracker li i { display: block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line2); background: var(--bg); margin: 0 auto 8px; position: relative; z-index: 1; }
.tracker li::before { content: ''; position: absolute; inset-block-start: 6px; inset-inline-start: -50%; width: 100%; height: 2px; background: var(--line2); }
.tracker li:first-child::before { display: none; }
.tracker li.done i, .tracker li.now i { background: var(--pink); border-color: var(--pink); } .tracker li.done::before, .tracker li.now::before { background: var(--pink); }
.tracker li.now { color: var(--cream); font-weight: 500; } .tracker li.now i { box-shadow: 0 0 0 5px rgba(232,160,176,.2); }
.cliq-steps { padding-inline-start: 20px; color: #e4cdd0; margin: 0 0 18px; } .cliq-steps li { margin-bottom: 4px; }
.copy-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line2); border-radius: 14px; margin-bottom: 12px; background: var(--bg2); }
.copy-row small { display: block; color: var(--muted); font-size: .75rem; } .copy-row b { font-size: 1.15rem; font-weight: 500; letter-spacing: .04em; } .copy-row em { display: block; font-style: normal; color: var(--muted); font-size: .82rem; }
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 26px 16px; border: 1.5px dashed var(--line2); border-radius: 16px; background: var(--bg2); color: var(--muted); cursor: pointer; transition: border-color .2s, background .2s; }
.dropzone b { color: var(--cream); font-weight: 500; } .dropzone svg { color: var(--pink); margin-bottom: 4px; }
.dropzone:hover, .dropzone.over, .dropzone:focus-visible { border-color: var(--pink); background: rgba(232,160,176,.07); outline: none; }
.dropzone.full { opacity: .5; } .dropzone.busy { opacity: .5; pointer-events: none; } .dropzone.proof { margin-top: 8px; }
.order-card .oc-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; } .order-card h3 { margin-bottom: 2px; }
.oc-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

/* ---------- memory editor ---------- */
.editor { margin-top: 18px; }
.ed-h { margin: 26px 0 4px; font-size: 1.3rem; } .ed-h small { font-family: var(--sans); font-size: .8rem; color: var(--muted); font-weight: 400; margin-inline-start: 6px; }
.photo-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 14px; }
.photo-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 14px; align-items: start; background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.thumb { position: relative; width: 96px; height: 120px; border-radius: 10px; overflow: hidden; background: var(--card); display: grid; place-items: center; } .thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .num { position: absolute; inset-block-start: 6px; inset-inline-start: 6px; width: 22px; height: 22px; border-radius: 50%; background: rgba(31,10,16,.75); display: grid; place-items: center; font-size: .75rem; }
.cap { position: relative; } .cap textarea { padding-bottom: 24px; } .cap .counter { bottom: 6px; }
.item-btns { display: flex; flex-direction: column; gap: 6px; }
.icon-btn { width: 34px; height: 34px; border-radius: 10px; background: transparent; border: 1px solid var(--line2); color: var(--cream); cursor: pointer; font-size: 1rem; line-height: 1; }
.icon-btn:hover:not(:disabled) { border-color: var(--pink); color: var(--pink); } .icon-btn:disabled { opacity: .3; cursor: default; } .icon-btn.danger:hover { border-color: var(--bad); color: var(--bad); }
.voice-box { margin-top: 10px; } .voice-box audio { width: 100%; height: 40px; }
.rec-live { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--line2); border-radius: 14px; background: var(--bg2); }
.rec-live .dot { width: 12px; height: 12px; border-radius: 50%; background: #ff5a6e; animation: blink 1s infinite; } .rec-live b { font-variant-numeric: tabular-nums; } .rec-live .btn { margin-inline-start: auto; }
@keyframes blink { 50% { opacity: .25; } }
.ed-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); }
.save-state { font-size: .85rem; color: var(--muted); } .save-state.ok { color: var(--ok); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-block: 34px 10px; text-align: center; } .hero .lead { margin-inline: auto; } .cta-row { justify-content: center; }
  .hero-visual { min-height: 480px; order: -1; } .nav { display: none; }
  .steps, .info-band { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .field-row, .tap-grid { grid-template-columns: 1fr; }
  .photo-item { grid-template-columns: 78px 1fr; } .thumb { width: 78px; height: 104px; }
  .item-btns { flex-direction: row; grid-column: 1 / -1; justify-content: flex-end; }
  .stepper li span { font-size: .8rem; } .card { padding: 20px 18px; }
  .tracker li { font-size: .68rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; } }

/* switch (used in admin + editor) */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; margin: 6px 0 14px; font-size: .94rem; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch i { width: 40px; height: 22px; border-radius: 999px; background: var(--bg2); border: 1px solid var(--line2); position: relative; transition: .2s; flex: none; }
.switch i::after { content: ''; position: absolute; inset-block-start: 2px; inset-inline-start: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: .2s; }
.switch input:checked + i { background: rgba(232,160,176,.25); border-color: var(--pink); } .switch input:checked + i::after { inset-inline-start: 20px; background: var(--pink); }

/* ---------- luxury refinements ---------- */
h2.center::after { content: ''; display: block; width: 90px; height: 1px; margin: 18px auto 0; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.card, .tap-card, .product, .auth-card, .info-band { background: linear-gradient(160deg, #331320 0%, #2a0f19 100%); box-shadow: inset 0 1px 0 rgba(220,191,148,.08), 0 18px 40px rgba(0,0,0,.18); }
.product:hover, .tap-card:hover { border-color: rgba(220,191,148,.42); }
.eyebrow { color: var(--gold); }
.steps b, .info-band b { color: var(--gold); }
.btn-primary { background: linear-gradient(135deg, #f0b3c1, #e8a0b0 55%, #d98ea0); box-shadow: 0 8px 22px rgba(232,160,176,.18); }
.foot { border-top-color: rgba(220,191,148,.2); } .foot .brand { font-size: 1.2rem; }
.stepper li.now { border-color: var(--gold); } .stepper li.now i { background: var(--gold); border-color: var(--gold); color: #2a1008; }
.kv, .sum-row { border-top-color: rgba(220,191,148,.14); }
.ref { color: var(--gold); border-color: rgba(220,191,148,.45); }
.hdr { height: 68px; } #site-header { border-bottom-color: rgba(220,191,148,.16); }
