/* ============================================================
   DatingBoard — Theme ("The Dating Board" / Council edition)
   Gold accent over a dark (default) / light canvas.
   Bootstrap 5.3 base, Cormorant Garamond + DM Sans typography.
   ============================================================ */

/* ───── TOKENS ───── */
:root {
    --gold:        #c9a84c;
    --gold-light:  #e2c47a;
    --gold-dim:    rgba(201, 168, 76, .15);
    --radius:      14px;
    --transition:  .35s cubic-bezier(.4, 0, .2, 1);

    /* Semantic status colors shared across themes */
    --accent-yes:  #4caf7d;
    --accent-no:   #e05a5a;
}

[data-bs-theme="dark"] {
    --bg:          #0d0d12;
    --bg-card:     #141419;
    --bg-card2:    #1b1b22;
    --border:      rgba(255, 255, 255, .07);
    --text:        #e8e3d8;
    --text-muted:  #7a7472;
    --text-dim:    #b0a89e;
    --shadow:      0 8px 40px rgba(0, 0, 0, .55);
    --nav-bg:      rgba(13, 13, 18, .82);

    /* Bootstrap variable overrides so default components match */
    --bs-body-bg: var(--bg);
    --bs-body-color: var(--text);
    --bs-border-color: var(--border);
    --bs-secondary-color: var(--text-muted);
    --bs-tertiary-bg: var(--bg-card2);
}

[data-bs-theme="light"] {
    --bg:          #faf8f4;
    --bg-card:     #ffffff;
    --bg-card2:    #f4f1eb;
    --border:      rgba(0, 0, 0, .07);
    --text:        #1a1714;
    --text-muted:  #8a8280;
    --text-dim:    #4a4540;
    --shadow:      0 8px 40px rgba(0, 0, 0, .10);
    --nav-bg:      rgba(250, 248, 244, .88);

    --bs-body-bg: var(--bg);
    --bs-body-color: var(--text);
    --bs-border-color: var(--border);
    --bs-secondary-color: var(--text-muted);
    --bs-tertiary-bg: var(--bg-card2);
}

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

html { font-size: 16px; }

body {
    font-family: 'DM Sans', system-ui, -apple-system, Segoe UI, sans-serif;
    background: var(--bg) !important;
    color: var(--text) !important;
    transition: background var(--transition), color var(--transition);
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, .serif {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    letter-spacing: -.01em;
    color: var(--text);
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }

.text-muted, .text-secondary { color: var(--text-muted) !important; }
.text-dim { color: var(--text-dim) !important; }
.text-gold { color: var(--gold) !important; }

hr { border-color: var(--border); opacity: 1; }

/* Subtle noise texture overlay */
body::before {
    content: '';
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    background-size: 200px;
    opacity: .55;
}

/* ───── NAVBAR ───── */
.navbar {
    background: var(--nav-bg) !important;
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-bottom: 1px solid var(--border) !important;
    padding: .85rem 0;
    transition: background var(--transition);
}

.navbar-brand {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--text) !important;
    letter-spacing: -.02em;
}
.navbar-brand .brand-accent,
.brand-gradient {
    color: var(--gold) !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: currentColor !important;
    background-clip: initial !important;
}

.nav-link {
    color: var(--text-dim) !important;
    font-size: .88rem;
    font-weight: 500;
    letter-spacing: .02em;
    padding: .4rem .85rem !important;
    transition: color .2s;
}
.nav-link:hover { color: var(--text) !important; }
.navbar .nav-link.active { color: var(--gold) !important; }

.navbar-toggler { border: 1px solid var(--border) !important; color: var(--text); }
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%23c9a84c' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Theme toggle */
.btn-theme {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: 8px;
    width: 36px; height: 36px;
    display: inline-grid; place-items: center;
    cursor: pointer;
    transition: var(--transition);
}
.btn-theme:hover { border-color: var(--gold); color: var(--gold); }

/* ───── BUTTONS ───── */
.btn-gold,
.btn-db {
    background: var(--gold);
    color: #0d0d12 !important;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: .9rem;
    padding: .7rem 1.6rem;
    letter-spacing: .01em;
    box-shadow: 0 4px 24px rgba(201, 168, 76, .28);
    transition: var(--transition);
}
.btn-gold:hover, .btn-gold:focus,
.btn-db:hover, .btn-db:focus {
    background: var(--gold-light);
    color: #0d0d12 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(201, 168, 76, .4);
}
.btn-gold:disabled, .btn-gold.disabled,
.btn-db:disabled, .btn-db.disabled {
    opacity: .5; transform: none; box-shadow: none;
}

