/* ============================================================
   Weyzerit.com — Main Stylesheet
   New UI: Poppins + Open Sans, CSS variables, fixed navbar,
   mobile drawer, refined cards & typography
   ============================================================ */

/* --- 1. Variables & Global Reset --- */
:root {
    --primary-red: #e74c3c;
    --primary-red-dark: #c0392b;
    --accent-brown: #8B4513;
    --bg-cream: #fdf6e3;
    --bg-white: #ffffff;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --radius: 8px;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.6;
    padding-top: 60px; /* Space for fixed header */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    margin-top: 0;
}

a { text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-red); }
img { max-width: 100%; display: block; }
button { font-family: 'Poppins', sans-serif; cursor: pointer; }

/* --- 2. Navbar --- */
/* Top Utility Bar */
.topbar {
    background-color: #1a1a2e;
    height: 32px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-size: 12px;
}
.topbar-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
}
.topbar-content a {
    color: #b0b0c0;
    text-decoration: none;
    transition: color 0.2s;
}
.topbar-content a:hover { color: #fff; }
.topbar-upgrade {
    background: linear-gradient(135deg, #f39c12, #e74c3c);
    color: #fff !important;
    font-weight: 600;
    padding: 3px 14px;
    border-radius: 12px;
    font-size: 11px;
    letter-spacing: 0.3px;
    transition: opacity 0.2s;
}
.topbar-upgrade:hover { opacity: 0.85; color: #fff !important; }
.topbar-logout {
    background: none;
    border: none;
    color: #b0b0c0;
    font: inherit;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}
.topbar-logout:hover { color: #ff6b6b; }

@media (max-width: 768px) {
    .topbar { display: none; }
    body.has-topbar { padding-top: 60px; }
    body.has-topbar .navbar { top: 0; }
}

.navbar {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    height: 60px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}
body.has-topbar { padding-top: 92px; }
body.has-topbar .navbar { top: 32px; }

.navbar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-red);
    letter-spacing: -0.5px;
}
.logo:hover { color: var(--primary-red); }

.logo-icon { margin-right: 8px; font-size: 24px; }
.logo-suffix { font-weight: 400; font-size: 0.8em; margin-left: 2px; }

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 0;
    position: relative;
}

.nav-links a:hover, .nav-links .active { color: var(--primary-red); }

/* Badge Styling */
.badge, .badge-count {
    background-color: var(--primary-red);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

.user-actions { display: flex; gap: 15px; align-items: center; }
.user-actions a { color: var(--text-dark); font-weight: 600; font-size: 14px; }
.user-actions a:hover { color: var(--primary-red); }
.logout-link { background: none; border: none; cursor: pointer; font: inherit; color: var(--text-dark); font-weight: 600; font-size: 14px; padding: 0; }
.logout-link:hover { color: var(--primary-red); }

.upgrade-btn {
    background: linear-gradient(135deg, var(--primary-red), #ff7675);
    color: white !important;
    padding: 8px 18px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(231, 76, 60, 0.3);
    transition: transform 0.2s;
}
.upgrade-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 8px rgba(231, 76, 60, 0.4); color: white !important; }

/* Hamburger Menu (Mobile Only) */
.hamburger-menu {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-dark);
    padding: 5px;
}

/* --- 3. Layout Grid --- */
.main-content {
    display: flex;
    gap: 25px;
    width: 100%;
    max-width: 1200px;
    margin: 25px auto;
    padding: 0 20px;
}

/* Single column (login/register) */
.main-content.centered {
    justify-content: center;
    align-items: flex-start;
}

.content-column { flex: 1 1 0%; display: flex; flex-direction: column; gap: 20px; min-width: 0; }

/* Full-width content column for single-column pages */
.content-column.full-width { flex: 1 1 100%; max-width: 100%; width: 100%; }

/* Narrow center column for auth forms */
.content-column.narrow { flex: none; width: 100%; max-width: 420px; }

.sidebar { flex: 0 0 300px; display: flex; flex-direction: column; gap: 20px; min-width: 260px; max-width: 320px; }

/* --- 4. Cards & Content --- */
.content-card {
    background-color: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    border: 1px solid rgba(0,0,0,0.03);
    overflow-wrap: break-word;
    word-break: break-word;
}

/* --- 5. Profile Section --- */
.profile-details {
    display: flex;
    padding: 25px;
    background-color: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--primary-red);
}

.profile-photo-section { flex: 0 0 35%; margin-right: 25px; }
.profile-main-photo {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 10px;
    box-shadow: var(--shadow-sm);
    background-color: #eee;
}

.profile-thumbnails { display: flex; gap: 8px; justify-content: space-between; }
.profile-thumbnail {
    width: calc(25% - 6px);
    aspect-ratio: 1;
    border-radius: 4px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    background-color: #eee;
}
.profile-thumbnail:hover { border-color: var(--primary-red); opacity: 0.8; }

.profile-info-section { flex: 1; min-width: 0; overflow-wrap: break-word; word-break: break-word; }

.profile-title { margin-bottom: 15px; }
.profile-title h2 {
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    overflow-wrap: break-word;
    word-break: break-word;
}

