/* =====================================================================
   Spiritual Matrimony — design system
   Warm dharma-rooted palette: saffron, deep maroon, cream, sacred indigo.
   ===================================================================== */

:root {
    /* Brand */
    --c-saffron:    #D4A017;
    --c-saffron-2:  #E8A23B;
    --c-gold:       #B8860B;
    --c-maroon:     #7B1F1F;
    --c-maroon-2:   #8B2C2C;
    --c-indigo:     #2D1B4E;
    --c-indigo-2:   #3D2766;
    --c-lotus:      #E8A6A6;
    --c-cream:      #FFF8EE;
    --c-cream-2:    #FAF3E0;
    --c-sand:       #F2E6CC;

    /* Neutrals */
    --c-ink:        #2B1810;
    --c-ink-soft:   #4A3328;
    --c-muted:      #8B7560;
    --c-line:       #E8DCC0;
    --c-bg:         #FFFCF7;
    --c-card:       #FFFFFF;

    /* Shadows */
    --shadow-sm: 0 2px 10px -2px rgba(123, 31, 31, 0.08);
    --shadow:    0 10px 30px -10px rgba(123, 31, 31, 0.18), 0 2px 6px -2px rgba(45, 27, 78, 0.06);
    --shadow-lg: 0 30px 60px -20px rgba(123, 31, 31, 0.25), 0 8px 20px -8px rgba(45, 27, 78, 0.1);

    /* Type */
    --f-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    --f-body:    'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
    --f-deco:    'Tangerine', cursive;

    /* Radii */
    --r-sm: 6px;
    --r:    12px;
    --r-lg: 22px;
    --r-xl: 36px;
    --r-pill: 999px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--c-bg);
    color: var(--c-ink);
    font-family: var(--f-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-maroon); text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-saffron); }

h1, h2, h3, h4, h5 {
    font-family: var(--f-display);
    color: var(--c-ink);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0 0 .6em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }

p { margin: 0 0 1em; color: var(--c-ink-soft); }

.container { width: min(1180px, 92%); margin: 0 auto; }
.container-sm { width: min(720px, 92%); margin: 0 auto; }
.container-lg { width: min(1320px, 94%); margin: 0 auto; }

/* ----------- Decorative ornaments ----------- */
.om {
    font-family: var(--f-display);
    font-weight: 600;
    color: var(--c-saffron);
}
.deco-divider {
    display: flex; align-items: center; justify-content: center;
    margin: 1.2rem 0;
    color: var(--c-saffron);
    font-size: 1.3rem;
    gap: .8rem;
}
.deco-divider::before, .deco-divider::after {
    content: ''; flex: 1; height: 1px;
    background: linear-gradient(to var(--dir, right), transparent, var(--c-saffron) 50%, transparent);
    max-width: 100px;
}
.deco-divider::before { --dir: left; }

.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    font-size: .78rem;
    letter-spacing: .22em;
    color: var(--c-maroon);
    font-weight: 600;
    margin-bottom: .8rem;
}
.script {
    font-family: var(--f-deco);
    font-size: 2.4rem;
    color: var(--c-saffron);
    font-style: italic;
    line-height: 1;
}

/* ----------- Buttons ----------- */
.btn {
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .85rem 1.7rem;
    border-radius: var(--r-pill);
    font-family: var(--f-body);
    font-weight: 600; font-size: .96rem;
    border: none; cursor: pointer;
    transition: transform .2s, box-shadow .2s, background .2s;
    text-decoration: none;
    line-height: 1;
}
.btn-primary {
    background: linear-gradient(135deg, var(--c-maroon) 0%, var(--c-maroon-2) 100%);
    color: var(--c-cream);
    box-shadow: var(--shadow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--c-cream); }