.btn-ghost,
.btn-outline-light,
.btn-outline-secondary {
    background: transparent;
    color: var(--text) !important;
    border: 1px solid var(--border) !important;
    border-radius: 10px;
    font-weight: 500;
    padding: .7rem 1.4rem;
    transition: var(--transition);
}
.btn-ghost:hover,
.btn-outline-light:hover,
.btn-outline-secondary:hover {
    border-color: var(--gold) !important;
    color: var(--gold) !important;
    transform: translateY(-2px);
    background: transparent;
}

.btn-primary {
    background: var(--gold); border-color: var(--gold); color: #0d0d12;
}
.btn-primary:hover, .btn-primary:focus {
    background: var(--gold-light); border-color: var(--gold-light); color: #0d0d12;
}

/* ───── FORMS ───── */
.form-control, .form-select {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    color: var(--text) !important;
    border-radius: 10px;
    padding: .75rem 1rem;
    transition: border-color .2s;
}
.form-control::placeholder { color: var(--text-muted); }
.form-control:focus, .form-select:focus {
    border-color: var(--gold) !important;
    box-shadow: 0 0 0 3px rgba(201, 168, 76, .15);
    background: var(--bg-card) !important;
    color: var(--text) !important;
}
.form-label { color: var(--text-dim); font-size: .82rem; font-weight: 600; letter-spacing: .02em; }
.form-check-input:checked { background-color: var(--gold); border-color: var(--gold); }
.form-check-input:focus { box-shadow: 0 0 0 .2rem rgba(201, 168, 76, .25); border-color: var(--gold); }

.input-group-text {
    background: var(--bg-card2);
    border: 1px solid var(--border);
    color: var(--text-muted);
}

/* ───── CARDS ───── */
.card,
.card.bg-dark {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius);
    color: var(--text);
    transition: var(--transition);
}
.card:hover { border-color: rgba(201, 168, 76, .25); }
.card-header, .card-footer {
    background: var(--bg-card2) !important;
    border-color: var(--border) !important;
    color: var(--text);
}

/* ───── HERO / LANDING ───── */
.hero {
    min-height: 100svh;
    display: flex; align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.hero-glow-1 {
    width: 520px; height: 520px;
    background: radial-gradient(circle, rgba(201,168,76,.18) 0%, transparent 70%);
    top: -80px; right: -100px;
}
.hero-glow-2 {
    width: 340px; height: 340px;
    background: radial-gradient(circle, rgba(201,168,76,.10) 0%, transparent 70%);
    bottom: 60px; left: -60px;
}

.hero-eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    background: var(--gold-dim);
    border: 1px solid rgba(201,168,76,.3);
    color: var(--gold);
    font-size: .78rem; font-weight: 600;
    letter-spacing: .12em; text-transform: uppercase;
    padding: .4rem 1rem; border-radius: 100px;
    margin-bottom: 1.5rem;
}
.hero-eyebrow .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--gold);
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .4; transform: scale(.7); }
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6.5rem);
    line-height: 1.02;
    font-weight: 300;
    margin-bottom: 1.5rem;
}
.hero-title em { font-style: italic; color: var(--gold); font-weight: 300; }

