:root {
    --brand: #9b1c47;
    --brand-dark: #6d1232;
    --brand-light: #fbe9ef;
    --brand-rgb: 155, 28, 71;
    --accent: #d4a24c;
    --accent-light: #fbf1de;
    --bg-cream: #fdf8f6;
    --surface: #ffffff;
    --text-dark: #2a1d22;
    --text-muted: #85747a;
    --border-soft: rgba(42, 29, 34, 0.08);
    --radius: 16px;
    --shadow-sm: 0 1px 2px rgba(42, 29, 34, 0.04), 0 4px 16px rgba(42, 29, 34, 0.06);
    --shadow-lg: 0 4px 10px rgba(42, 29, 34, 0.06), 0 18px 40px rgba(42, 29, 34, 0.12);
    --gradient-brand: linear-gradient(135deg, #b8245a 0%, #9b1c47 45%, #6d1232 100%);
}

body {
    font-family: 'Inter', -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-cream);
    background-image:
        radial-gradient(circle at 0% 0%, rgba(var(--brand-rgb), 0.06) 0, transparent 40%),
        radial-gradient(circle at 100% 20%, rgba(212, 162, 76, 0.08) 0, transparent 35%);
    background-attachment: fixed;
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main.site-main {
    flex: 1 0 auto;
}

h1, h2, h3, h4, h5, .navbar-brand {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    letter-spacing: -0.01em;
}
h6 {
    font-weight: 600;
}
.text-muted {
    color: var(--text-muted) !important;
}

a {
    color: var(--brand);
    text-decoration: none;
}
a:hover {
    color: var(--brand-dark);
}

::selection {
    background: rgba(var(--brand-rgb), 0.18);
}

/* ---- Brand color overrides (keeps existing btn-danger/bg-danger/text-danger markup) ---- */
.btn-danger {
    --bs-btn-bg: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-bg: var(--brand-dark);
    --bs-btn-hover-border-color: var(--brand-dark);
    --bs-btn-active-bg: var(--brand-dark);
    --bs-btn-active-border-color: var(--brand-dark);
    --bs-btn-disabled-bg: var(--brand);
    --bs-btn-disabled-border-color: var(--brand);
    --bs-btn-focus-shadow-rgb: var(--brand-rgb);
    background-image: var(--gradient-brand);
    border: none;
    box-shadow: 0 4px 14px rgba(var(--brand-rgb), 0.28);
}
.btn-danger:hover {
    box-shadow: 0 6px 20px rgba(var(--brand-rgb), 0.38);
    transform: translateY(-1px);
}
.btn-outline-danger {
    --bs-btn-color: var(--brand);
    --bs-btn-border-color: rgba(var(--brand-rgb), 0.45);
    --bs-btn-hover-bg: var(--brand);
    --bs-btn-hover-border-color: var(--brand);
    --bs-btn-active-bg: var(--brand);
    --bs-btn-active-border-color: var(--brand);
    --bs-btn-focus-shadow-rgb: var(--brand-rgb);
}
.btn-success {
    --bs-btn-bg: #1faa59;
    --bs-btn-border-color: #1faa59;
    --bs-btn-hover-bg: #178a48;
    --bs-btn-hover-border-color: #178a48;
    box-shadow: 0 4px 14px rgba(31, 170, 89, 0.25);
}
.bg-danger {
    background-color: var(--brand) !important;
}
.text-danger {
    color: var(--brand) !important;
}
.border-danger {
    border-color: var(--brand) !important;
}
.badge {
    font-weight: 600;
    border-radius: 999px;
    padding: 0.4em 0.75em;
}
.badge.bg-danger {
    background-color: var(--brand) !important;
}

/* ---- Alerts ---- */
.alert {
    border: none;
    border-radius: 12px;
    border-left: 4px solid currentColor;
    box-shadow: var(--shadow-sm);
}
.alert-success {
    --bs-alert-color: #1e5631;
    --bs-alert-bg: #eaf7ef;
}
.alert-danger {
    --bs-alert-color: #8a1c2e;
    --bs-alert-bg: #fdecef;
}
.alert-info {
    --bs-alert-color: #6d4a12;
    --bs-alert-bg: var(--accent-light);
}
.alert-warning {
    --bs-alert-color: #7a5410;
    --bs-alert-bg: #fff6df;
}

/* ---- Forms ---- */
.form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #5a4a50;
    margin-bottom: 0.35rem;
}
.form-control, .form-select {
    border-radius: 10px;
    border-color: #e6dadd;
    padding: 0.6rem 0.9rem;
    background-color: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-control::placeholder {
    color: #b9aaaf;
}
.form-control:focus, .form-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 0.25rem rgba(var(--brand-rgb), 0.12);
}
.form-check-input:checked {
    background-color: var(--brand);
    border-color: var(--brand);
}
.input-group > .form-control:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

/* ---- Pagination & tabs ---- */
.pagination {
    gap: 0.35rem;
}
.page-link {
    color: var(--brand);
    border: none;
    border-radius: 10px !important;
    min-width: 2.4rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.page-link:hover {
    color: var(--brand-dark);
    background: var(--brand-light);
}
.page-item.active .page-link {
    background: var(--gradient-brand);
    color: #fff;
}

.nav-tabs {
    border-bottom: 1px solid var(--border-soft);
    gap: 0.25rem;
}
.nav-tabs .nav-link {
    color: var(--text-muted);
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 500;
}
.nav-tabs .nav-link:hover {
    color: var(--brand);
    border-color: transparent;
}
.nav-tabs .nav-link.active {
    color: var(--brand);
    background: transparent;
    border-bottom-color: var(--brand);
    font-weight: 600;
}
.nav-pills .nav-link.active {
    background: var(--gradient-brand);
}

/* ---- Navbar ---- */
.site-nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border-soft);
    padding: 0.7rem 0;
}
.site-nav .navbar-brand {
    font-size: 1.5rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: var(--gradient-brand);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(var(--brand-rgb), 0.35);
}
.brand-accent {
    color: var(--brand);
}
.site-nav .nav-link {
    color: #5a4a50;
    font-weight: 500;
    font-size: 0.93rem;
    padding: 0.5rem 0.85rem !important;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.site-nav .nav-link:hover {
    color: var(--brand);
    background: var(--brand-light);
}
.site-nav .nav-link.active {
    color: var(--brand);
    background: var(--brand-light);
    font-weight: 600;
}
.site-nav .nav-link .badge {
    font-size: 0.68rem;
    padding: 0.3em 0.55em;
}
.site-nav .navbar-toggler {
    border: none;
    padding: 0.4rem 0.6rem;
    border-radius: 10px;
    background: var(--brand-light);
}
.site-nav .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(var(--brand-rgb), 0.2);
}
.nav-pill-btn {
    border-radius: 999px !important;
    padding: 0.5rem 1.25rem !important;
}

