/* ===== CSS Variables ===== */
:root {
    --primary: #0274be;
    --primary-dark: #0d68ae;
    --primary-light: #BFD1FF;
    --secondary: #272c6c;
    --accent: #0274be;
    --accent-dark: #0d68ae;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --info: #17a2b8;
    --dark: #1a1a2e;
    --darker: #16213e;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --white: #ffffff;
    --body-bg: #f0f2f5;
    --card-bg: #ffffff;
    --text-color: #333;
    --text-muted: #6c757d;
    --border-color: #e8e8e8;
    --shadow: 0 1px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.10);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --transition: all 0.25s ease;
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --bottom-nav-height: 64px;
    --top-bar-height: 56px;
}

/* ===== Reset ===== */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { font-family: var(--font); background: var(--body-bg); color: var(--text-color); line-height: 1.5; font-size: 15px; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }
input, select, textarea, button { font-family: inherit; outline: none; font-size: 15px; }

/* ===== Guest Layout ===== */
.guest-layout { min-height: 100vh; }
.guest-top-bar {
    display: flex; align-items: center; justify-content: center;
    padding: 20px 16px 10px;
}

/* ===== Matchmaking ===== */
.matchmaking-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 700px;
    margin: 0 auto;
}

.matchmaking-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.matchmaking-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.matchmaking-card.featured {
    border: 2px solid var(--primary);
    position: relative;
}

.matchmaking-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
    margin: 0 auto 16px;
}

.matchmaking-card h3 { font-size: 20px; color: var(--secondary); margin-bottom: 6px; }
.matchmaking-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }

.matchmaking-card ul { text-align: left; margin: 0 0 16px; flex: 1; }
.matchmaking-card ul li { padding: 5px 0; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.matchmaking-card ul li i { color: var(--success); font-size: 15px; width: 18px; }

.matchmaking-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.matchmaking-price {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}

@media (max-width: 600px) {
    .matchmaking-grid { grid-template-columns: 1fr; gap: 16px; }
    .matchmaking-card { padding: 24px 16px; }
}

/* ===== App Layout ===== */
.app-layout { display: flex; min-height: 100vh; }

/* ===== Bottom Tab Bar (Mobile) ===== */
.bottom-tabs {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: var(--white);
    border-top: 1px solid var(--border-color);
    z-index: 2000;
    justify-content: space-around;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom, 0);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
}

.bottom-tabs .tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 12px;
    color: var(--gray-500);
    font-size: 10px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    min-width: 56px;
}

.bottom-tabs .tab-item i { font-size: 22px; }
.bottom-tabs .tab-item.active { color: var(--primary); }
.bottom-tabs .tab-item.active i { transform: scale(1.05); }

.tab-badge {
    position: absolute;
    top: 2px;
    right: 6px;
    background: var(--primary);
    color: var(--white);
    font-size: 9px;
    padding: 1px 5px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
    font-weight: 600;
}

.bottom-spacer { display: none; }

/* ===== Sidebar (Desktop) ===== */
.sidebar {
    width: 250px;
    background: var(--secondary);
    color: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
    overflow-y: auto;
    transition: left 0.3s ease;
}

.sidebar-brand {
    padding: 18px 20px;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.sidebar-brand i { margin-right: 8px; }
.sidebar-nav { padding: 8px 0; }
.sidebar-nav li a {
    display: flex;
    align-items: center;
    padding: 11px 20px;
    color: rgba(255,255,255,0.8);
    transition: var(--transition);
    gap: 10px;
    font-size: 14px;
}

.sidebar-nav li a:hover,
.sidebar-nav li a.active { background: rgba(255,255,255,0.1); color: var(--white); }
.sidebar-nav li a i { width: 18px; text-align: center; font-size: 15px; }

.sidebar-divider {
    padding: 12px 20px 4px;
    color: rgba(255,255,255,0.35);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge {
    background: var(--primary);
    color: var(--white);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    margin-left: auto;
}

/* ===== Main Content ===== */
.main-content {
    flex: 1;
    margin-left: 250px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== Top Bar ===== */
.top-bar {
    background: var(--white);
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    height: var(--top-bar-height);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 999;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--secondary);
    padding: 4px;
}

.top-bar-brand-mobile { display: none; font-weight: 700; font-size: 17px; color: var(--secondary); }

.top-bar-search form {
    display: flex;
    background: var(--gray-100);
    border-radius: 25px;
    overflow: hidden;
}

.top-bar-search input {
    border: none;
    background: transparent;
    padding: 7px 14px;
    width: 220px;
    font-size: 13px;
}

.top-bar-search button {
    background: none;
    border: none;
    padding: 7px 12px;
    cursor: pointer;
    color: var(--gray-600);
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.btn-premium {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-premium:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(243,156,18,0.3); }

.top-icon {
    position: relative;
    color: var(--gray-600);
    font-size: 18px;
    transition: var(--transition);
}

.top-icon:hover { color: var(--secondary); }

.badge-sm {
    position: absolute;
    top: -4px;
    right: -6px;
    background: var(--primary);
    color: var(--white);
    font-size: 9px;
    padding: 1px 5px;
    border-radius: 50%;
    min-width: 15px;
    text-align: center;
}

.top-user-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
}

.top-user-link img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gray-200);
}