.hero-sub {
    font-size: 1.1rem; line-height: 1.7;
    color: var(--text-dim);
    max-width: 520px;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-cta-group { display: flex; gap: .75rem; flex-wrap: wrap; }

.hero-trust {
    margin-top: 2.5rem;
    display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.hero-trust-avatars { display: flex; }
.hero-trust-avatars span {
    width: 32px; height: 32px; border-radius: 50%;
    border: 2px solid var(--bg);
    margin-left: -8px;
    font-size: .7rem; font-weight: 700;
    display: grid; place-items: center;
    font-family: 'DM Sans', sans-serif;
}
.hero-trust-avatars span:first-child { margin-left: 0; }
.a1 { background: #c9a84c; color: #0d0d12; }
.a2 { background: #7c6b5a; color: #fff; }
.a3 { background: #4a7c8a; color: #fff; }
.a4 { background: #8a4a6b; color: #fff; }

.hero-trust p { font-size: .8rem; color: var(--text-muted); margin: 0; line-height: 1.4; }
.hero-trust strong { color: var(--text); }

/* ───── PHONE MOCKUP ───── */
.phone-wrap { position: relative; display: flex; justify-content: center; align-items: center; }
.phone-frame {
    width: min(280px, 80vw);
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 40px;
    padding: 16px;
    box-shadow: var(--shadow), 0 0 0 1px var(--border);
    position: relative;
    overflow: hidden;
}
.phone-notch {
    width: 90px; height: 26px;
    background: var(--bg);
    border-radius: 0 0 18px 18px;
    margin: 0 auto 12px;
    border: 2px solid var(--border); border-top: none;
}
.phone-screen { border-radius: 28px; overflow: hidden; }
.app-topbar {
    padding: 12px 16px 10px;
    display: flex; align-items: center; justify-content: space-between;
}
.app-topbar-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem; font-weight: 700;
    color: var(--text);
}
.app-topbar-title span { color: var(--gold); }

.prospect-card {
    margin: 0 12px 14px;
    background: var(--bg-card2);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}
.prospect-img {
    height: 160px;
    background: linear-gradient(135deg, rgba(201,168,76,.2) 0%, rgba(74,124,138,.2) 100%);
    display: flex; align-items: center; justify-content: center;
    font-size: 3.5rem;
}
.prospect-info { padding: 12px 14px; }
.prospect-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem; font-weight: 600; color: var(--text);
    margin-bottom: 2px;
}
.prospect-meta { font-size: .72rem; color: var(--text-muted); margin-bottom: 8px; }
.prospect-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.ptag {
    font-size: .65rem; font-weight: 600;
    padding: 2px 8px; border-radius: 100px;
    letter-spacing: .04em;
}
.ptag-gold { background: var(--gold-dim); color: var(--gold); }
.ptag-blue { background: rgba(74,124,138,.15); color: #4a7c8a; }

.board-row { margin: 0 12px 14px; display: flex; gap: 8px; }
.board-vote {
    flex: 1;
    background: var(--bg-card2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.board-vote .vote-avatar {
    width: 28px; height: 28px; border-radius: 50%;
    display: grid; place-items: center;
    font-size: .65rem; font-weight: 700;
}
.board-vote .vote-name { font-size: .62rem; color: var(--text-muted); }
.board-vote .vote-icon { font-size: .9rem; }
.v-up { color: var(--accent-yes); }
.v-down { color: var(--accent-no); }
.v-pend { color: var(--text-muted); }

.phone-action-bar { margin: 0 12px 10px; display: flex; gap: 8px; }
.pab-btn {
    flex: 1; border-radius: 10px; border: none;
    padding: 9px; font-size: .7rem; font-weight: 600;
    cursor: pointer; letter-spacing: .03em;
    transition: var(--transition);
}
.pab-btn-pass { background: rgba(224, 90, 90, .15); color: var(--accent-no); }
.pab-btn-msg  { background: var(--gold-dim); color: var(--gold); }
.pab-btn-cont { background: rgba(76, 175, 125, .15); color: var(--accent-yes); }

/* ───── SECTIONS ───── */
.section-eyebrow {
    font-size: .72rem; font-weight: 600;
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--gold); margin-bottom: .75rem;
}
.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.08; font-weight: 300;
    margin-bottom: 1rem;
}
.section-title em { font-style: italic; color: var(--gold); }
.section-sub {
    font-size: 1rem; color: var(--text-dim);
    line-height: 1.75; font-weight: 300;
    max-width: 540px;
}

.gold-divider {
    width: 48px; height: 2px;
    background: var(--gold);
    margin-bottom: 1.5rem;
    border-radius: 2px;
}

.surface-sunken {
    background: var(--bg-card2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}

section.landing-section { padding: 100px 0; }
@media (max-width: 768px) { section.landing-section { padding: 64px 0; } }

/* ───── STEP ITEMS ───── */
.step-item {
    display: flex; gap: 1.25rem;
    align-items: flex-start;
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid transparent;
    transition: var(--transition);
    height: 100%;
}
.step-item:hover { border-color: var(--border); background: var(--bg-card); }
.step-num {
    min-width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--gold-dim);
    border: 1px solid rgba(201,168,76,.3);
    display: grid; place-items: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem; font-weight: 700;
    color: var(--gold);
    flex-shrink: 0;
}
.step-label {
    font-size: .65rem; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--gold); margin-bottom: .3rem;
}
.step-h {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem; font-weight: 600;
    margin-bottom: .4rem; color: var(--text);
}
.step-p { font-size: .875rem; color: var(--text-dim); line-height: 1.65; }

/* ───── FEATURE CARDS ───── */
.feat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    height: 100%;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.feat-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: opacity .3s;
}
.feat-card:hover { border-color: rgba(201,168,76,.3); transform: translateY(-3px); box-shadow: var(--shadow); }
.feat-card:hover::before { opacity: 1; }

.feat-icon {
    width: 44px; height: 44px; border-radius: 10px;
    background: var(--gold-dim);
    display: grid; place-items: center;
    font-size: 1.15rem; color: var(--gold);
    margin-bottom: 1.1rem;
}
.feat-h {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem; font-weight: 600;
    margin-bottom: .5rem; color: var(--text);
}
.feat-p { font-size: .855rem; color: var(--text-dim); line-height: 1.65; }

/* ───── BOARD VISUAL ───── */
.board-visual {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow);
}
.bv-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1.5rem;
}
.bv-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem; font-weight: 600; color: var(--text);
}
.bv-badge {
    font-size: .65rem; font-weight: 600;
    letter-spacing: .06em; text-transform: uppercase;
    background: var(--gold-dim); color: var(--gold);
    padding: .25rem .65rem; border-radius: 100px;
}

