/* ============================================
   MATRIMONY USER FRONTEND - FRESH LIGHT THEME
   ============================================ */

:root {
    --primary: #C92528;
    --primary-dark: #A91E21;
    --primary-light: #E25557;
    --primary-pale: #FFF1F1;
    --secondary: #6E3C29;
    --secondary-pale: #F7EEE7;
    --accent: #E6A14A;
    --success: #27AE60;
    --danger: #E74C3C;
    --warning: #F39C12;
    --info: #3498DB;
    --dark: #2B2221;
    --body-bg: #F6EDE5;
    --card-bg: rgba(255, 255, 255, 0.94);
    --card-border: rgba(126, 72, 44, 0.12);
    --card-shadow: 0 14px 34px rgba(74, 33, 20, 0.08);
    --card-shadow-hover: 0 20px 44px rgba(126, 42, 31, 0.14);
    --text-primary: #332623;
    --text-secondary: #6D5B56;
    --text-muted: #B1A39E;
    --border-color: #E9DDD5;
    --navbar-height: 68px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background:
        radial-gradient(circle at top, rgba(246, 213, 154, 0.4), transparent 24%),
        linear-gradient(180deg, #F8EFE8 0%, var(--body-bg) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.mobile-nav-open,
body.public-nav-open {
    overflow: hidden;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #F0EBE8; }
::-webkit-scrollbar-thumb { background: #D4C5BE; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* Plain text links are pink, but NOT anchors styled as buttons (Login/Register etc.) */
a:not([class*="btn"]) { color: var(--primary); text-decoration: none; }
a:not([class*="btn"]):hover { color: var(--primary-dark); }

/* ============================================
   NAVBAR
   ============================================ */
.navbar-glass {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--navbar-height);
    background: rgba(255, 250, 246, 0.92);
    border-bottom: 1px solid rgba(126, 72, 44, 0.12);
    box-shadow: 0 12px 30px rgba(74, 33, 20, 0.06);
    backdrop-filter: blur(16px);
    z-index: 1050;
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 12px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-right: 32px;
    min-width: 0;
}

.navbar-brand .brand-logo {
    height: 44px;
    width: auto;
    display: block;
    object-fit: contain;
}

.navbar-brand .brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    min-width: 0;
}

.navbar-brand span {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.navbar-brand .brand-subtitle {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #A36B45;
    font-weight: 700;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
}

.nav-link-item {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary) !important;
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
}

.nav-link-item:hover {
    background: linear-gradient(180deg, rgba(201, 37, 40, 0.1) 0%, rgba(255, 255, 255, 0.95) 100%);
    color: var(--primary) !important;
}

.nav-link-item.active {
    background: linear-gradient(180deg, rgba(201, 37, 40, 0.14) 0%, rgba(255, 255, 255, 0.96) 100%);
    color: var(--primary) !important;
    font-weight: 600;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}

.nav-link-item i { font-size: 17px; }

/* Mobile Nav */
.mobile-nav {
    position: fixed;
    top: var(--navbar-height);
    left: 0; right: 0;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    z-index: 1085;
    padding: 8px 12px;
    display: none;
    flex-direction: column;
    gap: 2px;
    max-height: calc(100vh - var(--navbar-height));
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.mobile-nav.show {
    display: flex !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.mobile-nav-backdrop {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(45, 52, 54, 0.24);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 1080;
}

.mobile-nav-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-link {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; border-radius: 10px;
    font-size: 15px; font-weight: 500;
    color: var(--text-primary) !important;
    background: #FFFFFF;
    text-decoration: none; transition: var(--transition);
}

.mobile-nav-link:hover { background: var(--primary-pale); color: var(--primary) !important; }
.mobile-nav-link.active { background: var(--primary-pale); color: var(--primary) !important; }
.mobile-nav-link i { font-size: 18px; width: 24px; text-align: center; color: inherit; flex-shrink: 0; }

.navbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex-shrink: 0;
}

.navbar-btn {
    background: rgba(255, 251, 248, 0.92);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 40px; height: 40px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
    position: relative;
}

.navbar-btn:hover { background: var(--primary-pale); color: var(--primary); border-color: rgba(201, 37, 40, 0.12); }

.navbar-btn .notif-dot {
    position: absolute; top: 6px; right: 6px;
    width: 8px; height: 8px;
    background: var(--danger);
    border-radius: 50%;
    border: 2px solid white;
}

.user-dropdown {
    display: flex; align-items: center; gap: 10px;
    padding: 4px 10px 4px 4px;
    border-radius: 16px; cursor: pointer; transition: var(--transition);
}

.user-dropdown:hover { background: rgba(255, 251, 248, 0.92); }

.user-dropdown .avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 700; font-size: 14px; overflow: hidden;
}

.user-dropdown .avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-dropdown .user-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }

.mobile-toggle {
    background: none; border: none;
    color: var(--text-primary); font-size: 24px;
    cursor: pointer; padding: 4px 8px;
}

.mobile-bottom-nav {
    display: none;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
    border-radius: 22px;
    border: 1px solid rgba(126, 72, 44, 0.12);
    background: rgba(255, 250, 246, 0.94);
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 40px rgba(74, 33, 20, 0.14);
    z-index: 1045;
}

.mobile-bottom-nav-link {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    min-height: 58px;
    padding: 8px 4px;
    border-radius: 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.1;
    text-align: center;
    transition: var(--transition);
}

.mobile-bottom-nav-link i {
    font-size: 18px;
    line-height: 1;
}

.mobile-bottom-nav-label {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.mobile-bottom-nav-link:hover,
.mobile-bottom-nav-link.active {
    background: linear-gradient(180deg, rgba(201, 37, 40, 0.14) 0%, rgba(255, 255, 255, 0.96) 100%);
    color: var(--primary);
}

.mobile-bottom-nav-badge {
    position: absolute;
    top: 5px;
    right: 10px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--primary);
    color: #FFFFFF;
    font-size: 9px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 14px rgba(232, 82, 124, 0.28);
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    padding-top: calc(var(--navbar-height) + 24px);
    padding-bottom: 40px;
    min-height: 100vh;
    overflow-x: clip;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ============================================
   GLASS CARDS (now clean white cards)
   ============================================ */
.glass-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,250,246,0.92));
    border: 1px solid var(--card-border);
    border-radius: 22px;
    padding: 24px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.glass-card:hover {
    box-shadow: var(--card-shadow-hover);
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 14px;
}

