/* ============================================================
   MarriageEmporium 2026 — Design System
   "Warm, celebratory, premium." Deep rose & burgundy, blush,
   champagne gold on ivory. Playfair Display + Jost + Great Vibes.
   ============================================================ */

:root {
    --ivory: #FFF9F4;
    --cream: #FBF0E4;
    --blush: #F7E3E8;
    --blush-deep: #F0CFDA;
    --rose: #C94F7C;
    --rose-bright: #E06C9A;
    --burgundy: #7A1F3D;
    --wine: #4A1226;
    --ink: #2E1420;
    --ink-soft: #6E5560;
    --champagne: #D4AF6A;
    --champagne-bright: #EACB8C;
    --gold-deep: #A9822F;
    --region-accent: #8E2245;
    --region-accent-soft: #F7E3E8;
    --shadow-soft: 0 10px 40px rgba(74, 18, 38, 0.10);
    --shadow-lift: 0 18px 60px rgba(74, 18, 38, 0.18);
    --radius: 18px;
    --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --sans: 'Jost', 'Segoe UI', system-ui, sans-serif;
    --script: 'Great Vibes', 'Segoe Script', cursive;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
    margin: 0;
    padding: 0;
    font-family: var(--sans);
    color: var(--ink);
    background: var(--ivory);
    font-size: 17px;
    line-height: 1.65;
}

h1, h2, h3, h4 { font-family: var(--serif); color: var(--wine); line-height: 1.18; margin: 0 0 0.5em; }

a { color: var(--burgundy); text-decoration: none; }

img, svg { max-width: 100%; }

.me-shell { display: flex; flex-direction: column; min-height: 100vh; }
.me-main { flex: 1; }

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

.btn {
    display: inline-block;
    font-family: var(--sans);
    font-weight: 500;
    letter-spacing: 0.04em;
    border: none;
    border-radius: 999px;
    padding: 0.72em 1.7em;
    cursor: pointer;
    font-size: 0.98rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s;
    text-align: center;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: linear-gradient(120deg, var(--burgundy), var(--rose));
    color: #fff;
    box-shadow: 0 8px 24px rgba(122, 31, 61, 0.35);
}
.btn-primary:hover { box-shadow: 0 12px 32px rgba(122, 31, 61, 0.45); color: #fff; }

.btn-champagne {
    background: linear-gradient(120deg, var(--gold-deep), var(--champagne-bright));
    color: var(--wine);
    box-shadow: 0 8px 24px rgba(169, 130, 47, 0.4);
    font-weight: 600;
}

.btn-outline {
    background: transparent;
    color: var(--burgundy);
    border: 1.6px solid var(--burgundy);
}
.btn-outline:hover { background: var(--burgundy); color: #fff; }

.btn-ghost { background: transparent; color: var(--burgundy); }
.btn-ghost:hover { background: var(--blush); }
.btn-ghost:disabled { opacity: 0.35; cursor: default; }

.btn-lg { padding: 0.95em 2.3em; font-size: 1.08rem; }

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 1.6rem;
    padding: 0.65rem clamp(1rem, 4vw, 3rem);
    background: rgba(255, 249, 244, 0.86);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(122, 31, 61, 0.10);
}

.brand { display: flex; align-items: center; gap: 0.55rem; }
.brand-mark { width: 40px; height: 40px; }
.brand-word {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.32rem;
    color: var(--wine);
    letter-spacing: 0.01em;
}
.brand-word em { font-style: normal; color: var(--rose); }

.main-nav { display: flex; gap: 1.4rem; margin-left: auto; flex-wrap: wrap; }
.main-nav a {
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    color: var(--ink-soft);
    padding: 0.3rem 0.1rem;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}
.main-nav a:hover { color: var(--burgundy); }
.main-nav a.active { color: var(--burgundy); border-bottom-color: var(--champagne); }

.header-actions { display: flex; align-items: center; gap: 0.7rem; }

.region-pick {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--blush);
    border-radius: 999px;
    padding: 0.28rem 0.75rem;
}
.region-pick select {
    border: none;
    background: transparent;
    font-family: var(--sans);
    font-size: 0.88rem;
    color: var(--burgundy);
    cursor: pointer;
    outline: none;
}

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

.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 6vw, 5rem) 0;
}

.hero-sky {
    position: absolute;
    inset: -20% -10%;
    background:
        radial-gradient(60% 55% at 78% 22%, rgba(212, 175, 106, 0.34) 0%, transparent 60%),
        radial-gradient(55% 60% at 15% 80%, rgba(201, 79, 124, 0.20) 0%, transparent 65%),
        radial-gradient(70% 70% at 55% 45%, rgba(247, 227, 232, 0.9) 0%, transparent 75%),
        linear-gradient(160deg, #FFF6EE 0%, #FBE9EA 45%, #F6DCE4 100%);
    animation: skyDrift 24s ease-in-out infinite alternate;
}

@keyframes skyDrift {
    from { transform: scale(1) translate(0, 0); }
    to { transform: scale(1.08) translate(-1.5%, 2%); }
}

.hero-glow {
    position: absolute;
    width: 60vmin; height: 60vmin;
    right: -12vmin; top: -14vmin;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(234, 203, 140, 0.55) 0%, rgba(234, 203, 140, 0) 70%);
    animation: glowPulse 7s ease-in-out infinite alternate;
}

@keyframes glowPulse {
    from { opacity: 0.65; transform: scale(1); }
    to { opacity: 1; transform: scale(1.12); }
}

.hero-motif {
    position: absolute;
    right: clamp(-4rem, 2vw, 4rem);
    bottom: 6rem;
    width: clamp(280px, 34vw, 520px);
    color: var(--region-accent);
    opacity: 0.16;
    animation: motifSpin 90s linear infinite;
}

@keyframes motifSpin { to { transform: rotate(360deg); } }

.hero-inner { position: relative; max-width: 780px; z-index: 2; }

.hero-kicker {
    text-transform: uppercase;
    letter-spacing: 0.34em;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gold-deep);
    margin: 0 0 0.4rem;
}

.hero-script {
    font-family: var(--script);
    font-size: clamp(1.7rem, 3.2vw, 2.6rem);
    color: var(--rose);
    margin: 0 0 0.6rem;
}

.hero-title {
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    font-weight: 800;
    margin: 0 0 1.1rem;
}

