/* ==========================================================================
   Public site
   Design tokens are shared with the mobile app theme; keep names in sync.
   ========================================================================== */

:root {
    --ivory: #FBF7F2;
    --paper: #FFFFFF;
    --sand: #F3ECE4;
    --ink: #1E1A22;
    --ink-2: #463F4C;
    --muted: #7A7180;
    --line: #EAE1D8;

    --berry: #8E2F4E;
    --berry-600: #74243F;
    --berry-50: #F7E9EE;
    --gold: #B8894A;
    --sage: #5F7D68;
    --sage-50: #EAF1EC;

    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 24px;
    --r-xl: 32px;

    --shadow-sm: 0 1px 2px rgba(30, 26, 34, .06), 0 2px 8px rgba(30, 26, 34, .04);
    --shadow-md: 0 4px 12px rgba(30, 26, 34, .06), 0 16px 40px rgba(30, 26, 34, .08);
    --shadow-lg: 0 24px 70px rgba(62, 24, 40, .18);

    --container: 1160px;
    --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--ivory);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.015em;
    margin: 0 0 .5em;
    font-variation-settings: "opsz" 96;
}

h1 { font-size: clamp(2.4rem, 6.2vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.35rem; }
h1 em, h2 em { font-style: italic; color: var(--berry); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
    display: inline-block;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--berry);
    margin-bottom: 14px;
}

.lead { font-size: 1.14rem; color: var(--ink-2); max-width: 36em; }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

.section { padding: 72px 0; }
.section-sand { background: var(--sand); }
.section-head { margin-bottom: 40px; }

@media (min-width: 900px) {
    .section { padding: 110px 0; }
    .section-head { margin-bottom: 56px; }
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    border: 1px solid transparent;
    font: 600 .98rem/1 var(--font-body);
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--berry); color: #fff; box-shadow: 0 6px 18px rgba(142, 47, 78, .28); }
.btn-primary:hover { background: var(--berry-600); }
.btn-ghost { border-color: var(--line); background: var(--paper); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--berry); }
.btn-light:hover { background: var(--berry-50); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn i { font-size: 1.05em; }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(251, 247, 242, .86);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }

.logo { font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; letter-spacing: -0.02em; }
.logo span { color: var(--berry); font-style: italic; }
.logo small { font-family: var(--font-body); font-size: .8rem; font-weight: 500; color: var(--muted); margin-left: 1px; }

.nav-links { display: none; gap: 30px; font-weight: 500; font-size: .96rem; color: var(--ink-2); }
.nav-links a:hover, .nav-links a.is-active { color: var(--berry); }
.nav-actions { display: none; align-items: center; gap: 12px; }
.nav-actions .link { font-weight: 500; font-size: .96rem; }

.nav-mobile { position: relative; }
.nav-mobile summary {
    list-style: none;
    width: 44px; height: 44px;
    display: grid; place-items: center;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.5rem;
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile[open] summary { background: var(--sand); }
.nav-mobile-panel {
    position: absolute;
    right: 0;
    top: 54px;
    width: min(88vw, 320px);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-md);
    padding: 10px;
    display: grid;
    gap: 2px;
}
.nav-mobile-panel a:not(.btn) { padding: 12px 14px; border-radius: 10px; font-weight: 500; }
.nav-mobile-panel a:not(.btn):hover { background: var(--ivory); }
.nav-mobile-panel .btn { margin-top: 8px; }

@media (min-width: 960px) {
    .nav-links, .nav-actions { display: flex; }
    .nav-mobile { display: none; }
}

/* ---------- Hero ---------- */

.hero { padding: 40px 0 72px; overflow: hidden; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { margin-bottom: 30px; }

.hero-proof { display: flex; align-items: center; gap: 12px; margin-top: 28px; font-size: .92rem; color: var(--muted); flex-wrap: wrap; }
.hero-proof i { color: var(--sage); }
.hero-proof span { display: inline-flex; align-items: center; gap: 6px; }

.hero-visual { position: relative; display: flex; justify-content: center; padding: 10px 0 30px; }
.hero-visual::before {
    content: "";
    position: absolute;
    width: 420px; height: 420px;
    max-width: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, var(--berry-50) 0%, rgba(247, 233, 238, 0) 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}

@media (min-width: 960px) {
    .hero { padding: 64px 0 110px; }
    .hero-grid { grid-template-columns: 1.08fr .92fr; gap: 40px; }
}

/* ---------- Phone mockup ---------- */

.phone {
    position: relative;
    width: 270px;
    aspect-ratio: 9 / 19.2;
    border-radius: 44px;
    background: #16121A;
    padding: 11px;
    box-shadow: var(--shadow-lg), inset 0 0 0 2px #2A2430;
    flex-shrink: 0;
}
.phone::before {
    content: "";
    position: absolute;
    top: 20px; left: 50%;
    width: 84px; height: 24px;
    transform: translateX(-50%);
    background: #16121A;
    border-radius: 20px;
    z-index: 2;
}
.phone-screen {
    width: 100%; height: 100%;
    border-radius: 34px;
    overflow: hidden;
    background: var(--sand);
}
.phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone-screen video { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.phone-sm { width: 210px; border-radius: 36px; padding: 9px; }

/* the envelope opening on the home page: right under the templates, on the same sand */
.envelope-section { padding-top: 8px; }
.envelope-showcase { display: flex; justify-content: center; }
.phone-sm .phone-screen { border-radius: 28px; }
.phone-sm::before { top: 16px; width: 64px; height: 18px; }

.placeholder-art {
    width: 100%; height: 100%;
    display: grid; place-items: center;
    background: linear-gradient(160deg, var(--berry-50), var(--sand));
    font-family: var(--font-display);
    color: var(--berry);
    font-size: 1.6rem;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* Floating RSVP notification */
.notif {
    position: absolute;
    display: flex;
    gap: 12px;
    align-items: center;
    background: rgba(255, 255, 255, .96);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 12px 16px 12px 12px;
    box-shadow: var(--shadow-md);
    font-size: .86rem;
    line-height: 1.35;
    z-index: 3;
    max-width: 260px;
}
.notif-icon {
    width: 38px; height: 38px;
    border-radius: 11px;
    display: grid; place-items: center;
    background: var(--berry);
    color: #fff;
    font-size: 1.05rem;
    flex-shrink: 0;
}
.notif strong { display: block; font-size: .88rem; }
.notif .muted { font-size: .8rem; }
.notif-a { top: 18%; left: -4%; animation: float 6s ease-in-out infinite; }
.notif-b { bottom: 14%; right: -2%; animation: float 6s ease-in-out 1.5s infinite; }
.notif-b .notif-icon { background: var(--sage); }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (max-width: 520px) {
    .notif-a { left: 0; top: 8%; }
    .notif-b { right: 0; bottom: 6%; }
    .notif { max-width: 220px; }
}
@media (prefers-reduced-motion: reduce) { .notif { animation: none; } }

/* ---------- Categories ---------- */

.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.cat-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 22px 20px;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }
.cat-card i { font-size: 1.6rem; color: var(--berry); }
.cat-card h3 { margin: 12px 0 4px; font-size: 1.2rem; }
.cat-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.cat-card .count { font-size: .8rem; font-weight: 600; color: var(--sage); }

@media (min-width: 800px) { .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

/* ---------- Steps ---------- */

.steps { display: grid; gap: 18px; counter-reset: step; }
.step {
    background: var(--paper);
    border-radius: var(--r-lg);
    padding: 28px;
    border: 1px solid var(--line);
    position: relative;
}
.step::before {
    counter-increment: step;
    content: counter(step);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    width: 40px; height: 40px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: var(--berry-50);
    color: var(--berry);
    margin-bottom: 18px;
}
.step p { color: var(--ink-2); margin: 0; }

@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

/* ---------- Template cards ---------- */

.tpl-grid { display: grid; gap: 22px; }
@media (min-width: 640px) { .tpl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tpl-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; } }

.tpl-card {
    background: var(--paper);
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    transition: transform .25s, box-shadow .25s;
    display: flex;
    flex-direction: column;
}
.tpl-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tpl-thumb {
    position: relative;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: var(--sand);
}
.tpl-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s; }
.tpl-card:hover .tpl-thumb img { transform: scale(1.03); }
.tpl-badge {
    position: absolute;
    top: 14px; left: 14px;
    background: rgba(255, 255, 255, .94);
    border-radius: 999px;
    padding: 5px 12px;
    font-size: .76rem;
    font-weight: 600;
}
.tpl-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.tpl-body h3 { margin-bottom: 4px; }
.tpl-body p { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }
.tpl-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tpl-price { font-size: .9rem; color: var(--muted); }
.tpl-price strong { color: var(--ink); font-size: 1.05rem; }

/* ---------- Filter chips ---------- */

.chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 32px;
    scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
/* With a mouse there is no way to scroll a row whose scrollbar is hidden: on wider screens the chips wrap onto
   more rows; on phones the row still swipes sideways */
@media (min-width: 768px), (hover: hover) and (pointer: fine) {
    .chips { flex-wrap: wrap; overflow-x: visible; }
}
.chip {
    flex-shrink: 0;
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--paper);
    font-size: .92rem;
    font-weight: 500;
    color: var(--ink-2);
}
.chip:hover { border-color: var(--ink-2); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip small { opacity: .6; margin-left: 4px; }
.chips-soft { margin-top: -18px; }
.chips-soft .chip { padding: 6px 14px; font-size: .86rem; background: transparent; }
.chips-soft .chip.is-active { background: var(--berry-50); border-color: var(--berry); color: var(--berry); }

.empty {
    text-align: center;
    padding: 64px 20px;
    background: var(--paper);
    border: 1px dashed var(--line);
    border-radius: var(--r-lg);
}
.empty i { font-size: 2.4rem; color: var(--gold); }

/* ---------- Features ---------- */

.feature-grid { display: grid; gap: 28px; }
.feature i {
    width: 48px; height: 48px;
    border-radius: 14px;
    display: grid; place-items: center;
    background: var(--berry-50);
    color: var(--berry);
    font-size: 1.3rem;
    margin-bottom: 16px;
}
.feature h3 { font-size: 1.2rem; }
.feature p { color: var(--ink-2); margin: 0; font-size: .96rem; }
@media (min-width: 700px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .feature-grid { grid-template-columns: repeat(3, 1fr); gap: 40px 36px; } }
/* A lone last feature sits in the middle column, not under the first one */
@media (min-width: 1000px) { .feature-grid > .feature:last-child:nth-child(3n+1) { grid-column: 2; } }
@media (min-width: 700px) and (max-width: 999px) { .feature-grid > .feature:last-child:nth-child(odd) { grid-column: 1 / -1; max-width: calc(50% - 14px); justify-self: center; } }

/* ---------- Split (text + visual) ---------- */

.split { display: grid; gap: 44px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; } }

.checklist { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.checklist i { color: var(--sage); font-size: 1.15rem; line-height: 1.4; }

/* Mini RSVP dashboard card */
.rsvp-card {
    background: var(--paper);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-md);
    padding: 24px;
    border: 1px solid var(--line);
}
.rsvp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.rsvp-stat { background: var(--ivory); border-radius: 14px; padding: 14px 10px; text-align: center; }
.rsvp-stat strong { display: block; font-family: var(--font-display); font-size: 1.7rem; font-weight: 500; line-height: 1.1; }
.rsvp-stat span { font-size: .78rem; color: var(--muted); }
.rsvp-stat.yes strong { color: var(--sage); }
.rsvp-stat.no strong { color: var(--berry); }
.rsvp-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: .92rem; }
.avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: var(--sand);
    font-weight: 600;
    font-size: .8rem;
    color: var(--ink-2);
    flex-shrink: 0;
}
.rsvp-row .who { flex: 1; min-width: 0; }
.rsvp-row .who small { display: block; color: var(--muted); font-size: .8rem; }
.pill { font-size: .75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pill-yes { background: var(--sage-50); color: var(--sage); }
.pill-no { background: var(--berry-50); color: var(--berry); }

/* ---------- Pricing ---------- */

.price-grid { display: grid; gap: 20px; align-items: stretch; }
@media (min-width: 900px) { .price-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.price-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    position: relative;
}
.price-card.is-featured {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
    box-shadow: var(--shadow-lg);
}
.price-card.is-featured .muted, .price-card.is-featured .price-list li { color: rgba(255, 255, 255, .78); }
.price-card.is-featured .price-list i { color: #E7B9C8; }
.price-tag {
    position: absolute;
    top: -13px; left: 28px;
    background: var(--gold);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 999px;
}
.price-card h3 { font-size: 1.5rem; margin-bottom: 6px; }
.price-amount { font-family: var(--font-display); font-size: 3rem; font-weight: 500; line-height: 1; margin: 18px 0 6px; }
.price-amount small { font-family: var(--font-body); font-size: 1rem; font-weight: 500; }
.price-list { list-style: none; padding: 0; margin: 24px 0 30px; display: grid; gap: 11px; }
.price-list li { display: flex; gap: 10px; font-size: .95rem; color: var(--ink-2); }
.price-list i { color: var(--sage); }
.price-card .btn { margin-top: auto; }

.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); }
.compare { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .94rem; }
.compare th, .compare td { padding: 14px 18px; text-align: center; border-bottom: 1px solid var(--line); }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { font-family: var(--font-display); font-size: 1.1rem; font-weight: 500; background: var(--ivory); }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare .group td { background: var(--ivory); font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.compare .yes { color: var(--sage); font-size: 1.2rem; }
.compare .no { color: #C9BFC6; }

/* ---------- FAQ ---------- */

.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 0 22px;
}
.faq summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 0;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--berry); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding-bottom: 20px; margin: 0; }