/* Admin navbar keeps the dark look */
.navbar.bg-dark {
    background: linear-gradient(135deg, #2a1d22 0%, #1a1114 100%) !important;
}
.navbar.bg-dark .btn-sm {
    border-radius: 999px;
}

/* ---- Cards & buttons ---- */
.card {
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    background: var(--surface);
}
.card.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}
.card-img-top {
    border-top-left-radius: calc(var(--radius) - 1px);
    border-top-right-radius: calc(var(--radius) - 1px);
}
.card h6.mb-3, .card-title-sm {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 700;
}
.btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 0.55rem 1.1rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.btn-sm {
    padding: 0.35rem 0.8rem;
    border-radius: 8px;
}
.btn-lg {
    border-radius: 12px;
    padding: 0.85rem 1.9rem;
}
.btn-light {
    box-shadow: var(--shadow-sm);
}

/* Auth pages (login, register, OTP, reset): card with brand strip on top */
.row.justify-content-center > [class*="col-"] > .card.shadow-sm:only-child {
    border: none;
    box-shadow: var(--shadow-lg) !important;
    overflow: hidden;
    position: relative;
}
.row.justify-content-center > [class*="col-md-"] > .card.shadow-sm:only-child::before {
    content: "";
    display: block;
    height: 5px;
    background: linear-gradient(90deg, var(--brand) 0%, var(--accent) 100%);
}

/* Tables */
.table {
    --bs-table-bg: transparent;
    margin-bottom: 0;
}
.table thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    font-weight: 700;
    border-bottom-width: 1px;
}
.table td {
    vertical-align: middle;
    border-color: var(--border-soft);
}

.list-group-item {
    border-color: var(--border-soft);
}

/* ---- Profile cards (listing) ---- */
.profile-card {
    overflow: hidden;
    border: none;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.profile-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.profile-card .photo-wrap {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--brand-light);
}
.profile-card .photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.profile-card:hover .photo-wrap img {
    transform: scale(1.05);
}
.profile-card .photo-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(26, 12, 18, 0.75) 100%);
    pointer-events: none;
}
.profile-card .photo-caption {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0.85rem;
    color: #fff;
    z-index: 1;
}
.profile-card .photo-caption h5 {
    color: #fff;
    margin: 0;
    font-size: 1.3rem;
}
.profile-card .photo-caption small {
    opacity: 0.9;
}
/* Presence: "Online now" / "Active 3h ago" (Browse cards, profile page). */
.presence-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    vertical-align: middle;
}
.presence-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.3rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(26, 12, 18, 0.55);
    backdrop-filter: blur(6px);
    color: #fff;
}
.presence-chip.online .presence-dot {
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.3);
    animation: presence-pulse 2s ease-in-out infinite;
}
.presence-chip.recent .presence-dot,
.presence-chip.away .presence-dot {
    background: #facc15;
}
.presence-chip.away .presence-dot {
    background: #9ca3af;
}
.presence-line {
    background: var(--brand-light);
    color: inherit;
    backdrop-filter: none;
}
@keyframes presence-pulse {
    50% { box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.1); }
}
@media (prefers-reduced-motion: reduce) {
    .presence-chip.online .presence-dot { animation: none; }
}
.avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-brand);
    color: rgba(255, 255, 255, 0.92);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 4rem;
    font-weight: 700;
}
.member-id-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 1;
    background: rgba(26, 12, 18, 0.55);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
}
.find-id-form {
    max-width: 260px;
}
/* Partner preferences: checkbox chips */
.pref-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.pref-chip {
    border: 1px solid #e6dadd;
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-size: 0.85rem;
    cursor: pointer;
    background: #fff;
    user-select: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.pref-chip:hover {
    border-color: var(--brand);
}
.btn-check:checked + .pref-chip {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}
.btn-check:focus-visible + .pref-chip {
    box-shadow: 0 0 0 0.2rem rgba(var(--brand-rgb), 0.25);
}
.match-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 1;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: #fff;
    color: var(--brand);
    box-shadow: var(--shadow-sm);
}
.horoscope-chart-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 0.9rem 0.4rem 0.4rem;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    text-decoration: none;
    color: var(--brand);
    font-weight: 600;
    font-size: 0.9rem;
}
.horoscope-chart-link:hover {
    background: var(--brand-light);
}
.horoscope-chart-link img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
}

/* Who viewed my profile */
.person-row.is-new {
    background: linear-gradient(90deg, var(--brand-light) 0%, transparent 70%);
    box-shadow: inset 3px 0 0 var(--brand);
}
.person-row .shortlist-form {
    margin: 0;
}
.person-row .shortlist-btn {
    width: 34px;
    height: 34px;
    font-size: 1rem;
    box-shadow: 0 0 0 1px var(--border-soft);
}