.table-responsive .data-table {
    min-width: 680px;
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal-on-scroll {
    --reveal-distance: 28px;
    --reveal-delay: 0ms;
    opacity: 0;
    filter: blur(8px);
    transform: translate3d(0, var(--reveal-distance), 0) scale(0.985);
    transition:
        opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay),
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay),
        filter 0.8s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay);
    will-change: opacity, transform, filter;
}

.reveal-on-scroll[data-reveal="left"] {
    transform: translate3d(-34px, 0, 0) scale(0.985);
}

.reveal-on-scroll[data-reveal="right"] {
    transform: translate3d(34px, 0, 0) scale(0.985);
}

.reveal-on-scroll[data-reveal="scale"] {
    transform: scale(0.94);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    filter: none;
    transform: none;
}

/* ============================================
   PROFILE CARDS
   ============================================ */
.profile-card {
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,250,246,0.94));
    border: 1px solid rgba(126, 72, 44, 0.1);
    box-shadow: 0 18px 38px rgba(74, 33, 20, 0.08);
}

.profile-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 44px rgba(126, 42, 31, 0.14);
}

.profile-card .profile-photo {
    width: 100%; aspect-ratio: 3/4;
    border-radius: 18px; overflow: hidden;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #FFF4E8, #FFF0F1);
    display: flex; align-items: center; justify-content: center;
}

.profile-card .profile-photo img { width: 100%; height: 100%; object-fit: cover; }

.profile-card .profile-photo .no-photo {
    font-size: 48px; color: var(--text-muted); opacity: 0.4;
}

.profile-card .profile-name {
    font-size: 18px; font-weight: 700; margin-bottom: 6px; color: var(--text-primary); letter-spacing: -0.02em;
}

.profile-card .profile-meta {
    font-size: 13px; color: var(--text-secondary);
    display: flex; flex-wrap: wrap; gap: 10px;
}

.profile-card .profile-meta span {
    display: inline-flex; align-items: center; gap: 4px;
}

.profile-card .profile-meta i { color: var(--primary); font-size: 12px; }

.profile-card .profile-actions {
    display: flex; gap: 10px; margin-top: 16px;
}

/* ============================================
   STAT CARDS
   ============================================ */
.user-stat-card {
    text-align: center; padding: 20px;
}

.user-stat-card .stat-icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: white; margin: 0 auto 12px;
}

.user-stat-card .stat-value { font-size: 24px; font-weight: 700; color: var(--text-primary); }
.user-stat-card .stat-label { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }

.bg-gradient-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
.bg-gradient-secondary { background: linear-gradient(135deg, var(--secondary), #8B83FF); }
.bg-gradient-success { background: linear-gradient(135deg, var(--success), #2ECC71); }
.bg-gradient-warning { background: linear-gradient(135deg, var(--warning), #E67E22); }
.bg-gradient-info { background: linear-gradient(135deg, var(--info), #2980B9); }

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary-glow {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: 1px solid rgba(255,255,255,0.08); color: white;
    padding: 10px 24px; border-radius: 999px;
    font-size: 14px; font-weight: 600;
    cursor: pointer; transition: var(--transition);
    display: inline-flex; align-items: center; gap: 8px;
    box-shadow: 0 18px 34px rgba(88, 14, 20, 0.24);
}

.btn-primary-glow:hover {
    box-shadow: 0 22px 40px rgba(88, 14, 20, 0.32);
    transform: translateY(-1px); color: white;
}

.btn-secondary-glow {
    background: linear-gradient(135deg, var(--secondary), #8B83FF);
    border: none; color: white;
    padding: 10px 24px; border-radius: 10px;
    font-size: 14px; font-weight: 600;
    cursor: pointer; transition: var(--transition);
    display: inline-flex; align-items: center; gap: 8px;
    box-shadow: 0 4px 14px rgba(108, 99, 255, 0.25);
}

.btn-secondary-glow:hover { box-shadow: 0 6px 22px rgba(108,99,255,0.35); transform: translateY(-1px); color: white; }

.btn-success-glow {
    background: linear-gradient(135deg, var(--success), #2ECC71);
    border: none; color: white;
    padding: 10px 24px; border-radius: 10px;
    font-size: 14px; font-weight: 600;
    cursor: pointer; transition: var(--transition);
    display: inline-flex; align-items: center; gap: 8px;
}

.btn-danger-glow {
    background: linear-gradient(135deg, var(--danger), #C0392B);
    border: none; color: white;
    padding: 10px 24px; border-radius: 10px;
    font-size: 14px; font-weight: 600;
    cursor: pointer; transition: var(--transition);
    display: inline-flex; align-items: center; gap: 8px;
}

.btn-glass {
    background: rgba(255,255,255,0.94);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 24px; border-radius: 14px;
    font-size: 14px; font-weight: 500;
    cursor: pointer; transition: var(--transition);
    display: inline-flex; align-items: center; gap: 8px;
}

.btn-glass:hover { background: var(--primary-pale); border-color: rgba(201, 37, 40, 0.18); color: var(--primary); }

.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }

/* ============================================
   FORMS
   ============================================ */
.form-glass {
    background: #FFFFFF;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 16px;
    color: var(--text-primary);
    font-size: 14px;
    width: 100%;
    transition: var(--transition);
    outline: none;
}

.form-glass:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(232, 82, 124, 0.08);
}

.form-glass::placeholder { color: var(--text-muted); }

.form-label-glass {
    font-size: 13px; font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px; display: block;
}

select.form-glass {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23636E72' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

textarea.form-glass { resize: vertical; min-height: 80px; }

/* ============================================
   BADGES
   ============================================ */
.badge-status {
    padding: 5px 12px; border-radius: 20px;
    font-size: 12px; font-weight: 600;
    display: inline-flex; align-items: center; gap: 6px;
}

.badge-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; }
.badge-active, .badge-accepted, .badge-approved { background: #E8F8EF; color: var(--success); }
.badge-active::before, .badge-accepted::before, .badge-approved::before { background: var(--success); }
.badge-pending { background: #FFF5E6; color: #E67E22; }
.badge-pending::before { background: #E67E22; }
.badge-blocked, .badge-rejected { background: #FDEDEC; color: var(--danger); }
.badge-blocked::before, .badge-rejected::before { background: var(--danger); }
.badge-expired { background: #F0F0F0; color: #95A5A6; }
.badge-expired::before { background: #95A5A6; }

/* ============================================
   CHAT UI
   ============================================ */
.chat-container { display: flex; gap: 20px; height: calc(100vh - var(--navbar-height) - 80px); }
.chat-sidebar { width: 320px; flex-shrink: 0; overflow-y: auto; }
.chat-main { flex: 1; display: flex; flex-direction: column; }

.chat-messages {
    flex: 1; overflow-y: auto; padding: 20px;
    display: flex; flex-direction: column; gap: 12px;
    background: var(--body-bg);
}

.chat-bubble {
    max-width: 70%; padding: 12px 16px;
    border-radius: 16px; font-size: 14px; line-height: 1.5;
    word-break: break-word; overflow-wrap: break-word;
}

.chat-bubble.sent {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white; border-bottom-right-radius: 4px;
}

.chat-bubble.received {
    align-self: flex-start;
    background: white; border: 1px solid var(--border-color);
    border-bottom-left-radius: 4px;
}

.chat-bubble .chat-time { font-size: 11px; margin-top: 4px; opacity: 0.7; }

.chat-input-bar {
    display: flex; gap: 12px; padding: 16px 20px;
    border-top: 1px solid var(--border-color); background: white;
}

.contact-item {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; border-radius: 12px;
    cursor: pointer; transition: var(--transition);
    border-bottom: 1px solid var(--body-bg);
}

.contact-item:hover, .contact-item.active { background: var(--primary-pale); }

.contact-item .avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 700; font-size: 16px;
    flex-shrink: 0; overflow: hidden;
}

.contact-item .avatar img { width: 100%; height: 100%; object-fit: cover; }
.contact-item .contact-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.contact-item .contact-last-msg { font-size: 12px; color: var(--text-muted); }

/* ============================================
   PLANS / PRICING
   ============================================ */
.plan-card { text-align: center; position: relative; overflow: hidden; }

.plan-card.featured {
    border: 2px solid var(--primary);
    box-shadow: 0 8px 30px rgba(232, 82, 124, 0.12);
}

.plan-card .plan-badge {
    position: absolute; top: 16px; right: -30px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white; font-size: 11px; font-weight: 700;
    padding: 4px 40px; transform: rotate(45deg); text-transform: uppercase;
}

.plan-card .plan-name { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.plan-card .plan-price { font-size: 40px; font-weight: 800; color: var(--primary); }
.plan-card .plan-price .currency { font-size: 20px; vertical-align: super; }
.plan-card .plan-duration { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }

.plan-card .plan-features { list-style: none; text-align: left; margin-bottom: 24px; }
.plan-card .plan-features li {
    padding: 8px 0; font-size: 14px;
    display: flex; align-items: center; gap: 10px;
    border-bottom: 1px solid var(--body-bg);
}
.plan-card .plan-features li i { font-size: 16px; }
.plan-card .plan-features li .yes { color: var(--success); }
.plan-card .plan-features li .no { color: var(--text-muted); }

/* ============================================
   INTEREST ITEMS
   ============================================ */
.interest-item {
    display: flex; align-items: center; gap: 16px;
    padding: 18px;
    border-bottom: 1px solid rgba(126, 72, 44, 0.08);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(255,250,246,0.9));
    margin-bottom: 12px;
    box-shadow: 0 12px 28px rgba(74, 33, 20, 0.05);
    transition: var(--transition);
}

.interest-item:hover { background: linear-gradient(180deg, rgba(255,241,241,0.96), rgba(255,250,246,0.96)); border-radius: 18px; }
.interest-item:last-child { border-bottom: none; }

.interest-item .avatar {
    width: 50px; height: 50px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 700; font-size: 18px;
    flex-shrink: 0; overflow: hidden;
}

.interest-item .avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================
   NOTIFICATIONS
   ============================================ */
.notif-item {
    display: flex; gap: 14px; padding: 14px 0;
    border-bottom: 1px solid var(--body-bg);
}

.notif-item:last-child { border-bottom: none; }
.notif-item.unread { background: var(--primary-pale); border-radius: 10px; padding: 14px; }

.notif-icon {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; flex-shrink: 0;
}

.notif-content {
    flex: 1;
    min-width: 0;
}

.notif-action {
    flex-shrink: 0;
    align-self: center;
    justify-content: center;
    white-space: nowrap;
    min-width: 92px;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px;
    gap: 12px;
    flex-wrap: wrap;
}

.section-title {
    font-size: clamp(1.5rem, 2vw, 2rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text-primary);
}

.section-title { font-size: 22px; font-weight: 700; color: var(--text-primary); }

/* ============================================
   ALERTS
   ============================================ */
.alert-glass {
    background: white; border: 1px solid var(--border-color);
    border-radius: 12px; padding: 14px 20px;
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 20px; font-size: 14px;
    flex-wrap: wrap;
}

.alert-glass.alert-success { border-left: 3px solid var(--success); background: #F0FFF4; }
.alert-glass.alert-danger { border-left: 3px solid var(--danger); background: #FFF5F5; }
.alert-glass.alert-warning { border-left: 3px solid var(--warning); background: #FFFAF0; }
.alert-glass.alert-info { border-left: 3px solid var(--info); background: #EBF8FF; }

/* ============================================
   SERVER FLASH TOASTS (NO JS)
   ============================================ */
.flash-toast-stack {
    position: fixed;
    top: calc(var(--navbar-height) + 14px);
    right: 16px;
    z-index: 1250;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(380px, calc(100vw - 24px));
    pointer-events: none;
}

.flash-toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-left-width: 4px;
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    color: var(--text-primary);
    animation: toastSlideIn 0.22s ease-out, toastFadeOut 0.35s ease 4.8s forwards;
}

.flash-toast .flash-toast-icon {
    font-size: 18px;
    margin-top: 1px;
    flex-shrink: 0;
}

.flash-toast .flash-toast-body {
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
    word-break: break-word;
}

.flash-toast-success {
    border-left-color: var(--success);
}

.flash-toast-success .flash-toast-icon {
    color: var(--success);
}

.flash-toast-error {
    border-left-color: var(--danger);
}

.flash-toast-error .flash-toast-icon {
    color: var(--danger);
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes toastFadeOut {
    to {
        opacity: 0;
        transform: translateY(-8px);
    }
}

@media (max-width: 575px) {
    .flash-toast-stack {
        left: 12px;
        right: 12px;
        width: auto;
        top: calc(var(--navbar-height) + 8px);
    }
}

/* ============================================
   FIXED-PHOTO PROFILE MODE (mobile)
   Photo sticks to top, content scrolls up over it
   ============================================ */
.profile-fixed-photo-page .profile-scroll-content {
    position: relative;
    z-index: 2;
}
.profile-mobile-hero-info { display: none; }

/* Desktop layout for action buttons — keep them inline + auto-width */
@media (min-width: 769px) {
    .profile-actions-card {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
    }
    .profile-actions-card > div {
        margin: 0 !important;
        flex: 0 0 auto;
    }
    .profile-actions-card > div.d-flex {
        gap: 8px;
    }
    .profile-actions-card .w-100,
    .profile-actions-card .flex-grow-1 {
        width: auto !important;
        flex-grow: 0 !important;
    }
    .profile-actions-card .contact-chip {
        width: auto !important;
    }
}

@media (max-width: 768px) {
    .profile-fixed-photo-page .profile-hero {
        position: fixed;
        top: var(--navbar-height, 60px);
        left: 0; right: 0;
        width: 100vw;
        height: min(100vw, 52vh);
        margin: 0;
        border-radius: 0;
        z-index: 1;
        overflow: hidden;
    }
    .profile-fixed-photo-page .profile-hero .hero-bg { display: none; }
    .profile-fixed-photo-page .profile-hero .hero-content {
        position: absolute;
        inset: 0;
        flex-direction: column;
        padding: 0;
        margin: 0;
        gap: 0;
        align-items: stretch;
    }
    .profile-fixed-photo-page .profile-hero .hero-avatar {
        width: 100% !important;
        height: 100% !important;
        border-radius: 0 !important;
        border: none !important;
        margin: 0 !important;
        box-shadow: none !important;
        font-size: 96px !important;
    }
    /* hero-info (name overlay) hidden on mobile — name moves into scroll content */
    .profile-fixed-photo-page .profile-hero .hero-info { display: none; }
    .profile-mobile-hero-info { display: block; }
    .profile-mobile-hero-info h2 {
        margin: 0 0 4px;
        font-size: 22px;
        font-weight: 700;
        color: var(--text-primary);
    }
    .profile-mobile-hero-info .meta-line {
        font-size: 13px;
        color: var(--text-secondary);
    }
    .profile-mobile-hero-info .id-line {
        font-size: 12px;
        color: var(--text-muted);
        margin-top: 4px;
    }
    .profile-mobile-hero-info .id-line .me-2 { margin-right: 10px; }
    .profile-fixed-photo-page .profile-scroll-content {
        margin-top: min(100vw, 52vh);
        background: var(--bg, #FAF7F3);
        border-radius: 24px 24px 0 0;
        box-shadow: 0 -10px 30px rgba(0,0,0,0.18);
        padding: 18px 14px calc(var(--mobile-bottom-nav-height, 72px) + 24px);
        min-height: calc(100vh - min(100vw, 52vh));
    }
    .profile-fixed-photo-page .profile-scroll-content::before {
        content: '';
        display: block;
        width: 44px; height: 4px;
        background: rgba(0,0,0,0.15);
        border-radius: 2px;
        margin: 0 auto 12px;
    }
    /* Back/Top action overlaid on the photo */
    .profile-fixed-photo-page .profile-floating-back {
        position: fixed;
        top: calc(var(--navbar-height, 60px) + 12px);
        left: 12px;
        z-index: 5;
        background: rgba(0,0,0,0.55);
        color: #fff;
        border: none;
        padding: 8px 14px;
        border-radius: 999px;
        font-size: 13px;
        font-weight: 600;
        backdrop-filter: blur(8px);
    }
}

/* ============================================
   PROFILE HERO
   ============================================ */
.profile-hero { position: relative; border-radius: 20px; overflow: hidden; margin-bottom: 24px; }

.profile-hero .hero-bg {
    height: 220px;
    background:
        linear-gradient(180deg, rgba(51, 18, 13, 0.08), rgba(44, 14, 11, 0.48)),
        linear-gradient(180deg, rgba(80, 35, 19, 0.08) 0%, rgba(58, 18, 16, 0.46) 72%, rgba(46, 13, 16, 0.82) 100%),
        url("../images/branding/login-couple-hero.png") center 22%/cover no-repeat;
}

.profile-hero .hero-content {
    display: flex; align-items: flex-end; gap: 20px;
    padding: 0 24px 22px; margin-top: -132px; position: relative;
}

.profile-hero .hero-avatar {
    width: 280px; height: 280px; border-radius: 18px;
    border: 4px solid rgba(255,255,255,0.92); overflow: hidden;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 88px; font-weight: 700;
    flex-shrink: 0; box-shadow: 0 24px 44px rgba(53, 19, 16, 0.18);
}

.profile-hero .hero-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Top photo gallery — all images in a horizontal, swipeable strip */
.profile-hero .hero-avatar .hero-photos {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.profile-hero .hero-avatar .hero-photos::-webkit-scrollbar { height: 6px; }
.profile-hero .hero-avatar .hero-photos::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.25); border-radius: 3px; }
.profile-hero .hero-avatar .hero-photo-item {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
}
.profile-hero .hero-avatar .hero-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
    display: block;
}

.profile-hero .hero-info { padding-bottom: 20px; }
.profile-hero .hero-info h2 { font-size: 28px; font-weight: 800; color: #fff; letter-spacing: -0.04em; }
.profile-hero .hero-info > div { color: rgba(255,255,255,0.92) !important; }

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    text-align: center; padding: 60px 20px; color: var(--text-muted);
}

.empty-state i { font-size: 48px; margin-bottom: 16px; opacity: 0.3; }

/* ============================================
   PAGINATION
   ============================================ */
.pagination-wrapper { display: flex; justify-content: center; margin-top: 24px; }
.pagination-wrapper .pagination { gap: 4px; }
.pagination-wrapper .page-link {
    background: white; border: 1px solid var(--border-color);
    color: var(--text-secondary); border-radius: 8px !important;
    padding: 8px 14px; font-size: 13px; transition: var(--transition);
}
.pagination-wrapper .page-link:hover { background: var(--primary-pale); color: var(--primary); border-color: var(--primary); }
.pagination-wrapper .page-item.active .page-link { background: var(--primary); border-color: var(--primary); color: white; }

/* ============================================
   DATA TABLE (for plan history etc.)
   ============================================ */
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.data-table thead th {
    background: var(--body-bg); color: var(--text-secondary);
    font-size: 12px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.5px; padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
}
.data-table tbody td {
    padding: 14px 16px; border-bottom: 1px solid var(--body-bg);
    font-size: 14px; vertical-align: middle;
}
.data-table tbody tr:hover { background: var(--primary-pale); }

/* ============================================
   TEXT HELPERS
   ============================================ */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-muted-glass { color: var(--text-muted); }
.text-secondary-glass { color: var(--text-secondary); }

/* ============================================
   DROPDOWN MENU (override bootstrap dark)
   ============================================ */
.dropdown-menu {
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,250,246,0.96)) !important;
    border: 1px solid rgba(126, 72, 44, 0.12) !important;
    border-radius: 22px !important;
    box-shadow: 0 24px 54px rgba(74, 33, 20, 0.16) !important;
    padding: 12px !important;
    max-height: min(78vh, calc(100vh - 92px));
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
}

.dropdown-profile-summary {
    padding: 14px 14px 16px;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(201, 37, 40, 0.96), rgba(226, 105, 88, 0.9)),
        url("../images/branding/login-couple-hero.png") center/cover no-repeat;
    position: relative;
    overflow: hidden;
    margin-bottom: 8px;
    color: #fff;
    flex-shrink: 0;
}

.dropdown-profile-summary::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(56, 15, 18, 0.12), rgba(56, 15, 18, 0.32));
}

.dropdown-profile-summary > * {
    position: relative;
    z-index: 1;
}

.dropdown-profile-summary .summary-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dropdown-profile-summary .summary-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.34);
    font-size: 18px;
    font-weight: 800;
    flex-shrink: 0;
}

.dropdown-profile-summary .summary-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dropdown-profile-summary .summary-copy strong {
    display: block;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
}

.dropdown-profile-summary .summary-copy span {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: rgba(255, 247, 241, 0.9);
}

.dropdown-item {
    color: var(--text-primary) !important;
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-item:hover { background: var(--primary-pale) !important; color: var(--primary) !important; }
.dropdown-item.text-danger { color: var(--danger) !important; }
.dropdown-item.text-light { color: var(--text-primary) !important; }
.dropdown-divider { border-color: var(--border-color) !important; }

.page-intro-card,
.listings-hero-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: 28px;
    background:
        linear-gradient(135deg, rgba(255, 247, 241, 0.92), rgba(255, 235, 225, 0.88)),
        url("../images/branding/login-couple-hero.png") center/cover no-repeat;
    border: 1px solid rgba(255, 255, 255, 0.58);
    box-shadow: 0 24px 54px rgba(112, 43, 23, 0.12);
}

.page-intro-card::before,
.listings-hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 251, 247, 0.96) 12%, rgba(255, 246, 239, 0.9) 48%, rgba(255, 239, 229, 0.38) 100%);
}

.page-intro-card > *,
.listings-hero-card > * {
    position: relative;
    z-index: 1;
}

.page-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(201, 37, 40, 0.14);
    color: var(--secondary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.page-intro-title {
    margin: 18px 0 10px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.02;
    font-weight: 800;
    color: #431b13;
    letter-spacing: -0.04em;
}

.page-intro-title .accent {
    display: inline-block;
    color: var(--primary);
}

.page-intro-subtitle {
    max-width: 720px;
    margin: 0;
    color: #6b4b41;
    font-size: 15px;
    line-height: 1.8;
}

.soft-section-card {
    border-radius: 24px;
    border: 1px solid rgba(129, 76, 56, 0.1);
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,249,245,0.94));
    box-shadow: 0 22px 46px rgba(111, 50, 26, 0.08);
}

.soft-section-card .glass-card,
.soft-section-card.glass-card {
    background: transparent;
    border: none;
    box-shadow: none;
}

.detail-grid-card {
    border-radius: 22px;
    border: 1px solid rgba(141, 77, 51, 0.1);
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,248,243,0.94));
    box-shadow: 0 18px 40px rgba(84, 32, 17, 0.08);
}

.detail-grid-card .text-muted-glass {
    color: #8f756b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
}

.profile-actions-card {
    border-radius: 24px;
    border: 1px solid rgba(130, 74, 50, 0.12);
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,244,239,0.96));
    box-shadow: 0 18px 42px rgba(86, 35, 18, 0.08);
}

.profile-detail-card {
    border-radius: 24px;
    border: 1px solid rgba(130, 74, 50, 0.1);
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,249,245,0.95));
    box-shadow: 0 18px 42px rgba(86, 35, 18, 0.07);
}

