/* ============================================
   MeetLocal - Main Stylesheet
   ============================================ */

:root {
    /* Brand */
    --primary: #e63946;
    --primary-dark: #c1121f;
    --primary-light: #fce4e6;
    --secondary: #1d3557;
    --secondary-light: #457b9d;
    --accent: #f4a261;
    --accent-dark: #e76f51;

    /* Neutrals */
    --white: #ffffff;
    --gray-50: #f8f9fa;
    --gray-100: #f1f3f5;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #868e96;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;

    /* Status */
    --success: #2d9e5c;
    --warning: #e9a100;
    --danger: #e63946;
    --info: #457b9d;

    /* Tiers */
    --free-color: #868e96;
    --premium-color: #f4a261;
    --vip-color: #e63946;

    /* Layout */
    --header-height: 64px;
    --sidebar-width: 280px;
    --container-max: 1200px;
    --radius: 8px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --transition: 0.2s ease;

    /* Typography */
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--gray-50);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 20px; }
.main-content { flex: 1; padding: 30px 0; }

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background: var(--secondary);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    font-weight: 700;
    font-size: 22px;
}
.logo:hover { color: var(--white); }
.logo-icon { color: var(--primary); font-size: 26px; }
.logo-text { font-family: var(--font-display); }

.main-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}
.main-nav a {
    color: rgba(255,255,255,0.85);
    padding: 8px 14px;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 14px;
    transition: all var(--transition);
}
.main-nav a:hover { color: var(--white); background: rgba(255,255,255,0.1); }

.nav-badge-link { position: relative; }
.nav-badge {
    position: absolute;
    top: 0;
    right: 2px;
    background: var(--primary);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

.nav-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.3);
}

.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
    background: none;
    border: none;
    color: rgba(255,255,255,0.9);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 14px;
}
.nav-dropdown-toggle:hover { background: rgba(255,255,255,0.1); }
.dropdown-arrow { font-size: 10px; }

.nav-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    padding: 8px 0;
    z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
    display: block;
    padding: 10px 18px;
    color: var(--gray-700);
    font-size: 14px;
}
.nav-dropdown-menu a:hover { background: var(--gray-50); color: var(--primary); }
.nav-dropdown-menu hr { border: none; border-top: 1px solid var(--gray-200); margin: 6px 0; }
.upgrade-link { color: var(--accent) !important; font-weight: 600; }

/* Mobile */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}
.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

@media (max-width: 768px) {
    .mobile-toggle { display: flex; }
    .main-nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--secondary);
        flex-direction: column;
        padding: 16px;
        gap: 4px;
        box-shadow: var(--shadow-lg);
    }
    .main-nav.open { display: flex; }
    .main-nav a { width: 100%; }
    .nav-dropdown-menu {
        position: static;
        box-shadow: none;
        background: rgba(255,255,255,0.05);
        border-radius: var(--radius);
    }
    .nav-dropdown-menu a { color: rgba(255,255,255,0.8); }
    .nav-dropdown-menu a:hover { background: rgba(255,255,255,0.1); color: var(--white); }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    line-height: 1.4;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 6px 16px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); }
.btn-secondary { background: var(--secondary); color: var(--white); }
.btn-secondary:hover { background: #152a45; color: var(--white); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--accent-dark); color: var(--white); }
.btn-outline { background: transparent; border-color: var(--gray-300); color: var(--gray-700); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,0.4); color: var(--white); }
.btn-outline-light:hover { background: rgba(255,255,255,0.1); border-color: var(--white); color: var(--white); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-success { background: var(--success); color: var(--white); }
.btn-ghost { background: none; border: none; color: var(--gray-600); padding: 8px; }
.btn-ghost:hover { color: var(--primary); }

/* ============================================
   FORMS
   ============================================ */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--gray-700);
}
.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 15px;
    transition: border-color var(--transition), box-shadow var(--transition);
    background: var(--white);
    color: var(--gray-800);
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; }
.form-hint { font-size: 12px; color: var(--gray-500); margin-top: 4px; }
.form-error { font-size: 12px; color: var(--danger); margin-top: 4px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); }
.card-body { padding: 20px; }
.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-100);
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ============================================
   MEMBER GRID & CARDS
   ============================================ */
.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}
.member-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
}
.member-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.member-card-photo {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    background: var(--gray-100);
}
.member-card-info { padding: 14px 16px; }
.member-card-name {
    font-weight: 700;
    font-size: 16px;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    gap: 6px;
}
.member-card-meta {
    font-size: 13px;
    color: var(--gray-500);
    margin-top: 4px;
}
.member-card-distance {
    font-size: 12px;
    color: var(--secondary-light);
    font-weight: 500;
    margin-top: 6px;
}

/* Online indicator */
.online-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.online-dot.online { background: var(--success); box-shadow: 0 0 6px rgba(45,158,92,0.5); }
.online-dot.offline { background: var(--gray-400); }

