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

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #16161f;
    --bg-card-hover: #1c1c28;
    --bg-input: #1a1a25;
    --border: #2a2a3a;
    --border-light: #3a3a4a;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent: #6c5ce7;
    --accent-light: #a855f7;
    --accent-glow: rgba(108, 92, 231, 0.3);
    --success: #22c55e;
    --success-glow: rgba(34, 197, 94, 0.25);
    --danger: #ef4444;
    --danger-glow: rgba(239, 68, 68, 0.25);
    --warning: #f59e0b;
    --gold: #fbbf24;
    --gradient: linear-gradient(135deg, #6c5ce7, #a855f7);
    --gradient-gold: linear-gradient(135deg, #f59e0b, #fbbf24);
    --glass: rgba(22, 22, 31, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --radius: 12px;
    --radius-lg: 16px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px var(--accent-glow);
    --nav-height: 64px;
    --bottom-nav-height: 70px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
}

a {
    color: var(--accent-light);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #c084fc;
}

/* ─── Headings ─── */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    font-weight: 700;
    overflow-wrap: break-word;
}

h1 {
    font-size: 2.2rem;
}

h2 {
    font-size: 1.8rem;
}

h3 {
    font-size: 1.4rem;
}

h4 {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1.1rem;
    }
}

img {
    max-width: 100%;
    height: auto;
}

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

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* ─── Top Nav (Desktop) ─── */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-logo i,
.nav-logo svg {
    width: 28px;
    height: 28px;
    stroke: url(#logo-gradient); /* This won't work easily with CSS alone for Lucide */
    stroke: var(--accent-light);
    -webkit-text-fill-color: initial;
}

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

.nav-links a {
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a i, 
.nav-links a svg {
    width: 18px;
    height: 18px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
    background: var(--bg-card);
}

.nav-auth {
    display: flex;
    gap: 12px;
    align-items: center;
}

@media (max-width: 768px) {
    .top-nav {
        padding: 0 16px;
    }

    .nav-logo {
        font-size: 1.2rem;
    }

    .nav-links {
        gap: 4px;
    }

    .nav-links a {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .nav-auth .btn {
        padding: 6px 12px;
        font-size: 0.7rem;
    }
}

/* ─── Bottom Nav (Mobile) ─── */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--bottom-nav-height);
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    justify-content: space-around;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 12px;
    transition: all 0.2s;
}

.bottom-nav a:hover,
.bottom-nav a.active {
    color: var(--accent-light);
}

.bottom-nav a.active::after {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent-light);
    margin-top: 2px;
}

.bottom-nav i,
.bottom-nav svg {
    width: 22px;
    height: 22px;
}

.bottom-nav .submit-btn {
    background: var(--gradient);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -20px;
    box-shadow: var(--shadow-glow);
}

.bottom-nav .submit-btn i,
.bottom-nav .submit-btn svg {
    width: 24px;
    height: 24px;
}

/* ─── Layout ─── */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: calc(var(--nav-height) + 24px) 20px 24px;
}

@media (max-width: 768px) {
    .main-content {
        padding: calc(var(--nav-height) + 16px) 16px 16px;
    }
}

@media (min-width: 769px) {
    .main-content {
        padding: calc(var(--nav-height) + 24px) 24px 24px;
    }
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--accent);
}

.btn-success {
    background: var(--success);
    color: #fff;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}

.btn-outline {
    background: transparent;
    color: var(--accent-light);
    border: 1px solid var(--accent);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
}

.btn-outline:hover {
    background: var(--accent);
    color: #fff;
}

.btn-gold {
    background: var(--gradient-gold);
    color: #000;
    font-weight: 700;
}

/* ─── Cards ─── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.card-glass {
    background: var(--glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

/* ─── Project Card ─── */
.project-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.project-card:hover {
    border-color: var(--border-light);
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.project-card:hover::before {
    opacity: 1;
}

.project-card .card-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.project-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
}

.project-card h3 a {
    color: var(--text-primary);
    transition: color 0.2s;
}

.project-card:hover h3 a {
    color: var(--accent-light);
}

.project-card .description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    flex-grow: 1;
    margin: 8px 0;
    overflow-wrap: break-word;
}

