/* ============================================
   Rishthe - Premium Matrimonial UI
   Brand colors from logo: Royal Purple #7B2CBF + White
   ============================================ */

:root {
    --white: #ffffff;
    --primary: #7B2CBF;
    --primary-dark: #5B1F96;
    --primary-light: #9D4EDD;
    --primary-vivid: #8A2BE2;
    --soft-bg: #f5f0fc;
    --soft-lavender: #ede9fe;
    --lavender: #ddd6fe;
    --accent-sparkle: #e9d5ff;
    /* Legacy aliases (used across components) */
    --soft-pink: var(--soft-bg);
    --pink: var(--lavender);
    --rose: var(--primary);
    --rose-dark: var(--primary-dark);
    --rose-gold: var(--primary-light);
    --purple-light: var(--lavender);
    --purple: var(--primary-light);
    --purple-dark: var(--primary-dark);
    --text: #1f1533;
    --text-muted: #5c5470;
    --gradient-hero: linear-gradient(135deg, #f5f0fc 0%, #ede9fe 45%, #e9d5ff 100%);
    --gradient-rose: linear-gradient(135deg, #7B2CBF 0%, #9D4EDD 100%);
    --gradient-gold: linear-gradient(135deg, #7B2CBF 0%, #C4B5FD 100%);
    --gradient-brand: linear-gradient(135deg, #5B1F96 0%, #7B2CBF 50%, #9D4EDD 100%);
    --shadow-sm: 0 2px 12px rgba(123, 44, 191, 0.1);
    --shadow-md: 0 8px 32px rgba(123, 44, 191, 0.14);
    --shadow-lg: 0 16px 48px rgba(123, 44, 191, 0.18);
    --radius: 16px;
    --radius-sm: 10px;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Outfit', system-ui, sans-serif;
    --nav-height: 72px;
    --nav-top-gap: 0.625rem;
    --nav-offset-top: calc(var(--nav-top-gap) + env(safe-area-inset-top, 0px));
    --nav-total-height: calc(var(--nav-height) + var(--nav-offset-top));
    --dash-subnav-height: 48px;
    --bottom-nav-height: 64px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--soft-pink);
    line-height: 1.6;
    overflow-x: hidden;
}

body.logged-in {
    padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px));
}
body.page-dashboard.logged-in {
    padding-bottom: calc(var(--bottom-nav-height) + 0.5rem + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 992px) {
    body.logged-in { padding-bottom: 0; }
    body.page-dashboard.logged-in { padding-bottom: 1rem; }
}

h1, h2, h3, h4, h5, h6, .display-font {
    font-family: var(--font-display);
    font-weight: 600;
}

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

.text-rose { color: var(--rose) !important; }
.text-rose-dark { color: var(--rose-dark) !important; }
.bg-soft-pink { background: var(--soft-pink) !important; }

/* ---- Buttons ---- */
.btn-primary-rose {
    background: var(--gradient-rose);
    border: none;
    color: var(--white);
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.btn-primary-rose:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--white);
    filter: brightness(1.05);
}

.btn-outline-rose {
    border: 2px solid var(--rose);
    color: var(--rose);
    border-radius: 50px;
    background: transparent;
    font-weight: 500;
    transition: var(--transition);
}
.btn-outline-rose:hover {
    background: var(--rose);
    color: var(--white);
}

.btn-gold {
    background: var(--gradient-gold);
    color: var(--white);
    border: none;
    border-radius: 50px;
}

/* ---- Glass & Cards ---- */
.glass-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.card-modern {
    background: var(--white);
    border-radius: var(--radius);
    border: none;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
}
.card-modern:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

/* ---- Site header (navbar) ---- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    padding-top: var(--nav-offset-top);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header__inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: var(--nav-height);
    padding: 0.5rem 0;
}
.site-header__mobile {
    display: none;
}
.site-header__desktop {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex: 1;
    width: 100%;
    min-width: 0;
    position: relative;
}
.site-header__start {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}
@media (min-width: 992px) {
    .site-header__desktop .site-header__start {
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;
    }
}
.site-header__nav {
    flex: 0 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 0;
}
.site-header__actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
    margin-left: auto;
}
@media (min-width: 992px) {
    .site-header__desktop .site-header__actions {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        margin-left: 0;
        z-index: 2;
    }
}

/* Brand */
.site-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: inherit;
}
.site-brand__logo {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(123, 44, 191, 0.28);
}
.site-brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}
.site-brand__text strong {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-dark);
}
.site-brand__tagline {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

/* Transparent (home guest) */
.site-header--transparent {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(123, 44, 191, 0.08);
}
.site-header--transparent .site-nav-link {
    color: var(--text-muted);
}
.site-header--transparent .site-nav-link:hover,
.site-header--transparent .site-nav-link.is-active {
    color: var(--primary-dark);
    background: rgba(123, 44, 191, 0.08);
}

/* Solid / scrolled */
.site-header--solid,
.site-header--auth,
.site-header.is-scrolled {
    background: var(--gradient-brand);
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.site-header--solid .site-brand__text strong,
.site-header--auth .site-brand__text strong,
.site-header.is-scrolled .site-brand__text strong {
    color: var(--white);
}
.site-header--solid .site-brand__tagline,
.site-header--auth .site-brand__tagline,
.site-header.is-scrolled .site-brand__tagline {
    color: rgba(255, 255, 255, 0.75);
}
.site-header--solid .site-brand__logo,
.site-header--auth .site-brand__logo,
.site-header.is-scrolled .site-brand__logo,
.footer-brand .brand-logo {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

/* Guest nav links */
.site-nav-link {
    padding: 0.4rem 0.85rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition);
}
.site-header--transparent .site-nav-link {
    color: var(--text-muted);
}
.site-nav-link:hover,
.site-nav-link.is-active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
}
.site-header--transparent .site-nav-link:hover,
.site-header--transparent .site-nav-link.is-active {
    color: var(--primary-dark);
    background: rgba(123, 44, 191, 0.1);
}

/* Logged-in pill nav */
.site-nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}
.site-nav-pill i { font-size: 0.85rem; opacity: 0.9; }
.site-nav-pill:hover {
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
}
.site-nav-pill.is-active {
    background: var(--white);
    color: var(--primary-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.site-nav-pill__badge {
    font-style: normal;
    font-size: 0.62rem;
    font-weight: 700;
    background: var(--rose);
    color: var(--white);
    min-width: 16px;
    height: 16px;
    padding: 0 0.3rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.site-nav-pill.is-active .site-nav-pill__badge {
    background: var(--primary);
}

/* Header icon buttons */
.site-header__icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    position: relative;
    transition: var(--transition);
    text-decoration: none;
}
.site-header--transparent .site-header__icon-btn {
    color: var(--primary);
    background: var(--soft-bg);
}
.site-header__icon-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    color: var(--white);
}
.site-header--transparent .site-header__icon-btn:hover {
    background: var(--lavender);
}
.site-header__badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 0.25rem;
    background: var(--primary);
    color: var(--white);
    font-size: 0.6rem;
    font-weight: 700;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary-dark);
}

/* Header CTA buttons */
.btn-header-light {
    background: var(--white);
    color: var(--primary-dark);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    padding: 0.45rem 1.1rem;
}
.btn-header-light:hover {
    background: var(--accent-sparkle);
    color: var(--primary-dark);
}
.btn-header-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 50px;
    font-weight: 500;
    padding: 0.4rem 1rem;
}
.btn-header-outline:hover {
    background: var(--white);
    color: var(--primary);
}
.site-header--transparent .btn-header-outline {
    border-color: var(--primary);
    color: var(--primary);
}
.site-header--transparent .btn-header-outline:hover {
    background: var(--primary);
    color: var(--white);
}
.site-header__hint {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.88);
}

/* User menu */
.site-header__user-btn {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    padding: 0.25rem 0.5rem 0.25rem 0.25rem;
    color: var(--white);
    transition: var(--transition);
}
.site-header__user-btn::after { margin-left: 0.15rem; }
.site-header__user-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}
.site-header__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.5);
}
.site-header__premium-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: #fbbf24;
    border: 2px solid var(--primary-dark);
    border-radius: 50%;
}
.site-header__user { position: relative; }
.site-header__user-name {
    font-size: 0.85rem;
    font-weight: 600;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.site-header__dropdown {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    border: 1px solid var(--lavender);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    min-width: 260px;
    margin-top: 0.5rem !important;
}
.site-header__dropdown-head {
    display: flex;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    align-items: center;
}
.site-header__dropdown-head img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--lavender);
}
.site-header__dropdown-head strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text);
}
.site-header__dropdown-head small {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.site-header__dropdown .dropdown-item {
    border-radius: 8px;
    padding: 0.5rem 0.85rem;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.site-header__dropdown .dropdown-item i {
    width: 18px;
    color: var(--primary);
    text-align: center;
}
.dropdown-group-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    padding: 0.35rem 0.85rem 0.15rem;
    list-style: none;
}

/* Mobile toggler */
.site-header__toggler {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    cursor: pointer;
}
.site-header--transparent .site-header__toggler {
    background: var(--soft-bg);
}
.site-header__toggler span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}
.site-header--transparent .site-header__toggler span {
    background: var(--primary);
}

/* Mobile collapse panel */
.site-header__collapse {
    background: var(--white);
    border-top: 1px solid var(--lavender);
    box-shadow: 0 12px 24px rgba(123, 44, 191, 0.12);
}
.site-header__collapse-inner {
    padding: 1rem 0 1.25rem;
}
.site-header__mobile-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    background: var(--soft-bg);
    border-radius: var(--radius-sm);
}
.site-header__mobile-user img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--lavender);
}
.site-header__mobile-user strong {
    display: block;
    font-size: 0.95rem;
}
.site-header__mobile-user small {
    color: var(--text-muted);
    font-size: 0.78rem;
}
.site-header__mobile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}
.site-header__mobile-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.75rem;
    background: var(--soft-bg);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-body);
}
.site-header__mobile-link i {
    width: 18px;
    color: var(--primary);
    text-align: center;
}
.site-header__mobile-link:hover,
.site-header__mobile-link.is-active {
    background: var(--soft-pink);
    border-color: rgba(123, 44, 191, 0.2);
    color: var(--primary-dark);
}
.site-header__mobile-link--btn {
    grid-column: 1 / -1;
    justify-content: center;
    background: var(--primary);
    color: var(--white);
}
.site-header__mobile-link--btn i { color: var(--white); }
.site-header__mobile-links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.site-header__mobile-links a {
    padding: 0.65rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-weight: 500;
    text-decoration: none;
}
.site-header__mobile-links a:hover,
.site-header__mobile-links a.is-active {
    background: var(--soft-pink);
    color: var(--primary-dark);
}

/* Legacy aliases */
.navbar-brand { /* footer may still use */ }
.brand-logo,
.footer-brand .brand-logo {
    height: 46px;
    width: auto;
    border-radius: 10px;
    object-fit: contain;
}
.glass-dropdown {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border: 1px solid var(--purple-light);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    padding: 0.5rem;
    min-width: 220px;
}
.glass-dropdown .dropdown-item {
    border-radius: 8px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.badge-premium-sm {
    background: var(--gradient-gold);
    color: white;
    font-size: 0.65rem;
    padding: 0.15rem 0.5rem;
    border-radius: 50px;
    font-weight: 600;
}

/* ---- Hero ---- */
.hero-section {
    min-height: 100vh;
    background: var(--gradient-hero);
    padding-top: calc(var(--nav-height) + 2rem);
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(123,44,191,0.18) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
}
.hero-section::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(157,78,221,0.14) 0%, transparent 70%);
    bottom: -50px;
    left: -50px;
    border-radius: 50%;
}
.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.15;
    color: var(--text);
}
.hero-title span {
    background: var(--gradient-rose);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}
