/* ==================== DESIGN TOKENS ==================== */
:root {
    --bg: #08080a;
    --bg-elevated: #0e0e12;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-glass: rgba(8, 8, 10, 0.85);
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --text: #f0f0f5;
    --text-secondary: #a0a0b0;
    --text-muted: #6a6a7a;
    --primary: #8b5cf6;
    --primary-hover: #a78bfa;
    --primary-glow: rgba(139, 92, 246, 0.15);
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --discord: #5865f2;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --font: 'Poppins', -apple-system, sans-serif;
}

/* ==================== RESET ==================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; }
img, video { display: block; max-width: 100%; }

/* ==================== BACKGROUND EFFECTS ==================== */
.network-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.grid-overlay {
    position: fixed; inset: 0; pointer-events: none; z-index: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 60px 60px;
}
.bg-effects { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.glow-blob { position: absolute; border-radius: 50%; }
.glow-blob-1 { top: 20vh; right: 10%; width: 1px; height: 1px; box-shadow: 0 0 400px 250px rgba(139,92,246,0.08); }
.glow-blob-2 { bottom: 20vh; left: 5%; width: 1px; height: 1px; box-shadow: 0 0 350px 200px rgba(139,92,246,0.06); }
.glow-blob-3 { top: 60vh; right: 30%; width: 1px; height: 1px; box-shadow: 0 0 300px 180px rgba(59,130,246,0.05); }

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 20px; border-radius: var(--radius); font-weight: 600; font-size: 0.9rem;
    transition: all 0.2s ease; white-space: nowrap;
}
.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: var(--radius-lg); }
.btn-primary {
    background: var(--primary); color: #fff;
    box-shadow: 0 4px 20px rgba(139,92,246,0.3);
}
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(139,92,246,0.4); }
.btn-ghost {
    background: rgba(255,255,255,0.05); color: var(--text-secondary);
    border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); color: var(--text); border-color: var(--border-hover); }