/* Shortlist heart: top-right of a profile card's photo; the match badge moves left to make room. */
.profile-card .shortlist-form {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    z-index: 2;
    margin: 0;
}
.profile-card .match-badge {
    right: 3.3rem;
    top: 0.95rem;
}
.shortlist-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
    color: var(--brand, #9b1c47);
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(26, 12, 18, 0.25);
    transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.shortlist-btn:hover {
    transform: scale(1.1);
}
.shortlist-btn.is-saved {
    background: var(--brand, #9b1c47);
    color: #fff;
    /* white ring so it stands out on the brand-coloured "no photo" cards too */
    box-shadow: 0 0 0 2px #fff, 0 2px 8px rgba(26, 12, 18, 0.3);
}
.shortlist-btn-wide.is-saved {
    background: var(--brand-light, #fbeef2);
}
.shortlist-btn:disabled,
.shortlist-btn-wide:disabled {
    opacity: 0.7;
}
.match-badge.high {
    background: #1faa59;
    color: #fff;
}
.match-meter {
    height: 8px;
    border-radius: 999px;
    background: #f2e6ea;
    overflow: hidden;
}
.match-meter > span {
    display: block;
    height: 100%;
    background: var(--gradient-brand);
}
.meta-chip.miss {
    background: #f6f2f3;
    color: #a0939a;
    text-decoration: line-through;
}
.meta-chip.miss i {
    color: #a0939a;
}
.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    color: #5a4a50;
    background: #f6eff1;
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
    margin: 0 0.25rem 0.35rem 0;
}
.meta-chip i {
    color: var(--brand);
}

/* Generic hover lift for other h-100 cards */
.card.h-100.shadow-sm {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card.h-100.shadow-sm:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg) !important;
}

/* ---- Avatars ---- */
.avatar {
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    display: inline-block;
}
.avatar-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-brand);
    color: #fff;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1;
}

/* ---- Profile page ---- */
.profile-side {
    overflow: hidden;
    top: 96px;
    z-index: 1;
}
.profile-photo {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--brand-light);
}
.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.profile-photo .avatar-fallback {
    font-size: 6rem;
}
.profile-bio {
    font-size: 1.02rem;
    line-height: 1.7;
    color: #4a3a40;
}
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 1rem 1.5rem;
}
.detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.detail-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--brand-light);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.detail-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}
.detail-value {
    font-weight: 600;
    color: var(--text-dark);
}

.safety-actions {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-soft);
}
.safety-actions .btn-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    box-shadow: none;
}
.safety-actions .btn-link:hover {
    color: var(--brand);
}
.modal-content {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.report-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-soft);
}
.report-actions .form-control {
    flex: 1 1 240px;
}

/* ---- Interest list ---- */
.person-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 1.25rem;
}
.person-row + .person-row {
    border-top: 1px solid var(--border-soft);
}
.person-row .person-name {
    font-weight: 600;
    color: var(--text-dark);
}
.person-row .person-name:hover {
    color: var(--brand);
}
.status-pill {
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.status-pending { background: #fff4dc; color: #8a5d0b; }
.status-accepted { background: #e6f6ec; color: #1f8a4c; }
.status-declined { background: #f1edee; color: #7a6a70; }
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}
.empty-state i {
    font-size: 2.5rem;
    color: rgba(var(--brand-rgb), 0.35);
    display: block;
    margin-bottom: 0.75rem;
}

/* ---- Photos hidden from non-matches ---- */
.photo-locked {
    width: 100%;
    height: 100%;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.92);
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.18) 0, transparent 45%),
        linear-gradient(135deg, #6d5560 0%, #3d2a32 100%);
    font-size: 0.85rem;
}
.photo-locked .bi {
    font-size: 2.2rem;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
}
.profile-card .photo-locked span {
    /* the card caption already shows the name at the bottom */
    margin-bottom: 3rem;
}
.avatar-locked {
    background: linear-gradient(135deg, #6d5560 0%, #3d2a32 100%);
}
.privacy-option {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    border: 1px solid #e6dadd;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    cursor: pointer;
    height: 100%;
    margin: 0;
}
.privacy-option:has(input:checked) {
    border-color: var(--brand);
    background: var(--brand-light);
}

/* ---- Page header ---- */
.page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.page-head h2 {
    margin: 0;
}
.page-head p {
    margin: 0.25rem 0 0;
    color: var(--text-muted);
}
.eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.4rem;
}

/* ---- Hero (landing page) ---- */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--gradient-brand);
    color: #fff;
    border-radius: 28px;
    padding: 4.5rem 3rem;
    box-shadow: var(--shadow-lg);
}
.hero::before, .hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.hero::before {
    width: 420px;
    height: 420px;
    right: -120px;
    top: -140px;
    background: radial-gradient(circle, rgba(212, 162, 76, 0.45) 0%, transparent 70%);
}
.hero::after {
    width: 320px;
    height: 320px;
    left: -100px;
    bottom: -160px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.16) 0%, transparent 70%);
}
.hero > * {
    position: relative;
    z-index: 1;
}
.hero h1 {
    color: #fff;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.1;
}
.hero h1 em {
    font-style: italic;
    color: #f5d48f;
}
.hero .lead {
    opacity: 0.92;
    max-width: 540px;
}
.hero .btn-light {
    color: var(--brand);
}
.hero .btn-outline-light:hover {
    color: var(--brand);
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}
.hero-visual {
    position: relative;
    height: 340px;
}
.hero-visual .float-card {
    position: absolute;
    background: #fff;
    color: var(--text-dark);
    border-radius: 18px;
    padding: 0.9rem 1rem;
    box-shadow: 0 20px 40px rgba(26, 12, 18, 0.3);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 240px;
    animation: floaty 6s ease-in-out infinite;
}
.hero-visual .float-card:nth-child(1) { top: 10px; right: 30px; }
.hero-visual .float-card:nth-child(2) { top: 130px; left: 0; animation-delay: -2s; }
.hero-visual .float-card:nth-child(3) { bottom: 10px; right: 0; animation-delay: -4s; }
.float-card .fc-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}
.float-card .fc-title {
    font-weight: 600;
    font-size: 0.95rem;
}
.float-card .fc-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
}
@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.stat-strip {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
    margin-top: 2.25rem;
}
.stat-strip strong {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.8rem;
    line-height: 1;
}
.stat-strip span {
    font-size: 0.82rem;
    opacity: 0.8;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: var(--brand-light);
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1rem;
}
.step-num {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-light);
    color: #a87622;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}