.hero-stat strong {
    display: block;
    font-size: 1.75rem;
    font-family: var(--font-display);
    color: var(--rose-dark);
}
.hero-image-wrap {
    position: relative;
}
.hero-image-main {
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}
.hero-floating-card {
    position: absolute;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    animation: float 4s ease-in-out infinite;
}
.hero-floating-card.card-1 { bottom: 20%; left: -10%; }
.hero-floating-card.card-2 { top: 15%; right: -5%; animation-delay: 1s; }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ---- Sections ---- */
.section-padding { padding: 5rem 0; }
.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 0.5rem;
}
.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Partner Search Box */
.partner-search-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    margin-top: -80px;
    position: relative;
    z-index: 10;
}
.partner-search-box .form-select,
.partner-search-box .form-control {
    border-radius: var(--radius-sm);
    border: 1px solid var(--purple-light);
    padding: 0.75rem 1rem;
}

/* Profile Cards — layout in profile-card.css */
.profiles-grid.list-view {
    grid-template-columns: 1fr;
}
.profile-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.profile-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-6px);
}
.profile-card-image-wrap {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
}
.profile-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.profile-card:hover .profile-card-img { transform: scale(1.05); }
.online-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255,255,255,0.95);
    color: #22c55e;
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
    border-radius: 50px;
    font-weight: 600;
}
.online-badge i { font-size: 0.5rem; vertical-align: middle; }
.last-seen-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255,255,255,0.9);
    color: var(--text-muted);
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
    border-radius: 50px;
}
.premium-badge-card {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--gradient-gold);
    color: white;
    font-size: 0.65rem;
    padding: 0.25rem 0.6rem;
    border-radius: 50px;
    font-weight: 600;
}
.match-percent-ring {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 56px;
    height: 56px;
    background: var(--gradient-rose);
    color: white;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    line-height: 1;
    box-shadow: var(--shadow-sm);
}
.match-percent-ring small { font-size: 0.55rem; font-weight: 400; opacity: 0.9; }
.profile-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 40%, rgba(45,42,50,0.7));
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: var(--transition);
}
.profile-card:hover .profile-card-overlay { opacity: 1; }
.profile-card-body { padding: 1.25rem; }
.profile-name { font-size: 1.1rem; margin-bottom: 0.25rem; }
.verified-icon { color: #3b82f6; font-size: 0.85rem; }
.profile-meta { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 0.75rem; }
.profile-details-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.profile-details-list li { margin-bottom: 0.25rem; }
.profile-details-list i { width: 18px; color: var(--purple); }
.profile-card-actions { display: flex; gap: 0.5rem; }
.profile-card-actions .btn { flex: 1; }
.profile-card-list {
    display: grid;
    grid-template-columns: 200px 1fr;
}
.profile-card-list .profile-card-image-wrap { aspect-ratio: 1; }

/* Membership Plans */
.plan-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: var(--transition);
    border: 2px solid transparent;
    height: 100%;
}
.plan-card.popular {
    border-color: var(--rose-gold);
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
}
.plan-card.popular::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-gold);
    color: white;
    font-size: 0.7rem;
    padding: 0.25rem 1rem;
    border-radius: 50px;
    font-weight: 600;
}
.plan-price {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--rose-dark);
}
.plan-features { list-style: none; padding: 0; text-align: left; }
.plan-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--soft-pink);
    font-size: 0.9rem;
}
.plan-features li::before {
    content: '✓';
    color: var(--rose);
    margin-right: 0.5rem;
    font-weight: 700;
}

/* Testimonials & Stories */
.testimonial-card {
    padding: 2rem;
    height: 100%;
}
.testimonial-card .couple-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--rose-gold);
}
.story-card .story-img {
    height: 220px;
    object-fit: cover;
    width: 100%;
}

/* Slider */
.profiles-slider {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
    scrollbar-width: none;
}
.profiles-slider::-webkit-scrollbar { display: none; }
.profiles-slider .profile-card {
    min-width: 280px;
    scroll-snap-align: start;
    flex-shrink: 0;
}

/* Auth Pages */
body.page-auth {
    background: var(--gradient-hero);
    min-height: 100vh;
}

/* Auth header uses .site-header--auth (see site header block) */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--nav-height) + 2rem) 1rem 2rem;
}
.auth-page .container { width: 100%; }
.auth-card {
    background: var(--white);
    backdrop-filter: blur(16px);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(123, 44, 191, 0.1);
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
}
.auth-card.auth-card-wide { max-width: 560px; }
.auth-card .auth-footer-link {
    text-align: center;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--soft-pink);
    font-size: 0.9rem;
}
.auth-card .form-control {
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    border: 1px solid var(--purple-light);
}
.auth-card .form-control:focus {
    border-color: var(--rose);
    box-shadow: 0 0 0 3px rgba(123,44,191,0.15);
}
.social-login-btns { display: flex; gap: 0.75rem; }
.social-login-btns .btn { flex: 1; border-radius: var(--radius-sm); }

/* Dashboard Layout */
body.page-dashboard {
    background: #f3f0f9;
}
body.page-app {
    background: linear-gradient(180deg, var(--soft-bg) 0%, var(--soft-lavender) 80px, var(--lavender) 100%);
}
body:has(.dash-subnav),
body.has-dash-subnav {
    padding-top: calc(var(--nav-total-height) + var(--dash-subnav-height));
}
.dashboard-page {
    min-height: calc(100vh - var(--nav-height) - var(--dash-subnav-height) - var(--bottom-nav-height));
    position: relative;
    z-index: 1;
}
@media (min-width: 992px) {
    .dashboard-page {
        min-height: calc(100vh - var(--nav-height) - var(--dash-subnav-height));
    }
}
.dashboard-layout {
    display: block;
    padding-top: 1.25rem;
    padding-bottom: 2.5rem;
    max-width: 1280px;
}
.dashboard-main {
    min-width: 0;
    width: 100%;
}

/* Top menu bar — aligned with site header container */
.dash-subnav {
    position: fixed;
    top: var(--nav-total-height);
    left: 0;
    right: 0;
    z-index: 1025;
    background: var(--white);
    border-bottom: 1px solid var(--lavender);
    box-shadow: 0 1px 0 rgba(123, 44, 191, 0.06);
    overflow: visible;
}
.dash-subnav__inner {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    min-height: var(--dash-subnav-height);
    height: var(--dash-subnav-height);
    padding: 0;
}
.dash-subnav__label-short {
    display: none;
}
.dash-subnav__scroll {
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex: 1;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: none;
    gap: 0;
    padding: 0;
    -webkit-overflow-scrolling: touch;
}
.dash-subnav__scroll::-webkit-scrollbar { display: none; }
.dash-subnav__link,
.dash-subnav__drop > .dash-subnav__link.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    height: var(--dash-subnav-height);
    min-height: var(--dash-subnav-height);
    padding: 0 0.75rem;
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.2;
    color: var(--text-muted);
    text-decoration: none;
    white-space: nowrap;
    border-radius: 0;
    border: none;
    border-bottom: 3px solid transparent;
    background: transparent;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
    box-sizing: border-box;
    vertical-align: middle;
}
.dash-subnav__link i {
    font-size: 0.875rem;
    color: var(--primary);
    line-height: 1;
    flex-shrink: 0;
}
.dash-subnav__link:hover,
.dash-subnav__drop > .dash-subnav__link.dropdown-toggle:hover {
    background: var(--soft-bg);
    color: var(--primary-dark);
}
.dash-subnav__link.is-active,
.dash-subnav__drop > .dash-subnav__link.dropdown-toggle.is-active {
    color: var(--primary-dark);
    background: var(--soft-lavender);
    border-bottom-color: var(--primary);
    font-weight: 600;
}
.dash-subnav__link.is-active i,
.dash-subnav__drop > .dash-subnav__link.dropdown-toggle.is-active i {
    color: var(--primary-dark);
}
.dash-subnav__link--muted {
    opacity: 0.85;
    font-size: 0.75rem;
    padding: 0.4rem 0.55rem;
}
.dash-subnav__link--muted span { max-width: 72px; overflow: hidden; text-overflow: ellipsis; }
.dash-subnav__badge {
    font-style: normal;
    font-size: 0.6rem;
    font-weight: 700;
    background: var(--primary);
    color: var(--white);
    min-width: 16px;
    height: 16px;
    padding: 0 0.3rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.dash-subnav__link.is-active .dash-subnav__badge {
    background: var(--white);
    color: var(--primary);
}
.dash-subnav__sep {
    width: 1px;
    height: 20px;
    background: var(--lavender);
    flex-shrink: 0;
    margin: 0 0.25rem;
}
.dash-subnav__drop {
    display: flex;
    align-items: stretch;
    flex-shrink: 0;
    position: static;
}
.dash-subnav__drop > .dash-subnav__link.dropdown-toggle::after {
    margin-left: 0.15rem;
    font-size: 0.6rem;
    vertical-align: middle;
    border-top-color: currentColor;
}
.dash-subnav__drop-menu {
    border: 1px solid var(--lavender);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    padding: 0.35rem;
    min-width: 200px;
    margin-top: 0.35rem !important;
    z-index: 1060 !important;
}
.dash-subnav__drop-menu.show,
.dash-subnav__drop-menu.dash-subnav__drop-menu--portal {
    display: block;
    z-index: 1060 !important;
}
.dash-subnav__drop-menu--portal {
    position: fixed;
}
.dash-subnav__drop .dropdown-toggle {
    cursor: pointer;
}
.dash-subnav__drop .dropdown-toggle::after {
    display: inline-block;
}
.dash-subnav__drop-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    border-radius: 6px;
    padding: 0.45rem 0.65rem;
}
.dash-subnav__drop-item i {
    width: 18px;
    text-align: center;
    color: var(--primary);
    font-size: 0.8rem;
}
.dash-subnav__drop-item.active,
.dash-subnav__drop-item:active {
    background: var(--soft-bg);
    color: var(--primary-dark);
}
.dash-subnav__actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
    height: var(--dash-subnav-height);
    padding: 0 0 0 0.5rem;
}
.dash-subnav__browse {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary-dark);
    background: var(--soft-bg);
    border: 1px solid var(--lavender);
    border-radius: 8px;
}
.dash-subnav__browse:hover,
.dash-subnav__browse.show {
    background: var(--soft-pink);
    border-color: var(--primary);
}
.dash-subnav__icon-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--lavender);
    border-radius: 8px;
    background: var(--soft-bg);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.dash-subnav__mega {
    border: 1px solid var(--lavender);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: min(640px, 96vw);
    margin-top: 0.5rem !important;
}
.dash-subnav__mega-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    padding: 0.75rem;
}
@media (min-width: 768px) {
    .dash-subnav__mega-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 1200px) {
    .dash-subnav__mega-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.dash-subnav__mega-col {
    padding: 0.5rem 0.75rem;
    border-right: 1px solid var(--soft-bg);
}
.dash-subnav__mega-col:last-child { border-right: none; }
.dash-subnav__mega-col h6 {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.dash-subnav__mega-col h6 i { color: var(--primary); }
.dash-subnav__mega-link {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.5rem;
    font-size: 0.85rem;
    color: var(--text);
    text-decoration: none;
    border-radius: 6px;
}
.dash-subnav__mega-link i {
    width: 16px;
    color: var(--primary);
    font-size: 0.8rem;
    text-align: center;
}
.dash-subnav__mega-link:hover,
.dash-subnav__mega-link.active {
    background: var(--soft-pink);
    color: var(--primary-dark);
}

/* Subnav: desktop only (mobile uses bottom nav + offcanvas — see responsive.css) */
@media (min-width: 992px) {
    .dash-subnav__link--muted { display: none; }
    .dash-subnav__sep { display: none; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    .dash-subnav__drop:has(.dash-subnav__label-short) .dash-subnav__label-full {
        display: none;
    }
    .dash-subnav__drop:has(.dash-subnav__label-short) .dash-subnav__label-short {
        display: inline;
    }
}

/* Dashboard welcome hero */
.dash-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.35rem 1.5rem;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, #9d4edd 100%);
    border-radius: var(--radius);
    color: var(--white);
    box-shadow: var(--shadow-md);
}
.dash-hero__main {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.dash-hero__avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}
.dash-hero__greet {
    font-size: 0.8rem;
    opacity: 0.9;
    margin: 0 0 0.15rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.dash-hero__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 0;
    color: var(--white);
    line-height: 1.15;
}
.dash-hero__sub {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
    opacity: 0.88;
}
.dash-hero__aside {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}
.dash-hero__completion {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: rgba(255, 255, 255, 0.12);
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-sm);
}
.dash-hero__completion small { color: rgba(255, 255, 255, 0.85); }
.dash-completion-ring--sm {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}
.dash-completion-ring--sm .ring-label {
    font-size: 0.65rem;
}
.dash-completion-ring--sm svg {
    width: 48px;
    height: 48px;
}
.dash-hero .dash-completion-ring .ring-fill {
    stroke: var(--white);
}
.dash-hero .dash-completion-ring .ring-bg {
    stroke: rgba(255, 255, 255, 0.25);
}
.dash-hero .dash-completion-ring .ring-label {
    color: var(--white);
}
body.page-dashboard .dash-panel {
    background: var(--white);
    border: 1px solid rgba(123, 44, 191, 0.08);
    border-radius: var(--radius);
    padding: 1.15rem 1.25rem;
    box-shadow: 0 1px 3px rgba(123, 44, 191, 0.06);
}
body.page-dashboard .dash-panel-header {
    margin-bottom: 1rem;
}
body.page-dashboard .dash-stats {
    margin-bottom: 1.5rem;
}
@media (max-width: 991.98px) {
    .dash-hero {
        padding: 1.15rem;
    }
    .dash-hero__aside {
        width: 100%;
        justify-content: flex-start;
    }
    .dash-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 575.98px) {
    .dash-stats {
        grid-template-columns: 1fr 1fr;
        gap: 0.65rem;
    }
    .dash-stat-card {
        padding: 0.85rem;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    .dash-stat-card strong { font-size: 1.15rem; }
}
.sidebar-user-card {
    padding: 1.25rem;
    text-align: center;
    margin-bottom: 0.75rem;
    background: var(--white);
    border: 1px solid rgba(123, 44, 191, 0.12);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.sidebar-user-card--compact {
    padding: 0.75rem;
    text-align: left;
    position: relative;
}
.sidebar-user-card__row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: inherit;
}
.sidebar-user-card__row:hover strong { color: var(--primary); }
.sidebar-user-card__info {
    flex: 1;
    min-width: 0;
    line-height: 1.3;
}
.sidebar-user-card__info strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text);
}
.sidebar-user-card__info small {
    font-size: 0.72rem;
    color: var(--text-muted);
}
.sidebar-user-card__arrow {
    font-size: 0.7rem;
    color: var(--text-muted);
}
.sidebar-user-card__badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 0.6rem;
}
.sidebar-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--rose-gold);
    margin-bottom: 0.5rem;
    flex-shrink: 0;
}
.sidebar-user-card--compact .sidebar-avatar {
    width: 44px;
    height: 44px;
    margin-bottom: 0;
    border-width: 2px;
}
.sidebar-nav {
    background: var(--white);
    border-radius: var(--radius);
    padding: 0.5rem;
    border: 1px solid rgba(123, 44, 191, 0.1);
    box-shadow: var(--shadow-sm);
}
.sidebar-nav hr {
    margin: 0.5rem 0.75rem;
    opacity: 0.15;
}
.sidebar-nav a,
.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 0.7rem;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    margin-bottom: 0.1rem;
    font-size: 0.82rem;
    transition: var(--transition);
    text-decoration: none;
}
.sidebar-nav a i,
.sidebar-nav-link i { width: 16px; text-align: center; font-size: 0.85rem; flex-shrink: 0; }
.sidebar-nav a:hover, .sidebar-nav a.active,
.sidebar-nav-link:hover, .sidebar-nav-link.active {
    background: var(--soft-pink);
    color: var(--rose-dark);
    font-weight: 500;
}
.sidebar-nav .nav-badge,
.sidebar-nav-link .nav-badge {
    margin-left: auto;
    background: var(--rose);
    color: white;
    font-size: 0.6rem;
    padding: 0.1rem 0.4rem;
    border-radius: 50px;
    font-style: normal;
}