.btn-gold {
    background: linear-gradient(135deg, var(--c-saffron) 0%, var(--c-gold) 100%);
    color: #fff;
    box-shadow: var(--shadow);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: #fff; }
.btn-ghost {
    background: transparent;
    color: var(--c-maroon);
    border: 1.5px solid var(--c-maroon);
}
.btn-ghost:hover { background: var(--c-maroon); color: var(--c-cream); }
.btn-sm { padding: .55rem 1.1rem; font-size: .86rem; }
.btn-lg { padding: 1.1rem 2.2rem; font-size: 1.06rem; }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* ----------- Navbar ----------- */
.nav {
    position: sticky; top: 0; z-index: 100;
    backdrop-filter: blur(14px);
    background: rgba(255, 252, 247, 0.86);
    border-bottom: 1px solid var(--c-line);
}
.nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.1rem 0;
}
.brand {
    display: flex; align-items: center; gap: .7rem;
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--c-maroon);
    letter-spacing: -.01em;
}
.brand-icon {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--c-saffron), var(--c-maroon));
    display: flex; align-items: center; justify-content: center;
    color: var(--c-cream);
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}
.brand-icon svg { width: 28px; height: 28px; }
.nav-links { display: flex; align-items: center; gap: 1.8rem; }
.nav-links a {
    color: var(--c-ink-soft);
    font-weight: 500;
    font-size: .95rem;
    position: relative;
}
.nav-links a.is-active { color: var(--c-maroon); }
.nav-links a.is-active::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -8px;
    height: 2px; background: var(--c-saffron); border-radius: 2px;
}
.nav-links a:hover { color: var(--c-maroon); }
.nav-cta { display: flex; gap: .8rem; align-items: center; }
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: .5rem; }
.mobile-toggle svg { width: 28px; height: 28px; color: var(--c-maroon); }

@media (max-width: 880px) {
    .nav-links, .nav-cta .btn-ghost { display: none; }
    .mobile-toggle { display: block; }
    .nav-links.open {
        display: flex; flex-direction: column;
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--c-cream); padding: 1.5rem; gap: 1rem;
        border-bottom: 1px solid var(--c-line);
    }
}

/* ----------- Hero ----------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: 6rem 0 8rem;
    background:
        radial-gradient(ellipse at 80% 20%, rgba(212, 160, 23, 0.18), transparent 50%),
        radial-gradient(ellipse at 20% 80%, rgba(123, 31, 31, 0.12), transparent 50%),
        linear-gradient(180deg, #FFF8EE 0%, #FAF3E0 100%);
}
.hero::before {
    content: '';
    position: absolute; top: -40%; right: -20%;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(212,160,23, .25), transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 4rem;
    position: relative; z-index: 2;
}
.hero-grid h1 .accent { color: var(--c-maroon); font-style: italic; }
.hero-grid h1 .gold-accent {
    background: linear-gradient(90deg, var(--c-saffron), var(--c-maroon));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: italic;
}
.hero-sub { font-size: 1.18rem; color: var(--c-ink-soft); max-width: 540px; margin-bottom: 2rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-trust { display: flex; align-items: center; gap: 1rem; margin-top: 2.5rem; color: var(--c-muted); font-size: .92rem; }
.hero-trust .avatars { display: flex; }
.hero-trust .avatars img, .hero-trust .avatars div {
    width: 36px; height: 36px; border-radius: 50%; border: 2.5px solid var(--c-cream);
    background: linear-gradient(135deg, var(--c-saffron), var(--c-maroon)); margin-left: -10px;
}
.hero-trust .avatars img:first-child, .hero-trust .avatars div:first-child { margin-left: 0; }

.hero-visual {
    position: relative;
    aspect-ratio: 1 / 1.05;
    max-width: 520px;
    margin-left: auto;
}
.hero-card {
    position: absolute;
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--c-cream-2);
    transition: transform .35s;
}
.hero-card:hover { transform: translateY(-6px) rotate(0deg) !important; }
.hero-card-main {
    top: 0; left: 5%; width: 70%; height: 80%;
    transform: rotate(-3deg);
    z-index: 3;
}
.hero-card-2 {
    bottom: 0; right: 0; width: 55%; height: 60%;
    transform: rotate(5deg);
    z-index: 2;
}
.hero-card-3 {
    top: 18%; right: 8%; width: 32%; height: 32%;
    transform: rotate(-7deg);
    z-index: 1;
    background: linear-gradient(135deg, var(--c-maroon), var(--c-indigo));
    color: var(--c-cream);
    display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 1rem;
    font-family: var(--f-display);
}
.hero-card .photo {
    width: 100%; height: 100%; object-fit: cover;
    background: linear-gradient(135deg, var(--c-saffron), var(--c-maroon));
}
.hero-card-badge {
    position: absolute; bottom: 1rem; left: 1rem; right: 1rem;
    background: rgba(255, 248, 238, 0.94);
    padding: .8rem 1rem; border-radius: var(--r);
    backdrop-filter: blur(8px);
}
.hero-card-badge h4 { font-size: 1.1rem; margin: 0 0 .15em; }
.hero-card-badge p { font-size: .82rem; margin: 0; color: var(--c-muted); }

.mandala {
    position: absolute;
    top: -8%; left: -8%;
    width: 130%; height: 130%;
    opacity: .35;
    z-index: 0;
    pointer-events: none;
}

@media (max-width: 880px) {
    .hero { padding: 3rem 0 5rem; }
    .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
    .hero-visual { max-width: 100%; aspect-ratio: 1 / .8; }
}

/* ----------- Stats strip ----------- */
.stats {
    background: var(--c-maroon);
    color: var(--c-cream);
    padding: 2.4rem 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat-num { font-family: var(--f-display); font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 600; color: var(--c-saffron); }
.stat-label { font-size: .88rem; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }

@media (max-width: 700px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.6rem; } }