.hero-emph {
    background: linear-gradient(100deg, var(--burgundy) 20%, var(--rose) 55%, var(--gold-deep) 95%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-style: italic;
}

.hero-sub {
    font-size: clamp(1.02rem, 1.5vw, 1.2rem);
    color: var(--ink-soft);
    max-width: 620px;
    margin: 0 0 1.8rem;
}

.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-located { margin-top: 1.2rem; font-size: 0.92rem; color: var(--ink-soft); }

.hero-stats {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1px;
    background: rgba(122, 31, 61, 0.12);
    border-radius: var(--radius) var(--radius) 0 0;
    overflow: hidden;
    margin-top: clamp(2rem, 6vh, 4rem);
    box-shadow: var(--shadow-soft);
}

.hero-stats > div {
    background: rgba(255, 249, 244, 0.92);
    padding: 1.2rem 1.4rem;
    display: flex;
    flex-direction: column;
}

.hero-stats strong { font-family: var(--serif); font-size: 1.5rem; color: var(--burgundy); }
.hero-stats span { font-size: 0.85rem; color: var(--ink-soft); letter-spacing: 0.03em; }

/* ---------------- Petals ---------------- */

.petals { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.petal {
    position: absolute;
    top: -6%;
    width: 16px; height: 13px;
    background: radial-gradient(ellipse at 30% 30%, #F5BFD3 0%, #E58BAD 60%, #D06B94 100%);
    border-radius: 80% 10% 80% 10%;
    opacity: 0.8;
    animation-name: petalFall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.petal:nth-child(3n) { width: 11px; height: 9px; opacity: 0.6; }
.petal:nth-child(4n) { background: radial-gradient(ellipse at 30% 30%, #F7DCC4 0%, #EAC08C 70%, #D4AF6A 100%); }

@keyframes petalFall {
    0% { transform: translateY(-4vh) rotate(0deg) translateX(0); }
    25% { transform: translateY(26vh) rotate(160deg) translateX(3vw); }
    50% { transform: translateY(52vh) rotate(320deg) translateX(-2vw); }
    75% { transform: translateY(78vh) rotate(480deg) translateX(3vw); }
    100% { transform: translateY(108vh) rotate(680deg) translateX(-1vw); }
}

/* ---------------- Bands & sections ---------------- */

.band { padding: clamp(3rem, 8vh, 5.5rem) clamp(1rem, 5vw, 3.5rem); }
.band-tight { padding-top: clamp(1.6rem, 4vh, 2.6rem); }
.band-cream { background: linear-gradient(180deg, var(--cream), var(--ivory)); }
.band-blush { background: linear-gradient(180deg, var(--blush) 0%, var(--ivory) 100%); }

.band-inner { max-width: 1220px; margin: 0 auto; }
.band-inner.narrow { max-width: 760px; }
.band-inner.center, .center { text-align: center; }

.with-rail { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2.4rem; align-items: start; }
.rail-main { min-width: 0; }

.sect-title {
    font-size: clamp(1.9rem, 3.6vw, 2.8rem);
    margin-bottom: 0.5rem;
}
.sect-title em { color: var(--rose); }

.sect-lead { color: var(--ink-soft); max-width: 680px; margin: 0 0 2.2rem; font-size: 1.06rem; }

.center-cta { text-align: center; margin-top: 2.4rem; }

.loading-note { color: var(--ink-soft); font-style: italic; padding: 2rem 0; }

.tri-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.6rem; }

.pillar {
    background: #fff;
    border-radius: var(--radius);
    padding: 2rem 1.8rem;
    box-shadow: var(--shadow-soft);
    border-top: 4px solid var(--champagne);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }

.pillar-num {
    font-family: var(--serif);
    font-size: 1rem;
    color: var(--champagne);
    letter-spacing: 0.3em;
    margin-bottom: 0.6rem;
}

.pillar h3 { font-size: 1.3rem; }
.pillar p { color: var(--ink-soft); margin: 0; font-size: 0.98rem; }

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

.steps { display: flex; gap: 0.6rem; align-items: stretch; flex-wrap: wrap; }

.step {
    flex: 1 1 200px;
    background: #fff;
    border-radius: var(--radius);
    padding: 1.8rem 1.5rem;
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: transform 0.3s ease;
}
.step:hover { transform: translateY(-6px); }

.step-ring {
    width: 58px; height: 58px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    border: 2.5px solid var(--champagne);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--serif);
    font-size: 1.5rem;
    color: var(--burgundy);
    background: radial-gradient(circle at 30% 25%, #fff, var(--blush));
}

.step h3 { font-size: 1.18rem; }
.step p { font-size: 0.92rem; color: var(--ink-soft); margin: 0; }

.step-arrow { align-self: center; color: var(--champagne); font-size: 1.6rem; padding: 0 0.2rem; }

/* ---------------- Profile cards ---------------- */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
    gap: 1.5rem;
}

.profile-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}
.profile-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }

.pc-top {
    position: relative;
    padding: 1.6rem 1.4rem 0.8rem;
    background:
        radial-gradient(120% 90% at 50% -20%, var(--region-accent-soft) 0%, transparent 70%),
        linear-gradient(160deg, var(--blush) 0%, #fff 90%);
    display: flex;
    justify-content: center;
}

.pc-medallion { position: relative; width: 118px; }

.cameo { display: block; filter: drop-shadow(0 6px 14px rgba(74, 18, 38, 0.25)); }

/* Search photo shown in the same oval-brooch footprint as the cameo */
.pc-photo {
    display: block;
    width: 118px;
    aspect-ratio: 120 / 150;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid transparent;
    background: linear-gradient(180deg, #EACB8C, #B8934D, #EACB8C) border-box;
    box-shadow: 0 6px 14px rgba(74, 18, 38, 0.25);
}
.pc-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.pc-photo-lg { width: 100%; }

.gallery-star {
    position: absolute;
    left: 8px; bottom: 8px;
    border: none;
    border-radius: 999px;
    padding: 0.3rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    background: rgba(255, 249, 244, 0.92);
    color: var(--burgundy);
    opacity: 0;
    transition: opacity 0.2s;
}
.gallery-item:hover .gallery-star { opacity: 1; }
.gallery-star.on { opacity: 1; background: linear-gradient(120deg, var(--gold-deep), var(--champagne-bright)); color: var(--wine); }
.cameo-lg { width: 100%; }
.cameo-monogram {
    font-family: var(--serif);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    fill: #4A1226;
}

.profile-card:hover .cameo { filter: drop-shadow(0 10px 20px rgba(74, 18, 38, 0.35)); }

.pc-online, .ph-online {
    position: absolute;
    right: 6px; bottom: 8px;
    width: 15px; height: 15px;
    border-radius: 50%;
    background: #3AC569;
    border: 2.5px solid #fff;
    box-shadow: 0 0 0 rgba(58, 197, 105, 0.5);
    animation: onlinePulse 2.2s infinite;
}

@keyframes onlinePulse {
    0% { box-shadow: 0 0 0 0 rgba(58, 197, 105, 0.5); }
    70% { box-shadow: 0 0 0 9px rgba(58, 197, 105, 0); }
    100% { box-shadow: 0 0 0 0 rgba(58, 197, 105, 0); }
}

.you-chip {
    position: absolute;
    top: 0.9rem; right: 0.9rem;
    background: linear-gradient(120deg, var(--gold-deep), var(--champagne-bright));
    color: var(--wine);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 0.42rem 0.9rem;
    box-shadow: var(--shadow-soft);
}

.heart-btn {
    position: absolute;
    top: 0.9rem; right: 0.9rem;
    width: 42px; height: 42px;
    border-radius: 50%;
    border: none;
    background: #fff;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.2s ease;
}
.heart-btn:hover { transform: scale(1.15); }
.heart-btn svg { width: 22px; height: 22px; }

/* Legacy Send-a-Heart states: red available, green online, white sent */
.heart-none svg { fill: #E0335C; }
.heart-online svg { fill: #2FB56B; }
.heart-sent { background: linear-gradient(135deg, var(--burgundy), var(--rose)); cursor: default; }
.heart-sent svg { fill: #fff; animation: heartPop 0.5s ease; }

@keyframes heartPop {
    0% { transform: scale(0.4); }
    60% { transform: scale(1.35); }
    100% { transform: scale(1); }
}

.pc-body { padding: 0.9rem 1.4rem 1.3rem; }

.pc-name-row { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.pc-name-row h3 { font-size: 1.22rem; margin: 0; }

.pc-place { font-size: 0.86rem; color: var(--ink-soft); margin: 0.15rem 0 0.5rem; }

.pc-tagline {
    font-family: var(--serif);
    font-style: italic;
    font-size: 0.98rem;
    color: var(--burgundy);
    margin: 0 0 0.8rem;
    min-height: 2.6em;
}

.pc-meter { height: 6px; background: var(--blush); border-radius: 6px; overflow: hidden; }
.pc-meter-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--rose), var(--champagne));
    border-radius: 6px;
    transition: width 0.8s ease;
}

.pc-foot {
    display: flex; justify-content: space-between;
    font-size: 0.8rem; color: var(--ink-soft);
    margin-top: 0.45rem;
}
.pc-complete { color: var(--gold-deep); font-weight: 600; }

.pc-align {
    margin-top: 0.7rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--burgundy);
    background: var(--blush);
    border-radius: 8px;
    padding: 0.35rem 0.6rem;
    text-align: center;
}

.verify-badge {
    display: inline-flex; align-items: center; gap: 0.25rem;
    font-size: 0.72rem; color: var(--ink-soft);
}
.verify-badge svg { width: 18px; height: 18px; fill: #CBB8BE; }
.verify-3 svg, .verify-4 svg { fill: var(--champagne); }
.verify-5 svg { fill: var(--gold-deep); }
.verify-check { stroke: #fff; }
.verify-badge em { font-style: normal; font-weight: 600; }

/* ---------------- Ad panel ---------------- */

.ad-panel { display: flex; flex-direction: column; gap: 0.6rem; }
.ad-panel-rail { position: sticky; top: 92px; }

.ad-tag {
    font-size: 0.68rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.ad-card {
    border-radius: var(--radius);
    color: #fff;
    padding: 1.7rem 1.5rem;
    min-height: 330px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lift);
    opacity: 1;
    transition: opacity 0.35s ease;
}
.ad-card.ad-fading { opacity: 0; }

.ad-icon { font-size: 2rem; margin-bottom: 0.6rem; }
.ad-kicker { font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; opacity: 0.85; }
.ad-headline { color: #fff; font-size: 1.35rem; margin: 0.4rem 0 0.5rem; }
.ad-body { font-size: 0.92rem; opacity: 0.92; flex: 1; }
.ad-cta {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.6);
    align-self: flex-start;
    padding-bottom: 2px;
}

.ad-dots { display: flex; gap: 0.45rem; justify-content: center; }
.ad-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    border: none;
    background: var(--blush-deep);
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s, background 0.2s;
}
.ad-dot.on { background: var(--burgundy); transform: scale(1.3); }

.ad-panel-band { max-width: 720px; margin: 0 auto; }

/* ---------------- Region blessing band ---------------- */

.band-blessing {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(90% 130% at 85% 15%, color-mix(in srgb, var(--region-accent) 28%, transparent) 0%, transparent 60%),
        linear-gradient(150deg, var(--wine) 0%, #33101F 70%);
    color: var(--blush);
}

.blessing-motif {
    position: absolute;
    left: -60px; top: 50%;
    transform: translateY(-50%);
    width: 380px;
    color: var(--champagne);
    opacity: 0.14;
}

.blessing-inner { position: relative; text-align: center; }

.blessing-kicker {
    text-transform: uppercase;
    letter-spacing: 0.34em;
    font-size: 0.8rem;
    color: var(--champagne);
    margin-bottom: 0.8rem;
}

.blessing-script {
    font-family: var(--script);
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: #FBE9DD;
    max-width: 860px;
    margin: 0 auto 1rem;
    line-height: 1.5;
}

.blessing-note { color: rgba(247, 227, 232, 0.75); font-size: 0.98rem; }
.blessing-note em { color: var(--champagne-bright); }

/* ---------------- Service cards ---------------- */

.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }

.svc-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.9rem 1.6rem;
    box-shadow: var(--shadow-soft);
    display: flex; flex-direction: column;
    color: var(--ink);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 3px solid transparent;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-bottom-color: var(--champagne); }

.svc-icon { font-size: 2rem; margin-bottom: 0.7rem; }
.svc-card h3 { font-size: 1.22rem; }
.svc-card p { color: var(--ink-soft); font-size: 0.94rem; flex: 1; }
.svc-link { color: var(--rose); font-weight: 600; font-size: 0.92rem; }

/* ---------------- Quotes ---------------- */

.quote {
    margin: 0;
    background: #fff;
    border-radius: var(--radius);
    padding: 2rem 1.8rem;
    box-shadow: var(--shadow-soft);
    border-left: 4px solid var(--champagne);
}

.quote blockquote {
    margin: 0 0 1rem;
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.06rem;
    color: var(--wine);
}

.quote figcaption { font-size: 0.88rem; color: var(--ink-soft); }

/* ---------------- Final CTA ---------------- */

.final-cta {
    position: relative;
    overflow: hidden;
    padding: clamp(4rem, 12vh, 7rem) 1.5rem;
    background:
        radial-gradient(70% 90% at 50% 110%, rgba(212, 175, 106, 0.35) 0%, transparent 65%),
        linear-gradient(160deg, var(--blush) 0%, var(--cream) 100%);
    text-align: center;
}

.final-title {
    font-size: clamp(2.6rem, 6vw, 4.4rem);
    margin: 0.2rem 0 1.6rem;
    background: linear-gradient(100deg, var(--burgundy) 25%, var(--rose) 60%, var(--gold-deep) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------------- Page head ---------------- */

.page-head {
    padding: clamp(2.4rem, 7vh, 4rem) clamp(1rem, 5vw, 3.5rem) 0.6rem;
    max-width: 1220px;
    margin: 0 auto;
}

.page-head h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); margin-bottom: 0.3rem; }
.page-head h1 em { color: var(--rose); }
.page-head p { color: var(--ink-soft); font-size: 1.06rem; max-width: 640px; margin: 0; }

/* ---------------- Filter bar ---------------- */

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    align-items: flex-end;
    background: #fff;
    border-radius: var(--radius);
    padding: 1.2rem 1.4rem;
    box-shadow: var(--shadow-soft);
    margin-bottom: 1.8rem;
}

.filter { display: flex; flex-direction: column; gap: 0.25rem; }
.filter-grow { flex: 1 1 180px; }

.filter label {
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-soft);
    font-weight: 600;
}

.filter input, .filter select, .field-grid input, .field-grid select, .field-full textarea {
    font-family: var(--sans);
    font-size: 0.95rem;
    padding: 0.55rem 0.8rem;
    border: 1.4px solid var(--blush-deep);
    border-radius: 10px;
    background: var(--ivory);
    color: var(--ink);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.filter input:focus, .filter select:focus,
.field-grid input:focus, .field-grid select:focus, .field-full textarea:focus {
    border-color: var(--rose);
    box-shadow: 0 0 0 3px rgba(201, 79, 124, 0.15);
}

.age-pair { display: flex; align-items: center; gap: 0.4rem; }
.age-pair input { width: 72px; }

.result-count { color: var(--ink-soft); font-size: 0.92rem; margin: 0 0 1.2rem; }

.empty-state {
    text-align: center;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 3rem 2rem;
}

/* ---------------- Profile detail ---------------- */

.profile-hero {
    background:
        radial-gradient(120% 120% at 80% -30%, var(--region-accent-soft) 0%, transparent 60%),
        linear-gradient(165deg, var(--blush) 0%, var(--ivory) 85%);
    padding: clamp(2rem, 6vh, 3.6rem) clamp(1rem, 5vw, 3.5rem);
}

.profile-hero-inner { display: flex; gap: 2.2rem; align-items: center; flex-wrap: wrap; }

.ph-medallion { position: relative; width: 168px; flex-shrink: 0; }
.ph-online { right: 12px; bottom: 26px; width: 18px; height: 18px; }

.ph-body h1 { display: flex; align-items: center; gap: 0.8rem; font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 0.2rem; flex-wrap: wrap; }
.ph-place { color: var(--ink-soft); margin: 0 0 0.5rem; }
.ph-tagline { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--burgundy); margin: 0 0 0.6rem; }
.ph-about { max-width: 640px; color: var(--ink-soft); margin: 0 0 0.8rem; }
.ph-meta { display: flex; gap: 1.6rem; font-size: 0.9rem; color: var(--ink-soft); flex-wrap: wrap; }
.ph-meta strong { color: var(--gold-deep); }

.contract-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }

.contract-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 1.6rem 1.5rem;
    border-top: 3px solid var(--champagne);
}