.cta-band {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: 24px;
    padding: 3rem 2rem;
    box-shadow: var(--shadow-sm);
    text-align: center;
    background-image: radial-gradient(circle at 100% 0%, rgba(212, 162, 76, 0.12) 0, transparent 40%),
        radial-gradient(circle at 0% 100%, rgba(var(--brand-rgb), 0.08) 0, transparent 40%);
}

/* ---- Dashboard ---- */
.welcome-banner {
    position: relative;
    overflow: hidden;
    background: var(--gradient-brand);
    color: #fff;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}
.welcome-banner::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    right: -80px;
    top: -120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 162, 76, 0.45) 0%, transparent 70%);
}
.welcome-banner > * {
    position: relative;
    z-index: 1;
}
.welcome-banner h2 {
    color: #fff;
}
.welcome-banner .avatar-lg {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    flex-shrink: 0;
}
.points-pill {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    padding: 0.9rem 1.25rem;
    text-align: center;
    min-width: 130px;
}
.points-pill strong {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    line-height: 1;
}
.points-pill span {
    font-size: 0.8rem;
    opacity: 0.85;
}
.action-tile {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 1.25rem;
    color: var(--text-dark);
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.action-tile:hover {
    color: var(--text-dark);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.action-tile .tile-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.action-tile .tile-title {
    font-weight: 600;
}
.action-tile .tile-sub {
    font-size: 0.82rem;
    color: var(--text-muted);
}
.tile-rose { background: var(--brand-light); color: var(--brand); }
.tile-gold { background: var(--accent-light); color: #a87622; }
.tile-green { background: #e6f6ec; color: #1f8a4c; }
.tile-blue { background: #e8f0fd; color: #2f5fc4; }

/* Profile completeness */
.completeness-ring {
    --pct: 0;
    width: 150px;
    height: 150px;
    margin: 0 auto;
    border-radius: 50%;
    background: conic-gradient(var(--brand) calc(var(--pct) * 1%), #f2e6ea 0);
    display: flex;
    align-items: center;
    justify-content: center;
}
.completeness-ring > div {
    width: 118px;
    height: 118px;
    border-radius: 50%;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px var(--border-soft);
}
.completeness-ring strong {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.1rem;
    line-height: 1;
    color: var(--brand);
}
.completeness-ring span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.3rem;
}
.completeness-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.completeness-list a {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
    color: var(--text-dark);
    transition: background-color 0.15s ease;
}
.completeness-list a:hover {
    background: var(--brand-light);
    color: var(--text-dark);
}
.todo-check {
    color: var(--brand);
    font-size: 1.1rem;
}
.todo-points {
    font-size: 0.8rem;
    font-weight: 700;
    color: #a87622;
    background: var(--accent-light);
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
    white-space: nowrap;
}
#gallery, #details, #about, #caste, #privacy {
    scroll-margin-top: 100px;
}

/* Points balance */
.points-hero {
    background: var(--gradient-brand) !important;
    color: #fff;
    border: none !important;
}
.points-hero h1, .points-hero .text-danger {
    color: #fff !important;
    font-size: 3.5rem;
}
.points-hero .text-muted {
    color: rgba(255, 255, 255, 0.82) !important;
}

/* ---- Messaging ---- */
.conversation-list .list-group-item {
    border-left: none;
    border-right: none;
    padding: 0.95rem 1.1rem;
    transition: background-color 0.15s ease;
}
.conversation-list .list-group-item:first-child { border-top: none; }
.conversation-list .list-group-item:hover {
    background-color: var(--brand-light);
}
.conversation-list .avatar-wrap img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px rgba(var(--brand-rgb), 0.15);
}
.conversation-list .last-msg {
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-window {
    background: #f8eef1;
    background-image: radial-gradient(rgba(var(--brand-rgb), 0.06) 1px, transparent 1px);
    background-size: 18px 18px;
}
.chat-header img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 50%;
}
.chat-day-divider {
    text-align: center;
    margin: 1rem 0;
}
.chat-day-divider span {
    background: rgba(255, 255, 255, 0.85);
    color: #6c5a60;
    font-size: 0.75rem;
    padding: 0.25rem 0.8rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}
.chat-bubble {
    max-width: 68%;
    padding: 0.6rem 0.9rem;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.4;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.chat-bubble.mine {
    background: var(--gradient-brand);
    color: #fff;
    border-bottom-right-radius: 5px;
}
.chat-bubble.theirs {
    background: #fff;
    color: var(--text-dark);
    border-bottom-left-radius: 5px;
}
.chat-bubble img {
    max-width: 100%;
    max-height: 240px;
    border-radius: 12px;
    display: block;
}
.chat-bubble .msg-time {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 0.2rem;
    text-align: right;
}
.chat-composer {
    background: #fff;
    border-top: 1px solid var(--border-soft);
}
.chat-composer textarea {
    resize: none;
    border-radius: 22px;
}
.chat-attach-btn {
    width: 42px;
    height: 42px;
    border-radius: 50% !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
}
.chat-send-btn {
    width: 42px;
    height: 42px;
    border-radius: 50% !important;
    flex-shrink: 0;
    padding: 0;
}

/* ---- Chat dock (Facebook-style, assets/js/chat-dock.js) ---- */
.chat-dock {
    position: fixed;
    right: 16px;
    bottom: 0;
    z-index: 1040;
    display: flex;
    align-items: flex-end;
    gap: 12px;
    pointer-events: none;
}
.chat-dock > * {
    pointer-events: auto;
}
body.has-chat-dock .site-footer {
    padding-bottom: 4.5rem;
}
.cd-windows {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}
.cd-panel, .cd-window {
    background: var(--surface);
    border-radius: 14px 14px 0 0;
    box-shadow: 0 -2px 6px rgba(42, 29, 34, 0.06), 0 12px 40px rgba(42, 29, 34, 0.22);
    border: 1px solid var(--border-soft);
    border-bottom: none;
    overflow: hidden;
}
.cd-panel {
    width: 300px;
}
.cd-panel-head {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.8rem 1rem;
    border: none;
    background: var(--gradient-brand);
    color: #fff;
    font-weight: 600;
    text-align: left;
}
.cd-panel-head .cd-title {
    flex: 1;
}
.cd-panel-head .cd-caret {
    transition: transform 0.2s ease;
}
.cd-panel.open .cd-caret {
    transform: rotate(180deg);
}
.cd-panel.pulse .cd-panel-head {
    animation: cd-pulse 0.6s ease 2;
}
@keyframes cd-pulse {
    50% { filter: brightness(1.25); }
}
.cd-panel-body {
    display: none;
    flex-direction: column;
    height: min(440px, calc(100vh - 140px));
}
.cd-panel.open .cd-panel-body {
    display: flex;
}
.cd-search {
    margin: 0.75rem 0.75rem 0.35rem;
    width: auto;
    border-radius: 999px;
    background: #f6eff1;
    border-color: transparent;
}
.cd-contacts {
    flex: 1;
    overflow-y: auto;
    padding: 0.25rem 0.4rem;
}
.cd-contact {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0.6rem;
    border: none;
    background: transparent;
    border-radius: 12px;
    text-align: left;
    color: var(--text-dark);
}
.cd-contact:hover {
    background: var(--brand-light);
}
.cd-contact-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.cd-contact-top {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}
.cd-name {
    font-weight: 600;
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cd-when {
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
}
.cd-preview {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cd-contact.unread .cd-name,
.cd-contact.unread .cd-preview {
    color: var(--text-dark);
    font-weight: 700;
}
.cd-badge {
    background: #e0245e;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 999px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.cd-panel-head .cd-badge {
    background: #fff;
    color: var(--brand);
}
.cd-panel-foot {
    display: block;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.65rem;
    border-top: 1px solid var(--border-soft);
}
.cd-empty {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 2rem 1rem;
}
.cd-empty .bi {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
    color: rgba(var(--brand-rgb), 0.35);
}

.cd-avatar {
    position: relative;
    flex-shrink: 0;
    display: inline-block;
}
.cd-avatar img, .cd-avatar .cd-initial {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
.cd-avatar .cd-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-brand);
    color: #fff;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
}
.cd-dot {
    display: none;
}
.cd-dot.on {
    display: block;
    position: absolute;
    right: 0;
    bottom: 0;
    width: 30%;
    height: 30%;
    min-width: 10px;
    min-height: 10px;
    background: #31c46c;
    border: 2px solid #fff;
    border-radius: 50%;
}

.cd-window {
    width: 328px;
    height: min(460px, calc(100vh - 90px));
    display: flex;
    flex-direction: column;
}
.cd-window.minimized {
    height: auto;
    width: 240px;
}
.cd-window.minimized > :not(.cd-win-head) {
    display: none !important;
}
.cd-window.has-unread .cd-win-head {
    background: var(--brand-light);
}
.cd-win-head {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.5rem 0.5rem 0.7rem;
    border-bottom: 1px solid var(--border-soft);
    cursor: pointer;
    flex-shrink: 0;
}
.cd-win-who {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--text-dark);
}
.cd-win-who:hover {
    color: var(--text-dark);
}
.cd-win-names {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.2;
}
.cd-win-name {
    font-weight: 600;
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cd-win-status {
    font-size: 0.72rem;
    color: #1f8a4c;
}
.cd-icon-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    flex-shrink: 0;
    cursor: pointer;
    margin: 0;
}
.cd-icon-btn:hover {
    background: var(--brand-light);
}
.cd-messages {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
    background: #fbf6f7;
}
.cd-loading, .cd-hello {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 2rem 0.5rem;
}
.cd-hello .cd-avatar {
    margin: 0 auto;
}
.cd-day {
    text-align: center;
    margin: 0.6rem 0;
}
.cd-day span {
    font-size: 0.7rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.9);
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
}
.cd-row {
    display: flex;
    margin-bottom: 0.35rem;
}
.cd-row.mine {
    justify-content: flex-end;
}
.cd-bubble {
    max-width: 78%;
    padding: 0.45rem 0.75rem;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.35;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}
.cd-row.mine .cd-bubble {
    background: var(--gradient-brand);
    color: #fff;
    border-bottom-right-radius: 5px;
}
.cd-row.theirs .cd-bubble {
    background: #fff;
    color: var(--text-dark);
    border-bottom-left-radius: 5px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.cd-text {
    white-space: pre-wrap;
}
.cd-bubble img {
    max-width: 100%;
    max-height: 180px;
    border-radius: 12px;
    display: block;
    margin-bottom: 0.25rem;
}
.cd-time {
    font-size: 0.65rem;
    opacity: 0.65;
    text-align: right;
    margin-top: 0.1rem;
}
.cd-composer {
    display: flex;
    align-items: flex-end;
    gap: 0.25rem;
    padding: 0.5rem;
    border-top: 1px solid var(--border-soft);
    flex-shrink: 0;
}
.cd-input {
    flex: 1;
    resize: none;
    border: none;
    background: #f3ebee;
    border-radius: 18px;
    padding: 0.45rem 0.85rem;
    font-size: 0.9rem;
    max-height: 96px;
    outline: none;
}
.cd-input:focus {
    box-shadow: 0 0 0 2px rgba(var(--brand-rgb), 0.2);
}
.cd-window.sending .cd-send {
    opacity: 0.4;
    pointer-events: none;
}
/* ---- Chat gifts (dock + messages page) ---- */
.cd-gift-btn.active,
.chat-gift-btn.active {
    color: var(--brand);
    background: var(--brand-light);
}
.cd-gift-tray {
    border-top: 1px solid var(--border-soft);
    padding: 0.5rem 0.6rem 0.4rem;
    background: #fffafb;
    flex-shrink: 0;
}
.cd-gift-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.8rem;
    margin-bottom: 0.35rem;
}
.cd-gift-balance {
    color: var(--text-muted);
    font-size: 0.72rem;
}
.cd-gift-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.3rem;
}
.cd-gift-option {
    border: 1px solid var(--border-soft);
    background: #fff;
    border-radius: 10px;
    padding: 0.3rem 0.1rem 0.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
    transition: transform 0.12s ease, border-color 0.12s ease;
}
.cd-gift-option:hover:not(:disabled) {
    transform: translateY(-2px);
    border-color: var(--brand);
}
.cd-gift-option:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.cd-gift-emoji {
    font-size: 1.5rem;
}
.cd-gift-name {
    font-size: 0.66rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
    white-space: nowrap;
}
.cd-gift-empty {
    font-size: 0.78rem;
    color: #b02a37;
    margin-top: 0.4rem;
}
/* A gift message: big emoji on a soft card instead of a normal bubble, for both sides. */
.cd-row .cd-bubble.cd-gift,
.chat-bubble.chat-gift {
    background: linear-gradient(135deg, #fff5f8 0%, #fdeedd 100%);
    color: var(--text-dark);
    border: 1px solid #f3d6df;
    text-align: center;
    box-shadow: 0 2px 10px rgba(var(--brand-rgb), 0.12);
}
.cd-gift-big {
    font-size: 2.6rem;
    line-height: 1.15;
    animation: gift-pop 0.45s ease-out;
}
.chat-gift .cd-gift-big {
    font-size: 3.2rem;
}
.cd-gift-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--brand);
}
@keyframes gift-pop {
    0% { transform: scale(0.3); opacity: 0; }
    70% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(1); }
}
.chat-gift-tray .cd-gift-grid {
    grid-template-columns: repeat(8, 1fr);
}
@media (max-width: 575.98px) {
    .chat-gift-tray .cd-gift-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.cd-chip, .cd-error {
    font-size: 0.78rem;
    padding: 0.35rem 0.75rem 0;
}
.cd-error {
    color: #b02a37;
}

@media (max-width: 767.98px) {
    .chat-dock {
        right: 12px;
        left: auto;
    }
    .cd-windows {
        display: none;
    }
    .cd-panel {
        width: calc(100vw - 24px);
        max-width: 360px;
    }
}

/* ---- Photo lightbox (assets/js/lightbox.js) ---- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(15, 8, 11, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 3.5rem 4.5rem;
}
.lightbox.open {
    display: flex;
    animation: lb-fade 0.18s ease;
}
@keyframes lb-fade {
    from { opacity: 0; }
}
body.lightbox-open {
    overflow: hidden;
}
.lb-img {
    /* Fill the viewer (small photos are scaled up too) while keeping the photo's shape. */
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
    opacity: 0;
    transform: scale(0.97);
    transition: opacity 0.2s ease, transform 0.2s ease;
    user-select: none;
}
.lb-img.loaded {
    opacity: 1;
    transform: none;
}
.lb-btn {
    position: absolute;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease;
}
.lb-btn:hover, .lb-btn:focus-visible {
    background: rgba(255, 255, 255, 0.25);
    outline: none;
}
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lb-counter {
    position: absolute;
    bottom: 1.1rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.8rem;
    border-radius: 999px;
}
.lightbox [hidden] {
    display: none !important;
}
a[data-lightbox] {
    cursor: zoom-in;
}
@media (max-width: 575.98px) {
    .lightbox { padding: 3.5rem 0.5rem; }
    .lb-prev, .lb-next { top: auto; bottom: 0.75rem; transform: none; }
    .lb-prev { left: 1rem; }
    .lb-next { right: 1rem; }
}