/* ----------- Section ----------- */
.section { padding: 6rem 0; }
.section-tight { padding: 4rem 0; }
.section-soft { background: var(--c-cream-2); }
.section-dark {
    background:
        radial-gradient(ellipse at 20% 30%, rgba(212,160,23,.18), transparent 50%),
        linear-gradient(135deg, var(--c-indigo) 0%, var(--c-maroon) 100%);
    color: var(--c-cream);
}
.section-dark h2, .section-dark h3 { color: var(--c-cream); }
.section-dark p { color: rgba(255, 248, 238, .85); }
.section-dark .eyebrow { color: var(--c-saffron); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 3.5rem; }
.section-head h2 { margin-bottom: .4em; }
.section-head .lead { font-size: 1.12rem; color: var(--c-ink-soft); }

/* ----------- Feature cards (3-col) ----------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.feature {
    background: var(--c-card);
    padding: 2.5rem 2rem;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    transition: transform .25s, box-shadow .25s;
    border: 1px solid var(--c-line);
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature-icon {
    width: 64px; height: 64px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--c-saffron) 0%, var(--c-maroon) 100%);
    display: flex; align-items: center; justify-content: center;
    color: var(--c-cream);
    margin-bottom: 1.4rem;
}
.feature-icon svg { width: 32px; height: 32px; }
.feature h3 { font-size: 1.45rem; margin-bottom: .5rem; }
.feature p { font-size: .98rem; margin: 0; }

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

/* ----------- Profile cards ----------- */
.profiles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
}
.profile-card {
    background: var(--c-card);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--c-line);
    transition: transform .25s, box-shadow .25s;
    display: flex; flex-direction: column;
}
.profile-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.profile-photo {
    aspect-ratio: 4/4.5; overflow: hidden;
    background: linear-gradient(135deg, var(--c-sand), var(--c-lotus));
    position: relative;
}
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-badge {
    position: absolute; top: 1rem; left: 1rem;
    background: rgba(255, 248, 238, .92);
    color: var(--c-maroon);
    font-size: .72rem; font-weight: 600;
    padding: .35rem .8rem; border-radius: var(--r-pill);
    text-transform: uppercase; letter-spacing: .1em;
    backdrop-filter: blur(6px);
}
.profile-body { padding: 1.6rem; }
.profile-body h3 { font-size: 1.45rem; margin-bottom: .25rem; }
.profile-meta { font-size: .9rem; color: var(--c-muted); margin-bottom: 1rem; }
.profile-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.tag {
    font-size: .76rem;
    background: var(--c-cream-2);
    color: var(--c-ink-soft);
    padding: .3rem .7rem;
    border-radius: var(--r-pill);
}
.tag-gold { background: rgba(212, 160, 23, .15); color: var(--c-maroon); }
.profile-about { font-size: .92rem; color: var(--c-ink-soft); margin: .6rem 0 1.2rem;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

@media (max-width: 880px) { .profiles-grid { grid-template-columns: 1fr 1fr; gap: 1rem; } }
@media (max-width: 520px) { .profiles-grid { grid-template-columns: 1fr; } }

/* ----------- Testimonial / Happy Stories ----------- */
.story-card {
    background: var(--c-card);
    padding: 2.2rem;
    border-radius: var(--r-lg);
    border: 1px solid var(--c-line);
    box-shadow: var(--shadow-sm);
    position: relative;
}
.story-card::before {
    content: '"';
    position: absolute; top: -.5rem; left: 1.5rem;
    font-family: var(--f-display); font-size: 6rem;
    color: var(--c-saffron); line-height: 1; opacity: .4;
}
.story-card p { font-family: var(--f-display); font-size: 1.2rem; font-style: italic; color: var(--c-ink); line-height: 1.5; }
.story-couple {
    display: flex; align-items: center; gap: 1rem; margin-top: 1.4rem;
}
.story-couple-avatar {
    width: 50px; height: 50px; border-radius: 50%;
    background: linear-gradient(135deg, var(--c-saffron), var(--c-maroon));
    display: flex; align-items: center; justify-content: center; color: white; font-weight: 700;
}
.story-couple-name { font-weight: 600; color: var(--c-maroon); }
.story-couple-date { font-size: .8rem; color: var(--c-muted); }

/* ----------- Packages ----------- */
.pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; align-items: stretch; }
.pkg {
    background: var(--c-card);
    padding: 2.5rem 2rem;
    border-radius: var(--r-lg);
    border: 2px solid var(--c-line);
    display: flex; flex-direction: column;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.pkg:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.pkg.featured {
    border-color: var(--c-saffron);
    box-shadow: var(--shadow);
    position: relative;
}
.pkg.featured::after {
    content: 'MOST POPULAR';
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, var(--c-saffron), var(--c-maroon));
    color: var(--c-cream);
    font-size: .7rem; letter-spacing: .15em; font-weight: 700;
    padding: .4rem 1rem; border-radius: var(--r-pill);
}
.pkg-name { font-family: var(--f-display); font-size: 1.8rem; color: var(--c-maroon); margin-bottom: .25rem; }
.pkg-tag { font-size: .94rem; color: var(--c-muted); margin-bottom: 1.6rem; }
.pkg-price { font-family: var(--f-display); font-size: 3rem; font-weight: 600; line-height: 1; color: var(--c-ink); }
.pkg-price small { font-size: 1rem; font-weight: 500; color: var(--c-muted); }
.pkg-duration { color: var(--c-muted); font-size: .9rem; margin-top: .4rem; margin-bottom: 1.6rem; }
.pkg-features { list-style: none; padding: 0; margin: 0 0 2rem; flex: 1; }
.pkg-features li { padding: .55rem 0; font-size: .94rem; display: flex; align-items: flex-start; gap: .55rem; color: var(--c-ink-soft); }
.pkg-features li::before { content: '✓'; color: var(--c-saffron); font-weight: 700; }

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