/* Dashboard top & stats */
.dash-topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.dash-greeting {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.25rem;
    color: var(--text);
}
.dash-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}
.dash-topbar-actions {
    display: flex;
    gap: 0.5rem;
}
.dash-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.dash-stat-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: var(--white);
    border-radius: var(--radius);
    padding: 1rem 1.15rem;
    border: 1px solid rgba(123, 44, 191, 0.12);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    color: inherit;
    text-decoration: none;
}
.dash-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(123, 44, 191, 0.25);
}
.dash-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.dash-stat-card strong {
    display: block;
    font-size: 1.35rem;
    font-family: var(--font-display);
    color: var(--text);
    line-height: 1.2;
}
.dash-stat-card span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Dashboard panels */
.dash-panel {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.25rem 1.35rem;
    border: 1px solid rgba(123, 44, 191, 0.12);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.25rem;
}
.dash-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.dash-panel-header h5, .dash-panel-header h6 {
    font-weight: 600;
}

/* Profile completion ring */
.dash-completion-panel {
    background: linear-gradient(135deg, #fff 0%, var(--soft-bg) 100%);
    border-color: rgba(123, 44, 191, 0.2);
}
.dash-completion-ring {
    position: relative;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}
.dash-completion-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
.dash-completion-ring .ring-bg {
    fill: none;
    stroke: var(--purple-light);
    stroke-width: 3;
}
.dash-completion-ring .ring-fill {
    fill: none;
    stroke: url(#ringGrad);
    stroke: var(--rose);
    stroke-width: 3;
    stroke-linecap: round;
}
.dash-completion-ring .ring-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--rose-dark);
}
.dash-progress-thin {
    height: 6px;
    border-radius: 50px;
    background: var(--purple-light);
}
.dash-progress-thin .progress-bar {
    background: var(--gradient-rose);
    border-radius: 50px;
}

/* Compact match cards */
.dash-matches-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.dash-match-card {
    display: flex;
    gap: 0.85rem;
    padding: 0.85rem;
    background: var(--soft-pink);
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: var(--transition);
}
.dash-match-card:hover {
    background: var(--white);
    border-color: rgba(123, 44, 191, 0.3);
    box-shadow: var(--shadow-sm);
}
.dash-match-photo {
    position: relative;
    display: block;
    width: 72px;
    height: 88px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
}
.dash-match-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.dash-online-dot {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 10px;
    height: 10px;
    background: #22c55e;
    border: 2px solid white;
    border-radius: 50%;
}
.dash-match-score {
    position: absolute;
    top: 4px;
    left: 4px;
    background: var(--gradient-rose);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
}
.dash-match-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.dash-match-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dash-match-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin: 0 0 0.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dash-match-meta i { width: 14px; color: var(--purple); }
.dash-match-actions {
    margin-top: auto;
    display: flex;
    gap: 0.35rem;
    padding-top: 0.35rem;
}
.dash-match-actions .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* Recently viewed scroll */
.dash-recent-scroll {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: thin;
}
.dash-recent-item {
    flex: 0 0 auto;
    width: 88px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}
.dash-recent-item:hover { transform: translateY(-4px); }
.dash-recent-item img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--white);
    box-shadow: 0 0 0 2px var(--rose-gold);
    margin-bottom: 0.35rem;
}
.dash-recent-name {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
}
.dash-recent-match {
    font-size: 0.7rem;
    color: var(--rose);
    font-weight: 600;
}

/* Upgrade panel */
.dash-upgrade-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    background: var(--gradient-gold);
    color: white;
    border-radius: var(--radius);
    padding: 1.15rem 1.35rem;
    border: none;
    box-shadow: var(--shadow-md);
}
.dash-upgrade-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.dash-upgrade-content > i {
    font-size: 1.75rem;
    opacity: 0.9;
}

/* Notifications list */
.dash-notif-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.dash-notif-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--soft-pink);
}
.dash-notif-item:last-child { border-bottom: none; }
.dash-notif-item.unread {
    background: rgba(123, 44, 191, 0.05);
    margin: 0 -0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    border-radius: 8px;
}
.dash-notif-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--soft-pink);
    color: var(--rose);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.85rem;
}
.dash-notif-item p {
    font-size: 0.82rem;
    line-height: 1.4;
}

/* Visitors */
.dash-visitor-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--soft-pink);
}
.dash-visitor-row:last-child { border-bottom: none; }
.dash-visitor-row img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* New members chips */
.dash-members-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}
.dash-member-chip {
    position: relative;
    display: block;
}
.dash-member-chip img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--purple-light);
    transition: var(--transition);
}
.dash-member-chip:hover img {
    border-color: var(--rose);
    transform: scale(1.08);
}
.dash-member-chip .dash-online-dot {
    bottom: 2px;
    right: 2px;
}

/* Legacy widgets (other pages) */
.welcome-card {
    background: var(--gradient-brand);
    color: white;
    border-radius: var(--radius);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}
.widget-card { padding: 1.5rem; height: 100%; }
.visitor-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--soft-pink);
}
.visitor-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.upgrade-banner {
    background: var(--gradient-gold);
    color: white;
    border-radius: var(--radius);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ========== Dedicated Search Page ========== */
body.page-search {
    background: var(--soft-bg);
}
.search-page-wrap {
    padding-top: 1rem;
    padding-bottom: calc(var(--bottom-nav-height) + 1rem);
}
@media (min-width: 992px) {
    body.page-search.logged-in { padding-bottom: 1rem; }
    .search-page-wrap { padding-bottom: 2rem; }
}

/* Search page — see search-hub-forms.css */
.page-search-v2,
.page-search-hub {
    background: var(--soft-bg);
}
.search-hub-form__checks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
}
.search-advanced-inline {
    max-height: none;
    overflow: visible;
    padding-right: 0;
}
.search-advanced-inline .filter-modal-section {
    margin-bottom: 1rem;
}
.search-location-map {
    background: var(--soft-bg);
    border: 1px dashed var(--lavender);
}
.search-hub-aside .border-bottom:last-child {
    border-bottom: none !important;
}

/* Search results — separate page */
.page-search-results {
    background: var(--soft-bg);
}
.search-results-page {
    padding-bottom: calc(var(--bottom-nav-height) + 1.5rem);
}
.search-results-topbar {
    position: sticky;
    top: var(--nav-total-height);
    z-index: 1015;
    background: var(--white);
    border-bottom: 1px solid var(--lavender);
    box-shadow: 0 1px 4px rgba(123, 44, 191, 0.06);
}
@media (min-width: 992px) {
    .search-results-topbar {
        top: calc(var(--nav-total-height) + var(--dash-subnav-height));
    }
}
.search-results-topbar__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    padding: 0.65rem 0;
}
.search-results-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}
.search-results-back:hover {
    color: var(--primary-dark);
}
.search-results-topbar__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    flex: 1;
    min-width: 0;
}
.search-results-type-badge {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.6rem;
    border-radius: 50px;
    background: var(--soft-lavender);
    color: var(--primary-dark);
}
.search-results-topbar__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}
.search-results-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0 0.5rem;
}
.search-results-summary .filter-tag {
    font-size: 0.8rem;
}

/* ---- Form controls (search & forms) ---- */
.page-search .rishthe-label,
.rishthe-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    letter-spacing: 0.02em;
}
.page-search .rishthe-input,
.rishthe-input {
    width: 100%;
    height: 46px;
    padding: 0 1rem;
    font-size: 0.9rem;
    font-family: var(--font-body);
    color: var(--text);
    background: var(--white);
    border: 1.5px solid #e2d8f0;
    border-radius: var(--radius-sm);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.page-search .rishthe-input::placeholder {
    color: #9ca3af;
}
.page-search .rishthe-input:hover {
    border-color: #c4b5fd;
}
.page-search .rishthe-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(123, 44, 191, 0.15);
}
.rishthe-input-group {
    position: relative;
    display: flex;
    align-items: stretch;
}
.rishthe-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 0.95rem;
    pointer-events: none;
    z-index: 1;
}
.rishthe-input-group .rishthe-input {
    padding-left: 2.75rem;
}
.page-search .rishthe-select,
.rishthe-select {
    width: 100%;
    height: 46px;
    padding: 0 2.25rem 0 0.85rem;
    font-size: 0.9rem;
    font-family: var(--font-body);
    color: var(--text);
    background-color: var(--white);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%237B2CBF' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 14px 10px;
    border: 1.5px solid #e2d8f0;
    border-radius: var(--radius-sm);
    appearance: none;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.page-search .rishthe-select:hover,
.rishthe-select:hover {
    border-color: #c4b5fd;
}
.page-search .rishthe-select:focus,
.rishthe-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(123, 44, 191, 0.15);
}
.rishthe-select--inline {
    width: auto;
    min-width: 160px;
}

