:root {
    --navy-dark: #1a0a0f;
    --navy-primary: #2a1520;
    --navy-light: #3a2030;
    --red-electric: #ff6b6b;
    --red-radiant: #ff4757;
    --red-soft: #ff7979;
    --pink-accent: #ff6b9d;
    --coral-glow: #ff8787;
    --text-primary: #ffffff;
    --text-secondary: #d4a5b8;
    --glass-bg: rgba(42, 21, 32, 0.7);
    --glass-border: rgba(255, 107, 107, 0.3);
    --gradient-primary: linear-gradient(135deg, var(--red-electric), var(--red-radiant));
    --gradient-glass: linear-gradient(135deg, rgba(42, 21, 32, 0.8), rgba(58, 32, 48, 0.6));
    --shadow-glow: 0 8px 32px rgba(255, 107, 107, 0.3);
    --shadow-hover: 0 12px 40px rgba(255, 71, 87, 0.5);
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    --card-shadow-hover: 0 8px 30px rgba(255, 107, 107, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--navy-dark);
    color: var(--text-primary);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    line-height: 1.6;
}

.main-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../uploads/authbg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -2;
}

.main-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(26, 10, 15, 0.95) 0%, 
        rgba(42, 21, 32, 0.9) 40%, 
        rgba(58, 32, 48, 0.95) 100%);
}

.particle-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(255, 107, 107, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 107, 157, 0.08) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0;
    background: transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(26, 10, 15, 0.95) 0%, 
        rgba(42, 21, 32, 0.9) 50%, 
        rgba(58, 32, 48, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    opacity: 0;
    transition: opacity 0.4s ease;
    box-shadow: 0 4px 30px rgba(255, 107, 107, 0.1);
}

.main-header.scrolled::before {
    opacity: 1;
}

.main-header.scrolled {
    box-shadow: 0 8px 40px rgba(255, 107, 107, 0.2);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.25rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.5rem;
}

.logo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    border-radius: 12px;
    transition: opacity 0.3s ease;
    filter: blur(20px);
}

.logo:hover::before {
    opacity: 0.3;
}

.logo:hover {
    transform: translateY(-2px) scale(1.05);
}

.logo-image {
    height: 48px;
    width: auto;
    filter: drop-shadow(0 4px 20px rgba(255, 107, 107, 0.5));
    transition: filter 0.3s ease;
    position: relative;
    z-index: 1;
}

.logo:hover .logo-image {
    filter: drop-shadow(0 6px 30px rgba(255, 107, 107, 0.8));
}

.nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.5rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 107, 107, 0.15);
    backdrop-filter: blur(10px);
}

.desktop-nav {
    display: flex;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    border-radius: 25px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary);
    transform: translateY(-1px);
}

.nav-link:hover::before {
    opacity: 0.15;
}

.nav-link.active {
    color: var(--text-primary);
    background: var(--gradient-primary);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.nav-link.active::before {
    opacity: 1;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-profile {
    position: relative;
    cursor: pointer;
}

.user-profile > div:first-child {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(255, 107, 157, 0.1));
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
}

.user-profile > div:first-child::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    border-radius: 50px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.user-profile > div:first-child:hover {
    border-color: var(--red-electric);
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.3);
    transform: translateY(-2px);
}

.user-profile > div:first-child:hover::before {
    opacity: 0.1;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    overflow: hidden;
    border: 2px solid var(--red-electric);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    position: relative;
    z-index: 1;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    position: relative;
    z-index: 1;
}

.user-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

.user-balance {
    font-size: 0.85rem;
    color: var(--red-electric);
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 1rem);
    right: 0;
    min-width: 220px;
    background: linear-gradient(135deg, rgba(42, 21, 32, 0.95), rgba(58, 32, 48, 0.95));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 0.75rem;
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 40px rgba(255, 107, 107, 0.2);
}

.user-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 16px;
    height: 16px;
    background: rgba(42, 21, 32, 0.95);
    border-left: 1px solid var(--glass-border);
    border-top: 1px solid var(--glass-border);
    transform: rotate(45deg);
}

.user-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
}

.dropdown-item:hover {
    background: rgba(255, 107, 107, 0.15);
    color: var(--text-primary);
    transform: translateX(4px);
}

.dropdown-item i {
    width: 20px;
    color: var(--red-electric);
}

.dropdown-item.logout {
    color: #ff4757;
    border-top: 1px solid rgba(255, 107, 107, 0.2);
    margin-top: 0.5rem;
}

.dropdown-item.logout:hover {
    background: rgba(255, 71, 87, 0.15);
}

.cta-button {
    padding: 0.85rem 1.75rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50px;
    color: var(--text-primary);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.4);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 107, 107, 0.6);
}

