:root {
    --ink: #292722;
    --muted: #7c746b;
    --paper: #fffdf9;
    --cream: #f6f1e8;
    --gold: #a7834b;
    --gold-deep: #72552d;
    --line: rgba(71, 57, 39, .15);
    --green: #5e7a63;
    --red: #955d53;
    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Baskerville, Georgia, serif;
    --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { width: 100%; min-width: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); }
body.app-page { width: 100%; min-width: 100%; min-height: 100vh; overflow: hidden; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
img { max-width: 100%; }
::selection { background: #dfc9a4; color: #30271b; }

.brand { display: inline-flex; align-items: center; gap: 12px; width: fit-content; color: var(--ink); text-decoration: none; }
.brand-mark {
    width: 42px; height: 42px; border: 1px solid var(--gold); border-radius: 50%;
    display: grid; place-items: center; position: relative; color: var(--gold-deep);
    font: 13px var(--serif); letter-spacing: 1px;
}
.brand-mark::after { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(167,131,75,.32); border-radius: 50%; }
.brand strong { display: block; font: 18px/1 var(--serif); }
.brand small { display: block; color: var(--muted); margin-top: 6px; font-size: 7px; letter-spacing: 1.6px; text-transform: uppercase; }
.brand-light { color: white; }
.brand-light small { color: #aaa39a; }
.brand-light .brand-mark { color: #d2b57f; }
.brand-logo { overflow: hidden; background: #fffdf9; }
.brand-logo::after { display: none; }
.brand-logo img { width: 38px; height: 38px; object-fit: contain; transform: scale(1.08); }

.eyebrow { color: var(--gold-deep); font-size: 8px; font-weight: 700; letter-spacing: 2.1px; text-transform: uppercase; }
.button {
    min-height: 42px; padding: 0 17px; border: 1px solid transparent; display: inline-flex;
    align-items: center; justify-content: center; gap: 15px; text-decoration: none; font-size: 9px;
    letter-spacing: .2px; cursor: pointer; transition: transform .2s, background .2s;
}
.button:hover { transform: translateY(-1px); }
.button-dark { background: var(--ink); color: white; }
.button-dark span { color: #d7b878; }
.button-ghost { border-color: #cec4b6; background: transparent; color: #534a41; }
.form-help { color: #918980; font: 10px/1.6 var(--serif); margin: 0; }

.flash {
    border: 1px solid; padding: 12px 15px; font-size: 9px; line-height: 1.5;
    position: relative; z-index: 30;
}
.flash-success { background: #e9f1e9; border-color: #cbdccf; color: #506b55; }
.flash-error { background: #f4e8e5; border-color: #e5cbc5; color: #8e544a; }
.public-flash { position: fixed; top: 88px; left: 50%; transform: translateX(-50%); min-width: min(430px, calc(100% - 30px)); box-shadow: 0 15px 35px rgba(0,0,0,.12); }

/* Public marketing */
.public-header {
    height: 86px; width: min(1240px, calc(100% - 40px)); margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 20;
}
.public-header nav { display: flex; align-items: center; gap: 28px; }
.public-header nav a { color: #625b53; text-decoration: none; font-size: 10px; }
.public-header .nav-cta { border: 1px solid var(--ink); padding: 11px 15px; border-radius: 100px; }
.marketing-page { overflow: hidden; }
.marketing-hero {
    min-height: 720px; padding: 65px max(22px, calc((100vw - 1240px)/2)) 80px;
    display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: 45px;
    background: radial-gradient(circle at 76% 36%, rgba(213,187,145,.24), transparent 29%), linear-gradient(115deg,#fffdf9,#f6efe4);
}
.marketing-copy h1 { max-width: 650px; margin: 19px 0 25px; font: 400 clamp(62px,7vw,95px)/.92 var(--serif); letter-spacing: -3px; }
.marketing-copy h1 em, .section-copy h2 em { color: var(--gold); font-weight: 400; }
.marketing-copy > p:not(.eyebrow) { max-width: 550px; color: #70685f; font: 17px/1.75 var(--serif); }
.hero-buttons { display: flex; gap: 12px; margin-top: 35px; }
.micro-proof { margin-top: 42px; color: #817970; font-size: 8px; letter-spacing: .8px; }
.micro-proof span { color: var(--gold); margin-right: 8px; }
.marketing-visual { height: 570px; position: relative; display: grid; place-items: center; }
.visual-ring { position: absolute; width: 500px; height: 500px; border: 1px solid rgba(167,131,75,.22); border-radius: 50%; animation: breathe 7s ease-in-out infinite; }
.phone-mockup {
    width: 272px; height: 550px; padding: 8px; border-radius: 37px; background: #171513;
    box-shadow: 0 35px 75px rgba(59,43,25,.26); position: relative; z-index: 2; transform: rotate(1.5deg);
}
.phone-notch { position: absolute; z-index: 5; width: 62px; height: 16px; border-radius: 50px; top: 14px; left: 50%; transform: translateX(-50%); background: #171513; }
.phone-invite {
    height: 100%; border-radius: 30px; padding: 80px 22px 28px; overflow: hidden;
    display: flex; flex-direction: column; align-items: center; text-align: center; color: #503b20;
    background: linear-gradient(rgba(255,252,247,.13),rgba(255,250,241,.24)),url("../images/modern-luxury-hero.png") center/cover;
}
.phone-invite > small { font-size: 6px; letter-spacing: 2.3px; }
.phone-monogram { width: 67px; height: 67px; border: 1px solid rgba(112,79,35,.6); border-radius: 50%; display: grid; place-items: center; margin: 47px 0 23px; font: 16px var(--serif); }
.phone-monogram i, .phone-invite h2 i { color: var(--gold); font-style: normal; }
.phone-invite h2 { margin: 0; display: flex; flex-direction: column; font: 400 30px/.8 var(--serif); }
.phone-invite h2 i { font-size: 14px; padding: 10px 0; }
.phone-invite time { margin-top: 12px; font-size: 7px; letter-spacing: 2px; }
.phone-invite a { margin-top: auto; width: 155px; border: 1px solid currentColor; border-radius: 100px; padding: 11px; background: rgba(255,255,255,.38); text-decoration: none; font: 10px var(--serif); }
.float-note {
    position: absolute; z-index: 4; display: flex; align-items: center; gap: 9px; padding: 11px 14px 11px 10px;
    border: 1px solid rgba(141,108,61,.2); border-radius: 8px; background: rgba(255,253,249,.9);
    backdrop-filter: blur(10px); box-shadow: 0 18px 40px rgba(60,43,24,.14); animation: float 5s ease-in-out infinite;
}
.float-note > span { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; background: #e4eee5; color: #5b765f; }
.float-note p { margin: 0; }
.float-note small, .float-note strong { display: block; }
.float-note small { color: #90877e; font-size: 7px; }
.float-note strong { margin-top: 3px; font: 10px var(--serif); }
.float-rsvp { top: 110px; right: 5px; }
.float-wish { left: 5px; bottom: 80px; animation-delay: -2.4s; }
.float-wish > span { background: #f1e7d8; color: var(--gold); }
.feature-strip {
    min-height: 88px; border-block: 1px solid var(--line); display: flex; align-items: center;
    justify-content: center; gap: clamp(25px,5vw,70px); padding: 22px; overflow-x: auto;
}
.feature-strip span { white-space: nowrap; color: #70675e; font-size: 8px; letter-spacing: 1px; text-transform: uppercase; }
.marketing-section { width: min(1240px, calc(100% - 40px)); margin: 0 auto; padding: 120px 0; }
.section-copy { display: grid; grid-template-columns: 1.15fr .7fr; gap: 75px; align-items: end; margin-bottom: 50px; }
.section-copy h2 { margin: 15px 0 0; font: 400 clamp(45px,5vw,68px)/.98 var(--serif); letter-spacing: -2px; }
.section-copy > p { color: var(--muted); font: 14px/1.75 var(--serif); }
.template-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.template-card { display: grid; grid-template-columns: 27px 1fr; gap: 12px; }
.template-modern-luxury, .invitation-modern-luxury { --theme-image: url("../images/theme-atlas-contemporary.png"); --theme-pos: 0% 0%; --theme-ink: #58452c; --theme-screen: rgba(255,251,244,.84); }
.template-garden-romance, .invitation-garden-romance { --theme-image: url("../images/theme-atlas-contemporary.png"); --theme-pos: 100% 0%; --theme-ink: #4d654e; --theme-screen: rgba(252,249,243,.84); }
.template-islamic-nur, .invitation-islamic-nur { --theme-image: url("../images/theme-atlas-contemporary.png"); --theme-pos: 0% 100%; --theme-ink: #f2dba8; --theme-screen: rgba(18,65,51,.82); }
.template-modern-islamic, .invitation-modern-islamic { --theme-image: url("../images/theme-atlas-contemporary.png"); --theme-pos: 100% 100%; --theme-ink: #6a5134; --theme-screen: rgba(249,241,229,.83); }
.template-malay-classic, .invitation-malay-classic { --theme-image: url("../images/theme-atlas-malay.png"); --theme-pos: 0% 0%; --theme-ink: #e4c27d; --theme-screen: rgba(28,51,35,.84); }
.template-malay-modern, .invitation-malay-modern { --theme-image: url("../images/theme-atlas-malay.png"); --theme-pos: 100% 0%; --theme-ink: #8a4f33; --theme-screen: rgba(255,248,234,.86); }
.template-malay-traditional, .invitation-malay-traditional { --theme-image: url("../images/theme-atlas-malay.png"); --theme-pos: 0% 100%; --theme-ink: #f0d19c; --theme-screen: rgba(79,24,20,.82); }
.template-batik-songket, .invitation-batik-songket { --theme-image: url("../images/theme-atlas-malay.png"); --theme-pos: 100% 100%; --theme-ink: #edc879; --theme-screen: rgba(10,35,65,.86); }
.template-florist, .invitation-florist { --theme-image: url("../images/theme-atlas-romantic.png"); --theme-pos: 0% 0%; --theme-ink: #76514f; --theme-screen: rgba(255,249,244,.84); }
.template-castle-royale, .invitation-castle-royale { --theme-image: url("../images/theme-atlas-romantic.png"); --theme-pos: 100% 0%; --theme-ink: #3f5275; --theme-screen: rgba(251,247,239,.84); }
.template-minimal-elegant, .invitation-minimal-elegant { --theme-image: url("../images/theme-atlas-romantic.png"); --theme-pos: 0% 100%; --theme-ink: #35312c; --theme-screen: rgba(255,255,252,.88); }
.template-rustic-boho, .invitation-rustic-boho { --theme-image: url("../images/theme-atlas-romantic.png"); --theme-pos: 100% 100%; --theme-ink: #6b4935; --theme-screen: rgba(248,239,224,.84); }
.template-preview { grid-column: 1/-1; height: 390px; display: grid; place-items: center; position: relative; overflow: hidden; background-image: linear-gradient(rgba(255,255,255,.05),rgba(26,18,10,.05)),var(--theme-image); background-size: cover,200% 200%; background-position: center,var(--theme-pos); }
.template-preview > span { position: absolute; top: 14px; right: 14px; padding: 6px 8px; border-radius: 100px; background: rgba(255,255,255,.75); color: #685d50; font-size: 6px; letter-spacing: 1px; text-transform: uppercase; }
.template-preview > div { width: 170px; height: 295px; border: 7px solid #191715; border-radius: 21px; display: flex; flex-direction: column; align-items: center; padding: 57px 12px 20px; background: var(--theme-screen); color: var(--theme-ink); box-shadow: 0 25px 50px rgba(51,37,20,.22); }
.template-preview small { font-size: 5px; letter-spacing: 1.5px; }
.template-preview strong { margin: 60px 0 17px; white-space: nowrap; font: 18px var(--serif); }
.template-preview time { font-size: 6px; letter-spacing: 1.2px; }
.template-card > p { margin: 3px 0; color: var(--gold); font: 9px var(--serif); }
.template-card h3 { margin: 0; font: 19px var(--serif); }
.template-card > div:last-child small { display: block; color: var(--muted); margin-top: 5px; font-size: 8px; }
.marketing-flow { min-height: 550px; display: grid; grid-template-columns: 1fr 1fr; }
.marketing-flow > div { padding: 80px max(45px,calc((100vw - 1240px)/2)); padding-right: 70px; display: flex; flex-direction: column; justify-content: center; background: #2a2924; color: white; }
.marketing-flow > div > span { color: #c3a46d; font: 85px/.5 var(--serif); }
.marketing-flow h2 { max-width: 590px; font: 400 clamp(33px,3vw,48px)/1.22 var(--serif); }
.marketing-flow > div p { color: #a9a299; font-size: 7px; letter-spacing: 2px; }
.marketing-flow ol { margin: 0; padding: 65px max(45px,calc((100vw - 1240px)/2)) 65px 70px; list-style: none; background: #f2ece3; display: flex; flex-direction: column; justify-content: center; }
.marketing-flow li { display: grid; grid-template-columns: 37px 1fr; gap: 20px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.marketing-flow li:last-child { border: 0; }
.marketing-flow li > span { color: var(--gold); font: 10px var(--serif); }
.marketing-flow li strong { font: 23px var(--serif); }
.marketing-flow li p { color: var(--muted); font-size: 9px; }
.pricing { padding-top: 110px; }
.pricing-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 13px; }
.pricing-cards article { min-height: 285px; padding: 37px 32px; border: 1px solid var(--line); display: flex; flex-direction: column; position: relative; }
.pricing-cards article > small { color: var(--gold-deep); font-size: 7px; letter-spacing: 2px; }
.pricing-cards h3 { margin: 26px 0 10px; font: 28px var(--serif); }
.pricing-cards p { color: var(--muted); font: 12px/1.65 var(--serif); }
.package-price { margin-top: auto; display: flex; align-items: baseline; gap: 10px; padding-top: 24px; }
.package-price strong { font: 25px var(--serif); }
.package-price del { color: #9d948a; font: 13px var(--serif); }
.pricing-cards article > a { margin-top: 22px; color: var(--gold-deep); font-size: 8px; letter-spacing: .5px; text-decoration: none; }
.pricing-cards .featured { background: #f0e6d6; border-color: #d8bf97; transform: translateY(-8px); }
.pricing-cards .featured b { position: absolute; right: 0; top: 0; padding: 7px 10px; background: var(--gold-deep); color: white; font-size: 6px; letter-spacing: 1px; }
.promo-banner { min-height: 58px; margin: -20px 0 30px; padding: 12px 18px; border: 1px solid #dbc49d; background: #f6eddf; display: flex; align-items: center; gap: 11px; }
.promo-banner > span { color: var(--gold-deep); }
.promo-banner strong { font: 17px var(--serif); }
.promo-banner p { margin-left: auto; color: var(--muted); font-size: 8px; }
.inquiry-section { min-height: 760px; display: grid; grid-template-columns: .92fr 1.08fr; background: radial-gradient(circle at 18% 22%, rgba(168,130,74,.14), transparent 30%),#292722; }
.inquiry-copy { padding: 95px max(45px,calc((100vw - 1240px)/2)); padding-right: 75px; color: white; display: flex; flex-direction: column; justify-content: center; }
.inquiry-copy h2 { margin: 19px 0 24px; font: 400 clamp(42px,4vw,62px)/1 var(--serif); }
.inquiry-copy h2 em { color: #d1b27c; }
.inquiry-copy > p:not(.eyebrow) { max-width: 520px; color: #b9b2a8; font: 14px/1.75 var(--serif); }
.inquiry-trust { width: min(500px,100%); margin-top: 22px; padding: 13px 15px; border: 1px solid rgba(198,165,109,.28); background: rgba(255,255,255,.045); display: grid; grid-template-columns: 30px 1fr; gap: 11px; align-items: center; }
.inquiry-trust > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: rgba(107,145,112,.18); color: #afd0b4; }
.inquiry-trust p { margin: 0; }
.inquiry-trust strong, .inquiry-trust small { display: block; }
.inquiry-trust strong { color: #f0e9df; font: 12px var(--serif); }
.inquiry-trust small { margin-top: 4px; color: #a9a197; font-size: 7px; line-height: 1.5; }
.inquiry-copy ol { list-style: none; margin: 30px 0 0; padding: 0; border-top: 1px solid rgba(255,255,255,.12); }
.inquiry-copy li { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); color: #d6d0c8; display: grid; grid-template-columns: 38px 1fr; align-items: center; }
.inquiry-copy li > span { color: #c6a56d; font: 8px var(--sans); }
.inquiry-copy li strong, .inquiry-copy li small { display: block; }
.inquiry-copy li strong { font: 13px var(--serif); }
.inquiry-copy li small { margin-top: 4px; color: #908981; font: 7px/1.45 var(--sans); }
.inquiry-form { margin: 55px max(45px,calc((100vw - 1240px)/2)) 55px 0; padding: 42px; border: 1px solid rgba(168,130,74,.2); border-radius: 18px; background: linear-gradient(145deg,#fffdf9,#f5eee4); box-shadow: 0 32px 75px rgba(0,0,0,.22); display: flex; flex-direction: column; gap: 15px; align-self: center; }
.inquiry-form-heading > p { color: var(--gold-deep); margin: 0; font-size: 7px; letter-spacing: 2px; }
.inquiry-form h3 { margin: 7px 0 5px; font: 32px var(--serif); }
.inquiry-form-heading > span { color: #90877d; font: 10px var(--serif); }
.inquiry-form label { display: flex; flex-direction: column; gap: 7px; color: #6b635a; font-size: 7px; font-weight: 700; letter-spacing: .9px; text-transform: uppercase; }
.inquiry-form input, .inquiry-form select, .inquiry-form textarea { width: 100%; min-height: 46px; border: 1px solid #d9d0c5; border-radius: 8px; background: rgba(255,255,255,.9); padding: 12px 13px; color: #302b25; outline: none; font: 13px var(--serif); text-transform: none; letter-spacing: 0; }
.inquiry-form input:focus, .inquiry-form select:focus, .inquiry-form textarea:focus { border-color: #b89862; box-shadow: 0 0 0 3px rgba(184,152,98,.09); }
.inquiry-form textarea { resize: vertical; }
.inquiry-form > small { color: #8b8379; font-size: 7px; line-height: 1.5; text-align: center; }
.inquiry-form > small span { color: var(--gold); margin-right: 5px; }
.button-gold { min-height: 50px; justify-content: center; border: 0; border-radius: 8px; background: linear-gradient(135deg,#b18b51,#8d6937); color: white; box-shadow: 0 10px 25px rgba(126,91,43,.18); }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-errors { border: 1px solid #dfb2a9; background: #fff1ee; color: #8d3f32; padding: 12px 15px; font-size: 8px; }
.form-errors ul { margin: 7px 0 0; padding-left: 16px; }
.contact-section { width: min(1240px,calc(100% - 40px)); margin: 0 auto; padding: 110px 0; display: grid; grid-template-columns: .82fr 1.18fr; gap: 90px; align-items: center; }
.contact-section h2 { margin: 17px 0 20px; font: 400 clamp(43px,4vw,62px)/1 var(--serif); }
.contact-section > div:first-child > p:last-child { max-width: 430px; color: var(--muted); font: 14px/1.7 var(--serif); }
.contact-options { border-top: 1px solid var(--line); }
.contact-options > a { min-height: 76px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 35px 1fr auto; grid-template-rows: auto auto; column-gap: 15px; align-items: center; color: var(--ink); text-decoration: none; }
.contact-options > a > span { grid-row: 1/3; width: 35px; height: 35px; border-radius: 50%; display: grid; place-items: center; background: #f0e6d6; color: var(--gold-deep); }
.contact-options small { align-self: end; color: #9b8f81; font-size: 6px; letter-spacing: 1.5px; }
.contact-options strong { align-self: start; font: 15px var(--serif); }
.contact-options i { grid-column: 3; grid-row: 1/3; color: var(--gold-deep); font-style: normal; }
.contact-options > p { margin: 15px 0 0; color: var(--muted); font-size: 8px; }
.contact-placeholder { min-height: 76px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 13px; }
.contact-placeholder > span { width: 35px; height: 35px; border-radius: 50%; display: grid; place-items: center; background: #f0e6d6; color: var(--gold-deep); }
.contact-placeholder strong, .contact-placeholder small { display: block; }
.contact-placeholder strong { font: 14px var(--serif); }
.contact-placeholder small { color: var(--muted); margin-top: 4px; font-size: 7px; }
.floating-whatsapp { position: fixed; z-index: 60; right: 22px; bottom: 22px; min-height: 43px; padding: 0 17px; border-radius: 100px; background: #285d49; color: white; display: flex; align-items: center; gap: 8px; box-shadow: 0 12px 30px rgba(27,71,54,.25); text-decoration: none; font-size: 8px; letter-spacing: .5px; }
.floating-whatsapp span { font-size: 14px; }
.marketing-footer { width: min(1240px,calc(100% - 40px)); min-height: 125px; margin: 0 auto; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; color: var(--muted); font-size: 8px; }
.marketing-footer p:last-child { justify-self: end; }

/* Installer and login */
.install-page, .login-page { min-height: 100vh; background: #f7f3ec; }
.install-shell, .login-shell { min-height: 100vh; display: grid; grid-template-columns: .85fr 1.15fr; }
.install-intro, .login-art {
    padding: 45px 7vw; color: white; display: flex; flex-direction: column; justify-content: space-between;
    background: radial-gradient(circle at 15% 75%,rgba(194,155,94,.16),transparent 35%),#242520;
}
.install-intro h1, .login-art h1 { margin: 15px 0 25px; font: 400 clamp(48px,5vw,72px)/.95 var(--serif); letter-spacing: -2px; }
.install-intro h1 em, .login-art h1 em { color: #c6a66e; font-weight: 400; }
.install-intro > div > p:not(.eyebrow), .login-art > div > p:not(.eyebrow) { max-width: 470px; color: #b7b1a8; font: 14px/1.75 var(--serif); }
.install-intro > small, .login-art > small { color: #88837b; font-size: 7px; letter-spacing: 1px; }
.install-form-wrap, .login-form-wrap { padding: 55px 7vw; overflow-y: auto; }
.install-heading { display: flex; gap: 15px; align-items: center; margin-bottom: 26px; }
.install-heading > span { color: var(--gold); font: 12px var(--serif); }
.install-heading p { color: var(--gold); font-size: 7px; letter-spacing: 1.5px; margin: 0 0 5px; }
.install-heading h2 { margin: 0; font: 30px var(--serif); }
.requirement-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 20px 0 30px; }
.requirement-grid div { border: 1px solid var(--line); background: white; padding: 9px; font-size: 7px; }
.requirement-grid span { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; margin-right: 7px; }
.requirement-grid .passed span { background: #e2ede3; color: var(--green); }
.requirement-grid .failed span { background: #f1e2df; color: var(--red); }
.form-errors { padding: 14px; background: #f3e5e2; border: 1px solid #e3c7c1; color: #875046; font-size: 9px; }
.form-errors ul { margin-bottom: 0; padding-left: 18px; }
.install-form { display: grid; gap: 22px; }
.install-form fieldset { border: 1px solid #ddd4c8; padding: 20px; background: #fffdf9; }
.install-form legend { padding: 0 8px; color: var(--gold-deep); font: 14px var(--serif); }
.install-form label, .login-form label, .form-stack label, .side-card label, .media-upload-panel label, .music-upload-panel label {
    display: block; color: #746c62; font-size: 7px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase;
}
.install-form input, .login-form input, .form-stack input, .form-stack textarea, .form-stack select,
.side-card input, .side-card select, .media-upload-panel input, .media-upload-panel select, .music-upload-panel input {
    width: 100%; display: block; margin-top: 7px; border: 1px solid #ddd4c8; background: white;
    padding: 11px 12px; color: #332e28; font: 12px var(--serif); outline: none;
}
.install-form input:focus, .login-form input:focus, .form-stack input:focus, .form-stack textarea:focus, .form-stack select:focus { border-color: #b48e53; box-shadow: 0 0 0 3px rgba(180,142,83,.08); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.install-submit { width: 100%; }
.login-art { background: linear-gradient(rgba(32,34,30,.7),rgba(31,32,29,.82)),url("../images/modern-luxury-hero.png") center/cover; }
.login-form-wrap { display: grid; place-items: center; }
.login-form { width: min(390px,100%); }
.login-form h2 { margin: 12px 0 7px; font: 36px var(--serif); }
.login-note { color: var(--muted); font: 12px var(--serif); margin-bottom: 30px; }
.login-form label { margin-top: 16px; }
.login-form .button { width: 100%; margin-top: 24px; }
.login-form > a { display: block; color: var(--muted); text-align: center; margin-top: 20px; font-size: 8px; text-decoration: none; }
.login-form > .login-help-link { margin-top: 14px; color: var(--gold-deep); }
.token-expired { padding: 30px; border: 1px solid var(--line); background: #fff; }
.error-page { min-height: 100vh; padding: 50px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: #f8f4ed; }
.error-page .brand { position: absolute; top: 35px; left: 35px; }
.error-code { color: rgba(167,131,75,.16); font: 160px/.7 var(--serif); }
.error-page h1 { font: 42px var(--serif); margin: 30px 0 10px; }
.error-page p { max-width: 520px; color: var(--muted); font: 14px/1.7 var(--serif); margin-bottom: 25px; }

/* Authenticated app */
.app-shell { position: fixed; inset: 0; width: 100vw; min-width: 100%; max-width: none; height: 100vh; height: 100dvh; display: grid; grid-template-columns: 230px minmax(0,1fr); overflow: hidden; }
.app-sidebar { background: #252621; color: white; padding: 25px 17px 18px; display: flex; flex-direction: column; overflow-y: auto; }
.app-sidebar .brand { margin: 0 7px 26px; }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 17px 8px; border-block: 1px solid rgba(255,255,255,.09); }
.sidebar-user > span { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 50%; background: #403a31; color: #c6a56d; font: 13px var(--serif); }
.sidebar-user strong, .sidebar-user small { display: block; }
.sidebar-user strong { font: 12px var(--serif); }
.sidebar-user small { color: #8f8a83; font-size: 8px; text-transform: uppercase; letter-spacing: 1px; margin-top: 3px; }
.sidebar-nav { margin-top: 20px; }
.sidebar-nav p { color: #77736c; margin: 19px 10px 7px; font-size: 8px; letter-spacing: 1.6px; }
.sidebar-nav a { display: flex; align-items: center; gap: 10px; padding: 11px 10px; color: #aaa69f; text-decoration: none; font-size: 11px; border-left: 2px solid transparent; }
.sidebar-nav a:hover { color: white; background: rgba(188,152,93,.1); border-left-color: #b8935d; }
.sidebar-nav a span { color: #a1855b; width: 15px; font-size: 11px; }
.sidebar-logout { margin-top: auto; }
.sidebar-logout button { width: 100%; border: 1px solid rgba(255,255,255,.1); background: transparent; color: #9d9891; padding: 11px 10px; text-align: left; font-size: 11px; cursor: pointer; }
.sidebar-logout span { color: #aa8652; margin-right: 9px; }
.app-main { width: 100%; min-width: 0; max-width: none; background: #f3f1ec; overflow-y: auto; }
.app-topbar { width: 100%; max-width: none; height: 67px; padding: 0 29px; border-bottom: 1px solid #e1dbd2; background: rgba(255,253,249,.96); display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 20; }
.app-topbar > div span, .app-topbar > div strong { display: block; }
.app-topbar > div span { color: #a4814e; font-size: 8px; letter-spacing: 1.7px; }
.app-topbar > div strong { margin-top: 4px; font: 16px var(--serif); }
.app-topbar > a { color: #7d746a; text-decoration: none; font-size: 10px; }
.mobile-menu { display: none; }
.app-main > .flash { margin: 14px 30px 0; }
.app-content { width: 100%; min-width: 0; max-width: none; margin: 0; padding: 30px 35px 60px; }
body.app-page .button { min-height: 44px; font-size: 11px; }
body.app-page .form-stack label,
body.app-page .side-card label,
body.app-page .media-upload-panel label,
body.app-page .music-upload-panel label,
body.app-page .manual-payment-form label,
body.app-page .proof-form label,
body.app-page .revision-form label { font-size: 9px; }
body.app-page .form-stack input,
body.app-page .form-stack textarea,
body.app-page .form-stack select,
body.app-page .side-card input,
body.app-page .side-card select,
body.app-page .manual-payment-form input,
body.app-page .manual-payment-form select { font-size: 14px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; margin-bottom: 25px; }
.page-heading h1 { margin: 8px 0 6px; font: 35px var(--serif); }
.page-heading > div > span { color: var(--muted); font-size: 11px; }
.heading-actions { display: flex; gap: 7px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 10px; margin-bottom: 17px; }
.stat-grid article { min-height: 135px; padding: 17px; border: 1px solid #e0d9cf; background: white; position: relative; }
.stat-grid article > p { color: #978e84; margin: 0 0 13px; font-size: 6px; letter-spacing: 1.3px; }
.stat-grid article > strong { display: block; font: 31px var(--serif); }
.stat-grid article > small { color: #91887e; font-size: 7px; }
.stat-icon { position: absolute; right: 13px; top: 13px; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; font-size: 9px; }
.stat-icon.green { background: #e2ede3; color: var(--green); }
.stat-icon.red { background: #f2e4e1; color: var(--red); }
.stat-icon.gold { background: #f2e9da; color: var(--gold-deep); }
.stat-icon.blue { background: #e3e9ef; color: #5d7188; }
.panel { border: 1px solid #e0dad1; background: white; }
.panel-heading { min-height: 68px; padding: 15px 18px; border-bottom: 1px solid #e6e0d8; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.panel-heading > div { display: flex; align-items: center; gap: 12px; }
.panel-heading > div > div { display: block; }
.panel-heading h2 { margin: 0; font: 20px var(--serif); }
.panel-heading p { color: #91887e; margin: 4px 0 0; font-size: 10px; }
.panel-heading > a { color: #876638; text-decoration: none; font-size: 10px; }
.panel-heading > div > span { color: var(--gold); font: 10px var(--serif); }
.panel-body { padding: 20px; }
.data-table { overflow-x: auto; }
.table-row { min-width: 680px; min-height: 50px; padding: 0 18px; display: grid; grid-template-columns: 1.5fr 1fr .5fr .8fr 1fr; align-items: center; border-bottom: 1px solid #ece7e0; color: #746b62; font-size: 8px; }
.table-row.table-head { min-height: 36px; background: #faf8f4; color: #9a9187; font-size: 6px; letter-spacing: 1px; text-transform: uppercase; }
.person-cell { display: flex; align-items: center; gap: 9px; color: #3c362f; }
.person-cell i { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: #eee5d8; color: #947044; font: normal 10px var(--serif); }
.person-cell strong { font: 10px var(--serif); }
.badge { display: inline-block; padding: 5px 7px; border-radius: 100px; font-size: 6px; text-transform: capitalize; }
.badge-green { background: #e5eee6; color: #56705b; }
.badge-red { background: #f1e4e1; color: #935d53; }
.badge-gold { background: #f3eadc; color: #8f6b38; }
.empty-state { padding: 50px 20px; text-align: center; color: #938a80; font: 13px var(--serif); }
.empty-state.compact { padding: 24px; }
.search-field { border: 1px solid #ddd5ca; padding: 8px 10px; color: #a18f75; font-size: 9px; }
.search-field input { border: 0; outline: 0; font-size: 8px; width: 145px; }
.rsvp-row { grid-template-columns: 1.5fr .9fr .45fr .65fr .75fr 1.2fr 1fr; min-width: 900px; }
.admin-wedding-row { grid-template-columns: 1.35fr 1.15fr .8fr .7fr .7fr .45fr; min-width: 800px; }
.admin-all-row { grid-template-columns: 1.3fr 1.1fr 1fr .7fr .65fr .7fr; min-width: 850px; }
.table-actions { display: flex; gap: 8px; }
.table-actions a { color: #826238; text-decoration: none; }

.editor-layout { display: grid; grid-template-columns: 1fr 285px; gap: 15px; align-items: start; }
.editor-main { display: grid; gap: 15px; min-width: 0; }
.form-panel .panel-heading > div { display: flex; }
.form-stack { display: grid; gap: 17px; }
.form-stack textarea { resize: vertical; line-height: 1.55; }
.section-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 0 25px; }
.section-checks label { min-height: 57px; border-bottom: 1px solid #e7e1d9; display: flex; align-items: center; position: relative; cursor: pointer; }
.section-checks label > span { flex: 1; }
.section-checks strong, .section-checks small { display: block; }
.section-checks strong { font: 12px var(--serif); }
.section-checks small { color: var(--muted); margin-top: 3px; font-size: 7px; }
.section-checks input { position: absolute; opacity: 0; }
.section-checks i { width: 35px; height: 20px; border-radius: 100px; background: #d7d0c7; padding: 3px; }
.section-checks i::after { content: ""; display: block; width: 14px; height: 14px; border-radius: 50%; background: white; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.section-checks input:checked + i { background: var(--gold); }
.section-checks input:checked + i::after { transform: translateX(15px); }
.editor-side { display: grid; gap: 15px; position: sticky; top: 82px; }
.side-card { padding: 19px; }
.side-card > p { color: var(--gold-deep); margin: 0 0 17px; font-size: 9px; letter-spacing: 1.5px; }
.side-card label { margin-top: 14px; }
.side-card .button { width: 100%; margin-top: 20px; }
.slug-input { display: flex; align-items: center; margin-top: 7px; border: 1px solid #ddd4c8; background: white; }
.slug-input span { padding-left: 10px; color: #9c9287; font: 11px var(--serif); }
.slug-input input { border: 0; margin: 0; }
.media-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.media-grid article { border: 1px solid #ddd5ca; background: #faf8f4; }
.media-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.media-grid article > div { padding: 8px; display: flex; justify-content: space-between; align-items: center; }
.media-grid span { color: var(--muted); font-size: 6px; text-transform: uppercase; }
.media-grid button { border: 0; background: none; color: var(--red); font-size: 7px; cursor: pointer; }
.media-upload-panel { margin-top: 15px; padding: 18px; display: grid; grid-template-columns: 1.5fr .7fr .9fr auto auto; gap: 12px; align-items: end; }
.music-source-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.music-source-actions .button { min-height: 38px; padding: 9px 12px; }
.music-source-actions > span { flex: 1 1 240px; color: var(--muted); font: 9px/1.5 var(--serif); }
.youtube-test-player { max-width: 560px; border: 1px solid #dcd3c7; background: #211f1c; padding: 6px; }
.youtube-test-player iframe { width: 100%; aspect-ratio: 16/9; display: block; border: 0; }
.uploaded-audio-summary { border: 1px solid #d9c9ae; background: #faf4e9; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.uploaded-audio-summary > div { display: flex; align-items: center; gap: 11px; }
.uploaded-audio-summary > div > span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #2d2b26; color: #d4b477; }
.uploaded-audio-summary p, .uploaded-audio-summary strong, .uploaded-audio-summary small { margin: 0; display: block; }
.uploaded-audio-summary strong { font: 12px var(--serif); }
.uploaded-audio-summary small { margin-top: 3px; color: var(--muted); font-size: 7px; }
.uploaded-audio-summary button { border: 0; background: transparent; color: var(--red); font-size: 8px; cursor: pointer; }
.music-upload-panel { margin-top: 15px; padding: 18px; display: grid; grid-template-columns: 1.5fr 1fr auto; gap: 12px; align-items: end; }
.music-upload-panel h2 { margin: 5px 0; font: 18px var(--serif); }
.music-upload-panel > div > span { color: var(--muted); font-size: 7px; }
.gallery-settings { margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid #e7e1d9; }
.gallery-settings-heading { display: flex; justify-content: space-between; gap: 15px; align-items: center; margin-bottom: 14px; }
.gallery-settings-heading strong, .gallery-settings-heading small { display: block; }
.gallery-settings-heading strong { font: 15px var(--serif); }
.gallery-settings-heading small { color: var(--muted); margin-top: 4px; font-size: 7px; }
.gallery-settings-heading > span { border: 1px solid #dbcdb8; border-radius: 100px; padding: 7px 10px; color: #8c6a38; font-size: 7px; white-space: nowrap; }
.gallery-style-options { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.gallery-style-options label, .monogram-options label { cursor: pointer; }
.gallery-style-options input, .monogram-options input { position: absolute; opacity: 0; pointer-events: none; }
.gallery-style-options label > span { min-height: 100px; border: 1px solid #ded7ce; background: #fcfaf7; padding: 14px; display: flex; flex-direction: column; align-items: flex-start; }
.gallery-style-options i { color: #aa8146; font: normal 22px var(--serif); }
.gallery-style-options strong, .gallery-style-options small { display: block; }
.gallery-style-options strong { margin-top: auto; font: 12px var(--serif); }
.gallery-style-options small { color: var(--muted); margin-top: 3px; font-size: 6px; }
.gallery-style-options input:checked + span, .monogram-options input:checked + span { border-color: #a9844d; background: #faf2e5; box-shadow: inset 0 0 0 1px #a9844d; }
.gallery-detail-settings { margin-top: 13px; }
.gallery-autoplay { min-height: 54px; margin-top: 9px; border-top: 1px solid #eee8df; display: flex !important; align-items: center; cursor: pointer; }
.gallery-autoplay > span { flex: 1; }
.gallery-autoplay strong, .gallery-autoplay small { display: block; }
.gallery-autoplay strong { font: 12px var(--serif); }
.gallery-autoplay small { color: var(--muted); margin-top: 3px; font-size: 7px; }
.gallery-autoplay input { position: absolute; opacity: 0; }
.gallery-autoplay i { width: 37px; height: 21px; border-radius: 100px; background: #d8d0c5; padding: 3px; }
.gallery-autoplay i::after { content: ""; display: block; width: 15px; height: 15px; border-radius: 50%; background: white; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.gallery-autoplay input:checked + i { background: var(--gold); }
.gallery-autoplay input:checked + i::after { transform: translateX(16px); }
.monogram-builder { margin-top: 10px; padding-top: 21px; border-top: 1px solid #e7e1d9; }
.monogram-builder-heading { display: grid; grid-template-columns: 1fr 210px; gap: 20px; align-items: end; }
.monogram-builder-heading > div strong, .monogram-builder-heading > div small { display: block; }
.monogram-builder-heading > div strong { font: 15px var(--serif); }
.monogram-builder-heading > div small { color: var(--muted); margin-top: 4px; font-size: 7px; }
.monogram-options { display: grid; grid-template-columns: repeat(6,1fr); gap: 7px; margin-top: 14px; }
.monogram-options label > span { min-height: 116px; border: 1px solid #ded7ce; background: #fcfaf7; padding: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; }
.monogram-options strong { font: 10px var(--serif); }
.monogram-sample { color: #7d6037; display: grid; place-items: center; font-style: normal; }
.monogram-sample.monogram-style-circle { width: 48px; height: 48px; border: 1px solid currentColor; border-radius: 50%; font: 12px var(--serif); }
.monogram-sample.monogram-style-script { width: 62px; font: italic 21px "Segoe Script","Brush Script MT",cursive; }
.monogram-sample.monogram-style-crest { width: 47px; height: 52px; border: 1px solid currentColor; border-radius: 48% 48% 55% 55%/38% 38% 66% 66%; font: 11px var(--serif); }
.monogram-sample.monogram-style-minimal { width: 59px; height: 38px; border-top: 1px solid; border-bottom: 1px solid; font: 12px var(--serif); }
.monogram-sample.monogram-style-seal { width: 49px; height: 49px; border: 1px solid; border-radius: 50%; box-shadow: inset 0 0 0 3px #fcfaf7,inset 0 0 0 4px currentColor; font: 10px var(--serif); }
.monogram-upload-option img { width: 62px; height: 56px; object-fit: contain; }
.monogram-upload-option i { width: 52px; height: 52px; border: 1px dashed #c9bda9; display: grid; place-items: center; color: #a58c68; font-style: normal; }
.monogram-upload-option input:disabled + span { opacity: .55; cursor: not-allowed; }
.settings-layout { display: grid; grid-template-columns: 1fr 285px; gap: 15px; align-items: start; }
.settings-main { display: flex; flex-direction: column; gap: 15px; }
.settings-side { position: sticky; top: 90px; }
.price-setting-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.price-setting-grid article { border: 1px solid #e1dacf; background: #fcfaf7; padding: 18px; }
.price-setting-grid article > div { min-height: 52px; }
.price-setting-grid strong, .price-setting-grid small { display: block; }
.price-setting-grid strong { font: 17px var(--serif); }
.price-setting-grid small { color: #91887d; margin-top: 4px; font-size: 7px; }
.price-setting-grid label { display: flex; flex-direction: column; gap: 6px; margin-top: 13px; color: #746b62; font-size: 7px; }
.price-setting-grid input { width: 100%; border: 1px solid #ddd5ca; background: white; padding: 10px; font: 12px var(--serif); }
.price-setting-grid .promo-saving { min-height: 16px; margin-top: 8px; color: #4f7956; font-size: 7px; }
.price-setting-grid .promo-saving.invalid { color: var(--red); }
.promo-toggle { min-height: 65px; border: 1px solid #e0d8cc; padding: 12px 14px; display: grid !important; grid-template-columns: 1fr auto; align-items: center; }
.promo-toggle span strong, .promo-toggle span small { display: block; }
.promo-toggle span strong { font: 14px var(--serif); color: #3b342d; }
.promo-toggle span small { color: #91887d; margin-top: 4px; font-size: 7px; }
.promo-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.promo-toggle i { width: 40px; height: 22px; border-radius: 100px; background: #d8d1c8; padding: 3px; }
.promo-toggle i::after { content: ""; display: block; width: 16px; height: 16px; border-radius: 50%; background: white; box-shadow: 0 1px 3px rgba(0,0,0,.18); transition: .2s; }
.promo-toggle input:checked + i { background: #9c7946; }
.promo-toggle input:checked + i::after { transform: translateX(18px); }
.settings-summary h2 { margin: 8px 0 17px; font: 22px var(--serif); }
.settings-summary ul { margin: 0 0 25px; padding-left: 17px; color: #776f66; font: 11px/1.7 var(--serif); }
.settings-summary .button { width: 100%; justify-content: center; }
.inquiry-row { grid-template-columns: 1.35fr .75fr .55fr .85fr .65fr 1.1fr; min-width: 960px; }
.inquiry-row .person-cell > span strong, .inquiry-row .person-cell > span small { display: block; }
.inquiry-row .person-cell > span small { color: #968d84; margin-top: 3px; font-size: 7px; }
.inquiry-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.inquiry-actions a { color: #7a5d32; font-size: 7px; white-space: nowrap; }
.inquiry-actions select { max-width: 92px; border: 1px solid #ddd5ca; background: white; padding: 7px; font-size: 7px; }
.inquiry-message { min-width: 960px; padding: 10px 18px 12px 58px; border-bottom: 1px solid #ece7e0; background: #fbf8f3; color: #766e65; font: 9px/1.5 var(--serif); }
.badge-new { background: #f4dfb9; color: #80612f; }
.badge-contacted { background: #dfeaf4; color: #476985; }
.badge-confirmed { background: #d9eadc; color: #46704e; }
.badge-closed { background: #e8e5e1; color: #716a63; }
.media-upload-panel h2 { margin: 5px 0; font: 18px var(--serif); }
.media-upload-panel > div > span { color: var(--muted); font-size: 7px; }
.file-picker input { max-width: 180px; padding: 7px; font-size: 7px; }
.wide-form { max-width: 900px; }
.security-form { max-width: 560px; }
.section-divider { border-top: 1px solid #e6e0d8; }
.form-submit { width: fit-content; min-width: 190px; }
.two-column-page { display: grid; grid-template-columns: 1fr 300px; gap: 14px; align-items: start; }
.compact-panel { position: sticky; top: 82px; }
.personal-link-list article { min-height: 67px; padding: 11px 18px; border-bottom: 1px solid #e9e3db; display: grid; grid-template-columns: 28px 1fr auto; gap: 11px; align-items: center; }
.personal-link-list article > span { color: var(--gold); font: 8px var(--serif); }
.personal-link-list strong, .personal-link-list small, .personal-link-list p { display: block; }
.personal-link-list strong { font: 11px var(--serif); }
.personal-link-list small { max-width: 470px; color: #8e857c; margin-top: 4px; font-size: 7px; overflow: hidden; text-overflow: ellipsis; }
.personal-link-list p { color: #9c9389; margin: 4px 0 0; font-size: 6px; }
.personal-link-list button { border: 1px solid #d8d0c6; background: white; color: #86653a; padding: 7px 9px; font-size: 7px; cursor: pointer; }
.guest-actions { display: flex; gap: 5px; align-items: center; }
.guest-actions a { border: 1px solid #c9dbc9; background: #f4faf4; color: #4f7457; padding: 7px 9px; font-size: 7px; text-decoration: none; white-space: nowrap; }
.guest-actions form { margin: 0; }
.guest-actions .danger { color: var(--red); border-color: #e1cbc7; }
.wish-list article { min-height: 105px; padding: 18px; border-bottom: 1px solid #e9e3dc; display: grid; grid-template-columns: auto 1fr auto; gap: 13px; align-items: start; }
.wish-avatar { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 50%; background: #eee5d8; color: #957246; font: 13px var(--serif); }
.wish-list h3 { margin: 1px 0 6px; font: 12px var(--serif); }
.wish-list p { color: #6f675e; margin: 0 0 8px; font: 11px/1.55 var(--serif); }
.wish-status { font-size: 6px; letter-spacing: .8px; text-transform: uppercase; }
.status-approved { color: var(--green); }
.status-pending { color: var(--gold-deep); }
.status-rejected { color: var(--red); }
.wish-actions { display: flex; gap: 5px; }
.wish-actions button { border: 1px solid #ddd5ca; background: white; padding: 7px 8px; font-size: 6px; cursor: pointer; }
.wish-actions .approve { color: var(--green); border-color: #cbd9cd; }
.wish-actions .danger { color: var(--red); border-color: #e1cbc7; }

/* Public wedding invitation */
.wedding-page { width: 100%; min-width: 100%; max-width: none; overflow-x: hidden; color: #4d3b22; background: #faf6ee; }
.wedding-cover {
    width: 100%; min-width: 100%; max-width: none; min-height: 100vh; min-height: 100dvh; padding: 55px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; position: relative; overflow: hidden; color: var(--theme-ink); background-image: linear-gradient(rgba(255,252,247,.08),rgba(255,250,241,.14)),var(--theme-image); background-size: cover,200% 200%; background-position: center,var(--theme-pos);
}
.cover-ring { position: absolute; width: min(720px,85vw); aspect-ratio: 1; border: 1px solid rgba(167,131,75,.23); border-radius: 50%; animation: breathe 7s ease-in-out infinite; }
.personal-greeting { position: relative; margin: 0 0 25px; color: #8a6737; font: italic 15px var(--serif); }
.cover-kicker { position: relative; margin: 0 0 28px; font-size: 8px; letter-spacing: 3px; }
.wedding-monogram { width: 82px; height: 82px; border: 1px solid currentColor; border-radius: 50%; display: grid; place-items: center; position: relative; font: 17px var(--serif); letter-spacing: 2px; }
.wedding-monogram i { color: var(--gold); font-style: normal; }
.wedding-monogram.monogram-style-script { width: auto; min-width: 150px; height: auto; border: 0; border-radius: 0; font: italic 42px "Segoe Script","Brush Script MT",cursive; letter-spacing: -1px; }
.wedding-monogram.monogram-style-crest { width: 86px; height: 96px; border-radius: 48% 48% 55% 55%/38% 38% 66% 66%; font-size: 15px; }
.wedding-monogram.monogram-style-minimal { width: 145px; height: 55px; border: 0; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; border-radius: 0; font-size: 18px; }
.wedding-monogram.monogram-style-seal { width: 90px; height: 90px; box-shadow: inset 0 0 0 5px rgba(255,255,255,.22),inset 0 0 0 6px currentColor; font-size: 15px; }
.wedding-monogram.monogram-style-upload { width: min(220px,55vw); height: 105px; border: 0; border-radius: 0; }
.wedding-monogram.monogram-style-upload img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 5px 12px rgba(55,37,16,.1)); }
.wedding-cover h1 { display: flex; align-items: center; gap: 20px; position: relative; margin: 34px 0 25px; font: 400 clamp(55px,7vw,92px)/.9 var(--serif); letter-spacing: -2px; }
.wedding-cover h1 i { color: var(--gold); font-size: .37em; font-weight: 400; }
.wedding-cover time { position: relative; font-size: 9px; letter-spacing: 3px; }
.open-wedding { position: relative; margin-top: 50px; min-width: 190px; border: 1px solid currentColor; border-radius: 100px; background: rgba(255,255,255,.35); backdrop-filter: blur(8px); padding: 13px; font: 11px var(--serif); cursor: pointer; }
.open-wedding span { color: var(--gold); margin-left: 7px; }
.wedding-cover > small { position: relative; margin-top: 11px; font-size: 7px; opacity: .66; }
.wedding-cover.is-open .open-wedding { background: rgba(255,255,255,.72); }
.wedding-content[hidden] { display: none !important; }
.wedding-page > .wedding-content { display: block; width: 100vw !important; min-width: 100vw !important; max-width: 100vw !important; }
.wedding-content.revealed { animation: invitationReveal .55s ease both; }
.theme-ivory .wedding-cover { filter: saturate(.72) brightness(1.04); }
.theme-midnight .wedding-cover { color: #e5ca94; background-image: linear-gradient(rgba(19,21,19,.72),rgba(17,18,17,.84)),var(--theme-image); }
.wedding-page.has-custom-hero .wedding-cover { background-image: linear-gradient(rgba(255,252,247,.12),rgba(255,250,241,.25)),var(--hero-image); background-size: cover; background-position: var(--hero-position,center); }
.wedding-page.has-custom-hero.theme-midnight .wedding-cover { background-image: linear-gradient(rgba(19,21,19,.72),rgba(17,18,17,.84)),var(--hero-image); }
.wedding-content > section { width: 100%; min-width: 100%; max-width: none; padding: 95px 20px; text-align: center; }
.wedding-intro { background: #fffdf9; }
.bismillah { margin: 0 0 30px; color: var(--gold); font: 23px serif; }
.invite-personal-copy { max-width: 550px; margin: 0 auto 28px !important; padding: 12px 17px; border: 1px solid #e0d3c0; background: #faf3e7; }
.wedding-intro > small, .wedding-kicker { color: #987442; font-size: 7px; letter-spacing: 2.3px; text-transform: uppercase; }
.wedding-intro h2 { margin: 14px 0 23px; font: 26px var(--serif); }
.wedding-intro > p:not(.bismillah) { max-width: 600px; margin: 0 auto; color: #71685f; font: 14px/1.8 var(--serif); }
.wedding-couple { margin-top: 47px; display: flex; align-items: center; justify-content: center; gap: 25px; }
.wedding-couple strong { font: 42px var(--serif); }
.wedding-couple i { color: var(--gold); font: 16px var(--serif); }
.wedding-countdown { background: #2a2924; color: white; }
.wedding-countdown > p { color: #c3a36b; font-size: 7px; letter-spacing: 2.5px; }
.wedding-countdown > div { display: flex; align-items: flex-start; justify-content: center; gap: 30px; margin-top: 29px; }
.wedding-countdown span { min-width: 85px; }
.wedding-countdown strong, .wedding-countdown small { display: block; }
.wedding-countdown strong { font: 52px var(--serif); }
.wedding-countdown small { color: #aaa39a; margin-top: 7px; font-size: 7px; letter-spacing: 1px; }
.wedding-countdown i { color: #777169; padding-top: 7px; font: normal 30px var(--serif); }
.wedding-event { background: #f4eee4; }
.wedding-event h2, .wedding-tentative h2, .wedding-gallery h2, .wedding-story h2, .wedding-rsvp h2, .wedding-wishes h2, .wedding-gift h2 { margin: 15px 0 38px; font: 40px var(--serif); }
.wedding-event-grid { max-width: 780px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.wedding-event-grid article { min-height: 170px; padding: 29px; background: #fffdf9; border: 1px solid var(--line); }
.wedding-event-grid article > span { display: block; color: var(--gold); font-size: 21px; margin-bottom: 15px; }
.wedding-event-grid small, .wedding-event-grid strong { display: block; }
.wedding-event-grid small { color: #978d81; font-size: 6px; letter-spacing: 1.4px; margin-bottom: 9px; }
.wedding-event-grid strong { font: 14px var(--serif); }
.wedding-event-grid p { color: #81766b; margin: 7px 0 0; font-size: 8px; }
.additional-events { max-width: 780px; display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin: 14px auto 0; }
.additional-events article { border: 1px solid var(--line); padding: 14px; background: rgba(255,255,255,.45); }
.additional-events small, .additional-events strong { display: block; }
.additional-events small { color: var(--gold); font-size: 6px; letter-spacing: 1px; }
.additional-events strong { margin: 6px 0; font: 13px var(--serif); }
.additional-events p { margin: 0; color: var(--muted); font-size: 7px; }
.wedding-map-links { display: flex; justify-content: center; gap: 9px; margin-top: 20px; }
.wedding-map-links a { min-width: 130px; border: 1px solid #cbbda9; padding: 10px 15px; color: #4c4237; text-decoration: none; font-size: 8px; }
.wedding-tentative { background: #fffdf9; }
.wedding-tentative > div { max-width: 570px; margin: 0 auto; }
.wedding-tentative article { min-height: 58px; display: grid; grid-template-columns: 65px 1px 1fr; gap: 20px; align-items: center; text-align: left; }
.wedding-tentative time { color: var(--gold); font: 12px var(--serif); }
.wedding-tentative article > span { width: 1px; height: 100%; background: #d8cbb9; position: relative; }
.wedding-tentative article > span::after { content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); left: -3px; top: calc(50% - 3px); }
.wedding-tentative article p { font: 13px var(--serif); }
.wedding-gallery { background: #ece4d8; }
.gallery-grid { max-width: 950px; margin: 0 auto; display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.gallery-grid img { width: 100%; aspect-ratio: 4/5; object-fit: cover; box-shadow: 0 12px 30px rgba(61,44,25,.13); }
.gallery-experience { width: min(1000px,100%); margin: 0 auto; position: relative; }
.gallery-viewport { overflow: hidden; }
.gallery-track { min-width: 0; }
.gallery-slide { margin: 0; min-width: 0; position: relative; }
.gallery-slide button { width: 100%; display: block; margin: 0; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery-slide img { width: 100%; display: block; object-fit: cover; }
.gallery-slide figcaption { margin-top: 9px; color: #796d60; font: italic 11px var(--serif); }
.gallery-style-slider { max-width: 760px; }
.gallery-style-slider .gallery-track { display: flex; transition: transform .65s cubic-bezier(.22,.7,.22,1); }
.gallery-style-slider .gallery-slide { flex: 0 0 100%; padding: 0 8px; }
.gallery-style-slider .gallery-slide img { height: min(68vh,650px); aspect-ratio: 4/5; box-shadow: 0 25px 55px rgba(61,44,25,.18); }
.gallery-controls { display: grid; grid-template-columns: 42px 1fr auto 42px; gap: 12px; align-items: center; margin-top: 20px; }
.gallery-controls > button { width: 42px; height: 42px; border: 1px solid #c6b69f; border-radius: 50%; background: rgba(255,255,255,.55); color: #725d40; cursor: pointer; }
.gallery-controls > span { color: #8c7c69; font-size: 8px; letter-spacing: 1px; }
.gallery-controls > div { display: flex; align-items: center; gap: 6px; }
.gallery-controls > div button { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 50%; background: #c7b9a6; cursor: pointer; }
.gallery-controls > div button.active { width: 20px; border-radius: 10px; background: #9c7843; }
.gallery-style-mosaic .gallery-viewport, .gallery-style-editorial .gallery-viewport { overflow: visible; }
.gallery-style-mosaic .gallery-track { display: grid; grid-template-columns: repeat(4,1fr); grid-auto-rows: 190px; gap: 10px; }
.gallery-style-mosaic .gallery-slide { min-height: 0; }
.gallery-style-mosaic .gallery-slide:nth-child(6n+1), .gallery-style-mosaic .gallery-slide:nth-child(6n+4) { grid-column: span 2; grid-row: span 2; }
.gallery-style-mosaic .gallery-slide:nth-child(6n+5) { grid-column: span 2; }
.gallery-style-mosaic .gallery-slide button, .gallery-style-mosaic .gallery-slide img { height: 100%; }
.gallery-style-mosaic .gallery-slide figcaption { position: absolute; left: 10px; right: 10px; bottom: 8px; margin: 0; padding: 7px; background: rgba(25,23,20,.58); color: white; backdrop-filter: blur(5px); }
.gallery-style-mosaic .gallery-controls, .gallery-style-editorial .gallery-controls { display: none; }
.gallery-style-editorial { max-width: 900px; }
.gallery-style-editorial .gallery-track { display: grid; grid-template-columns: repeat(6,1fr); gap: 24px 14px; align-items: center; }
.gallery-style-editorial .gallery-slide { grid-column: span 2; padding: 10px 10px 26px; background: #fffdf8; box-shadow: 0 15px 35px rgba(61,44,25,.13); transform: rotate(-1.3deg); }
.gallery-style-editorial .gallery-slide:nth-child(3n+2) { transform: translateY(24px) rotate(1.5deg); }
.gallery-style-editorial .gallery-slide:nth-child(3n+3) { transform: rotate(-.4deg); }
.gallery-style-editorial .gallery-slide img { aspect-ratio: 4/5; }
.gallery-lightbox { width: min(920px,calc(100% - 28px)); max-width: none; padding: 0; border: 0; background: transparent; overflow: visible; }
.gallery-lightbox::backdrop { background: rgba(18,16,14,.9); backdrop-filter: blur(8px); }
.gallery-lightbox > button { position: fixed; top: 18px; right: 20px; z-index: 2; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; background: rgba(0,0,0,.35); color: white; font-size: 22px; cursor: pointer; }
.gallery-lightbox img { display: block; width: 100%; max-height: 82vh; object-fit: contain; }
.gallery-lightbox p { margin: 12px 0 0; color: white; text-align: center; font: 13px var(--serif); }
.gallery-fallback { height: 420px; align-items: center; }
.gallery-fallback span { height: 76%; background: var(--fallback-image) 15% center/cover; box-shadow: 0 12px 30px rgba(61,44,25,.13); }
.gallery-fallback span:nth-child(2) { height: 100%; background-position: center; }
.gallery-fallback span:nth-child(3) { background-position: 85% center; }
.wedding-story { background: #293028; color: white; }
.wedding-story > p:last-child { max-width: 530px; margin: 0 auto; color: #b8b4ac; font: 14px/1.75 var(--serif); }
.wedding-rsvp { background: #fffdf9; }
.wedding-rsvp > form { width: min(520px,100%); margin: 0 auto; display: grid; gap: 15px; text-align: left; }
.wedding-rsvp form > label, .wedding-form-grid label { color: #756d63; font-size: 7px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.wedding-rsvp input, .wedding-rsvp select, .wedding-rsvp textarea { width: 100%; display: block; margin-top: 7px; border: 1px solid #ddd3c5; background: #fffefa; padding: 12px; color: #332c24; font: 12px var(--serif); }
.wedding-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.wedding-form-grid.fields-disabled { opacity: .42; }
.attendance-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.attendance-choice input { position: absolute; opacity: 0; }
.attendance-choice span { display: block; border: 1px solid #d9cfc2; padding: 11px; text-align: center; color: #756c62; font-size: 8px; cursor: pointer; }
.attendance-choice input:checked + span { border-color: var(--gold); background: #faf2e4; color: #7e5f31; }
.wedding-rsvp form > button { border: 0; background: var(--ink); color: white; padding: 13px 17px; font-size: 8px; cursor: pointer; }
.wedding-rsvp form > button span { float: right; color: #d2b477; }
.wedding-alert { width: min(520px,100%); margin: 0 auto 15px; border: 1px solid; padding: 12px; font-size: 9px; }
.wedding-alert.success { background: #e8f1e9; border-color: #c9dbcc; color: #4f6c54; }
.wedding-alert.error { background: #f4e7e4; border-color: #e4cac4; color: #8e554b; }
.wedding-alert ul { margin: 0; padding-left: 17px; text-align: left; }
.wedding-wishes { background: #f4eee4; }
.wedding-wishes > div { max-width: 950px; margin: 0 auto; display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.wedding-wishes blockquote { min-height: 200px; margin: 0; padding: 28px; background: #fffdf9; border: 1px solid var(--line); text-align: left; }
.wedding-wishes blockquote > span { color: #b6915b; font: 37px/.7 var(--serif); }
.wedding-wishes blockquote p { color: #5e554b; font: 12px/1.7 var(--serif); }
.wedding-wishes cite { color: #958a7e; font-size: 7px; font-style: normal; }
.no-wishes { grid-column: 1/-1; color: var(--muted); font: 13px var(--serif); }
.wedding-gift { background: #2b2924; color: white; }
.wedding-gift > span { color: #c6a56e; font-size: 28px; }
.wedding-gift > img { display: block; width: 180px; margin: 0 auto 18px; border: 8px solid white; }
.wedding-gift > p:not(.wedding-kicker) { max-width: 520px; margin: -16px auto 22px; color: #bbb5ac; font: 13px/1.7 var(--serif); }
.wedding-gift button { border: 1px solid rgba(255,255,255,.24); background: transparent; color: #d5bf98; padding: 10px 15px; font-size: 7px; }
.wedding-footer { width: 100%; min-width: 100%; max-width: none; min-height: 300px; border: 0; background-image: linear-gradient(rgba(255,252,247,.18),rgba(255,250,241,.3)),var(--hero-image); background-size: cover; background-position: var(--hero-position,center); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.wedding-footer p { margin: 22px 0; font: 14px var(--serif); }
.wedding-footer small { font-size: 6px; letter-spacing: 1.3px; text-transform: uppercase; }
.wedding-music { position: fixed; z-index: 50; right: 25px; bottom: 25px; width: 43px; height: 43px; border: 1px solid #b18d57; border-radius: 50%; background: #292722; color: #d4b67f; box-shadow: 0 10px 25px rgba(0,0,0,.2); cursor: pointer; }
.wedding-music.playing { animation: pulse 1.2s ease-in-out infinite; }
.wedding-youtube-player { position: fixed; width: 1px; height: 1px; left: -20px; bottom: -20px; border: 0; opacity: .01; pointer-events: none; }

/* Public theme previews */
.template-demo-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 13px; color: #84663a; font-size: 7px; font-weight: 700; letter-spacing: .8px; text-decoration: none; text-transform: uppercase; }
.template-demo-link span { font-size: 11px; transition: transform .18s ease; }
.template-demo-link:hover span { transform: translate(2px,-2px); }
.inquiry-package strong, .inquiry-package small { display: block; }
.inquiry-package strong { font: 12px var(--serif); }
.inquiry-package small { margin-top: 5px; color: var(--muted); font-size: 7px; }
.theme-demo-page { padding-top: 70px; }
.theme-demo-bar { position: fixed; z-index: 120; inset: 0 0 auto; min-height: 70px; padding: 10px clamp(16px,4vw,55px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; background: rgba(32,31,27,.96); color: #fff; border-bottom: 1px solid rgba(221,190,133,.35); box-shadow: 0 10px 30px rgba(0,0,0,.2); backdrop-filter: blur(16px); }
.theme-demo-bar a { color: inherit; text-decoration: none; }
.theme-demo-back { justify-self: start; display: inline-flex; align-items: center; gap: 8px; color: #d9c8aa !important; font-size: 8px; letter-spacing: .6px; }
.theme-demo-title { text-align: center; }
.theme-demo-title small, .theme-demo-title strong { display: block; }
.theme-demo-title small { margin-bottom: 3px; color: #ba9a66; font-size: 6px; letter-spacing: 2.2px; }
.theme-demo-title strong { font: 17px var(--serif); font-weight: 400; }
.theme-demo-bar nav { justify-self: end; display: flex; align-items: center; gap: 7px; }
.theme-demo-arrow { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; font-size: 11px; transition: border-color .18s, background .18s; }
.theme-demo-arrow:hover { border-color: #c7a66d; background: rgba(199,166,109,.1); }
.theme-demo-choose { min-height: 38px; padding: 0 17px; display: inline-flex; align-items: center; margin-left: 5px; background: #b79258; color: #fff !important; font-size: 7px; font-weight: 700; letter-spacing: .9px; text-transform: uppercase; }
.theme-demo-watermark { position: fixed; z-index: 110; left: 18px; bottom: 18px; padding: 8px 11px; border: 1px solid rgba(255,255,255,.3); border-radius: 2px; background: rgba(32,31,27,.72); color: rgba(255,255,255,.78); font-size: 6px; letter-spacing: 1.8px; pointer-events: none; backdrop-filter: blur(7px); }
.theme-demo-page .wedding-music { bottom: 20px; }

/* Commerce, customer portal and domains */
.commerce-grid { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 18px; align-items: start; }
.commerce-main { display: grid; gap: 18px; }
.commerce-grid > aside { position: sticky; top: 90px; display: grid; gap: 18px; }
.order-workflow-panel { margin-bottom: 18px; }
.admin-workflow { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.admin-workflow article { min-height: 142px; padding: 19px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 12px; align-content: start; background: #fff; }
.admin-workflow article:nth-child(3n) { border-right: 0; }
.admin-workflow article > i { width: 29px; height: 29px; border-radius: 50%; display: grid; place-items: center; background: #eee9e2; color: #8d8173; font: normal 10px var(--serif); }
.admin-workflow article small, .admin-workflow article strong, .admin-workflow article p { display: block; }
.admin-workflow article small { margin-bottom: 5px; color: #9b8f80; font-size: 6px; letter-spacing: 1.2px; }
.admin-workflow article strong { font: 13px var(--serif); }
.admin-workflow article p { margin: 6px 0 0; color: var(--muted); font-size: 8px; line-height: 1.55; }
.admin-workflow article > a { grid-column: 2; width: fit-content; margin-top: 9px; color: var(--gold-deep); font-size: 7px; font-weight: 700; }
.admin-workflow article.done { background: #f6faf6; }
.admin-workflow article.done > i { background: #dcecdf; color: #4f7157; }
.admin-workflow article.current { position: relative; background: #fff8eb; box-shadow: inset 3px 0 var(--gold); }
.admin-workflow article.current > i { background: var(--gold); color: #fff; }
.admin-workflow article.current small { color: var(--gold-deep); font-weight: 800; }
.commerce-stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 18px; }
.commerce-stat-grid article { min-height: 115px; padding: 22px; border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; justify-content: space-between; }
.commerce-stat-grid small { color: var(--muted); font-size: 7px; letter-spacing: 1.4px; }
.commerce-stat-grid strong { font: 26px var(--serif); }
.commerce-stat-grid .compact-status { font-size: 16px; }
.order-list-row { grid-template-columns: 1fr 1.55fr .7fr .7fr 1fr .45fr; }
.order-list-row > span small { display: block; margin-top: 5px; color: var(--muted); font-size: 7px; }
.context-banner { padding: 12px 15px; border: 1px solid #dfd0ba; background: #faf2e6; color: #715a38; font-size: 10px; line-height: 1.6; }
.payment-list, .revision-list { display: grid; }
.payment-list article, .revision-list article { min-height: 74px; padding: 16px 19px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.payment-list article:first-child, .revision-list article:first-child { border-top: 0; }
.payment-list small, .revision-list small { display: block; color: var(--muted); margin-top: 5px; font-size: 7px; }
.revision-list article { align-items: flex-start; }
.revision-list article p { margin: 8px 0 0; color: #6f675e; font: 11px/1.6 var(--serif); }
.revision-list article form { display: flex; gap: 6px; }
.revision-list article input { min-width: 180px; border: 1px solid #ddd5ca; padding: 8px; font-size: 8px; }
.inline-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.inline-actions form { margin: 0; }
.manual-payment-area { border-bottom: 1px solid var(--line); }
.manual-payment-intro { margin-bottom: 15px; padding: 14px 16px; background: #f8f4ed; display: grid; gap: 5px; }
.manual-payment-intro strong { font: 13px var(--serif); }
.manual-payment-intro span { color: var(--muted); font-size: 8px; line-height: 1.6; }
.manual-payment-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
.manual-payment-form label { color: #6e665d; font-size: 7px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.manual-payment-form input, .manual-payment-form select { width: 100%; margin-top: 7px; border: 1px solid #ddd5ca; background: white; padding: 10px; color: var(--ink); }
.manual-payment-form .button { min-height: 40px; }
.payment-review-banner, .payment-complete-banner { padding: 15px; }
.payment-review-banner strong, .payment-complete-banner strong { display: block; margin-bottom: 4px; font: 13px var(--serif); }
.payment-complete-banner { border-color: #c9ddcd; background: #edf6ee; color: #4c6b52; }
.admin-payment-list article p { margin: 6px 0 0; color: var(--muted); font-size: 8px; }
.recorded-by-admin { padding: 6px 8px; background: #edf3ed; color: #54705a; font-size: 7px; }
.current-url-card { border-bottom: 1px solid var(--line); background: #faf7f1; }
.current-url-card > small { color: var(--gold-deep); font-size: 6px; letter-spacing: 1.2px; }
.current-url-card .copy-url { margin: 8px 0; }
.current-url-card > span { color: var(--muted); font-size: 7px; }
.domain-admin-form { border-bottom: 1px solid var(--line); }
.domain-admin-form label > small { display: block; margin-top: 5px; color: var(--muted); font-size: 7px; line-height: 1.5; }
.publish-url-box { display: grid; gap: 9px; }
.publish-url-box strong { font: 15px var(--serif); }
.publish-url-box p { margin: 0; color: var(--muted); font-size: 8px; line-height: 1.6; }
.publish-url-box form { margin: 0; }
.publish-url-box .button { width: 100%; }
.mini-action { border: 1px solid #cfc6ba; background: white; padding: 7px 9px; font-size: 7px; cursor: pointer; }
.mini-action.success { color: var(--green); border-color: #c5d8c8; }
.mini-action.danger { color: var(--red); border-color: #e3c8c3; }
.order-progress { display: grid; grid-template-columns: repeat(5,1fr); margin-bottom: 18px; border: 1px solid var(--line); background: #fff; }
.order-progress span { min-height: 70px; padding: 13px; display: flex; align-items: center; gap: 9px; border-right: 1px solid var(--line); color: #91877c; font-size: 8px; }
.order-progress span:last-child { border: 0; }
.order-progress i { width: 23px; height: 23px; border-radius: 50%; display: grid; place-items: center; background: #eee9e2; font: normal 9px var(--serif); }
.order-progress .active { color: #5d4930; background: #faf4ea; font-weight: 700; }
.order-progress .active i { background: var(--gold); color: white; }
.payment-instructions { display: grid; grid-template-columns: 1fr 190px; gap: 18px; align-items: center; }
.bank-card { min-height: 205px; padding: 27px; background: #292722; color: white; display: flex; flex-direction: column; justify-content: center; }
.bank-card small { color: #cbb285; font-size: 7px; letter-spacing: 1.5px; }
.bank-card strong { margin-top: 16px; font: 20px var(--serif); }
.bank-card b { margin: 10px 0; font: 28px var(--serif); letter-spacing: 2px; }
.bank-card span { color: #b9b2a9; font-size: 9px; }
.bank-card button { width: fit-content; margin-top: 20px; padding: 7px 11px; border: 1px solid rgba(255,255,255,.25); background: transparent; color: #dbc18f; font-size: 7px; cursor: pointer; }
.payment-qr { width: 190px; aspect-ratio: 1; object-fit: contain; border: 8px solid white; box-shadow: 0 10px 25px rgba(0,0,0,.08); }
.qr-placeholder { width: 190px; aspect-ratio: 1; border: 1px dashed #cfc3b3; display: grid; place-content: center; gap: 5px; padding: 18px; text-align: center; color: var(--muted); }
.qr-placeholder strong { font: 14px var(--serif); }
.qr-placeholder span { font-size: 7px; line-height: 1.5; }
.proof-form { grid-column: 1/-1; display: grid; grid-template-columns: repeat(3,1fr) auto; gap: 9px; align-items: end; }
.proof-form label, .revision-form label { color: #6e665d; font-size: 7px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.proof-form input, .revision-form textarea { width: 100%; margin-top: 7px; border: 1px solid #ddd5ca; background: white; padding: 10px; color: var(--ink); }
.revision-form { display: grid; gap: 10px; margin: 15px 0; }
.preview-actions { display: flex; justify-content: flex-end; margin-bottom: 15px; }
.policy-card ul { padding-left: 17px; color: #70685f; font: 10px/1.7 var(--serif); }
.policy-card li + li { margin-top: 12px; }
.order-summary-banner { margin: 0 0 18px; padding: 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; background: linear-gradient(115deg,#fff,#f7efe3); }
.order-summary-banner small { color: var(--gold); font-size: 7px; letter-spacing: 1px; }
.order-summary-banner h2 { margin: 5px 0; font: 20px var(--serif); }
.order-summary-banner p { margin: 0; color: var(--muted); font-size: 8px; }
.activation-banner { border: 1px solid #ddc99f; background: linear-gradient(120deg,#fffdf8,#f3e5ca); }
.activation-banner > div:first-child { max-width: 470px; }
.activation-actions { min-width: min(470px,45vw); display: grid; gap: 9px; justify-items: stretch; }
.activation-actions .button { justify-self: end; }
.account-active-banner { margin-bottom: 18px; border-color: #c9ddcd; background: #edf6ee; color: #4c6b52; }
.account-disabled-banner { margin-bottom: 18px; border-color: #e3c8c3; background: #f7eae7; color: #8b5149; }
.copy-url { display: flex; gap: 8px; align-items: center; }
.copy-url code { flex: 1; padding: 13px; background: #f5f0e8; color: #5d4d39; overflow-wrap: anywhere; font-size: 11px; }
.copy-url button { border: 1px solid #d5c9ba; background: white; padding: 12px; font-size: 8px; cursor: pointer; }
.domain-steps ol { margin: 0; padding-left: 22px; color: #665d53; font: 12px/1.8 var(--serif); }
.domain-steps li + li { margin-top: 8px; }
.badge-pending, .badge-deposit_review, .badge-balance_review { background: #f7edda; color: #86662f; }
.badge-verified, .order-status-completed { background: #e4f0e6; color: #52705a; }
.badge-rejected, .order-status-cancelled { background: #f3e3e0; color: #91594f; }
.order-status-deposit_pending, .order-status-balance_pending { background: #f7edda; color: #86662f; }
.order-status-production, .order-status-review, .order-status-approved, .order-status-deposit_review, .order-status-balance_review { background: #e6edf4; color: #526c83; }
.activity-list { display: grid; }
.activity-list article { min-height: 78px; padding: 15px 18px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 9px minmax(0,1fr) auto; gap: 14px; align-items: start; }
.activity-list article:first-child { border-top: 0; }
.activity-dot { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px #f1e8d9; }
.activity-list strong, .activity-list small, .activity-list code { display: block; }
.activity-list strong { font: 13px var(--serif); }
.activity-list small { margin-top: 5px; color: var(--muted); font-size: 7px; }
.activity-list code { width: fit-content; max-width: 100%; margin-top: 7px; padding: 5px 7px; background: #f6f1e9; color: #786b5b; overflow-wrap: anywhere; white-space: normal; font-size: 7px; }
.activity-list time { color: var(--muted); white-space: nowrap; font-size: 7px; }

/* Printable invoice */
.invoice-page { min-height: 100vh; padding: 35px; background: #eee9e1; }
.invoice-sheet { width: min(840px,100%); min-height: 1080px; margin: 0 auto; padding: 55px; background: white; box-shadow: 0 20px 55px rgba(60,45,29,.12); }
.invoice-sheet header { display: flex; justify-content: space-between; gap: 25px; padding-bottom: 35px; border-bottom: 1px solid var(--line); }
.invoice-brand { display: flex; gap: 15px; align-items: center; }
.invoice-brand img { width: 76px; height: 76px; object-fit: contain; }
.invoice-brand strong, .invoice-brand span { display: block; }
.invoice-brand strong { font: 23px var(--serif); }
.invoice-brand span { margin-top: 6px; color: var(--muted); font-size: 8px; letter-spacing: 1px; }
.invoice-title { text-align: right; }
.invoice-title small { color: var(--gold-deep); font-size: 8px; letter-spacing: 2px; }
.invoice-title h1 { margin: 8px 0; font: 25px var(--serif); }
.invoice-title span { color: var(--muted); font-size: 9px; }
.invoice-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 45px; padding: 38px 0; }
.invoice-parties > div { display: flex; flex-direction: column; gap: 6px; }
.invoice-parties small, .invoice-payment small { color: var(--gold-deep); font-size: 7px; letter-spacing: 1.5px; }
.invoice-parties strong { margin: 7px 0 3px; font: 16px var(--serif); }
.invoice-parties span { color: var(--muted); font-size: 9px; }
.invoice-table { width: 100%; border-collapse: collapse; }
.invoice-table th { padding: 12px; background: #292722; color: white; text-align: left; font-size: 8px; letter-spacing: 1px; }
.invoice-table th:last-child, .invoice-table td:last-child { text-align: right; }
.invoice-table td { padding: 16px 12px; border-bottom: 1px solid var(--line); font: 12px var(--serif); }
.invoice-table td small { display: block; margin-top: 5px; color: var(--muted); font: 7px var(--sans); }
.invoice-table .invoice-total td { font-weight: 700; }
.invoice-table .invoice-balance td { color: var(--gold-deep); font-size: 17px; }
.invoice-payment { display: grid; grid-template-columns: 1fr 1fr; gap: 35px; margin-top: 38px; padding: 25px; background: #f7f2ea; }
.invoice-payment.receipt-only { grid-template-columns: 1fr; }
.invoice-payment > div { display: flex; flex-direction: column; gap: 8px; }
.invoice-payment strong { font: 13px var(--serif); }
.invoice-payment span { color: var(--muted); font: 9px/1.5 var(--serif); }
.invoice-sheet footer { margin-top: 70px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; color: var(--muted); font: 11px var(--serif); }
.invoice-sheet footer button { border: 1px solid var(--ink); background: var(--ink); color: white; padding: 10px 14px; font: 8px var(--sans); cursor: pointer; }

@media print {
    .invoice-page { padding: 0; background: white; }
    .invoice-sheet { width: 100%; min-height: auto; box-shadow: none; }
    .invoice-sheet footer button { display: none; }
}

@keyframes breathe { 0%,100% { transform: scale(1); opacity: .7; } 50% { transform: scale(1.035); opacity: 1; } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pulse { 0%,100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(167,131,75,.2); } 50% { transform: scale(1.06); box-shadow: 0 0 0 8px rgba(167,131,75,0); } }
@keyframes invitationReveal { from { opacity: 0; } to { opacity: 1; } }

@media (min-width: 1100px) {
    .app-shell { grid-template-columns: 245px minmax(0,1fr); }
    .app-sidebar { padding: 29px 20px 20px; }
    .sidebar-nav p { font-size: 8px; }
    .sidebar-nav a { padding: 12px 10px; font-size: 12px; }
    .sidebar-user strong { font-size: 13px; }
    .app-topbar { height: 74px; padding-inline: 36px; }
    .app-topbar > div strong { font-size: 17px; }
    .app-topbar > a { font-size: 10px; }
    .app-content { padding: 36px 42px 70px; }
    .page-heading h1 { font-size: 38px; }
    .page-heading > div > span { font-size: 11px; }
    .editor-layout { grid-template-columns: minmax(0,1fr) 315px; gap: 20px; }
    .editor-main, .editor-side { gap: 20px; }
    .panel-heading h2 { font-size: 21px; }
    .panel-heading p { font-size: 10px; }
}

@media (max-width: 1050px) {
    .marketing-hero { grid-template-columns: 1fr; padding-top: 50px; }
    .marketing-copy { text-align: center; }
    .marketing-copy h1, .marketing-copy > p:not(.eyebrow) { margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
    .template-cards { grid-template-columns: 1fr 1fr; }
    .inquiry-section { grid-template-columns: 1fr; }
    .inquiry-copy { padding: 75px 45px; }
    .inquiry-form { margin: 0 45px 65px; }
    .contact-section { grid-template-columns: 1fr; gap: 45px; }
    .app-shell { grid-template-columns: 205px 1fr; }
    .stat-grid { grid-template-columns: repeat(2,1fr); }
    .editor-layout { grid-template-columns: 1fr 250px; }
    .gallery-style-options { grid-template-columns: 1fr 1fr; }
    .monogram-options { grid-template-columns: repeat(3,1fr); }
    .settings-layout { grid-template-columns: 1fr; }
    .settings-side { position: static; }
    .media-upload-panel, .music-upload-panel { grid-template-columns: 1fr 1fr; }
    .media-upload-panel > div, .music-upload-panel > div { grid-column: 1/-1; }
    .commerce-grid { grid-template-columns: 1fr; }
    .commerce-grid > aside { position: static; }
}

@media (max-width: 760px) {
    .public-header { height: 72px; }
    .public-header nav a:not(.nav-cta) { display: none; }
    .public-header .nav-cta { padding: 9px 12px; }
    .marketing-hero { padding: 55px 18px; min-height: auto; }
    .marketing-copy h1 { font-size: 55px; letter-spacing: -2px; }
    .hero-buttons { flex-direction: column; }
    .marketing-visual { height: 520px; margin: -10px -28px; transform: scale(.9); }
    .feature-strip { justify-content: flex-start; }
    .marketing-section { width: calc(100% - 30px); padding: 85px 0; }
    .section-copy { grid-template-columns: 1fr; gap: 20px; }
    .section-copy h2 { font-size: 44px; }
    .template-cards { grid-template-columns: 1fr; }
    .template-preview { height: 350px; }
    .marketing-flow { grid-template-columns: 1fr; }
    .marketing-flow > div, .marketing-flow ol { padding: 65px 22px; }
    .pricing-cards { grid-template-columns: 1fr; }
    .pricing-cards .featured { transform: none; }
    .promo-banner { align-items: flex-start; flex-wrap: wrap; }
    .promo-banner p { width: 100%; margin: 0 0 0 25px; }
    .inquiry-copy { padding: 65px 22px; }
    .inquiry-form { margin: 0; padding: 40px 20px; }
    .contact-section { width: calc(100% - 30px); padding: 80px 0; }
    .contact-options > a { grid-template-columns: 35px minmax(0,1fr) auto; }
    .contact-options strong { overflow-wrap: anywhere; }
    .floating-whatsapp { right: 14px; bottom: 14px; }
    .marketing-footer { grid-template-columns: 1fr; text-align: center; gap: 17px; padding: 30px 0; }
    .marketing-footer .brand { margin: 0 auto; }
    .marketing-footer p:last-child { justify-self: center; }
    .install-shell, .login-shell { grid-template-columns: 1fr; }
    .install-intro, .login-art { min-height: 390px; padding: 35px 24px; }
    .install-form-wrap, .login-form-wrap { padding: 40px 20px; }
    .requirement-grid, .form-grid { grid-template-columns: 1fr; }
    .app-shell { display: block; }
    .app-sidebar { position: fixed; inset: 0 auto 0 0; width: 230px; z-index: 50; transform: translateX(-105%); transition: transform .2s; box-shadow: 15px 0 35px rgba(0,0,0,.2); }
    .app-sidebar.open { transform: translateX(0); }
    .app-main { height: 100vh; }
    .mobile-menu { display: block; border: 0; background: none; font-size: 17px; }
    .app-topbar { padding: 0 15px; }
    .app-topbar > a { display: none; }
    .app-content { padding: 22px 14px 50px; }
    .page-heading { align-items: flex-start; flex-direction: column; }
    .heading-actions { width: 100%; }
    .heading-actions .button { flex: 1; }
    .stat-grid { gap: 7px; }
    .stat-grid article { min-height: 125px; padding: 14px; }
    .editor-layout, .two-column-page { grid-template-columns: 1fr; }
    .price-setting-grid { grid-template-columns: 1fr; }
    .editor-side, .compact-panel { position: static; }
    .section-checks { grid-template-columns: 1fr; }
    .gallery-settings-heading { align-items: flex-start; }
    .gallery-style-options { grid-template-columns: 1fr 1fr; }
    .monogram-builder-heading { grid-template-columns: 1fr; }
    .monogram-options { grid-template-columns: 1fr 1fr; }
    .media-grid { grid-template-columns: 1fr 1fr; }
    .media-upload-panel, .music-upload-panel { grid-template-columns: 1fr; }
    .uploaded-audio-summary { align-items: flex-start; flex-direction: column; }
    .wish-list article { grid-template-columns: auto 1fr; }
    .wish-actions { grid-column: 2; flex-wrap: wrap; }
    .wedding-cover h1 { flex-direction: column; gap: 5px; font-size: 58px; }
    .wedding-cover h1 i { padding: 8px 0; }
    .wedding-content > section { padding: 72px 17px; }
    .wedding-couple { flex-direction: column; gap: 8px; }
    .wedding-couple strong { font-size: 38px; }
    .wedding-countdown > div { gap: 9px; }
    .wedding-countdown span { min-width: 62px; }
    .wedding-countdown strong { font-size: 38px; }
    .wedding-event h2, .wedding-tentative h2, .wedding-gallery h2, .wedding-story h2, .wedding-rsvp h2, .wedding-wishes h2, .wedding-gift h2 { font-size: 34px; }
    .wedding-event-grid, .additional-events { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .gallery-fallback { grid-template-columns: .75fr 1.4fr .75fr; height: 320px; }
    .gallery-style-slider .gallery-slide { padding: 0; }
    .gallery-style-slider .gallery-slide img { height: min(62vh,560px); }
    .gallery-controls { grid-template-columns: 42px 1fr 42px; }
    .gallery-controls > div { display: none; }
    .gallery-controls > span { text-align: center; }
    .gallery-style-mosaic .gallery-track { grid-template-columns: 1fr 1fr; grid-auto-rows: 145px; gap: 7px; }
    .gallery-style-mosaic .gallery-slide:nth-child(6n+1), .gallery-style-mosaic .gallery-slide:nth-child(6n+4) { grid-column: span 2; grid-row: span 2; }
    .gallery-style-mosaic .gallery-slide:nth-child(6n+5) { grid-column: span 1; }
    .gallery-style-editorial .gallery-track { grid-template-columns: 1fr 1fr; gap: 19px 9px; }
    .gallery-style-editorial .gallery-slide { grid-column: span 1; padding: 7px 7px 20px; }
    .gallery-style-editorial .gallery-slide:nth-child(3n+2) { transform: translateY(14px) rotate(1.5deg); }
    .wedding-form-grid, .attendance-choice { grid-template-columns: 1fr; }
    .wedding-wishes > div { grid-template-columns: 1fr; }
    .wedding-music { right: 17px; bottom: 17px; }
    .theme-demo-page { padding-top: 62px; }
    .theme-demo-bar { min-height: 62px; padding: 8px 10px; grid-template-columns: auto 1fr auto; gap: 9px; }
    .theme-demo-back span { display: none; }
    .theme-demo-back { width: 32px; height: 32px; justify-content: center; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; }
    .theme-demo-title { text-align: left; min-width: 0; }
    .theme-demo-title strong { max-width: 115px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
    .theme-demo-title small { font-size: 5px; letter-spacing: 1.5px; }
    .theme-demo-arrow { width: 31px; height: 31px; }
    .theme-demo-choose { min-height: 33px; padding: 0 9px; margin-left: 0; font-size: 6px; letter-spacing: .5px; }
    .theme-demo-watermark { left: 10px; bottom: 10px; }
    .commerce-stat-grid { grid-template-columns: 1fr 1fr; }
    .admin-workflow { grid-template-columns: 1fr; }
    .admin-workflow article, .admin-workflow article:nth-child(3n) { min-height: 0; border-right: 0; }
    .manual-payment-form { grid-template-columns: 1fr; }
    .order-progress { grid-template-columns: 1fr; }
    .order-progress span { min-height: 48px; border-right: 0; border-bottom: 1px solid var(--line); }
    .payment-instructions { grid-template-columns: 1fr; }
    .payment-qr, .qr-placeholder { width: min(220px,100%); justify-self: center; }
    .proof-form { grid-template-columns: 1fr; }
    .payment-list article, .revision-list article { align-items: flex-start; flex-direction: column; }
    .revision-list article form { width: 100%; flex-direction: column; }
    .revision-list article input { width: 100%; min-width: 0; }
    .order-summary-banner { align-items: flex-start; flex-direction: column; }
    .activation-actions { width: 100%; min-width: 0; }
    .activation-actions .button { width: 100%; justify-self: stretch; }
    .copy-url { align-items: stretch; flex-direction: column; }
    .activity-list article { grid-template-columns: 9px minmax(0,1fr); }
    .activity-list time { grid-column: 2; }
    .personal-link-list article { grid-template-columns: 28px minmax(0,1fr); }
    .guest-actions { grid-column: 2; flex-wrap: wrap; }
    .invoice-page { padding: 0; }
    .invoice-sheet { min-height: 100vh; padding: 28px 20px; box-shadow: none; }
    .invoice-sheet header, .invoice-parties, .invoice-payment { grid-template-columns: 1fr; flex-direction: column; }
    .invoice-title { text-align: left; }
}

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