:root {
  color-scheme: dark;
  --wine: #711f32;
  --wine-deep: #451221;
  --pine: #123e34;
  --pine-deep: #0d2e27;
  --night: #081f1b;
  --gold: #d7ae63;
  --gold-soft: #f1d69a;
  --gold-deep: #a77a32;
  --cream: #fff9ef;
  --muted: #d4cdbf;
  --card: rgba(13, 46, 39, 0.78);
  --border: rgba(215, 174, 99, 0.22);
  --danger: #ef6b6b;
  --success: #62c99a;
  --shadow: 0 28px 70px -36px rgba(0, 0, 0, 0.92);
  --glow: 0 20px 52px -20px rgba(215, 174, 99, 0.55);
  --display: "Cormorant Garamond", Georgia, serif;
  --sans: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--cream);
  background:
    radial-gradient(120% 65% at 50% -10%, rgba(113, 31, 50, 0.55), transparent 60%),
    radial-gradient(90% 55% at 100% 100%, rgba(18, 62, 52, 0.9), transparent 70%),
    linear-gradient(180deg, var(--pine-deep), var(--night));
  background-attachment: fixed;
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

body.dialog-open { overflow: hidden; }
body.loading-open { overflow: hidden; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
img, canvas { max-width: 100%; }
h1, h2, h3 { margin: 0; font-family: var(--display); letter-spacing: -0.02em; line-height: 1.04; }
p { margin: 0; }
[hidden] { display: none !important; }
::selection { background: rgba(215, 174, 99, 0.35); }

.shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.shell-narrow { width: min(780px, calc(100% - 40px)); margin-inline: auto; }
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.skip-link { position: fixed; z-index: 9999; left: 1rem; top: -5rem; padding: .8rem 1rem; border-radius: .8rem; color: var(--night); background: var(--gold-soft); font-weight: 800; }
.skip-link:focus { top: 1rem; }

.festive-backdrop { position: fixed; z-index: -1; inset: 0; overflow: hidden; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(85px); opacity: .24; }
.glow-one { width: 36rem; height: 36rem; left: -15rem; top: 22%; background: var(--wine); }
.glow-two { width: 32rem; height: 32rem; right: -15rem; bottom: -6rem; background: var(--gold-deep); opacity: .12; }
.snow-field { position: absolute; inset: 0; opacity: .35; background-image: radial-gradient(circle, rgba(255,255,255,.7) 1px, transparent 1.5px); background-size: 54px 54px; mask-image: linear-gradient(to bottom, black, transparent 75%); }

.site-header { position: relative; z-index: 20; }
.header-inner, .creator-header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; flex: none; }
.gift-mark { position: relative; display: inline-grid; width: 47px; height: 47px; place-items: center; border: 1px solid rgba(215,174,99,.35); border-radius: 16px; background: linear-gradient(145deg, rgba(215,174,99,.18), rgba(113,31,50,.55)); box-shadow: var(--glow); }
.gift-mark::before, .gift-mark::after { content: ""; position: absolute; background: var(--gold); border-radius: 4px; }
.gift-mark::before { width: 22px; height: 18px; bottom: 9px; }
.gift-mark::after { width: 4px; height: 24px; bottom: 9px; }
.gift-mark span::before, .gift-mark span::after { content: ""; position: absolute; top: 8px; width: 11px; height: 9px; border: 3px solid var(--gold); border-radius: 10px 10px 2px 10px; }
.gift-mark span::before { left: 11px; transform: rotate(20deg); }
.gift-mark span::after { right: 11px; transform: scaleX(-1) rotate(20deg); }
.brand-copy { display: grid; line-height: .95; }
.brand-copy strong { font: 700 1.38rem var(--display); }
.brand-copy small { margin-top: .2rem; color: var(--gold); font-size: .65rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
.brand-compact .gift-mark { width: 41px; height: 41px; border-radius: 14px; }
.brand-compact .brand-copy strong { font-size: 1.12rem; }

.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .7rem 1.25rem; border: 1px solid transparent; border-radius: 999px; cursor: pointer; text-decoration: none; font-weight: 800; line-height: 1.2; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, opacity .2s ease; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button:focus-visible, button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid rgba(215,174,99,.48); outline-offset: 3px; }
.button:disabled { opacity: .42; cursor: not-allowed; transform: none; }
.button-gold { color: #17251f; border-color: rgba(255,255,255,.2); background: linear-gradient(135deg, var(--gold-soft), var(--gold) 48%, var(--gold-deep)); box-shadow: var(--glow); }
.button-gold:hover { box-shadow: 0 24px 60px -16px rgba(215,174,99,.65); }
.button-soft { color: var(--cream); border-color: var(--border); background: rgba(255,249,239,.06); backdrop-filter: blur(12px); }
.button-soft:hover { background: rgba(255,249,239,.11); }
.button-xl { min-height: 58px; padding-inline: 1.65rem; font-size: 1rem; }
.button-small { min-height: 38px; padding: .45rem .9rem; font-size: .83rem; }
.full-width { width: 100%; }
.text-link { display: inline; padding: 0; border: 0; cursor: pointer; color: var(--muted); background: transparent; font-weight: 700; text-underline-offset: .25rem; }
.text-link:hover { color: var(--cream); text-decoration: underline; }
.glass-card { border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow); backdrop-filter: blur(16px); }