.btn-ghost.active { background: var(--primary-glow); color: var(--primary); border-color: rgba(139,92,246,0.3); }
.btn-discord {
    background: var(--discord); color: #fff;
    box-shadow: 0 4px 20px rgba(88,101,242,0.3);
}
.btn-discord:hover { background: #6b73ff; transform: translateY(-2px); box-shadow: 0 8px 30px rgba(88,101,242,0.4); }
.btn-full { width: 100%; }
.btn-icon { padding: 10px; width: 40px; height: 40px; }
.btn-purchase {
    flex: 1; padding: 12px 20px; border-radius: var(--radius); font-weight: 700;
    background: linear-gradient(135deg, #f59e0b, #d97706); color: #000;
    box-shadow: 0 4px 15px rgba(245,158,11,0.3);
}
.btn-purchase:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(245,158,11,0.4); }
.btn-purchase:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-purchase-sm {
    width: 100%; padding: 10px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.85rem;
    background: linear-gradient(135deg, #f59e0b, #d97706); color: #000;
    transition: all 0.2s ease;
}
.btn-purchase-sm:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(245,158,11,0.4); }
.btn-sm { padding: 6px 10px; font-size: 0.8rem; border-radius: var(--radius-sm); }
.btn-edit { background: rgba(59,130,246,0.15); color: #60a5fa; border: 1px solid rgba(59,130,246,0.3); }
.btn-edit:hover { background: rgba(59,130,246,0.25); }
.btn-delete { background: rgba(239,68,68,0.15); color: #f87171; border: 1px solid rgba(239,68,68,0.3); }
.btn-delete:hover { background: rgba(239,68,68,0.25); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; }

/* ==================== BADGES & TAGS ==================== */
.badge { padding: 3px 8px; border-radius: var(--radius-sm); font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: #fff; }
.badge-new { background: #8b5cf6; box-shadow: 0 2px 10px rgba(139,92,246,0.4); }
.badge-hot { background: #ef4444; box-shadow: 0 2px 10px rgba(239,68,68,0.4); }
.badge-updated { background: #f59e0b; box-shadow: 0 2px 10px rgba(245,158,11,0.4); }
.tag {
    display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px;
    border-radius: var(--radius-sm); font-size: 0.7rem; font-weight: 600;
}
.tag-script { background: rgba(59,130,246,0.15); color: #60a5fa; }
.tag-maps { background: rgba(34,197,94,0.15); color: #4ade80; }
.tag-vehicle { background: rgba(251,146,60,0.15); color: #fb923c; }
.tag-clothing { background: rgba(244,114,182,0.15); color: #f472b6; }
.tag-tool { background: rgba(168,85,247,0.15); color: #c084fc; }
.tag-fashion { background: rgba(236,72,153,0.15); color: #ec4899; }

/* ==================== TOPBAR ==================== */
.topbar {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
    width: min(1500px, calc(100vw - 48px)); min-height: 64px;
    padding: 0 20px; z-index: 50;
    display: flex; align-items: center; gap: 24px;
    border-radius: var(--radius-full);
    background: var(--bg-glass); backdrop-filter: blur(48px) saturate(200%);
    border: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; font-weight: 800; }
.brand-icon {
    width: 32px; height: 32px; border-radius: var(--radius-sm);
    background: var(--primary-glow); border: 1px solid rgba(139,92,246,0.3);
    display: flex; align-items: center; justify-content: center;
}
.brand-icon i { font-size: 0.9rem; color: var(--primary); }
.brand-text strong { color: var(--primary); }
.topbar-nav { flex: 1; display: flex; align-items: center; gap: 4px; }
.topbar-nav a {
    padding: 8px 16px; border-radius: var(--radius-full); font-size: 0.85rem;
    font-weight: 600; color: var(--text-secondary); transition: all 0.2s ease;
}
.topbar-nav a:hover, .topbar-nav a.active { color: var(--primary); background: var(--primary-glow); }
.topbar-actions { display: flex; align-items: center; gap: 8px; }

/* ==================== HOME PAGE ==================== */
.page-home {
    position: relative; z-index: 10;
    display: flex; flex-direction: column; align-items: center;
    padding: 160px 24px 80px; gap: 100px;
}

/* Hero */
.hero { width: min(900px, 100%); text-align: center; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px; border-radius: var(--radius-full);
    background: rgba(139,92,246,0.1); border: 1px solid rgba(139,92,246,0.2);
    font-size: 0.8rem; font-weight: 600; color: var(--primary);
    margin-bottom: 24px;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero-title { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900; line-height: 1.1; margin-bottom: 20px; }
.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, #a78bfa 50%, #7c3aed 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem); color: var(--text-secondary);
    line-height: 1.6; max-width: 600px; margin: 0 auto 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 40px; }
.hero-stats {
    display: flex; align-items: center; justify-content: center; gap: 24px;
    padding: 16px 24px; border-radius: var(--radius-lg);
    background: var(--bg-card); border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stat-icon { color: var(--primary); font-size: 0.9rem; }
.stat-value { font-size: 1.4rem; font-weight: 800; color: #fff; }
.stat-label { font-size: 0.75rem; color: var(--text-muted); }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* Features */
.features { width: min(1100px, 100%); text-align: center; }
.section-header { margin-bottom: 48px; }
.section-label {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.8rem; font-weight: 700; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px;
}
.section-title { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; line-height: 1.2; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 28px 24px; text-align: left;
    transition: all 0.3s ease;
}
.feature-card:hover { border-color: rgba(139,92,246,0.3); transform: translateY(-4px); background: rgba(255,255,255,0.04); }
.feature-icon-box {
    width: 48px; height: 48px; border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; margin-bottom: 20px;
}
.icon-purple { background: rgba(139,92,246,0.15); color: var(--primary); }
.icon-green { background: rgba(34,197,94,0.15); color: var(--success); }
.icon-blue { background: rgba(59,130,246,0.15); color: var(--info); }
.icon-orange { background: rgba(249,115,22,0.15); color: #fb923c; }
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* CTA */
.cta-section { width: min(800px, 100%); }
.cta-card {
    position: relative; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-xl); padding: 48px; text-align: center; overflow: hidden;
}
.cta-glow {
    position: absolute; top: -50%; left: 50%; transform: translateX(-50%);
    width: 300px; height: 300px; border-radius: 50%;
    background: radial-gradient(circle, rgba(139,92,246,0.15) 0%, transparent 70%);
    pointer-events: none;
}
.cta-card h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 12px; position: relative; }
.cta-card p { color: var(--text-secondary); margin-bottom: 24px; position: relative; }
.cta-card .btn { position: relative; }

/* Footer */
.footer { position: relative; z-index: 10; border-top: 1px solid var(--border); margin-top: 80px; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 48px 24px 24px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { display: flex; align-items: center; gap: 8px; font-size: 1.2rem; font-weight: 800; color: var(--primary); margin-bottom: 12px; }
.footer-brand p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; max-width: 280px; }
.footer-col h4 { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-muted); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.85rem; color: var(--text-secondary); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; text-align: center; }
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); }

/* ==================== LOGIN PAGE ==================== */
.page-login {
    position: relative; z-index: 10;
    min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px;
}
.login-card {
    position: relative; width: 100%; max-width: 420px;
    background: var(--bg-glass); backdrop-filter: blur(28px);
    border: 1px solid var(--border); border-radius: var(--radius-xl);
    padding: 40px 32px; text-align: center;
    box-shadow: 0 24px 70px rgba(0,0,0,0.5);
}
.login-glow {
    position: absolute; top: -40%; left: 50%; transform: translateX(-50%);
    width: 250px; height: 250px; border-radius: 50%;
    background: radial-gradient(circle, rgba(139,92,246,0.15) 0%, transparent 70%);
    pointer-events: none;
}
.login-logo { margin-bottom: 24px; position: relative; }
.logo-box {
    width: 80px; height: 80px; border-radius: 20px; margin: 0 auto 16px;
    background: var(--primary-glow); border: 2px solid rgba(139,92,246,0.3);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 40px rgba(139,92,246,0.2);
}
.logo-box i { font-size: 2rem; color: var(--primary); }
.logo-text { font-size: 1.8rem; font-weight: 800; letter-spacing: 3px; color: var(--primary); }
.login-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 8px; position: relative; }
.login-subtitle { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 28px; line-height: 1.5; position: relative; }
.login-note {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    font-size: 0.8rem; color: var(--text-muted); margin-top: 16px; position: relative;
}
.login-note i { color: var(--info); }
.login-features {
    display: flex; justify-content: center; gap: 32px; margin-top: 24px;
    padding-top: 20px; border-top: 1px solid var(--border); position: relative;
}
.login-feature { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.login-feature i { font-size: 1.2rem; color: var(--primary); }
.login-feature span { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); }

/* ==================== APP LAYOUT ==================== */
.app-layout { display: flex; min-height: 100vh; position: relative; z-index: 10; }

/* Sidebar */
.sidebar {
    width: 260px; position: fixed; left: 0; top: 0; height: 100vh;
    background: var(--bg-glass); backdrop-filter: blur(28px);
    border-right: 1px solid var(--border);
    display: flex; flex-direction: column; z-index: 100;
    transition: transform 0.3s ease;
}
.sidebar-top { padding: 20px; border-bottom: 1px solid var(--border); }
.sidebar-brand { display: flex; align-items: center; gap: 10px; font-size: 1.4rem; font-weight: 800; }
.sidebar-brand-icon {
    width: 36px; height: 36px; border-radius: var(--radius);
    background: var(--primary-glow); border: 1px solid rgba(139,92,246,0.3);
    display: flex; align-items: center; justify-content: center;
}
.sidebar-brand-icon i { color: var(--primary); font-size: 1rem; }
.sidebar-brand-text span { color: var(--primary); }
.sidebar-nav { flex: 1; padding: 16px 12px; overflow-y: auto; }
.nav-section { margin-bottom: 20px; }
.nav-section-label {
    display: block; font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; color: var(--text-muted); padding: 0 12px; margin-bottom: 8px;
}
.nav-link {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px;
    border-radius: var(--radius); font-size: 0.9rem; font-weight: 500;
    color: var(--text-secondary); transition: all 0.2s ease;
}
.nav-link:hover { background: rgba(255,255,255,0.04); color: var(--text); }
.nav-link.active { background: var(--primary-glow); color: var(--primary); }
.nav-link i { width: 20px; text-align: center; font-size: 1rem; }
.admin-badge {
    font-size: 0.55rem; background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000; padding: 2px 6px; border-radius: var(--radius-full);
    font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px;
}
.sidebar-bottom {
    padding: 16px; border-top: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
}
.user-card { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.user-avatar {
    width: 36px; height: 36px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
    background: var(--primary-glow); border: 2px solid rgba(139,92,246,0.3);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.85rem; color: var(--primary);
}
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-info { display: flex; flex-direction: column; min-width: 0; }
.user-name { font-size: 0.85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-tag { font-size: 0.7rem; color: var(--text-muted); }
.sidebar-logout {
    padding: 8px; border-radius: var(--radius-sm); color: var(--danger);
    transition: all 0.2s ease;
}
.sidebar-logout:hover { background: rgba(239,68,68,0.15); }
.mobile-sidebar-toggle {
    display: none; position: fixed; top: 16px; left: 16px; z-index: 110;
    width: 40px; height: 40px; border-radius: var(--radius);
    background: var(--bg-glass); backdrop-filter: blur(20px);
    border: 1px solid var(--border); color: var(--text);
    align-items: center; justify-content: center; font-size: 1.1rem;
}

/* Main Content */
.main-content { flex: 1; margin-left: 260px; padding: 24px; }
.content-topbar {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    margin-bottom: 24px; flex-wrap: wrap;
}
.search-box {
    flex: 1; max-width: 500px; display: flex; align-items: center; gap: 10px;
    padding: 10px 16px; border-radius: var(--radius);
    background: var(--bg-card); border: 1px solid var(--border);
    transition: border-color 0.2s ease;
}
.search-box:focus-within { border-color: var(--primary); box-shadow: 0 0 20px var(--primary-glow); }
.search-box i { color: var(--text-muted); }
.search-box input {
    flex: 1; background: none; border: none; outline: none;
    color: var(--text); font-size: 0.9rem;
}
.search-box input::placeholder { color: var(--text-muted); }
.content-actions { display: flex; align-items: center; gap: 8px; }

/* Stats Row */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-box {
    display: flex; align-items: center; gap: 14px; padding: 18px 20px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); transition: all 0.2s ease;
}
.stat-box:hover { border-color: rgba(139,92,246,0.2); transform: translateY(-2px); }
.stat-box-icon {
    width: 44px; height: 44px; border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.stat-box-info { flex: 1; }
.stat-box-value { font-size: 1.4rem; font-weight: 800; }
.stat-box-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

/* Filter Bar */
.filter-bar { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.filter-chip {
    padding: 8px 16px; border-radius: var(--radius-full); font-size: 0.8rem; font-weight: 600;
    color: var(--text-secondary); background: rgba(255,255,255,0.03);
    border: 1px solid var(--border); transition: all 0.2s ease;
    display: flex; align-items: center; gap: 6px;
}
.filter-chip:hover { border-color: rgba(139,92,246,0.3); color: var(--primary); background: var(--primary-glow); }
.filter-chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.filter-count {
    background: rgba(255,255,255,0.15); padding: 1px 7px; border-radius: var(--radius-full);
    font-size: 0.7rem;
}
.filter-chip.active .filter-count { background: rgba(0,0,0,0.2); }

/* Results Info */
.results-info { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 20px; }
.results-info strong { color: var(--primary); }

/* Resources Grid */
.resources-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.resources-grid.list-layout { grid-template-columns: 1fr; }
.resources-grid.list-layout .resource-card { flex-direction: row; }
.resources-grid.list-layout .card-media { width: 200px; height: 140px; flex-shrink: 0; }

.resource-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
    transition: all 0.3s ease; animation: fadeUp 0.5s ease backwards;
}
.resource-card:hover { border-color: rgba(139,92,246,0.3); transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,0.4); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.card-media {
    position: relative; width: 100%; height: 180px; overflow: hidden;
    background: linear-gradient(135deg, rgba(139,92,246,0.08), rgba(59,130,246,0.05));
    display: flex; align-items: center; justify-content: center;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.resource-card:hover .card-media img { transform: scale(1.08); }
.card-media > i { font-size: 2.5rem; color: rgba(139,92,246,0.25); }
.card-media .badge { position: absolute; top: 12px; left: 12px; z-index: 5; }
.card-hover {
    position: absolute; inset: 0; background: rgba(0,0,0,0.5);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s ease; z-index: 3;
}
.resource-card:hover .card-hover { opacity: 1; }
.card-hover i { font-size: 2rem; color: #fff; filter: drop-shadow(0 0 15px rgba(255,255,255,0.4)); }

.card-media-slider { overflow: hidden; }
.card-slider { display: flex; width: 100%; height: 100%; transition: transform 0.5s ease; }
.card-slide { min-width: 100%; height: 100%; }
.card-slide img { width: 100%; height: 100%; object-fit: cover; }
.card-dots {
    position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 5px; z-index: 5;
}
.card-dot {
    width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,0.4);
    transition: all 0.3s ease; cursor: pointer;
}
.card-dot.active { background: #fff; width: 16px; border-radius: 3px; }

.card-body { padding: 16px; }
.card-tags { margin-bottom: 10px; }
.card-title { font-size: 1rem; font-weight: 600; margin-bottom: 6px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-desc { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; gap: 14px; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 14px; }
.card-meta span { display: flex; align-items: center; gap: 4px; }

/* Empty State */
.empty-state { grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state i { font-size: 3rem; margin-bottom: 16px; color: rgba(139,92,246,0.2); display: block; }

/* ==================== ADMIN ==================== */
.admin-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 16px; }
.admin-title { font-size: 1.6rem; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.admin-title i { color: #f59e0b; }
.admin-subtitle { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }
.admin-table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { text-align: left; padding: 12px 16px; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); font-weight: 600; background: rgba(255,255,255,0.02); border-bottom: 1px solid var(--border); }
.admin-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 0.85rem; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }
.td-name { font-weight: 600; }
.td-empty { color: var(--text-muted); }
.td-downloads { color: var(--text-secondary); }
.td-actions { display: flex; gap: 6px; }

/* ==================== MODALS ==================== */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
    z-index: 200; display: none; align-items: center; justify-content: center; padding: 24px;
}
.modal-overlay.active { display: flex; }
.modal { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-xl); width: 100%; box-shadow: 0 30px 80px rgba(0,0,0,0.6); }

/* Detail Modal */
.modal-detail { max-width: 750px; overflow: hidden; }
.modal-detail-preview { position: relative; width: 100%; height: 300px; background: #0a0a0a; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.modal-detail-preview img, .modal-detail-preview video, .modal-detail-preview iframe { width: 100%; height: 100%; object-fit: cover; border: none; }
.gallery-placeholder { display: flex; align-items: center; justify-content: center; }
.gallery-placeholder i { font-size: 4rem; color: rgba(139,92,246,0.2); }
.gallery-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,0.6);
    color: #fff; display: flex; align-items: center; justify-content: center;
    transition: background 0.2s ease;
}
.gallery-btn:hover { background: rgba(0,0,0,0.8); }
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }
.gallery-counter { position: absolute; bottom: 12px; right: 12px; background: rgba(0,0,0,0.6); color: #fff; padding: 4px 10px; border-radius: var(--radius-full); font-size: 0.75rem; }
.modal-detail-close {
    position: absolute; top: 12px; right: 12px; z-index: 10;
    width: 32px; height: 32px; border-radius: var(--radius-sm);
    background: rgba(0,0,0,0.6); color: #fff;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s ease;
}
.modal-detail-close:hover { background: rgba(239,68,68,0.5); }
.modal-detail-body { padding: 24px; }
.detail-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.detail-cat-tag { margin-bottom: 6px; }
.detail-title { font-size: 1.3rem; font-weight: 700; }
.detail-stats { display: flex; gap: 16px; }
.detail-stat { font-size: 0.8rem; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.detail-stat i { color: var(--primary); }
.detail-desc { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; margin-bottom: 20px; }
.detail-actions { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.detail-reactions { margin-bottom: 24px; }
.detail-reactions-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 10px; display: block; }
.reactions-row { display: flex; flex-wrap: wrap; gap: 6px; }
.reaction-pill {
    padding: 6px 12px; border-radius: var(--radius-full); border: 1px solid var(--border);
    background: rgba(255,255,255,0.03); display: flex; align-items: center; gap: 6px;
    transition: all 0.2s ease;
}
.reaction-pill:hover { background: rgba(255,255,255,0.08); }
.reaction-pill.active { background: var(--primary-glow); border-color: rgba(139,92,246,0.3); }
.reaction-emoji { font-size: 1rem; }
.reaction-count { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; }
.detail-comments { border-top: 1px solid var(--border); padding-top: 20px; }
.detail-comments-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 14px; display: block; }
.comment-input-row { display: flex; gap: 8px; margin-bottom: 16px; }
.comment-input {
    flex: 1; padding: 10px 14px; background: rgba(255,255,255,0.05);
    border: 1px solid var(--border); border-radius: var(--radius);
    color: var(--text); font-size: 0.85rem; outline: none;
}
.comment-input:focus { border-color: var(--primary); }
.comment-submit {
    width: 40px; height: 40px; border-radius: var(--radius);
    background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s ease;
}
.comment-submit:hover { background: var(--primary-hover); }
.comments-list { display: flex; flex-direction: column; gap: 12px; }
.comment-item { display: flex; gap: 10px; }
.comment-avatar {
    width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; color: var(--text-muted); flex-shrink: 0;
}
.comment-content { flex: 1; }
.comment-author { font-size: 0.8rem; font-weight: 600; }
.comment-text { font-size: 0.85rem; color: var(--text-secondary); margin-top: 4px; line-height: 1.5; }
.comment-time { font-size: 0.7rem; color: var(--text-muted); margin-top: 4px; }
.no-comments { text-align: center; padding: 20px; color: var(--text-muted); font-size: 0.85rem; }

/* Form Modal */
.modal-form { max-width: 520px; max-height: 90vh; display: flex; flex-direction: column; }
.modal-form-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--border); }
.modal-form-header h3 { font-size: 1.1rem; font-weight: 700; }
.modal-form-close {
    width: 32px; height: 32px; border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.05); color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s ease;
}
.modal-form-close:hover { background: rgba(239,68,68,0.2); color: var(--danger); }
.modal-form-body { padding: 24px; overflow-y: auto; flex: 1; }
.modal-form-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }

/* Forms */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.75rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 10px 14px; background: rgba(255,255,255,0.05);
    border: 1px solid var(--border); border-radius: var(--radius);
    color: var(--text); font-size: 0.9rem; outline: none; transition: border-color 0.2s ease;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 70px; }
.form-group select { cursor: pointer; }
.form-group select option { background: var(--bg-elevated); }
.file-upload-label {
    display: flex; align-items: center; gap: 8px; padding: 10px 14px;
    background: rgba(255,255,255,0.05); border: 1px solid var(--border);
    border-radius: var(--radius); color: var(--text-muted); cursor: pointer;
    transition: all 0.2s ease; font-size: 0.85rem;
}
.file-upload-label:hover { background: rgba(255,255,255,0.08); color: var(--text); }
.file-upload-label i { color: var(--primary); }
#form-images { display: none; }
.image-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 8px; margin-top: 10px; }
.preview-item { position: relative; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); }
.preview-item img, .preview-item video { width: 100%; height: 100%; object-fit: cover; }
.preview-remove {
    position: absolute; top: 2px; right: 2px; width: 18px; height: 18px;
    border-radius: 50%; background: rgba(239,68,68,0.9); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 0.6rem;
}

/* Confirm Dialog */
.confirm-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
    z-index: 20000; display: flex; align-items: center; justify-content: center; padding: 24px;
}
.confirm-card {
    background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-xl);
    padding: 28px; text-align: center; max-width: 380px; width: 100%;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.confirm-icon {
    width: 52px; height: 52px; border-radius: var(--radius);
    background: rgba(239,68,68,0.15); display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px; font-size: 1.3rem; color: var(--danger);
}
.confirm-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.confirm-card p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 24px; line-height: 1.5; }
.confirm-actions { display: flex; gap: 10px; justify-content: center; }

/* Toast */
.toast-container { position: fixed; top: 24px; right: 24px; z-index: 10000; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast {
    pointer-events: all; display: flex; align-items: flex-start; gap: 12px;
    padding: 14px 18px; min-width: 300px; max-width: 380px;
    background: var(--bg-glass); backdrop-filter: blur(20px);
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    animation: toastIn 0.4s var(--ease) forwards; opacity: 0; transform: translateX(100%);
    position: relative; overflow: hidden;
}
.toast.toast-out { animation: toastOut 0.3s var(--ease) forwards; }
.toast-icon {
    width: 36px; height: 36px; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0;
}
.toast-success .toast-icon { background: rgba(34,197,94,0.15); color: var(--success); border: 1px solid rgba(34,197,94,0.3); }
.toast-error .toast-icon { background: rgba(239,68,68,0.15); color: var(--danger); border: 1px solid rgba(239,68,68,0.3); }
.toast-info .toast-icon { background: rgba(59,130,246,0.15); color: var(--info); border: 1px solid rgba(59,130,246,0.3); }
.toast-warning .toast-icon { background: rgba(245,158,11,0.15); color: var(--warning); border: 1px solid rgba(245,158,11,0.3); }
.toast-body { flex: 1; min-width: 0; }
.toast-title { font-size: 0.85rem; font-weight: 700; margin-bottom: 4px; }
.toast-message { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; }
.toast-close {
    width: 24px; height: 24px; border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.05); color: var(--text-muted);
    display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; flex-shrink: 0;
}
.toast-close:hover { background: rgba(255,255,255,0.1); color: var(--text); }
.toast-progress { position: absolute; bottom: 0; left: 0; height: 3px; border-radius: 0 0 var(--radius-lg) var(--radius-lg); animation: toastProgress 4s linear forwards; }
.toast-success .toast-progress { background: var(--success); }
.toast-error .toast-progress { background: var(--danger); }
.toast-warning .toast-progress { background: var(--warning); }
.toast-info .toast-progress { background: var(--info); }
@keyframes toastIn { 0% { opacity:0; transform:translateX(100%); } 100% { opacity:1; transform:translateX(0); } }
@keyframes toastOut { 0% { opacity:1; transform:translateX(0); } 100% { opacity:0; transform:translateX(100%); } }
@keyframes toastProgress { 0% { width: 100%; } 100% { width: 0%; } }

/* ==================== HIDDEN ==================== */
.hidden { display: none !important; }

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(139,92,246,0.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(139,92,246,0.5); }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .sidebar { transform: translateX(-100%); }
    .sidebar.sidebar-open { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .mobile-sidebar-toggle { display: flex; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .features-grid { grid-template-columns: 1fr; }
    .topbar { flex-wrap: wrap; border-radius: var(--radius-lg); padding: 10px 14px; }
    .topbar-nav { order: 3; flex-basis: 100%; overflow-x: auto; scrollbar-width: none; }
    .topbar-nav::-webkit-scrollbar { display: none; }
    .topbar-actions { margin-left: auto; }
    .hero-stats { flex-direction: column; gap: 16px; }
    .stat-divider { width: 40px; height: 1px; }
    .resources-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .modal-detail-preview { height: 200px; }
    .detail-header { flex-direction: column; }
    .detail-stats { margin-left: 0; }
    .detail-actions { flex-direction: column; }
}
@media (max-width: 480px) {
    .page-home { padding: 120px 16px 60px; gap: 60px; }
    .hero-title { font-size: 2rem; }
    .stats-row { grid-template-columns: 1fr; }
    .toast-container { top: 12px; right: 12px; left: 12px; }
    .toast { min-width: 0; max-width: 100%; }
}