/* ---- Footer ---- */
.site-footer {
    flex-shrink: 0;
    background: #1f1418;
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
    font-size: 0.9rem;
}
.site-footer .footer-brand {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.4rem;
    color: #fff;
    font-weight: 700;
}
.site-footer h6 {
    color: #fff;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.9rem;
}
.site-footer a {
    color: rgba(255, 255, 255, 0.7);
}
.site-footer a:hover {
    color: #f5d48f;
}
.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.site-footer li {
    margin-bottom: 0.45rem;
}
.site-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    padding-top: 1.25rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ---- OTP & steps ---- */
.otp-input {
    width: 3rem;
    height: 3.5rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    border-radius: 12px;
}

.step-indicator span {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    line-height: 2rem;
    border-radius: 50%;
    text-align: center;
    background: #f0e6e9;
    color: var(--text-muted);
    margin-right: 0.3rem;
    font-size: 0.85rem;
    font-weight: 600;
}
.step-indicator span.active {
    background: var(--gradient-brand);
    color: #fff;
    box-shadow: 0 4px 10px rgba(var(--brand-rgb), 0.3);
}
.step-indicator span.done {
    background: #1faa59;
    color: #fff;
}

/* ---- Small screens ---- */
/* Members' menu has more links, so it collapses below 1200px (xl); the logged-out menu below 992px (lg). */
@media (max-width: 1199.98px) {
    .site-nav.navbar-expand-xl .navbar-collapse {
        background: #fff;
        border-radius: 16px;
        padding: 0.75rem;
        margin-top: 0.75rem;
        box-shadow: var(--shadow-lg);
    }
}
@media (max-width: 991.98px) {
    .site-nav .navbar-collapse {
        background: #fff;
        border-radius: 16px;
        padding: 0.75rem;
        margin-top: 0.75rem;
        box-shadow: var(--shadow-lg);
    }
}
@media (max-width: 767.98px) {
    .hero {
        padding: 3rem 1.5rem;
        border-radius: 20px;
    }
    .welcome-banner {
        padding: 1.5rem;
    }
    .chat-bubble {
        max-width: 85%;
    }
}