/* Tier badges */
.tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.tier-badge.free { background: var(--gray-100); color: var(--gray-600); }
.tier-badge.premium { background: #fff3e0; color: #e65100; }
.tier-badge.vip { background: #fce4e6; color: var(--primary); }

/* Category badge */
.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
}

/* ============================================
   PROFILE PAGE
   ============================================ */
.profile-header {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    padding: 40px 0;
    color: var(--white);
    margin: -30px 0 30px;
}
.profile-header-inner {
    display: flex;
    gap: 30px;
    align-items: flex-end;
}
.profile-avatar {
    width: 160px;
    height: 160px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    border: 4px solid rgba(255,255,255,0.3);
    box-shadow: var(--shadow-lg);
}
.profile-name {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 6px;
}
.profile-meta { opacity: 0.85; font-size: 15px; }
.profile-actions { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }

.profile-body { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
@media (max-width: 768px) {
    .profile-body { grid-template-columns: 1fr; }
    .profile-header-inner { flex-direction: column; align-items: center; text-align: center; }
    .profile-avatar { width: 120px; height: 120px; }
}

.profile-section { margin-bottom: 24px; }
.profile-section h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gray-100);
}

/* Photo gallery */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}
.photo-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius);
    cursor: pointer;
    transition: transform var(--transition);
}
.photo-grid img:hover { transform: scale(1.03); }

/* ============================================
   SEARCH
   ============================================ */
.search-filters {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}
.search-filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    align-items: end;
}

/* ============================================
   FORUM
   ============================================ */
.forum-category-list { list-style: none; }
.forum-category-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--gray-100);
    gap: 16px;
    transition: background var(--transition);
}
.forum-category-item:hover { background: var(--gray-50); }
.forum-category-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.forum-category-info { flex: 1; }
.forum-category-name { font-weight: 700; font-size: 16px; }
.forum-category-desc { font-size: 13px; color: var(--gray-500); margin-top: 2px; }
.forum-category-stats { text-align: right; font-size: 13px; color: var(--gray-500); }
.forum-locked-badge {
    font-size: 11px;
    background: var(--primary-light);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 100px;
    font-weight: 600;
}

.topic-list { list-style: none; }
.topic-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--gray-100);
    gap: 14px;
}
.topic-item:hover { background: var(--gray-50); }
.topic-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.topic-info { flex: 1; }
.topic-title { font-weight: 600; color: var(--gray-800); }
.topic-title a { color: inherit; }
.topic-title a:hover { color: var(--primary); }
.topic-meta { font-size: 12px; color: var(--gray-500); margin-top: 2px; }
.topic-stats { text-align: right; font-size: 13px; color: var(--gray-500); min-width: 100px; }

.forum-post {
    padding: 20px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    gap: 16px;
}
.forum-post-author {
    text-align: center;
    min-width: 100px;
    flex-shrink: 0;
}
.forum-post-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 8px;
}
.forum-post-username { font-weight: 600; font-size: 14px; }
.forum-post-body { flex: 1; line-height: 1.7; }
.forum-post-meta { font-size: 12px; color: var(--gray-500); margin-bottom: 10px; }

/* ============================================
   MESSAGES
   ============================================ */