/* Compact inputs */
.page-search .rishthe-input--sm,
.rishthe-input--sm {
    height: 38px;
    padding: 0 0.75rem;
    font-size: 0.85rem;
}
.page-search .rishthe-select--sm,
.rishthe-select--sm {
    height: 38px;
    padding: 0 1.75rem 0 0.6rem;
    font-size: 0.85rem;
    background-size: 12px 8px;
    background-position: right 0.5rem center;
}
.rishthe-label--sm {
    font-size: 0.7rem;
    margin-bottom: 0.2rem;
}

/* ========== Minimal search bar (ultra compact) ========== */
.search-bar-mini {
    position: sticky;
    top: calc(var(--nav-height) + var(--dash-subnav-height));
    z-index: 1020;
    background: var(--white);
    border-bottom: 1px solid var(--lavender);
    box-shadow: 0 1px 4px rgba(123, 44, 191, 0.08);
}
.search-bar-mini .container {
    padding-top: 0.65rem;
    padding-bottom: 0.5rem;
}
.search-bar-mini__main {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 40px;
}
.search-bar-mini__input {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    height: 36px;
    padding: 0 0.65rem;
    background: var(--soft-bg);
    border: 1px solid #e2d8f0;
    border-radius: 8px;
}
.search-bar-mini__input:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(123, 44, 191, 0.1);
}
.search-bar-mini__input i {
    color: var(--primary);
    font-size: 0.75rem;
    flex-shrink: 0;
}
.search-bar-mini__input input,
.search-mini-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    font-size: 0.85rem;
    padding: 0;
    height: auto;
    outline: none;
    font-family: var(--font-body);
}
.search-bar-mini__filters-inline {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}
.search-mini-select {
    height: 34px;
    padding: 0 1.5rem 0 0.5rem;
    font-size: 0.78rem;
    border: 1px solid #e2d8f0;
    border-radius: 8px;
    background-color: var(--white);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%237B2CBF' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.4rem center;
    background-size: 10px;
    appearance: none;
    color: var(--text);
    max-width: 100px;
}
.search-mini-select--narrow { max-width: 52px; padding-right: 1.25rem; }
.search-mini-sep { color: var(--text-muted); font-size: 0.7rem; }
.search-sort-select { max-width: 110px; height: 32px; font-size: 0.75rem; }
.search-bar-mini__actions {
    display: flex;
    gap: 0.3rem;
    flex-shrink: 0;
}
.search-mini-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2d8f0;
    border-radius: 8px;
    background: var(--white);
    color: var(--primary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}
.search-mini-btn:hover {
    background: var(--soft-lavender);
    border-color: var(--primary-light);
}
.search-mini-btn--primary {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}
.search-mini-btn--primary:hover {
    background: var(--primary-dark);
}
.search-bar-mini__extra {
    display: none;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding-top: 0.4rem;
    border-top: 1px solid var(--soft-bg);
    margin-top: 0.4rem;
}
.search-bar-mini__extra.is-open { display: flex; }

/* Results area */
.search-results-wrap {
    padding-top: 0.5rem;
    padding-bottom: 1.5rem;
}
.results-top-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.results-tabs {
    display: flex;
    gap: 0.15rem;
    overflow-x: auto;
    scrollbar-width: none;
}
.results-tabs::-webkit-scrollbar { display: none; }
.results-tab {
    border: none;
    background: transparent;
    padding: 0.35rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: 6px;
    white-space: nowrap;
    cursor: pointer;
    font-family: var(--font-body);
}
.results-tab:hover { color: var(--primary); background: var(--soft-bg); }
.results-tab.active {
    background: var(--primary);
    color: var(--white);
}
.results-tab em {
    font-style: normal;
    font-size: 0.65rem;
    opacity: 0.9;
    margin-left: 0.2rem;
}
.results-top-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}
.results-count {
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap;
}
.results-count strong { color: var(--primary-dark); }

.active-filters-bar--slim {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.5rem;
    margin-bottom: 0.5rem;
    background: var(--white);
    border-radius: 8px;
    border: 1px solid var(--lavender);
    min-height: auto;
}
.active-filters-bar--slim .search-quick-tags {
    display: flex;
    gap: 0.25rem;
    padding: 0;
    overflow: visible;
}
.active-filters-bar--slim .search-tag {
    width: 28px;
    height: 28px;
    padding: 0;
    justify-content: center;
    border-radius: 6px;
}
.active-filters-bar--slim .search-tag span { display: none; }
.active-filters-bar--slim .active-filters-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
}
.active-filters-bar--slim .active-filters-tags:empty { display: none; }

/* Legacy compact search panel (unused) */
.search-panel-container {
    padding-top: 0;
    position: sticky;
    top: var(--nav-height);
    z-index: 1020;
    background: var(--soft-bg);
    padding-bottom: 0;
}
.search-panel--compact {
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid rgba(123, 44, 191, 0.1) !important;
    box-shadow: var(--shadow-sm) !important;
}
.search-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    background: var(--gradient-brand);
    padding: 0.5rem 0.85rem;
}
.search-panel__heading {
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}
.search-panel__meta {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.2rem 0.5rem;
    border-radius: 50px;
    white-space: nowrap;
}

.search-panel__form {
    padding: 0.6rem 0.75rem 0.5rem;
    background: var(--white);
}
.search-compact-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.5rem;
}
.search-compact-row--primary {
    margin-bottom: 0;
}
.search-compact-keyword {
    flex: 1 1 140px;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--soft-bg);
    border: 1px solid #e2d8f0;
    border-radius: var(--radius-sm);
    padding: 0 0.65rem;
    height: 38px;
}
.search-compact-keyword:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(123, 44, 191, 0.12);
}
.search-compact-keyword i {
    color: var(--primary);
    font-size: 0.8rem;
    flex-shrink: 0;
}
.search-compact-keyword .rishthe-input {
    border: none;
    background: transparent;
    box-shadow: none;
    height: 36px;
    padding: 0;
}
.search-compact-keyword .rishthe-input:focus {
    box-shadow: none;
}
.search-compact-btns {
    display: flex;
    gap: 0.35rem;
    flex-shrink: 0;
}
.btn-filter-toggle {
    background: var(--soft-bg);
    border: 1px solid #e2d8f0;
    color: var(--primary);
    width: 38px;
    padding: 0;
    justify-content: center;
}
.btn-filter-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}
.btn-advanced-filter {
    display: inline-flex;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--primary);
    color: var(--primary-dark);
    font-weight: 600;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}
.btn-advanced-filter:hover {
    background: var(--soft-lavender);
}
.advanced-filter-badge {
    background: var(--primary);
    color: var(--white);
    font-size: 0.6rem;
    padding: 0.1rem 0.35rem;
    border-radius: 50px;
    margin-left: 0.2rem;
    font-weight: 700;
    font-style: normal;
}

/* Filter dropdowns row */
.search-compact-row--filters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--soft-bg);
}
.search-filter-field {
    min-width: 0;
}
.search-age-range {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.search-age-range .rishthe-select {
    flex: 1;
    min-width: 0;
}
.search-age-sep {
    color: var(--text-muted);
    font-size: 0.75rem;
    flex-shrink: 0;
}

.search-panel__quick {
    padding: 0.4rem 0.75rem;
    background: var(--white);
    border-top: 1px solid var(--soft-bg);
}
.search-quick-tags {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.35rem;
    padding-bottom: 0.15rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.search-quick-tags::-webkit-scrollbar { display: none; }
.search-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.28rem 0.6rem;
    font-size: 0.72rem;
    font-weight: 500;
    font-family: var(--font-body);
    color: var(--text-muted);
    background: var(--soft-bg);
    border: 1px solid #e2d8f0;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}
.search-tag i { font-size: 0.65rem; }
.search-tag.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.search-panel__tabs {
    display: flex;
    overflow-x: auto;
    background: var(--soft-bg);
    border-top: 1px solid var(--lavender);
    scrollbar-width: none;
}
.search-panel__tabs::-webkit-scrollbar { display: none; }
.search-tab-btn {
    border: none;
    background: transparent;
    padding: 0.55rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    flex: 1;
    justify-content: center;
    min-width: max-content;
}
.search-tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: var(--white);
    font-weight: 600;
}
.search-tab-btn .tab-count {
    background: var(--primary);
    color: var(--white);
    font-size: 0.6rem;
    padding: 0.08rem 0.35rem;
    border-radius: 50px;
    font-weight: 700;
    font-style: normal;
}
.search-tab-panel { display: none; }
.search-tab-panel.active { display: block; }

.page-search .search-page-wrap {
    padding-top: 1rem;
}
@media (min-width: 992px) {
    .page-search .search-page-wrap {
        padding-top: 1.25rem;
    }
}
body.page-search .rishthe-footer {
    margin-top: 2rem;
}
@media (max-width: 991.98px) {
    body.page-search.logged-in .rishthe-footer {
        margin-bottom: var(--bottom-nav-height);
    }
}

/* Full-width results */
.search-results-wrap {
    padding-top: 1.25rem;
    padding-bottom: 2rem;
    width: 100%;
}
.page-search-results .search-results-wrap .profiles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

@media (min-width: 992px) {
    .page-search-results .search-results-wrap .profiles-grid:not(.list-view) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Advanced filter modal */
.advanced-filter-modal .modal-content {
    border: none;
    border-radius: var(--radius);
    overflow: hidden;
}
.advanced-filter-modal .modal-header {
    background: var(--gradient-brand);
    color: var(--white);
    border: none;
    padding: 1rem 1.5rem;
}
.advanced-filter-modal .modal-header .modal-title { color: var(--white); }
.advanced-filter-modal .modal-header .text-rose { color: var(--white) !important; }
.advanced-filter-modal .modal-header .btn-close {
    filter: brightness(0) invert(1);
}
.advanced-filter-modal .modal-body {
    padding: 1.5rem;
    max-height: min(70vh, 600px);
    overflow-y: auto;
    background: var(--soft-bg);
}
.advanced-filter-modal .modal-footer {
    background: var(--white);
    border-top: 1px solid var(--lavender);
    padding: 1rem 1.5rem;
}
.filter-modal-section {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 1rem 1.15rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(123, 44, 191, 0.08);
    height: calc(100% - 1rem);
}
.filter-section-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--soft-lavender);
}
.filter-section-title i {
    color: var(--primary);
    margin-right: 0.25rem;
}
.search-filter-form .filter-group { margin-bottom: 0.85rem; }
.search-filter-form .filter-group label {
    font-weight: 600;
    font-size: 0.78rem;
    margin-bottom: 0.35rem;
    display: block;
    color: var(--text-muted);
}
.filter-group { margin-bottom: 1rem; }
.filter-group label {
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
    display: block;
    color: var(--text-muted);
}
.active-filters-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: var(--white);
    border-radius: var(--radius-sm);
    border: 1px solid var(--lavender);
}
.active-filters-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}
.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--soft-lavender);
    color: var(--primary-dark);
    padding: 0.3rem 0.65rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 500;
}
.filter-tag button {
    border: none;
    background: none;
    color: var(--primary);
    font-size: 1rem;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}
.filter-tag-sm {
    background: var(--soft-bg);
    color: var(--text-muted);
    font-size: 0.72rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-right: 0.25rem;
}
.search-results-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.search-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.search-sort-select { min-width: 160px; }
.search-pagination { margin-top: 2rem; }

/* Saved & recent */
.saved-search-card {
    padding: 1.25rem;
    height: 100%;
    transition: var(--transition);
}
.saved-search-card:hover { box-shadow: var(--shadow-md); }
.saved-search-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}
.saved-search-tags { margin-bottom: 1rem; min-height: 2rem; }
.saved-search-actions { display: flex; gap: 0.5rem; }
.saved-search-add {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 180px;
    cursor: pointer;
    border: 2px dashed var(--lavender);
    background: var(--soft-bg);
}
.recent-search-list { overflow: hidden; }
.recent-search-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--soft-bg);
    gap: 1rem;
}
.recent-search-item:last-child { border-bottom: none; }
.search-feature-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}
.search-feature-list li {
    padding: 0.4rem 0;
    font-size: 0.9rem;
}