/* ---------- CTA band ---------- */

.cta-band {
    background: var(--berry);
    color: #fff;
    border-radius: var(--r-xl);
    padding: 48px 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-band::after {
    content: "";
    position: absolute;
    width: 380px; height: 380px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .15);
    right: -120px; top: -160px;
}
.cta-band h2 { color: #fff; }
.cta-band h2 em { color: #F4C9D6; }
.cta-band p { color: rgba(255, 255, 255, .82); max-width: 34em; margin: 0 auto 28px; }
.cta-band .btn-row { justify-content: center; }
.store-badges { display: flex; gap: 10px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.store-badge {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 12px;
    padding: 8px 14px;
    font-size: .8rem;
    color: rgba(255, 255, 255, .9);
}
.store-badge i { font-size: 1.3rem; }
a.store-badge { text-decoration: none; background: rgba(255, 255, 255, .08); transition: background .2s, border-color .2s; }
a.store-badge:hover, a.store-badge:focus-visible { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .7); color: #fff; }
@media (min-width: 800px) { .cta-band { padding: 72px 48px; } }

/* ---------- Template detail ---------- */

.breadcrumb { font-size: .88rem; color: var(--muted); margin: 18px 0 26px; }
.breadcrumb a:hover { color: var(--berry); }

.tpl-detail { display: grid; gap: 40px; }
@media (min-width: 1000px) { .tpl-detail { grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: start; } }

.showcase { position: relative; padding-bottom: 60px; }
.browser {
    background: var(--paper);
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--line);
}
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--sand); }
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: #D9CEC4; }
.browser-bar .url {
    flex: 1;
    margin-left: 10px;
    background: var(--paper);
    border-radius: 8px;
    padding: 4px 12px;
    font-size: .78rem;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.browser img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.showcase .phone { position: absolute; right: 4%; bottom: 0; }
@media (max-width: 640px) { .showcase { padding-bottom: 0; } .showcase .phone { display: none; } }

.tpl-info { position: sticky; top: 96px; }
.tpl-info .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tag { font-size: .78rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--berry-50); color: var(--berry); }
.tag-soft { background: var(--sand); color: var(--ink-2); }
.tpl-info .from { margin: 22px 0; padding: 18px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); display: flex; justify-content: space-between; align-items: center; }
.tpl-info .from strong { font-family: var(--font-display); font-size: 1.8rem; font-weight: 500; }
.tpl-info .btn-row .btn { flex: 1; }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: rgba(255, 255, 255, .72); padding: 64px 0 32px; margin-top: 40px; font-size: .94rem; }
.site-footer .logo { color: #fff; }
.site-footer .logo span { color: #E7B9C8; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: repeat(2, 1fr); }
.footer-grid > :first-child { grid-column: 1 / -1; }
.footer-grid h4 { font-family: var(--font-body); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a:hover { color: #fff; }
.footer-grid .footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); font-size: 1.05rem; transition: background .15s, border-color .15s; }
.footer-social a:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .5); }
.footer-store { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; padding: 8px 16px 8px 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .22); color: #fff; text-decoration: none; line-height: 1.2; transition: background .15s, border-color .15s; }
.footer-store:hover, .footer-store:focus-visible { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .5); color: #fff; }
.footer-store i { font-size: 1.45rem; }
.footer-store span { display: flex; flex-direction: column; font-weight: 600; font-size: .92rem; }
.footer-store small { font-weight: 400; font-size: .72rem; color: rgba(255, 255, 255, .65); letter-spacing: .02em; }
.footer-anpc { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.anpc-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 8px; color: #fff; text-decoration: none; font-size: .78rem; line-height: 1.2; }
.anpc-badge strong { font-size: .9rem; letter-spacing: .06em; }
.anpc-badge:hover { border-color: rgba(255, 255, 255, .6); }
.footer-anpc + .footer-bottom { margin-top: 24px; }
.footer-heart { color: #E7B9C8; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .84rem; }
@media (min-width: 900px) {
    .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
    .footer-grid > :first-child { grid-column: auto; }
}

/* ---------- Page header ---------- */

.page-head { padding: 48px 0 8px; }
@media (min-width: 900px) { .page-head { padding: 72px 0 16px; } }

:focus-visible { outline: 2px solid var(--berry); outline-offset: 3px; border-radius: 6px; }

/* ---------- Forms / checkout ---------- */

.checkout { display: grid; gap: 28px; align-items: start; }
.checkout > * { min-width: 0; } /* let the scrollable template picker shrink instead of widening the grid */
@media (min-width: 1000px) { .checkout { grid-template-columns: 1fr 360px; gap: 40px; } }

.form-section {
    border: 1px solid var(--line);
    background: var(--paper);
    border-radius: var(--r-lg);
    padding: 22px 20px 24px;
    margin: 0 0 18px;
    min-width: 0;
}
@media (min-width: 700px) { .form-section { padding: 28px 30px 30px; } }
.form-section legend {
    float: left;
    width: 100%;
    padding: 0;
    margin-bottom: 18px;
    font-family: var(--font-display);
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    gap: 12px;
}
.form-section legend + * { clear: both; }
.num {
    width: 30px; height: 30px;
    border-radius: 50%;
    display: inline-grid; place-items: center;
    background: var(--berry-50);
    color: var(--berry);
    font-family: var(--font-body);
    font-size: .88rem;
    font-weight: 700;
    flex-shrink: 0;
}

.field { margin-bottom: 16px; min-width: 0; }
.field:last-child { margin-bottom: 0; }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.optional { font-weight: 400; color: var(--muted); }

.field input[type=text], .field input[type=email], .field input[type=tel],
.field input[type=date], .field input[type=password] {
    width: 100%;
    height: 50px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--ivory);
    font: 400 1rem var(--font-body);
    color: var(--ink);
    transition: border-color .15s, box-shadow .15s, background .15s;
    -webkit-appearance: none;
    appearance: none;
}
.field input:focus { outline: none; border-color: var(--berry); background: #fff; box-shadow: 0 0 0 4px var(--berry-50); }
.field input.is-invalid { border-color: #C2413B; }

.subdomain-input {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--ivory);
    overflow: hidden;
    transition: border-color .15s, box-shadow .15s;
}
.subdomain-input:focus-within { border-color: var(--berry); box-shadow: 0 0 0 4px var(--berry-50); background: #fff; }
.subdomain-input.is-invalid { border-color: #C2413B; }
.subdomain-input.is-valid { border-color: var(--sage); }
.field .subdomain-input input { border: 0; border-radius: 0; background: transparent; box-shadow: none; flex: 1; min-width: 0; }
.subdomain-input .suffix {
    display: flex; align-items: center;
    padding: 0 14px;
    background: var(--sand);
    color: var(--ink-2);
    font-size: .92rem;
    white-space: nowrap;
    max-width: 55%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.password-input { position: relative; }
.field .password-input input { padding-right: 48px; }
.toggle-pass {
    position: absolute; right: 4px; top: 4px;
    width: 42px; height: 42px;
    border: 0; background: none; cursor: pointer;
    color: var(--muted); font-size: 1.1rem;
    border-radius: 10px;
}

.hint, .field-status { font-size: .85rem; color: var(--muted); margin: 6px 0 0; }
.hint a, .check a, .account-note a { color: var(--berry); font-weight: 600; }
.field-status.is-ok { color: var(--sage); font-weight: 600; }
.field-status.is-error, .field-error { color: #C2413B; font-size: .85rem; margin: 6px 0 0; }

.alert { border-radius: var(--r-md); padding: 14px 18px; margin-bottom: 18px; display: flex; gap: 12px; justify-content: space-between; flex-wrap: wrap; }
.alert-error { background: #FBEAE8; color: #8A2C26; }
.alert-error a { color: #8A2C26; font-weight: 700; }
.alert-info { background: var(--sage-50); color: #3F5A47; }

.account-note { margin: 0; display: flex; gap: 10px; align-items: center; color: var(--ink-2); }
.account-note i { color: var(--sage); font-size: 1.3rem; }

/* Radio cards */
.option-grid { display: grid; gap: 12px; }
@media (min-width: 700px) { .option-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); } }
.option-card { position: relative; cursor: pointer; display: block; }
.option-card input, .tpl-option input { position: absolute; opacity: 0; pointer-events: none; }
.option-body {
    display: flex; flex-direction: column; gap: 6px;
    height: 100%;
    padding: 16px 18px;
    border: 1.5px solid var(--line);
    border-radius: var(--r-md);
    background: var(--ivory);
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.option-card:hover .option-body { border-color: var(--ink-2); }
.option-card input:checked + .option-body { border-color: var(--berry); background: #fff; box-shadow: 0 0 0 4px var(--berry-50); }
.option-card input:focus-visible + .option-body { outline: 2px solid var(--berry); outline-offset: 2px; }
/* a free coupon comes with its own package: the others step back */
.option-card.is-unavailable { opacity: .45; pointer-events: none; }
/* a free invitation needs no payment, billing or withdrawal consent */
[data-pay-block][hidden] { display: none !important; }

/* coupon code at checkout */
.coupon-row { display: flex; gap: 8px; }
.coupon-row input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .06em; }
.coupon-row .btn { flex: none; }
.hint.coupon-ok { color: var(--sage); font-weight: 600; }
.option-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.option-price { font-family: var(--font-display); font-size: 1.2rem; white-space: nowrap; }
.option-price small { font-family: var(--font-body); font-size: .78rem; }
.option-desc { font-size: .84rem; color: var(--muted); line-height: 1.45; }

/* Template picker */
.tpl-picker {
    display: flex; gap: 12px;
    overflow-x: auto;
    padding: 4px 4px 10px;
    margin: 0 -4px;
    scroll-snap-type: x mandatory;
}
.tpl-option { flex: 0 0 104px; cursor: pointer; scroll-snap-align: start; text-align: center; position: relative; }
.tpl-option-img {
    display: block;
    aspect-ratio: 9 / 16;
    border-radius: 14px;
    overflow: hidden;
    background: var(--sand);
    border: 2px solid transparent;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.tpl-option-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.tpl-option:hover .tpl-option-img { transform: translateY(-2px); }
.tpl-option input:checked ~ .tpl-option-img { border-color: var(--berry); box-shadow: 0 0 0 4px var(--berry-50); }
.tpl-option input:focus-visible ~ .tpl-option-img { outline: 2px solid var(--berry); outline-offset: 2px; }
.tpl-option-name { display: block; font-size: .86rem; font-weight: 600; margin-top: 8px; }

.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; font-size: .92rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--berry); flex-shrink: 0; }

/* Summary */
.checkout-summary { position: sticky; top: 90px; }
.summary-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.summary-top { display: flex; gap: 18px; align-items: center; }
.phone-xs { width: 92px; border-radius: 20px; padding: 5px; box-shadow: var(--shadow-md), inset 0 0 0 1px #2A2430; }
.phone-xs::before { display: none; }
.phone-xs .phone-screen { border-radius: 15px; }
.sum-host { margin: 0; font-weight: 600; font-size: .92rem; word-break: break-all; }
.sum-host span { color: var(--muted); font-weight: 400; }
.summary-lines { margin: 22px 0; display: grid; gap: 0; }
.summary-lines > div[hidden] { display: none; }
.summary-lines > div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .94rem; }
.summary-lines dt { color: var(--muted); }
.summary-lines dt strong { color: var(--ink); font-weight: 600; margin-left: 4px; }
.summary-lines dd { margin: 0; text-align: right; font-weight: 500; }
.summary-lines .total dt { color: var(--ink); font-weight: 600; }
.summary-lines .total dd { font-family: var(--font-display); font-size: 1.6rem; font-weight: 500; line-height: 1.1; }
.btn[disabled] { opacity: .6; cursor: default; }

@media (max-width: 999px) {
    .checkout-summary { position: static; }
}

/* Thanks page */
.thanks-icon {
    width: 64px; height: 64px;
    border-radius: 20px;
    display: grid; place-items: center;
    background: var(--berry-50);
    color: var(--berry);
    font-size: 1.9rem;
    margin-bottom: 20px;
}
.thanks-icon.is-live { background: var(--sage-50); color: var(--sage); }
.instructions {
    white-space: pre-line;
    background: var(--ivory);
    border-radius: var(--r-md);
    padding: 16px 18px;
    font-size: .95rem;
    font-family: ui-monospace, "SF Mono", Consolas, monospace;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

/* Legal pages */
.prose { color: var(--ink-2); }
.prose h2 { font-size: 1.4rem; color: var(--ink); margin: 2em 0 .6em; }
.prose a { color: var(--berry); font-weight: 600; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* ---------- Content pages and blog ---------- */

.landing-head .lead { max-width: 40em; }
.landing-prose, .post-prose { max-width: 720px; margin: 0 auto; font-size: 1.06rem; line-height: 1.75; }
.landing-prose h2, .post-prose h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); margin: 1.8em 0 .55em; }
.landing-prose > :first-child, .post-prose > :first-child { margin-top: 0; }
.post-prose h3 { font-size: 1.2rem; color: var(--ink); margin: 1.6em 0 .5em; }
.post-prose img { border-radius: var(--r-md); margin: 1.6em auto; height: auto; }
.post-prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--berry); font-family: var(--font-display); font-size: 1.2rem; color: var(--ink); }
.prose strong { color: var(--ink); }
.prose ol { padding-left: 1.3em; }

.post-container { max-width: 760px; }
.post-faq { max-width: 720px; margin: 48px auto 0; }
.post-faq h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); }
.post-head .lead { max-width: none; }
.post-meta { font-size: .85rem; color: var(--muted); margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 4px; }
.post-meta a { color: var(--berry); font-weight: 600; }
.post-cover-wrap { max-width: 1000px; }
.post-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-lg); }

.post-cta {
    margin: 48px auto 0;
    max-width: 720px;
    padding: 24px;
    border-radius: var(--r-lg);
    background: var(--berry-50);
    display: grid;
    gap: 16px;
}
.post-cta strong { font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; color: var(--ink); }
.post-cta p { margin: 6px 0 0; color: var(--ink-2); }
@media (min-width: 720px) { .post-cta { grid-template-columns: 1fr auto; align-items: center; padding: 28px 32px; } }

.post-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.post-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.post-card__cover { display: block; aspect-ratio: 16 / 9; background: var(--sand); }
.post-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.post-card__art { width: 100%; height: 100%; display: grid; place-items: center; color: var(--berry); font-size: 1.4rem; background: linear-gradient(135deg, var(--berry-50), var(--sand)); }
.post-card__body { padding: 20px 22px 24px; }
.post-card h3 { font-size: 1.25rem; margin-bottom: .45em; }
.post-card h3 a:hover { color: var(--berry); }
.post-card__body > p:last-child { color: var(--muted); font-size: .94rem; margin: 0; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--berry); font-weight: 600; }
.link-arrow:hover { color: var(--berry-600); }