.profile-detail-card h6 {
    font-size: 18px;
    font-weight: 800;
    color: #3f2018;
}

/* ============================================
   PUBLIC NAV / FOOTER
   ============================================ */
.landing-nav,
.page-nav,
.about-nav,
.blog-nav {
    gap: 12px;
}

.public-nav-actions {
    margin-left: auto;
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Centered nav layout for public pages */
.pub-nav-center {
    display: flex;
    align-items: center;
    gap: 6px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.pub-nav-center .nav-link-item {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 10px;
    transition: all 0.2s;
}
.pub-nav-center .nav-link-item:hover {
    color: var(--primary);
    background: var(--primary-pale);
}
.pub-nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.public-mobile-home,
.public-mobile-toggle,
.public-mobile-close {
    min-height: 42px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background: #FFFFFF;
    color: var(--text-primary);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.public-mobile-home,
.public-mobile-toggle {
    display: none;
}

.public-mobile-home {
    margin-left: auto;
    padding: 0 14px;
    gap: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.public-mobile-home span {
    line-height: 1;
}

.public-mobile-toggle,
.public-mobile-close {
    width: 42px;
    padding: 0;
    font-size: 20px;
    flex-shrink: 0;
}

.public-mobile-toggle {
    margin-left: 8px;
}

.public-mobile-close {
    display: inline-flex;
}

.public-mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.38);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
    z-index: 1390;
}

.public-mobile-nav-backdrop.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.public-mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(360px, 88vw);
    z-index: 1395;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 18px 16px 22px;
    background: linear-gradient(180deg, #FFFFFF, #FFF7F1);
    border-left: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px 0 0 24px;
    box-shadow: -18px 0 44px rgba(15, 23, 42, 0.18);
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.28s ease;
}

.public-mobile-nav.show {
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
}

.public-mobile-nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.public-mobile-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.public-mobile-brand .brand-logo {
    height: 42px;
    width: auto;
    flex-shrink: 0;
}

.public-mobile-brand .brand-copy {
    min-width: 0;
}

.public-mobile-brand .brand-copy span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.public-mobile-brand .brand-subtitle {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #A36B45;
}

.public-mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.public-mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 15px;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: #FFFFFF;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
    color: var(--text-primary) !important;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
}

.public-mobile-nav-link:hover {
    background: var(--primary-pale);
    color: var(--primary);
    border-color: rgba(232, 82, 124, 0.16);
}

.public-mobile-nav-link i {
    width: 20px;
    text-align: center;
    color: inherit;
    font-size: 18px;
    flex-shrink: 0;
}

.public-mobile-nav-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: auto;
    padding-top: 6px;
}