.board-member-row {
    display: flex; align-items: center; gap: .85rem;
    padding: .85rem;
    border: 1px solid var(--border);
    border-radius: 10px; margin-bottom: .65rem;
    background: var(--bg-card2);
}
.bm-avatar {
    width: 38px; height: 38px; border-radius: 50%;
    display: grid; place-items: center;
    font-size: .75rem; font-weight: 700;
    flex-shrink: 0;
}
.bm-info { flex: 1; min-width: 0; }
.bm-name { font-size: .875rem; font-weight: 600; color: var(--text); }
.bm-role { font-size: .72rem; color: var(--text-muted); }
.bm-vote { display: flex; gap: .4rem; align-items: center; }
.vote-pill {
    padding: .2rem .6rem; border-radius: 100px;
    font-size: .65rem; font-weight: 700;
    letter-spacing: .04em;
}
.vote-yes  { background: rgba(76, 175, 125, .15); color: var(--accent-yes); }
.vote-no   { background: rgba(224, 90, 90, .15);  color: var(--accent-no); }
.vote-wait { background: var(--border); color: var(--text-muted); }

.bv-note {
    margin-top: 1rem;
    background: var(--bg-card2);
    border: 1px solid var(--border);
    border-left: 3px solid var(--gold);
    border-radius: 0 10px 10px 0;
    padding: .85rem 1rem;
}
.bv-note-from {
    font-size: .65rem; color: var(--gold); font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase; margin-bottom: .3rem;
}
.bv-note-text {
    font-size: .82rem; color: var(--text-dim); line-height: 1.6; font-style: italic;
}

/* ───── PRIVACY ───── */
.privacy-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem; }
.privacy-icon {
    width: 36px; height: 36px; border-radius: 8px;
    background: var(--gold-dim);
    display: grid; place-items: center;
    color: var(--gold); font-size: 1rem;
    flex-shrink: 0; margin-top: 2px;
}
.privacy-item h5 { font-size: 1rem; font-weight: 600; margin-bottom: .25rem; color: var(--text); }
.privacy-item p { font-size: .855rem; color: var(--text-dim); line-height: 1.65; margin: 0; }