.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 40px; flex-wrap: wrap; font-size: .92rem; }

/* ==========================================================================
   Account area (client dashboard, editor, RSVPs, profile)
   ========================================================================== */

.show-mobile { display: none !important; }
@media (max-width: 959px) {
    .hide-mobile { display: none !important; }
    .show-mobile { display: inline-flex !important; }
}

/* On phones the fixed tab bar covers the bottom: the footer (dark to the edge) makes room for it */
.account-body .site-footer { padding-bottom: calc(32px + 76px + env(safe-area-inset-bottom)); }
@media (min-width: 960px) { .account-body .site-footer { padding-bottom: 32px; } }
.account-main { padding: 28px 0 56px; min-height: 60vh; }
@media (min-width: 960px) { .account-main { padding: 40px 0 80px; } }

.account-actions { display: flex; align-items: center; gap: 12px; }
.user-menu { position: relative; }
.user-menu summary { list-style: none; cursor: pointer; border-radius: 50%; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu .nav-mobile-panel { top: 50px; right: 0; }
.user-menu-head { padding: 10px 14px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; display: grid; }
.user-menu-head .muted { font-size: .84rem; overflow: hidden; text-overflow: ellipsis; }
.nav-mobile-panel a:not(.btn), .menu-button { display: flex; gap: 10px; align-items: center; }
.menu-button {
    width: 100%; border: 0; background: none; cursor: pointer; text-align: left;
    padding: 12px 14px; border-radius: 10px; font: 500 1rem var(--font-body); color: var(--ink);
}
.menu-button:hover { background: var(--ivory); }
.avatar-sm { width: 40px; height: 40px; background: var(--berry); color: #fff; font-size: .95rem; }

.account-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.account-head h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0; overflow-wrap: anywhere; }
.account-head .eyebrow { margin-bottom: 8px; }
.back-link { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); font-size: .92rem; font-weight: 500; margin-bottom: 18px; }
.back-link:hover, .host-link:hover { color: var(--berry); }
.host-link { font-weight: 500; overflow-wrap: anywhere; }
.link { color: var(--berry); font-weight: 600; font-size: .92rem; }