/* Live notification pop-ups (assets/js/notify.js). Bottom-left, clear of the chat dock. */
.view-notify {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 320px;
    max-width: calc(100vw - 32px);
    pointer-events: none;
}
.view-toast {
    position: relative;
    pointer-events: auto;
    background: #fff;
    border-radius: 14px;
    border-left: 4px solid var(--brand);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
    padding: 12px 36px 10px 12px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.view-toast.is-shown {
    opacity: 1;
    transform: none;
}
.view-toast-body {
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}
.view-toast-close {
    position: absolute;
    top: 6px;
    right: 6px;
    border: 0;
    background: none;
    color: #6c757d;
    padding: 4px 6px;
    line-height: 1;
}
.view-toast-close:hover {
    color: var(--brand);
}
.view-toast-all {
    display: block;
    text-align: right;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--brand);
    text-decoration: none;
    margin-top: 4px;
}
@media (max-width: 575.98px) {
    .view-notify {
        top: 72px;
        bottom: auto;
    }
}

/* Site logo (assets/img/logo.png, transparent PNG with dark artwork). */
.site-nav .navbar-brand {
    padding: 0;
}
.brand-logo {
    height: 62px;
    width: auto;
    display: block;
}
.footer-logo {
    height: 72px;
    width: auto;
    display: inline-block;
    background: #fff8ef; /* light card so the dark artwork shows on the dark footer */
    border-radius: 14px;
    padding: 6px 12px;
}
@media (max-width: 575.98px) {
    .brand-logo {
        height: 50px;
    }
}