.project-card .card-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.75rem;
    color: var(--text-muted);
    align-items: center;
}

.project-card .card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.project-card .card-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: auto;
    flex-wrap: wrap;
}

/* ─── Badges ─── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-boost {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-verified {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-new {
    background: rgba(108, 92, 231, 0.15);
    color: var(--accent-light);
    border: 1px solid rgba(108, 92, 231, 0.3);
}

.badge-pending {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.badge-rejected {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.badge-category {
    background: var(--bg-input);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

/* ─── Vote Buttons ─── */
.vote-group {
    display: flex;
    align-items: center;
    gap: 4px;
}

.vote-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-input);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.25s;
    font-family: inherit;
}

.vote-btn:hover {
    border-color: var(--border-light);
}

.vote-btn.like:hover,
.vote-btn.like.active {
    border-color: var(--success);
    color: var(--success);
    background: var(--success-glow);
}

.vote-btn.dislike:hover,
.vote-btn.dislike.active {
    border-color: var(--danger);
    color: var(--danger);
    background: var(--danger-glow);
}

.vote-btn .count {
    font-weight: 700;
}

@keyframes votePop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

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

.vote-btn.pop {
    animation: votePop 0.3s ease;
}

/* ─── Forms ─── */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-input);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

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

.form-select option {
    background: var(--bg-card);
}

/* ─── Auth Pages ─── */
.auth-container {
    max-width: 440px;
    margin: 80px auto;
    padding: 0 20px;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
}

.auth-card h1 {
    font-size: 1.8rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
}

.auth-card .subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.google-btn {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.2s;
    font-family: inherit;
}

.google-btn:hover {
    border-color: var(--accent);
    background: var(--bg-card-hover);
}

.google-btn img {
    width: 20px;
    height: 20px;
}

/* ─── Filter Tabs ─── */
.filter-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 4px;
    border: 1px solid var(--border);
    overflow-x: auto;
    margin: 0 auto 24px;
    scroll-behavior: smooth;
    width: 100%;
    max-width: 950px;
}

.filter-tab {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    border: none;
    background: none;
    font-family: inherit;
}

.filter-tab:hover {
    color: var(--text-primary);
}

.filter-tab.active {
    background: var(--accent);
    color: #fff;
}

@media (max-width: 768px) {
    .filter-tabs {
        padding: 2px;
        gap: 2px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .filter-tab {
        padding: 8px 14px;
        font-size: 0.75rem;
    }
}

/* ─── Hero Section ─── */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background: radial-gradient(ellipse at center top, rgba(108, 92, 231, 0.15) 0%, transparent 70%);
    margin-bottom: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.hero h1 span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    max-width: 650px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .hero {
        padding: 32px 16px;
        margin-bottom: 24px;
    }

    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }

    .hero p {
        font-size: 0.95rem;
    }
}

.search-box {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.search-box input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
}

.search-box button {
    padding: 14px 24px;
    background: var(--gradient);
    border: none;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.2s;
}

.search-box button:hover {
    opacity: 0.9;
}

/* ─── Stats ─── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-card .stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 4px;
}

/* ─── Grid ─── */
.projects-grid {
    display: grid;
    gap: 20px;
    padding: 0;
}

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

/* Responsive Grid */
@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) and (max-width: 1440px) {
    .grid-2 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1441px) {
    .grid-2 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ─── Comments ─── */
.comment-item {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-body {
    flex: 1;
}

.comment-author {
    font-weight: 600;
    font-size: 0.9rem;
}

.comment-time {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-left: 8px;
}

.comment-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 4px;
}

/* ─── Boost Cards ─── */
.boost-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.boost-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
}

