/* =============================================
   TOWNMATRIMONY - COMPLETE STYLESHEET
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;600;700&display=swap');

:root {
    --primary: #8B0000;
    --primary-light: #c0392b;
    --primary-dark: #5c0000;
    --gold: #d4af37;
    --gold-light: #f0d060;
    --cream: #fff8f0;
    --soft-pink: #fde8e8;
    --text-dark: #2c2c2c;
    --text-muted: #888;
    --card-shadow: 0 4px 24px rgba(139, 0, 0, 0.08);
    --card-hover: 0 8px 40px rgba(139, 0, 0, 0.16);
}

/* ---- BASE ---- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif !important;
    background-color: var(--cream) !important;
    color: var(--text-dark) !important;
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
.brand-logo {
    font-family: 'Playfair Display', serif !important;
}

/* Remove default main padding — each page controls its own spacing */
main {
    padding: 0 !important;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f9f0f0;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 10px;
}

/* =============================================
   NAVBAR
   ============================================= */
.matrimony-navbar {
    background: linear-gradient(135deg,
            #3d0000 0%,
            #8B0000 50%,
            #c0392b 100%) !important;
    box-shadow: 0 2px 20px rgba(139, 0, 0, 0.4) !important;
    padding: 10px 0 !important;
    z-index: 1030;
}

.navbar-brand.brand-logo {
    font-family: 'Playfair Display', serif !important;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    color: #d4af37 !important;
    letter-spacing: 1px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, color 0.3s ease;
}

.navbar-brand.brand-logo:hover {
    transform: scale(1.05);
    color: #f0d060 !important;
}

.matrimony-navbar .nav-link {
    color: rgba(255, 255, 255, 0.92) !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
    padding: 8px 12px !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif !important;
}

.matrimony-navbar .nav-link:hover {
    color: #d4af37 !important;
    background: rgba(255, 255, 255, 0.12) !important;
    transform: translateY(-2px);
}

.btn-register {
    background: linear-gradient(135deg, #d4af37, #f0d060) !important;
    color: #5c0000 !important;
    font-weight: 700 !important;
    border: none !important;
    box-shadow: 0 3px 14px rgba(212, 175, 55, 0.45) !important;
    transition: all 0.3s ease !important;
}

.btn-register:hover {
    transform: translateY(-3px) scale(1.06) !important;
    box-shadow: 0 8px 22px rgba(212, 175, 55, 0.55) !important;
    color: #3d0000 !important;
}

/* Upgrade button — distinct from Register */
.btn-upgrade {
    background: transparent !important;
    color: #f0d060 !important;
    font-weight: 700 !important;
    border: 1.5px solid rgba(212, 175, 55, 0.6) !important;
    transition: all 0.3s ease !important;
}

.btn-upgrade:hover {
    background: rgba(212, 175, 55, 0.15) !important;
    border-color: #f0d060 !important;
    color: #f0d060 !important;
    transform: translateY(-2px) !important;
}

.btn-logout {
    border: 1.5px solid rgba(255, 255, 255, 0.45) !important;
    transition: all 0.3s ease !important;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.18) !important;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    padding: 6px 10px !important;
}

/* Mobile nav dropdown — slides open below navbar */
@media (max-width: 991px) {
    .matrimony-navbar .navbar-collapse {
        background: linear-gradient(160deg, #3d0000 0%, #8B0000 100%) !important;
        padding: 12px 16px 16px !important;
        border-radius: 0 0 18px 18px;
        margin-top: 8px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    }

    .matrimony-navbar .navbar-nav {
        gap: 4px !important;
    }

    .matrimony-navbar .nav-link {
        padding: 10px 14px !important;
        border-radius: 10px !important;
    }

    /* Make Register & Upgrade buttons full-width on mobile */
    .matrimony-navbar .btn-register,
    .matrimony-navbar .btn-upgrade {
        display: block !important;
        text-align: center !important;
        margin-top: 4px !important;
    }
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero-section {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.45)),
        url('https://chennaiepc.com/images/matrimony1.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    min-height: 88vh !important;
    display: flex !important;
    align-items: center !important;
    position: relative;
    padding: 60px 0 50px !important;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

/* Heart image wrapper — desktop floats right, mobile centers on top */
.hero-image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-wrap img {
    max-width: 100%;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.45));
    animation: float 3.2s ease-in-out infinite;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 175, 55, 0.18);
    border: 1px solid rgba(212, 175, 55, 0.45);
    color: #f0d060;
    padding: 7px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.hero-title {
    font-family: 'Playfair Display', serif !important;
    font-size: clamp(2.4rem, 5vw, 4.2rem) !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    line-height: 1.15;
    text-shadow: 2px 3px 10px rgba(0, 0, 0, 0.45);
}

.hero-title span {
    color: #d4af37 !important;
    display: block;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: clamp(1rem, 2vw, 1.18rem);
    line-height: 1.75;
}

/* Hero stats row at bottom */
.hero-stats {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    margin-top: 36px;
}

.hero-stat-item .stat-val {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #d4af37;
    line-height: 1;
}

.hero-stat-item .stat-desc {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 4px;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn-matrimony-primary {
    display: inline-block;
    background: linear-gradient(135deg, #8B0000, #c0392b) !important;
    color: #fff !important;
    border: none !important;
    padding: 13px 34px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 18px rgba(139, 0, 0, 0.38);
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-matrimony-primary:hover {
    color: #fff !important;
    transform: translateY(-5px) scale(1.04);
    box-shadow: 0 12px 30px rgba(139, 0, 0, 0.48) !important;
}

.btn-matrimony-primary:active {
    transform: translateY(-1px) scale(0.97);
}

.btn-matrimony-gold {
    display: inline-block;
    background: linear-gradient(135deg, #d4af37, #f0d060) !important;
    color: #5c0000 !important;
    border: none !important;
    padding: 13px 34px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 5px 18px rgba(212, 175, 55, 0.42);
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    cursor: pointer;
}

.btn-matrimony-gold:hover {
    color: #3d0000 !important;
    transform: translateY(-5px) scale(1.04);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.52) !important;
}

.btn-matrimony-outline {
    display: inline-block;
    background: transparent !important;
    color: #fff !important;
    border: 2px solid rgba(255, 255, 255, 0.75) !important;
    padding: 11px 32px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-matrimony-outline:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #fff !important;
    border-color: #fff !important;
    transform: translateY(-3px);
}

.btn-interest {
    background: linear-gradient(135deg, #8B0000, #c0392b) !important;
    color: #fff !important;
    border: none !important;
    padding: 8px 22px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 3px 12px rgba(139, 0, 0, 0.3);
    cursor: pointer;
    text-decoration: none;
}

.btn-interest:hover {
    transform: translateY(-3px) scale(1.07) !important;
    box-shadow: 0 8px 22px rgba(139, 0, 0, 0.42) !important;
    color: #fff !important;
}

.btn-accept {
    background: linear-gradient(135deg, #27ae60, #2ecc71) !important;
    color: #fff !important;
    border: none !important;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(39, 174, 96, 0.3);
    cursor: pointer;
    text-decoration: none;
}

.btn-accept:hover {
    transform: translateY(-3px) scale(1.07) !important;
    box-shadow: 0 8px 22px rgba(39, 174, 96, 0.42) !important;
    color: #fff !important;
}

.btn-reject {
    background: linear-gradient(135deg, #c0392b, #e74c3c) !important;
    color: #fff !important;
    border: none !important;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(192, 57, 43, 0.3);
    cursor: pointer;
    text-decoration: none;
}

.btn-reject:hover {
    transform: translateY(-3px) scale(1.07) !important;
    box-shadow: 0 8px 22px rgba(192, 57, 43, 0.42) !important;
    color: #fff !important;
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(139, 0, 0, 0.35);
    }

    70% {
        box-shadow: 0 0 0 14px rgba(139, 0, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(139, 0, 0, 0);
    }
}

.pulse-btn {
    animation: pulse-ring 2.2s infinite;
}

/* =============================================
   STATS SECTION
   ============================================= */
.stats-section {
    background: linear-gradient(135deg, #3d0000 0%, #8B0000 100%) !important;
    padding: 65px 0 !important;
    position: relative;
    overflow: hidden;
}

.stats-section::after {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 320px;
    height: 320px;
    background: rgba(212, 175, 55, 0.06);
    border-radius: 50%;
    pointer-events: none;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-family: 'Playfair Display', serif !important;
    font-size: 3.2rem !important;
    font-weight: 800 !important;
    color: #d4af37 !important;
    line-height: 1;
}

.stat-label {
    color: rgba(255, 255, 255, 0.82) !important;
    font-size: 0.9rem;
    margin-top: 8px;
    font-weight: 500;
}

/* =============================================
   FEATURES SECTION
   ============================================= */
.features-section {
    background: #ffffff !important;
    padding: 90px 0 !important;
}

.feature-card {
    background: var(--cream) !important;
    border-radius: 22px !important;
    padding: 38px 28px !important;
    text-align: center;
    transition: all 0.38s ease;
    border: 1px solid rgba(139, 0, 0, 0.06) !important;
    height: 100%;
}

.feature-card:hover {
    background: #fff !important;
    transform: translateY(-10px);
    box-shadow: 0 16px 48px rgba(139, 0, 0, 0.14) !important;
    border-color: rgba(139, 0, 0, 0.12) !important;
}

.feature-icon {
    width: 75px;
    height: 75px;
    background: linear-gradient(135deg, #fde8e8, #fce4ec) !important;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin: 0 auto 22px;
    transition: all 0.38s ease;
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, #8B0000, #c0392b) !important;
    transform: rotate(8deg) scale(1.12);
}

/* =============================================
   CARDS
   ============================================= */
.matrimony-card {
    background: #fff !important;
    border-radius: 22px !important;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(139, 0, 0, 0.08) !important;
    transition: all 0.38s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(139, 0, 0, 0.06) !important;
    position: relative;
}

.matrimony-card:hover {
    transform: translateY(-10px) scale(1.015);
    box-shadow: 0 20px 52px rgba(139, 0, 0, 0.18) !important;
    border-color: rgba(139, 0, 0, 0.14) !important;
}

.matrimony-card .card-img-top {
    height: 225px;
    object-fit: cover;
    transition: transform 0.42s ease;
}

.matrimony-card:hover .card-img-top {
    transform: scale(1.05);
}

.card-photo-placeholder {
    height: 225px;
    background: linear-gradient(135deg, #fde8e8, #fce4ec) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4.5rem;
}

.card-badge-premium {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #d4af37, #f0d060) !important;
    color: #5c0000;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.45);
}

/* =============================================
   DASHBOARD
   ============================================= */
.dashboard-bg {
    background-image:
        linear-gradient(rgba(61, 0, 0, 0.84), rgba(139, 0, 0, 0.76)),
        url('https://images.unsplash.com/photo-1519741497674-611481863552?w=1600&q=80') !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
    padding: 55px 0 35px !important;
    margin-bottom: 30px;
}

.dashboard-bg .container {
    text-align: left;
}

.dashboard-bg h2,
.dashboard-bg .dashboard-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: #fff !important;
    margin-bottom: 8px;
}

.dashboard-bg p,
.dashboard-bg .dashboard-subtitle {
    color: rgba(255, 255, 255, 0.82) !important;
    font-size: 1rem;
    margin-bottom: 0;
}

.stats-row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    margin: 0 !important;
}

.stats-row>[class*="col"] {
    flex: 1 1 200px !important;
    max-width: 100% !important;
    padding: 0 !important;
}

.actions-row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    margin: 0 !important;
}

.actions-row>[class*="col"] {
    flex: 1 1 180px !important;
    padding: 0 !important;
}

.stat-card {
    background: #fff !important;
    border-radius: 18px !important;
    padding: 28px 20px !important;
    text-align: center;
    box-shadow: 0 4px 24px rgba(139, 0, 0, 0.08) !important;
    border: 1px solid rgba(139, 0, 0, 0.06) !important;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8B0000, #c0392b);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.stat-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 16px 42px rgba(139, 0, 0, 0.15) !important;
}

.stat-card:hover::after {
    transform: scaleX(1);
}

.stat-card .number {
    font-family: 'Playfair Display', serif !important;
    font-size: 2.6rem !important;
    font-weight: 800 !important;
    color: #8B0000 !important;
    display: block;
    line-height: 1.2;
}

.stat-card .label,
.stat-card p {
    color: var(--text-muted) !important;
    font-size: 0.88rem !important;
    margin-top: 6px;
    margin-bottom: 0;
}

.action-card {
    background: #fff !important;
    border-radius: 18px !important;
    padding: 30px 20px !important;
    text-align: center;
    box-shadow: 0 4px 24px rgba(139, 0, 0, 0.08) !important;
    border: 1px solid rgba(139, 0, 0, 0.06) !important;
    transition: all 0.38s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none !important;
    color: inherit !important;
    display: block;
    height: 100%;
}

.action-card:hover {
    transform: translateY(-10px) scale(1.025) !important;
    box-shadow: 0 20px 50px rgba(139, 0, 0, 0.17) !important;
    color: inherit !important;
    border-color: rgba(139, 0, 0, 0.18) !important;
}

.action-card .icon {
    font-size: 2.4rem;
    margin-bottom: 12px;
    display: block;
    transition: transform 0.3s ease;
}

.action-card:hover .icon {
    transform: scale(1.25) rotate(8deg);
}

/* =============================================
   FORMS
   ============================================= */
.form-section {
    background: #fff !important;
    border-radius: 22px !important;
    padding: 34px !important;
    box-shadow: 0 4px 24px rgba(139, 0, 0, 0.08) !important;
    border: 1px solid rgba(139, 0, 0, 0.06) !important;
    margin-bottom: 24px;
    width: 100%;
}

.form-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #8B0000 !important;
    padding-bottom: 12px;
    border-bottom: 2px solid #fde8e8 !important;
    margin-bottom: 24px;
}

.form-control,
.form-select {
    border: 1.5px solid #e8d5d5 !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    font-size: 0.92rem !important;
    transition: all 0.3s ease !important;
    background: #fafafa !important;
    width: 100% !important;
}

.form-control:focus,
.form-select:focus {
    border-color: #c0392b !important;
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.09) !important;
    background: #fff !important;
}

.form-label {
    font-weight: 600 !important;
    font-size: 0.88rem !important;
    color: #2c2c2c !important;
    margin-bottom: 6px !important;
    display: block !important;
}

.auth-wrapper {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}

.auth-card {
    background: #fff !important;
    border-radius: 24px !important;
    padding: 44px 40px !important;
    box-shadow: 0 8px 40px rgba(139, 0, 0, 0.12) !important;
    border: 1px solid rgba(139, 0, 0, 0.07) !important;
    width: 100%;
    max-width: 460px;
}

.auth-card .auth-title {
    font-family: 'Playfair Display', serif !important;
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: var(--text-dark) !important;
    text-align: center;
    margin-bottom: 6px;
}

.auth-card .auth-subtitle {
    text-align: center;
    color: var(--text-muted) !important;
    font-size: 0.92rem;
    margin-bottom: 28px;
}

.auth-card .form-group,
.auth-card .mb-3 {
    margin-bottom: 18px !important;
    text-align: left !important;
}

.auth-card .btn-matrimony-primary {
    width: 100%;
    text-align: center;
    display: block;
    padding: 13px 20px;
}

/* =============================================
   SEARCH PAGE
   ============================================= */
.search-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 30px 0;
}

.search-sidebar {
    background: #fff !important;
    border-radius: 22px !important;
    padding: 26px !important;
    box-shadow: 0 4px 24px rgba(139, 0, 0, 0.08) !important;
    position: sticky;
    top: 80px;
    width: 300px;
    flex-shrink: 0;
}

.search-results {
    flex: 1;
    min-width: 0;
}

.search-sidebar .filter-group {
    margin-bottom: 20px;
}

.search-sidebar .filter-group:last-child {
    margin-bottom: 0;
}

.search-sidebar .form-control,
.search-sidebar .form-select {
    margin-top: 6px;
}

.search-sidebar .age-range {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 6px;
}

.search-sidebar .age-range .form-control {
    margin-top: 0;
    flex: 1;
}

.filter-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    margin-bottom: 6px;
    display: block;
}

.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

/* =============================================
   INTEREST CARDS
   ============================================= */
.interest-card {
    background: #fff !important;
    border-radius: 18px !important;
    padding: 22px !important;
    box-shadow: 0 4px 24px rgba(139, 0, 0, 0.08) !important;
    border: 1px solid rgba(139, 0, 0, 0.06) !important;
    transition: all 0.3s ease;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.interest-card:hover {
    box-shadow: 0 12px 36px rgba(139, 0, 0, 0.14) !important;
    transform: translateY(-4px);
}

.interest-card-body {
    flex: 1;
    min-width: 0;
}

.interest-card-body h6,
.interest-card-body .name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-dark) !important;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.interest-card-body .meta {
    font-size: 0.82rem;
    color: var(--text-muted) !important;
    margin-bottom: 6px;
}

.interest-card-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.interest-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fde8e8;
    flex-shrink: 0;
}

.interest-avatar-placeholder {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fde8e8, #fce4ec) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border: 3px solid #fde8e8;
    flex-shrink: 0;
}

.interests-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.interests-counts {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.interests-counts span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.interests-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid #fde8e8;
    margin-bottom: 24px;
}

.interests-tabs a,
.interests-tabs .tab-link {
    padding: 10px 20px;
    border-radius: 10px 10px 0 0;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted) !important;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.interests-tabs a:hover,
.interests-tabs .tab-link:hover {
    color: var(--primary) !important;
    background: #fde8e8;
}

.interests-tabs a.active,
.interests-tabs .tab-link.active {
    color: var(--primary) !important;
    border-bottom-color: var(--primary);
    background: transparent;
}

.badge-pending {
    background: #fff8e1 !important;
    color: #e67e22 !important;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

.badge-accepted {
    background: #e8f5e9 !important;
    color: #27ae60 !important;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

.badge-rejected {
    background: #fce4ec !important;
    color: #c0392b !important;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

/* =============================================
   PROFILE SECTIONS
   ============================================= */
.profile-hero {
    background: linear-gradient(135deg, #3d0000, #c0392b) !important;
    padding: 40px !important;
    border-radius: 22px !important;
    color: #fff !important;
    margin-bottom: 24px;
}

.detail-card {
    background: #fff !important;
    border-radius: 18px !important;
    padding: 26px !important;
    box-shadow: 0 4px 24px rgba(139, 0, 0, 0.08) !important;
    border: 1px solid rgba(139, 0, 0, 0.06) !important;
    height: 100%;
    transition: box-shadow 0.3s ease;
}

.detail-card:hover {
    box-shadow: 0 12px 36px rgba(139, 0, 0, 0.13) !important;
}

.detail-card h6 {
    color: #8B0000 !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #fde8e8 !important;
    padding-bottom: 10px;
    margin-bottom: 16px;
}

/* =============================================
   EMPTY STATE
   ============================================= */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.empty-state .empty-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: block;
}

.empty-state h4 {
    font-family: 'Playfair Display', serif !important;
    font-size: 1.5rem;
    color: var(--text-dark) !important;
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--text-muted) !important;
    font-size: 0.95rem;
    max-width: 380px;
}

/* =============================================
   NOTIFICATIONS
   ============================================= */
.notification-item {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.notification-item.unread {
    background: #fde8e8 !important;
    border-color: rgba(139, 0, 0, 0.1);
}

.notification-item.read {
    background: #f8f8f8 !important;
}

.notification-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 16px rgba(139, 0, 0, 0.08);
}

/* =============================================
   PAGE WRAPPER
   ============================================= */
.page-wrapper {
    min-height: calc(100vh - 70px);
    padding: 36px 0 60px;
}

.page-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 2px solid #fde8e8;
}

.page-header h1,
.page-header h2 {
    margin-bottom: 0;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--text-dark) !important;
}

.page-header .page-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

/* =============================================
   FOOTER
   ============================================= */
.matrimony-footer {
    background: linear-gradient(135deg, #3d0000 0%, #1a0000 100%) !important;
    position: relative;
    overflow: hidden;
}

.matrimony-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, #f0d060, #d4af37);
}

.footer-link {
    color: rgba(255, 255, 255, 0.62) !important;
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    padding: 4px 0;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: #d4af37 !important;
    padding-left: 8px;
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.18);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-14px);
    }
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(139, 0, 0, 0.38);
    }

    70% {
        box-shadow: 0 0 0 16px rgba(139, 0, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(139, 0, 0, 0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

.heartbeat {
    animation: heartbeat 1.6s ease-in-out infinite;
}

.float-animation {
    animation: float 3.2s ease-in-out infinite;
}

.pulse-btn {
    animation: pulse-ring 2.2s infinite;
}

.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: all 0.72s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* HTMX */
.htmx-indicator {
    display: none;
}

.htmx-request .htmx-indicator {
    display: flex;
    justify-content: center;
    padding: 20px;
}

/* =============================================
   RESPONSIVE — TABLET (max 991px)
   ============================================= */
@media (max-width: 991px) {
    .search-layout {
        flex-direction: column;
    }

    .search-sidebar {
        position: static !important;
        width: 100% !important;
    }
}

/* =============================================
   RESPONSIVE — MOBILE (max 768px)
   ============================================= */
@media (max-width: 768px) {

    /* Hero: reduce height, adjust padding */
    .hero-section {
        min-height: auto !important;
        padding: 40px 0 44px !important;
        /* center content vertically for shorter screens */
        align-items: flex-start !important;
    }

    /* Stack hero row: image on top, text below */
    .hero-section .row {
        flex-direction: column-reverse !important;
    }

    /* Image col: center and shrink */
    .hero-section .col-lg-6:last-child,
    .hero-section .hero-image-wrap {
        display: flex !important;
        justify-content: center !important;
        margin-bottom: 28px !important;
    }

    .hero-image-wrap img {
        max-width: 220px !important;
    }

    /* Text col */
    .hero-section .col-lg-6:first-child {
        text-align: center !important;
    }

    .hero-badge {
        justify-content: center;
    }

    .hero-title {
        font-size: 2rem !important;
    }

    .hero-subtitle {
        font-size: 0.95rem !important;
    }

    /* Center CTA buttons */
    .hero-section .d-flex.gap-3 {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }

    /* Hero stats */
    .hero-stats {
        justify-content: center !important;
        gap: 20px !important;
    }

    /* Other sections */
    .stat-number {
        font-size: 2.4rem !important;
    }

    .matrimony-card .card-img-top {
        height: 185px;
    }

    .card-photo-placeholder {
        height: 185px;
    }

    .profile-hero {
        padding: 24px !important;
    }

    .form-section {
        padding: 22px !important;
    }

    .dashboard-bg {
        padding: 35px 0 22px !important;
        background-attachment: scroll !important;
    }

    .auth-card {
        padding: 30px 22px !important;
    }

    .interest-card {
        flex-wrap: wrap;
    }

    .interest-card-actions {
        width: 100%;
        justify-content: flex-start;
        margin-top: 10px;
    }

    .profiles-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

/* =============================================
   RESPONSIVE — SMALL MOBILE (max 480px)
   ============================================= */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem !important;
    }

    .hero-image-wrap img {
        max-width: 180px !important;
    }

    .brand-logo {
        font-size: 1.25rem !important;
    }

    .btn-matrimony-primary,
    .btn-matrimony-gold {
        padding: 11px 24px !important;
        font-size: 0.93rem !important;
    }

    .stat-card .number {
        font-size: 2rem !important;
    }

    .stats-section {
        padding: 40px 0 !important;
    }

    .page-header {
        flex-wrap: wrap;
    }

    /* Stack CTA buttons vertically on very small screens */
    .hero-section .d-flex.gap-3 {
        flex-direction: column !important;
        align-items: center !important;
    }

    .btn-matrimony-primary,
    .btn-matrimony-outline {
        width: 100% !important;
        text-align: center !important;
    }
}

/* =============================================
   INVITE LIMIT WARNING
   ============================================= */
.limit-warning-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 2px solid #f39c12;
    border-radius: 14px;
    padding: 14px 16px;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-6px);
    }

    40% {
        transform: translateX(6px);
    }

    60% {
        transform: translateX(-4px);
    }

    80% {
        transform: translateX(4px);
    }
}