/* ───── TESTIMONIALS ───── */
.testi-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    height: 100%;
    transition: var(--transition);
}
.testi-card:hover { border-color: rgba(201,168,76,.25); }
.testi-stars { color: var(--gold); font-size: .8rem; letter-spacing: .05em; margin-bottom: 1rem; }
.testi-quote {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem; font-style: italic; font-weight: 300;
    color: var(--text); line-height: 1.65; margin-bottom: 1.25rem;
}
.testi-author { display: flex; align-items: center; gap: .75rem; }
.testi-av {
    width: 36px; height: 36px; border-radius: 50%;
    display: grid; place-items: center;
    font-size: .7rem; font-weight: 700;
}
.testi-name { font-size: .875rem; font-weight: 600; color: var(--text); }
.testi-tag { font-size: .72rem; color: var(--text-muted); }

/* ───── PRICING ───── */
.price-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    height: 100%;
}
.price-card.featured { border-color: rgba(201,168,76,.4); }
.price-card.featured::before {
    content: '';
    position: absolute; inset: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(201,168,76,.06), transparent);
    pointer-events: none;
}
.price-tag {
    font-size: .65rem; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase;
    background: var(--gold); color: #0d0d12;
    padding: .25rem .75rem; border-radius: 100px;
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
}
.price-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem; font-weight: 600; margin-bottom: .5rem;
}
.price-amt { margin-bottom: 1.25rem; }
.price-amt .amt {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem; font-weight: 300;
}
.price-amt .per { font-size: .82rem; color: var(--text-muted); }

.price-list { list-style: none; padding: 0; margin: 0 0 1.75rem; }
.price-list li {
    font-size: .875rem; color: var(--text-dim);
    padding: .45rem 0;
    display: flex; align-items: center; gap: .6rem;
    border-bottom: 1px solid var(--border);
}
.price-list li:last-child { border: none; }
.price-list li i { color: var(--gold); font-size: .75rem; }

/* ───── CTA ───── */
.cta-section { position: relative; overflow: hidden; padding: 120px 0; }
.cta-glow { position: absolute; border-radius: 50%; filter: blur(100px); pointer-events: none; }
.cta-glow-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(201,168,76,.14) 0%, transparent 70%);
    top: -150px; left: 50%; transform: translateX(-50%);
}
.waitlist-form { display: flex; gap: .65rem; max-width: 440px; flex-wrap: wrap; }
.waitlist-input {
    flex: 1; min-width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: .9rem;
    padding: .8rem 1.1rem;
    transition: border-color .2s;
    outline: none;
}
.waitlist-input::placeholder { color: var(--text-muted); }
.waitlist-input:focus { border-color: var(--gold); }

.social-proof-row {
    display: flex; align-items: center; gap: 1.5rem;
    margin-top: 1.5rem; flex-wrap: wrap;
}
.sp-item { display: flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--text-muted); }
.sp-item i { color: var(--gold); }

/* ───── FOOTER ───── */
footer.site-footer,
footer.bg-dark {
    background: transparent !important;
    border-top: 1px solid var(--border) !important;
    padding: 3rem 0 2rem;
    margin-top: auto;
}
.footer-brand {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem; font-weight: 700;
    color: var(--text);
}
.footer-brand span { color: var(--gold); }
.footer-tagline { font-size: .8rem; color: var(--text-muted); margin-top: .25rem; }
.footer-links h6 {
    font-size: .7rem; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--text-muted); margin-bottom: .85rem;
}
.footer-links a,
footer .text-secondary {
    display: block; font-size: .85rem;
    color: var(--text-dim) !important;
    margin-bottom: .5rem; transition: color .2s;
    text-decoration: none;
}
.footer-links a:hover,
footer .text-secondary:hover { color: var(--gold) !important; }
.footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    display: flex; align-items: center;
    justify-content: space-between; flex-wrap: wrap; gap: .75rem;
    font-size: .78rem; color: var(--text-muted);
}

/* ───── AUTH ───── */
.auth-wrapper {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem 8vh;
    position: relative;
}
.auth-card {
    width: 100%; max-width: 440px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 2.25rem;
}
.auth-eyebrow {
    font-size: .7rem; font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--gold); margin-bottom: .6rem;
}
.auth-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem; font-weight: 400;
    line-height: 1.1; margin-bottom: .5rem;
}
.auth-title em { color: var(--gold); font-style: italic; }
.auth-sub { font-size: .9rem; color: var(--text-dim); margin-bottom: 1.75rem; }