/* Legacy search (other pages) */
.search-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
    padding-top: calc(var(--nav-height) + 1rem);
}
.filter-sidebar {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    position: sticky;
    top: calc(var(--nav-height) + 1rem);
    max-height: calc(100vh - var(--nav-height) - 2rem);
    overflow-y: auto;
}
.search-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.view-toggle .btn { border-radius: 8px; }
.view-toggle .btn.active { background: var(--primary); color: white; border-color: var(--primary); }

/* Profile Details */
.profile-detail-hero {
    height: 280px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius) var(--radius) 0 0;
    position: relative;
}
.profile-detail-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent, rgba(45,42,50,0.6));
    border-radius: inherit;
}
.profile-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    padding: 1rem;
}
.profile-gallery img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}
.profile-gallery img:hover { transform: scale(1.03); }
.profile-gallery img:first-child { grid-column: span 2; grid-row: span 2; }
.detail-section {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
}
.detail-section h5 {
    border-bottom: 2px solid var(--soft-pink);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}
.info-item label { font-size: 0.75rem; color: var(--text-muted); display: block; }
.info-item span { font-weight: 500; }
.compatibility-card {
    background: var(--gradient-hero);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
}
.compatibility-score {
    font-size: 3rem;
    font-family: var(--font-display);
    color: var(--rose-dark);
    font-weight: 700;
}
.sticky-actions {
    position: sticky;
    bottom: calc(var(--bottom-nav-height) + 1rem);
    background: var(--white);
    padding: 1rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    gap: 0.75rem;
    z-index: 100;
}
@media (min-width: 992px) {
    .sticky-actions { bottom: 1rem; }
}

/* ========== Chat UI ========== */
body.page-chat {
    overflow: hidden;
}
body.page-chat:has(.dash-subnav) {
    padding-top: calc(var(--nav-height) + var(--dash-subnav-height));
}
.chat-page {
    height: calc(100vh - var(--nav-height) - var(--dash-subnav-height));
    padding-top: 0;
    display: flex;
    background: var(--soft-bg);
}
body.page-chat:not(:has(.dash-subnav)) .chat-page {
    height: calc(100vh - var(--nav-height));
}
.chat-sidebar {
    width: min(340px, 36vw);
    background: var(--white);
    border-right: 1px solid rgba(123, 44, 191, 0.12);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}
.chat-sidebar-header {
    padding: 1rem 1.15rem;
    border-bottom: 1px solid var(--soft-bg);
}
.chat-sidebar-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.chat-sidebar-count {
    font-size: 0.72rem;
    color: var(--text-muted);
}
.chat-search-wrap {
    position: relative;
}
.chat-search-wrap > i {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: var(--primary);
    pointer-events: none;
}
.chat-search {
    width: 100%;
    height: 38px;
    border-radius: 50px;
    border: 1.5px solid var(--lavender);
    padding: 0 1rem 0 2.35rem;
    font-size: 0.85rem;
    font-family: var(--font-body);
    background: var(--soft-bg);
}
.chat-search:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
}
.chat-conversation-list {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
}
.chat-conv-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.85rem 1.15rem;
    border: none;
    border-bottom: 1px solid var(--soft-bg);
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
}
.chat-conv-item:hover,
.chat-conv-item.active {
    background: var(--soft-pink);
}
.chat-conv-avatar {
    position: relative;
    flex-shrink: 0;
}
.chat-conv-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--lavender);
}
.chat-conv-item.active .chat-conv-avatar img {
    border-color: var(--primary);
}
.profile-presence-dot {
    position: absolute;
    z-index: 3;
    background: #22c55e;
    border-radius: 50%;
    border: 2px solid var(--white);
}
.profile-presence-dot[hidden] {
    display: none !important;
}
.profile-card > .profile-card__media .profile-presence-dot {
    bottom: 6px;
    right: 6px;
    width: 12px;
    height: 12px;
}
.visitor-list-item__photo .profile-presence-dot {
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
}
.member-rich-card__online.profile-presence-dot,
.dash-online-dot.profile-presence-dot {
    display: block;
}
.online-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #22c55e;
    border: 2px solid var(--white);
    border-radius: 50%;
    z-index: 2;
}
.online-dot[hidden] {
    display: none !important;
}
.chat-conv-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.chat-conv-meta__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}
.chat-conv-meta__top strong {
    font-size: 0.92rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.chat-conv-meta__top time {
    font-size: 0.68rem;
    color: var(--text-muted);
    flex-shrink: 0;
}
.chat-conv-meta__preview {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
.unread-badge {
    background: var(--primary);
    color: var(--white);
    font-size: 0.68rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    padding: 0 0.35rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    position: relative;
}
.chat-panel {
    display: none;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}
.chat-panel.is-visible {
    display: flex;
}
.chat-main {
    background: #f4f0f8;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%237B2CBF' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.chat-header {
    background: var(--white);
    padding: 0.65rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    box-shadow: 0 1px 0 rgba(123, 44, 191, 0.08);
    flex-shrink: 0;
    z-index: 2;
}
.chat-header__back {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: var(--soft-bg);
    color: var(--primary);
    flex-shrink: 0;
}
.chat-header__user {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}
.chat-header__user img {
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--lavender);
    flex-shrink: 0;
}
.chat-header__user strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text);
}
.chat-header__user small {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.chat-header__user small.is-online {
    color: #16a34a;
}
.chat-header__user small.is-online i {
    font-size: 0.45rem;
    margin-right: 0.2rem;
}
.chat-header__actions {
    display: flex;
    gap: 0.25rem;
    flex-shrink: 0;
}
.chat-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: var(--soft-bg);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
}
.chat-icon-btn:hover {
    background: var(--soft-pink);
    color: var(--primary-dark);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.25rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 0;
}
.chat-date-divider {
    text-align: center;
    margin: 0.5rem 0;
}
.chat-date-divider span {
    font-size: 0.72rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.85);
    padding: 0.2rem 0.75rem;
    border-radius: 50px;
    border: 1px solid var(--lavender);
}
.chat-bubble {
    max-width: min(78%, 420px);
    padding: 0.6rem 0.85rem 0.45rem;
    border-radius: 14px;
    position: relative;
    animation: bubbleIn 0.25s ease;
}
@keyframes bubbleIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
.chat-bubble__text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
    word-break: break-word;
}
.chat-bubble__time {
    display: block;
    font-size: 0.62rem;
    margin-top: 0.25rem;
    opacity: 0.75;
    text-align: right;
}
.chat-bubble.them {
    background: var(--white);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 3px rgba(123, 44, 191, 0.1);
    color: var(--text);
}
.chat-bubble.me {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}
.chat-bubble.me .chat-bubble__time {
    color: rgba(255, 255, 255, 0.8);
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 0.65rem 0.9rem;
    background: var(--white);
    border-radius: 14px;
    align-self: flex-start;
    width: fit-content;
    box-shadow: var(--shadow-sm);
}
.typing-indicator span {
    width: 7px;
    height: 7px;
    background: var(--primary);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-5px); opacity: 1; }
}

/* Sponsored / Advertisement banners (CDN upload domain) */
.rishthe-ad-slot--dashboard,
.rishthe-ad-slot--profile {
    max-width: 100%;
}
.rishthe-ad-banner__img {
    width: 100%;
    max-width: 100%;
    max-height: 200px;
    height: auto;
    object-fit: contain;
    object-position: center center;
    border-radius: var(--radius-md);
    display: block;
    margin: 0 auto;
}
.rishthe-ad-slot--profile .rishthe-ad-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    background: var(--soft-bg, #f8f6fc);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.rishthe-ad-slot--profile .rishthe-ad-banner__img {
    max-height: 120px;
}

/* Compose bar — input + Send */
.chat-compose {
    flex-shrink: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    padding-bottom: calc(0.65rem + env(safe-area-inset-bottom, 0px));
    background: var(--white);
    border-top: 1px solid rgba(123, 44, 191, 0.1);
    box-shadow: 0 -4px 16px rgba(123, 44, 191, 0.06);
}
.chat-compose--readonly {
    background: var(--soft-bg);
}
.chat-compose--readonly .chat-compose__input {
    background: #f3f4f6;
    cursor: not-allowed;
    opacity: 0.85;
}
.chat-compose--readonly .chat-send-btn {
    opacity: 0.45;
    cursor: not-allowed;
}
.chat-compose__upgrade {
    flex: 1 1 100%;
    width: 100%;
    padding: 0.5rem 0.65rem;
    background: rgba(123, 44, 191, 0.06);
    border-radius: var(--radius-md);
    text-align: center;
}
body.page-chat.logged-in .chat-compose {
    padding-bottom: calc(0.65rem + var(--bottom-nav-height));
}
@media (min-width: 992px) {
    body.page-chat.logged-in .chat-compose {
        padding-bottom: calc(0.65rem + env(safe-area-inset-bottom, 0px));
    }
}
.chat-compose__toolbar {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex-shrink: 0;
}
.chat-compose__tool {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: var(--soft-bg);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
}
.chat-compose__tool:hover {
    background: var(--soft-pink);
}
.chat-compose__input-wrap {
    flex: 1;
    min-width: 0;
}
.chat-compose__input {
    width: 100%;
    min-height: 42px;
    max-height: 120px;
    resize: none;
    border: 1.5px solid var(--lavender);
    border-radius: 14px;
    padding: 0.6rem 0.9rem;
    font-size: 0.9rem;
    font-family: var(--font-body);
    line-height: 1.4;
    background: var(--soft-bg);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.chat-compose__input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(123, 44, 191, 0.12);
}
.chat-compose__input::placeholder {
    color: #9ca3af;
}
.chat-send-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 48px;
    height: 42px;
    padding: 0 1rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(123, 44, 191, 0.35);
}
.chat-send-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(123, 44, 191, 0.45);
}
.chat-send-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}
.chat-send-btn span {
    display: none;
}
@media (min-width: 480px) {
    .chat-send-btn {
        min-width: 88px;
    }
    .chat-send-btn span {
        display: inline;
    }
}

.chat-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    padding: 2rem;
    text-align: center;
}
.chat-empty[hidden] { display: none !important; }
.chat-empty__icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--soft-pink);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.chat-empty__icon i {
    font-size: 2rem;
    color: var(--primary);
}