/* ----------- Blog ----------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.blog-card {
    background: var(--c-card);
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--c-line);
    transition: transform .25s, box-shadow .25s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.blog-cover {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, var(--c-maroon), var(--c-indigo));
    position: relative;
    color: var(--c-cream);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--f-display); font-size: 1.8rem;
    padding: 1rem; text-align: center;
}
.blog-cover img { width: 100%; height: 100%; object-fit: cover; }
.blog-body { padding: 1.6rem; }
.blog-cat { font-size: .76rem; letter-spacing: .15em; color: var(--c-saffron); text-transform: uppercase; font-weight: 600; }
.blog-card h3 { font-size: 1.35rem; margin: .5rem 0; }
.blog-card h3 a { color: var(--c-ink); }
.blog-card h3 a:hover { color: var(--c-maroon); }
.blog-excerpt { font-size: .92rem; color: var(--c-ink-soft); }
.blog-meta { display: flex; gap: 1rem; font-size: .82rem; color: var(--c-muted); margin-top: 1rem; }

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

/* ----------- Footer ----------- */
.footer {
    background: var(--c-indigo);
    color: rgba(255, 248, 238, .85);
    padding: 4rem 0 2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer h4 { color: var(--c-saffron); font-family: var(--f-body); font-size: .92rem; text-transform: uppercase; letter-spacing: .18em; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { padding: .35rem 0; }
.footer a { color: rgba(255, 248, 238, .8); }
.footer a:hover { color: var(--c-saffron); }
.footer-brand h3 { color: var(--c-cream); margin-bottom: .5rem; }
.footer-brand p { color: rgba(255, 248, 238, .7); }
.footer-bottom { border-top: 1px solid rgba(255, 248, 238, .15); padding-top: 1.5rem; display: flex; justify-content: space-between; font-size: .85rem; opacity: .7; flex-wrap: wrap; gap: 1rem; }
.social { display: flex; gap: .8rem; margin-top: 1rem; }
.social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255, 248, 238, .1);
    transition: background .2s;
}
.social a:hover { background: var(--c-saffron); color: var(--c-indigo) !important; }
.social svg { width: 18px; height: 18px; }