.message-list { list-style: none; }
.message-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--gray-100);
    gap: 14px;
    transition: background var(--transition);
}
.message-item:hover { background: var(--gray-50); }
.message-item.unread { background: #fffbf0; font-weight: 500; }
.message-item.unread .message-subject { font-weight: 700; }
.message-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.message-info { flex: 1; min-width: 0; }
.message-subject { font-weight: 600; color: var(--gray-800); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.message-preview { font-size: 13px; color: var(--gray-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.message-time { font-size: 12px; color: var(--gray-500); white-space: nowrap; }

/* ============================================
   UPGRADE PAGE
   ============================================ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}
.pricing-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--gray-200);
    transition: transform var(--transition), box-shadow var(--transition);
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card.featured { border-color: var(--primary); position: relative; }
.pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 4px 16px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}
.pricing-tier { font-size: 22px; font-weight: 700; color: var(--gray-800); margin-bottom: 8px; }
.pricing-price { font-family: var(--font-display); font-size: 42px; color: var(--primary); font-weight: 700; }
.pricing-price small { font-size: 16px; font-weight: 400; color: var(--gray-500); }
.pricing-features {
    list-style: none;
    margin: 24px 0;
    text-align: left;
}
.pricing-features li {
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.pricing-features li::before { content: '✓'; color: var(--success); font-weight: 700; }
.pricing-features li.disabled { opacity: 0.4; }
.pricing-features li.disabled::before { content: '✕'; color: var(--gray-400); }

/* ============================================
   ALERTS
   ============================================ */
.alert {
    padding: 14px 0;
    font-size: 14px;
    font-weight: 500;
}
.alert-success { background: #d4edda; color: #155724; }
.alert-error { background: #f8d7da; color: #721c24; }
.alert-warning { background: #fff3cd; color: #856404; }
.alert-info { background: #d1ecf1; color: #0c5460; }

/* ============================================
   PAGINATION
   ============================================ */
.pagination { margin: 30px 0; text-align: center; }
.pagination ul { list-style: none; display: inline-flex; gap: 4px; }
.pagination li a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: var(--radius);
    background: var(--white);
    color: var(--gray-700);
    font-weight: 500;
    font-size: 14px;
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
}
.pagination li a:hover { border-color: var(--primary); color: var(--primary); }
.pagination li.active a { background: var(--primary); color: var(--white); border-color: var(--primary); }
.pagination .ellipsis { display: flex; align-items: center; padding: 0 8px; color: var(--gray-400); }

/* ============================================
   HERO
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--secondary) 0%, #2a4a7f 50%, var(--secondary-light) 100%);
    padding: 80px 0;
    color: var(--white);
    text-align: center;
    margin: -30px 0 30px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(230,57,70,0.15) 0%, transparent 60%),
                radial-gradient(circle at 70% 50%, rgba(244,162,97,0.1) 0%, transparent 60%);
}
.hero-content { position: relative; z-index: 1; max-width: 650px; margin: 0 auto; }
.hero h1 {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}
.hero p { font-size: 18px; opacity: 0.9; margin-bottom: 30px; line-height: 1.6; }
.hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-stat-number {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
}
.hero-stat-label { font-size: 13px; opacity: 0.7; margin-top: 2px; }

@media (max-width: 600px) {
    .hero { padding: 50px 0; }
    .hero h1 { font-size: 32px; }
    .hero-stats { gap: 24px; }
    .hero-stat-number { font-size: 24px; }
}

/* ============================================
   PAGE TITLES
   ============================================ */
.page-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 24px;
}
.page-subtitle {
    color: var(--gray-500);
    font-size: 15px;
    margin-top: -16px;
    margin-bottom: 24px;
}

/* ============================================
   TABS
   ============================================ */
.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--gray-200);
    margin-bottom: 24px;
    overflow-x: auto;
}
.tab {
    padding: 10px 20px;
    font-weight: 600;
    font-size: 14px;
    color: var(--gray-500);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all var(--transition);
    white-space: nowrap;
    cursor: pointer;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
}
.tab:hover { color: var(--gray-800); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--secondary);
    color: rgba(255,255,255,0.7);
    padding: 50px 0 20px;
    margin-top: 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
}
.footer-col h4 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 14px;
    font-weight: 600;
}
.footer-col p { font-size: 14px; line-height: 1.6; }
.footer-col a {
    display: block;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    padding: 4px 0;
    transition: color var(--transition);
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 13px;
}
@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--gray-500); }
.text-small { font-size: 13px; }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }

/* Error list */
.error-list {
    background: #fce4e6;
    border: 1px solid #f5c2c7;
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 20px;
    list-style: none;
}
.error-list li {
    color: var(--danger);
    font-size: 14px;
    padding: 3px 0;
}
.error-list li::before {
    content: '• ';
    font-weight: 700;
}

/* Lightbox */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.lightbox-overlay.active { display: flex; }
.lightbox-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: var(--radius);
}

/* ============================================
   ADMIN STYLES
   ============================================ */
.admin-layout {
    display: flex;
    min-height: 100vh;
}
.admin-sidebar {
    width: var(--sidebar-width);
    background: var(--gray-900);
    color: var(--white);
    padding: 20px 0;
    flex-shrink: 0;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 100;
}
.admin-sidebar-logo {
    padding: 10px 20px 20px;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 10px;
}
.admin-sidebar-logo small { display: block; font-size: 11px; font-family: var(--font-body); font-weight: 400; opacity: 0.5; text-transform: uppercase; letter-spacing: 1px; }
.admin-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    transition: all var(--transition);
}
.admin-nav a:hover { color: var(--white); background: rgba(255,255,255,0.05); }
.admin-nav a.active { color: var(--white); background: rgba(255,255,255,0.1); border-right: 3px solid var(--primary); }
.admin-nav-section {
    padding: 12px 20px 6px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.3);
    font-weight: 600;
}

.admin-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 30px;
    background: var(--gray-50);
}
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}
.stat-card-value {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--gray-800);
}
.stat-card-label { font-size: 13px; color: var(--gray-500); margin-top: 4px; }

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.data-table th {
    background: var(--gray-50);
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-600);
    border-bottom: 2px solid var(--gray-200);
}
.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-100);
    font-size: 14px;
}
.data-table tr:hover td { background: var(--gray-50); }

.admin-table-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .admin-sidebar { display: none; }
    .admin-main { margin-left: 0; }
}