/* ===== Page Content ===== */
.page-content {
    padding: 16px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    flex: 1;
}

/* ===== Hero Slideshow ===== */
.hero-slideshow {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.hero-slides {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
}

.hero-slide {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    padding: 20px;
    z-index: 2;
}

.hero-overlay h1 { font-size: 42px; margin-bottom: 12px; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.hero-overlay p { font-size: 18px; opacity: 0.9; margin-bottom: 24px; max-width: 500px; }

.hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.hero-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
}

.hero-dot.active { background: var(--white); transform: scale(1.2); }

.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 768px) {
    .hero-slideshow { height: 350px; }
    .hero-overlay h1 { font-size: 28px; }
    .hero-overlay p { font-size: 15px; }
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--secondary); color: var(--white); }
.btn-secondary:hover { background: var(--dark); }
.btn-outline { background: transparent; border: 2px solid var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--accent-dark); }
.btn-success { background: var(--success); color: var(--white); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-lg { padding: 14px 30px; font-size: 16px; }
.btn-block { width: 100%; }

.col { flex: 1; }

/* ===== Cards ===== */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.card-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 15px;
}

.card-body { padding: 18px; }
.card-footer {
    padding: 12px 18px;
    border-top: 1px solid var(--border-color);
    background: var(--gray-50);
}

/* ===== Forms ===== */
.form-group { margin-bottom: 16px; }

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 13px;
    color: var(--gray-700);
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: var(--transition);
    background: var(--white);
}

.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

textarea.form-control { min-height: 90px; resize: vertical; }

/* ===== Auth Pages ===== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light) 0%, #f0f2f5 100%);
    padding: 16px;
}

.auth-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 420px;
    overflow: hidden;
}

.auth-header {
    padding: 32px 24px 16px;
    text-align: center;
}

.auth-header .logo { font-size: 36px; color: var(--primary); margin-bottom: 8px; }
.auth-header h2 { font-size: 22px; color: var(--secondary); }
.auth-header p { color: var(--text-muted); font-size: 14px; }

.auth-body { padding: 16px 24px 24px; }

.auth-footer {
    padding: 16px 24px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background: var(--gray-50);
    font-size: 13px;
}

.auth-footer a { color: var(--primary); font-weight: 600; }

.alert {
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 13px;
}

.alert-danger { background: #fde8e8; color: #c0392b; border: 1px solid #f5c6cb; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-info { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

/* ===== Members Grid ===== */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
}

.member-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.member-card:active { transform: scale(0.97); }

.member-card-photo {
    height: 180px;
    background: var(--gray-200);
    position: relative;
    overflow: hidden;
}

.member-card-photo img { width: 100%; height: 100%; object-fit: cover; }

.member-card-status {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--white);
}

.online { background: var(--success); }
.offline { background: var(--gray-400); }

.member-card-premium {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: var(--white);
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 8px;
    font-weight: 600;
}

.premium-badge {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: var(--white);
    font-size: 11px;
    padding: 2px 10px;
    border-radius: 10px;
    font-weight: 600;
    display: inline-block;
}

.member-card-body { padding: 12px; }
.member-card-body h4 { font-size: 14px; margin-bottom: 2px; }
.member-card-body h4 a { color: var(--secondary); }
.member-card-body .details { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }

.member-card-actions {
    display: flex;
    gap: 6px;
    padding: 0 12px 12px;
}

.member-card-actions .btn { flex: 1; justify-content: center; padding: 6px 10px; font-size: 12px; }