.contract-card h3 { font-size: 1.15rem; margin-bottom: 0.9rem; }
.contract-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }

.term {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "key weight" "value weight";
    background: var(--ivory);
    border-radius: 10px;
    padding: 0.55rem 0.8rem;
    border-left: 3px solid var(--blush-deep);
}

.term-nonnegotiable { border-left-color: var(--burgundy); }
.term-preference { border-left-color: var(--rose); }
.term-aspiration { border-left-color: var(--champagne); }

.term-key { grid-area: key; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); }
.term-value { grid-area: value; font-weight: 500; }
.term-weight {
    grid-area: weight;
    align-self: center;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-soft);
    background: var(--blush);
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    white-space: nowrap;
}

/* ---------------- Photo album ---------------- */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    box-shadow: var(--shadow-soft);
    border: 3px solid #fff;
    outline: 1px solid var(--blush-deep);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.gallery-item:hover { transform: translateY(-4px) scale(1.01); box-shadow: var(--shadow-lift); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

.gallery-delete {
    position: absolute;
    top: 8px; right: 8px;
    width: 30px; height: 30px;
    border-radius: 50%;
    border: none;
    background: rgba(46, 10, 24, 0.75);
    color: #fff;
    cursor: pointer;
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity 0.2s;
}
.gallery-item:hover .gallery-delete { opacity: 1; }

.gallery-add {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 5;
    border: 2px dashed var(--rose);
    border-radius: 14px;
    background: var(--blush);
    color: var(--burgundy);
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    padding: 1rem;
    transition: background 0.2s, border-color 0.2s;
}
.gallery-add:hover { background: var(--blush-deep); }
.gallery-add.busy { opacity: 0.6; cursor: wait; }
.gallery-add input[type=file] { display: none; }

.gallery-manage { display: flex; flex-direction: column; gap: 1.2rem; }
.vis-toggle { display: flex; gap: 0.6rem; flex-wrap: wrap; }

.gallery-locked {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    border-left: 4px solid var(--champagne);
    padding: 1.6rem 1.8rem;
}
.gl-lock { font-size: 2rem; }
.gallery-locked p { margin: 0; flex: 1; min-width: 220px; color: var(--ink-soft); }
.gl-status { color: var(--gold-deep); font-weight: 600; font-size: 0.95rem; }

.request-inbox {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 1.4rem 1.6rem;
}
.request-inbox h3 { font-size: 1.15rem; margin-bottom: 0.8rem; }
.request-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.6rem 0;
    border-bottom: 1px dashed var(--blush-deep);
}
.request-row:last-child { border-bottom: none; }
.request-actions { display: flex; gap: 0.5rem; }
.btn-sm { padding: 0.45em 1.1em; font-size: 0.85rem; }

/* ---------------- Match list ---------------- */

.match-list { display: flex; flex-direction: column; gap: 0.8rem; }

.match-row {
    display: grid;
    grid-template-columns: 74px 1fr auto auto;
    gap: 1.2rem;
    align-items: center;
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
    padding: 0.9rem 1.3rem;
    color: var(--ink);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.match-row:hover { transform: translateX(6px); box-shadow: var(--shadow-lift); }

.match-total {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--burgundy);
    background: radial-gradient(circle at 30% 25%, #fff, var(--blush));
    border: 2.5px solid var(--champagne);
    border-radius: 50%;
    width: 64px; height: 64px;
    display: flex; align-items: center; justify-content: center;
}

.match-name { font-weight: 600; display: flex; flex-direction: column; }
.match-name em { font-style: normal; font-weight: 400; font-size: 0.85rem; color: var(--ink-soft); }

.match-parts { display: flex; gap: 1rem; font-size: 0.86rem; color: var(--ink-soft); }

.match-stage {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--gold-deep);
    background: rgba(212, 175, 106, 0.16);
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
}

/* ---------------- Wizard (Join) ---------------- */

.wizard-shell { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 2rem; align-items: start; }

.wizard-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; position: sticky; top: 100px; }

