:root {
    --bg-dark: #0a0a0a;
    --bg-card: rgba(12, 12, 16, 0.85);
    --glass-edge: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);
    --primary-red: #8b0000;
    --dark-primary-red: #1a0000;
    --primary-red-glow: rgba(139, 0, 0, 0.4);
    --accent-purple: #a88bff;
    --text-white: #ffffff;
    --text-muted: #b0b8c5;
    --text-dim: #6f7c8c;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-bounce: all 0.5s cubic-bezier(0.34, 1.2, 0.64, 1);
    --shadow-neon: 0 0 15px var(--primary-red-glow);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: var(--bg-dark);
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    color: var(--text-white);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Animated Grain & Glow Background */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 10%, rgba(139, 0, 0, 0.08) 0%, transparent 50%),
                repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 8px);
    z-index: -2;
    pointer-events: none;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 80%, rgba(168, 139, 255, 0.05) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
    animation: slowDrift 20s infinite alternate ease-in-out;
}

@keyframes slowDrift {
    0% { opacity: 0.3; transform: scale(1); }
    100% { opacity: 0.8; transform: scale(1.05); }
}

/* Particle Canvas */
canvas#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ff4d4d;
}

/* Typography & Links */
a {
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* Responsive Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* ========== HEADER & NAVIGATION ========== */
header {
    padding: 12px 0;
    background: rgba(8, 8, 12, 0.7);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-smooth);
}
header:hover {
    background: rgba(8, 8, 12, 0.9);
}
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.logo {
    font-size: 1.7rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.02em;
    transition: var(--transition-smooth);
}
.logo:hover {
    transform: scale(1.02);
    text-shadow: 0 0 15px var(--accent-purple);
}

nav ul {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
}
nav a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    position: relative;
}
nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-red), var(--accent-purple));
    transition: width 0.3s ease;
}
nav a:hover::after {
    width: 100%;
}
nav a:hover {
    color: white;
}

/* User & Admin Badges */
.user-email, .user-name, .admin-badge, .profile-btn, .upload-btn {
    background: rgba(168, 139, 255, 0.08);
    backdrop-filter: blur(4px);
    border: 1px solid var(--glass-edge);
    padding: 6px 16px;
    border-radius: 40px;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}
.user-email:hover, .user-name:hover {
    background: rgba(139, 0, 0, 0.2);
    border-color: var(--primary-red);
}
.admin-badge {
    background: rgba(139, 0, 0, 0.15);
    color: var(--primary-red);
}

/* Buttons */
.btn, .btn-primary, .btn-secondary, .cta-button {
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    transition: var(--transition-bounce);
    display: inline-block;
    text-align: center;
    border: none;
    cursor: pointer;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary-red), #ff4d4d);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.3);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 0, 0, 0.5);
}
.btn-secondary {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    color: white;
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

/* ========== SIDEBAR MENU ========== */
.sidebar-menu {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100vh;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
    z-index: 2000;
    transition: left 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    overflow-y: auto;
    padding: 24px 0;
}
.sidebar-menu.open {
    left: 0;
}
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    z-index: 1999;
    display: none;
}
.sidebar-overlay.active {
    display: block;
}
.sidebar-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid var(--glass-edge);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.sidebar-logo {
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.sidebar-close {
    background: rgba(139,0,0,0.2);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.sidebar-close:hover {
    background: var(--primary-red);
    transform: rotate(90deg);
}
.sidebar-section {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.sidebar-section h3 {
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}
.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
    transition: var(--transition-smooth);
    cursor: pointer;
}
.sidebar-item:hover, .sidebar-item.active {
    background: rgba(139,0,0,0.15);
    color: white;
    transform: translateX(5px);
}
.sidebar-item i {
    width: 20px;
}

/* Sidebar Sub-items */
.sidebar-sub {
    margin-left: 32px;
    margin-top: 8px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.sidebar-sub-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    border-radius: 10px;
    color: #8f9bb3;
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    cursor: pointer;
}
.sidebar-sub-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    transform: translateX(5px);
}
.sidebar-sub-item.active {
    background: rgba(168, 139, 255, 0.15);
    color: #a88bff;
    border-left: 2px solid #a88bff;
}
.sidebar-sub-item i {
    width: 20px;
    font-size: 0.8rem;
}

/* ========== DASHBOARD TABS ========== */
.tab-navigation {
    margin: 30px 0 20px;
}
.tabs-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    background: rgba(20, 20, 30, 0.5);
    backdrop-filter: blur(12px);
    border-radius: 60px;
    padding: 8px 16px;
    border: 1px solid var(--glass-border);
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}
.tab-button {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 10px 20px;
    border-radius: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}