.alert-success { background: var(--sage-50); color: #3F5A47; }

/* Tab bar (phones) */
.tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: flex; justify-content: space-around; align-items: center;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
}
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; font-size: .72rem; font-weight: 600; color: var(--muted); }
.tabbar a i { font-size: 1.35rem; }
.tabbar a.is-active { color: var(--berry); }
.tabbar .tabbar-cta { flex: 0 0 auto; width: 52px; height: 52px; margin-top: -22px; border-radius: 50%; background: var(--berry); color: #fff; justify-content: center; box-shadow: 0 8px 20px rgba(142, 47, 78, .35); }
.tabbar .tabbar-cta i { font-size: 1.5rem; }
@media (min-width: 960px) { .tabbar { display: none; } }

/* Buttons & chips */
.icon-btn {
    display: inline-flex; align-items: center; gap: 6px;
    min-height: 36px; padding: 0 12px;
    border: 1px solid var(--line); border-radius: 999px;
    background: var(--paper); color: var(--ink-2);
    font: 600 .84rem var(--font-body); cursor: pointer; white-space: nowrap;
    transition: border-color .15s, color .15s;
}
.icon-btn:hover { border-color: var(--ink-2); color: var(--ink); }
.icon-btn.icon-only { width: 36px; padding: 0; justify-content: center; }
.icon-btn .bi-whatsapp { color: #25A244; }
.btn.is-locked { opacity: .55; cursor: not-allowed; }
.btn-danger { background: #B3261E; color: #fff; }
.btn-danger:hover { background: #8C1D17; }
.chip-soft { display: inline-block; margin-left: 6px; padding: 2px 10px; border-radius: 999px; background: var(--berry-50); color: var(--berry); font-size: .78rem; font-weight: 600; }
.pill-wait { background: #FFF2DB; color: #8A5A0B; }
.pill-muted { background: var(--sand); color: var(--muted); }

.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
@media (min-width: 700px) { .panel { padding: 26px 28px; } }
.panel h2 { font-size: 1.35rem; margin-bottom: 16px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.panel-head h2 { margin: 0; }

/* Invitation cards */
.invite-list { display: grid; gap: 18px; }
.invite-card { display: flex; gap: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
@media (min-width: 700px) { .invite-card { padding: 24px 26px; gap: 26px; } }
.invite-thumb { flex-shrink: 0; }
.invite-thumb .phone-xs { width: 84px; }
@media (min-width: 700px) { .invite-thumb .phone-xs { width: 110px; } }
/* An event without a package yet: no design to show */
.invite-thumb-event { display: flex; align-items: center; justify-content: center; width: 84px; aspect-ratio: 9 / 16; border-radius: 16px; background: var(--ivory); border: 1px solid var(--line); color: var(--sage); font-size: 2rem; text-decoration: none; }
@media (min-width: 700px) { .invite-thumb-event { width: 110px; } }
.event-edit { margin-top: 12px; }
.event-edit summary { cursor: pointer; font-weight: 600; color: var(--berry); }
.event-edit form { margin-top: 10px; align-items: flex-end; flex-wrap: wrap; }
.invite-body { flex: 1; min-width: 0; }
.invite-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.invite-top h2 { font-size: 1.45rem; margin: 0 0 6px; overflow-wrap: anywhere; }
.invite-meta { font-size: .88rem; margin: 0 0 14px; }
.invite-meta .dot { margin: 0 4px; }
.invite-link { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; background: var(--ivory); border-radius: 14px; margin-bottom: 14px; }
.invite-link .host { font-weight: 600; font-size: .92rem; overflow-wrap: anywhere; flex: 1; min-width: 150px; }
.link-actions { display: flex; gap: 6px; }
.invite-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; max-width: 420px; }
.invite-stats .stat, .stat-tile { background: var(--ivory); border-radius: 14px; padding: 10px 8px; text-align: center; }
.invite-stats strong, .stat-tile strong { display: block; font-family: var(--font-display); font-size: 1.55rem; font-weight: 500; line-height: 1.1; }
.invite-stats span, .stat-tile span { font-size: .76rem; color: var(--muted); }
.stat.yes strong, .stat-tile.yes strong { color: var(--sage); }
.stat.no strong, .stat-tile.no strong { color: var(--berry); }
.invite-pending { margin: 0; padding: 14px 16px; background: #FFF8EC; border-radius: 14px; font-size: .92rem; color: var(--ink-2); }
.invite-pending p { margin: 0 0 12px; }
.invite-pending a:not(.btn) { color: var(--berry); font-weight: 600; }
.invite-card .hint { margin-top: 10px; }
@media (max-width: 520px) {
    .invite-card { flex-direction: column; }
    .invite-thumb { display: none; }
    .invite-top { flex-direction: column-reverse; gap: 8px; }
}

/* RSVP list */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 18px; }
@media (min-width: 700px) { .stat-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
.stat-tile { background: var(--paper); border: 1px solid var(--line); padding: 16px 10px; }
.stat-tile strong { font-size: 2rem; }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.segmented { display: inline-flex; background: var(--ivory); border-radius: 999px; padding: 4px; }
.segmented a { padding: 7px 16px; border-radius: 999px; font-size: .88rem; font-weight: 600; color: var(--muted); }
.segmented a.is-active { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-sm); }
.search { position: relative; flex: 1; min-width: 180px; }
.search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input {
    width: 100%; height: 42px; padding: 0 14px 0 38px;
    border: 1px solid var(--line); border-radius: 999px; background: var(--ivory);
    font: 400 .95rem var(--font-body); color: var(--ink);
}
.search input:focus { outline: none; border-color: var(--berry); background: #fff; }
.rsvp-row .rsvp-message { display: block; margin-top: 4px; font-size: .86rem; color: var(--ink-2); font-style: italic; }
.row-action { margin: 0; }
.empty-inline { text-align: center; padding: 36px 10px 20px; color: var(--ink-2); border-top: 1px solid var(--line); }
.empty-inline i { font-size: 2rem; color: var(--gold); }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .9rem; }

/* Editor */
.editor { display: grid; gap: 24px; align-items: start; padding-bottom: 80px; }
.editor > * { min-width: 0; }
@media (min-width: 1000px) { .editor { grid-template-columns: 1fr 340px; gap: 32px; } }
.editor-fields { display: grid; gap: 12px; }
.editor-section { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.editor-section summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 16px 18px; cursor: pointer; font-weight: 600; }
.editor-section summary::-webkit-details-marker { display: none; }
.section-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--berry-50); color: var(--berry); flex-shrink: 0; }
.section-title { flex: 1; }
.section-count { font-size: .76rem; color: var(--muted); background: var(--ivory); padding: 2px 9px; border-radius: 999px; }
.chevron { color: var(--muted); transition: transform .2s; }
.editor-section[open] .chevron { transform: rotate(180deg); }
.section-body { padding: 4px 18px 20px; border-top: 1px solid var(--line); padding-top: 18px; }
.field textarea {
    width: 100%; min-height: 110px; padding: 12px 14px;
    border: 1px solid var(--line); border-radius: 12px; background: var(--ivory);
    font: 400 1rem/1.5 var(--font-body); color: var(--ink); resize: vertical;
}
.field textarea:focus { outline: none; border-color: var(--berry); background: #fff; box-shadow: 0 0 0 4px var(--berry-50); }
.image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.image-field { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--ivory); transition: box-shadow .15s, border-color .15s; }
.image-field.is-changed { border-color: var(--berry); box-shadow: 0 0 0 3px var(--berry-50); }
.image-frame { aspect-ratio: 4 / 3; background: var(--sand); }
.image-frame img { width: 100%; height: 100%; object-fit: cover; }
.image-meta { padding: 8px 10px 10px; display: grid; gap: 8px; font-size: .82rem; font-weight: 600; }
.image-meta .icon-btn { justify-content: center; }

.editor-preview { position: sticky; top: 90px; display: none; }
@media (min-width: 1000px) { .editor-preview { display: block; } }
.preview-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.preview-bar span { flex: 1; }
.phone-preview { width: 100%; max-width: 300px; margin: 0 auto; }
.phone-preview .phone-screen { position: relative; }
/* The invitation renders at a real phone width (390px, set in editor.js) and is scaled down into the frame,
   so the preview looks exactly like on a phone */
.phone-preview iframe {
    position: absolute; top: 0; left: 0; border: 0; background: #fff; display: block;
    width: calc(100% / var(--preview-scale, 1)); height: calc(100% / var(--preview-scale, 1));
    transform: scale(var(--preview-scale, 1)); transform-origin: 0 0;
}
.editor-preview.is-open {
    display: flex; flex-direction: column;
    position: fixed; inset: 0; z-index: 80;
    background: rgba(30, 26, 34, .92); padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
}
.editor-preview.is-open .preview-bar { color: #fff; }
.editor-preview.is-open .icon-btn { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
.editor-preview.is-open .phone-preview { flex: 1; max-width: 360px; aspect-ratio: auto; min-height: 0; }
.editor-preview.is-open .hint { display: none; }

/* Try another design (before payment): the templates of the category, the couple's invitation in the chosen one */
.switch-layout { display: grid; gap: 24px; align-items: start; padding-bottom: 40px; }
.switch-layout > * { min-width: 0; }
@media (min-width: 1000px) { .switch-layout { grid-template-columns: 1fr 340px; gap: 32px; } .switch-preview { position: sticky; top: 90px; } }
.switch-styles { margin: 0 0 18px; }
.switch-styles .chip { font: inherit; cursor: pointer; }
.switch-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
/* Phone: the templates scroll sideways above the preview, so the invitation stays in view */
@media (max-width: 999px) {
    .switch-list { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 210px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; }
    .switch-card { scroll-snap-align: start; }
    .switch-card[hidden] { display: none; }
}
.switch-card {
    display: flex; gap: 14px; align-items: center; padding: 12px;
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--ink);
    transition: border-color .15s, box-shadow .15s;
}
.switch-card:hover { border-color: var(--berry-100, var(--berry)); }
.switch-card.is-selected { border-color: var(--berry); box-shadow: 0 0 0 3px var(--berry-50); }
.switch-card .phone-xs { flex-shrink: 0; width: 64px; border-radius: 14px; padding: 4px; }
.switch-card .phone-xs::before { display: none; }
.switch-card .phone-xs .phone-screen { border-radius: 10px; }
.switch-card__text { display: grid; gap: 4px; min-width: 0; }
.switch-card__text strong { font-size: 1rem; }
.switch-card__text .chip-soft { margin-left: 0; justify-self: start; }
.switch-card__text small { font-size: .82rem; line-height: 1.35; }
.switch-preview .phone-preview { max-width: 320px; }
.switch-choose { display: grid; gap: 8px; max-width: 320px; margin: 16px auto 0; }
.switch-choose .btn { justify-content: center; }

.save-bar {
    position: fixed; left: 0; right: 0; bottom: calc(68px + env(safe-area-inset-bottom)); z-index: 55;
    display: flex; align-items: center; gap: 10px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, .97);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(30, 26, 34, .06);
}
@media (min-width: 960px) {
    .save-bar {
        left: 50%; right: auto; bottom: 20px; transform: translateX(-50%);
        width: min(560px, calc(100% - 40px));
        border: 1px solid var(--line); border-radius: 999px; padding: 8px 8px 8px 22px;
        box-shadow: var(--shadow-md);
    }
}
.save-state { flex: 1; font-size: .88rem; font-weight: 600; color: var(--sage); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.save-state.is-dirty { color: #8A5A0B; }
.save-state.is-saving { color: var(--muted); }
.save-state.is-saving i { display: inline-block; animation: spin 1s linear infinite; }
.save-state.is-error { color: #B3261E; white-space: normal; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Profile */
.profile-grid { display: grid; gap: 18px; max-width: 720px; }
.form-actions { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.saved-note { color: var(--sage); font-weight: 600; font-size: .9rem; }
.panel-danger { border-color: #F1D3D0; }
.danger-zone summary { list-style: none; }
.danger-zone summary::-webkit-details-marker { display: none; }
.danger-btn { color: #B3261E; border-color: #F1D3D0; }
.danger-zone[open] summary { display: none; }
.danger-zone form { margin-top: 4px; }

/* ---------- Standard-template editor ---------- */

.field select, .field input[type=number], .field input[type=time], .field input[type=url] {
    width: 100%; height: 50px; padding: 0 14px;
    border: 1px solid var(--line); border-radius: 12px; background: var(--ivory);
    font: 400 1rem var(--font-body); color: var(--ink);
}
.field select:focus, .field input[type=number]:focus, .field input[type=time]:focus, .field input[type=url]:focus {
    outline: none; border-color: var(--berry); background: #fff; box-shadow: 0 0 0 4px var(--berry-50);
}
.ef.is-invalid > input, .ef.is-invalid > textarea, .ef.is-invalid > select { border-color: #C2413B; }
.req { color: var(--berry); margin-left: 2px; }

.missing-box {
    background: #FFF8EC; border: 1px solid #F3DDB5; border-radius: var(--r-md);
    padding: 14px 18px; font-size: .92rem; color: #6E4A0B;
}
.missing-box ul { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 4px; }
.missing-box a { color: #6E4A0B; text-decoration: underline; }

.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 500; font-size: .95rem; }
.switch input[type=checkbox] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { width: 44px; height: 26px; border-radius: 999px; background: var(--line); position: relative; flex-shrink: 0; transition: background .2s; }
.switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s; }
.switch input:checked + .switch-ui { background: var(--sage); }
.switch input:checked + .switch-ui::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--berry); outline-offset: 2px; }
.section-visibility { padding: 12px 14px; background: var(--ivory); border-radius: 12px; margin-bottom: 18px; }
.editor-section.is-section-hidden .section-body > .ef { opacity: .45; }
.is-hidden-badge { background: var(--sand); }

.ef-group { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 6px; margin: 0 0 16px; min-width: 0; }
.ef-group legend { font-weight: 700; font-size: .9rem; padding: 0 6px; }

.ef-list { border: 1px dashed var(--line); border-radius: 14px; padding: 12px; }
.ef-list-head { margin-bottom: 10px; }
.ef-list-title { font-weight: 700; font-size: .92rem; }
.ef-list-items { display: grid; gap: 10px; }
.ef-list-item { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.ef-list-item-head { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.ef-list-number {
    width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
    background: var(--berry-50); color: var(--berry); font-size: .8rem; font-weight: 700; flex-shrink: 0;
}
.ef-list-summary { flex: 1; min-width: 0; font-size: .88rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ef-list-item-head .icon-btn { width: 32px; min-height: 32px; }
.ef-list-item-body { padding: 14px 14px 4px; }
.ef-list-add { margin-top: 10px; }
.ef-list-add[disabled] { opacity: .45; cursor: not-allowed; }

/* Silky's conversation (client/orders/silky.blade.php, public/js/silky-chat.js) */
.silky-entry { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; padding: 14px 18px; border-radius: var(--r-md); border: 1px solid var(--berry-50); background: linear-gradient(120deg, var(--berry-50), var(--paper)); color: var(--ink); text-decoration: none; }
.silky-entry:hover { border-color: var(--berry); }
.silky-entry > span:nth-child(2) { flex: 1; min-width: 0; font-size: .92rem; }
.silky-entry-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--berry); color: #fff; flex-shrink: 0; font-size: 1.1rem; }
.silky-chat { display: flex; flex-direction: column; gap: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; min-height: 440px; height: calc(100vh - 310px); }
.silky-thread { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 4px 2px; overscroll-behavior: contain; }
.silky-msg { max-width: 85%; padding: 10px 14px; border-radius: 16px; line-height: 1.5; }
.silky-msg p { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.silky-msg.is-silky { align-self: flex-start; background: var(--ivory); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.silky-msg.is-user { align-self: flex-end; background: var(--berry); color: #fff; border-bottom-right-radius: 6px; }
.silky-msg.is-waiting p { color: var(--berry); font-weight: 600; animation: silky-pulse 1.2s ease-in-out infinite; }
.silky-msg.is-error { background: var(--berry-50); color: var(--berry-600); }
.silky-done { list-style: none; margin: 8px 0 0; padding: 8px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 3px; font-size: .84rem; color: var(--sage); font-weight: 600; }
.silky-photos { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.silky-photos img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; display: block; }
.silky-attached { display: flex; flex-wrap: wrap; gap: 8px; }
.silky-attached-item { position: relative; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--sand); }
.silky-attached-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.silky-attached-item button { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(30, 26, 34, .7); color: #fff; display: grid; place-items: center; padding: 0; cursor: pointer; }
.silky-attached-item.is-uploading { animation: silky-pulse 1.2s ease-in-out infinite; }
.silky-attach { flex-shrink: 0; min-width: 48px; justify-content: center; cursor: pointer; }
.silky-suggestions { display: flex; flex-wrap: wrap; gap: 8px; }
.silky-suggestions .chip { font: inherit; font-size: .86rem; cursor: pointer; }
.silky-compose { display: flex; gap: 8px; align-items: flex-end; }
.silky-compose textarea { flex: 1; min-width: 0; resize: none; padding: 11px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--ivory); font: 400 1rem/1.45 var(--font-body); color: var(--ink); max-height: 160px; }
.silky-compose textarea:focus { outline: none; border-color: var(--berry); background: #fff; box-shadow: 0 0 0 4px var(--berry-50); }
.silky-compose .btn { flex-shrink: 0; min-width: 48px; }
.silky-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.silky-foot .hint { margin: 0; flex: 1; min-width: 200px; }
@media (max-width: 999px) { .silky-chat { height: calc(100dvh - 250px); min-height: 400px; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Silky, the writing assistant (public/js/silky.js) */
.ef-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.ef-head label { margin-bottom: 0; }
.silky-btn { display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0; border: 1px solid var(--berry-50); background: var(--berry-50); color: var(--berry); border-radius: 999px; padding: 3px 11px; font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; }
.silky-btn:hover, .silky-btn[aria-expanded="true"] { background: var(--berry); border-color: var(--berry); color: #fff; }
.silky-panel { margin-top: 10px; border: 1px solid var(--berry-50); background: linear-gradient(180deg, var(--berry-50), var(--paper) 140px); border-radius: 14px; padding: 12px 14px; display: grid; gap: 10px; }
.silky-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--berry); }
.silky-head .icon-btn { width: 30px; min-height: 30px; }
.silky-panel .silky-wish { display: grid; gap: 4px; font-size: .85rem; font-weight: 600; margin: 0; }
.silky-panel .silky-wish input { font-weight: 400; }
.silky-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.silky-results { display: grid; gap: 8px; }
.silky-results:empty { display: none; }
.silky-version { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 8px; }
.silky-version p { margin: 0; white-space: pre-line; line-height: 1.5; }
.silky-version .btn { justify-self: start; }
.silky-loading { margin: 0; color: var(--berry); font-weight: 600; animation: silky-pulse 1.2s ease-in-out infinite; }
.silky-error { margin: 0; color: var(--berry-600); font-size: .9rem; }
.silky-note, .silky-left { margin: 0; }
@keyframes silky-pulse { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .silky-loading { animation: none; } }

.photo-field { display: flex; align-items: center; gap: 16px; }
.photo-thumb {
    position: relative; width: 104px; height: 104px; border-radius: var(--r-md); background: var(--sand); overflow: hidden;
    display: grid; place-items: center; color: var(--muted); font-size: 1.8rem; flex-shrink: 0; cursor: pointer;
    border: 1px dashed transparent; transition: box-shadow .15s, border-color .15s;
}
.photo-thumb:has(img[hidden]) { border-color: #D9CEC4; background: var(--ivory); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-thumb-hover {
    position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 1.4rem;
    background: rgba(30, 26, 34, .45); opacity: 0; transition: opacity .15s;
}
.photo-thumb:hover .photo-thumb-hover, .photo-thumb:focus-within .photo-thumb-hover { opacity: 1; }
.photo-thumb:has(img[hidden]) .photo-thumb-hover { display: none; }
.photo-thumb:hover { box-shadow: 0 0 0 4px var(--berry-50); }
.photo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; min-width: 0; }
.photo-pick { cursor: pointer; }
.photo-note { flex-basis: 100%; margin: 0; font-size: .8rem; color: var(--muted); }
/* Text-style button for secondary actions (e.g. remove a photo) */
.link-btn {
    display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 4px;
    border: 0; background: none; color: var(--ink-2); font: 600 .9rem var(--font-body); cursor: pointer;
}
.link-btn:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.link-btn-danger { color: #B3261E; }
.link-btn-danger:hover { color: #8C1D17; }
.photo-field.is-uploading .photo-thumb, .gallery-field.is-uploading .gallery-add { opacity: .5; pointer-events: none; }
.photo-field.is-uploading .photo-thumb::after { content: "…"; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-bottom: 10px; }
.gallery-item { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--sand); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-tools {
    position: absolute; inset: auto 0 0 0; display: flex; justify-content: center; gap: 6px; padding: 18px 6px 6px;
    background: linear-gradient(transparent, rgba(30, 26, 34, .6));
}
.gallery-tools button {
    display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, .95); color: var(--ink); cursor: pointer; font-size: .85rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .18); transition: background .15s, color .15s;
}
.gallery-tools button:hover { background: #fff; color: var(--berry); }
.gallery-tools button.is-remove:hover { color: #B3261E; }
/* On devices with a mouse, the tools show on hover; touch screens always see them */
@media (hover: hover) {
    .gallery-tools { opacity: 0; transition: opacity .15s; }
    .gallery-item:hover .gallery-tools, .gallery-item:focus-within .gallery-tools { opacity: 1; }
}
.gallery-add { cursor: pointer; }
.gallery-add.is-locked { opacity: .45; pointer-events: none; }

.palette-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.palette-option { display: grid; gap: 6px; cursor: pointer; font-size: .86rem; font-weight: 600; text-align: center; }
.palette-option input { position: absolute; opacity: 0; }
.palette-swatch { height: 56px; border-radius: 12px; border: 2px solid var(--line); }
.palette-option input:checked + .palette-swatch { border-color: var(--ink); box-shadow: 0 0 0 3px var(--berry-50); }
.palette-option input:focus-visible + .palette-swatch { outline: 2px solid var(--berry); outline-offset: 2px; }

/* editor: "Deschiderea cu plic", other envelope styles */
.envelope-styles { margin-top: 12px; }
.envelope-styles > summary { cursor: pointer; font-size: .9rem; font-weight: 600; color: var(--berry); }
.envelope-grid { margin-top: 12px; }
.envelope-option img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; border: 2px solid var(--line); background: #efe6da; }
.envelope-option input:checked + img { border-color: var(--ink); box-shadow: 0 0 0 3px var(--berry-50); }
.envelope-option input:focus-visible + img { outline: 2px solid var(--berry); outline-offset: 2px; }

.labels-grid { display: grid; gap: 0 14px; }
@media (min-width: 700px) { .labels-grid { grid-template-columns: 1fr 1fr; } }

/* Account pages: login, sign-up, password (layouts/auth) */
.auth-section { padding: 28px 0 64px; }
.auth-shell { display: grid; gap: 24px; max-width: 1040px; }
@media (min-width: 900px) { .auth-section { padding: 56px 0 96px; } .auth-shell { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); align-items: stretch; } }
.auth-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 20px; }
@media (min-width: 600px) { .auth-card { padding: 40px 44px; } }
.auth-title { font-size: clamp(2rem, 4.5vw, 2.6rem); margin: 4px 0 8px; }
.auth-lead { color: var(--ink-2); margin: 0 0 22px; }
.auth-card form { margin-top: 18px; }
.auth-card .check { margin-top: 4px; }
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 22px; }
.auth-row .check { margin: 0; }
.google-signin { margin: 4px 0 0; }
.google-signin-button { min-height: 44px; display: flex; justify-content: center; }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; color: var(--muted, #7a6a70); font-size: .85rem; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .3; }
.auth-row a, .auth-footer a { color: var(--berry); font-weight: 600; }
.auth-footer { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: .95rem; display: grid; gap: 6px; }
.auth-aside { display: none; }
@media (min-width: 900px) {
    .auth-aside { display: block; border-radius: var(--r-lg); background: linear-gradient(160deg, var(--berry-50), var(--sand)); padding: 40px 36px; }
    .auth-aside-inner { position: sticky; top: 110px; display: grid; justify-items: center; text-align: center; gap: 22px; }
}
.auth-phone { transform: rotate(-3deg); box-shadow: 0 30px 60px -30px rgba(30, 26, 34, .45); }
.auth-quote { font-family: var(--font-display); font-size: 1.45rem; line-height: 1.25; margin: 0; }
.auth-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; text-align: left; color: var(--ink-2); font-size: .92rem; }
.auth-points i { color: var(--berry); margin-right: 6px; }
.btn-link-plain { background: none; border: 0; padding: 0; color: var(--berry); font: inherit; font-weight: 600; cursor: pointer; }

/* Currency of the prices, euro / dollars (site/partials/currency-switch) */
.currency-switch { display: inline-flex; gap: 2px; padding: 3px; margin-top: 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.currency-switch button { padding: 5px 12px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: .8rem; font-weight: 700; letter-spacing: .03em; color: var(--muted); cursor: pointer; }
.currency-switch button:hover { color: var(--ink); }
.currency-switch button.is-active { background: var(--ink); color: #fff; }

/* Language switcher (layouts/partials/locale-switch) */
.lang-switch { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.lang-switch a { padding: 4px 9px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; color: var(--muted); text-decoration: none; }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a.is-active { background: var(--ink); color: #fff; }
.nav-actions .lang-switch { margin-right: 4px; }
@media (max-width: 959px) { .nav-actions .lang-switch { display: none; } }
.lang-switch-mobile, .lang-switch-menu { align-self: flex-start; margin-top: 6px; }
.lang-switch-menu { margin: 6px 12px; }
.lang-switch-mobile, .lang-switch-menu { flex-wrap: wrap; border-radius: 18px; }
/* More than two languages: the header shows the current one and opens the list */
.lang-menu { position: relative; margin-right: 4px; }
.lang-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: .78rem; font-weight: 700; letter-spacing: .04em; color: var(--ink); cursor: pointer; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary .bi { font-size: .7rem; transition: transform .15s; }
.lang-menu[open] summary .bi { transform: rotate(180deg); }
.lang-menu-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 170px; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); box-shadow: 0 12px 30px rgba(0, 0, 0, .12); display: grid; gap: 2px; }
.lang-menu-list a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 9px; color: var(--ink); text-decoration: none; font-size: .9rem; }
.lang-menu-list a:hover { background: var(--line); }
.lang-menu-list a.is-active { font-weight: 700; }
.lang-menu-list .lang-code { width: 22px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; color: var(--muted); }
@media (max-width: 959px) { .nav-actions .lang-menu { display: none; } }

/* Editor: languages of the invitation (client/orders/partials/editor-languages) */
.lang-bar { margin: 0 0 18px; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); display: grid; gap: 12px; }
.lang-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lang-tab {
    display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px;
    border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); font-weight: 600; font-size: .88rem; text-decoration: none;
}
.lang-tab small { font-weight: 500; color: var(--muted); }
.lang-tab:hover { border-color: var(--ink-2); color: var(--ink); }
.lang-tab.is-active { background: var(--berry); border-color: var(--berry); color: #fff; }
.lang-tab.is-active small { color: rgba(255, 255, 255, .8); }
.lang-missing { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #FFF2DB; color: #8A5A0B; font-size: .72rem; display: inline-grid; place-items: center; }
.lang-tab.is-active .lang-missing { background: rgba(255, 255, 255, .22); color: #fff; }
.lang-add { position: relative; }
.lang-add > summary { list-style: none; }
.lang-add > summary::-webkit-details-marker { display: none; }
.lang-add-form {
    position: absolute; z-index: 20; top: calc(100% + 8px); left: 0; width: min(340px, calc(100vw - 48px));
    display: grid; gap: 8px; padding: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-md);
}
.lang-add-form label { font-weight: 600; font-size: .85rem; }
.lang-add-form select, .lang-add-form input { width: 100%; }
.lang-custom { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; }
.lang-custom .hint { grid-column: 1 / -1; margin: 0; }
.lang-custom[hidden] { display: none; }
.lang-primary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.lang-primary label { font-weight: 600; font-size: .88rem; }
.lang-primary select { width: auto; }
.lang-primary .hint { flex-basis: 100%; margin: 0; }
.tr-intro { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 16px; margin: 0 0 18px; color: var(--ink-2); font-size: .92rem; }
.tr-intro p { margin: 0; flex: 1 1 320px; }
.tr-original { margin: 2px 0 8px; padding: 8px 12px; border-left: 3px solid var(--line); background: var(--ivory); color: var(--muted); font-size: .88rem; white-space: pre-line; border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.tr-item { margin-bottom: 14px; }

.lang-add-form select, .lang-add-form input, .lang-primary select {
    height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px;
    background: var(--ivory); font: 400 .95rem var(--font-body); color: var(--ink);
}
.lang-add-form select:focus, .lang-add-form input:focus, .lang-primary select:focus { outline: none; border-color: var(--berry); box-shadow: 0 0 0 4px var(--berry-50); }

/* Checkout: company invoice details */
.billing-fields { margin: 14px 0 4px; padding: 16px 18px 4px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--ivory); }
.billing-fields[hidden] { display: none; }
.billing-fields input { background: var(--paper) !important; }

.billing-fields .field { margin-bottom: 16px; }
/* Editor pages: room under the footer for the floating save bar */
.account-body:has(.save-bar) .site-footer { padding-bottom: calc(32px + 76px + 64px + env(safe-area-inset-bottom)); }
@media (min-width: 960px) { .account-body:has(.save-bar) .site-footer { padding-bottom: 96px; } }

/* Checkout: the chosen template (desktop preview), with the full list only on "Change" */
.tpl-chosen { display: grid; gap: 18px; align-items: center; }
@media (min-width: 640px) { .tpl-chosen { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; } }
.tpl-chosen .browser { box-shadow: var(--shadow-md); }
.tpl-chosen .browser .url { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tpl-chosen-info h3 { margin: 10px 0 6px; font-size: 1.6rem; }
.tpl-chosen-info p { margin: 0 0 14px; font-size: .92rem; }
.tpl-chosen-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tpl-picker[hidden] { display: none; }
.tpl-chosen + .tpl-picker { margin-top: 20px; }

.browser-bar .url span { width: auto; height: auto; border-radius: 0; background: none; }

/* Editor: starting from the template's example */
.example-box {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
    margin: 0 0 18px; padding: 16px 20px; border-radius: var(--r-md);
    background: var(--berry-50); border: 1px solid #EBCAD6; color: var(--ink-2);
}
.example-box > div { flex: 1 1 320px; }
.example-box strong { color: var(--ink); }
.example-box p { margin: 4px 0 0; font-size: .92rem; }
.example-box.is-info { background: #FFF8EC; border-color: #F3DDB5; }

/* Photo buttons are <label>s (they open the file picker): keep them buttons, not form labels */
.field .photo-pick, .field .gallery-add {
    display: inline-flex; width: auto; margin: 0; font-weight: 600; font-size: .9rem; line-height: 1;
}
.field .photo-thumb { margin: 0; }
@media (max-width: 480px) {
    .photo-field { align-items: flex-start; gap: 12px; }
    .photo-thumb { width: 84px; height: 84px; }
    .field .photo-pick { padding: 0 14px; white-space: normal; text-align: left; }
}
/* Toggles inside editor fields are <label class="switch">: keep the switch layout, not the form-label one */
.field .switch { display: flex; margin: 4px 0 0; font-weight: 500; font-size: .95rem; }
.field .switch-ui { display: block; }

/* ---------- Seating plan (client/seating/show, public/js/seating.js) ---------- */
.seat-head-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.seat-stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.seat-stat { padding: 8px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: .88rem; color: var(--ink-2); }
.seat-stat strong { color: var(--ink); }
.seat-stat.is-ok strong { color: var(--sage); }
.seat-stat.is-wait { border-color: #F3DDB5; background: #FFF8EC; }
.seat-add-tables { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 18px; margin-bottom: 18px; }
.seat-add-label { font-weight: 700; color: var(--ink); margin-right: 4px; }
.seat-add-tables label { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: .92rem; }
.seat-add-tables input, .seat-add-guest input {
    height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--ivory);
    font: 400 .95rem var(--font-body); color: var(--ink);
}
.seat-add-tables input { width: 74px; }
.seat-times { color: var(--muted); font-weight: 600; }
.seat-layout { display: grid; gap: 18px; align-items: start; }
@media (min-width: 900px) { .seat-layout { grid-template-columns: 300px minmax(0, 1fr); } .seat-pool { position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow: auto; } }
.seat-pool { padding: 16px; }
.seat-pool-head h2 { font-size: 1.15rem; margin: 0 0 4px; }
.seat-pool-head .hint { margin: 0 0 12px; }
.seat-count { color: var(--muted); font-weight: 500; }
.seat-pool-list, .seat-table-guests { display: grid; gap: 8px; }
.seat-add-guest { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.seat-add-guest > summary { list-style: none; padding: 0; }
.seat-add-guest > summary::-webkit-details-marker { display: none; }
.seat-add-guest form { display: grid; grid-template-columns: minmax(0, 1fr) 64px auto; gap: 8px; margin-top: 8px; }
.seat-add-guest .hint { margin: 6px 0 0; }

.seat-chip {
    display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; border-radius: 12px;
    background: var(--paper); border: 1px solid var(--line); cursor: grab; user-select: none; touch-action: manipulation;
    transition: border-color .15s, box-shadow .15s, opacity .15s;
}
.seat-chip:hover { border-color: #D9CEC4; }
.seat-chip:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--berry-50); border-color: var(--berry); }
.seat-chip.is-selected { border-color: var(--berry); box-shadow: 0 0 0 3px var(--berry-50); }
.seat-chip.is-dragging { opacity: .45; }
.seat-chip-main { flex: 1; min-width: 0; display: grid; }
.seat-chip-name { font-weight: 600; font-size: .92rem; color: var(--ink); overflow-wrap: anywhere; line-height: 1.3; }
.seat-chip-meta { font-size: .76rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat-chip-count {
    flex-shrink: 0; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; display: grid; place-items: center;
    background: var(--berry-50); color: var(--berry); font-weight: 700; font-size: .82rem;
}
.seat-chip-x { flex-shrink: 0; width: 30px; height: 30px; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.seat-chip-x:hover { background: var(--sand); color: var(--ink); }

.seat-tables { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.seat-table { padding: 14px; display: grid; gap: 8px; align-content: start; transition: border-color .15s, box-shadow .15s; }
.seat-table-head { display: flex; align-items: center; gap: 6px; }
.seat-table-name {
    flex: 1; min-width: 0; height: 38px; padding: 0 10px; border: 1px solid transparent; border-radius: 10px; background: transparent;
    font: 700 1.02rem var(--font-body); color: var(--ink);
}
.seat-table-name:hover { border-color: var(--line); }
.seat-table-name:focus { outline: none; border-color: var(--berry); background: var(--ivory); }
.seat-table-del { width: 34px; height: 34px; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.seat-table-del:hover { background: #FBECEB; color: #B3261E; }
.seat-meter { height: 6px; border-radius: 999px; background: var(--sand); overflow: hidden; }
.seat-meter span { display: block; height: 100%; background: var(--sage); border-radius: inherit; transition: width .25s; }
.seat-table.is-over .seat-meter span { background: #C2413B; }
.seat-cap { margin: 0; font-size: .86rem; color: var(--ink-2); display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.seat-cap .is-over { color: #B3261E; font-weight: 700; }
.seat-cap-input { width: 56px; height: 30px; padding: 0 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--ivory); font: 600 .86rem var(--font-body); }
.seat-menus { margin: 0; font-size: .78rem; color: var(--muted); }
.seat-empty { margin: 0; padding: 10px; border: 1px dashed #D9CEC4; border-radius: 12px; text-align: center; font-size: .86rem; color: var(--muted); }
.seat-empty-tables { grid-column: 1 / -1; padding: 28px; }
.seat-drop-hint { display: none; margin: 0; padding: 8px; border-radius: 10px; text-align: center; font-size: .84rem; font-weight: 600; color: var(--berry); background: var(--berry-50); }
.has-selection .seat-table { cursor: pointer; }
.has-selection .seat-table .seat-drop-hint, .seat-table.is-over-drop .seat-drop-hint { display: block; }
.has-selection .seat-table:hover, .seat-table.is-over-drop { border-color: var(--berry); box-shadow: 0 0 0 3px var(--berry-50); }
.has-selection .seat-pool, .seat-pool.is-over-drop { cursor: pointer; }
.seat-pool.is-over-drop { box-shadow: 0 0 0 3px var(--berry-50); border-color: var(--berry); }
.seat-status { min-height: 1.4em; margin: 14px 0 0; font-size: .86rem; color: var(--sage); font-weight: 600; }
.seat-status.is-error { color: #B3261E; }

.seat-upsell { display: grid; gap: 22px; align-items: center; padding: 26px; }
@media (min-width: 760px) { .seat-upsell { grid-template-columns: 220px 1fr; } }
.seat-upsell h2 { font-size: 1.4rem; margin: 0 0 8px; }
.seat-upsell-art { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 18px; border-radius: var(--r-lg); background: var(--berry-50); }
.seat-upsell-art span { aspect-ratio: 1; border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px rgba(142, 47, 78, .12); }
/* "Find your table": publish the guests' page and print its QR cards */
.seat-finder { display: grid; gap: 16px 28px; padding: 22px 24px; margin-top: 18px; }
@media (min-width: 860px) { .seat-finder { grid-template-columns: minmax(0, 1fr) auto; align-items: start; } }
.seat-finder > * { min-width: 0; }
.seat-finder h2 { font-size: 1.2rem; margin: 0 0 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.seat-finder h2 .bi { color: var(--berry); }
.seat-finder p { margin: 0 0 8px; }
.seat-finder-url a { font-weight: 600; word-break: break-all; }
.seat-finder-actions { display: grid; gap: 10px; justify-items: start; }
.seat-finder-cards { display: flex; flex-wrap: wrap; gap: 8px; }
.seat-finder-actions .hint { margin: 0; max-width: 34ch; }
.seat-pool-head h2, .seat-table h2 { margin-bottom: 4px; }
/* The card's grid never grows past the card: long names and menus wrap or get an ellipsis */
.seat-table { grid-template-columns: minmax(0, 1fr); }
.seat-table > *, .seat-pool > *, .seat-table-guests > *, .seat-pool-list > * { min-width: 0; }

/* ---------- Package upgrade (client/orders/upgrade, dashboard button) ---------- */
.invite-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.upgrade-btn {
    display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 12px; border-radius: 999px;
    background: var(--berry); color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .02em;
    box-shadow: 0 4px 12px rgba(142, 47, 78, .25); transition: background .15s;
}
.upgrade-btn:hover { background: var(--berry-600); color: #fff; }
.upgrade-form { display: grid; gap: 18px; }
.upgrade-options { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.upgrade-option .option-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.upgrade-price { font-family: var(--font-display); font-size: 1.35rem; color: var(--berry); white-space: nowrap; }
.upgrade-gains { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; font-size: .88rem; color: var(--ink-2); }
.upgrade-gains i { color: var(--sage); margin-right: 4px; }
.upgrade-pending { margin-bottom: 18px; border-color: #F3DDB5; }
.upgrade-instructions { background: var(--berry-50); border-radius: 12px; padding: 14px 16px; white-space: pre-line; font-size: .92rem; }
.upgrade-pending .btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 12px; }

/* Client dashboard: the printable invitation's menu (A5 card / A4 sheet, per language) */
.print-menu { position: relative; }
.print-menu > summary { list-style: none; cursor: pointer; }
.print-menu > summary::-webkit-details-marker { display: none; }
.print-menu__list { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; min-width: 250px; padding: 8px; background: #fff; border: 1px solid var(--line, #E3D8CD); border-radius: 14px; box-shadow: 0 12px 32px rgba(30, 26, 34, .14); }
.print-menu__list a { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; color: inherit; text-decoration: none; font-weight: 500; }
.print-menu__list a:hover { background: var(--berry-50, #F7EEF1); }
.print-menu__list button { display: flex; width: 100%; gap: 8px; align-items: center; padding: 8px 10px; border: 0; border-radius: 10px; background: none; color: inherit; font: inherit; font-weight: 500; text-align: left; cursor: pointer; }
.print-menu__list button:hover { background: var(--berry-50, #F7EEF1); }
.print-menu__field { display: grid; gap: 4px; padding: 6px 10px; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted, #7A7180); font-weight: 600; }
.print-menu__field select { font: inherit; font-size: .9rem; letter-spacing: 0; text-transform: none; color: var(--ink, #1E1A22); padding: 6px 8px; border: 1px solid var(--line, #E3D8CD); border-radius: 8px; background: #fff; }
.print-menu__check { display: flex; gap: 8px; align-items: center; padding: 4px 10px; font-size: .88rem; letter-spacing: 0; text-transform: none; color: var(--ink, #1E1A22); font-weight: 400; cursor: pointer; }
.print-menu__field .print-menu__check { padding: 2px 0; }
.print-menu__lang { padding: 8px 10px 2px; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted, #7A7180); font-weight: 600; }
.print-menu__list p { margin: 6px 10px 4px; font-size: .8rem; color: var(--muted, #7A7180); line-height: 1.4; }
/* on a phone the menu opens under its button across the whole row of buttons, not off the screen's right edge */
@media (max-width: 600px) { .btn-row:has(> .print-menu) { position: relative; } .print-menu { position: static; } .print-menu__list { top: auto; left: 0; right: 0; min-width: 0; margin-top: 6px; } }

/* Client area: the invitation's own domain (Platinum) */
.domain-panel { max-width: 720px; }
.domain-panel h2 { word-break: break-all; }
.domain-panel .btn-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px 12px; margin-top: 16px; }
.domain-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0 12px; }
.domain-form .field { flex: 1 1 260px; margin-bottom: 12px; }
.domain-form .btn { margin-bottom: 12px; }
.domain-state { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; padding: 4px 12px; border-radius: 999px; font-size: .84rem; font-weight: 600; }
.domain-state.is-pending { background: var(--sand); color: var(--ink-2); }
.domain-state.is-active { background: var(--sage-50); color: var(--sage); }
.domain-steps { padding-left: 1.3em; display: grid; gap: 10px; }
.ns-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.ns-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.ns-list code { font-size: 1rem; padding: 6px 10px; background: var(--berry-50); border-radius: 8px; word-break: break-all; }
.domain-remove > summary { list-style: none; cursor: pointer; }
.domain-remove > summary::-webkit-details-marker { display: none; }
.domain-remove__body { margin-top: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; max-width: 520px; }
.domain-remove__body p { font-size: .92rem; margin: 0 0 10px; }

/* Template page: the colour palettes to choose from, each opening the demo in it */
.palette-swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.palette-swatch { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border: 1px solid var(--line); border-radius: 999px; font-size: .86rem; color: var(--ink-2); text-decoration: none; background: #fff; }
a.palette-swatch:hover { border-color: var(--berry); color: var(--berry); }
.palette-swatch__dots { display: inline-flex; }
.palette-swatch__dots span { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(30, 26, 34, .14); }
.palette-swatch__dots span + span { margin-left: -5px; }

/* ---------- Budget planner (client area) ---------- */
.budget-app { display: grid; gap: 16px; min-width: 0; }
.budget-app > * { min-width: 0; }
.budget-target input, .budget-target select, .budget-field input, .budget-field select, .budget-field textarea, .budget-add-category input {
    height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
    font: 400 .95rem var(--font-body); color: var(--ink); min-width: 0;
}
.budget-field textarea { height: auto; padding: 8px 12px; resize: vertical; }
.budget-target input:focus, .budget-target select:focus, .budget-field input:focus, .budget-field select:focus, .budget-field textarea:focus, .budget-add-category input:focus {
    outline: none; border-color: var(--berry); box-shadow: 0 0 0 4px var(--berry-50);
}
.budget-add-category input { background: var(--paper); }
.budget-label { display: block; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.budget-summary { display: grid; gap: 14px; }
.budget-total { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: flex-end; }
.budget-total .hint { display: block; margin-top: 2px; }
.budget-big { display: block; font-family: var(--font-display); font-weight: 500; font-size: clamp(2rem, 5vw, 2.6rem); line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.budget-target-row { display: flex; gap: 8px; margin-top: 4px; }
.budget-target input { width: 150px; font-variant-numeric: tabular-nums; }
.budget-target select { flex: none; width: 92px; }
.budget-meter { height: 10px; border-radius: 999px; background: var(--sand); overflow: hidden; }
.budget-meter span { display: block; height: 100%; background: var(--sage); border-radius: inherit; }
.budget-meter.is-over span { background: #B3261E; }
.budget-left { margin: -4px 0 0; font-size: .92rem; color: var(--ink-2); }
.budget-left.is-over, .budget-left.is-over strong { color: #B3261E; }
.budget-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.budget-stat { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--r-md); background: var(--ivory); border: 1px solid var(--line); }
.budget-stat span { font-size: .82rem; color: var(--muted); }
.budget-stat strong { font-size: 1.15rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.budget-stat small { font-size: .74rem; color: var(--muted); }
.budget-stat.is-ok strong { color: var(--sage); }
.budget-stat.is-warn strong { color: #B3261E; }

.budget-upcoming h2 { font-size: 1.15rem; margin-bottom: 10px; }
.budget-due-list { list-style: none; margin: 0; padding: 0; display: grid; }
.budget-due-list li { display: grid; grid-template-columns: 150px 1fr auto; gap: 12px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.budget-due-list li:first-child { border-top: 0; }
.budget-due-date { font-size: .86rem; color: var(--ink-2); }
.budget-due-name small { display: block; color: var(--muted); font-size: .8rem; }
.budget-due-list li.is-overdue .budget-due-date, .budget-due-list li.is-overdue strong { color: #B3261E; font-weight: 600; }

.budget-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); }
.budget-tab { font: inherit; font-weight: 600; font-size: .95rem; padding: 10px 14px; border: 0; background: none; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; }
.budget-tab.is-active { color: var(--berry); border-bottom-color: var(--berry); }
.budget-tab:focus-visible { outline: 2px solid var(--berry); outline-offset: 2px; }

.budget-categories { display: grid; gap: 12px; }
.budget-category { padding: 16px 18px; }
.budget-category-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.budget-category-name { flex: 1 1 200px; min-width: 0; font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; border: 1px solid transparent; background: transparent; padding: 4px 8px; margin-left: -8px; border-radius: var(--r-sm); color: var(--ink); }
.budget-category-name:hover, .budget-category-name:focus { border-color: var(--line); background: #fff; }
.budget-category-total { font-weight: 600; font-variant-numeric: tabular-nums; }
.budget-category-total small { font-weight: 400; color: var(--muted); }
.budget-category-tools { display: flex; gap: 4px; }
.budget-category-tools .icon-btn { width: 34px; padding: 0; justify-content: center; }
.budget-items { list-style: none; margin: 10px 0 6px; padding: 0; display: grid; }
.budget-item { border-top: 1px solid var(--line); }
.budget-item-main { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.budget-item-main:hover .budget-item-name { color: var(--berry); }
.budget-item-main:focus-visible { outline: 2px solid var(--berry); outline-offset: 2px; border-radius: 6px; }
.budget-item-name { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.budget-item-name small { display: block; font-weight: 400; font-size: .82rem; color: var(--muted); }
.budget-item-name .budget-note { font-style: italic; }
.budget-cols { display: grid; grid-template-columns: repeat(4, 96px); gap: 8px; text-align: right; font-variant-numeric: tabular-nums; font-size: .92rem; }
.budget-col small { display: block; font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.budget-col.is-overdue { color: #B3261E; font-weight: 600; }
.budget-item-due { margin: -4px 0 10px; }
.budget-chip { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; padding: 2px 10px; border-radius: 999px; background: var(--sand); color: var(--ink-2); }
.budget-chip.is-overdue { background: #FBE9E7; color: #B3261E; font-weight: 600; }
.budget-chip.is-paid { background: var(--sage-50); color: var(--sage); }
.budget-empty { padding: 8px 0; border-top: 1px solid var(--line); margin: 0; }
.budget-add-item { margin-top: 4px; }

.budget-item-form, .budget-gift-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 12px; padding: 14px; margin: 8px 0 12px; border-radius: var(--r-md); background: var(--ivory); border: 1px solid var(--line); }
.budget-field { display: grid; gap: 4px; font-size: .82rem; color: var(--ink-2); font-weight: 500; min-width: 0; }
.budget-field.is-wide { grid-column: 1 / -1; }
.budget-field input, .budget-field select, .budget-field textarea { width: 100%; }
.budget-form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.budget-delete { margin-left: auto; color: #B3261E; }

.budget-add-category { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.budget-add-category input { flex: 1 1 260px; }

.budget-gift-add .budget-gift-form { margin-top: 0; }
.budget-gift-list { list-style: none; margin: 14px 0 0; padding: 0; }
.budget-gift { border-top: 1px solid var(--line); }
.budget-gift-main { width: 100%; display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; font-variant-numeric: tabular-nums; }
.budget-gift-main small { display: block; color: var(--muted); font-size: .82rem; }
.budget-gift-main:hover span { color: var(--berry); }
.budget-gift-total { text-align: right; margin: 10px 0 0; padding-top: 10px; border-top: 2px solid var(--line); font-variant-numeric: tabular-nums; }

@media (max-width: 720px) {
    .budget-item-main { grid-template-columns: 1fr; gap: 6px; }
    .budget-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; text-align: left; }
    .budget-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .budget-target input { flex: 1 1 auto; width: auto; }
    .budget-target, .budget-target label { flex: 1 1 100%; }
    .budget-due-list li { grid-template-columns: 1fr auto; }
    .budget-due-date { grid-column: 1 / -1; }
}

/* ---------- Preparation checklist (client area) ---------- */
.checklist-progress { display: grid; gap: 12px; }
.checklist-count { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; color: var(--ink-2); }
.checklist-overdue-count { color: #B3261E; font-weight: 600; }
.checklist-next ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; }
.checklist-next li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); }
.checklist-next li:first-child { border-top: 0; }
.checklist-next-date { color: var(--muted); font-size: .88rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.checklist-next li.is-overdue .checklist-next-date { color: #B3261E; font-weight: 600; }
.checklist-alldone { margin: 0; color: var(--sage); font-weight: 600; }
.checklist-add { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 16px; }
.checklist-add input { height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: 400 .95rem var(--font-body); color: var(--ink); min-width: 0; }
.checklist-add input[type=text] { flex: 1 1 260px; }
.checklist-add input:focus { outline: none; border-color: var(--berry); box-shadow: 0 0 0 4px var(--berry-50); }
.checklist-groups { display: grid; gap: 12px; }
.checklist-group { padding: 16px 18px; }
.checklist-group h2 { font-size: 1.1rem; margin: 0 0 6px; display: flex; align-items: center; gap: 8px; }
.checklist-group.is-overdue { border-color: #F1C9C4; }
.checklist-group.is-overdue h2 { color: #B3261E; }
.checklist-group.is-done summary { cursor: pointer; list-style: none; }
.checklist-group.is-done summary::-webkit-details-marker { display: none; }
.checklist-group.is-done summary h2 { margin: 0; color: var(--muted); }
.checklist-group.is-done[open] summary h2 { margin-bottom: 6px; }
.checklist-list { list-style: none; margin: 0; padding: 0; }
.checklist-task { display: flex; gap: 12px; align-items: flex-start; border-top: 1px solid var(--line); padding: 10px 0; }
.checklist-task:first-child { border-top: 0; }
.checklist-task.is-editing { display: block; }
.checklist-check { flex: none; width: 26px; height: 26px; margin-top: 1px; border-radius: 8px; border: 2px solid var(--line); background: #fff; color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; font-size: .95rem; }
.checklist-check:hover { border-color: var(--sage); }
.checklist-check[aria-pressed="true"] { background: var(--sage); border-color: var(--sage); }
.checklist-check:focus-visible, .checklist-main:focus-visible { outline: 2px solid var(--berry); outline-offset: 2px; }
.checklist-main { flex: 1; min-width: 0; display: grid; gap: 4px; border: 0; background: none; font: inherit; color: inherit; text-align: left; padding: 0; cursor: pointer; }
.checklist-main:hover .checklist-title { color: var(--berry); }
.checklist-title { font-weight: 600; overflow-wrap: anywhere; }
.checklist-task.is-done .checklist-title { text-decoration: line-through; color: var(--muted); font-weight: 500; }
.checklist-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.checklist-meta:empty { display: none; }
.checklist-due { font-size: .82rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.checklist-due.is-overdue { color: #B3261E; font-weight: 600; }
.checklist-notes { font-size: .84rem; color: var(--muted); font-style: italic; }

/* ---------- Guest photo wall (lightbox shared by the guests' page and the couple's page) ---------- */
.wall-light[hidden] { display: none; }
.wall-light { position: fixed; inset: 0; z-index: 50; background: rgba(20, 14, 18, .92); display: grid; place-items: center; padding: 48px 12px 24px; }
.wall-light img { max-width: 100%; max-height: calc(100vh - 110px); border-radius: 8px; }
.wall-light p { color: #fff; margin: 10px 0 0; text-align: center; font-size: .9rem; min-height: 1em; }
.wall-light-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.2rem; cursor: pointer; }

/* The couple's side */
.photos-share { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px 28px; }
.photos-share-main { display: grid; gap: 10px; align-content: start; min-width: 0; }
.photos-share .invite-link { margin: 0; }
.photos-cards { display: grid; gap: 8px; margin-top: 6px; }
.photos-settings { display: grid; gap: 12px; align-content: start; }
.photos-toggle { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.photos-toggle input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--berry); flex: none; }
.photos-toggle span { display: grid; gap: 2px; }
.photos-toggle small { color: var(--muted); font-size: .84rem; }
.photos-bulk:empty { display: none; }
.photos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.photos-item { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; display: grid; }
.photos-open { padding: 0; border: 0; background: var(--sand); aspect-ratio: 1; cursor: zoom-in; display: block; }
.photos-open img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photos-item figcaption { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 6px 8px; font-size: .8rem; color: var(--ink-2); min-width: 0; }
.photos-item figcaption > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.photos-acts { display: flex; gap: 4px; flex: none; }
.photos-act { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; display: grid; place-items: center; padding: 0; }
.photos-act.is-ok { color: var(--sage); }
.photos-act.is-danger { color: #B3261E; }
.photos-act:hover { border-color: currentColor; }
.photos-more { justify-self: center; }
@media (max-width: 720px) { .photos-share { grid-template-columns: 1fr; } .photos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Guest list and sending (client area) ---------- */
.guests-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.guests-stat { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--line); }
.guests-stat strong { font-size: 1.4rem; font-family: var(--font-display); font-weight: 500; font-variant-numeric: tabular-nums; }
.guests-stat span { font-size: .8rem; color: var(--muted); }
.guests-stat.is-coming strong { color: var(--sage); }
.guests-stat.is-declined strong { color: #B3261E; }
.guests-add { display: grid; gap: 12px; padding: 14px 18px 18px; }
.guests-add [hidden], .guests-app [hidden] { display: none !important; }
.guests-add-form { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr auto; gap: 8px; }
.guests-add-form input, .guests-import textarea, .guests-toolbar input, .guests-toolbar select {
    height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: 400 .95rem var(--font-body); color: var(--ink); min-width: 0;
}
.guests-import textarea { height: auto; padding: 10px 12px; width: 100%; resize: vertical; }
.guests-add-form input:focus, .guests-import textarea:focus, .guests-toolbar input:focus { outline: none; border-color: var(--berry); box-shadow: 0 0 0 4px var(--berry-50); }
.guests-import { display: grid; gap: 8px; }
.guests-import-actions { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.guests-import-actions label { cursor: pointer; }
.guests-general { display: grid; gap: 8px; }
.guests-general .invite-link { margin: 0; }
.guests-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.guests-toolbar input[type=search] { flex: 1 1 220px; }
.guests-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.guests-chip { font: inherit; font-size: .86rem; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink-2); cursor: pointer; }
.guests-chip span { color: var(--muted); font-variant-numeric: tabular-nums; }
.guests-chip.is-active { background: var(--berry); border-color: var(--berry); color: #fff; }
.guests-chip.is-active span { color: rgba(255, 255, 255, .8); }
.guests-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.guests-actions:empty { display: none; }
.guests-list { display: grid; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 4px 16px; }
.guests-list > .hint { padding: 12px 0; }
.guests-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.guests-row:first-child { border-top: 0; }
.guests-row.is-editing { display: block; }
.guests-who { display: grid; gap: 2px; border: 0; background: none; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; min-width: 0; }
.guests-who strong { overflow-wrap: anywhere; }
.guests-who:hover strong { color: var(--berry); }
.guests-who small { color: var(--muted); font-size: .82rem; overflow-wrap: anywhere; }
.guests-status { font-size: .78rem; padding: 3px 10px; border-radius: 999px; background: var(--sand); color: var(--ink-2); white-space: nowrap; }
.guests-status.is-sent { background: #EEF2FA; color: #3B5BA9; }
.guests-status.is-opened { background: #FFF4DE; color: #9A6A12; }
.guests-status.is-coming { background: var(--sage-50); color: var(--sage); font-weight: 600; }
.guests-status.is-declined { background: #FBE9E7; color: #B3261E; }
.guests-chs { display: flex; gap: 4px; }
.guests-ch { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 36px; height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font: inherit; font-size: .9rem; cursor: pointer; text-decoration: none; }
.guests-ch:hover { border-color: var(--ink-2); color: var(--ink); }
.guests-ch.is-wa { color: #1F9C4A; }
.guests-ch.is-off { opacity: .45; }
.guests-unlisted summary { cursor: pointer; list-style: none; }
.guests-unlisted summary::-webkit-details-marker { display: none; }
.guests-unlisted h2 { font-size: 1.1rem; margin: 0; display: flex; gap: 8px; align-items: center; }
.guests-unlisted[open] h2, .guests-unlisted details[open] h2 { margin-bottom: 8px; }
.guests-unlisted-list { list-style: none; margin: 0; padding: 0; display: grid; }
.guests-unlisted-list li { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.guests-unlisted-list li:first-child { border-top: 0; }
.guests-unlisted-list small { color: var(--muted); }
.guests-messages summary { cursor: pointer; list-style: none; }
.guests-messages summary::-webkit-details-marker { display: none; }
.guests-messages summary h2 { font-size: 1.1rem; margin: 0; }
.guests-messages[open] summary h2 { margin-bottom: 10px; }
.guests-messages form { display: grid; gap: 10px; }
.guests-messages h3 { font-size: .95rem; margin: 6px 0 0; }
.guests-messages textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: 400 .95rem var(--font-body); resize: vertical; }
.guests-queue { place-items: center; }
.guests-queue-card { position: relative; width: min(520px, 100%); display: grid; gap: 10px; padding: 26px 22px 18px; }
.guests-queue-card .wall-light-close { background: var(--sand); color: var(--ink); }
.guests-queue-card h2 { margin: 0; font-size: 1.6rem; overflow-wrap: anywhere; }
.guests-queue-msg { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--ivory); border: 1px solid var(--line); font-size: .92rem; white-space: pre-line; overflow-wrap: anywhere; }
.guests-queue-chs { display: flex; flex-wrap: wrap; gap: 8px; }
.guests-queue-chs .guests-ch { height: 44px; padding: 0 16px; font-size: 1rem; }
.guests-queue-nav { display: flex; justify-content: space-between; margin-top: 6px; }
.guests-queue-done { margin: 10px 0; font-size: 1.1rem; color: var(--sage); font-weight: 600; text-align: center; }
@media (max-width: 860px) {
    .guests-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .guests-add-form { grid-template-columns: 1fr 1fr; }
    .guests-add-form input[name=name] { grid-column: 1 / -1; }
    .guests-row { grid-template-columns: minmax(0, 1fr) auto; }
    .guests-chs { grid-column: 1 / -1; }
}

/* Cookie banner (layouts/partials/cookie-consent) */
.cookie-consent { position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin-left: auto;
    background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-md);
    box-shadow: 0 12px 40px rgba(30, 26, 34, .18); padding: 18px 20px; font-size: .92rem; line-height: 1.55; }
.cookie-consent[hidden] { display: none; }
.cookie-consent p { margin: 0 0 12px; color: var(--ink-2); }
.cookie-consent a { color: var(--berry); text-decoration: underline; }
.cookie-consent .cookie-consent-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.cookie-consent-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.cookie-consent-actions .btn { flex: 1 1 160px; }
.footer-link-button { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.footer-link-button:hover { text-decoration: underline; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.6em; font-size: .92rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--ink); font-weight: 600; }
.prose code { font-size: .88em; background: var(--sand); padding: 1px 5px; border-radius: 4px; }

/* Visit statistics (client/stats/show) */
.stats-panel { display: grid; gap: 12px; margin-bottom: 16px; }
.stats-empty { margin-bottom: 16px; color: var(--ink-2); }
.stats-chart { display: flex; align-items: flex-end; gap: 3px; height: 180px; padding-top: 18px; }
.stats-bar { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; }
.stats-bar span { display: block; width: 100%; background: var(--berry); border-radius: 4px 4px 0 0; opacity: .85; }
.stats-bar:hover span { opacity: 1; }
.stats-bar em { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(100% + 2px); font-style: normal; font-size: .7rem; color: var(--muted); display: none; }
.stats-bar:hover em { display: block; }
.stats-axis { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 6px; }
.stats-split { display: grid; gap: 0 16px; }
@media (min-width: 760px) { .stats-split { grid-template-columns: 1fr 1fr; } }
.stats-row { display: grid; gap: 6px; }
.stats-row-head { display: flex; justify-content: space-between; font-size: .92rem; color: var(--ink-2); }
.stats-row .budget-meter span { background: var(--berry); }
.stats-funnel { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.stats-funnel div { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--r-md); background: var(--ivory); border: 1px solid var(--line); }
.stats-funnel span { font-size: .85rem; color: var(--muted); }
.stats-upsell-art { display: flex; align-items: flex-end; gap: 8px; height: 140px; padding: 18px; border-radius: var(--r-lg); background: var(--berry-50); }
.stats-upsell-art span { flex: 1; background: var(--berry); opacity: .55; border-radius: 4px 4px 0 0; }
.stats-panel .budget-stat strong.budget-big, .stats-funnel strong.budget-big { font-size: clamp(1.7rem, 4vw, 2.2rem); }

/* Partner link on the PDF cards (client.partials.partner-signature) */
.partner-signature { margin: 8px 0 0; font-size: .88rem; }
.partner-signature label { display: inline-flex; align-items: flex-start; gap: 8px; cursor: pointer; color: var(--ink); }
.partner-signature input[type=checkbox] { margin-top: 3px; accent-color: var(--berry); }
.partner-signature small { color: var(--ink-2); word-break: break-all; }
.partner-signature .bi { color: var(--berry); }

/* ---------- Home: what the higher packages add, in the order they are used ---------- */

.plan-chip { display: inline-block; vertical-align: 1px; margin-left: 4px; padding: 2px 9px; border-radius: 999px; background: var(--berry-50); color: var(--berry); font-size: .72rem; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.journey { display: grid; gap: 20px; }
@media (min-width: 900px) { .journey { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.journey-phase { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 22px; display: grid; gap: 18px; align-content: start; }
.journey-phase h3 { margin: 0; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--berry); font-family: var(--font-body); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.journey-item { display: grid; gap: 6px; min-width: 0; }
.journey-item strong { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; line-height: 1.3; }
.journey-item p { margin: 0; color: var(--ink-2); font-size: .94rem; }

/* ---------- Home: partner programme ---------- */

.partner-band { display: grid; gap: 22px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 36px 28px; }
.partner-band > div { min-width: 0; }
.partner-band h2 { margin: 6px 0 10px; text-wrap: balance; }
.partner-band p { margin: 0; color: var(--ink-2); max-width: 46em; }
@media (min-width: 900px) { .partner-band { grid-template-columns: minmax(0, 1fr) auto; padding: 40px 44px; gap: 40px; } }

/* Partner sign-up: where they recommend the platform (site.affiliates.partials.channel) */
.channel-choice { display: grid; gap: 8px; margin-bottom: 18px; }
.channel-choice .field-label { font-weight: 600; font-size: .92rem; }

/* Partner page: QR code and marketing card */
.partner-kit { display: grid; gap: 18px 24px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
@media (min-width: 720px) { .partner-kit { grid-template-columns: 170px minmax(0, 1fr); align-items: start; } }
.partner-kit__qr { width: 170px; max-width: 100%; aspect-ratio: 1; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.partner-kit__qr svg { display: block; width: 100%; height: 100%; }
.partner-kit__qr svg path { fill: var(--ink); }
.partner-kit__body { display: grid; gap: 10px; min-width: 0; }
.partner-kit__body h3 { margin: 0; font-size: 1.15rem; }
.partner-kit__body p { margin: 0; color: var(--ink-2); }

/* "Delete this invitation" at the foot of every card in the account */
.invite-delete { margin: 10px 0 0; font-size: .82rem; }
.invite-delete a { color: var(--muted); }
.invite-delete a:hover { color: #B3261E; }
/* Planning tools before payment: a note with the way to pay, the tool below as an inert preview */
.paywall-note { display: grid; gap: 12px 18px; align-items: center; padding: 20px 22px; margin-bottom: 18px; border: 1px solid var(--berry-100, rgba(142, 47, 78, .18)); }
@media (min-width: 760px) { .paywall-note { grid-template-columns: auto minmax(0, 1fr) auto; } }
.paywall-note > .bi { font-size: 1.6rem; color: var(--berry); }
.paywall-note h2 { font-size: 1.2rem; margin: 0 0 4px; }
.paywall-note p { margin: 0; }
.paywall-preview { opacity: .6; filter: saturate(.7); user-select: none; }

/* Campaign strip above the header (layouts/partials/announce-bar) */
.announce-bar {
    background: var(--berry);
    color: #fff;
    font-size: .875rem;
    line-height: 1.35;
}
.announce-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 40px;
    padding-block: 7px;
}
.announce-link {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 10px;
    color: #fff;
    text-decoration: none;
    text-align: center;
}
.announce-link .bi-gift { color: #F3D9A8; }
.announce-cta {
    font-weight: 600;
    white-space: nowrap;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(255, 255, 255, .5);
}
a.announce-link:hover .announce-cta { text-decoration-color: #fff; }
.announce-close {
    flex: none;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: rgba(255, 255, 255, .85);
    cursor: pointer;
}
.announce-close:hover, .announce-close:focus-visible { background: rgba(255, 255, 255, .15); color: #fff; }
.announce-short { display: none; }
@media (max-width: 600px) {
    .announce-bar { font-size: .8125rem; }
    .announce-inner { gap: 6px; padding-block: 5px; }
    .announce-link { justify-content: flex-start; flex-wrap: nowrap; text-align: left; gap: 8px; }
    .announce-long { display: none; }
    .announce-short { display: inline; min-width: 0; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .5); }
    .announce-cta-label { display: none; }
}

/* The campaign link in the menu (Admin → Setări → Bandă de anunț → Buton în meniu), next to the other links */
.nav-links a.nav-campaign {
    display: inline-flex; align-items: center; gap: 6px;
    margin: -6px 0; padding: 6px 13px; border-radius: 999px;
    background: var(--berry-50); color: var(--berry); font-weight: 600; box-shadow: inset 0 0 0 1px rgba(142, 47, 78, .25);
}
.nav-links a.nav-campaign:hover { background: var(--berry); color: #fff; }
.nav-mobile-panel a.nav-campaign { background: var(--berry-50); color: var(--berry); font-weight: 600; margin-bottom: 6px; }
.nav-mobile-panel a.nav-campaign:hover { background: var(--berry); color: #fff; }
.nav-links a { white-space: nowrap; }
/* Between tablet and laptop widths the extra button would push the menu out: tighter gaps, and "Cum funcționează"
   (an anchor on the home page, also reachable from the hero) gives way while a campaign is on */
@media (min-width: 960px) and (max-width: 1179px) {
    .nav-links { gap: 18px; }
    .nav-links:has(.nav-campaign) a[href$="#cum-functioneaza"] { display: none; }
}
.print-menu__upsell { padding-top: 8px; border-top: 1px solid var(--line, #E3D8CD); }