.wizard-steps li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.65rem 0.9rem;
    border-radius: 12px;
    color: var(--ink-soft);
    transition: background 0.2s;
}

.wizard-steps li.current { background: #fff; box-shadow: var(--shadow-soft); color: var(--burgundy); font-weight: 600; }
.wizard-steps li.done { color: var(--gold-deep); cursor: pointer; }

.ws-num {
    width: 30px; height: 30px;
    border-radius: 50%;
    border: 1.8px solid currentColor;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--serif);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.wizard-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 2rem 2.2rem 1.6rem;
}

.wizard-card h2 { font-size: 1.6rem; margin-bottom: 1.2rem; }

.wc-meter { position: relative; height: 26px; background: var(--blush); border-radius: 999px; overflow: hidden; margin-bottom: 1.6rem; }
.wc-meter-fill { height: 100%; background: linear-gradient(90deg, var(--rose), var(--champagne)); transition: width 0.6s ease; }
.wc-meter-label {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.74rem; letter-spacing: 0.08em; font-weight: 600; color: var(--wine);
}

.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.field-grid label, .field-full { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.86rem; font-weight: 600; color: var(--ink-soft); }
.field-full { margin-bottom: 1rem; }

.wizard-hint { margin-top: 1.1rem; font-size: 0.88rem; color: var(--gold-deep); background: rgba(212, 175, 106, 0.12); border-radius: 10px; padding: 0.6rem 0.9rem; }
.wizard-sub { color: var(--ink-soft); margin-top: -0.6rem; }

.weigh-list { display: flex; flex-direction: column; gap: 0.7rem; }
.weigh-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; background: var(--ivory); border-radius: 12px; padding: 0.7rem 1rem; }
.weigh-term { font-weight: 600; }
.weigh-opts { display: flex; gap: 0.4rem; flex-wrap: wrap; }

.weigh-btn {
    border: 1.4px solid var(--blush-deep);
    background: #fff;
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-size: 0.8rem;
    cursor: pointer;
    font-family: var(--sans);
    transition: all 0.2s;
}
.weigh-btn.on { background: var(--burgundy); border-color: var(--burgundy); color: #fff; }

.wizard-nav { display: flex; justify-content: space-between; margin-top: 1.8rem; }

.contract-preview {
    position: relative;
    border: 1.6px solid var(--champagne);
    border-radius: var(--radius);
    padding: 2.2rem 2rem 1.6rem;
    background:
        radial-gradient(100% 60% at 50% 0%, rgba(212, 175, 106, 0.10) 0%, transparent 70%),
        var(--ivory);
    text-align: center;
}

.cp-seal { font-size: 2rem; margin-bottom: 0.4rem; }
.contract-preview h3 { font-size: 1.5rem; }
.cp-line { color: var(--ink-soft); }
.cp-terms { list-style: none; padding: 0; margin: 1.2rem auto; max-width: 520px; text-align: left; display: flex; flex-direction: column; gap: 0.5rem; }
.cp-terms li { border-bottom: 1px dashed var(--blush-deep); padding-bottom: 0.4rem; font-size: 0.95rem; }
.cp-terms em { color: var(--gold-deep); font-size: 0.8rem; }
.cp-essay { font-family: var(--serif); font-style: italic; color: var(--wine); }
.cp-promise em { color: var(--rose); }
.cp-note { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin-top: 1.4rem; }

/* ---------------- Readiness quiz ---------------- */

.quiz-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 2rem 2.2rem;
}

.quiz-progress { height: 8px; border-radius: 999px; background: var(--blush); overflow: hidden; margin-bottom: 0.8rem; }
.quiz-progress-fill { height: 100%; background: linear-gradient(90deg, var(--rose), var(--champagne)); transition: width 0.4s ease; }

.quiz-count { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.quiz-question { font-size: 1.45rem; margin-bottom: 1.4rem; }

.quiz-options { display: flex; flex-direction: column; gap: 0.7rem; }

.quiz-option {
    text-align: left;
    font-family: var(--sans);
    font-size: 0.98rem;
    background: var(--ivory);
    border: 1.6px solid var(--blush-deep);
    border-radius: 12px;
    padding: 0.85rem 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--ink);
}
.quiz-option:hover { border-color: var(--rose); background: var(--blush); transform: translateX(4px); }

.readiness-result { text-align: center; padding: 1rem 0 2rem; }

.rr-dial {
    width: 180px; height: 180px;
    margin: 0 auto 1.4rem;
    border-radius: 50%;
    background:
        radial-gradient(closest-side, var(--ivory) 78%, transparent 79% 100%),
        conic-gradient(var(--rose) calc(var(--pct) * 1%), var(--blush-deep) 0);
    display: flex; align-items: center; justify-content: center;
    animation: dialIn 1s ease;
}

@keyframes dialIn { from { transform: scale(0.6); opacity: 0; } }

.rr-score { font-family: var(--serif); font-size: 2.6rem; font-weight: 700; color: var(--burgundy); }
.rr-band { font-size: 2rem; color: var(--rose); }
.rr-message { max-width: 560px; margin: 0 auto 1.6rem; color: var(--ink-soft); }
.rr-actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }

/* ---------------- Services page ---------------- */

.service-rows { display: flex; flex-direction: column; gap: 1.4rem; }

.service-row {
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 1.6rem;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 1.8rem 2rem;
    align-items: start;
}

.sr-icon {
    font-size: 2.2rem;
    width: 74px; height: 74px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 25%, #fff, var(--blush));
    border: 2px solid var(--champagne);
    display: flex; align-items: center; justify-content: center;
}

.service-row h2 { font-size: 1.5rem; margin-bottom: 0.4rem; }
.service-row p { color: var(--ink-soft); margin: 0 0 0.5rem; }
.sr-price { color: var(--gold-deep); font-weight: 600; font-size: 0.92rem; }

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

.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; align-items: stretch; }

.plan-card {
    position: relative;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 2rem 1.7rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.plan-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }

.plan-featured {
    border: 2px solid var(--champagne);
    background:
        radial-gradient(100% 40% at 50% 0%, rgba(212, 175, 106, 0.12) 0%, transparent 70%),
        #fff;
    transform: scale(1.03);
}

.plan-flag {
    position: absolute;
    top: -13px; left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(120deg, var(--gold-deep), var(--champagne-bright));
    color: var(--wine);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.3rem 1rem;
    border-radius: 999px;
    white-space: nowrap;
}

.plan-name { font-size: 1.4rem; margin-bottom: 0.2rem; }
.plan-bronze { color: #9C5A2C; }
.plan-silver { color: #6B7280; }
.plan-gold { color: var(--gold-deep); }
.plan-platinum { color: #374151; }

.plan-price { font-family: var(--serif); font-size: 2.3rem; color: var(--wine); margin: 0 0 0.3rem; }
.plan-price span { font-size: 0.95rem; font-family: var(--sans); color: var(--ink-soft); }
.plan-blurb { color: var(--ink-soft); font-size: 0.94rem; min-height: 3em; }

.plan-features { list-style: none; padding: 0; margin: 0 0 1.4rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.plan-features li { font-size: 0.92rem; padding-left: 1.4rem; position: relative; }
.plan-features li::before { content: "❧"; position: absolute; left: 0; color: var(--champagne); }

.plan-btn { width: 100%; }
.plan-note { text-align: center; color: var(--ink-soft); font-size: 0.9rem; margin-top: 2rem; }

/* ---------------- Auth (login / register) ---------------- */

.auth-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
    max-width: 1220px;
    margin: 0 auto;
    padding: clamp(2.5rem, 8vh, 5rem) clamp(1rem, 5vw, 3.5rem);
    min-height: 68vh;
}

.auth-side { position: relative; }

.auth-motif {
    position: absolute;
    right: -10%; top: 50%;
    transform: translateY(-50%);
    width: clamp(220px, 26vw, 380px);
    color: var(--region-accent);
    opacity: 0.12;
    pointer-events: none;
}

.auth-script {
    font-family: var(--script);
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    color: var(--rose);
    margin: 0 0 0.4rem;
}

.auth-side h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); margin-bottom: 0.8rem; }
.auth-side-note { color: var(--ink-soft); max-width: 460px; font-size: 1.04rem; }

.auth-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lift);
    border-top: 4px solid var(--champagne);
    padding: 2.2rem 2.2rem 1.8rem;
}

.auth-card h2 { font-size: 1.6rem; margin-bottom: 1.2rem; }

.auth-card form { display: flex; flex-direction: column; gap: 1rem; }

.auth-field { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.86rem; font-weight: 600; color: var(--ink-soft); }