/* ───── INTEREST TAG / BADGE / AVATAR ───── */
.interest-tag {
    display: inline-block;
    padding: .25rem .7rem;
    border-radius: 100px;
    font-size: .72rem;
    font-weight: 600;
    background: var(--gold-dim);
    color: var(--gold);
    border: 1px solid rgba(201, 168, 76, .3);
    letter-spacing: .02em;
}
.badge.bg-primary,
.badge.bg-db { background: var(--gold) !important; color: #0d0d12 !important; }

.avatar-circle {
    width: 48px; height: 48px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1rem;
    background: var(--gold-dim);
    color: var(--gold);
    flex-shrink: 0;
}

/* ───── STAT CARDS ───── */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.4rem 1.5rem;
    transition: var(--transition);
    height: 100%;
}
.stat-card:hover { border-color: rgba(201,168,76,.3); }
.stat-label {
    font-size: .7rem; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase;
    color: var(--text-muted); margin-bottom: .5rem;
}
.stat-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.1rem; font-weight: 500;
    line-height: 1.1; color: var(--text);
}
.stat-icon {
    width: 36px; height: 36px; border-radius: 10px;
    background: var(--gold-dim);
    color: var(--gold);
    display: grid; place-items: center; font-size: 1rem;
}

/* ───── PROSPECT CARDS (discover / dashboard) ───── */
.prospect-card-img {
    width: 100%; height: 320px;
    object-fit: cover;
    border-radius: var(--radius) var(--radius) 0 0;
    background: linear-gradient(135deg, rgba(201,168,76,.18) 0%, rgba(74,124,138,.18) 100%);
}
@media (max-width: 575.98px) { .prospect-card-img { height: 240px; } }

.prospect-placeholder {
    width: 100%; height: 320px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, rgba(201,168,76,.18) 0%, rgba(74,124,138,.18) 100%);
    font-size: 3.5rem;
    color: var(--text-muted);
    border-radius: var(--radius) var(--radius) 0 0;
}

/* ───── MESSAGES / CHAT ───── */
.messages-layout { height: calc(100vh - 140px); min-height: 520px; }
.messages-sidebar-list { overflow-y: auto; max-height: calc(100vh - 220px); }
.messages-chat-area { display: flex; flex-direction: column; height: 100%; }
.messages-thread { flex: 1; overflow-y: auto; padding: 1rem; }

.conv-row {
    text-decoration: none;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    background: transparent;
    transition: background .15s;
}
.conv-row:hover { background: var(--gold-dim); color: var(--text); }
.conv-row.is-active { background: var(--gold-dim); }
.conv-row.is-active .conv-name { color: var(--gold); }
.conv-row .conv-name { color: var(--text); }

.chat-bubble {
    padding: .65rem 1rem;
    max-width: 75%;
    word-wrap: break-word;
    font-size: .9rem;
    line-height: 1.45;
}
.chat-sent .chat-bubble {
    background: var(--gold);
    color: #0d0d12;
    border-radius: 1rem 1rem .25rem 1rem;
}
.chat-sent .chat-time { color: rgba(13, 13, 18, .55); }
.chat-received .chat-bubble {
    background: var(--bg-card2);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 1rem 1rem 1rem .25rem;
}
.chat-received .chat-time { color: var(--text-muted); }

/* ───── PHOTO GRID ───── */
.photo-grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 1;
    border: 1px solid var(--border);
}
.photo-grid-item img { width: 100%; height: 100%; object-fit: cover; }
.photo-grid-item .photo-primary-badge { position: absolute; top: .5rem; left: .5rem; }

/* ───── DROPDOWN MENU ───── */
.dropdown-menu {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: .5rem;
}
.dropdown-item {
    color: var(--text-dim) !important;
    border-radius: 8px;
    padding: .5rem .75rem;
    font-size: .88rem;
}
.dropdown-item:hover, .dropdown-item:focus {
    background: var(--gold-dim) !important;
    color: var(--gold) !important;
}
.dropdown-divider { border-color: var(--border); }

/* ───── MODAL ───── */
.modal-content {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    color: var(--text);
    border-radius: 16px;
}
.modal-header, .modal-footer { border-color: var(--border); }
.modal-title { font-family: 'Cormorant Garamond', serif; font-weight: 600; }

/* ───── TOAST ───── */
#toast-container, .toast-container { z-index: 1090 !important; }