.hero { min-height: 690px; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 5rem; padding-block: 50px 90px; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow, .step-kicker { color: var(--gold); font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow { width: fit-content; display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1.4rem; padding: .45rem .85rem; border: 1px solid rgba(215,174,99,.3); border-radius: 999px; background: rgba(255,249,239,.035); }
.eyebrow.compact { padding: 0; border: 0; background: none; }
.hero h1 { max-width: 760px; font-size: clamp(3.25rem, 6vw, 5.4rem); }
.hero h1 em { color: var(--gold); font-weight: 600; background: linear-gradient(135deg, var(--gold-soft), var(--gold), var(--gold-deep)); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-lead { max-width: 640px; margin-top: 1.6rem; color: var(--muted); font-size: 1.08rem; line-height: 1.8; }
.hero-actions { display: flex; align-items: center; gap: 1.25rem; margin-top: 2.1rem; }
.hero-simple { min-height: 620px; gap: 4rem; }
.hero-simple h1 { max-width: 680px; font-size: clamp(3.2rem, 5.5vw, 5rem); line-height: .98; }
.hero-simple .hero-lead { max-width: 540px; font-size: 1.18rem; line-height: 1.65; }
.hero-simple .hero-actions { margin-top: 1.8rem; }
.hero-simple .button-xl { min-height: 64px; padding-inline: 2rem; font-size: 1.08rem; }
.button:not(:disabled), .button-pulse { animation: button-pulse 1.8s ease-in-out infinite; }

.hero-demo { position: relative; width: min(100%, 334px); margin-inline: auto; }
.phone-halo { position: absolute; inset: 4% -16%; border-radius: 50%; background: rgba(215,174,99,.16); filter: blur(52px); }
.phone-frame { position: relative; padding: 10px; border: 1px solid rgba(215,174,99,.45); border-radius: 42px; background: rgba(8,31,27,.9); box-shadow: var(--glow); }
.simple-preview { position: relative; overflow: hidden; aspect-ratio: 4/5; border-radius: 33px; background: #1b130b; }
.simple-preview img { width: 100%; height: 100%; object-fit: cover; }
.demo-video { position: relative; overflow: hidden; aspect-ratio: 9/16; border-radius: 33px; background: #1b130b; }
.demo-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity 1s ease, transform 7s ease; }
.demo-image.is-active { opacity: 1; transform: scale(1.13); }
.demo-shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10,10,6,.08), transparent 35%, rgba(14,8,4,.88)); }
.demo-sparkles { position: absolute; inset: 0; opacity: .7; background-image: radial-gradient(circle at 20% 18%, #ffe4a1 0 2px, transparent 3px), radial-gradient(circle at 73% 30%, #fff 0 1px, transparent 2px), radial-gradient(circle at 88% 63%, #f4c368 0 2px, transparent 3px), radial-gradient(circle at 28% 73%, #fff2c8 0 1px, transparent 2px); animation: twinkle 3s ease-in-out infinite; }
.demo-caption { position: absolute; inset-inline: 1.2rem; bottom: 2.8rem; display: grid; text-align: center; text-shadow: 0 3px 18px rgba(0,0,0,.8); }
.demo-caption::before { content: ""; width: 45%; height: 1px; margin: 0 auto 1rem; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.demo-caption span { color: var(--gold-soft); font-size: .68rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.demo-caption strong { font: italic 600 2.8rem/1 var(--display); }
.demo-caption small { margin-top: .5rem; color: var(--cream); }
.demo-control { position: absolute; right: 1rem; bottom: 1rem; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; cursor: pointer; color: white; background: rgba(0,0,0,.42); backdrop-filter: blur(8px); }
.demo-note { margin-top: .8rem; color: var(--muted); font-size: .75rem; text-align: center; }

.section { padding-block: 78px; }
.section-heading { max-width: 700px; margin: 0 auto 2.5rem; text-align: center; }
.section-heading h2 { font-size: clamp(2.5rem, 5vw, 4rem); }
.section-heading p { margin-top: .8rem; color: var(--muted); }
.ornament-line { width: 170px; height: 1px; margin: 0 auto 1.6rem; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 0; list-style: none; counter-reset: step; }
.step-card { position: relative; min-height: 245px; overflow: hidden; padding: 1.45rem; border-radius: 26px; counter-increment: step; }
.step-card::after { content: counter(step); position: absolute; right: 1rem; top: .3rem; color: rgba(215,174,99,.18); font: italic 600 4.5rem var(--display); }
.step-icon { display: grid; width: 52px; height: 52px; place-items: center; border: 1px solid rgba(215,174,99,.34); border-radius: 17px; color: var(--gold-soft); background: rgba(215,174,99,.09); box-shadow: 0 14px 30px -22px rgba(215,174,99,.9); }
.step-icon svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.step-card h3 { margin-top: 1.3rem; font-size: 1.65rem; }
.step-card p { margin-top: .7rem; color: var(--muted); font-size: .9rem; }
.theme-showcase { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.theme-card { overflow: hidden; border-radius: 28px; }
.theme-card > div:last-child { padding: 1.25rem; }
.theme-card h3 { font-size: 1.65rem; }
.theme-card p { margin-top: .35rem; color: var(--muted); font-size: .9rem; }
.theme-art { position: relative; display: grid; height: 150px; place-items: end center; overflow: hidden; padding-bottom: 1.1rem; font: italic 600 2rem var(--display); }
.theme-art::before, .theme-art::after { content: ""; position: absolute; width: 90px; height: 90px; border-radius: 50%; filter: blur(26px); opacity: .6; }
.theme-art::before { left: 12%; top: 16%; background: currentColor; }
.theme-art::after { right: 12%; top: 40%; background: var(--gold); }
.theme-art span, .theme-art em { position: relative; z-index: 1; font-style: italic; }
.theme-gold { color: #f3d79c; background: linear-gradient(160deg, #1b130b, #3a2812 60%, #120c07); }
.theme-traditional { color: #fff9ef; background: linear-gradient(160deg, #4a1220, #711f32 60%, #123e34); }
.theme-enchanted { color: #eaf3ff; background: linear-gradient(160deg, #0c1a36, #1b3560 60%, #0a1226); }
.proof-visual { display: grid; grid-template-columns: .85fr 1.15fr; overflow: hidden; border-radius: 34px; }
.proof-photo { min-height: 470px; }
.proof-photo img { width: 100%; height: 100%; object-fit: cover; }
.proof-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem, 6vw, 4.6rem); background: linear-gradient(135deg, rgba(113,31,50,.32), rgba(13,46,39,.15)); }
.proof-copy h2 { margin-top: 1rem; font-size: clamp(2.4rem, 4vw, 3.6rem); }
.proof-copy > p { margin-top: 1rem; color: var(--muted); }
.check-list { display: grid; gap: .65rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.check-list li::before { content: "✓"; display: inline-grid; width: 24px; height: 24px; margin-right: .6rem; place-items: center; border-radius: 50%; color: var(--night); background: var(--gold); font-size: .75rem; font-weight: 900; }
.cta-section { padding: 88px 20px 100px; }
.cta-card { position: relative; overflow: hidden; padding: clamp(2.5rem, 7vw, 5rem); border: 1px solid rgba(215,174,99,.3); border-radius: 38px; background: linear-gradient(135deg, #8b2940, var(--wine) 50%, var(--wine-deep)); box-shadow: 0 26px 60px -28px rgba(113,31,50,.9); text-align: center; }
.cta-card::before { content: ""; position: absolute; width: 320px; height: 320px; left: -120px; top: -180px; border-radius: 50%; background: rgba(215,174,99,.14); filter: blur(40px); }
.cta-star { position: relative; color: var(--gold-soft); font-size: 2rem; }
.cta-card h2 { position: relative; margin-top: .5rem; font-size: clamp(2.5rem, 5vw, 4rem); }
.cta-card p { position: relative; max-width: 600px; margin: 1rem auto 1.8rem; color: rgba(255,249,239,.8); }
.site-footer { border-top: 1px solid var(--border); background: rgba(5,20,17,.5); }
.footer-inner { min-height: 135px; display: flex; align-items: center; gap: 2rem; }
.footer-inner > p { color: var(--muted); font-size: .83rem; }
.footer-links a { color: var(--muted); text-underline-offset: .22rem; }
.footer-links a:hover { color: var(--cream); }
.footer-meta { margin-left: auto; }

/* Creator */
.create-page { padding-bottom: 104px; }
.creator-header { position: sticky; z-index: 40; top: 0; border-bottom: 1px solid rgba(215,174,99,.16); background: rgba(8,31,27,.84); backdrop-filter: blur(18px); }
.creator-header-inner { min-height: 78px; justify-content: flex-start; }
.stepper { flex: 1; display: flex; align-items: center; justify-content: center; }
.stepper button { display: flex; align-items: center; gap: .55rem; padding: .45rem; border: 0; cursor: pointer; color: rgba(255,249,239,.48); background: transparent; font-size: .78rem; font-weight: 800; }
.stepper button span { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid rgba(215,174,99,.3); border-radius: 50%; }
.stepper button.is-active, .stepper button.is-complete { color: var(--cream); }
.stepper button.is-active span { color: var(--night); border-color: var(--gold); background: var(--gold); box-shadow: 0 0 22px rgba(215,174,99,.35); }
.stepper button.is-complete span { color: var(--gold); border-color: var(--gold); }
.stepper i { width: min(9vw, 76px); height: 1px; margin-inline: .25rem; background: rgba(215,174,99,.18); }
.stepper i.is-complete { background: var(--gold); }
.creator-main { min-height: 670px; padding-block: 46px 70px; }
.creator-step { animation: fade-up .45s ease both; }
.creator-heading { max-width: 720px; margin: 0 auto 2rem; text-align: center; }
.creator-heading h1 { margin-top: .35rem; font-size: clamp(2.8rem, 6vw, 4.3rem); }
.creator-heading > p:last-child, .preview-copy header > p:last-child { margin-top: .65rem; color: var(--muted); }
.storage-notice { margin-bottom: 1rem; padding: .85rem 1rem; border: 1px solid rgba(215,174,99,.35); border-radius: 16px; background: rgba(215,174,99,.1); font-size: .88rem; }
.upload-zone { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 2.3rem 1.4rem; border: 2px dashed rgba(215,174,99,.35); border-radius: 30px; text-align: center; transition: border-color .2s, background .2s; }
.upload-zone.is-dragging { border-color: var(--gold); background: rgba(215,174,99,.08); }
.upload-zone.is-busy { opacity: .68; pointer-events: none; }
.upload-icon { display: grid; width: 68px; height: 68px; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--wine), var(--wine-deep)); box-shadow: 0 18px 34px -18px var(--wine); font-size: 1.7rem; }
.upload-zone h2 { font: 700 1.15rem var(--sans); }
.upload-zone p { color: var(--muted); font-size: .86rem; }
.alert { padding: .85rem 1rem; border-radius: 16px; font-size: .88rem; }
.alert-error { margin-top: 1rem; border: 1px solid rgba(239,107,107,.45); background: rgba(239,107,107,.09); }
.alert-info { border: 1px solid rgba(215,174,99,.32); background: rgba(215,174,99,.09); }
.alert-warning { border: 1px solid rgba(215,174,99,.38); background: rgba(215,174,99,.1); }
.photo-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .8rem; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.photo-card { overflow: hidden; border-radius: 20px; }
.photo-preview { position: relative; aspect-ratio: 9/16; overflow: hidden; background: var(--pine-deep); }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-order { position: absolute; left: .55rem; top: .55rem; display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; color: var(--night); background: linear-gradient(135deg, var(--gold-soft), var(--gold)); font-size: .75rem; font-weight: 900; }
.photo-adjust { position: absolute; inset-inline: .55rem; bottom: .55rem; min-height: 36px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; cursor: pointer; color: var(--cream); background: rgba(3,18,15,.72); font-size: .75rem; font-weight: 800; backdrop-filter: blur(10px); }
.photo-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; padding: 5px; }
.photo-actions button { min-height: 38px; border: 0; border-radius: 10px; cursor: pointer; color: var(--muted); background: transparent; font-weight: 900; }
.photo-actions button:hover { color: var(--cream); background: rgba(255,249,239,.08); }
.photo-actions button[data-action="delete"]:hover { color: var(--danger); }
.photo-actions button:disabled { opacity: .22; cursor: default; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 1.4rem; border-radius: 28px; }
.form-grid label, .range-field { display: grid; gap: .38rem; }
.form-grid label > span, .message-editor label { font-size: .87rem; font-weight: 800; }
.form-grid label small { color: var(--muted); font-size: .75rem; }
.form-full { grid-column: 1 / -1; }
input, textarea { width: 100%; border: 1px solid rgba(215,174,99,.25); border-radius: 14px; color: var(--cream); background: rgba(255,249,239,.055); }
input { min-height: 50px; padding: .65rem .85rem; }
textarea { padding: 1rem; resize: vertical; font: italic 500 1.3rem/1.55 var(--display); }
input::placeholder, textarea::placeholder { color: rgba(212,205,191,.52); }
.field-group { margin-top: 1.7rem; }
.field-group > h2 { margin-bottom: .8rem; font-size: 1.75rem; }
.pill-group { display: flex; flex-wrap: wrap; gap: .55rem; }
.pill-group button { min-height: 44px; padding: .55rem 1rem; border: 1px solid var(--border); border-radius: 999px; cursor: pointer; color: var(--muted); background: transparent; font-size: .85rem; font-weight: 800; }
.pill-group button[aria-checked="true"] { color: var(--cream); border-color: var(--gold); background: rgba(215,174,99,.12); box-shadow: var(--glow); }
.message-editor { margin-top: 1.2rem; padding: 1.4rem; border-radius: 28px; }
.message-editor-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.character-count { margin-top: .35rem; color: var(--muted); font-size: .75rem; text-align: right; }
.scene-plan { margin-top: 1.5rem; }
.scene-plan h3 { color: var(--gold); font: 800 .78rem var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.scene-plan ol { display: grid; gap: .55rem; margin: .7rem 0 0; padding: 0; list-style: none; }
.scene-plan li { display: flex; gap: .8rem; padding: .75rem; border: 1px solid rgba(215,174,99,.14); border-radius: 14px; background: rgba(255,249,239,.04); font-size: .86rem; }
.scene-plan li strong { flex: none; color: var(--gold); }
.scene-plan li span { color: var(--muted); }

.theme-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.theme-choice { position: relative; overflow: hidden; padding: 0; border-radius: 25px; cursor: pointer; color: inherit; text-align: left; transition: transform .2s, border-color .2s, box-shadow .2s; }
.theme-choice:hover { transform: translateY(-2px); }
.theme-choice[aria-checked="true"] { border-color: var(--gold); box-shadow: var(--glow); }
.theme-choice .theme-art { width: 100%; height: 120px; border-radius: 0; }
.theme-choice-copy { display: grid; gap: .2rem; padding: 1rem; }
.theme-choice-copy strong { font: 700 1.22rem var(--display); }
.theme-choice-copy small { color: var(--muted); font-size: .75rem; }
.choice-check { position: absolute; right: .75rem; top: .75rem; display: none; width: 29px; height: 29px; place-items: center; border-radius: 50%; color: var(--night); background: var(--gold); font-style: normal; font-weight: 900; }
.theme-choice[aria-checked="true"] .choice-check { display: grid; }
.music-list { display: grid; gap: .55rem; }
.music-row { display: flex; align-items: center; gap: .75rem; padding: .7rem; border-radius: 18px; }
.music-row[aria-checked="true"] { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.music-select { flex: 1; min-width: 0; display: flex; align-items: center; gap: .75rem; padding: 0; border: 0; cursor: pointer; color: inherit; background: transparent; text-align: left; }
.music-icon { display: grid; flex: none; width: 46px; height: 46px; place-items: center; border-radius: 50%; color: var(--gold); background: rgba(255,249,239,.07); }
.music-row[aria-checked="true"] .music-icon { color: var(--night); background: var(--gold); }
.music-copy { min-width: 0; display: grid; }
.music-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.music-copy small { color: var(--muted); }
.music-preview { width: 42px; height: 42px; flex: none; border: 1px solid var(--border); border-radius: 50%; cursor: pointer; color: var(--cream); background: transparent; }
.music-preview:disabled { opacity: .35; cursor: not-allowed; }

.preview-layout { display: grid; grid-template-columns: minmax(280px, 370px) 1fr; align-items: start; gap: clamp(2rem, 6vw, 5rem); }
.video-shell { overflow: hidden; width: 100%; border: 1px solid rgba(215,174,99,.4); border-radius: 34px; background: #071a17; box-shadow: var(--glow); }
.video-stage { position: relative; }
.video-shell canvas { display: block; width: 100%; aspect-ratio: 9/16; background: #1b130b; }
.video-play-overlay { position: absolute; z-index: 4; top: 50%; left: 50%; display: grid; width: 96px; height: 96px; padding: 0; place-items: center; border: 4px solid #fff; border-radius: 50%; color: #fff; background: rgba(3, 16, 14, .78); box-shadow: 0 12px 34px rgba(0, 0, 0, .45), 0 0 0 0 rgba(255, 255, 255, .6); cursor: pointer; transform: translate(-50%, -50%); animation: preview-play-pulse 1.8s ease-out infinite; transition: opacity .2s ease, transform .2s ease; }
.video-play-overlay span { margin-left: 7px; font-size: 2.6rem; line-height: 1; }
.video-play-overlay:hover { background: rgba(133, 25, 50, .92); transform: translate(-50%, -50%) scale(1.06); }
.video-play-overlay:focus-visible { outline: 4px solid var(--gold-light); outline-offset: 5px; }
.video-play-overlay.is-hidden { opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(.82); animation: none; }
@keyframes preview-play-pulse { 0% { box-shadow: 0 12px 34px rgba(0, 0, 0, .45), 0 0 0 0 rgba(255, 255, 255, .55); } 65%, 100% { box-shadow: 0 12px 34px rgba(0, 0, 0, .45), 0 0 0 22px rgba(255, 255, 255, 0); } }
.video-controls { display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; gap: .65rem; padding: .65rem; background: rgba(5,20,17,.94); }
.video-controls button { width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 50%; cursor: pointer; color: var(--cream); background: rgba(255,249,239,.06); }
.video-controls input { min-height: auto; padding: 0; accent-color: var(--gold); }
.video-controls span { color: var(--muted); font-size: .7rem; font-variant-numeric: tabular-nums; text-align: right; }
.preview-copy { padding-top: 1rem; }
.preview-copy h1 { margin-top: .35rem; font-size: clamp(2.8rem, 6vw, 4.3rem); }
.summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; padding: 1.2rem; border-radius: 24px; }
.summary-grid div { min-width: 0; }
.summary-grid dt { color: var(--gold); font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.summary-grid dd { overflow: hidden; margin: .2rem 0 0; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.preview-copy .alert { margin-top: 1rem; }
.preview-copy > .button { margin-top: 1.2rem; }
.fine-print { margin-top: .7rem; color: var(--muted); font-size: .75rem; text-align: center; }
.creator-nav { position: fixed; z-index: 35; inset-inline: 0; bottom: 0; border-top: 1px solid rgba(215,174,99,.18); background: rgba(8,31,27,.92); backdrop-filter: blur(18px); }
.creator-nav-inner { min-height: 80px; display: flex; align-items: center; gap: 1rem; padding-bottom: env(safe-area-inset-bottom); }
.creator-nav-inner > p { flex: 1; color: var(--muted); font-size: .76rem; text-align: center; }

/* Dialogs */
.app-dialog { width: min(94vw, 470px); max-height: 95vh; margin: auto; padding: 0; border: 1px solid rgba(215,174,99,.38); border-radius: 28px; color: var(--cream); background: #0b2923; box-shadow: 0 30px 90px rgba(0,0,0,.75); }
.app-dialog::backdrop { background: rgba(1,10,8,.78); backdrop-filter: blur(8px); }
.dialog-card { position: relative; margin: 0; padding: 1.4rem; border: 0; }
.dialog-card header h2 { font-size: 2rem; }
.dialog-card header p { margin-top: .3rem; color: var(--muted); }
.dialog-close { position: absolute; z-index: 4; right: .8rem; top: .8rem; display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--border); border-radius: 50%; cursor: pointer; color: var(--cream); background: rgba(0,0,0,.28); font-size: 1.5rem; }
.framing-stage { position: relative; overflow: hidden; width: min(100%, 245px); aspect-ratio: 9/16; margin: 1rem auto; border: 1px solid rgba(215,174,99,.38); border-radius: 20px; background: var(--pine-deep); touch-action: none; cursor: grab; }
.framing-stage:active { cursor: grabbing; }
.framing-stage canvas { display: block; width: 100%; height: 100%; }
.framing-stage span { position: absolute; inset-inline: 0; bottom: .45rem; color: rgba(255,249,239,.72); font-size: .67rem; font-weight: 800; text-align: center; pointer-events: none; }
.range-field > span { display: flex; justify-content: space-between; font-size: .86rem; font-weight: 800; }
.range-field input { min-height: auto; padding: 0; accent-color: var(--gold); }
.range-field output { color: var(--muted); }
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; margin-top: 1.2rem; }
.payment-dialog { width: min(94vw, 440px); }
.payment-card { padding: 0; overflow: hidden; }
.payment-hero { padding: 2.3rem 1.6rem 1.8rem; background: linear-gradient(135deg, #8b2940, var(--wine) 55%, var(--wine-deep)); text-align: center; }
.payment-gift { display: block; font-size: 3.2rem; animation: float 5s ease-in-out infinite; }
.payment-hero h2 { margin-top: .4rem; font-size: 2rem; }
.payment-hero p { margin-top: .6rem; color: rgba(255,249,239,.82); }
.payment-body { display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: 1.4rem; text-align: center; }
.payment-price { font: 700 3.6rem/1 var(--display); color: var(--gold); }
.payment-body > span { color: var(--muted); font-size: .78rem; }
.payment-body .button { margin-top: 1rem; }
.payment-body .alert { width: 100%; margin-top: .8rem; text-align: left; }
.payment-body .text-link { margin-top: .8rem; }
.payment-consent { margin-top: .8rem; color: var(--muted); font-size: .7rem; line-height: 1.55; }
.payment-consent a { color: var(--gold-soft); text-underline-offset: .2rem; }
.secure-note { width: 100%; margin-top: .8rem; padding-top: .9rem; border-top: 1px solid var(--border); color: var(--muted); font-size: .72rem; }

.checkout-loading { position: fixed; z-index: 120; inset: 0; display: grid; place-items: center; overflow-y: auto; padding: 24px; background: radial-gradient(circle at 50% 30%, rgba(113,31,50,.5), transparent 42%), rgba(3,18,15,.96); backdrop-filter: blur(18px); }
.checkout-loading-card { width: min(100%, 540px); padding: clamp(2rem, 8vw, 3.5rem); border: 1px solid rgba(215,174,99,.38); border-radius: 34px; background: linear-gradient(150deg, rgba(18,62,52,.96), rgba(8,31,27,.98)); box-shadow: 0 34px 100px rgba(0,0,0,.65), var(--glow); text-align: center; }
.checkout-loading-card h2 { margin-top: .55rem; font-size: clamp(2.15rem, 7vw, 3.35rem); }
.checkout-loading-card > p:not(.step-kicker) { min-height: 1.6em; margin-top: 1rem; color: var(--muted); font-size: 1rem; }
.checkout-loading-card > small { display: block; margin-top: 1rem; color: rgba(212,205,191,.72); font-size: .82rem; }
.loading-visual { position: relative; display: grid; width: 150px; height: 150px; margin: 0 auto 1.4rem; place-items: center; }
.loading-gift { position: relative; z-index: 2; display: grid; width: 82px; height: 82px; place-items: center; border: 1px solid rgba(215,174,99,.38); border-radius: 26px; background: linear-gradient(145deg, rgba(215,174,99,.2), rgba(113,31,50,.72)); box-shadow: 0 0 40px rgba(215,174,99,.22); font-size: 2.7rem; animation: loading-gift-pulse 1.8s ease-in-out infinite; }
.loading-ring { position: absolute; border: 2px solid transparent; border-radius: 50%; }
.loading-ring-one { inset: 5px; border-top-color: var(--gold-soft); border-right-color: rgba(215,174,99,.2); animation: loading-spin 2.2s linear infinite; }
.loading-ring-two { inset: 19px; border-bottom-color: var(--wine); border-left-color: rgba(255,249,239,.24); animation: loading-spin 1.6s linear infinite reverse; }
.loading-star { position: absolute; color: var(--gold-soft); font-style: normal; animation: loading-twinkle 1.4s ease-in-out infinite; }
.loading-star-one { left: 2px; top: 34px; }
.loading-star-two { right: 5px; top: 22px; animation-delay: .4s; }
.loading-star-three { right: 14px; bottom: 14px; animation-delay: .8s; }
.loading-progress { height: 8px; margin-top: 1.4rem; overflow: hidden; border-radius: 999px; background: rgba(255,249,239,.08); }
.loading-progress span { display: block; width: 42%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold-deep), var(--gold-soft), var(--gold)); box-shadow: 0 0 18px rgba(215,174,99,.6); animation: loading-progress 1.7s ease-in-out infinite; }
.checkout-loading.is-preview-loading .loading-progress span { width: 100%; transform: scaleX(0); transform-origin: left; animation: preview-loading-progress 5s linear forwards; }
.loading-dots { display: flex; justify-content: center; gap: .38rem; margin-top: 1rem; }
.loading-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: loading-dot 1.2s ease-in-out infinite; }
.loading-dots span:nth-child(2) { animation-delay: .16s; }
.loading-dots span:nth-child(3) { animation-delay: .32s; }
@keyframes loading-spin { to { transform: rotate(360deg); } }
@keyframes loading-gift-pulse { 0%, 100% { transform: scale(.96); } 50% { transform: scale(1.06); } }
@keyframes loading-twinkle { 0%, 100% { opacity: .25; transform: scale(.75); } 50% { opacity: 1; transform: scale(1.2); } }
@keyframes loading-progress { 0% { transform: translateX(-110%); } 100% { transform: translateX(345%); } }
@keyframes preview-loading-progress { to { transform: scaleX(1); } }
@keyframes loading-dot { 0%, 100% { opacity: .28; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-5px); } }

.privacy-main { padding-block: 3rem 5rem; }
.privacy-card { max-width: 820px; margin-inline: auto; padding: clamp(1.5rem, 5vw, 3.5rem); border-radius: 30px; }
.privacy-card h1 { margin: .4rem 0 1rem; font-size: clamp(2.7rem, 7vw, 4.6rem); }
.privacy-card h2 { margin-top: 2rem; font-family: var(--sans); font-size: 1.15rem; }
.privacy-card p, .privacy-card li { color: var(--muted); line-height: 1.75; }
.privacy-card ul { display: grid; gap: .45rem; padding-left: 1.2rem; }

.order-main { min-height: calc(100vh - 88px); display: grid; place-items: center; padding-block: 3rem; }
.order-card { max-width: 700px; padding: clamp(2rem, 7vw, 4.5rem); border-radius: 34px; text-align: center; }
.order-icon { font-size: 3rem; }
.order-card h1 { margin-top: .75rem; font-size: clamp(2.6rem, 6vw, 4.2rem); }
.order-card > p:not(.step-kicker) { margin: 1rem auto 1.5rem; color: var(--muted); }
.lookup-card { width: min(100%, 620px); }
.lookup-card h1 { font-size: clamp(2.6rem, 7vw, 4.2rem); }
.order-lookup-form { display: grid; gap: 1rem; margin-top: 1.3rem; text-align: left; }
.order-lookup-form label { display: grid; gap: .4rem; }
.order-lookup-form label > span { font-size: 1rem; font-weight: 800; }
.order-lookup-form label small { color: var(--muted); font-size: .82rem; }
.order-lookup-form input { font-size: 1rem; }
.order-lookup-form .button { margin-top: .35rem; }
.lookup-error { margin: 1rem 0 0; text-align: left; }
.order-card .lookup-privacy { margin: 1rem auto 0; font-size: .78rem; }
.lookup-privacy a { color: var(--gold-soft); text-underline-offset: .2rem; }
.delivery-card { width: min(100%, 650px); }
.delivery-card h1 { font-size: clamp(2.4rem, 7vw, 4.5rem); }
.delivery-person { margin-bottom: 1rem !important; }
.delivery-person strong { color: var(--cream); }
.delivery-video-shell { width: min(100%, 330px); margin: 1.35rem auto 1.1rem; padding: 7px; border: 1px solid rgba(215,174,99,.48); border-radius: 28px; background: rgba(5,17,14,.88); box-shadow: var(--glow); }
.delivery-video { display: block; width: 100%; aspect-ratio: 9/16; border-radius: 21px; background: #050b09; object-fit: contain; }
.delivery-download { margin-bottom: 1.1rem; }
.delivery-status { display: flex; align-items: center; gap: 1rem; margin: 1.4rem 0; padding: 1rem; border: 1px solid var(--border); border-radius: 20px; background: rgba(255,249,239,.045); text-align: left; }
.delivery-status-icon { flex: none; width: 18px; height: 18px; border: 3px solid rgba(215,174,99,.28); border-top-color: var(--gold); border-radius: 50%; animation: delivery-spin .9s linear infinite; }
.delivery-status[data-status="ready"] .delivery-status-icon { border: 0; background: var(--gold); animation: none; box-shadow: 0 0 0 6px rgba(215,174,99,.13); }
.delivery-status[data-status="refunded"] .delivery-status-icon, .delivery-status[data-status="disputed"] .delivery-status-icon { border: 0; background: var(--danger); animation: none; }
.delivery-status strong, .delivery-status small { display: block; }
.delivery-status small { margin-top: .2rem; color: var(--muted); }
.delivery-reference { margin: 1rem 0 0 !important; font-size: .78rem; }
.delivery-switch { display: inline-block; margin-top: .8rem; color: var(--muted); font-size: .78rem; text-underline-offset: .2rem; }
.delivery-switch:hover { color: var(--cream); }
@keyframes delivery-spin { to { transform: rotate(360deg); } }
.admin-private { color: var(--muted); font-size: .82rem; font-weight: 800; }
.admin-main { padding-block: 3rem 5rem; }
.admin-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.admin-heading h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); }
.admin-heading > div > p:last-child { color: var(--muted); }
.admin-search { width: min(100%, 390px); }
.admin-search label { display: block; margin-bottom: .4rem; color: var(--muted); font-size: .8rem; font-weight: 800; }
.admin-search > div { display: flex; gap: .5rem; }
.admin-search input { min-height: 43px; padding: .65rem .8rem; }
.admin-order-list { display: grid; gap: 1rem; }
.admin-order { padding: 1.25rem; border-radius: 24px; }
.admin-order-head { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.admin-order-head h2 { font-family: var(--sans); font-size: 1.15rem; }
.admin-order-head p { color: var(--muted); font-size: .82rem; }
.admin-status { display: inline-flex; padding: .35rem .65rem; border-radius: 999px; color: var(--cream); background: rgba(215,174,99,.13); font-size: .72rem; font-weight: 800; }
.admin-status[data-status="ready"] { color: #d8ffed; background: rgba(60,179,113,.18); }
.admin-status[data-status="refunded"], .admin-status[data-status="disputed"] { color: #ffd9d9; background: rgba(239,107,107,.16); }
.admin-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; margin: 1rem 0; }
.admin-facts div { padding: .75rem; border-radius: 14px; background: rgba(255,249,239,.04); }
.admin-facts dt { color: var(--muted); font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.admin-facts dd { margin: .25rem 0 0; font-size: .8rem; overflow-wrap: anywhere; }
.admin-actions { display: flex; align-items: end; gap: .75rem; flex-wrap: wrap; }
.admin-upload { display: flex; align-items: end; gap: .55rem; flex-wrap: wrap; }
.admin-upload label { color: var(--muted); font-size: .72rem; font-weight: 800; }
.admin-upload input { display: block; max-width: 260px; margin-top: .25rem; padding: .4rem; font-size: .75rem; }
.admin-filename { margin-top: .8rem; color: var(--muted); font-size: .72rem; overflow-wrap: anywhere; }
.admin-empty { padding: 2rem; border-radius: 24px; text-align: center; }

@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes twinkle { 0%, 100% { opacity: .3; } 50% { opacity: .85; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes button-pulse {
  0%, 100% { transform: scale(1); box-shadow: var(--glow); }
  50% { transform: scale(1.025); box-shadow: 0 0 0 8px rgba(215,174,99,.08), 0 24px 62px -16px rgba(215,174,99,.72); }
}
.reveal { animation: fade-up .7s cubic-bezier(.22,1,.36,1) both; }
.reveal-delay { animation-delay: .15s; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 3.5rem; padding-top: 34px; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-lead { margin-inline: auto; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .proof-visual { grid-template-columns: 1fr; }
  .proof-photo { min-height: 330px; max-height: 440px; }
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
  .preview-layout { grid-template-columns: minmax(260px, 340px) 1fr; gap: 2rem; }
  .stepper button b { display: none; }
}

@media (max-width: 700px) {
  .shell, .shell-narrow { width: min(100% - 28px, 1160px); }
  .order-main { grid-template-columns: minmax(0, 1fr); }
  .order-card, .lookup-card, .delivery-card { width: 100%; max-width: 100%; min-width: 0; padding: 2rem 1.25rem; }
  .delivery-video-shell { width: min(100%, 330px); }
  .desktop-only { display: none; }
  .header-inner { min-height: 74px; }
  .hero { min-height: auto; padding-block: 30px 68px; }
  .hero h1 { font-size: clamp(3rem, 14vw, 4.3rem); }
  .hero-simple { gap: 2.7rem; padding-top: 24px; }
  .hero-simple h1 { font-size: clamp(2.75rem, 12vw, 3.7rem); line-height: 1.02; }
  .hero-simple .hero-lead { margin-top: 1.25rem; font-size: 1.08rem; line-height: 1.6; }
  .hero-simple .hero-actions { margin-top: 1.5rem; }
  .hero-actions { width: 100%; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .section { padding-block: 58px; }
  .steps-grid, .theme-showcase, .theme-picker { grid-template-columns: 1fr; }
  .step-card { min-height: 210px; }
  .proof-copy { padding: 2rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: .7rem; padding-block: 1.5rem; }
  .footer-meta { margin-left: 0; }
  .creator-header-inner { min-height: 108px; flex-direction: column; align-items: stretch; justify-content: center; gap: .55rem; padding-block: .55rem; }
  .creator-header-inner .brand { align-self: center; }
  .stepper { justify-content: space-between; }
  .stepper i { flex: 1; width: auto; }
  .stepper button { padding: .15rem; }
  .stepper button span { width: 28px; height: 28px; }
  .creator-main { padding-top: 32px; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-full { grid-column: auto; }
  .preview-layout { grid-template-columns: 1fr; }
  .video-shell { max-width: 340px; margin-inline: auto; }
  .video-play-overlay { width: 84px; height: 84px; }
  .video-play-overlay span { font-size: 2.25rem; }
  .preview-copy { padding-top: 0; }
  .creator-nav-inner > p { display: none; }
  .creator-nav-inner .button:last-child { flex: 1; }
  .admin-heading { align-items: stretch; flex-direction: column; }
  .admin-facts { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 390px) {
  .brand-copy { display: none; }
  .hero h1 { font-size: 2.85rem; }
  .photo-grid { gap: .55rem; }
  .summary-grid { grid-template-columns: 1fr; }
  .dialog-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