.auth-field input {
    font-family: var(--sans);
    font-size: 1rem;
    padding: 0.7rem 0.9rem;
    border: 1.4px solid var(--blush-deep);
    border-radius: 10px;
    background: var(--ivory);
    color: var(--ink);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-field input:focus { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(201, 79, 124, 0.15); }

.auth-submit { margin-top: 0.4rem; width: 100%; font-size: 1.02rem; }

.auth-error {
    background: #FBE3E3;
    border-left: 3px solid #C0392B;
    color: #7B241C;
    border-radius: 8px;
    padding: 0.65rem 0.9rem;
    font-size: 0.92rem;
    margin: 0 0 1rem;
}

.auth-alt { margin: 1.2rem 0 0.4rem; font-size: 0.95rem; }
.auth-alt a { font-weight: 600; color: var(--rose); }

.auth-demo { font-size: 0.8rem; color: var(--ink-soft); border-top: 1px dashed var(--blush-deep); padding-top: 0.8rem; }
.auth-demo code { background: var(--blush); border-radius: 6px; padding: 0.1rem 0.4rem; color: var(--burgundy); }

.member-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--blush);
    color: var(--burgundy);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 999px;
    padding: 0.35rem 0.95rem;
    white-space: nowrap;
}

.member-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: #3AC569;
    box-shadow: 0 0 0 rgba(58, 197, 105, 0.5);
    animation: onlinePulse 2.2s infinite;
}

.logout-form { display: inline; margin: 0; }

@media (max-width: 960px) {
    .auth-stage { grid-template-columns: 1fr; min-height: unset; }
    .auth-motif { display: none; }
}

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

.site-footer {
    background: linear-gradient(165deg, var(--wine) 0%, #2A0C18 90%);
    color: rgba(247, 227, 232, 0.85);
    margin-top: 2rem;
}

.footer-inner {
    max-width: 1220px;
    margin: 0 auto;
    padding: 3.4rem clamp(1rem, 5vw, 3.5rem) 2rem;
    display: grid;
    grid-template-columns: minmax(260px, 1.2fr) 2fr;
    gap: 3rem;
}

.footer-brand .brand-word { color: #FBE9DD; font-size: 1.5rem; }
.footer-brand .brand-word em { color: var(--rose-bright); }
.footer-tag { font-size: 0.94rem; margin: 0.8rem 0; color: rgba(247, 227, 232, 0.7); }
.footer-blessing { font-family: var(--script); font-size: 1.35rem; color: var(--champagne-bright); }

.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 2rem; }
.footer-cols h4 { color: var(--champagne); font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 0.9rem; }
.footer-cols a { display: block; color: rgba(247, 227, 232, 0.78); font-size: 0.94rem; padding: 0.22rem 0; transition: color 0.2s; }
.footer-cols a:hover { color: #fff; }

.footer-base {
    border-top: 1px solid rgba(247, 227, 232, 0.14);
    text-align: center;
    padding: 1.2rem;
    font-size: 0.82rem;
    color: rgba(247, 227, 232, 0.55);
}

/* ---------------- Reveal animations ---------------- */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Stagger siblings slightly */
.tri-grid .reveal.in:nth-child(2), .card-grid .reveal.in:nth-child(2), .svc-grid .reveal.in:nth-child(2) { transition-delay: 0.12s; }
.tri-grid .reveal.in:nth-child(3), .card-grid .reveal.in:nth-child(3), .svc-grid .reveal.in:nth-child(3) { transition-delay: 0.24s; }
.card-grid .reveal.in:nth-child(4), .svc-grid .reveal.in:nth-child(4) { transition-delay: 0.36s; }

/* ---------------- Error UI ---------------- */

#blazor-error-ui {
    color-scheme: light only;
    background: var(--wine);
    color: #fff;
    bottom: 0;
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.3);
    display: none;
    left: 0;
    padding: 0.8rem 1.4rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .reload { color: var(--champagne-bright); margin-left: 0.6rem; }
#blazor-error-ui .dismiss { cursor: pointer; float: right; }

.blazor-error-boundary {
    background: var(--wine);
    color: #fff;
    padding: 1rem;
    border-radius: 10px;
}

/* ---------------- Responsive ---------------- */

@media (max-width: 1080px) {
    .with-rail { grid-template-columns: 1fr; }
    .ad-panel-rail { position: static; max-width: 520px; }
    .wizard-shell { grid-template-columns: 1fr; }
    .wizard-steps { position: static; flex-direction: row; flex-wrap: wrap; }
    .ws-name { display: none; }
}

@media (max-width: 860px) {
    .main-nav { display: none; }
    .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
    .match-row { grid-template-columns: 58px 1fr; }
    .match-parts, .match-stage { display: none; }
    .service-row { grid-template-columns: 1fr; }
    .hero { min-height: 84vh; }
    .header-actions .btn-ghost { display: none; }
}

/* ---------------- Reduced motion (NFR-5 / D-4) ---------------- */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-sky, .hero-glow, .hero-motif, .petal, .pc-online, .ph-online { animation: none !important; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .btn, .profile-card, .pillar, .step, .svc-card, .plan-card, .match-row { transition: none; }
}

/* ---------------- Notification module (FR-14) ---------------- */

.notify-bell { position: relative; display: inline-flex; }

.bell-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1.5px solid var(--blush-deep);
    border-radius: 50%;
    background: transparent;
    color: var(--burgundy);
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease;
}

.bell-btn:hover { border-color: var(--champagne); background: var(--blush); }

.bell-btn svg { width: 22px; height: 22px; }

.bell-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 10px;
    background: var(--rose);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 19px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(122, 31, 61, .35);
}

.bell-backdrop { position: fixed; inset: 0; z-index: 90; }

.bell-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 91;
    width: 360px;
    max-width: calc(100vw - 24px);
    background: #fff;
    border: 1px solid var(--blush-deep);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lift);
    overflow: hidden;
}

.bell-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px 10px;
    border-bottom: 1px solid var(--blush);
}

.bell-panel-title { font-family: var(--serif); font-size: 18px; color: var(--wine); }

.bell-mark-all {
    border: none;
    background: none;
    color: var(--rose);
    font-family: var(--sans);
    font-size: 13px;
    cursor: pointer;
}

.bell-empty { margin: 0; padding: 26px 18px; color: var(--ink-soft); font-size: 14px; text-align: center; }

.bell-list { list-style: none; margin: 0; padding: 0; max-height: 380px; overflow-y: auto; }

.bell-item {
    display: grid;
    gap: 2px;
    padding: 12px 18px;
    cursor: pointer;
    border-bottom: 1px solid var(--blush);
    transition: background .15s ease;
}

.bell-item:hover { background: var(--ivory); }

.bell-item.unread { background: var(--blush); }
.bell-item.unread:hover { background: var(--blush-deep); }

.bell-item-title { font-weight: 600; font-size: 14px; color: var(--wine); }
.bell-item-body {
    font-size: 13px;
    color: var(--ink-soft);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bell-item-time { font-size: 11.5px; color: var(--champagne); letter-spacing: .03em; }

.bell-see-all {
    display: block;
    padding: 11px 18px;
    text-align: center;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--burgundy);
    background: var(--ivory);
}

/* Celebration toasts */

.toast-stack {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 120;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 340px;
}

.toast-card {
    display: grid;
    gap: 3px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #fff, var(--blush));
    border: 1px solid var(--blush-deep);
    border-left: 4px solid var(--champagne);
    border-radius: 14px;
    box-shadow: var(--shadow-lift);
    cursor: pointer;
    animation: toast-in .35s ease;
}

@keyframes toast-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

.toast-title { font-family: var(--serif); font-size: 15.5px; font-weight: 600; color: var(--wine); }
.toast-body { font-size: 13px; color: var(--ink-soft); }

/* /notifications page */

.notify-page { max-width: 1080px; margin: 0 auto; padding: 42px 22px 70px; }

.notify-head h1 { margin-bottom: 4px; }
.notify-sub { margin: 0 0 26px; color: var(--ink-soft); }

.notify-columns { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 34px; align-items: start; }

@media (max-width: 860px) { .notify-columns { grid-template-columns: 1fr; } }

.notify-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }

.notify-chips { display: flex; gap: 8px; flex-wrap: wrap; }

.chip {
    border: 1.5px solid var(--blush-deep);
    border-radius: 999px;
    background: #fff;
    color: var(--ink-soft);
    font-family: var(--sans);
    font-size: 13px;
    padding: 5px 14px;
    cursor: pointer;
    transition: all .15s ease;
}

.chip.active { background: var(--burgundy); border-color: var(--burgundy); color: #fff; }

.btn-small { padding: 6px 14px; font-size: 13px; }

.notify-empty { padding: 34px 8px; color: var(--ink-soft); text-align: center; }

.notify-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.notify-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 15px 18px;
    background: #fff;
    border: 1px solid var(--blush);
    border-radius: 14px;
    cursor: pointer;
    transition: box-shadow .15s ease, border-color .15s ease;
}

.notify-item:hover { border-color: var(--champagne); box-shadow: var(--shadow-soft); }

.notify-item.unread { border-left: 4px solid var(--rose); background: linear-gradient(135deg, #fff 70%, var(--blush)); }

.notify-cat {
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--gold-deep);
    background: var(--cream);
    border-radius: 999px;
    padding: 3px 10px;
}

.notify-item-main { display: grid; gap: 2px; min-width: 0; }
.notify-item-title { font-weight: 600; color: var(--wine); }
.notify-item-body { font-size: 14px; color: var(--ink-soft); }
.notify-item-time { margin-left: auto; flex-shrink: 0; font-size: 12px; color: var(--champagne); }

.notify-more { display: block; margin: 18px auto 0; }

/* Preferences panel */

.notify-prefs {
    background: #fff;
    border: 1px solid var(--blush);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 24px 24px 26px;
}

.notify-prefs h2 { font-size: 21px; margin-bottom: 14px; }

.prefs-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }

.prefs-table th {
    text-align: left;
    font-weight: 600;
    color: var(--gold-deep);
    font-size: 11.5px;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 6px 4px;
    border-bottom: 1px solid var(--blush-deep);
}

.prefs-table td { padding: 7px 4px; border-bottom: 1px solid var(--blush); color: var(--ink); }

.prefs-table input[type="checkbox"] { accent-color: var(--burgundy); width: 16px; height: 16px; }

.prefs-locked { font-size: 12px; color: var(--gold-deep); font-style: italic; }

.prefs-settings { display: grid; gap: 12px; margin: 18px 0 6px; }

.prefs-field { display: grid; gap: 6px; font-size: 14px; color: var(--ink); }
.prefs-field > span:first-child { font-weight: 600; color: var(--wine); }

.prefs-times { display: flex; align-items: center; gap: 8px; }
.prefs-times em { color: var(--ink-soft); font-size: 13px; }
.prefs-times input {
    border: 1.5px solid var(--blush-deep);
    border-radius: 9px;
    padding: 5px 8px;
    font-family: var(--sans);
    color: var(--ink);
}

.prefs-check { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; color: var(--ink); cursor: pointer; }
.prefs-check input { accent-color: var(--burgundy); width: 16px; height: 16px; margin-top: 3px; }
.prefs-check small { display: block; color: var(--ink-soft); }

.prefs-save { margin-top: 14px; }
.prefs-saved { margin-left: 12px; color: var(--gold-deep); font-weight: 600; }

/* Browser push enrolment (FR-14 Web Push) */

.prefs-push {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 16px 0 4px;
    padding: 12px 14px;
    background: var(--cream);
    border: 1px solid var(--blush-deep);
    border-radius: 12px;
    font-size: 13.5px;
}

.prefs-push-label { font-weight: 600; color: var(--wine); }
.prefs-push-on { color: var(--gold-deep); font-weight: 600; }
.prefs-push-note { color: var(--ink-soft); }

/* ---------------- Negotiations chat (FR-6, UC5/UC6) ---------------- */

.chat-page { max-width: 1120px; margin: 0 auto; padding: 42px 22px 70px; }

.chat-shell {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 0;
    background: #fff;
    border: 1px solid var(--blush);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    min-height: 560px;
}

@media (max-width: 820px) { .chat-shell { grid-template-columns: 1fr; } .chat-list { border-right: none; border-bottom: 1px solid var(--blush); } }

.chat-list { border-right: 1px solid var(--blush); overflow-y: auto; max-height: 72vh; }

.chat-list-item {
    display: grid;
    gap: 2px;
    width: 100%;
    text-align: left;
    padding: 14px 16px;
    background: none;
    border: none;
    border-bottom: 1px solid var(--blush);
    cursor: pointer;
    font-family: var(--sans);
}

.chat-list-item:hover { background: var(--ivory); }
.chat-list-item.active { background: var(--blush); }

.chat-list-name { font-weight: 600; color: var(--wine); display: flex; align-items: center; gap: 8px; }
.chat-unread {
    min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px;
    background: var(--rose); color: #fff; font-size: 11px; font-weight: 600;
    line-height: 19px; text-align: center;
}
.chat-list-preview {
    font-size: 13px; color: var(--ink-soft);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chat-list-time { font-size: 11.5px; color: var(--champagne); }

.chat-pane { display: flex; flex-direction: column; min-height: 560px; }
.chat-pane-empty { display: flex; align-items: center; justify-content: center; flex: 1; }
.chat-empty { padding: 26px 18px; color: var(--ink-soft); font-size: 14px; text-align: center; }

.chat-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 18px; border-bottom: 1px solid var(--blush); background: var(--ivory);
}
.chat-head-name { font-family: var(--serif); font-size: 19px; color: var(--wine); font-weight: 600; }
.chat-head-link { margin-left: 12px; font-size: 13px; color: var(--rose); }

.chat-scroll { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 8px; max-height: 46vh; }

.chat-msg { max-width: 72%; display: grid; gap: 2px; }
.chat-msg.mine { align-self: flex-end; text-align: right; }
.chat-msg.theirs { align-self: flex-start; }