.public-mobile-nav-actions .btn-glass,
.public-mobile-nav-actions .btn-primary-glow {
    width: 100%;
    justify-content: center;
}

.public-footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.public-footer-bottom-links {
    display: flex;
    gap: 16px;
    font-size: 13px;
    flex-wrap: wrap;
}

.match-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    margin-top: 12px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-pale), #FFF7EF);
    border: 1px solid rgba(232, 82, 124, 0.12);
}
.match-chip.is-muted {
    background: #FAF8F6;
    border-color: var(--border-color);
}
.match-chip.is-locked {
    background: linear-gradient(135deg, #FFF6EC, #FFF0F3);
    border-color: rgba(232, 82, 124, 0.16);
}
.match-chip.is-locked .match-chip-score {
    color: var(--text-primary);
    font-size: 16px;
}
.match-chip.is-locked .match-chip-copy {
    color: var(--text-secondary);
}
.match-chip.is-locked .match-chip-icon {
    color: #B7791F;
    border-color: rgba(183, 121, 31, 0.15);
}
.match-chip-score {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
}
.match-chip.is-muted .match-chip-score { color: var(--text-secondary); }
.match-chip-copy {
    margin-top: 3px;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}
.match-chip-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: var(--primary);
    border: 1px solid rgba(232, 82, 124, 0.12);
    flex-shrink: 0;
}
.match-chip.is-muted .match-chip-icon {
    color: var(--text-muted);
    border-color: var(--border-color);
}
.compatibility-card {
    position: relative;
    overflow: hidden;
}
.compatibility-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 120px;
    background: radial-gradient(circle at top left, rgba(232, 82, 124, 0.12), transparent 70%);
    pointer-events: none;
}
.compatibility-header {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}
.compatibility-score {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}
.compatibility-percent {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}
.compatibility-label {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--primary-pale);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}
.compatibility-checks {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    padding: 8px 12px;
    border-radius: 999px;
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
}
.compatibility-summary {
    position: relative;
    margin: 12px 0 0;
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-secondary);
}
.compatibility-grid {
    position: relative;
    display: grid;
    gap: 14px;
    margin-top: 18px;
}
.compatibility-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    font-weight: 600;
}
.compatibility-row-meta {
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-muted);
}
.compatibility-bar {
    margin-top: 8px;
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: #F5EFEB;
    overflow: hidden;
}
.compatibility-bar-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary), #FF9C8F);
}
.compatibility-note {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #FFF9E8;
    color: #9C7A17;
    font-size: 12px;
    line-height: 1.5;
}