.tab-button i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}
.tab-button:hover:not(.active) {
    background: rgba(255,255,255,0.05);
    color: #fff;
}
.tab-button:hover:not(.active) i {
    transform: translateY(-2px);
}
.tab-button.active {
    background: var(--primary-red);
    color: white;
    box-shadow: 0 0 12px var(--primary-red-glow);
}

/* Search Bar */
.search-container {
    min-width: 200px;
    margin: 0 10px;
}
.search-bar {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    padding: 0;
    margin: 0;
    gap: 0;
    transition: var(--transition-smooth);
    height: 44px;
    overflow: hidden;
}
.search-bar:focus-within {
    border-color: var(--primary-red);
    box-shadow: 0 0 10px var(--primary-red-glow);
}
.search-bar input {
    background: transparent !important;
    border: none !important;
    color: white !important;
    width: 100% !important;
    outline: none !important;
    font-size: 0.85rem !important;
    font-family: 'Inter', sans-serif !important;
    padding: 0 12px !important;
    margin: 0 !important;
    line-height: 44px !important;
    height: 44px !important;
    flex: 1;
    box-sizing: border-box;
}
.clear-search {
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    transition: var(--transition-smooth);
}
.clear-search:hover {
    color: #ff9999;
    transform: rotate(90deg);
}

/* ========== ENHANCED SECTION HEADER WITH 3D EFFECT ========== */
.section-header {
    margin: 45px 0 30px;
    position: relative;
    background: rgba(20, 20, 30, 0.3);
    backdrop-filter: blur(8px);
    padding: 20px 25px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.34, 1.2, 0.64, 1);
    transform-style: preserve-3d;
    cursor: pointer;
}

.section-header:hover {
    background: rgba(20, 20, 30, 0.5);
    border-color: rgba(139, 0, 0, 0.4);
    box-shadow: 0 20px 35px -15px rgba(0, 0, 0, 0.4);
    transform: rotateX(3deg) rotateY(2deg) translateY(-5px);
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 12px;
    display: inline-block;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.34, 1.2, 0.64, 1);
    transform-style: preserve-3d;
}

.section-header:hover h2 {
    transform: translateZ(20px);
}

.section-header p {
    font-size: 1rem;
    color: var(--text-muted);
    transition: all 0.4s ease;
}

.section-header:hover p {
    transform: translateZ(12px);
}

.section-header h2::before {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-red), var(--accent-purple));
    border-radius: 3px;
    transition: width 0.4s ease, box-shadow 0.3s ease;
}

.section-header:hover h2::before {
    width: 120px;
    box-shadow: 0 0 12px var(--primary-red-glow);
}

/* Shine effect on section header */
.section-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.5s ease;
    border-radius: 24px;
    pointer-events: none;
}

.section-header:hover::before {
    left: 100%;
}

/* ========== PACKS GRID ========== */
.packs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin: 30px 0;
    perspective: 1000px;
    perspective-origin: center center;
    overflow: visible;
}

@media (max-width: 640px) {
    .packs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Premium Pack Card Styles */
.premium-card {
    border: 1px solid rgba(255, 215, 0, 0.3);
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.8), rgba(139, 0, 0, 0.15));
    position: relative;
    overflow: hidden;
}

.premium-card:hover {
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 20px 30px -10px rgba(255, 215, 0, 0.3);
}

.premium-card .pack-title {
    background: linear-gradient(135deg, #fff, #ffd700);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Premium card shine effect */
.premium-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.08), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

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

/* Pack Card 3D Effect - FIXED */
.pack-card {
    background: rgba(20, 20, 30, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.2, 0.64, 1);
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.3);
    
    /* CRITICAL 3D PROPERTIES */
    transform-style: preserve-3d;
    transform-origin: center center;
    will-change: transform;
    backface-visibility: hidden;
}