.profile-meta { color: var(--text-light); font-size: 14px; margin-bottom: 12px; }

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.online-badge { background-color: rgba(46, 204, 113, 0.15); color: #2ecc71; margin-left: 8px; margin-right: 8px; }
.verified-badge { background-color: rgba(66, 103, 178, 0.15); color: #4267B2; margin-right: 8px; }
.verify-icon { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; }
.verify-icon--yes { background: rgba(46, 204, 113, 0.15); color: #2ecc71; }
.verify-icon--no { background: rgba(149, 165, 166, 0.15); color: #bdc3c7; }

.profile-attributes {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 8px 15px;
    margin: 20px 0;
    font-size: 14px;
}
.attribute-label { font-weight: 600; color: var(--text-light); white-space: nowrap; }
.attribute-value { color: var(--text-dark); overflow-wrap: break-word; word-break: break-word; min-width: 0; text-align: left; }

.profile-action-row { display: flex; gap: 10px; flex-wrap: wrap; }
.profile-action-button {
    padding: 10px 20px;
    border-radius: var(--radius);
    border: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
    display: flex; align-items: center; gap: 6px;
    cursor: pointer;
}

.message-button { background-color: var(--accent-brown); color: white; }
.message-button:hover { background-color: #6d3710; }

.flirt-button { background-color: var(--text-dark); color: white; }
.flirt-button:hover { background-color: #1a252f; }

.history-button { background-color: #f1f2f6; color: var(--text-dark); }

/* Favorited Button State */
.favorited-button { background-color: #f1c40f !important; color: #fff !important; }

.profile-status { display: flex; gap: 10px; flex-wrap: wrap; }

/* --- 6. Members Scroller --- */
.member-list-section { position: relative; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid #eee; }
.section-header h3 { color: var(--accent-brown); font-size: 16px; text-transform: uppercase; letter-spacing: 0.5px; margin: 0; }
.view-more { font-size: 13px; font-weight: 600; color: var(--primary-red); }

.members-grid-container { position: relative; padding: 0 30px; overflow: hidden; }
.members-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.members-grid::-webkit-scrollbar { display: none; }

.member-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    min-width: 120px;
    max-width: 120px;
    flex-shrink: 0;
}
.member-card:hover { transform: translateY(-3px); }
.member-card a { text-decoration: none; display: block; }
.member-name { display: block; padding: 4px 6px; font-size: 12px; font-weight: 500; color: var(--text-dark); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.member-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius);
    object-fit: cover;
    background-color: #eee;
    display: block;
}

.member-name {
    font-size: 12px;
    text-align: center;
    margin-top: 4px;
    color: var(--text-light);
}

.active-indicator {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 10px;
    height: 10px;
    background-color: #2ecc71;
    border-radius: 50%;
    border: 2px solid white;
}

.scroll-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 32px; height: 32px;
    background: white; border: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    color: var(--text-dark);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    z-index: 5; font-size: 18px;
    transition: all 0.2s;
    cursor: pointer;
}
.scroll-btn:hover { background: var(--primary-red); color: white; border-color: var(--primary-red); }
.scroll-left { left: -15px; }
.scroll-right { right: -15px; }

/* --- 7. Sidebar Widgets --- */
.sidebar-card { background: white; padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow-wrap: break-word; word-break: break-word; }
.sidebar-title { color: var(--accent-brown); font-size: 16px; margin-bottom: 15px; border-bottom: 2px solid #f0f0f0; padding-bottom: 8px; display: inline-block; margin-top: 0; text-transform: uppercase; }

.popular-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.popular-grid .member-card { min-width: 0; max-width: none; flex-shrink: 1; }
.popular-grid .member-img { border-radius: 4px; cursor: pointer; transition: opacity 0.2s; width: 100%; }
.popular-grid .member-img:hover { opacity: 0.8; }

.popular-text { font-size: 14px; color: var(--text-light); margin: 0 0 10px 0; line-height: 1.4; }

/* Featured / Promoted profile card */
.featured-banner { background: linear-gradient(to right, #6f4b4b, #f17568); padding: 5px; color: white; font-size: 10px; letter-spacing: 1px; font-weight: 700; text-align: center; text-transform: uppercase; }

/* Blog sidebar */
.blog-post { display: flex; gap: 12px; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid #f9f9f9; }
.blog-post:last-child { margin-bottom: 0; border: none; padding-bottom: 0; }
.blog-img { width: 70px; height: 70px; border-radius: 6px; object-fit: cover; background-color: #eee; flex-shrink: 0; }
.blog-content { flex: 1; min-width: 0; }
.blog-title { font-size: 13px; font-weight: 600; margin-bottom: 4px; line-height: 1.4; color: var(--text-dark); display: block; }
.blog-title:hover { color: var(--primary-red); }
.blog-excerpt { font-size: 12px; color: var(--text-light); line-height: 1.4; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.blog-tabs { display: flex; border-bottom: 1px solid #eee; margin-bottom: 10px; flex-wrap: wrap; }
.blog-tab { padding: 5px 15px; cursor: pointer; color: #666; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; font-size: 0.9em; }
.blog-tab.active { color: var(--accent-brown); border-bottom-color: var(--accent-brown); font-weight: 500; }

.blog-posts { display: flex; flex-direction: column; gap: 0; }

/* Ad / Promoted box */
.ad-box { text-align: center; }
.ad-label { font-size: 12px; color: #999; margin-bottom: 10px; text-transform: uppercase; font-weight: 500; }
.ad-box img { display: block; max-width: 100%; height: auto; background-color: #ccc; border-radius: 3px; }
.ad-box p { margin-top: 10px; font-weight: 500; font-size: 0.95em; color: var(--text-dark); }

/* --- 8. Upgrade Banner --- */
.upgrade-banner {
    background: linear-gradient(135deg, #6f4b4b, #f17568);
    color: white;
    border-radius: var(--radius);
    padding: 20px 15px;
    text-align: center;
    width: 100%;
}
.upgrade-banner h3 { margin: 0 0 5px 0; font-size: 1.1em; }
.upgrade-banner p { margin-bottom: 8px; font-size: 0.9em; }
.upgrade-banner-btn {
    background-color: white;
    color: var(--primary-red);
    border: none;
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 5px;
    text-decoration: none;
    display: inline-block;
}

/* Premium gate (blurred content + banner) */
.premium-gate-banner {
    text-align: center;
    padding: 25px 20px;
    margin: 15px 0 0;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: var(--radius);
    color: #fff;
}
.premium-gate-icon { font-size: 40px; margin-bottom: 8px; }
.premium-gate-banner h3 { color: #ffc107; margin: 0 0 8px; font-size: 18px; }
.premium-gate-banner p { color: #b0b0c0; font-size: 14px; margin-bottom: 15px; }
.premium-gate-features {
    list-style: none;
    padding: 0;
    margin: 0 auto 20px;
    max-width: 280px;
    text-align: left;
}
.premium-gate-features li {
    padding: 6px 0;
    font-size: 13px;
    color: #d0d0e0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.premium-gate-features li:last-child { border-bottom: none; }
.premium-blurred-content {
    filter: blur(6px);
    opacity: 0.5;
    pointer-events: none;
    user-select: none;
}

/* Profile action icons (SVG-based) */
.profile-action-icon {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: none;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    padding: 0;
}
.profile-action-icon:hover { filter: brightness(0.9); transform: scale(1.08); }
.profile-action-icon--message { background: rgba(52, 152, 219, 0.15); color: #3498db; }
.profile-action-icon--message:hover { background: rgba(52, 152, 219, 0.3); color: #2980b9; }
.profile-action-icon--fav { background: rgba(243, 156, 18, 0.15); color: #f39c12; }
.profile-action-icon--fav:hover { background: rgba(243, 156, 18, 0.3); color: #e67e22; }
.profile-action-icon--fav.active { background: #f39c12; color: #fff; }
.profile-action-icon--like { background: rgba(231, 76, 60, 0.15); color: #e74c3c; }
.profile-action-icon--like:hover { background: rgba(231, 76, 60, 0.3); color: #c0392b; }
.profile-action-icon--like.active { background: #e74c3c; color: #fff; }
.profile-action-icon--muted { background: rgba(149, 165, 166, 0.12); color: #95a5a6; }
.profile-action-icon--muted:hover { background: rgba(149, 165, 166, 0.25); color: #7f8c8d; }
.profile-action-icon--report { background: rgba(231, 76, 60, 0.1); color: #e74c3c; }
.profile-action-icon--report:hover { background: rgba(231, 76, 60, 0.25); color: #c0392b; }

/* --- 9. Footer --- */
.footer { background-color: #2c3e50; color: #ecf0f1; padding: 40px 0; margin-top: auto; }
.footer-content { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 40px; padding: 0 20px; }
.footer-section h4 { color: #fff; margin-bottom: 15px; font-size: 16px; margin-top: 0; }
.footer-section a { color: #bdc3c7; display: block; margin-bottom: 8px; font-size: 14px; transition: all 0.2s; }
.footer-section a:hover { color: var(--primary-red); padding-left: 5px; }

.social-links { display: flex; gap: 10px; margin-top: 5px; }
.social-icon {
    background-color: #444;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.2s;
}
.social-icon:hover { background-color: var(--primary-red); color: white; }

.footer-copy { font-size: 12px; color: var(--text-light); margin-top: 15px; }

/* --- 10. Mobile Drawer --- */
.mobile-drawer-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 1001;
    opacity: 0; visibility: hidden; transition: all 0.3s;
    backdrop-filter: blur(2px);
}
.mobile-drawer-overlay.active { opacity: 1; visibility: visible; }

.mobile-drawer {
    position: fixed; top: 0; left: 0; width: 280px; height: 100%;
    background: #fff; z-index: 1002;
    transform: translateX(-100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; flex-direction: column;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}
.mobile-drawer.active { transform: translateX(0); }

.drawer-header {
    background-color: var(--primary-red);
    color: white;
    padding: 25px 20px;
}
.drawer-user { display: flex; align-items: center; gap: 15px; margin-bottom: 10px; }
.drawer-avatar { width: 50px; height: 50px; border-radius: 50%; border: 2px solid white; object-fit: cover; }
.drawer-username { font-weight: 700; font-size: 18px; margin: 0; }
.drawer-meta { font-size: 13px; opacity: 0.9; margin: 0; }

.drawer-nav { padding: 10px 0; display: flex; flex-direction: column; }
.drawer-item {
    padding: 12px 25px;
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-left: 3px solid transparent;
}
.drawer-item:hover { background-color: #f9f9f9; color: var(--primary-red); }
.drawer-item.active { background-color: #fff5f5; color: var(--primary-red); border-left-color: var(--primary-red); font-weight: 600; }
.drawer-sub-item { padding-left: 40px; font-size: 14px; color: #666; }

.drawer-divider { height: 1px; background-color: #eee; margin: 10px 0; }
.drawer-section-title { padding: 10px 25px 5px; font-size: 12px; color: #999; text-transform: uppercase; font-weight: 700; letter-spacing: 0.5px; }

.drawer-badge { background: var(--primary-red); color: white; padding: 2px 8px; border-radius: 10px; font-size: 11px; }
.drawer-logout { color: var(--primary-red) !important; }

/* --- 11. Flash Messages --- */
.flash-messages {
    max-width: 1200px;
    margin: 10px auto 0;
    padding: 0 20px;
}

.flash {
    padding: 12px 20px;
    border-radius: var(--radius);
    margin-bottom: 10px;
    font-size: 14px;
}

.flash-success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.flash-error { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.flash-warning { background-color: #fff3cd; color: #856404; border: 1px solid #ffeeba; }
.flash-info { background-color: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

/* --- 12. Forms --- */
.form-title {
    text-align: center;
    font-size: 24px;
    color: var(--accent-brown);
    margin-bottom: 30px;
}

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 500; color: var(--text-dark); }

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--radius);
    border: 1px solid #ddd;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-button {
    width: 100%;
    padding: 12px;
    border-radius: 30px;
    border: none;
    background: linear-gradient(135deg, var(--primary-red), #ff7675);
    color: white;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: 'Poppins', sans-serif;
}
.form-button:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3); }

.form-footer { text-align: center; margin-top: 20px; font-size: 14px; }
.form-footer a { color: var(--primary-red); }
.form-error { border-color: var(--primary-red) !important; }
.error-text { color: var(--primary-red); font-size: 13px; margin-top: 4px; }

/* --- 13. Gender Selector --- */
.gender-select { display: flex; gap: 15px; }

.gender-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}
.gender-option:hover { border-color: var(--primary-red); background-color: #fef9f0; }
.gender-option.selected,
.gender-option:has(input:checked) { border-color: var(--primary-red); background-color: #fef3f0; }
.gender-option input[type="radio"] { display: none; }
.gender-label { font-weight: 500; font-size: 15px; color: var(--text-dark); }

/* --- 14. Online Members List --- */
.filter-tabs { display: flex; margin-bottom: 15px; border-bottom: 1px solid #eee; flex-wrap: wrap; }
.filter-tab { padding: 10px 15px; cursor: pointer; color: #666; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.filter-tab.active { color: var(--primary-red); border-bottom-color: var(--primary-red); font-weight: 600; }

.online-member { display: flex; align-items: center; gap: 15px; padding: 12px 0; border-bottom: 1px solid #f5f5f5; }
.online-member:last-child { border-bottom: none; }

.online-pic { width: 60px; height: 60px; border-radius: 5px; object-fit: cover; background-color: #eee; flex-shrink: 0; }
.online-info { flex: 1; min-width: 0; }
.online-name { font-weight: 600; color: var(--primary-red); margin: 0; font-size: 0.95em; overflow-wrap: break-word; word-break: break-word; }
.online-name a { color: inherit; text-decoration: none; }
.online-about { font-size: 13px; color: #666; margin: 5px 0 0 0; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.profile-action-buttons { display: flex; gap: 8px; flex-shrink: 0; }
.profile-icon-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background-color: white;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 18px; line-height: 1;
    transition: background-color 0.2s, border-color 0.2s;
}
.profile-icon-btn:hover { background-color: #f5f5f5; border-color: #ccc; }
.icon-btn-heart { color: var(--primary-red); }
.icon-btn-heart:hover { color: var(--primary-red-dark); }
.icon-btn-heart.flirted, .icon-btn-heart.active { background-color: var(--primary-red); color: #fff; border-color: var(--primary-red); cursor: default; }
.icon-btn-star { color: #f1c40f; }
.icon-btn-star:hover { color: #f39c12; }
.icon-btn-star.favorited-button, .icon-btn-star.active { background-color: #f1c40f; color: #fff; border-color: #f1c40f; }

/* --- 15. Profile Tags (view page) --- */
.profile-tag-row { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 12px; }
.profile-tag-row .attribute-label { min-width: 110px; padding-top: 4px; }
.profile-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.profile-tag { display: inline-block; padding: 4px 12px; background-color: #fef3f0; color: var(--primary-red); border: 1px solid #f5c6c0; border-radius: 15px; font-size: 13px; }

/* Interest tags (inline in profile) */
.interest-tag { background: #f0f0f0; padding: 6px 12px; border-radius: 20px; font-size: 13px; color: #555; display: inline-block; }

/* --- 16. Pagination --- */
.pagination { display: flex; gap: 5px; justify-content: center; padding: 20px 0; }
.pagination a, .pagination-current { display: inline-block; padding: 8px 14px; border-radius: var(--radius); font-size: 14px; text-decoration: none; }
.pagination a { background-color: #fff; color: var(--text-light); border: 1px solid #ddd; }
.pagination a:hover { background-color: var(--primary-red); color: white; border-color: var(--primary-red); }
.pagination-current { background-color: var(--primary-red); color: white; border: 1px solid var(--primary-red); font-weight: bold; }

/* --- 17. Profile Edit Tabs --- */
.profile-tabs { display: flex; border-bottom: 2px solid #eee; margin-bottom: 25px; flex-wrap: wrap; }
.profile-tab { padding: 10px 20px; text-decoration: none; color: #666; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.profile-tab:hover { color: var(--primary-red); }
.profile-tab.active { color: var(--primary-red); border-bottom-color: var(--primary-red); }

/* Profile Completion Bar */
.completion-bar { background-color: #eee; border-radius: 10px; height: 12px; overflow: hidden; margin-bottom: 5px; }
.completion-fill { height: 100%; background: linear-gradient(90deg, var(--primary-red), #f39c12); border-radius: 10px; transition: width 0.3s; }
.completion-text { font-size: 13px; color: #888; text-align: right; }

/* --- 18. Form Row Layouts --- */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 15px; }
.tab-section-title { font-size: 18px; color: var(--accent-brown); margin: 25px 0 15px 0; padding-bottom: 8px; border-bottom: 1px solid #eee; }
.tab-section-title:first-child { margin-top: 0; }
.form-section-label { font-weight: 600; color: var(--text-light); margin-bottom: 10px; display: block; }

/* --- 19. Checkbox Grid (multi-select) --- */
.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; margin-bottom: 20px; }
.checkbox-label { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid #eee; border-radius: var(--radius); cursor: pointer; font-size: 14px; transition: background-color 0.15s, border-color 0.15s; }
.checkbox-label:hover { background-color: #fef9f0; border-color: #ddd; }
.checkbox-label input[type="checkbox"] { accent-color: var(--primary-red); width: 16px; height: 16px; flex-shrink: 0; }

/* --- 20. Photo Management Grid --- */
.photo-manage-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 15px; margin-top: 15px; }
.photo-manage-card { position: relative; border: 1px solid #eee; border-radius: var(--radius); overflow: hidden; background-color: #fafafa; }
.photo-manage-img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.photo-manage-actions { display: flex; gap: 5px; padding: 8px; justify-content: center; }
.photo-action-btn { padding: 4px 10px; border: 1px solid #ddd; border-radius: 3px; background-color: #fff; color: var(--text-light); font-size: 12px; cursor: pointer; }
.photo-action-btn:hover { background-color: #f5f5f5; }
.photo-delete-btn { padding: 4px 10px; border: 1px solid var(--primary-red); border-radius: 3px; background-color: #fff; color: var(--primary-red); font-size: 12px; cursor: pointer; }
.photo-delete-btn:hover { background-color: #fdf0ef; }
.photo-primary-badge { position: absolute; top: 8px; left: 8px; background-color: #2ecc71; color: white; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 3px; }
.photo-status-badge { position: absolute; top: 8px; right: 8px; font-size: 11px; font-weight: 500; padding: 2px 8px; border-radius: 3px; }
.photo-status-approved { background-color: #d4edda; color: #155724; }
.photo-status-pending { background-color: #fff3cd; color: #856404; }
.photo-status-rejected { background-color: #f8d7da; color: #721c24; }
.photo-upload-area { border: 2px dashed #ddd; border-radius: var(--radius); padding: 30px; text-align: center; margin-bottom: 15px; }
.photo-upload-area p { color: #888; margin: 10px 0 0 0; font-size: 13px; }

/* --- 21. Search Page --- */
.search-summary-card { position: relative; }
.search-summary-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.search-summary-actions { display: flex; align-items: center; gap: 8px; }
.saved-search-select select { padding: 6px 10px; border: 1px solid #ddd; border-radius: var(--radius); font-size: 13px; }
.search-edit-btn, .search-save-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid #ddd; background-color: #fff; color: var(--text-light); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.search-edit-btn:hover, .search-save-btn:hover { background-color: #f5f5f5; border-color: #ccc; color: var(--text-dark); }
.search-summary-body { font-size: 14px; line-height: 2; color: var(--text-dark); }
.search-summary-text { display: inline; }
.search-summary-text strong { color: var(--accent-brown); }
.search-remove-filter { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background-color: #f0f0f0; color: #999; font-size: 13px; line-height: 1; text-decoration: none; margin-left: 2px; margin-right: 4px; vertical-align: middle; position: relative; top: -1px; }
.search-remove-filter:hover { background-color: var(--primary-red); color: #fff; }
.search-summary-footer { margin-top: 10px; padding-top: 10px; border-top: 1px solid #f0f0f0; }
.search-reset-link { color: #999; font-size: 13px; }
.search-reset-link:hover { color: var(--primary-red); }

/* Edit filters accordion panel */
.search-filters-panel {
    display: none;
    margin-top: 0;
    padding-top: 0;
    border-top: 0 solid transparent;
}
.search-filters-panel.open {
    display: block;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}
.search-edit-btn.active { background-color: var(--accent-brown); color: #fff; border-color: var(--accent-brown); }
.edit-filters-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px 10px; }
.edit-filters-grid .form-group { margin-bottom: 0; }
.edit-filters-grid .form-group label { font-size: 11px; margin-bottom: 2px; color: var(--text-light); }
.edit-filters-grid .form-group select,
.edit-filters-grid .form-group input { font-size: 12px; padding: 4px 6px; height: 28px; }
.search-checkboxes { display: flex; gap: 12px; margin: 0; font-size: 12px; height: 28px; align-items: center; }
.search-checkboxes .checkbox-label { border: none; padding: 0; }
.filter-checkboxes-group .search-checkboxes { margin: 0; }
.filter-actions-row { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.filter-action-btn { display: block; text-align: center; padding: 5px 0; font-size: 12px; border-radius: var(--radius); }
a.filter-action-btn { text-decoration: none; }
.filter-actions-row .form-button { width: 100%; padding: 5px 0; font-size: 12px; }

.search-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; background-color: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.search-results-count { font-weight: 500; color: var(--text-light); }
.search-toolbar-right { display: flex; align-items: center; gap: 15px; }
.search-toolbar-right label { font-size: 14px; color: #666; display: flex; align-items: center; gap: 5px; }
.search-toolbar-right select { padding: 4px 8px; border: 1px solid #ddd; border-radius: 3px; font-size: 13px; }

.view-toggle { display: flex; gap: 2px; }
.view-toggle-btn { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid #ddd; background-color: #fff; color: #999; text-decoration: none; font-size: 18px; }
.view-toggle-btn:hover { background-color: #f5f5f5; }
.view-toggle-btn.active { background-color: var(--primary-red); color: white; border-color: var(--primary-red); }
.view-toggle-btn:first-child { border-radius: 3px 0 0 3px; }
.view-toggle-btn:last-child { border-radius: 0 3px 3px 0; }

.search-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; }
.search-grid-card { background-color: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.search-grid-photo-wrap { position: relative; }
.search-grid-photo { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background-color: #eee; }
.search-verified-badge { position: absolute; top: 6px; right: 6px; background-color: #4267B2; color: white; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.search-grid-info { padding: 8px 10px 4px; }
.search-grid-name { font-weight: 600; color: var(--text-dark); font-size: 14px; text-decoration: none; display: block; }
.search-grid-name:hover { color: var(--primary-red); }
.search-grid-location { font-size: 12px; color: #999; margin-top: 2px; }
.search-grid-actions { display: flex; gap: 6px; padding: 6px 10px 10px; }


/* Sidebar Saved Searches */
.sidebar-saved-searches { display: flex; flex-direction: column; gap: 0; }
.sidebar-saved-item { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid #f5f5f5; }
.sidebar-saved-item:last-child { border-bottom: none; }
.sidebar-saved-link { font-size: 13px; color: var(--text-dark); text-decoration: none; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-saved-link:hover { color: var(--primary-red); }
.sidebar-saved-delete { background: none; border: none; color: #ccc; font-size: 12px; line-height: 1; cursor: pointer; padding: 4px 6px; border-radius: 50%; flex-shrink: 0; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; }
.sidebar-saved-delete:hover { color: var(--primary-red); background-color: #fef3f0; }

/* Modal */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.modal-box { background-color: #fff; border-radius: var(--radius); padding: 25px; width: 100%; max-width: 400px; box-shadow: 0 4px 20px rgba(0,0,0,.2); }

/* --- 22. Inbox --- */
.inbox-tabs { display: flex; border-bottom: 2px solid #eee; margin-bottom: 20px; }
.inbox-tab { padding: 10px 20px; text-decoration: none; color: #666; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -2px; display: flex; align-items: center; gap: 8px; }
.inbox-tab:hover { color: var(--primary-red); }
.inbox-tab.active { color: var(--primary-red); border-bottom-color: var(--primary-red); }

.inbox-thread-list { display: flex; flex-direction: column; }
.inbox-thread { display: flex; align-items: center; gap: 15px; padding: 15px 0; border-bottom: 1px solid #f0f0f0; text-decoration: none; color: inherit; transition: background-color 0.1s; }
.inbox-thread:hover { background-color: #fef9f0; }
.inbox-thread:last-child { border-bottom: none; }
.inbox-thread-unread { background-color: #fdf6e3; }
.inbox-thread-unread .inbox-thread-name { font-weight: 700; }
.inbox-thread-unread .inbox-thread-preview { font-weight: 500; color: var(--text-dark); }
.inbox-thread-photo-wrap { position: relative; flex-shrink: 0; }
.inbox-thread-photo { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; background-color: #eee; }
.inbox-online-dot { position: absolute; bottom: 2px; right: 2px; width: 12px; height: 12px; background-color: #2ecc71; border-radius: 50%; border: 2px solid #fff; }
.inbox-thread-info { flex: 1; min-width: 0; }
.inbox-thread-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.inbox-thread-name { font-weight: 600; color: var(--text-dark); font-size: 15px; }
.inbox-thread-time { font-size: 12px; color: #999; white-space: nowrap; margin-left: 10px; }
.inbox-thread-preview { font-size: 14px; color: #888; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-unread-badge { background-color: var(--primary-red); color: white; font-size: 12px; font-weight: bold; min-width: 22px; height: 22px; border-radius: 11px; display: flex; align-items: center; justify-content: center; padding: 0 6px; flex-shrink: 0; }

/* --- 23. Message Thread --- */
/* Thread layout: sidebar + conversation */
.thread-layout { display: flex; gap: 0; align-items: stretch; min-height: 600px; }
.thread-sidebar { flex: 0 0 280px; background-color: #fff; border-radius: var(--radius) 0 0 var(--radius); border: 1px solid #eee; border-right: none; display: flex; flex-direction: column; overflow: hidden; }
.thread-sidebar-header { padding: 15px 20px; border-bottom: 1px solid #eee; }
.thread-sidebar-title { font-weight: 700; font-size: 16px; color: var(--accent-brown); text-decoration: none; }
.thread-sidebar-title:hover { color: var(--primary-red); }
.thread-sidebar-list { flex: 1; overflow-y: auto; }
.thread-sidebar-empty { padding: 30px 20px; text-align: center; color: #999; font-size: 14px; }

.thread-sidebar-item { display: flex; align-items: center; gap: 10px; padding: 12px 15px; text-decoration: none; color: inherit; border-bottom: 1px solid #f5f5f5; transition: background-color 0.1s; }
.thread-sidebar-item:hover { background-color: #fef9f0; }
.thread-sidebar-item.active { background-color: #fdf2e9; border-left: 3px solid var(--primary-red); }
.thread-sidebar-item.unread .thread-sidebar-name { font-weight: 700; }
.thread-sidebar-item.unread .thread-sidebar-preview { color: var(--text-dark); font-weight: 500; }

.thread-sidebar-photo-wrap { position: relative; flex-shrink: 0; }
.thread-sidebar-photo { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background-color: #eee; }
.thread-sidebar-online { position: absolute; bottom: 1px; right: 1px; width: 10px; height: 10px; background-color: #2ecc71; border-radius: 50%; border: 2px solid #fff; }

.thread-sidebar-info { flex: 1; min-width: 0; }
.thread-sidebar-name-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 2px; }
.thread-sidebar-name { font-size: 13px; font-weight: 600; color: var(--text-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread-sidebar-time { font-size: 11px; color: #aaa; white-space: nowrap; margin-left: 6px; flex-shrink: 0; }
.thread-sidebar-preview { font-size: 12px; color: #999; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread-sidebar-badge { background-color: var(--primary-red); color: #fff; font-size: 11px; font-weight: 700; min-width: 20px; height: 20px; border-radius: 10px; display: flex; align-items: center; justify-content: center; padding: 0 5px; flex-shrink: 0; }

.thread-main { flex: 1; min-width: 0; }
.thread-main > .content-card { border-radius: 0 var(--radius) var(--radius) 0; margin: 0; }

.thread-header { display: flex; align-items: center; gap: 15px; padding: 15px 20px; border-bottom: 1px solid #eee; background-color: #fafafa; flex-shrink: 0; }
.thread-back-link { color: var(--primary-red); text-decoration: none; font-weight: 500; white-space: nowrap; display: none; }
.thread-user-info { display: flex; align-items: center; gap: 10px; flex: 1; text-decoration: none; color: inherit; min-width: 0; }
.thread-user-info:hover { text-decoration: none; }
.thread-user-photo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background-color: #eee; flex-shrink: 0; }
.thread-user-name { font-weight: 600; color: var(--text-dark); display: block; }
.thread-online-status { font-size: 12px; color: #2ecc71; }
.thread-header-actions { flex-shrink: 0; }

.thread-messages { padding: 20px; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; background-color: var(--bg-cream); }
.thread-date-divider { text-align: center; padding: 10px 0; }
.thread-date-divider span { background-color: rgba(0,0,0,.05); color: #999; font-size: 12px; padding: 4px 12px; border-radius: 10px; }
.thread-message { display: flex; flex-direction: column; max-width: 75%; }
.thread-message-mine { align-self: flex-end; align-items: flex-end; }
.thread-message-theirs { align-self: flex-start; align-items: flex-start; }
.thread-bubble { padding: 10px 15px; border-radius: 18px; font-size: 14px; line-height: 1.4; word-wrap: break-word; }
.bubble-mine { background-color: var(--primary-red); color: white; border-bottom-right-radius: 4px; }
.bubble-theirs { background-color: #fff; color: var(--text-dark); border-bottom-left-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.thread-message-meta { font-size: 11px; color: #999; margin-top: 3px; padding: 0 5px; }
.thread-read-indicator { color: #4267B2; margin-left: 3px; }

.thread-reply { padding: 15px 20px; border-top: 1px solid #eee; background-color: #fff; flex-shrink: 0; }
.thread-reply-form { margin: 0; }
.thread-input-row { display: flex; gap: 10px; align-items: flex-end; }
.thread-textarea { flex: 1; padding: 10px 15px; border: 1px solid #ddd; border-radius: 20px; font-family: inherit; font-size: 14px; resize: none; outline: none; min-height: 42px; max-height: 120px; }
.thread-textarea:focus { border-color: var(--primary-red); box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.1); }
.thread-send-btn { width: 42px; height: 42px; border-radius: 50%; border: none; background-color: var(--primary-red); color: white; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.thread-send-btn:hover { background-color: var(--primary-red-dark); }
.thread-locked { text-align: center; padding: 10px 0; }
.thread-locked p { color: #666; margin: 0 0 10px 0; }

/* --- 24. Onboarding (Full-screen wizard) --- */
.ob-body { margin: 0; min-height: 100vh; background: linear-gradient(135deg, #fdf6f0 0%, #fef0e8 50%, #f8e8f0 100%); display: flex; flex-direction: column; }
.ob-topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(255,255,255,0.95); backdrop-filter: blur(8px); padding: 12px 20px 0; text-align: center; }
.ob-logo { text-decoration: none; font-family: 'Poppins', sans-serif; font-size: 20px; font-weight: 700; color: var(--text-dark); }
.ob-heart { font-size: 18px; }
.ob-dot { color: var(--primary-red); font-weight: 600; }
.ob-progress { height: 4px; background: #e8e0dc; border-radius: 2px; margin: 10px auto 0; max-width: 400px; overflow: hidden; }
.ob-progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary-red), #e74c3c); border-radius: 2px; transition: width 0.4s ease; }
.ob-step-label { font-size: 11px; color: #aaa; margin-top: 4px; padding-bottom: 8px; letter-spacing: 0.5px; text-transform: uppercase; }

.ob-container { flex: 1; display: flex; align-items: center; justify-content: center; padding: 90px 20px 80px; min-height: 100vh; box-sizing: border-box; }

/* Slides */
.ob-slide { display: none; width: 100%; max-width: 600px; text-align: center; animation: obFadeIn 0.35s ease; }
.ob-slide.ob-active { display: block; }
.ob-slide.ob-slide-scroll { max-width: 680px; max-height: calc(100vh - 170px); overflow-y: auto; padding-right: 5px; }
@keyframes obFadeIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.ob-slide.ob-enter-left { animation: obSlideLeft 0.35s ease; }
@keyframes obSlideLeft { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }
.ob-slide.ob-enter-right { animation: obFadeIn 0.35s ease; }

.ob-emoji { font-size: 48px; margin-bottom: 12px; line-height: 1; }
.ob-slide h2 { font-family: 'Poppins', sans-serif; font-size: 24px; font-weight: 600; color: var(--text-dark); margin: 0 0 6px; }
.ob-hint { color: #999; font-size: 14px; margin: 0 0 28px; }

/* Pills (single-select) */
.ob-pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 10px; }
.ob-pill { display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px; border: 2px solid #e0dbd8; border-radius: 30px; background: white; font-size: 15px; font-weight: 500; color: #555; cursor: pointer; transition: all 0.2s; font-family: inherit; min-width: 100px; }
.ob-pill:hover { border-color: var(--primary-red); background: #fff8f5; color: var(--text-dark); }
.ob-pill.active { background: var(--primary-red); border-color: var(--primary-red); color: white; transform: scale(1.03); }
.ob-pill-sm { padding: 8px 14px; font-size: 13px; min-width: 80px; }
.ob-pill-local { border-color: var(--primary-red); color: var(--primary-red); background: #fff5f3; font-weight: 600; }
.ob-pill-local:hover { background: #ffe8e3; }

/* Multi-select pills */
.ob-pills-multi .ob-pill.active { background: var(--primary-red); border-color: var(--primary-red); color: white; }

/* Form fields */
.ob-fields-col { display: flex; flex-direction: column; gap: 14px; max-width: 460px; margin: 0 auto 24px; text-align: left; }
.ob-dob-row { display: flex; gap: 12px; justify-content: center; margin-bottom: 24px; }
.ob-select-wrap { display: flex; flex-direction: column; gap: 4px; }
.ob-select-wrap label, .ob-input-wrap label { font-size: 12px; font-weight: 600; color: #888; text-transform: uppercase; letter-spacing: 0.5px; }
.ob-select-wrap select, .ob-input-wrap input, .ob-input-wrap textarea {
    padding: 12px 14px; border: 2px solid #e0dbd8; border-radius: 12px; font-size: 15px;
    font-family: inherit; background: white; color: var(--text-dark); transition: border-color 0.2s;
    width: 100%; box-sizing: border-box;
}
.ob-select-wrap select:focus, .ob-input-wrap input:focus, .ob-input-wrap textarea:focus { border-color: var(--primary-red); outline: none; }
.ob-full { width: 100%; }
.ob-input-wrap { position: relative; display: flex; flex-direction: column; gap: 4px; }
.ob-input-suffix { position: absolute; right: 14px; bottom: 13px; font-size: 14px; color: #aaa; pointer-events: none; }
.ob-input-wrap textarea { resize: vertical; min-height: 100px; }

/* Sections (interests) */
.ob-section { margin-bottom: 20px; }
.ob-section-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-dark); margin-bottom: 8px; text-align: left; }

/* Buttons */
.ob-btn { display: block; width: 100%; max-width: 300px; margin: 24px auto 0; padding: 14px 24px; background: var(--primary-red); color: white; border: none; border-radius: 30px; font-size: 16px; font-weight: 600; font-family: inherit; cursor: pointer; transition: all 0.2s; }
.ob-btn:hover { background: var(--primary-red-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3); }
.ob-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.ob-btn-finish { background: linear-gradient(135deg, var(--primary-red), #c0392b); }

/* Photo upload */
.ob-existing-photos { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.ob-photo-thumb { position: relative; width: 72px; height: 72px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.ob-photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ob-photo-badge { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(46,204,113,0.9); color: white; font-size: 9px; font-weight: 700; text-align: center; padding: 2px 0; text-transform: uppercase; }
.ob-upload-zone { border: 2px dashed #d5cec8; border-radius: 16px; padding: 30px 20px; cursor: pointer; transition: all 0.2s; background: rgba(255,255,255,0.6); }
.ob-upload-zone:hover, .ob-drag-active { border-color: var(--primary-red); background: #fff8f5; }
.ob-upload-icon { font-size: 36px; margin-bottom: 8px; }
.ob-upload-text { font-weight: 600; color: var(--text-dark); margin: 0 0 4px; font-size: 15px; }
.ob-upload-meta { color: #aaa; font-size: 13px; margin: 0; }
.ob-upload-count { font-size: 13px; color: #aaa; margin-top: 10px; }
.ob-photo-previews { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.ob-preview-thumb { width: 72px; height: 72px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.ob-preview-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Bottom controls */
.ob-bottom { position: fixed; bottom: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 14px 24px; background: transparent; }
.ob-back-btn { background: none; border: none; color: #999; font-size: 14px; cursor: pointer; font-family: inherit; padding: 6px 12px; border-radius: 20px; transition: all 0.2s; }
.ob-back-btn:hover { color: var(--text-dark); background: rgba(255,255,255,0.7); }
.ob-skip-link { font-size: 13px; color: #bbb; text-decoration: none; transition: color 0.2s; }
.ob-skip-link:hover { color: #888; }

/* Option pills (clickable radio/checkbox buttons) */
.option-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.option-grid-compact { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.option-pill { display: flex; align-items: center; justify-content: center; padding: 10px 12px; border: 2px solid #e0e0e0; border-radius: 25px; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--text-light); transition: all 0.2s; text-align: center; }
.option-pill:hover { border-color: var(--primary-red); background-color: #fef9f0; }
.option-pill.selected { background-color: var(--primary-red); border-color: var(--primary-red); color: white; }
.option-pill input[type="radio"],
.option-pill input[type="checkbox"] { display: none; }
.option-pill.small { padding: 6px 10px; font-size: 13px; border-radius: 20px; }

/* --- 25. Public Sidebar (login/register) --- */
.promo-sidebar { flex: 1; min-width: 260px; max-width: 320px; }
.promo-hero .promo-features { display: flex; flex-direction: column; gap: 18px; }
.promo-feature { display: flex; gap: 12px; align-items: flex-start; }
.promo-icon { font-size: 24px; flex-shrink: 0; width: 36px; text-align: center; }
.promo-feature strong { display: block; color: var(--text-dark); font-size: 14px; margin-bottom: 2px; }
.promo-feature p { margin: 0; font-size: 13px; color: var(--text-light); line-height: 1.4; }
.promo-stats { display: flex; justify-content: space-around; text-align: center; gap: 10px; }
.promo-stat { display: flex; flex-direction: column; gap: 2px; }
.stat-number { font-size: 22px; font-weight: 700; color: var(--primary-red); }
.stat-label { font-size: 12px; color: #888; text-transform: uppercase; }
.promo-testimonial { margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid #f0f0f0; }
.promo-testimonial:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.promo-testimonial p { font-style: italic; color: var(--text-light); font-size: 13px; line-height: 1.5; margin: 0 0 8px 0; }
.testimonial-author { font-size: 12px; color: #999; font-weight: 500; }

/* --- 26. Billing Table --- */
.billing-table-wrap { overflow-x: auto; }
.billing-table { width: 100%; font-size: 14px; border-collapse: collapse; }
.billing-table th { text-align: left; padding: 10px 12px; color: var(--text-light); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 2px solid #eee; white-space: nowrap; }
.billing-table td { padding: 12px 12px; border-bottom: 1px solid #f5f5f5; vertical-align: middle; }
.billing-table tbody tr:last-child td { border-bottom: none; }
.billing-table tbody tr:hover { background-color: #fef9f0; }
.billing-status { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; }
.billing-status-completed { background-color: rgba(46, 204, 113, 0.15); color: #2ecc71; }
.billing-status-pending { background-color: rgba(243, 156, 18, 0.15); color: #f39c12; }
.billing-status-failed { background-color: rgba(231, 76, 60, 0.15); color: #e74c3c; }
.billing-status-refunded { background-color: rgba(155, 89, 182, 0.15); color: #9b59b6; }
.billing-status-cancelled { background-color: rgba(149, 165, 166, 0.15); color: #95a5a6; }
.billing-status-expired { background-color: rgba(149, 165, 166, 0.15); color: #95a5a6; }

/* --- 27. Responsive --- */
@media (max-width: 992px) {
    .nav-links, .user-actions { display: none; }
    .hamburger-menu { display: block; }
    .main-content { flex-direction: column; }
    .sidebar { width: 100%; max-width: 100%; order: 2; min-width: unset; flex-basis: auto; }
    .content-column { order: 1; }
    .search-grid { grid-template-columns: repeat(3, 1fr); }
    .promo-sidebar { max-width: 100%; min-width: unset; }
}

@media (max-width: 768px) {
    .profile-details { flex-direction: column; padding: 20px; }
    .profile-photo-section { flex: auto; margin-right: 0; margin-bottom: 20px; }
    .profile-action-row { justify-content: stretch; }
    .profile-action-button { flex: 1; justify-content: center; }

    /* Hide scroll buttons on mobile, allow touch scroll */
    .scroll-btn { display: none; }
    .members-grid-container { overflow-x: auto; padding-bottom: 10px; display: flex; gap: 10px; }
    .members-grid { display: flex; grid-template-columns: none; }
    .member-card { min-width: 100px; }

    .form-row, .form-row-3 { grid-template-columns: 1fr; }
    .checkbox-grid { grid-template-columns: 1fr; }
    .photo-manage-grid { grid-template-columns: repeat(2, 1fr); }
    .profile-tab { padding: 8px 12px; font-size: 0.9em; }
    .profile-tag-row { flex-direction: column; gap: 5px; }

    .edit-filters-grid { grid-template-columns: repeat(2, 1fr); }
    .search-summary-header { flex-wrap: wrap; gap: 10px; }
    .search-toolbar { flex-direction: column; gap: 10px; align-items: flex-start; }
    .search-grid { grid-template-columns: repeat(2, 1fr); }

    .thread-layout { flex-direction: column; min-height: auto; }
    .thread-sidebar { flex: none; width: 100%; border-radius: var(--radius); border: 1px solid #eee; margin-bottom: 10px; }
    .thread-sidebar-list { max-height: 200px; }
    .thread-main > .content-card { border-radius: var(--radius); }
    .thread-back-link { display: inline; }
    .thread-messages { max-height: 400px; }
    .thread-message { max-width: 90%; }
    .inbox-tab { padding: 8px 12px; font-size: 0.9em; }

    .billing-table thead { display: none; }
    .billing-table tr { display: block; border-bottom: 1px solid #eee; padding: 10px 0; }
    .billing-table td { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: none; }
    .billing-table td::before { content: attr(data-label); font-weight: 600; color: var(--text-light); font-size: 12px; margin-right: 10px; }

    .footer-content { justify-content: center; text-align: center; }
    .footer-section { align-items: center; }
    .social-links { justify-content: center; }

    .ob-slide h2 { font-size: 20px; }
    .ob-pill { padding: 10px 16px; font-size: 14px; min-width: 80px; }
    .ob-dob-row { flex-direction: column; gap: 10px; max-width: 200px; margin: 0 auto 24px; }
    .ob-emoji { font-size: 40px; }
    .option-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .search-grid { grid-template-columns: 1fr; }
    .option-grid { grid-template-columns: 1fr; }
}

@media (max-width: 375px) {
    /* Profile photo section: full-width stacked */
    .profile-details { padding: 15px; }
    .profile-photo-section { width: 100%; }
    .profile-main-photo { width: 100%; max-height: 350px; object-fit: cover; }
    .profile-thumbnails { justify-content: center; }

    /* Auth pages: full-width form */
    .content-card { padding: 20px 15px; }
    .content-column.narrow { max-width: 100%; }

    /* Discover cards: full-width */
    .search-grid { grid-template-columns: 1fr; }

    /* Form inputs: full width */
    .form-row, .form-row-3 { grid-template-columns: 1fr; gap: 10px; }

    /* Tables: horizontal scroll */
    .billing-table { display: block; overflow-x: auto; white-space: nowrap; }

    /* Tap targets: min 44px */
    .form-button, .profile-action-icon, .profile-icon-btn, .drawer-item { min-height: 44px; }
    .profile-icon-btn { width: 44px; height: 44px; }

    /* Auth extras: stack stats */
    .auth-extras__stats { flex-direction: column; gap: 8px; }
    .auth-stat { padding: 10px; }

    /* Detail columns: single column */
    .profile-attributes { grid-template-columns: auto 1fr; }

    /* Inbox thread: stack */
    .thread-sidebar-list { max-height: 150px; }
    .thread-messages { max-height: 350px; }
    .thread-message { max-width: 95%; }

    /* Photo grid: single column */
    .photo-manage-grid { grid-template-columns: 1fr; }

    /* Member cards */
    .member-card { min-width: 80px; }

    /* Onboarding */
    .ob-pill { padding: 8px 14px; font-size: 13px; min-width: 70px; }
}

/* --- Facebook Login Button --- */
.btn-facebook {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 20px;
    background-color: #1877F2;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s;
}
.btn-facebook:hover {
    background-color: #166FE5;
    color: #fff;
}
.social-divider {
    display: flex;
    align-items: center;
    margin: 18px 0;
    gap: 12px;
}
.social-divider::before,
.social-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #ddd;
}
.social-divider span {
    font-size: 13px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Browse Singles Sidebar Widget --- */
.browse-singles-heading {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-brown);
    margin: 0 0 6px;
    font-family: 'Poppins', sans-serif;
}
.browse-singles-links {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.browse-singles-links a {
    font-size: 13px;
    color: var(--text-dark);
    text-decoration: none;
    padding: 3px 0;
    transition: color 0.2s;
}
.browse-singles-links a:hover {
    color: var(--primary-red);
}
.browse-count {
    color: var(--text-light);
    font-size: 11px;
}