@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ----------- Forms ----------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.2rem; }
.form-grid .full, .form-grid-3 .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.2rem; }
.field label { font-size: .86rem; color: var(--c-ink-soft); font-weight: 500; }
.field input, .field select, .field textarea {
    border: 1.5px solid var(--c-line);
    background: var(--c-card);
    border-radius: var(--r);
    padding: .85rem 1rem;
    font-family: inherit;
    font-size: .96rem;
    color: var(--c-ink);
    transition: border-color .2s, box-shadow .2s;
    width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--c-saffron);
    box-shadow: 0 0 0 3px rgba(212, 160, 23, .18);
}
.field textarea { resize: vertical; min-height: 110px; }
.field-help { font-size: .8rem; color: var(--c-muted); }

@media (max-width: 700px) { .form-grid, .form-grid-3 { grid-template-columns: 1fr; } }

/* ----------- Auth pages (split screen) ----------- */
.auth-shell { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; }
.auth-art {
    background:
        radial-gradient(circle at 30% 20%, rgba(212,160,23,.4), transparent 50%),
        linear-gradient(135deg, var(--c-maroon) 0%, var(--c-indigo) 100%);
    color: var(--c-cream);
    padding: 4rem;
    display: flex; flex-direction: column; justify-content: space-between;
    position: relative; overflow: hidden;
}
.auth-art::before {
    content: ''; position: absolute; top: -20%; right: -20%;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212,160,23,.3), transparent 65%);
}
.auth-art h2 { color: var(--c-cream); font-size: 3rem; }
.auth-art .quote { font-family: var(--f-display); font-size: 1.6rem; font-style: italic; line-height: 1.4; max-width: 480px; z-index: 1; position: relative; }
.auth-art .quote::before { content: '"'; font-size: 5rem; color: var(--c-saffron); line-height: 1; }
.auth-form-shell {
    padding: 3rem 4rem;
    display: flex; flex-direction: column; justify-content: center;
    background: var(--c-bg);
}
.auth-form-shell-inner { max-width: 460px; width: 100%; margin: 0 auto; }
.auth-form-shell h1 { font-size: 2.4rem; }
.auth-form-shell .small-link { font-size: .92rem; color: var(--c-muted); margin-top: 1.5rem; text-align: center; }

@media (max-width: 880px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-art { display: none; }
    .auth-form-shell { padding: 3rem 1.5rem; }
}

/* ----------- Flash messages ----------- */
.flash { padding: 1rem 1.4rem; border-radius: var(--r); margin-bottom: 1.4rem; font-size: .94rem; }
.flash-success { background: #E8F5E9; color: #1F4D1F; border-left: 4px solid #2E7D32; }
.flash-error   { background: #FDECEC; color: #6E1F1F; border-left: 4px solid var(--c-maroon); }

/* ----------- Member dashboard ----------- */
.dash-grid { display: grid; grid-template-columns: 280px 1fr; gap: 2rem; }
.dash-side {
    background: var(--c-card); border-radius: var(--r-lg); padding: 1.6rem;
    border: 1px solid var(--c-line); height: fit-content; position: sticky; top: 90px;
}
.dash-side .me { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--c-line); }
.dash-side .me img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--c-sand); }
.dash-side .me h4 { font-size: 1.05rem; margin: 0; }
.dash-side .me span { font-size: .82rem; color: var(--c-muted); }
.dash-nav { list-style: none; padding: 0; margin: 0; }
.dash-nav a {
    display: flex; align-items: center; gap: .8rem;
    padding: .7rem .9rem; border-radius: var(--r);
    color: var(--c-ink-soft); font-size: .94rem;
}
.dash-nav a:hover, .dash-nav a.is-active { background: var(--c-cream-2); color: var(--c-maroon); }
.dash-nav a.is-active { font-weight: 600; }