/* 3D Tilt on Hover - FIXED (combined transform) */
.pack-card:hover {
    transform: translateY(-10px) rotateX(4deg) rotateY(3deg) scale(1.02);
    box-shadow: 0 30px 40px -15px rgba(139, 0, 0, 0.4);
    border-color: rgba(139, 0, 0, 0.5);
}

/* Elements pop forward on hover */
.pack-card:hover .pack-title {
    transform: translateZ(15px);
}

.pack-card:hover .pack-description {
    transform: translateZ(8px);
}

.pack-card:hover .open-resource-btn {
    transform: translateZ(20px);
}

/* Card shine sweep effect */
.pack-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.5s ease;
    z-index: 1;
    pointer-events: none;
}

.pack-card:hover::before {
    left: 100%;
}

/* Staggered entrance animation */
.pack-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.pack-card:nth-child(1) { animation-delay: 0.05s; }
.pack-card:nth-child(2) { animation-delay: 0.10s; }
.pack-card:nth-child(3) { animation-delay: 0.15s; }
.pack-card:nth-child(4) { animation-delay: 0.20s; }
.pack-card:nth-child(5) { animation-delay: 0.25s; }
.pack-card:nth-child(6) { animation-delay: 0.30s; }
.pack-card:nth-child(7) { animation-delay: 0.35s; }
.pack-card:nth-child(8) { animation-delay: 0.40s; }
.pack-card:nth-child(9) { animation-delay: 0.45s; }
.pack-card:nth-child(10) { animation-delay: 0.50s; }
.pack-card:nth-child(11) { animation-delay: 0.55s; }
.pack-card:nth-child(12) { animation-delay: 0.60s; }

/* Card image zoom on hover */
.pack-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pack-card:hover .pack-image {
    transform: scale(1.08);
}

/* ========== PACK CONTENT STYLES ========== */
.pack-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.pack-category-label {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    z-index: 2;
}

.pack-card:hover .pack-category-label {
    background: var(--primary-red);
}

.premium-label {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #1a1a2a;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 2;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
    100% { transform: translateY(0px); }
}

.pack-content {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pack-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    transition: transform 0.3s cubic-bezier(0.34, 1.2, 0.64, 1), color 0.3s ease;
    transform-style: preserve-3d;
}

.pack-card:hover .pack-title {
    color: var(--accent-purple);
}

.pack-description {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    transition: transform 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
    transform-style: preserve-3d;
}

.pack-editor {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    padding: 5px 12px;
    border-radius: 30px;
    width: fit-content;
    background: rgba(168, 139, 255, 0.12);
}

.pack-editor i {
    color: var(--accent-purple);
    font-size: 0.7rem;
}

.pack-stats {
    display: flex;
    gap: 16px;
    font-size: 0.7rem;
    color: var(--text-dim);
    margin: 6px 0;
}

.stat {
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition-smooth);
}

.pack-card:hover .stat {
    color: #fff;
}

.pack-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.open-resource-btn {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-red), #ff4d4d);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.open-resource-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.open-resource-btn:hover::before {
    left: 100%;
}

.open-resource-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 25px var(--primary-red-glow);
}

.open-premium-resource-btn {
    flex: 1;
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #1a1a2a;
    border: none;
    padding: 10px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
    transform-style: preserve-3d;
}

.open-premium-resource-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.4);
}

.pack-share {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.pack-share:hover {
    background: var(--primary-red);
    transform: rotate(15deg) scale(1.15);
}

/* ========== PAGINATION ========== */
.pagination-container {
    display: flex;
    justify-content: center;
    margin: 50px 0;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(20, 20, 30, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 8px 24px;
    border: 1px solid var(--glass-border);
}

.pagination-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: white;
    padding: 8px 18px;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
    font-size: 0.85rem;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--primary-red);
    border-color: var(--primary-red);
    transform: translateX(4px);
}