.chat-msg-body {
    display: inline-block; padding: 9px 14px; border-radius: 16px;
    font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; word-break: break-word;
}
.chat-msg.mine .chat-msg-body { background: var(--burgundy); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg.theirs .chat-msg-body { background: var(--blush); color: var(--ink); border-bottom-left-radius: 4px; }

.chat-msg-meta { font-size: 11px; color: var(--ink-soft); padding: 0 4px; }
.chat-ticks { font-style: normal; color: var(--blush-deep); margin-left: 4px; }
.chat-ticks.read { color: var(--champagne); }

.chat-typing { font-size: 12.5px; color: var(--ink-soft); font-style: italic; padding: 2px 6px; }

.chat-compose {
    display: flex; gap: 10px; padding: 14px 18px;
    border-top: 1px solid var(--blush); background: var(--ivory);
}
.chat-compose textarea {
    flex: 1; resize: none; height: 52px; padding: 12px 14px;
    border: 1.5px solid var(--blush-deep); border-radius: 12px;
    font-family: var(--sans); font-size: 14.5px; color: var(--ink);
}
.chat-compose textarea:focus { outline: none; border-color: var(--champagne); }

.chat-error { font-size: 12.5px; color: var(--rose); }

/* Meetings (UC6) */

.meeting-form {
    display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
    padding: 12px 18px; background: var(--cream); border-bottom: 1px solid var(--blush);
}
.meeting-form select, .meeting-form input {
    padding: 7px 10px; border: 1.5px solid var(--blush-deep); border-radius: 9px;
    font-family: var(--sans); font-size: 13.5px; color: var(--ink);
}
.meeting-form input[type="text"] { flex: 1; min-width: 160px; }

.meeting-card {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 18px; border-bottom: 1px solid var(--blush);
    background: linear-gradient(90deg, #fff, var(--cream));
    font-size: 13.5px;
}
.meeting-icon { font-size: 20px; }
.meeting-main { display: grid; gap: 1px; min-width: 0; flex: 1; }
.meeting-title { font-weight: 600; color: var(--wine); }
.meeting-where { color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meeting-status {
    font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
    color: var(--gold-deep); background: var(--cream); border-radius: 999px; padding: 3px 10px;
}
.meeting-card.confirmed .meeting-status { color: #fff; background: var(--champagne); }
.meeting-actions { display: flex; gap: 6px; }

.ph-actions { margin-top: 14px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Safety: block & report (Roadmap 0.1) */

.report-panel {
    margin-top: 16px;
    max-width: 560px;
    background: #fff;
    border: 1.4px solid var(--champagne);
    border-radius: 14px;
    padding: 1.1rem 1.2rem;
    box-shadow: 0 8px 30px rgba(60, 10, 30, 0.08);
}

.report-panel h3 { margin: 0 0 0.35rem; }

.report-reasons { display: flex; flex-wrap: wrap; gap: 8px; margin: 0.8rem 0; }

.report-details {
    width: 100%;
    border: 1.3px solid var(--champagne);
    border-radius: 10px;
    padding: 0.6rem 0.75rem;
    font: inherit;
    resize: vertical;
}

.report-actions { display: flex; gap: 10px; margin-top: 0.8rem; }

.report-thanks {
    margin-top: 14px;
    color: #1E6B3A;
    background: #E6F4EA;
    border-left: 3px solid #2E8B57;
    border-radius: 8px;
    padding: 0.6rem 0.9rem;
    font-size: 0.92rem;
    max-width: 560px;
}

/* Blocked-members management */

.blocked-list { display: flex; flex-direction: column; gap: 10px; margin-top: 1rem; }

.blocked-row {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: #fff; border: 1.3px solid var(--champagne); border-radius: 12px;
    padding: 0.7rem 1rem;
}

/* Married-couples alumni layer (Roadmap 3.4) */

.alumni-form, .alumni-card {
    background: #fff; border: 1.4px solid var(--champagne, #E8D8C3); border-radius: 16px;
    padding: 1.3rem 1.4rem; margin-bottom: 1.2rem;
}

.alumni-card { text-align: center; }
.alumni-rings { font-size: 2.2rem; }
.alumni-card h2 { margin: 0.2rem 0; font-family: var(--serif, Georgia), serif; }
.alumni-sub { color: var(--ink-soft, #6b5560); margin: 0 0 1rem; }
.alumni-pending { color: var(--gold-deep, #8A5A12); font-style: italic; }
.alumni-confirm, .alumni-story { text-align: left; max-width: 620px; margin: 0.6rem auto 0; }
.alumni-featured { color: #1E6B3A; font-size: 0.85rem; margin-left: 8px; }
.alumni-saved { color: var(--ink-soft, #6b5560); font-size: 0.85rem; margin-left: 8px; }
.alumni-link { margin-top: 1rem; }

.stories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.1rem; margin-bottom: 1.6rem; }

.story-card {
    background: #fff; border: 1.4px solid var(--champagne, #E8D8C3); border-radius: 16px;
    padding: 1.2rem 1.3rem; box-shadow: 0 8px 26px rgba(60, 10, 30, 0.06);
}
.story-rings { font-size: 1.6rem; }
.story-card h2 { margin: 0.2rem 0; font-size: 1.15rem; font-family: var(--serif, Georgia), serif; }
.story-couple { color: var(--burgundy, #7A1F3D); font-weight: 600; font-size: 0.9rem; margin: 0 0 0.5rem; }
.story-body { line-height: 1.6; margin: 0 0 0.7rem; }
.story-date { color: var(--ink-soft, #6b5560); font-size: 0.82rem; margin: 0; }

/* Guardian / family co-pilot mode (Roadmap 3.1) */

.guardian-invite {
    background: #fff; border: 1.3px solid var(--champagne, #E8D8C3); border-radius: 14px;
    padding: 1.1rem 1.2rem; margin-bottom: 1.4rem;
}

.guardian-scopes { display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem; margin: 0.8rem 0; }
.scope-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; }
.scope-note { font-size: 0.8rem; color: var(--ink-soft, #6b5560); font-style: italic; }

.guardian-list { display: flex; flex-direction: column; gap: 10px; }

.guardian-row {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: #fff; border: 1.3px solid var(--champagne, #E8D8C3); border-radius: 12px;
    padding: 0.7rem 1rem; flex-wrap: wrap;
}

.guardian-main { display: flex; flex-direction: column; gap: 3px; }
.guardian-scopetags { font-size: 0.8rem; color: var(--ink-soft, #6b5560); }
.guardian-pending {
    font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em;
    background: #FBE7D6; color: #8A5A12; border-radius: 999px; padding: 1px 8px; margin-left: 6px;
}

.ward-view {
    background: #fff; border: 1.3px solid var(--champagne, #E8D8C3); border-radius: 12px;
    padding: 1rem 1.15rem; margin: 2px 0 6px;
}
.ward-head { margin-bottom: 0.6rem; }
.ward-head h3 { margin: 0; }
.ward-meetings { display: flex; flex-direction: column; gap: 8px; margin-bottom: 1rem; }
.ward-meeting { display: flex; flex-direction: column; gap: 2px; padding: 0.5rem 0.7rem; background: var(--blush, #FBE9EF); border-radius: 10px; font-size: 0.9rem; }
.muted { color: var(--ink-soft, #6b5560); }

/* AI Contract Drafting Assistant (Roadmap 2.1) */

.ai-assist { margin: 0 0 1.4rem; }

.ai-assist-toggle {
    width: 100%; text-align: left; cursor: pointer; font: inherit; font-size: 0.95rem;
    background: linear-gradient(120deg, var(--blush, #FBE9EF), #fff);
    border: 1.4px dashed var(--blush-deep, #E6B9CB); color: var(--burgundy, #7A1F3D);
    border-radius: 12px; padding: 0.8rem 1.1rem;
}

.ai-assist-toggle:hover { background: var(--blush, #F7DEE8); }

.ai-assist-panel {
    background: #fff; border: 1.4px solid var(--champagne, #E8D8C3); border-radius: 14px;
    padding: 1.1rem 1.2rem; box-shadow: 0 8px 26px rgba(60, 10, 30, 0.07);
}

.ai-assist-panel h3 { margin: 0 0 0.35rem; }

.ai-assist-panel textarea {
    width: 100%; border: 1.3px solid var(--champagne, #E8D8C3); border-radius: 10px;
    padding: 0.65rem 0.8rem; font: inherit; resize: vertical; margin-top: 0.5rem;
}

.ai-assist-actions { display: flex; gap: 10px; margin-top: 0.7rem; }

.ai-assist-intro {
    margin: 0.8rem 0 0; font-size: 0.9rem; color: var(--burgundy, #7A1F3D);
    background: var(--blush, #FBE9EF); border-radius: 10px; padding: 0.6rem 0.9rem;
}

/* AI Compatibility Report (Roadmap 1.1) */

.compat-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

.compat-score {
    font-family: var(--serif); font-size: 1.7rem; font-weight: 700; color: var(--burgundy);
    background: radial-gradient(circle at 30% 25%, #fff, var(--blush));
    border: 2.5px solid var(--champagne); border-radius: 50%;
    width: 68px; height: 68px; display: inline-flex; align-items: center; justify-content: center;
}

.compat-band { margin: 0.2rem 0 1rem; font-style: italic; color: var(--ink-soft, #6b5560); }

.compat-narrative {
    background: #fff; border: 1.4px solid var(--champagne); border-radius: 14px;
    padding: 1.1rem 1.3rem; margin-bottom: 1.4rem; box-shadow: 0 8px 26px rgba(60, 10, 30, 0.06);
}

.compat-narrative p { margin: 0 0 0.6rem; line-height: 1.6; }

.compat-source { font-size: 0.8rem; color: var(--ink-soft, #6b5560); }

.compat-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }

@media (max-width: 800px) { .compat-columns { grid-template-columns: 1fr; } }

.compat-col { background: #fff; border: 1.3px solid var(--champagne); border-radius: 12px; padding: 0.9rem 1rem; }

.compat-col h3 { margin: 0 0 0.7rem; font-size: 0.95rem; }

.compat-agree { border-top: 4px solid #2E8B57; }
.compat-flex { border-top: 4px solid #C99A2E; }
.compat-clash { border-top: 4px solid #C0392B; }

.compat-point { display: flex; flex-direction: column; gap: 2px; padding: 0.4rem 0; border-bottom: 1px solid var(--blush, #FBE9EF); }
.compat-point:last-child { border-bottom: none; }

.compat-term { font-weight: 600; font-size: 0.9rem; }
.compat-stance { font-size: 0.82rem; color: var(--ink-soft, #6b5560); }
.compat-empty { font-size: 0.85rem; color: var(--ink-soft, #6b5560); font-style: italic; margin: 0; }

/* Structured courtship gates (Roadmap 3.3) */

.stage-chip {
    display: inline-block; margin-left: 8px; font-size: 0.72rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.05em;
    background: var(--blush, #FBE9EF); color: var(--burgundy, #7A1F3D);
    border: 1px solid var(--blush-deep, #E6B9CB); border-radius: 999px; padding: 2px 10px;
    vertical-align: middle;
}

.gate-lock {
    margin: 0; font-size: 0.9rem; color: #8A5A12;
    background: #FBF0DC; border-left: 3px solid #C99A2E; border-radius: 8px; padding: 0.6rem 0.85rem;
}

.gate-hint { font-size: 0.8rem; color: var(--ink-soft, #6b5560); font-style: italic; }

/* Letter of Intent ceremony (Roadmap 3.2) */

.letter-panel {
    margin: 0 0 12px;
    background: linear-gradient(180deg, #fffdf8, var(--champagne-soft, #F6ECD8));
    border: 1.6px solid var(--champagne, #E8D8C3); border-radius: 14px;
    padding: 1.1rem 1.25rem; box-shadow: 0 8px 26px rgba(60, 10, 30, 0.07);
}

.letter-panel.is-sealed {
    background: linear-gradient(180deg, #fff, var(--blush, #FBE9EF));
    border-color: var(--rose, #C94F7C);
}

.letter-propose h3, .letter-doc h3 { margin: 0 0 0.4rem; font-family: var(--serif, Georgia), serif; }
.letter-note { font-size: 0.88rem; color: var(--ink-soft, #6b5560); margin: 0 0 0.6rem; }

.letter-propose textarea {
    width: 100%; border: 1.3px solid var(--champagne, #E8D8C3); border-radius: 10px;
    padding: 0.55rem 0.75rem; font: inherit; resize: vertical; margin-bottom: 0.7rem;
}

.letter-doc { text-align: center; }
.letter-seal { font-size: 1.8rem; }
.letter-body {
    font-family: var(--serif, Georgia), serif; font-size: 1.02rem; line-height: 1.7;
    max-width: 620px; margin: 0.4rem auto 0.6rem;
}
.letter-personal { font-style: italic; color: var(--burgundy, #7A1F3D); margin: 0 auto 0.7rem; max-width: 560px; }

.letter-sigs { display: flex; justify-content: center; gap: 1.6rem; margin: 0.6rem 0; flex-wrap: wrap; }
.letter-sig { font-size: 0.9rem; font-weight: 600; }
.letter-sig.signed { color: #1E6B3A; }
.letter-sig.pending { color: var(--ink-soft, #6b5560); }

.letter-actions { display: flex; justify-content: center; gap: 10px; margin-top: 0.6rem; }
.letter-waiting { font-size: 0.88rem; color: var(--ink-soft, #6b5560); font-style: italic; align-self: center; }
.letter-sealed-note { color: var(--rose-deep, #B3376A); font-weight: 600; margin: 0.5rem 0 0; }

/* AI Negotiation Facilitator (Roadmap 2.2) */

.chat-head-actions { display: inline-flex; gap: 8px; }

.facilitator-panel {
    margin: 0 0 12px;
    background: linear-gradient(180deg, #fff, var(--blush, #FBE9EF));
    border: 1.4px solid var(--champagne, #E8D8C3); border-radius: 14px;
    padding: 1rem 1.15rem; box-shadow: 0 8px 26px rgba(60, 10, 30, 0.06);
}

.facilitator-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.5rem; }
.facilitator-badge { font-weight: 700; color: var(--burgundy, #7A1F3D); }
.facilitator-source { font-size: 0.78rem; color: var(--ink-soft, #6b5560); }

.facilitator-opener { margin: 0 0 0.5rem; line-height: 1.55; }
.facilitator-agree { margin: 0 0 0.7rem; font-size: 0.85rem; color: #1E6B3A; }
.facilitator-none { margin: 0.4rem 0; color: var(--ink-soft, #6b5560); }

.facilitator-point {
    background: #fff; border: 1.2px solid var(--champagne, #E8D8C3); border-radius: 10px;
    padding: 0.6rem 0.8rem; margin-bottom: 0.55rem; display: flex; flex-direction: column; gap: 3px;
}
.facilitator-point.is-clash { border-left: 4px solid #C0392B; }
.facilitator-point.is-flex { border-left: 4px solid #C99A2E; }

.fp-topic { font-weight: 600; }
.fp-kind { font-style: normal; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft, #6b5560); margin-left: 6px; }
.fp-tension { font-size: 0.85rem; color: var(--ink-soft, #6b5560); }
.fp-suggestion { font-size: 0.9rem; line-height: 1.5; }

.facilitator-foot { margin: 0.4rem 0 0; font-size: 0.78rem; color: var(--ink-soft, #6b5560); font-style: italic; }

/* AI Readiness Coach (Roadmap 1.3) */

.readiness-plan {
    margin-top: 1.4rem; text-align: left;
    background: #fff; border: 1.4px solid var(--champagne, #E8D8C3); border-radius: 14px;
    padding: 1.1rem 1.3rem; box-shadow: 0 8px 26px rgba(60, 10, 30, 0.06);
}
.readiness-plan h3 { margin: 0 0 0.4rem; }
.rp-intro { margin: 0 0 0.7rem; line-height: 1.55; }
.rp-modules { margin: 0 0 0.7rem; padding-left: 1.2rem; }
.rp-modules li { margin: 0.3rem 0; line-height: 1.45; }
.rp-source { font-size: 0.82rem; color: var(--ink-soft, #6b5560); margin: 0; }

/* Region overlays (Roadmap 4.5) */

.overlay-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-bottom: 1rem; }
.overlay-item {
    display: flex; flex-direction: column; gap: 2px;
    background: #fff; border: 1.2px solid var(--champagne, #E8D8C3); border-radius: 10px; padding: 0.6rem 0.8rem;
}
.overlay-label { font-size: 0.78rem; color: var(--ink-soft, #6b5560); }
.overlay-value { font-weight: 600; }
.overlay-editor { max-width: 520px; display: flex; flex-direction: column; gap: 10px; }
.overlay-edit-row { display: flex; flex-direction: column; gap: 4px; font-size: 0.88rem; }
.overlay-edit-row input, .overlay-edit-row select {
    border: 1.3px solid var(--champagne, #E8D8C3); border-radius: 8px; padding: 0.4rem 0.6rem; font: inherit;
}
.overlay-editor-actions { display: flex; gap: 10px; margin-top: 4px; }

/* Psychometric / values instrument (Roadmap 4.4) */

.psych-dims { display: flex; flex-direction: column; gap: 12px; margin: 1rem 0 1.4rem; }
.psych-dim { display: grid; grid-template-columns: 160px 1fr 36px; align-items: center; gap: 10px; }
.psych-dim-label { font-size: 0.9rem; }
.psych-bar { height: 12px; background: var(--blush, #FBE9EF); border-radius: 999px; overflow: hidden; }
.psych-bar-fill { height: 100%; background: linear-gradient(90deg, var(--burgundy, #7A1F3D), var(--rose, #C94F7C)); border-radius: 999px; }
.psych-dim-score { font-size: 0.85rem; font-weight: 600; color: var(--burgundy, #7A1F3D); text-align: right; }

@media (max-width: 560px) {
    .psych-dim { grid-template-columns: 110px 1fr 30px; }
}

/* Identity verification (Roadmap 4.1) */

.verify-panel {
    display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 10px;
    background: #fff; border: 1.3px solid var(--champagne, #E8D8C3); border-radius: 12px; padding: 0.6rem 0.9rem;
}
.verify-level { font-size: 0.9rem; color: var(--burgundy, #7A1F3D); }
.verify-note { font-size: 0.82rem; color: #1E6B3A; }

/* Incognito / private browsing (Roadmap 4.7) */

.incognito-note { font-size: 0.82rem; color: var(--ink-soft, #6b5560); font-style: italic; align-self: center; }

/* Contract of the Day (Roadmap 1.2) */

.daily-pick {
    background: linear-gradient(135deg, var(--blush, #FBE9EF), #fff);
    border: 1.5px solid var(--blush-deep, #E6B9CB); border-radius: 16px;
    padding: 0.9rem 1rem 1.1rem; margin-bottom: 1.4rem;
}
.daily-kicker {
    display: block; font-weight: 700; color: var(--burgundy, #7A1F3D);
    font-size: 0.9rem; margin-bottom: 0.6rem;
}
.daily-pick :is(.pc, .profile-card, .card) { margin: 0; }

/* Voice notes (Roadmap 4.3) */

.chat-msg-voice { display: flex; align-items: center; gap: 8px; }
.chat-msg-voice audio { height: 34px; max-width: 220px; }
.voice-dur { font-size: 0.72rem; color: var(--ink-soft, #6b5560); }
.mic-btn.recording { color: #C0392B; }
.mic-btn.recording::before { content: "● "; }
.voice-recording-note { font-size: 0.82rem; color: #C0392B; margin: 4px 0 0; padding: 0 0.4rem; }

/* Meeting safety — SOS + share (Roadmap 0.2) */

.meeting-safety { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: -4px 0 10px; }
.meeting-safety .share-inline { display: inline-flex; gap: 6px; align-items: center; }
.meeting-safety input[type=email] {
    border: 1.3px solid var(--champagne, #E8D8C3); border-radius: 8px; padding: 0.3rem 0.55rem; font: inherit;
}
.safety-note { font-size: 0.82rem; color: #7B241C; }

/* Post-meeting feedback — "We Met" + safety check-in (Roadmap 0.3) */

.feedback-prompt {
    display: block; width: 100%; text-align: left;
    margin: 4px 0 10px;
    background: var(--blush, #FBE9EF); border: 1.3px dashed var(--blush-deep, #E6B9CB);
    color: var(--burgundy, #7A1F3D); border-radius: 12px;
    padding: 0.7rem 1rem; font: inherit; font-size: 0.9rem; cursor: pointer;
}

.feedback-prompt:hover { background: #F7DEE8; }

.feedback-card {
    margin: 4px 0 12px;
    background: #fff; border: 1.4px solid var(--champagne, #E8D8C3);
    border-radius: 14px; padding: 1rem 1.1rem;
    box-shadow: 0 8px 26px rgba(60, 10, 30, 0.07);
}

.feedback-card h4 { margin: 0 0 0.25rem; }

.feedback-note { margin: 0 0 0.7rem; font-size: 0.85rem; color: var(--ink-soft, #6b5560); }

.feedback-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 0.7rem; }

.feedback-label { font-size: 0.82rem; font-weight: 600; color: var(--ink-soft, #6b5560); }

.feedback-choices { display: flex; flex-wrap: wrap; gap: 8px; }

.feedback-alarm.on { background: #C0392B; border-color: #C0392B; }

.feedback-safety-note {
    margin: 0 0 0.7rem; font-size: 0.82rem;
    color: #7B241C; background: #FBE3E3; border-left: 3px solid #C0392B;
    border-radius: 8px; padding: 0.55rem 0.8rem;
}

.feedback-comment {
    width: 100%; border: 1.3px solid var(--champagne, #E8D8C3); border-radius: 10px;
    padding: 0.55rem 0.7rem; font: inherit; resize: vertical;
}

.feedback-actions { display: flex; gap: 10px; margin-top: 0.7rem; }

.feedback-done {
    margin: 4px 0 12px; font-size: 0.85rem; color: #1E6B3A;
    background: #E6F4EA; border-radius: 10px; padding: 0.5rem 0.9rem;
}

/* Match alerts (UC3 smart filters) */

.filter-alert {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    margin: 10px 0 22px; font-size: 13.5px;
}
.filter-alert-on { color: var(--gold-deep); font-weight: 600; }
.filter-alert-note { color: var(--ink-soft); font-style: italic; }