.limit-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.limit-text {
    font-size: 0.85rem;
    color: #856404;
    line-height: 1.6;
}

.limit-upgrade-btn {
    display: inline-block;
    margin-top: 6px;
    background: linear-gradient(135deg, #8B0000, #c0392b);
    color: #fff !important;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.limit-upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.35);
}

.usage-bar-wrap {
    background: #f0f0f0;
    border-radius: 50px;
    height: 8px;
    overflow: hidden;
    margin-top: 6px;
}

.usage-bar-fill {
    height: 100%;
    border-radius: 50px;
    transition: width 0.5s ease;
}

.usage-bar-fill.safe {
    background: linear-gradient(90deg, #27ae60, #2ecc71);
}

.usage-bar-fill.warning {
    background: linear-gradient(90deg, #f39c12, #f1c40f);
}

.usage-bar-fill.danger {
    background: linear-gradient(90deg, #c0392b, #e74c3c);
}

.plan-badge-free {
    background: #f0f0f0;
    color: #666;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 50px;
    font-weight: 600;
}

.plan-badge-silver {
    background: linear-gradient(135deg, #bdc3c7, #ecf0f1);
    color: #2c3e50;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 50px;
    font-weight: 700;
}

.plan-badge-gold {
    background: linear-gradient(135deg, #d4af37, #f0d060);
    color: #5c0000;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 50px;
    font-weight: 700;
}

.limit-warning-box a.limit-upgrade-btn {
    pointer-events: all !important;
    cursor: pointer !important;
    display: inline-block !important;
}

.btn-interest.htmx-request {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.btn-interest.htmx-request::after {
    content: ' ⏳';
}

.htmx-settling {
    opacity: 1 !important;
    transition: none !important;
}