.pagination-btn:first-child:hover:not(:disabled) {
    transform: translateX(-4px);
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.page-info {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
}

/* ========== PRICING CARD ========== */
.centered-premium {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.pricing-card {
    max-width: 500px;
    width: 100%;
    background: rgba(20, 20, 30, 0.8);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    padding: 32px 28px;
    transition: all 0.5s cubic-bezier(0.34, 1.2, 0.64, 1);
    text-align: center;
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: rgba(139, 0, 0, 0.5);
    box-shadow: 0 30px 45px -20px rgba(139, 0, 0, 0.3);
}

.price {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, #ffb347);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: countUp 0.8s ease-out;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.billing-period {
    color: var(--text-muted);
    margin: 8px 0 12px;
    font-size: 0.85rem;
}

.instant-access {
    display: inline-block;
    background: rgba(0, 200, 0, 0.15);
    color: #8cff8c;
    padding: 4px 16px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.75rem;
    animation: pulse 2s infinite;
}

.pricing-features {
    margin: 25px 0;
    text-align: left;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: all 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.feature-item:hover {
    transform: translateX(8px);
    color: #fff;
}

.feature-item i {
    color: #4caf50;
    font-size: 0.9rem;
}

.premium-cta-button {
    display: block;
    background: linear-gradient(135deg, var(--primary-red), #ff4d4d);
    color: white;
    text-decoration: none;
    padding: 14px;
    border-radius: 50px;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.premium-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.premium-cta-button:hover::before {
    left: 100%;
}

.premium-cta-button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 25px var(--primary-red-glow);
}

.pricing-note {
    text-align: center;
    color: var(--text-dim);
    margin-top: 16px;
    font-size: 0.75rem;
}

/* ========== TESTIMONIALS ========== */
.testimonials {
    margin-top: 50px;
}

.testimonials h3 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #fff, var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.testimonial-item {
    background: rgba(20, 20, 30, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    padding: 24px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.34, 1.2, 0.64, 1);
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.testimonial-item:nth-child(1) { animation-delay: 0.1s; }
.testimonial-item:nth-child(2) { animation-delay: 0.2s; }
.testimonial-item:nth-child(3) { animation-delay: 0.3s; }

.testimonial-item:hover {
    transform: translateY(-8px);
    border-color: rgba(139, 0, 0, 0.4);
    background: rgba(20, 20, 30, 0.8);
}

.testimonial-author {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #fff;
}

.testimonial-badge {
    color: #ffb347;
    font-size: 0.75rem;
    margin-bottom: 12px;
}

.testimonial-text {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* ========== FOUNDER PROFILE ========== */
.profile-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    margin: 40px 0;
}

@media (max-width: 768px) {
    .profile-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.profile-sidebar {
    background: rgba(20, 20, 30, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 28px;
    text-align: center;
    height: fit-content;
    transition: all 0.3s ease;
}

.profile-sidebar:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 0, 0, 0.4);
}

.profile-pic {
    position: relative;
    width: 120px;
    margin: 0 auto 18px;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-red);
    transition: all 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(139, 0, 0, 0.5);
}

.online-status {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 16px;
    height: 16px;
    background: #4caf50;
    border-radius: 50%;
    border: 2px solid #0a0a0f;
    animation: pulse 2s infinite;
}

.profile-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.profile-username {
    color: var(--accent-purple);
    margin-bottom: 6px;
    font-size: 0.85rem;
}

.profile-tagline {
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 0.8rem;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-edge);
}

.profile-stats .stat-number {
    font-size: 1.2rem;
    font-weight: 700;
}

.profile-stats .stat-label {
    color: var(--text-dim);
    font-size: 0.7rem;
}

.profile-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.content-section {
    background: rgba(20, 20, 30, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    padding: 24px;
    transition: all 0.3s ease;
}

.content-section:hover {
    transform: translateX(8px);
}

.section-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--accent-purple);
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 18px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 14px;
    border-radius: 40px;
    transition: all 0.3s ease;
}

.detail-item:hover {
    transform: translateX(8px);
}

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

.platform-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    padding: 14px;
    border-radius: 24px;
    transition: all 0.3s ease;
}

.platform-stat:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(8px);
}

.stat-icon i {
    font-size: 1.4rem;
    color: var(--accent-purple);
}

.stat-info .stat-number {
    font-size: 1.1rem;
    font-weight: 700;
}

