: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 { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); }
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; }

.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-preview { grid-column: 1/-1; height: 390px; display: grid; place-items: center; position: relative; overflow: hidden; }
.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: rgba(255,252,247,.82); 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-modern-luxury .template-preview { background: url("../images/modern-luxury-hero.png") center/cover; }
.template-garden-romance .template-preview { background: linear-gradient(145deg,#d3dfd2,#f6e7e1 60%,#d2c8b9); }
.template-seri-klasik .template-preview { color: #d6b472; background-color: #2d3931; background-image: linear-gradient(45deg,rgba(205,168,94,.14) 25%,transparent 25%,transparent 75%,rgba(205,168,94,.14) 75%); background-size: 36px 36px; }
.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); }
.pricing-cards strong { margin-top: auto; font: 21px var(--serif); }
.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; }
.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 {
    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 {
    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; }
.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 { height: 100vh; display: grid; grid-template-columns: 230px 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: 10px var(--serif); }
.sidebar-user small { color: #8f8a83; font-size: 6px; 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: 6px; letter-spacing: 1.6px; }
.sidebar-nav a { display: flex; align-items: center; gap: 10px; padding: 10px; color: #aaa69f; text-decoration: none; font-size: 8px; 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: 10px; text-align: left; font-size: 8px; cursor: pointer; }
.sidebar-logout span { color: #aa8652; margin-right: 9px; }
.app-main { min-width: 0; background: #f3f1ec; overflow-y: auto; }
.app-topbar { 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: 6px; letter-spacing: 1.7px; }
.app-topbar > div strong { margin-top: 4px; font: 13px var(--serif); }
.app-topbar > a { color: #7d746a; text-decoration: none; font-size: 7px; }
.mobile-menu { display: none; }
.app-main > .flash { margin: 14px 30px 0; }
.app-content { padding: 30px 35px 60px; }
.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: 31px var(--serif); }
.page-heading > div > span { color: var(--muted); font-size: 8px; }
.heading-actions { display: flex; gap: 7px; }
.stat-grid { display: grid; grid-template-columns: repeat(4,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: 17px var(--serif); }
.panel-heading p { color: #91887e; margin: 4px 0 0; font-size: 7px; }
.panel-heading > a { color: #876638; text-decoration: none; font-size: 7px; }
.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: 7px; 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; }
.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 .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 { color: #4d3b22; background: #faf6ee; }
.wedding-cover {
    min-height: 100vh; padding: 55px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; position: relative; overflow: hidden; background: linear-gradient(rgba(255,252,247,.12),rgba(255,250,241,.25)),var(--hero-image) center/cover;
}
.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-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.revealed { animation: invitationReveal .7s ease both; }
.theme-midnight .wedding-cover { color: #e5ca94; background: linear-gradient(rgba(19,21,19,.75),rgba(17,18,17,.88)),var(--hero-image) center/cover; }
.invitation-garden-romance .wedding-cover { color: #48604b; background: linear-gradient(145deg,#d5e2d3,#f7e7e1 60%,#cddacd); }
.invitation-seri-klasik .wedding-cover { color: #e0c48e; background-color: #29352d; background-image: linear-gradient(45deg,rgba(207,171,98,.13) 25%,transparent 25%,transparent 75%,rgba(207,171,98,.13) 75%); background-size: 45px 45px; }
.wedding-content > section { 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-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 { min-height: 300px; border: 0; background: linear-gradient(rgba(255,252,247,.18),rgba(255,250,241,.3)),var(--hero-image) center/cover; 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; }

@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; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@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; }
    .template-card:last-child { grid-column: span 2; max-width: calc(50% - 9px); }
    .app-shell { grid-template-columns: 205px 1fr; }
    .stat-grid { grid-template-columns: repeat(2,1fr); }
    .editor-layout { grid-template-columns: 1fr 250px; }
    .media-upload-panel { grid-template-columns: 1fr 1fr; }
    .media-upload-panel > div { grid-column: 1/-1; }
}

@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-card:last-child { grid-column: auto; max-width: none; }
    .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; }
    .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; }
    .editor-side, .compact-panel { position: static; }
    .section-checks { grid-template-columns: 1fr; }
    .media-grid { grid-template-columns: 1fr 1fr; }
    .media-upload-panel { grid-template-columns: 1fr; }
    .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; }
    .wedding-form-grid, .attendance-choice { grid-template-columns: 1fr; }
    .wedding-wishes > div { grid-template-columns: 1fr; }
    .wedding-music { right: 17px; bottom: 17px; }
}

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