.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-bottom: 2rem; }
.stat-card { background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 1.4rem; }
.stat-card .label { color: var(--c-muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; }
.stat-card .value { font-family: var(--f-display); font-size: 2.2rem; color: var(--c-maroon); }

@media (max-width: 880px) {
    .dash-grid { grid-template-columns: 1fr; }
    .dash-side { position: static; }
    .stat-cards { grid-template-columns: 1fr 1fr; }
}

/* ----------- Profile detail page ----------- */
.profile-hero {
    background: linear-gradient(135deg, var(--c-cream-2), var(--c-sand));
    border-radius: var(--r-xl);
    padding: 2.5rem;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
    align-items: center;
    margin-bottom: 2.5rem;
    border: 1px solid var(--c-line);
}
.profile-hero img { width: 280px; height: 280px; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow); }
.profile-hero .name-row { display: flex; align-items: baseline; gap: 1rem; margin-bottom: .5rem; flex-wrap: wrap; }
.profile-hero h1 { margin: 0; font-size: 2.6rem; }
.profile-hero .age { color: var(--c-muted); font-size: 1.2rem; }
.profile-hero .actions { display: flex; gap: .8rem; margin-top: 1.4rem; flex-wrap: wrap; }
@media (max-width: 700px) {
    .profile-hero { grid-template-columns: 1fr; text-align: center; padding: 1.6rem; }
    .profile-hero img { margin: 0 auto; width: 200px; height: 200px; }
}

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.info-card { background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 1.8rem; }
.info-card h3 { font-size: 1.3rem; color: var(--c-maroon); margin-bottom: 1rem; padding-bottom: .7rem; border-bottom: 1px solid var(--c-line); }
.info-row { display: flex; justify-content: space-between; padding: .55rem 0; font-size: .94rem; border-bottom: 1px dashed var(--c-line); }
.info-row:last-child { border-bottom: none; }
.info-row .k { color: var(--c-muted); }
.info-row .v { color: var(--c-ink); font-weight: 500; }
@media (max-width: 700px) { .info-grid { grid-template-columns: 1fr; } }

/* ----------- Browse filters ----------- */
.filters {
    background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--r-lg);
    padding: 1.4rem; margin-bottom: 2rem;
    display: grid; grid-template-columns: repeat(6, 1fr) auto; gap: .8rem; align-items: end;
}
.filters .field { margin-bottom: 0; }
.filters .field label { font-size: .78rem; }
@media (max-width: 880px) { .filters { grid-template-columns: 1fr 1fr; } }