/* Onboarding Stepper */
.onboarding-page {
    padding-top: calc(var(--nav-height) + 2rem);
    padding-bottom: 4rem;
    min-height: 100vh;
    background: var(--gradient-hero);
}
.stepper-horizontal {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}
.stepper-horizontal::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 5%;
    right: 5%;
    height: 3px;
    background: var(--purple-light);
    z-index: 0;
}
.stepper-progress-bar {
    /* position: absolute; */
    top: 20px;
    left: 5%;
    height: 3px;
    background: var(--gradient-rose);
    z-index: 1;
    transition: width 0.5s ease;
}
.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
}
.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--purple-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
}
.step-item.active .step-circle,
.step-item.completed .step-circle {
    border-color: var(--rose);
    background: var(--gradient-rose);
    color: white;
}
.step-item.completed .step-circle::after { content: '✓'; }
.step-label {
    font-size: 0.7rem;
    margin-top: 0.5rem;
    text-align: center;
    color: var(--text-muted);
    max-width: 80px;
}
.step-item.active .step-label { color: var(--rose); font-weight: 600; }
.stepper-vertical { display: none; }
.onboarding-form-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    min-height: 400px;
}
.onboarding-step { display: none; animation: fadeStep 0.4s ease; }
.onboarding-step.active { display: block; }
@keyframes fadeStep {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}
.photo-visibility {
    border: 1px solid var(--lavender);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    background: #fff;
}
.photo-visibility__options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}
.photo-visibility__option {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid var(--lavender);
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    font-size: 0.85rem;
    color: var(--text);
    cursor: pointer;
}
.photo-visibility__option input {
    margin: 0;
}
.select2-container--bootstrap-5 .select2-selection {
    min-height: calc(2.25rem + 2px);
    border-color: var(--lavender);
    background: #fff;
    border-radius: 10px;
    box-shadow: none;
}
.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    line-height: 1.5;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
    color: var(--text);
}
.select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow {
    height: calc(2.25rem + 2px);
}
.select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow b {
    border-color: var(--primary) transparent transparent transparent;
}
.select2-container--bootstrap-5.select2-container--focus .select2-selection,
.select2-container--bootstrap-5 .select2-selection:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(123, 44, 191, 0.15);
}
.select2-container--bootstrap-5 .select2-dropdown {
    border-color: var(--lavender);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.select2-container--bootstrap-5 .select2-search .select2-search__field {
    border-color: var(--lavender);
    border-radius: 8px;
}
.select2-container--bootstrap-5 .select2-results__option {
    color: var(--text);
}
.select2-container--bootstrap-5 .select2-results__option--highlighted,
.select2-container--bootstrap-5 .select2-results__option--highlighted.select2-results__option--selectable {
    background: rgba(123, 44, 191, 0.12);
    color: var(--primary-dark);
}
.select2-container--bootstrap-5 .select2-results__option[aria-selected="true"] {
    background: rgba(123, 44, 191, 0.08);
    color: var(--primary-dark);
}
.select2-container--bootstrap-5 .select2-selection__placeholder {
    color: var(--text-muted);
}
@media (max-width: 767.98px) {
    .select2-container {
        font-size: 16px;
    }
}
.photo-upload-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
@media (min-width: 576px) {
    .photo-upload-grid { grid-template-columns: repeat(4, 1fr); }
}
.photo-upload-box {
    aspect-ratio: 3/4;
    border: 2px dashed var(--purple-light);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    background: var(--soft-pink);
}
.photo-upload-box:hover { border-color: var(--rose); background: var(--pink); }
.photo-upload-box.main-photo { border-color: var(--rose-gold); border-width: 3px; }
.photo-upload-box.main-photo::before {
    content: 'Main Photo';
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--gradient-gold);
    color: white;
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    z-index: 2;
}
.photo-upload-box.has-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.photo-upload-box .remove-photo {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3;
}
.photo-upload-box.has-image .remove-photo { display: flex; }
.upload-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--purple-light);
}
.upload-progress-bar {
    height: 100%;
    background: var(--gradient-rose);
    width: 0;
    transition: width 0.3s;
}

/* Notifications */
.notification-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--soft-pink);
    transition: var(--transition);
}
.notification-item:hover { background: var(--soft-pink); }
.notification-item.unread { background: rgba(123,44,191,0.06); }
.notif-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.notif-icon.match { background: #fce7f3; color: var(--rose); }
.notif-icon.interest { background: #e8e0f0; color: var(--purple); }
.notif-icon.view { background: #fef3c7; color: var(--rose-gold); }
.notif-icon.premium { background: #fef9c3; color: #ca8a04; }
.notif-icon.message { background: #dbeafe; color: #3b82f6; }

/* Mobile Bottom Nav */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px));
    min-height: var(--bottom-nav-height);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    box-shadow: 0 -4px 20px rgba(123, 44, 191, 0.1);
    border-top: 1px solid var(--lavender);
    z-index: 1030;
    padding: 0.35rem 0.15rem env(safe-area-inset-bottom, 0px);
}
.mobile-bottom-nav a,
.mobile-bottom-nav__more {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.62rem;
    font-weight: 500;
    position: relative;
    padding: 0.35rem 0.2rem;
    min-height: 48px;
    min-width: 0;
    flex: 1;
    border: none;
    background: transparent;
    text-decoration: none;
    transition: color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}
.mobile-bottom-nav a i,
.mobile-bottom-nav__more i {
    font-size: 1.2rem;
    margin-bottom: 0.1rem;
    line-height: 1;
}
.mobile-bottom-nav a.active,
.mobile-bottom-nav__more.active {
    color: var(--primary);
    font-weight: 600;
}
.mobile-bottom-nav a.active i,
.mobile-bottom-nav__more.active i {
    color: var(--primary);
}
.bottom-badge {
    position: absolute;
    top: 0;
    right: -4px;
    background: var(--rose);
    color: white;
    font-size: 0.6rem;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: normal;
}

/* Footer */
.rishthe-footer {
    background: var(--gradient-brand);
    color: rgba(255,255,255,0.8);
    position: relative;
    margin-top: 4rem;
}
.footer-wave {
    display: none;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: white !important;
}
.footer-brand .brand-logo { flex-shrink: 0; }
.footer-heading {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
}
.footer-links { list-style: none; padding: 0; }
.footer-links a {
    color: rgba(255,255,255,0.7);
    display: block;
    padding: 0.35rem 0;
    font-size: 0.9rem;
}
.footer-links a:hover { color: var(--rose-gold); }
.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 0.5rem;
    transition: var(--transition);
}
.social-links a:hover { background: var(--white); color: var(--primary); }
.newsletter-form .form-control {
    border-radius: 50px 0 0 50px;
    border: none;
    background: rgba(255,255,255,0.1);
    color: white;
}
.newsletter-form .form-control::placeholder { color: rgba(255,255,255,0.5); }
.app-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.app-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    color: white !important;
    transition: var(--transition);
}
.app-btn:hover { background: var(--rose); }
.app-btn i { font-size: 1.5rem; }
.app-btn small { display: block; font-size: 0.65rem; opacity: 0.8; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

/* Skeleton Loaders */
.skeleton {
    background: linear-gradient(90deg, var(--purple-light) 25%, var(--soft-pink) 50%, var(--purple-light) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.skeleton-card { height: 380px; }
.skeleton-line { height: 14px; margin-bottom: 0.5rem; }
.skeleton-line.short { width: 60%; }

/* Empty States */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}
.empty-state i {
    font-size: 4rem;
    color: var(--purple-light);
    margin-bottom: 1rem;
}

/* Toast */
.toast-rishthe {
    background: var(--white);
    border-left: 4px solid var(--rose);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
}
.toast-rishthe.success { border-left-color: #22c55e; }
.toast-rishthe.error { border-left-color: #ef4444; }

/* Modal */
.modal-rishthe .modal-content {
    border-radius: var(--radius);
    border: none;
    box-shadow: var(--shadow-lg);
}
.modal-rishthe .modal-header {
    border-bottom: 1px solid var(--soft-pink);
    background: var(--gradient-hero);
}

/* FAQ Accordion */
.faq-accordion .accordion-item {
    border: none;
    margin-bottom: 0.75rem;
    border-radius: var(--radius-sm) !important;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.faq-accordion .accordion-button {
    font-weight: 500;
    background: var(--white);
    border-radius: var(--radius-sm) !important;
}
.faq-accordion .accordion-button:not(.collapsed) {
    background: var(--soft-pink);
    color: var(--rose-dark);
    box-shadow: none;
}

/* Page headers (inner pages) */
.page-hero-inner {
    background: var(--gradient-hero);
    padding: calc(var(--nav-height) + 3rem) 0 3rem;
    text-align: center;
}
.page-hero-inner h1 { font-size: clamp(2rem, 4vw, 2.75rem); }

/* Pagination */
.pagination .page-link {
    border-radius: 50%;
    margin: 0 0.2rem;
    border: none;
    color: var(--rose);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pagination .page-item.active .page-link {
    background: var(--gradient-rose);
    color: white;
}

/* Settings tabs */
.settings-nav .nav-link {
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
}
.settings-nav .nav-link.active {
    background: var(--soft-pink);
    color: var(--rose);
}

.settings-theme-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.settings-theme-option {
    flex: 1 1 140px;
    max-width: 220px;
    margin: 0;
    cursor: pointer;
}

.settings-theme-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.settings-theme-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 110px;
    padding: 1.25rem 1rem;
    border: 2px solid var(--lavender);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--text);
    font-weight: 600;
    transition: var(--transition);
}

.settings-theme-card i {
    font-size: 1.5rem;
    color: var(--primary);
}

.settings-theme-option input:checked + .settings-theme-card {
    border-color: var(--primary);
    background: rgba(123, 44, 191, 0.08);
    box-shadow: var(--shadow-sm);
}

.settings-theme-option input:focus-visible + .settings-theme-card {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
}

.settings-danger-zone {
    margin-top: 2rem;
    padding: 1.25rem;
    border: 1px solid rgba(220, 53, 69, 0.25);
    border-radius: var(--radius-sm);
    background: rgba(220, 53, 69, 0.04);
}

/* Success story submit */
.success-story-panel__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--soft-lavender);
    color: var(--primary);
    flex-shrink: 0;
    font-size: 1.1rem;
}
.success-story-panel--pending .success-story-panel__icon {
    background: #fef3c7;
    color: #b45309;
}
.success-story-panel--approved .success-story-panel__icon,
.success-story-panel--info .success-story-panel__icon {
    background: rgba(123, 44, 191, 0.12);
    color: var(--primary);
}
.success-story-panel--rejected .success-story-panel__icon {
    background: rgba(220, 53, 69, 0.12);
    color: #dc3545;
}
.success-story-preview img {
    max-width: 220px;
    max-height: 160px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--lavender);
}

/* Responsive */
@media (max-width: 1199.98px) {
    .dash-matches-grid { grid-template-columns: 1fr; }
}
@media (max-width: 991.98px) {
    .dashboard-layout,
    .search-mini-select { max-width: none; flex: 1; min-width: 70px; }
    .results-top-bar { flex-direction: column; align-items: stretch; }
    .results-top-actions { justify-content: space-between; }
    .advanced-filter-modal .modal-body {
        max-height: 75vh;
    }
    .filter-modal-section { height: auto; }
    .dash-stats { grid-template-columns: repeat(2, 1fr); }
    .filter-sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        width: 300px;
        height: 100vh;
        z-index: 1040;
        transition: left 0.3s ease;
        max-height: 100vh;
        border-radius: 0;
    }
    .filter-sidebar.show { left: 0; }
    .filter-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.4);
        z-index: 1035;
        display: none;
    }
    .filter-overlay.show { display: block; }
    .chat-page {
        height: calc(100vh - var(--nav-height) - var(--bottom-nav-height));
    }
    .chat-sidebar {
        position: fixed;
        left: -100%;
        top: var(--nav-height);
        width: min(320px, 92vw);
        height: calc(100vh - var(--nav-height) - var(--bottom-nav-height));
        z-index: 1050;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-lg);
    }
    .chat-sidebar.show,
    .chat-page.show-chat .chat-sidebar { left: 0; }
    .chat-page.show-chat .chat-main { width: 100%; }
    .chat-compose__toolbar {
        flex-direction: row;
    }
    .profile-card-list { grid-template-columns: 1fr; }
    .profile-gallery { grid-template-columns: repeat(3, 1fr); }
    .stepper-horizontal { display: none; }
    .stepper-vertical {
        display: block;
        margin-bottom: 1.5rem;
    }
    .stepper-vertical .step-item {
        flex-direction: row;
        gap: 1rem;
        margin-bottom: 0.75rem;
        align-items: center;
    }
    .stepper-vertical .step-label { text-align: left; max-width: none; }
    body.guest .hero-section { padding-top: calc(var(--nav-height) + 1rem); }
}
@media (max-width: 767.98px) {
    .partner-search-box { margin-top: -40px; padding: 1.25rem; }
    .hero-floating-card { display: none; }
    .info-grid { grid-template-columns: 1fr; }
    .plan-card.popular { transform: none; }
    .dash-topbar { margin-bottom: 1rem; }
    .dashboard-layout {
        padding-top: 0.75rem;
    }
}
@media (min-width: 992px) {
    body.logged-in .page-content { padding-left: 0; }
}

/* Legal content */
.legal-content { background: var(--white); border-radius: var(--radius); padding: 2.5rem; box-shadow: var(--shadow-sm); }
.legal-content h4 { margin-top: 2rem; color: var(--rose-dark); }

/* Interest tags */
.interest-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.interest-tag {
    background: var(--soft-pink);
    color: var(--rose-dark);
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.85rem;
}