.stat-info .stat-label {
    font-size: 0.65rem;
    color: var(--text-dim);
}

.achievements-grid {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.achievement {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 215, 0, 0.08);
    padding: 8px 18px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.achievement:hover {
    background: rgba(255, 215, 0, 0.18);
    transform: translateX(8px);
}

.achievement-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 215, 0, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffd700;
    font-size: 0.9rem;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.03);
    padding: 14px;
    border-radius: 24px;
    transition: all 0.3s ease;
    animation: slideInLeft 0.4s ease forwards;
    opacity: 0;
}

.activity-item:nth-child(1) { animation-delay: 0.05s; }
.activity-item:nth-child(2) { animation-delay: 0.10s; }
.activity-item:nth-child(3) { animation-delay: 0.15s; }
.activity-item:nth-child(4) { animation-delay: 0.20s; }
.activity-item:nth-child(5) { animation-delay: 0.25s; }

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

.activity-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(8px);
}

.activity-icon {
    width: 42px;
    height: 42px;
    background: rgba(139, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-red);
    font-size: 1.1rem;
}

.activity-content {
    flex: 1;
}

.activity-text {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.activity-time {
    font-size: 0.7rem;
    color: var(--text-dim);
}

/* ========== LOADING STATE ========== */
.loading {
    text-align: center;
    padding: 60px;
    color: var(--text-muted);
}

.loading i {
    font-size: 2rem;
    margin-bottom: 15px;
    display: block;
    animation: spin 1s linear infinite, pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== STATUS BADGE ========== */
.pack-status {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.65rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
    backdrop-filter: blur(6px);
}

.status-active {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid #4caf50;
    color: #8cff8c;
}

.status-pending {
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid #ffc107;
    color: #ffd966;
}

.status-broken {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid #f44336;
    color: #ff9999;
}

/* ========== FUNDRAISER MODAL ========== */
.fundraiser-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(16px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    padding: 20px;
}

.fundraiser-modal.active {
    opacity: 1;
    visibility: visible;
}

.fundraiser-content {
    max-width: 500px;
    width: 100%;
    background: linear-gradient(135deg, #1a1a2a, #0a0a1a);
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-radius: 48px;
    overflow: hidden;
    transform: scale(0.95);
    transition: 0.3s;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.fundraiser-modal.active .fundraiser-content {
    transform: scale(1);
}

.fundraiser-header {
    background: linear-gradient(135deg, var(--primary-red), #ff4d4d);
    padding: 28px;
    text-align: center;
    position: relative;
}

.fundraiser-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.fundraiser-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.fundraiser-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: rotate(90deg);
}

.fundraiser-body {
    padding: 32px;
    text-align: center;
}

.fundraiser-goal {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 28px;
}

.goal-amount {
    font-size: 2rem;
    font-weight: 800;
    color: #ffd700;
}

.goal-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 18px 0;
    overflow: hidden;
}

.goal-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #ffd700, #ffb347);
    border-radius: 10px;
    transition: width 0.6s ease;
}

.fundraiser-description {
    color: var(--text-muted);
    margin-bottom: 28px;
    line-height: 1.6;
}

.fundraiser-perks {
    background: rgba(255, 215, 0, 0.05);
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 28px;
    text-align: left;
}

.fundraiser-perks h4 {
    color: #ffd700;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.perk-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.perk-item i {
    color: #4caf50;
    width: 22px;
}

.fundraiser-buttons {
    display: flex;
    gap: 16px;
}

.fundraiser-btn {
    flex: 1;
    padding: 14px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-bounce);
    text-decoration: none;
    text-align: center;
}

.fundraiser-btn.primary {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #1a1a2a;
    border: none;
}

.fundraiser-btn.primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.fundraiser-btn.secondary {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: white;
}

.fundraiser-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.remind-later {
    display: block;
    margin-top: 18px;
    color: var(--text-dim);
    font-size: 0.75rem;
    text-decoration: none;
    cursor: pointer;
}

.remind-later:hover {
    color: var(--accent-purple);
}

/* ========== FOOTER ========== */
footer {
    padding: 24px 0;
    text-align: center;
    color: var(--text-dim);
    border-top: 1px solid var(--glass-edge);
    margin-top: 50px;
    font-size: 0.75rem;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 5px var(--primary-red-glow); }
    50% { box-shadow: 0 0 20px var(--primary-red-glow); }
    100% { box-shadow: 0 0 5px var(--primary-red-glow); }
}