@media (max-width: 767.98px) {
    .compatibility-header {
        flex-direction: column;
    }

    .compatibility-score {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
}

/* ============================================
   FORM CHECK / SWITCH (light friendly)
   ============================================ */
.form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .navbar-glass {
        padding: 0 16px;
    }

    .navbar-brand {
        margin-right: 0;
        max-width: calc(100vw - 190px);
    }

    .navbar-brand .brand-logo {
        height: 46px;
    }

    .navbar-brand span {
        font-size: 16px;
    }

    .navbar-brand .brand-subtitle {
        display: none;
    }

    .main-content {
        padding-bottom: 122px;
    }

    .mobile-bottom-nav {
        display: grid;
    }

    .landing-nav,
    .page-nav,
    .about-nav,
    .blog-nav {
        padding: 0 16px !important;
    }

    .public-nav-actions {
        display: none !important;
    }

    .pub-nav-center {
        display: none !important;
    }

    .pub-nav-right {
        display: none !important;
    }

    .public-mobile-home,
    .public-mobile-toggle {
        display: inline-flex;
    }

    .chat-container { flex-direction: column; height: auto; }
    .chat-sidebar { width: 100%; max-height: 300px; }
    .plan-card { margin-bottom: 0; }
}

@media (max-width: 767px) {
    .container { padding: 0 14px; }
    .glass-card { padding: 18px; border-radius: 14px; }

    .profile-card .profile-photo { aspect-ratio: 1/1; }
    .profile-card .profile-name { font-size: 14px; }
    .profile-card .profile-meta { font-size: 12px; gap: 6px; }
    .profile-card .profile-actions { flex-direction: column; gap: 6px; }
    .profile-card .profile-actions .btn-primary-glow,
    .profile-card .profile-actions .btn-secondary-glow { width: 100%; justify-content: center; }

    .interest-item { flex-wrap: wrap; gap: 12px; padding: 14px; }
    .interest-item .avatar { width: 42px; height: 42px; font-size: 15px; }

    .notif-item {
        display: grid;
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 10px 12px;
        align-items: flex-start;
    }
    .notif-icon { width: 34px; height: 34px; font-size: 14px; grid-column: 1; grid-row: 1 / span 2; }
    .notif-content {
        grid-column: 2;
        flex-basis: auto;
        width: 100%;
    }
    .notif-action {
        grid-column: 2;
        justify-self: start;
        margin: 2px 0 0;
        width: auto;
        min-width: 112px;
        padding: 10px 14px;
        border-radius: 14px;
    }

    .section-title { font-size: 18px; }

    .user-stat-card .stat-icon { width: 44px; height: 44px; font-size: 18px; }
    .user-stat-card .stat-value { font-size: 20px; }
    .user-stat-card .stat-label { font-size: 12px; }

    .match-chip { flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px 12px; }
    .match-chip-score { font-size: 16px; }

    .chat-input-bar { padding: 12px; gap: 8px; }
    .contact-item { padding: 10px 12px; }
    .contact-item .avatar { width: 38px; height: 38px; font-size: 14px; }

    .data-table { min-width: 560px; }
}