/* ===== Profile Page ===== */
.profile-cover {
    height: 200px;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 50px;
}

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

.profile-info-bar {
    position: absolute;
    bottom: -40px;
    left: 16px;
    right: 16px;
    display: flex;
    align-items: flex-end;
    gap: 14px;
}

.profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 4px solid var(--white);
    box-shadow: var(--shadow);
    object-fit: cover;
    background: var(--white);
}

.profile-info-text { flex: 1; padding-bottom: 2px; }
.profile-info-text h2 { font-size: 18px; color: var(--white); text-shadow: 0 1px 3px rgba(0,0,0,0.4); }
.profile-info-text p { font-size: 13px; color: var(--white); opacity: 0.9; text-shadow: 0 1px 2px rgba(0,0,0,0.3); }

.profile-info-actions { display: flex; gap: 8px; padding-bottom: 2px; }
.profile-info-actions .btn { font-size: 12px; padding: 7px 14px; }

.profile-content { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.profile-detail-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 13px;
}

.profile-detail-item:last-child { border-bottom: none; }
.profile-detail-item .label { color: var(--text-muted); }
.profile-detail-item .value { font-weight: 500; }

.interests-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.tag {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

/* ===== Messages ===== */
.messages-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    height: calc(100vh - var(--top-bar-height) - 100px);
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.conversations-list {
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
}

.conversation-search {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
}

.conversation-search input {
    width: 100%;
    padding: 8px 14px;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-size: 13px;
}

.conversation-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid var(--gray-50);
}

.conversation-item:hover,
.conversation-item.active { background: var(--gray-50); }

.conversation-item img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }

.conversation-item .conv-info { flex: 1; min-width: 0; }
.conversation-item .conv-name { font-weight: 600; font-size: 13px; }
.conversation-item .conv-preview { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conversation-item .conv-time { font-size: 10px; color: var(--text-muted); }

.conversation-item .unread-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
}

.chat-area { display: flex; flex-direction: column; }

.chat-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-header img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.chat-header .chat-user-info h5 { font-size: 14px; }
.chat-header .chat-user-info small { color: var(--text-muted); font-size: 12px; }

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.message {
    max-width: 80%;
    padding: 10px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.4;
}

.message.sent {
    align-self: flex-end;
    background: var(--primary);
    color: var(--white);
    border-bottom-right-radius: 4px;
}

.message.received {
    align-self: flex-start;
    background: var(--gray-50);
    border-bottom-left-radius: 4px;
}

.message .msg-time { font-size: 10px; opacity: 0.7; margin-top: 3px; display: block; }

.chat-input {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
}

.chat-input input {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-size: 14px;
}

.chat-input input:focus { border-color: var(--primary); }

.chat-input button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-input button:hover { background: var(--primary-dark); }

/* Payment gate in chat */
.chat-payment-gate { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; }
.chat-payment-gate h3 { font-size: 20px; margin-bottom: 8px; }
.chat-payment-gate p { font-size: 14px; max-width: 320px; }

/* ===== Page Header ===== */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.page-header h2 { font-size: 20px; color: var(--secondary); }

/* ===== Filters ===== */
.filters-bar {
    background: var(--white);
    padding: 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 18px;
}

.filter-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.filter-form .form-group { margin-bottom: 0; min-width: 120px; flex: 1; }
.filter-form .form-group label { font-size: 11px; margin-bottom: 2px; }
.filter-form .form-control { padding: 7px 10px; font-size: 12px; }
.filter-form .btn { height: 36px; font-size: 12px; }

/* ===== Stats Cards ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.stat-card {
    background: var(--white);
    padding: 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 14px;
}

.stat-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--white);
    flex-shrink: 0;
}

.stat-card-icon.red { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
.stat-card-icon.blue { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); }
.stat-card-icon.green { background: linear-gradient(135deg, var(--success), #1e8449); }
.stat-card-icon.orange { background: linear-gradient(135deg, #f39c12, #e67e22); }
.stat-card-icon.purple { background: linear-gradient(135deg, #9b59b6, #8e44ad); }

.stat-card-info h3 { font-size: 22px; line-height: 1.2; }
.stat-card-info p { font-size: 12px; color: var(--text-muted); }

/* ===== Features Section ===== */
.features-section { padding: 50px 16px; text-align: center; max-width: 1000px; margin: 0 auto; }
.features-section h2 { font-size: 28px; margin-bottom: 32px; color: var(--secondary); }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }

.feature-card {
    padding: 28px 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card i { font-size: 34px; color: var(--primary); margin-bottom: 14px; }
.feature-card h4 { font-size: 16px; margin-bottom: 8px; }
.feature-card p { font-size: 13px; color: var(--text-muted); }

/* ===== Testimonials ===== */
.testimonials-section {
    background: var(--secondary);
    color: var(--white);
    padding: 50px 20px;
    text-align: center;
}

.testimonials-section h2 { font-size: 28px; margin-bottom: 28px; }

.testimonial { max-width: 500px; margin: 0 auto; font-size: 16px; font-style: italic; opacity: 0.9; }
.testimonial-author { margin-top: 16px; font-style: normal; font-weight: 600; }

/* ===== Pricing ===== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    position: relative;
}

.pricing-card.featured::before {
    content: 'Popular';
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary);
    color: var(--white);
    padding: 3px 12px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
}

.pricing-card h3 { font-size: 20px; color: var(--secondary); margin-bottom: 8px; }
.pricing-card .price { font-size: 36px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.pricing-card .price span { font-size: 14px; color: var(--text-muted); }
.pricing-card ul { text-align: left; margin: 16px 0; }
.pricing-card ul li { padding: 6px 0; font-size: 13px; }
.pricing-card ul li i { color: var(--success); margin-right: 8px; }

/* ===== Footer ===== */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 30px 16px;
    text-align: center;
}

.site-footer .footer-links { display: flex; justify-content: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.site-footer .footer-links a { color: rgba(255,255,255,0.7); font-size: 13px; }
.site-footer .footer-links a:hover { color: var(--white); }

/* ===== Table ===== */
.table-container { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }

table thead th {
    background: var(--gray-50);
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    color: var(--gray-700);
    border-bottom: 2px solid var(--border-color);
}

table tbody td { padding: 10px 12px; border-bottom: 1px solid var(--border-color); }
table tbody tr:hover { background: var(--gray-50); }

/* ===== Pagination ===== */
.pagination { display: flex; justify-content: center; gap: 4px; margin-top: 20px; }

.pagination a, .pagination span {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    background: var(--white);
    border: 1px solid var(--border-color);
    font-size: 13px;
    transition: var(--transition);
}

.pagination a:hover { background: var(--gray-50); }
.pagination .active { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* ===== Empty State ===== */
.empty-state { text-align: center; padding: 40px 16px; }
.empty-state i { font-size: 48px; color: var(--gray-400); margin-bottom: 14px; }
.empty-state h4 { font-size: 18px; color: var(--gray-700); margin-bottom: 8px; }
.empty-state p { color: var(--text-muted); font-size: 14px; max-width: 320px; margin: 0 auto; }

/* ===== Modal ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-overlay.active { display: flex; }

.modal-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 420px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h4 { font-size: 16px; }
.modal-close { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--gray-600); }

.modal-body { padding: 20px; }
.modal-footer { padding: 12px 20px; border-top: 1px solid var(--border-color); text-align: right; }

/* ===== Gallery ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }

.gallery-item {
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    position: relative;
}

.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.gallery-item:hover img { transform: scale(1.05); }

/* ===== Notifications ===== */
.notification-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-100);
    transition: var(--transition);
    align-items: flex-start;
}

.notification-item:hover { background: var(--gray-50); }
.notification-item.unread { background: var(--primary-light); }

.notification-item .notif-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    background: var(--primary-light);
    color: var(--primary);
}

.notification-item .notif-body { flex: 1; }
.notification-item .notif-body p { font-size: 13px; margin-bottom: 2px; }
.notification-item .notif-body small { color: var(--text-muted); font-size: 11px; }