/* ========== UTILITY CLASSES ========== */
.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

.hidden {
    display: none !important;
}

/* ========== EDITOR LINK STYLES ========== */
.editor-name {
    color: var(--text-muted);
    font-weight: 500;
}

.editor-link {
    color: #ffb347;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.editor-link:hover {
    color: #ffcc80;
    text-decoration: underline;
    transform: translateX(4px);
    gap: 8px;
}

.tab-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
    -webkit-tap-highlight-color: transparent;
}

.tab-button .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: rippleAnimation 0.6s ease-out forwards;
    pointer-events: none;
    z-index: 1;
}

@keyframes rippleAnimation {
    0% {
        transform: scale(0);
        opacity: 0.7;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}
.tab-button:active {
    transform: scale(0.97);
    transition: transform 0.08s ease;
}


/* ========== BADGE HOVER EFFECT ========== */
.user-email, .user-name, .admin-badge, .profile-btn, .upload-btn {
    transition: all 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.user-email:hover, .user-name:hover, .admin-badge:hover, .profile-btn:hover, .upload-btn:hover {
    transform: translateY(-2px);
}

/* ========== LOGO HOVER ANIMATION ========== */
.logo {
    transition: all 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.logo:hover {
    transform: scale(1.03);
    letter-spacing: 1px;
}

/* ========== SIDEBAR HOVER ANIMATIONS ========== */
.sidebar-item {
    transition: all 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.sidebar-item:hover {
    transform: translateX(8px);
}

.sidebar-item i {
    transition: transform 0.3s ease;
}

.sidebar-item:hover i {
    transform: scale(1.1);
}

.sidebar-sub-item {
    transition: all 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.sidebar-sub-item:hover {
    transform: translateX(6px);
}

/* ========== MOBILE RESPONSIVE STYLES ========== */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .header-content {
        gap: 16px;
    }
    
    nav ul {
        gap: 12px;
    }
    
    nav a {
        font-size: 0.8rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .section-header {
        padding: 15px 20px;
    }
    
    .section-header p {
        font-size: 0.9rem;
    }
    
    .pricing-card {
        padding: 24px 20px;
    }
    
    .price {
        font-size: 2.3rem;
    }
    
    /* Make tabs scrollable horizontally */
    .tabs-container {
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding: 12px 16px;
    }
    
    .tabs {
        flex-wrap: nowrap;
        gap: 8px;
    }
    
    .tab-button {
        white-space: nowrap;
        flex-shrink: 0;
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .tabs-container::-webkit-scrollbar {
        height: 3px;
    }
    
    .tabs-container::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 10px;
    }
    
    .tabs-container::-webkit-scrollbar-thumb {
        background: var(--primary-red);
        border-radius: 10px;
    }
    
    /* Search container full width */
    .search-container {
        width: 100%;
        margin: 0;
    }
    
    .search-bar {
        width: 100%;
    }
    
    /* Category filter scrollable */
    .category-filter {
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
        padding-bottom: 8px;
    }
    
    .category-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .category-filter::-webkit-scrollbar {
        height: 3px;
    }
    
    .category-filter::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 10px;
    }
    
    .category-filter::-webkit-scrollbar-thumb {
        background: var(--primary-red);
        border-radius: 10px;
    }
    
    /* Feature tabs scrollable */
    .feature-tabs {
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding: 8px 12px;
        border-radius: 40px;
    }
    
    .feature-tab {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .feature-tabs::-webkit-scrollbar {
        height: 3px;
    }
    
    .feature-tabs::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 10px;
    }
    
    .feature-tabs::-webkit-scrollbar-thumb {
        background: var(--primary-red);
        border-radius: 10px;
    }
    
    /* Profile tabs scrollable */
    .profile-tabs {
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
        padding-bottom: 12px;
    }
    
    .profile-tab {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .profile-tabs::-webkit-scrollbar {
        height: 3px;
    }
    
    .profile-tabs::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 10px;
    }
    
    .profile-tabs::-webkit-scrollbar-thumb {
        background: var(--primary-red);
        border-radius: 10px;
    }
    
    /* Header scrollable */
    header {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    header::-webkit-scrollbar {
        display: none;
    }
    
    .header-content {
        min-width: max-content;
        padding: 0 16px;
    }
    
    /* Comments list scrollable */
    .comments-list {
        max-height: 500px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .comments-list::-webkit-scrollbar {
        width: 3px;
    }
    
    .comments-list::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 10px;
    }
    
    .comments-list::-webkit-scrollbar-thumb {
        background: var(--primary-red);
        border-radius: 10px;
    }
    
    /* General scrollable containers */
    .sidebar-menu {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .requests-list {
        max-height: 70vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .users-list {
        max-height: 70vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .plugins-grid, .software-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 24px;
        margin: 30px 0;
        perspective: 1000px;
        overflow: visible;
    }
    
    /* Filter bar scrollable */
    .filter-bar {
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
        padding-bottom: 8px;
    }
    
    .filter-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .filter-bar::-webkit-scrollbar {
        height: 3px;
    }
    
    .filter-bar::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 10px;
    }
    
    .filter-bar::-webkit-scrollbar-thumb {
        background: var(--primary-red);
        border-radius: 10px;
    }
    
    /* Pagination mobile */
    .pagination {
        gap: 10px;
        padding: 6px 16px;
    }
    
    .pagination-btn {
        padding: 6px 14px;
        font-size: 0.75rem;
    }
    
    .page-info {
        font-size: 0.8rem;
        padding: 4px 12px;
    }
}

@media (max-width: 480px) {
    .tab-button {
        padding: 6px 12px;
        font-size: 0.7rem;
    }
    
    .pack-card {
        border-radius: 20px;
    }
    
    .pack-content {
        padding: 14px;
    }
    
    .pack-title {
        font-size: 0.95rem;
    }
    
    .pagination {
        gap: 8px;
        padding: 6px 12px;
    }
    
    .pagination-btn {
        padding: 5px 10px;
        font-size: 0.7rem;
    }
    
    .page-info {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
    
    .section-header h2 {
        font-size: 1.3rem;
    }
}

/* ========== SCROLL TO TOP BUTTON ========== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    animation: bounce 2s infinite;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: scale(1.1);
    background: #ff4d4d;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* ========== REQUESTS BOARD PAGE STYLES ========== */

/* Board Panel */
.board-panel {
    padding: 40px 0;
    flex: 1;
}

/* Board Header */
.board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.board-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0;
}

@media (max-width: 768px) {
    .board-header {
        flex-direction: column;
        text-align: center;
    }
    .board-header h1 {
        font-size: 1.8rem;
    }
}

/* New Request Button */
.new-request-btn {
    background: linear-gradient(135deg, var(--primary-red), #ff4d4d);
    color: white;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-bounce);
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.2);
}

.new-request-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 0, 0, 0.4);
}

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 15px;
}

.filter-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 10px 24px;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-smooth);
    font-size: 0.9rem;
    position: relative;
}