/* ---- Notification bell (includes/header.php, assets/js/notify.js) ---- */
.nav-bell-btn {
    position: relative;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: var(--brand-light);
    color: var(--brand);
    font-size: 1.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease;
}
.nav-bell-btn:hover,
.nav-bell.show .nav-bell-btn {
    background: rgba(var(--brand-rgb), 0.18);
}
.nav-bell-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    background: #dc3545;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    border: 2px solid #fff;
    box-sizing: content-box;
}
.nav-bell-menu {
    width: 360px;
    max-width: calc(100vw - 24px);
    padding: 0;
    border: 0;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
    overflow: hidden;
}
.nav-bell-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-soft);
}
.nav-bell-head .btn-link {
    color: var(--brand);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.82rem;
}
.nav-bell-list {
    max-height: min(420px, 60vh);
    overflow-y: auto;
}
.nav-bell-empty {
    padding: 32px 16px;
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
}
.nav-bell-empty .bi {
    font-size: 1.8rem;
    color: rgba(var(--brand-rgb), 0.35);
}
.nav-bell-foot {
    display: block;
    text-align: center;
    padding: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--brand);
    text-decoration: none;
    border-top: 1px solid var(--border-soft);
}
.nav-bell-foot:hover {
    background: var(--brand-light);
}