.cta-button:hover::before {
    opacity: 1;
}

.mobile-toggle {
    display: none;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.mobile-toggle:hover {
    background: rgba(255, 107, 107, 0.2);
    border-color: var(--red-electric);
    transform: scale(1.05);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--glass-border);
    z-index: 999;
    transition: right 0.3s ease;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-content {
    padding: 6rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: var(--text-primary);
}

.mobile-cta-button {
    padding: 1rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: 8px;
    color: var(--text-primary);
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.hero-section {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero-content-wrapper {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.page-title {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--text-primary), var(--coral-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    animation: fadeInDown 0.8s ease;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filters-container {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 2.5rem;
    backdrop-filter: blur(20px);
    box-shadow: var(--card-shadow);
    animation: fadeIn 0.8s ease 0.4s backwards;
    max-width: 950px;
    margin-left: auto;
    margin-right: auto;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.filters-form {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1rem;
    align-items: end;
}

.search-input, .filter-select {
    padding: 0.875rem 1.25rem;
    background: rgba(26, 10, 15, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.search-input:focus, .filter-select:focus {
    outline: none;
    border-color: var(--red-electric);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.search-input::placeholder {
    color: var(--text-secondary);
}

.filter-btn {
    padding: 0.875rem 2rem;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    letter-spacing: 0.3px;
    box-shadow: var(--shadow-glow);
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.results-info {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
}

.boosters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.booster-card {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.12), rgba(255, 71, 87, 0.08));
    border: 1px solid rgba(255, 107, 107, 0.4);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.15);
}

.booster-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(255, 107, 157, 0.15));
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 16px;
}

.booster-card:hover::before {
    opacity: 1;
}

.booster-card:hover {
    transform: translateY(-8px);
    border-color: var(--red-electric);
    box-shadow: 0 8px 35px rgba(255, 107, 107, 0.35);
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.18), rgba(255, 71, 87, 0.12));
}

.booster-favorite {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(26, 10, 15, 0.9);
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.booster-favorite:hover,
.booster-favorite.favorited {
    color: var(--red-electric);
    background: rgba(255, 107, 107, 0.2);
    border-color: var(--red-electric);
    transform: scale(1.1);
}

.booster-image {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.booster-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 2rem;
    border: 3px solid var(--red-electric);
    box-shadow: 0 8px 30px rgba(255, 107, 107, 0.4);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.booster-card:hover .booster-avatar {
    transform: scale(1.1);
}

.booster-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.booster-info {
    text-align: center;
    position: relative;
    z-index: 5;
}

.booster-username {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.booster-rank-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: rgba(255, 107, 107, 0.15);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--red-electric);
    font-weight: 600;
    margin-bottom: 1rem;
}

.booster-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    padding: 1rem 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.stat-item i {
    color: var(--red-electric);
    font-size: 1rem;
}

.stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.booster-experience {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0.5rem;
}

.booster-experience i {
    color: var(--red-electric);
}

.booster-languages {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
}

.booster-languages i {
    color: var(--red-electric);
}

.language-flag {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.language-flag:hover {
    transform: scale(1.2);
}

.booster-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-primary {
    flex: 1;
    padding: 0.875rem 1.5rem;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 0.75rem 1.25rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 600;
    min-width: 44px;
    text-align: center;
}

.pagination-btn:hover {
    background: var(--gradient-primary);
    color: #fff;
    border-color: var(--red-electric);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.pagination-btn.current {
    background: var(--gradient-primary);
    color: #fff;
    border-color: var(--red-electric);
    box-shadow: var(--shadow-glow);
}

.pagination-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 4rem;
    color: var(--red-electric);
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.empty-state h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 1rem;
}

@media (max-width: 1024px) {
    .boosters-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .hero-section {
        min-height: auto;
        padding: 120px 1rem 3rem;
    }

    .header-content {
        padding: 1rem 1.5rem;
    }

    .desktop-nav {
        display: none;
    }
    
    .mobile-toggle {
        display: block;
    }

    .filters-form {
        grid-template-columns: 1fr;
    }

    .boosters-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .page-header {
        margin-bottom: 2rem;
        padding: 1rem 0;
    }

    .filters-container {
        padding: 1.5rem;
    }

    .user-info {
        display: none;
    }

    .pagination {
        gap: 0.5rem;
    }

    .pagination-btn {
        padding: 0.5rem 0.875rem;
        min-width: 40px;
        font-size: 0.9rem;
    }

    .logo-image {
        height: 40px;
    }

    .booster-stats {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .booster-card {
        padding: 1.25rem;
    }

    .header-content {
        padding: 1rem;
    }
    
    .booster-avatar {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }
}