.filter-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.filter-btn.active {
    background: var(--primary-red);
    color: white;
    box-shadow: 0 0 12px var(--primary-red-glow);
}

@media (max-width: 768px) {
    .filter-bar {
        justify-content: center;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 12px;
        scrollbar-width: thin;
    }
    .filter-bar::-webkit-scrollbar {
        height: 3px;
    }
    .filter-bar::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 10px;
    }
    .filter-bar::-webkit-scrollbar-thumb {
        background: var(--primary-red);
        border-radius: 10px;
    }
    .filter-btn {
        white-space: nowrap;
        font-size: 0.8rem;
        padding: 8px 18px;
    }
}

/* Request Cards */
.requests-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.request-card {
    background: rgba(20, 20, 30, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 24px;
    transition: var(--transition-bounce);
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0;
}

.request-card:hover {
    transform: translateY(-4px);
    border-color: rgba(139, 0, 0, 0.4);
    box-shadow: 0 15px 25px -10px rgba(139, 0, 0, 0.2);
}

/* Request Header */
.request-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.request-title {
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.request-link {
    color: var(--accent-purple);
    text-decoration: none;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(168, 139, 255, 0.1);
    border-radius: 30px;
    transition: var(--transition-smooth);
}

.request-link:hover {
    background: rgba(168, 139, 255, 0.2);
    transform: translateX(3px);
}

/* Request Meta */
.request-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
    color: var(--text-dim);
    font-size: 0.8rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-item i {
    color: var(--accent-purple);
    font-size: 0.75rem;
}

/* Additional Info */
.additional-info {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 15px;
    margin: 15px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-left: 3px solid var(--accent-purple);
}

.additional-info i {
    color: var(--accent-purple);
    margin-right: 8px;
}

/* Request Footer */
.request-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--glass-border);
}