/* One notification row: used in the bell, on notifications.php and in pop-ups. */
.notif-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: inherit;
    text-decoration: none;
    position: relative;
}
.notif-item + .notif-item {
    border-top: 1px solid var(--border-soft);
}
.notif-item:hover {
    background: #faf6f7;
    color: inherit;
}
.notif-item.is-unread {
    background: var(--brand-light);
}
.notif-item.is-unread:hover {
    background: rgba(var(--brand-rgb), 0.12);
}
.notif-avatar {
    position: relative;
    flex-shrink: 0;
    display: inline-flex;
}
.notif-type {
    position: absolute;
    right: -4px;
    bottom: -4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #fff;
    color: #fff;
    font-size: 0.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.notif-type-view { background: #6f42c1; }
.notif-type-interest { background: var(--brand); }
.notif-type-accepted { background: #198754; }
.notif-type-message { background: #0d6efd; }
.notif-type-shortlist { background: #d68a00; }
.notif-text {
    flex: 1;
    min-width: 0;
    font-size: 0.9rem;
    line-height: 1.35;
}
.notif-text strong {
    color: var(--text-dark);
}
.notif-when {
    display: block;
    font-size: 0.78rem;
    color: #6c757d;
    margin-top: 2px;
}
.notif-item.is-unread .notif-when {
    color: var(--brand);
    font-weight: 600;
}
.notif-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--brand);
    flex-shrink: 0;
}
.notif-page .notif-item {
    padding: 14px 20px;
}
.view-toast-body .notif-text strong {
    color: var(--brand);
}
@media (max-width: 575.98px) {
    /* Bootstrap doesn't reposition dropdowns inside a navbar, and the bell isn't at the
       right edge (the menu toggler is), so pin the panel full-width under the navbar.
       The navbar's backdrop-filter makes it the containing block for position: fixed. */
    .nav-bell-menu[data-bs-popper] {
        position: fixed;
        top: 100%;
        left: 12px;
        right: 12px;
        width: auto;
        max-width: none;
        margin-top: 4px;
    }
}

/* Admin > Settings: announcement banner (includes/header.php) and footer contact lines. */
.site-announcement {
    background: linear-gradient(90deg, #f5d48f, #f9e3b4);
    color: #4a3410;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.55rem 0;
    text-align: center;
}
.footer-contact {
    list-style: none;
    padding: 0;
    margin-bottom: 0;
}
.footer-contact li + li {
    margin-top: 0.3rem;
}

/* ---------------------------------------------------------------------------
 * Photo status: dashboard strip, rings, "My status" page, full-screen viewer.
 * ------------------------------------------------------------------------- */
.status-strip-wrap {
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    padding: 1rem 0.75rem;
}
.status-strip {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    align-items: flex-start;
    padding: 0 0.25rem;
    scrollbar-width: thin;
}
.status-bubble {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    flex: 0 0 auto;
    width: 76px;
    background: none;
    border: 0;
    padding: 0;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}
.status-name {
    font-size: 0.75rem;
    font-weight: 600;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.status-ring {
    --size: 64px;
    position: relative;
    display: inline-flex;
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    padding: 3px;
    background: conic-gradient(from 200deg, #f5b13d, #e0457b, var(--brand), #f5b13d);
    flex: 0 0 auto;
}
.status-ring.seen {
    background: #d4cbcf;
}
.status-ring.add {
    background: transparent;
    border: 2px dashed #d4cbcf;
}
.status-ring > img,
.status-ring > .status-initial {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid #fff;
    object-fit: cover;
}
.status-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-brand);
    color: #fff;
    font-weight: 700;
    font-size: 1.3rem;
}
.status-plus {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}
.status-empty {
    align-self: center;
    padding-left: 0.5rem;
}
.status-bubble:hover .status-ring,
.status-bubble:focus-visible .status-ring {
    transform: scale(1.05);
}
.status-ring { transition: transform 0.15s ease; }

/* Profile page: "View status" under the main photo. */
.profile-status-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    border: 1px solid var(--brand-light);
    background: var(--brand-light);
    border-radius: 14px;
    padding: 0.5rem 0.75rem;
    text-align: left;
    color: inherit;
}
.profile-status-btn:hover { border-color: var(--brand); }

/* "My status" page */
.status-drop {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 5;
    max-height: 360px;
    width: 100%;
    border: 2px dashed #d4cbcf;
    border-radius: 16px;
    background: var(--brand-light);
    cursor: pointer;
    overflow: hidden;
}
.status-drop img { width: 100%; height: 100%; object-fit: cover; }
.status-drop span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: var(--brand);
    font-weight: 600;
}
.status-drop span i { font-size: 2rem; }
.status-drop small { color: #6c757d; font-weight: 400; }
.my-status-thumb {
    flex: 0 0 auto;
    width: 84px;
    height: 105px;
    border-radius: 12px;
    overflow: hidden;
}
.my-status-thumb img { width: 100%; height: 100%; object-fit: cover; }
.status-viewers summary { cursor: pointer; font-size: 0.875rem; color: var(--brand); font-weight: 600; }
.min-w-0 { min-width: 0; }

/* Full-screen viewer (assets/js/status.js) */
.status-viewer {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(10, 4, 7, 0.94);
    display: none;
    align-items: center;
    justify-content: center;
}
.status-viewer.open { display: flex; animation: lb-fade 0.18s ease; }
.sv-frame {
    position: relative;
    width: min(100vw, 440px);
    height: min(100dvh, 780px);
    background: #000;
    overflow: hidden;
    user-select: none;
    touch-action: manipulation;
}
@media (min-width: 576px) {
    .sv-frame { border-radius: 18px; }
}
.sv-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.sv-img.loaded { opacity: 1; }
.sv-bars {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    z-index: 3;
    display: flex;
    gap: 4px;
}
.sv-bar {
    flex: 1;
    height: 3px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.35);
    overflow: hidden;
}
.sv-bar > span { display: block; height: 100%; background: #fff; }
.sv-head {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.75rem;
    color: #fff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent);
}
.sv-avatar { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; flex: 0 0 auto; }
.sv-avatar img, .sv-avatar .status-initial { width: 100%; height: 100%; object-fit: cover; font-size: 1rem; }
.sv-who { display: flex; flex-direction: column; line-height: 1.2; flex: 1; min-width: 0; }
.sv-who small { opacity: 0.8; }
.sv-close {
    background: none;
    border: 0;
    color: #fff;
    font-size: 1.3rem;
    padding: 0.25rem 0.5rem;
    position: relative;
    z-index: 4;
}
.sv-zone {
    position: absolute;
    top: 80px;
    bottom: 70px;
    z-index: 2;
    width: 35%;
    background: none;
    border: 0;
    cursor: pointer;
}
.sv-prev { left: 0; }
.sv-next { right: 0; width: 65%; }
.sv-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 56px;
    z-index: 3;
    padding: 0.75rem 1rem;
    text-align: center;
    color: #fff;
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.45);
    pointer-events: none;
    word-break: break-word;
}
.sv-foot {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 1rem;
    color: #fff;
    font-size: 0.875rem;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.6), transparent);
}
.sv-foot a { color: #fff; font-weight: 600; text-decoration: none; margin-left: auto; }
.sv-foot a:hover { text-decoration: underline; }

/* Admin > Statuses */
.admin-status-photo {
    display: block;
    aspect-ratio: 4 / 5;
    background: #111;
    border-radius: var(--bs-card-inner-border-radius) var(--bs-card-inner-border-radius) 0 0;
    overflow: hidden;
}
.admin-status-photo img { width: 100%; height: 100%; object-fit: contain; }
.status-wait i { font-size: 2rem; color: var(--brand); }
.status-wait-time { font-size: 1.6rem; font-weight: 700; color: var(--brand); }

/* ---- Chat "typing..." indicator (messages.php + chat dock) ---- */
.chat-status { color: #198754; min-height: 1em; font-size: .78rem; }
.chat-status.is-typing, .cd-win-status.is-typing, .cd-preview.is-typing { color: #dc3545; font-style: italic; }
.chat-bubble .chat-text { white-space: pre-wrap; word-break: break-word; }
.chat-typing { display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px; min-height: 0; }
.chat-typing span { width: 7px; height: 7px; border-radius: 50%; background: #9aa0a6; animation: chat-typing-dot 1.2s infinite ease-in-out; }
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chat-typing-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .chat-typing span { animation: none; } }