/* ===== Status Badges ===== */
.status-badge { padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.status-badge.active { background: #d4edda; color: #155724; }
.status-badge.inactive { background: #fff3cd; color: #856404; }
.status-badge.suspended { background: #f8d7da; color: #721c24; }
.status-badge.pending { background: #fff3cd; color: #856404; }
.status-badge.resolved { background: #d4edda; color: #155724; }

/* ===== Utilities ===== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted) !important; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-10 { gap: 10px; }
.gap-15 { gap: 15px; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.hide-mobile { display: inline; }

/* ===== Spotlight / Swipe ===== */
.spotlight-container { max-width: 420px; margin: 0 auto; position: relative; }

.spotlight-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.spotlight-card .photo { height: 380px; position: relative; }
.spotlight-card .photo img { width: 100%; height: 100%; object-fit: cover; }

.spotlight-card .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 24px 16px 16px;
    color: var(--white);
}

.spotlight-card .overlay h3 { font-size: 22px; }
.spotlight-card .overlay p { opacity: 0.9; }

.spotlight-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 16px;
    background: var(--white);
}

.spotlight-actions button {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 20px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.spotlight-actions .skip { background: var(--gray-100); color: var(--gray-600); }
.spotlight-actions .like { background: var(--primary); color: var(--white); }
.spotlight-actions .like:hover { transform: scale(1.1); }
.spotlight-actions .super { background: var(--accent); color: var(--white); }
.spotlight-actions .super:hover { transform: scale(1.1); }

/* ===== Support Messages ===== */
.support-messages { height: 350px; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #f8f9fa; border-radius: 0; }

/* ===== Unlock Pricing ===== */
.pricing-highlight { background: var(--primary-light); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; text-align: center; }
.pricing-highlight .price { font-size: 32px; font-weight: 700; color: var(--primary); }

/* ===== Admin ===== */
.admin-stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

/* ===== Photo Upload ===== */
.photo-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.photo-upload-area:hover { border-color: var(--primary); background: var(--primary-light); }
.photo-upload-area i { font-size: 34px; color: var(--gray-400); margin-bottom: 8px; }
.photo-upload-area p { color: var(--text-muted); font-size: 13px; }

/* ===== RESPONSIVE: Mobile First ===== */
@media (max-width: 768px) {
    .hide-mobile { display: none; }
    .sidebar { left: -260px; }
    .sidebar.active { left: 0; }
    .main-content { margin-left: 0; }
    .mobile-toggle { display: block; }
    .top-bar-brand-mobile { display: block; }
    .top-bar-search { display: none; }
    .bottom-tabs { display: flex; }
    .bottom-spacer { display: block; height: var(--bottom-nav-height); }
    .page-content { padding: 12px; padding-bottom: 8px; }
    .members-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .member-card-photo { height: 150px; }
    .profile-content { grid-template-columns: 1fr; }
    .profile-cover { height: 160px; margin-bottom: 45px; }
    .profile-avatar { width: 75px; height: 75px; }
    .profile-info-bar { bottom: -35px; }
    .profile-info-text h2 { font-size: 16px; }
    .messages-container { grid-template-columns: 1fr; height: calc(100vh - var(--top-bar-height) - var(--bottom-nav-height) - 40px); border-radius: 0; margin: -12px; }
    .conversations-list { display: block; }
    .messages-container .chat-area { display: block; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .stat-card { padding: 12px; }
    .stat-card-icon { width: 38px; height: 38px; font-size: 16px; }
    .stat-card-info h3 { font-size: 18px; }
    .form-row { grid-template-columns: 1fr; }
    .form-row-3 { grid-template-columns: 1fr 1fr; }
    .features-section h2 { font-size: 24px; }
    .hero h1 { font-size: 28px; }
    .auth-box { max-width: 100%; border-radius: 0; min-height: 100vh; }
    .auth-page { padding: 0; }
    .page-header h2 { font-size: 18px; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .filter-form .form-group { min-width: calc(50% - 10px); }
    table { font-size: 12px; }
    table thead th, table tbody td { padding: 8px 10px; }
    .pricing-grid { grid-template-columns: 1fr; }
    .pricing-card.featured { transform: none; }
    .pricing-card { padding: 20px; }
    .conversation-item { padding: 10px; }
    .conversation-item img { width: 38px; height: 38px; }
    .chat-input { padding: 10px 12px; }
    .chat-messages { padding: 12px; }
    .message { max-width: 90%; font-size: 13px; }
    .support-messages { height: 280px; }
}

@media (max-width: 400px) {
    .members-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .member-card-photo { height: 130px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .btn { font-size: 13px; padding: 8px 16px; }
}

/* ===== Tablet ===== */
@media (min-width: 769px) and (max-width: 992px) {
    .sidebar { width: 220px; }
    .main-content { margin-left: 220px; }
    .members-grid { grid-template-columns: repeat(3, 1fr); }
    .profile-content { grid-template-columns: 1fr; }
}