.vote-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vote-count {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-purple);
    background: rgba(168, 139, 255, 0.12);
    padding: 4px 14px;
    border-radius: 30px;
    min-width: 55px;
    text-align: center;
}

.vote-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
    font-size: 1rem;
}

.vote-btn:hover:not(.voted):not(:disabled) {
    background: rgba(76, 175, 80, 0.2);
    border-color: #4caf50;
    color: #8cff8c;
    transform: scale(1.1);
}

.vote-btn.voted {
    background: #4caf50;
    border-color: #4caf50;
    color: white;
    box-shadow: 0 0 12px rgba(76, 175, 80, 0.4);
}

.vote-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.voters-list {
    display: flex;
    align-items: center;
    gap: 10px;
}

.voter-avatars {
    display: flex;
    align-items: center;
}

.voter-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #2a2a40, #1a1a2e);
    border: 2px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-purple);
    margin-left: -8px;
    transition: all 0.3s ease;
}

.voter-avatar:first-child {
    margin-left: 0;
}

.voter-avatar:hover {
    transform: translateY(-3px);
    border-color: var(--primary-red);
    z-index: 10;
}

.voter-avatar i {
    font-size: 0.7rem;
}

.voter-count {
    color: var(--text-muted);
    font-size: 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 3px 10px;
    border-radius: 30px;
}

/* No Requests State */
.no-requests {
    text-align: center;
    padding: 60px 20px;
    background: rgba(20, 20, 30, 0.5);
    border-radius: 28px;
    border: 1px solid var(--glass-border);
}

.no-requests i {
    font-size: 4rem;
    color: var(--primary-red);
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-requests h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #fff, var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* User Badge */
.user-badge {
    color: var(--accent-purple);
    font-size: 0.85rem;
    background: rgba(168, 139, 255, 0.1);
    padding: 6px 16px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 768px) {
    .board-header {
        flex-direction: column;
        text-align: center;
    }
    
    .board-header h1 {
        font-size: 1.8rem;
    }
    
    .request-card {
        padding: 18px;
    }
    
    .request-title {
        font-size: 1.1rem;
    }
    
    .request-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .request-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .vote-section {
        width: 100%;
        justify-content: space-between;
    }
    
    .voters-list {
        width: 100%;
    }
}

.menu-btn {
    background: rgba(139, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.menu-btn:hover {
    background: linear-gradient(135deg, var(--primary-red), #ff4d4d);
    transform: scale(1.08) rotate(90deg);
    box-shadow: 0 0 15px var(--primary-red-glow);
    border-color: var(--primary-red);
}

.menu-btn:active {
    transform: scale(0.95);
}

@media (max-width: 480px) {
    .vote-count {
        font-size: 1.1rem;
        padding: 3px 10px;
        min-width: 45px;
    }
    
    .vote-btn {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }
    
    .voter-avatar {
        width: 28px;
        height: 28px;
        font-size: 0.6rem;
    }
    
    .voter-count {
        font-size: 0.7rem;
    }
    
    .request-meta {
        gap: 12px;
        font-size: 0.7rem;
    }
}
/* Force spinner to spin - add at the end of your CSS file */
.loading i.fa-spinner,
.loading i.fa-circle-notch,
.loading i.fa-sync-alt {
    animation: spinAnimation 1s linear infinite !important;
    display: inline-block !important;
}

@keyframes spinAnimation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