/* Carousel controls */
.slider-nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}
.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--purple-light);
    border: none;
    padding: 0;
    transition: var(--transition);
}
.slider-dot.active { background: var(--rose); width: 28px; border-radius: 5px; }

/* ========== Matches & Interests pages ========== */
body.page-matches,
body.page-interests {
    background: linear-gradient(180deg, var(--soft-bg) 0%, var(--soft-lavender) 140px, var(--lavender) 100%);
}

.app-page-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
    color: var(--white);
    box-shadow: var(--shadow-md);
}
.app-page-hero--matches {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, #9d4edd 100%);
}
.app-page-hero--interests {
    background: linear-gradient(135deg, #9d174d 0%, var(--rose) 50%, #f472b6 100%);
}
.app-page-hero--discover {
    background: linear-gradient(135deg, #1e3a5f 0%, var(--primary) 55%, #9d4edd 100%);
}
.app-page-hero--profile {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #6d28d9 100%);
}
.app-page-hero--premium {
    background: linear-gradient(135deg, #78350f 0%, #d97706 50%, #fbbf24 100%);
}
.app-page-hero--support {
    background: linear-gradient(135deg, #374151 0%, #6b7280 100%);
}
.app-page-hero--events {
    background: linear-gradient(135deg, #065f46 0%, #059669 50%, #34d399 100%);
}
body.page-app {
    background: linear-gradient(180deg, var(--soft-bg) 0%, var(--soft-lavender) 140px, var(--lavender) 100%);
}
.app-page-hero__content h1 {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    color: var(--white);
}
.app-page-hero__content p {
    font-size: 0.88rem;
    opacity: 0.92;
}

.app-mini-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.app-mini-stat {
    background: var(--white);
    border: 1px solid rgba(123, 44, 191, 0.1);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.app-mini-stat:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.app-mini-stat strong {
    display: block;
    font-size: 1.35rem;
    color: var(--primary-dark);
    line-height: 1.2;
}
.app-mini-stat span {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.app-mini-stat--highlight strong { color: var(--primary); }
.app-mini-stat--rose strong { color: var(--rose); }

.app-page-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.app-page-toolbar .results-tabs {
    background: var(--white);
    padding: 0.25rem;
    border-radius: 8px;
    border: 1px solid var(--lavender);
}
.app-sort-select {
    min-width: 140px;
}

.app-tab-panel { display: none; }
.app-tab-panel.active { display: block; }

.member-cards-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.member-rich-card {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 1rem;
    align-items: center;
    background: var(--white);
    border: 1px solid rgba(123, 44, 191, 0.1);
    border-radius: var(--radius);
    padding: 1rem 1.15rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.member-rich-card:hover {
    border-color: rgba(123, 44, 191, 0.25);
    box-shadow: var(--shadow-md);
}

.member-rich-card__photo {
    position: relative;
    display: block;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 1;
}
.member-rich-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.member-rich-card__online {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 10px;
    height: 10px;
    background: #22c55e;
    border: 2px solid var(--white);
    border-radius: 50%;
}
.member-rich-card__score {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(91, 33, 182, 0.9));
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    text-align: center;
    padding: 0.35rem 0.25rem 0.25rem;
}
.member-rich-card__badge {
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    text-transform: uppercase;
}
.member-rich-card__badge--new {
    background: var(--rose);
    color: var(--white);
}

.member-rich-card__body { min-width: 0; }
.member-rich-card__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}
.member-rich-card__name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}
.member-rich-card__name a {
    color: var(--text);
    text-decoration: none;
}
.member-rich-card__name a:hover { color: var(--primary); }
.member-rich-card__meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}
.member-rich-card__meta i { color: var(--primary); margin-right: 0.2rem; }

.member-rich-card__compat {
    position: relative;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}
.member-rich-card__compat .compat-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
.member-rich-card__compat .ring-bg {
    fill: none;
    stroke: var(--lavender);
    stroke-width: 3;
}
.member-rich-card__compat .ring-fill {
    fill: none;
    stroke: var(--primary);
    stroke-width: 3;
    stroke-linecap: round;
}
.member-rich-card__compat > span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.member-rich-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.65rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}
.member-rich-card__tags span i {
    color: var(--purple);
    margin-right: 0.2rem;
    font-size: 0.7rem;
}
.member-rich-card__note {
    font-size: 0.78rem;
    color: var(--primary);
    margin: 0 0 0.25rem;
    background: var(--soft-bg);
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    display: inline-block;
}
.member-rich-card__note i { margin-right: 0.25rem; }
.member-rich-card__message {
    font-size: 0.82rem;
    color: var(--text);
    font-style: italic;
    margin: 0.35rem 0 0.25rem;
    padding-left: 0.5rem;
    border-left: 3px solid var(--lavender);
}
.member-rich-card__time {
    display: block;
    font-size: 0.72rem;
}

.member-rich-card__actions {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex-shrink: 0;
}
.member-rich-card__actions .btn {
    white-space: nowrap;
    min-width: 88px;
}

.interest-status {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    flex-shrink: 0;
}
.interest-status--pending {
    background: #fef3c7;
    color: #b45309;
}
.interest-status--viewed {
    background: #e0e7ff;
    color: #4338ca;
}
.interest-status--accepted,
.interest-status--mutual {
    background: #dcfce7;
    color: #15803d;
}

.app-empty-state,
.app-empty-inline {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px dashed var(--lavender);
}
.app-empty-state__icon,
.app-empty-inline i {
    font-size: 2.5rem;
    color: var(--lavender);
    margin-bottom: 1rem;
    display: block;
}
.app-empty-state h5 { margin-bottom: 0.5rem; }
.app-empty-state p {
    color: var(--text-muted);
    max-width: 320px;
    margin: 0 auto 1.25rem;
    font-size: 0.9rem;
}
.app-panel-intro { margin: 0; }

.app-page-tip {
    padding: 1rem 1.25rem !important;
}
.app-tip-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--soft-pink);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.app-tip-icon--gold {
    background: #fef3c7;
    color: #b45309;
}

@media (max-width: 991.98px) {
    .app-mini-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .member-rich-card {
        grid-template-columns: 80px 1fr;
    }
    .member-rich-card__actions {
        grid-column: 1 / -1;
        flex-direction: row;
        flex-wrap: wrap;
    }
    .member-rich-card__compat {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .app-page-hero {
        padding: 1rem 1.15rem;
    }
    .member-rich-card {
        grid-template-columns: 72px 1fr;
        padding: 0.85rem;
    }
    .member-rich-card__actions .btn {
        flex: 1;
        min-width: 0;
    }
}

/* ========== Redesigned dashboard sidebar ========== */
.sidebar-quick {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.35rem;
    margin-bottom: 0.65rem;
}
.sidebar-quick__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.45rem 0.2rem;
    background: var(--white);
    border: 1px solid rgba(123, 44, 191, 0.12);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.62rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}
.sidebar-quick__item i { font-size: 0.95rem; color: var(--primary); }
.sidebar-quick__item:hover,
.sidebar-quick__item.active {
    background: var(--soft-pink);
    border-color: var(--primary);
    color: var(--primary-dark);
}
.sidebar-quick__badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--rose);
    color: var(--white);
    font-size: 0.55rem;
    font-style: normal;
    min-width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-search-wrap {
    position: relative;
    margin-bottom: 0.5rem;
}
.sidebar-search-wrap > i {
    position: absolute;
    left: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: var(--primary);
    pointer-events: none;
}
.sidebar-search-input {
    width: 100%;
    height: 34px;
    padding: 0 2rem 0 2rem;
    font-size: 0.78rem;
    border: 1px solid var(--lavender);
    border-radius: var(--radius-sm);
    background: var(--white);
    font-family: var(--font-body);
}
.sidebar-search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(123, 44, 191, 0.12);
}
.sidebar-search-clear {
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: var(--text-muted);
    padding: 0.2rem 0.35rem;
    font-size: 0.7rem;
    cursor: pointer;
}

.sidebar-nav--accordion {
    max-height: calc(100vh - var(--nav-height) - 280px);
    overflow-y: auto;
    scrollbar-width: thin;
    padding: 0.35rem !important;
}
.sidebar-accordion {
    margin-bottom: 0.2rem;
    border-radius: var(--radius-sm);
}
.sidebar-accordion__toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.55rem;
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}
.sidebar-accordion__toggle:hover { background: var(--soft-bg); }
.sidebar-accordion__icon {
    width: 16px;
    text-align: center;
    color: var(--primary);
    font-size: 0.8rem;
}
.sidebar-accordion__label { flex: 1; text-align: left; }
.sidebar-accordion__count {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--soft-bg);
    padding: 0.05rem 0.35rem;
    border-radius: 50px;
}
.sidebar-accordion__chevron {
    font-size: 0.65rem;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}
.sidebar-accordion.is-open .sidebar-accordion__chevron { transform: rotate(180deg); }
.sidebar-accordion__panel {
    display: none;
    padding: 0 0.25rem 0.35rem 0.35rem;
}
.sidebar-accordion.is-open .sidebar-accordion__panel { display: block; }
.sidebar-nav-empty {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    padding: 0.75rem 0.5rem;
    margin: 0;
}
.sidebar-browse-all { margin-top: 0.5rem; }

/* Mobile menu bar */
.dash-menu-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.65rem;
    background: var(--white);
    border: 1px solid rgba(123, 44, 191, 0.12);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 0.75rem;
}
.dash-menu-bar__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.65rem;
    border: 1px solid var(--lavender);
    border-radius: var(--radius-sm);
    background: var(--soft-bg);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-dark);
    cursor: pointer;
}
.dash-menu-bar__btn i { color: var(--primary); }
.dash-menu-bar__quick {
    display: flex;
    flex: 1;
    justify-content: center;
    gap: 0.35rem;
}
.dash-menu-bar__icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    background: var(--soft-bg);
    text-decoration: none;
    transition: var(--transition);
}
.dash-menu-bar__icon i { font-size: 1rem; color: var(--primary); }
.dash-menu-bar__icon:hover,
.dash-menu-bar__icon.active {
    background: var(--soft-pink);
    color: var(--primary-dark);
}
.dash-menu-bar__btn--grid {
    padding: 0.4rem 0.55rem;
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}
.dash-menu-bar__btn--grid i { color: var(--white); }

/* Offcanvas drawer */
.dash-nav-offcanvas { width: min(320px, 88vw); }
.dash-nav-offcanvas .offcanvas-body {
    padding: 1rem;
    background: var(--soft-bg);
}
.drawer-nav__heading {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin: 0.75rem 0 0.35rem;
    padding: 0 0.25rem;
}
.drawer-nav__heading:first-child { margin-top: 0; }
.drawer-nav__link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.65rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    margin-bottom: 0.1rem;
    background: var(--white);
    border: 1px solid transparent;
}
.drawer-nav__link i { width: 18px; color: var(--primary); text-align: center; }
.drawer-nav__link:hover,
.drawer-nav__link.active {
    background: var(--soft-pink);
    color: var(--rose-dark);
    border-color: rgba(123, 44, 191, 0.15);
}
.drawer-nav__link .nav-badge { margin-left: auto; }

/* All menus modal */
.app-menu-modal .modal-content {
    border: none;
    border-radius: var(--radius);
    overflow: hidden;
}
.app-menu-modal .modal-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
}
.app-menu-modal .modal-header .btn-close { filter: brightness(0) invert(1); }
.app-menu-search {
    position: relative;
}
.app-menu-search i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
}
.app-menu-search .form-control {
    padding-left: 2.25rem;
    border-radius: var(--radius-sm);
    border-color: var(--lavender);
}
.app-menu-section-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}
.app-menu-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.5rem;
}
.app-menu-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.85rem 0.5rem;
    background: var(--soft-bg);
    border: 1px solid var(--lavender);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
}
.app-menu-tile i {
    font-size: 1.15rem;
    color: var(--primary);
}
.app-menu-tile:hover,
.app-menu-tile.active {
    background: var(--soft-pink);
    border-color: var(--primary);
    color: var(--primary-dark);
}