.boost-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.boost-card.popular {
    border-color: var(--accent);
}

.boost-card.popular::before {
    content: 'BELIEBT';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: #fff;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
}

.boost-card .boost-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.boost-card .boost-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.boost-card .boost-price {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.boost-card .boost-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 12px 0 20px;
}

/* ─── Leaderboard ─── */
.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 8px;
    transition: all 0.2s;
}

.leaderboard-item:hover {
    border-color: var(--border-light);
}

.leaderboard-rank {
    font-size: 1.4rem;
    font-weight: 800;
    width: 40px;
    text-align: center;
}

.leaderboard-rank.gold {
    color: var(--gold);
}

.leaderboard-rank.silver {
    color: #94a3b8;
}

.leaderboard-rank.bronze {
    color: #cd7f32;
}

.leaderboard-info {
    flex: 1;
}

.leaderboard-title {
    font-weight: 600;
    font-size: 1rem;
}

.leaderboard-score {
    font-weight: 700;
    color: var(--accent-light);
    font-size: 1.1rem;
}

/* ─── Flash Messages ─── */
.flash {
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

.flash-success {
    background: var(--success-glow);
    color: var(--success);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.flash-error {
    background: var(--danger-glow);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.flash-warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── Admin ─── */
.admin-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    padding: 24px 16px;
    position: fixed;
    width: 240px;
    height: 100vh;
    overflow-y: auto;
}

.admin-sidebar .logo {
    font-size: 1.2rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 32px;
    padding: 0 8px;
}

.admin-sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 4px;
    transition: all 0.2s;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
    background: var(--bg-card);
    color: var(--text-primary);
}

.admin-main {
    margin-left: 240px;
    padding: 32px;
}

.admin-header {
    margin-bottom: 32px;
    background: var(--glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    padding: 20px;
    border-radius: var(--radius-lg);
}

.sidebar-toggle {
    display: none;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    backdrop-filter: blur(4px);
}

.sidebar-overlay.active {
    display: block;
}

.admin-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
}

/* ─── Tables ─── */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    color: var(--text-secondary);
}

tr:hover td {
    background: var(--bg-card-hover);
}

/* ─── Modal ─── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 500px;
    width: 100%;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

/* ─── Profile ─── */
.profile-header {
    display: flex;
    gap: 24px;
    align-items: center;
    margin-bottom: 32px;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
}

.profile-info h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.profile-stats {
    display: flex;
    gap: 24px;
    margin-top: 8px;
}

.profile-stats span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.profile-stats strong {
    color: var(--text-primary);
}

/* ─── Empty State ─── */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state .icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

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

.pagination a,
.pagination span {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: all 0.2s;
}

.pagination a:hover {
    border-color: var(--accent);
    color: var(--accent-light);
}

.pagination .active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* ─── Report Modal ─── */
.report-reasons label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.report-reasons label:hover {
    background: var(--bg-input);
}

.report-reasons input[type="radio"] {
    accent-color: var(--accent);
}

/* ─── Responsive ─── */
@media (max-width: 768px) {

    .top-nav .nav-links,
    .top-nav .nav-auth {
        display: none;
    }

    .bottom-nav {
        display: flex;
    }

    .main-content {
        padding: calc(var(--nav-height) + 16px) 12px calc(var(--bottom-nav-height) + 16px);
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .auth-container {
        margin: 40px auto;
    }

    .auth-card {
        padding: 28px 20px;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        display: block !important;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1050;
    }

    .admin-sidebar.active {
        transform: translateX(0);
    }

    .sidebar-toggle {
        display: block;
    }

    .admin-main {
        margin-left: 0;
        padding: 20px 12px;
    }

    .admin-header {
        padding: 16px;
    }

    .boost-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-tabs {
        gap: 2px;
    }

    .filter-tab {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
}

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

    .card {
        padding: 16px;
    }
}