.toast {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-left: 4px solid var(--gold) !important;
    color: var(--text) !important;
    border-radius: 12px !important;
    box-shadow: var(--shadow);
    width: auto;
    min-width: 300px;
    max-width: 440px;
    padding: 0 !important;
    margin-bottom: .75rem;
    overflow: hidden;
    font-family: 'DM Sans', system-ui, sans-serif;
}

.toast .toast-inner {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: 1rem 1rem 1rem 1.1rem;
}

.toast .toast-icon {
    font-size: 1.15rem;
    line-height: 1.3;
    flex-shrink: 0;
    margin-top: 1px;
}

.toast .toast-message {
    flex: 1 1 auto;
    font-size: .9rem;
    line-height: 1.45;
    color: var(--text);
    word-break: break-word;
    padding-top: 1px;
}

.toast .toast-close {
    flex-shrink: 0;
    padding: 0;
    width: 18px;
    height: 18px;
    margin: 2px 0 0 .5rem;
    opacity: .55;
    background-size: 10px 10px;
    filter: invert(1) grayscale(100%) brightness(2);
}
[data-bs-theme="light"] .toast .toast-close { filter: none; }
.toast .toast-close:hover { opacity: 1; }

/* Type accents */
.toast-success { border-left-color: var(--accent-yes) !important; }
.toast-success .toast-icon { color: var(--accent-yes); }

.toast-error { border-left-color: var(--accent-no) !important; }
.toast-error .toast-icon { color: var(--accent-no); }

.toast-warning { border-left-color: var(--gold) !important; }
.toast-warning .toast-icon { color: var(--gold); }

.toast-info { border-left-color: var(--gold) !important; }
.toast-info .toast-icon { color: var(--gold); }

.toast-header {
    background: var(--bg-card2) !important;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

/* ───── TABLE ───── */
.table {
    color: var(--text);
    --bs-table-bg: transparent;
    --bs-table-striped-bg: var(--bg-card2);
    --bs-table-hover-bg: var(--gold-dim);
    --bs-table-color: var(--text);
    --bs-table-striped-color: var(--text);
    --bs-table-hover-color: var(--text);
    --bs-table-border-color: var(--border);
}
.table > :not(caption) > * > * { border-color: var(--border); }

/* ───── ADMIN ───── */
.admin-table .status-badge {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* ───── ANIMATIONS ───── */
@keyframes fade-up {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fade-up .7s ease both; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .22s; }
.delay-3 { animation-delay: .34s; }
.delay-4 { animation-delay: .46s; }
.delay-5 { animation-delay: .58s; }

.discover-card-enter { animation: cardSlideIn .3s ease-out; }
@keyframes cardSlideIn {
    from { opacity: 0; transform: translateY(20px) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ───── SCROLLBAR ───── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dim); }

/* ───── UTILS ───── */
.bg-surface    { background: var(--bg-card) !important; }
.bg-surface-2  { background: var(--bg-card2) !important; }
.border-soft   { border: 1px solid var(--border) !important; }
.rounded-db    { border-radius: var(--radius); }

/* ───── THEME-AWARE BOOTSTRAP UTILITY OVERRIDES ─────
   Bootstrap's .bg-dark / .text-white / .border-secondary are fixed colors
   that freeze pages into dark mode. Remap them to theme tokens so legacy
   markup respects the light/dark toggle. */
.bg-dark { background: var(--bg-card) !important; color: var(--text) !important; }
.bg-dark-subtle, .bg-black { background: var(--bg-card2) !important; }
.bg-secondary { background: var(--bg-card2) !important; color: var(--text) !important; }
.bg-transparent { background: transparent !important; }

.text-white,
.text-white-50,
.text-light { color: var(--text) !important; }

.border-secondary,
.border-dark,
.border-light { border-color: var(--border) !important; }

[data-bs-theme="light"] .btn-close { filter: none; }
[data-bs-theme="dark"]  .btn-close { filter: invert(1) grayscale(100%) brightness(2); }

/* Responsive hero */
@media (max-width: 768px) {
    .hero { padding: 100px 0 60px; min-height: unset; }
    .hero-title { font-size: 2.8rem; }
    .phone-wrap { margin-top: 2.5rem; }
}