/* Visitor list */
.visitor-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.15rem;
    border-bottom: 1px solid var(--soft-bg);
    transition: var(--transition);
}
.visitor-list-item:last-child { border-bottom: none; }
.visitor-list-item:hover { background: var(--soft-bg); }
.visitor-list-item__photo {
    position: relative;
    flex-shrink: 0;
}
.visitor-list-item__photo img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--lavender);
}
.visitor-list-item__premium {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: #fef3c7;
    color: #b45309;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 0.55rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
}
.visitor-list-item__name {
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
}
.visitor-list-item__name:hover { color: var(--primary); }
.visitor-list-item__actions {
    display: flex;
    gap: 0.35rem;
    flex-shrink: 0;
}
.card-modern-header {
    background: var(--soft-bg);
}

/* Nearby */
.nearby-map-placeholder {
    background: linear-gradient(135deg, var(--soft-bg), var(--lavender));
    border-radius: var(--radius-sm);
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.nearby-map-placeholder i {
    font-size: 2rem;
    color: var(--primary);
    display: block;
    margin-bottom: 0.5rem;
}
.nearby-distance-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(123, 44, 191, 0.92);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 50px;
}
.nearby-radius-slider { accent-color: var(--primary); }

/* Blocked */
.blocked-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid var(--soft-bg);
}
.blocked-list-item:last-child { border-bottom: none; }
.blocked-list-item__img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    filter: grayscale(0.4);
}

/* Inclusive */
.inclusive-banner {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 1.25rem !important;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5) !important;
    border: 1px solid #a7f3d0 !important;
}
.inclusive-banner i { font-size: 1.5rem; color: #059669; }
.inclusive-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    background: #ecfdf5;
    color: #047857;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    margin-bottom: 0.35rem;
}

/* Events */
.event-card {
    padding: 1.25rem;
    position: relative;
}
.event-card__badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    background: var(--soft-bg);
    color: var(--primary);
    padding: 0.2rem 0.55rem;
    border-radius: 50px;
}
.event-card__premium { position: absolute; top: 1rem; right: 1rem; }
.event-card__datetime { font-size: 0.85rem; color: var(--text-muted); }
.event-card__datetime i { color: var(--primary); margin-right: 0.25rem; }
.event-card__status {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.55rem;
    border-radius: 50px;
}
.event-card__status--live { background: rgba(25, 135, 84, 0.12); color: #198754; }
.event-card__status--upcoming { background: var(--soft-bg); color: var(--primary); }
.event-card__status--ended { background: #f1f3f5; color: #6c757d; }
.event-terms-box {
    max-height: 320px;
    overflow-y: auto;
    padding: 1rem;
    border: 1px solid rgba(123, 44, 191, 0.12);
    border-radius: 12px;
    background: var(--soft-bg, #faf8fc);
}
.event-terms-section + .event-terms-section { margin-top: 1rem; }
.event-terms-section h6 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--primary);
}
.event-terms-section p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
}
.event-room-panel { min-height: 280px; }
.event-room-stage {
    text-align: center;
    padding: 2.5rem 1rem;
    border-radius: 16px;
    background: var(--soft-bg, #faf8fc);
    border: 1px dashed rgba(123, 44, 191, 0.2);
}
.event-room-live {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: #198754;
    font-size: 0.9rem;
}
.event-room-live__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #198754;
    animation: event-live-pulse 1.2s ease-in-out infinite;
}
@keyframes event-live-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.oe-state__inner {
    text-align: center;
    padding: 2rem 1rem;
}
.oe-tabs {
    display: flex;
    gap: 0.35rem;
    padding: 0.25rem;
    background: var(--soft-bg, #faf8fc);
    border-radius: 10px;
    margin-bottom: 0.75rem;
}
.oe-tab {
    flex: 1;
    border: 0;
    background: transparent;
    border-radius: 8px;
    padding: 0.55rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}
.oe-tab.is-active {
    background: var(--primary, #7B2CBF);
    color: #fff;
}
.oe-categories-wrap { margin-bottom: 0.75rem; }
.oe-categories-loading {
    font-size: 0.82rem;
    color: var(--text-muted);
    padding: 0.5rem 0;
}
.oe-categories {
    display: flex;
    gap: 0.45rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: thin;
}
.oe-category {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid rgba(123, 44, 191, 0.2);
    background: #fff;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}
.oe-category.is-active {
    background: var(--primary, #7B2CBF);
    border-color: var(--primary, #7B2CBF);
    color: #fff;
}
.oe-stage {
    position: relative;
    min-height: 320px;
    border-radius: 16px;
    background: var(--soft-bg, #faf8fc);
    border: 1px dashed rgba(123, 44, 191, 0.15);
    padding: 1rem 0.75rem 1.25rem;
}
.oe-timer-wrap {
    position: absolute;
    top: 0.65rem;
    right: 0.75rem;
    z-index: 2;
}
.oe-timer {
    position: relative;
    width: 44px;
    height: 44px;
}
.oe-timer__svg {
    width: 44px;
    height: 44px;
    transform: rotate(-90deg);
}
.oe-timer__track {
    fill: none;
    stroke: rgba(123, 44, 191, 0.15);
    stroke-width: 3;
}
.oe-timer__progress {
    fill: none;
    stroke: var(--primary, #7B2CBF);
    stroke-width: 3;
    stroke-linecap: round;
}
.oe-timer__label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary-dark, #5B1F96);
}
.oe-profiles-loading,
.oe-profiles-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.oe-carousel-wrap {
    overflow: hidden;
    width: 100%;
}
.oe-carousel {
    display: flex;
    gap: 0;
    overflow-x: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 0;
    scrollbar-width: none;
    touch-action: pan-y pinch-zoom;
}
.oe-carousel::-webkit-scrollbar { display: none; }
.oe-profile-card {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(31, 21, 51, 0.08);
    border: 1px solid rgba(123, 44, 191, 0.08);
}
.oe-profile-card__photo {
    display: block;
    position: relative;
    aspect-ratio: 3 / 4;
    max-height: min(62vh, 420px);
    overflow: hidden;
    background: #f3eef8;
}
.oe-profile-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.oe-profile-card__verified {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    color: #2563eb;
    background: #fff;
    border-radius: 50%;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}
.oe-profile-card__body { padding: 0.85rem; }
.oe-profile-card__name {
    display: block;
    font-weight: 700;
    color: #1f1533;
    margin-bottom: 0.35rem;
}
.oe-profile-card__meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0 0 0.2rem;
}

/* Stats bars */
.stats-bars { display: flex; flex-direction: column; gap: 0.75rem; }
.stats-bar-row {
    display: grid;
    grid-template-columns: 80px 1fr 32px;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
}
.stats-bar {
    height: 8px;
    background: var(--lavender);
    border-radius: 50px;
    overflow: hidden;
}
.stats-bar-fill {
    height: 100%;
    border-radius: 50px;
    background: var(--primary);
}
.stats-bar-fill--success { background: #22c55e; }
.stats-bar-fill--warn { background: #f59e0b; }
.stats-bar-fill--muted { background: #9ca3af; }
.stats-bar-row em { font-style: normal; font-weight: 700; color: var(--primary-dark); }
.stats-engagement-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--soft-bg);
    display: flex;
    justify-content: space-between;
}
.stats-engagement-list li:last-child { border-bottom: none; }
.stat-highlight-card {
    background: var(--white);
    border: 1px solid rgba(123, 44, 191, 0.12);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.stat-highlight-card span {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.stat-highlight-card strong {
    font-size: 1.5rem;
    color: var(--primary-dark);
}

/* Transactions table */
.app-table thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    background: var(--soft-bg);
    border-bottom: 1px solid var(--lavender);
}
.app-table td { vertical-align: middle; font-size: 0.88rem; }
.tx-status {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 50px;
}
.tx-status--success { background: #dcfce7; color: #15803d; }
.tx-status--refunded { background: #fee2e2; color: #b91c1c; }

/* ========== Support tickets ========== */
.tickets-help-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem !important;
}
.tickets-help-banner__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--soft-pink);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.tickets-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.tickets-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.ticket-card {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 1rem;
    align-items: center;
    background: var(--white);
    border: 1px solid rgba(123, 44, 191, 0.1);
    border-radius: var(--radius);
    padding: 1rem 1.15rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.ticket-card:hover {
    border-color: rgba(123, 44, 191, 0.22);
    box-shadow: var(--shadow-md);
}
.ticket-card__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--ticket-color) 12%, white);
    color: var(--ticket-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
.ticket-card__body { min-width: 0; }
.ticket-card__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.25rem;
}
.ticket-card__id {
    font-size: 0.72rem;
    color: var(--primary-dark);
    background: var(--soft-bg);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
}
.ticket-card__subject {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text);
}
.ticket-card__excerpt {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ticket-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.85rem;
    font-size: 0.72rem;
    color: var(--text-muted);
}
.ticket-card__meta i {
    color: var(--primary);
    margin-right: 0.15rem;
    font-size: 0.68rem;
}
.ticket-card__actions {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex-shrink: 0;
}

.ticket-status {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.15rem 0.45rem;
    border-radius: 50px;
}
.ticket-status--open { background: #dbeafe; color: #1d4ed8; }
.ticket-status--in-progress { background: #fef3c7; color: #b45309; }
.ticket-status--resolved { background: #dcfce7; color: #15803d; }

.ticket-priority {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    text-transform: uppercase;
}
.ticket-priority--high { background: #fee2e2; color: #b91c1c; }
.ticket-priority--low { background: #f3f4f6; color: #6b7280; }

.tickets-filter-empty {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 1.5rem;
}

/* Ticket detail modal */
.ticket-detail-modal .modal-header {
    background: linear-gradient(135deg, #374151, #6b7280);
    color: var(--white);
}
.ticket-detail-modal .modal-header .btn-close { filter: brightness(0) invert(1); }
.ticket-detail-head {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--soft-bg);
}
.ticket-detail-head__icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--ticket-color) 14%, white);
    color: var(--ticket-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.ticket-thread {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 0.25rem;
}
.ticket-thread__msg {
    display: flex;
    flex-direction: column;
    max-width: 85%;
}
.ticket-thread__msg--you { align-self: flex-end; align-items: flex-end; }
.ticket-thread__msg--support,
.ticket-thread__msg--them { align-self: flex-start; align-items: flex-start; }
.ticket-thread__bubble {
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
}
.ticket-thread__msg--you .ticket-thread__bubble {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
}
.ticket-thread__msg--you .ticket-thread__bubble small { color: rgba(255,255,255,0.75) !important; }
.ticket-thread__msg--support .ticket-thread__bubble,
.ticket-thread__msg--them .ticket-thread__bubble {
    background: var(--soft-bg);
    border: 1px solid var(--lavender);
}
.ticket-thread__who {
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}
.ticket-reply-box textarea { resize: vertical; min-height: 72px; }

.ticket-thread--detail { max-height: none; }
.ticket-thread__label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.85;
}
.ticket-thread__msg--you .ticket-thread__label { color: rgba(255,255,255,0.85); }
.ticket-message-body {
    line-height: 1.55;
    white-space: normal;
    word-break: break-word;
}
.ticket-message-fields {
    margin: 0;
    display: grid;
    gap: 0.35rem 0.75rem;
}
.ticket-message-fields dt {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin: 0;
}
.ticket-message-fields dd {
    margin: 0 0 0.35rem;
    line-height: 1.5;
}
.ticket-thread__msg--you .ticket-message-fields dt { color: rgba(255,255,255,0.75); }

body.page-tickets .results-tab.active,
body.page-tickets .results-tab.active em {
    color: #fff !important;
}

body.page-tickets .btn-primary-rose,
body.page-tickets .btn-primary-rose:hover,
body.page-tickets .btn-primary-rose:focus,
body.page-tickets .btn-primary-rose:active,
body.page-tickets .btn-primary-rose i {
    color: #fff !important;
}

body.page-tickets .app-page-hero .btn {
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.12);
}

body.page-tickets .app-page-hero .btn:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.22);
    border-color: #fff;
}

@media (max-width: 767.98px) {
    .ticket-card {
        grid-template-columns: 40px 1fr;
    }
    .ticket-card__actions {
        grid-column: 1 / -1;
        flex-direction: row;
    }
    .ticket-card__actions .btn { flex: 1; }
}