@media (max-width: 575px) {
    .container { padding: 0 12px; }
    .glass-card { padding: 14px; border-radius: 12px; }
    .navbar-glass {
        padding: 0 10px;
        height: 60px;
    }
    :root { --navbar-height: 60px; }

    .navbar-brand {
        max-width: calc(100vw - 130px);
        gap: 8px;
    }

    .navbar-brand .brand-logo {
        height: 52px;
    }

    .navbar-brand span {
        font-size: 14px;
    }

    .navbar-brand .brand-copy {
        display: none;
    }

    .navbar-right {
        gap: 6px;
    }

    .navbar-btn {
        width: 34px;
        height: 34px;
        font-size: 15px;
        border-radius: 8px;
    }

    .mobile-toggle { font-size: 22px; }

    .main-content {
        padding-bottom: 116px;
    }

    .mobile-bottom-nav {
        left: 8px;
        right: 8px;
        bottom: calc(8px + env(safe-area-inset-bottom, 0px));
        gap: 6px;
        padding: 8px;
        border-radius: 18px;
    }

    .mobile-bottom-nav-link {
        min-height: 54px;
        padding: 7px 2px;
        font-size: 10px;
    }

    .mobile-bottom-nav-link i {
        font-size: 17px;
    }

    .mobile-bottom-nav-badge {
        top: 4px;
        right: 6px;
    }

    .public-mobile-home,
    .public-mobile-toggle,
    .public-mobile-close {
        min-height: 38px;
        border-radius: 12px;
    }

    .public-mobile-home {
        padding: 0 12px;
        font-size: 12px;
        letter-spacing: 0.06em;
    }

    .public-mobile-toggle,
    .public-mobile-close {
        width: 38px;
        font-size: 18px;
    }

    .public-mobile-nav {
        width: min(320px, 88vw);
        padding: 16px 12px 18px;
        border-radius: 22px 0 0 22px;
    }

    .public-mobile-brand .brand-logo {
        height: 44px;
    }

    .public-mobile-brand .brand-copy span {
        font-size: 15px;
    }

    .public-mobile-nav-actions {
        grid-template-columns: 1fr;
    }

    .public-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .section-title { font-size: 17px; }

    .alert-glass {
        align-items: flex-start;
        padding: 12px 14px;
        font-size: 13px;
    }

    .profile-hero .hero-bg { height: 180px; }
    .profile-hero .hero-content { flex-direction: column; align-items: center; text-align: center; padding: 0 14px 18px; margin-top: -64px; }
    .profile-hero .hero-avatar { width: 260px; height: 260px; margin-top: -20px; font-size: 80px; border-width: 5px; border-radius: 18px; }
    .profile-hero .hero-info h2 { font-size: 22px; }
    .page-intro-card,
    .listings-hero-card { padding: 22px 18px; border-radius: 24px; }
    .page-intro-title { font-size: 30px; }
    .page-intro-subtitle { font-size: 14px; line-height: 1.7; }
    .page-kicker { font-size: 11px; letter-spacing: 0.1em; padding: 8px 14px; }

    .chat-bubble { max-width: 88%; font-size: 13px; padding: 10px 14px; }
    .chat-messages { padding: 14px; gap: 8px; }
    .user-dropdown .user-name { display: none; }
    .user-dropdown .avatar { width: 32px; height: 32px; font-size: 12px; }

    .pagination-wrapper {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 4px;
    }

    .btn-primary-glow, .btn-secondary-glow, .btn-success-glow, .btn-danger-glow {
        padding: 8px 16px; font-size: 13px;
    }
    .btn-glass { padding: 8px 16px; font-size: 13px; }
    .btn-sm { padding: 6px 12px; font-size: 12px; }

    .plan-card .plan-price { font-size: 32px; }
    .plan-card .plan-price .currency { font-size: 16px; }

    .form-glass { padding: 9px 14px; font-size: 13px; }
    .form-label-glass { font-size: 12px; }

    .empty-state { padding: 40px 16px; }
    .empty-state i { font-size: 40px; }

    .badge-status { padding: 4px 8px; font-size: 11px; }
}

@media (max-width: 380px) {
    .navbar-brand .brand-logo { height: 46px; }
    .glass-card { padding: 12px; }
    .profile-card .profile-photo .no-photo { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    .reveal-on-scroll {
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
        transition: none !important;
    }
}