/* ----------- Messages ----------- */
.msg-grid { display: grid; grid-template-columns: 320px 1fr; gap: 1.5rem; min-height: 600px; }
.msg-threads, .msg-pane { background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--r-lg); overflow: hidden; }
.msg-thread {
    display: block; padding: 1rem 1.2rem; border-bottom: 1px solid var(--c-line); color: var(--c-ink);
}
.msg-thread:hover, .msg-thread.is-active { background: var(--c-cream-2); }
.msg-thread h4 { margin: 0 0 .2rem; font-family: var(--f-body); font-size: .98rem; }
.msg-thread p { margin: 0; font-size: .85rem; color: var(--c-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-pane-head { padding: 1.2rem 1.4rem; border-bottom: 1px solid var(--c-line); display: flex; align-items: center; gap: 1rem; }
.msg-pane-body { padding: 1.4rem; max-height: 500px; overflow-y: auto; }
.msg-bubble {
    max-width: 70%; padding: .8rem 1.1rem; border-radius: var(--r-lg);
    margin-bottom: .8rem; font-size: .96rem;
}
.msg-bubble.mine { background: linear-gradient(135deg, var(--c-maroon), var(--c-maroon-2)); color: var(--c-cream); margin-left: auto; border-bottom-right-radius: 4px; }
.msg-bubble.theirs { background: var(--c-cream-2); color: var(--c-ink); border-bottom-left-radius: 4px; }
.msg-time { font-size: .72rem; opacity: .65; margin-top: .25rem; }
.msg-pane-form { padding: 1rem 1.4rem; border-top: 1px solid var(--c-line); display: flex; gap: .8rem; }
.msg-pane-form input { flex: 1; padding: .8rem 1.1rem; border: 1px solid var(--c-line); border-radius: var(--r-pill); }

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

/* ----------- Photo grid ----------- */
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.photo-tile {
    aspect-ratio: 1/1.1; border-radius: var(--r-lg); overflow: hidden; position: relative;
    border: 2px solid transparent;
}
.photo-tile.primary { border-color: var(--c-saffron); }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; }
.photo-actions { position: absolute; inset: auto 0 0 0; padding: .7rem;
    background: linear-gradient(transparent, rgba(0,0,0,.7));
    display: flex; gap: .4rem; }
.photo-actions form button {
    background: rgba(255,248,238,.94); border: none; color: var(--c-maroon);
    border-radius: var(--r); padding: .35rem .7rem; font-size: .78rem; cursor: pointer;
}
@media (max-width: 700px) { .photo-grid { grid-template-columns: 1fr 1fr; } }

/* ----------- Pagination ----------- */
.pager { display: flex; justify-content: center; gap: .5rem; margin-top: 2.5rem; }
.pager a, .pager span {
    padding: .55rem .9rem; border-radius: var(--r);
    background: var(--c-card); border: 1px solid var(--c-line); color: var(--c-ink-soft);
    font-size: .9rem;
}
.pager a:hover { border-color: var(--c-saffron); }
.pager .current { background: var(--c-maroon); color: var(--c-cream); border-color: var(--c-maroon); }

/* ----------- Admin layout ----------- */
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-side {
    background: var(--c-indigo); color: var(--c-cream); padding: 2rem 1.2rem;
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-side .brand { color: var(--c-cream); }
.admin-side .brand-icon { background: var(--c-saffron); color: var(--c-indigo); }
.admin-nav { list-style: none; padding: 0; margin: 2rem 0 0; }
.admin-nav a {
    display: flex; align-items: center; gap: .8rem;
    padding: .7rem 1rem; border-radius: var(--r);
    color: rgba(255, 248, 238, .8); font-size: .94rem;
}
.admin-nav a:hover, .admin-nav a.is-active { background: rgba(255, 248, 238, .1); color: var(--c-saffron); }
.admin-main { padding: 2.5rem 3rem; background: var(--c-bg); }
.admin-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.admin-head h1 { margin: 0; font-size: 2rem; }
.admin-card { background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 1.8rem; box-shadow: var(--shadow-sm); }

.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { text-align: left; padding: .9rem 1rem; border-bottom: 1px solid var(--c-line); font-size: .92rem; }
.tbl th { color: var(--c-muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
.tbl tr:hover { background: var(--c-cream-2); }
.tbl .actions { display: flex; gap: .4rem; }

.pill { display: inline-block; padding: .2rem .7rem; border-radius: var(--r-pill); font-size: .76rem; font-weight: 600; }
.pill.green { background: #E8F5E9; color: #1F4D1F; }
.pill.red   { background: #FDECEC; color: #6E1F1F; }
.pill.gold  { background: rgba(212, 160, 23, .15); color: var(--c-gold); }

@media (max-width: 880px) {
    .admin-shell { grid-template-columns: 1fr; }
    .admin-side { position: static; height: auto; }
    .admin-main { padding: 1.5rem; }
}

/* ----------- CMS prose ----------- */
.prose { max-width: 760px; margin: 0 auto; font-size: 1.1rem; line-height: 1.75; color: var(--c-ink-soft); }
.prose h1, .prose h2, .prose h3 { color: var(--c-ink); margin-top: 2em; }
.prose p { margin-bottom: 1.4em; }
.prose ul { padding-left: 1.4em; }
.prose li { margin-bottom: .5em; }
.prose blockquote {
    border-left: 4px solid var(--c-saffron);
    padding: .5rem 0 .5rem 1.5rem;
    font-style: italic;
    color: var(--c-ink);
    margin: 1.5em 0;
    font-family: var(--f-display);
    font-size: 1.3rem;
}

/* ----------- Utilities ----------- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-1 { gap: .5rem; } .gap-2 { gap: 1rem; }
.hidden { display: none; }
