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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    color: #ffffff;
    overflow-x: hidden;
}

.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-container.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0a1a, #1a1a2e, #16213e);
    background-size: 400% 400%;
    animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.loader-content {
    position: relative;
    text-align: center;
    z-index: 10001;
}

.loader-logo {
    margin-bottom: 30px;
}

.logo-ring {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    position: relative;
    border: 3px solid rgba(74, 158, 255, 0.3);
    border-radius: 50%;
    animation: ringRotate 2s linear infinite;
}

.logo-ring::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 3px solid transparent;
    border-top: 3px solid #4a9eff;
    border-radius: 50%;
    animation: ringRotate 1.5s linear infinite reverse;
}

.logo-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4a9eff, #007bff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(74, 158, 255, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

.logo-text {
    font-size: 2rem;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

@keyframes ringRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.05);
    }
}

.loader-text {
    margin-bottom: 40px;
}

.loading-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(74, 158, 255, 0.5);
    animation: titleGlow 3s ease-in-out infinite;
}

.loading-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    animation: subtitleFade 2s ease-in-out infinite;
}

@keyframes titleGlow {

    0%,
    100% {
        text-shadow: 0 0 20px rgba(74, 158, 255, 0.5);
    }

    50% {
        text-shadow: 0 0 30px rgba(74, 158, 255, 0.8), 0 0 40px rgba(74, 158, 255, 0.3);
    }
}

@keyframes subtitleFade {

    0%,
    100% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
    }
}

.loader-progress {
    width: 300px;
    margin: 0 auto 30px;
}

.progress-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
    position: relative;
}

.progress-track::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4a9eff, #007bff, #4a9eff);
    background-size: 200% 100%;
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s ease;
    animation: progressShine 2s linear infinite;
    box-shadow: 0 0 10px rgba(74, 158, 255, 0.5);
}

.progress-percentage {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

@keyframes progressShine {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.loader-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #4a9eff;
    border-radius: 50%;
    animation: float 6s linear infinite;
    box-shadow: 0 0 10px rgba(74, 158, 255, 0.8);
}

.particle:nth-child(1) {
    left: 20%;
    animation-delay: -1s;
    animation-duration: 8s;
}

.particle:nth-child(2) {
    left: 40%;
    animation-delay: -2s;
    animation-duration: 6s;
}

.particle:nth-child(3) {
    left: 60%;
    animation-delay: -3s;
    animation-duration: 9s;
}

.particle:nth-child(4) {
    left: 80%;
    animation-delay: -4s;
    animation-duration: 7s;
}

.particle:nth-child(5) {
    left: 90%;
    animation-delay: -5s;
    animation-duration: 5s;
}

@keyframes float {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .loading-title {
        font-size: 2rem;
    }

    .loading-subtitle {
        font-size: 1rem;
    }

    .logo-ring {
        width: 100px;
        height: 100px;
    }

    .logo-inner {
        width: 70px;
        height: 70px;
    }

    .logo-text {
        font-size: 1.5rem;
    }

    .loader-progress {
        width: 250px;
    }
}

@media (max-width: 480px) {
    .loading-title {
        font-size: 1.8rem;
    }

    .logo-ring {
        width: 80px;
        height: 80px;
    }

    .logo-inner {
        width: 60px;
        height: 60px;
    }

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

    .loader-progress {
        width: 200px;
    }
}


/* Top Bar */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(90deg, #2a2a3e, #1e1e3f);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background 0.3s;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.search-container {
    position: relative;
}

.search-field {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: #ffffff;
    padding: 8px 15px;
    width: 300px;
    outline: none;
    transition: all 0.3s;
}

.search-field::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-field:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #4a9eff;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile-icons {
    display: flex;
    gap: 10px;
}

.profile-icon {
    width: 35px;
    height: 35px;
    background: linear-gradient(45deg, #4a9eff, #007bff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s;
}

.profile-icon:hover {
    transform: scale(1.1);
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    width: 250px;
    height: calc(100vh - 60px);
    background: linear-gradient(180deg, #1e1e3f, #2a2a3e);
    border-right: 1px solid #333;
    transform: translateX(0);
    transition: transform 0.3s ease;
    z-index: 999;
    overflow-y: auto;
}

.sidebar.closed {
    transform: translateX(-100%);
}

.sidebar-content {
    padding: 20px;
}

.sidebar-item {
    padding: 12px 15px;
    margin: 5px 0;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
    color: rgba(255, 255, 255, 0.8);
}

.sidebar-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Main Content */
.main-content {
    margin-top: 60px;
    margin-left: 250px;
    padding: 20px;
    transition: margin-left 0.3s ease;
    min-height: calc(100vh - 60px);
}

.main-content.sidebar-closed {
    margin-left: 0;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .search-field {
        width: 200px;
    }

    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        display: none;
    }

    .overlay.active {
        display: block;
    }
}

@media (max-width: 480px) {
    .search-field {
        width: 150px;
    }

    .top-bar {
        padding: 0 10px;
    }
}

/* Featured Games Section */

.featured-games-section {
    margin: 24px 0;
}

.featured-games-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.featured-games-header h3 {
    font-size: 1.25rem;
    color: #fff;
    letter-spacing: 0.2px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
}

.game-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    min-height: 220px;
    max-width: 300px;
}

.game-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.6);
}

.game-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.game-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.game-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.game-title {
    font-size: 1rem;
    color: #fff;
    line-height: 1.1;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-meta {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
}

.rating {
    font-size: 0.9rem;
    color: #ffd166;
    background: rgba(255, 209, 102, 0.06);
    padding: 6px 8px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.play-btn {
    background: linear-gradient(90deg, #4a9eff, #007bff);
    border: none;
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.12s ease, opacity 0.12s ease;
}

.play-btn:active {
    transform: scale(0.98);
}

.fav-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.85);
    padding: 6px 8px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.12s ease, color 0.12s ease, transform 0.12s;
}

.fav-btn[aria-pressed="true"] {
    background: rgba(255, 79, 129, 0.12);
    color: #ff4f81;
    transform: scale(1.03);
    border-color: rgba(255, 79, 129, 0.2);
}

@media (max-width: 480px) {
    .game-title {
        font-size: 0.98rem;
    }

    .play-btn {
        padding: 7px 10px;
        font-size: 0.95rem;
    }
}

.categories-section {
    margin: 32px 0;
}

.categories-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.categories-header h3 {
    font-size: 1.25rem;
    color: #fff;
    letter-spacing: 0.2px;
}

.categories-container {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    padding: 4px 0;
}

.category-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 100px;
    padding: 20px 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.category-tile:hover::before {
    left: 100%;
}

.category-tile:hover {
    transform: translateY(-4px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 25px rgba(2, 6, 23, 0.4);
}

.category-tile.highlighted {
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.15), rgba(0, 123, 255, 0.08));
    border-color: rgba(74, 158, 255, 0.3);
    box-shadow: 0 4px 15px rgba(74, 158, 255, 0.2);
}

.category-tile.highlighted:hover {
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.25), rgba(0, 123, 255, 0.12));
    border-color: rgba(74, 158, 255, 0.4);
    box-shadow: 0 8px 30px rgba(74, 158, 255, 0.3);
}

.category-icon {
    font-size: 1.8rem;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
    color: #D3BFD3;
}

.category-tile:hover .category-icon {
    transform: scale(1.1);
}

.category-title {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-align: center;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.category-tile:hover .category-title {
    color: #ffffff;
}

.category-tile.highlighted .category-title {
    color: #ffffff;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .categories-container {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 4px 0 16px 0;
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
    }

    .categories-container::-webkit-scrollbar {
        height: 6px;
    }

    .categories-container::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 3px;
    }

    .categories-container::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.2);
        border-radius: 3px;
    }

    .categories-container::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.3);
    }

    .category-tile {
        flex-shrink: 0;
        min-width: 90px;
        padding: 16px 12px;
    }

    .category-icon {
        font-size: 1.6rem;
    }

    .category-title {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .category-tile {
        min-width: 80px;
        padding: 14px 10px;
        gap: 6px;
    }

    .category-icon {
        font-size: 1.4rem;
    }

    .category-title {
        font-size: 0.8rem;
    }
}


/* Recently Played Games Section */
.recently-played-section {
    margin: 32px 0;
}

.recently-played-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.recently-played-header h3 {
    font-size: 1.25rem;
    color: #fff;
    letter-spacing: 0.2px;
}

.recently-played-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    padding: 4px 0;
}

.recent-game-tile {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
    max-width: 250px;
}

.recent-game-tile:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 25px rgba(2, 6, 23, 0.5);
    border-color: rgba(255, 255, 255, 0.15);
}

.recent-game-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: #1a1a2e;
    position: relative;
}

.recent-game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.6) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px;
    transition: opacity 0.3s ease;
}

.recent-game-tile:hover .recent-game-overlay {
    opacity: 1;
}

.play-progress {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4a9eff, #007bff);
    width: var(--progress);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.quick-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #1a1a2e;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.quick-play-btn:hover {
    background: #ffffff;
    transform: translate(-50%, -50%) scale(1.1);
}

.recent-game-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
    padding: 20px 12px 12px 12px;
    backdrop-filter: blur(5px);
}

.recent-game-title {
    font-size: 0.95rem;
    color: #ffffff;
    margin: 0 0 4px 0;
    font-weight: 600;
    line-height: 1.2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.last-played {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .recently-played-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 12px;
    }

    .recent-game-title {
        font-size: 0.9rem;
    }

    .last-played {
        font-size: 0.75rem;
    }

    .quick-play-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .recently-played-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .recent-game-info {
        padding: 16px 10px 10px 10px;
    }

    .recent-game-title {
        font-size: 0.85rem;
    }

    .last-played {
        font-size: 0.7rem;
    }
}

/* Game Details Styles */
.game-details-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.mobile-back-btn {
    display: none;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 20px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.mobile-back-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(-4px);
}

.game-banner {
    position: relative;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
}

.banner-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: #1a1a2e;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 80%);
    display: flex;
    align-items: flex-end;
}

.banner-content {
    padding: 32px;
    width: 100%;
}

.game-title-large {
    font-size: 2.5rem;
    color: #ffffff;
    margin: 0 0 16px 0;
    font-weight: bold;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.game-meta-row {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.rating-large {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.2rem;
    color: #ffd166;
    font-weight: 600;
}

.star {
    font-size: 1.4rem;
}

.players-count,
.file-size {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.action-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: nowrap;
}

.play-btn-large {
    background: linear-gradient(90deg, #4a9eff, #007bff);
    border: none;
    color: #ffffff;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 158, 255, 0.3);
}

.play-btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 158, 255, 0.4);
}

.bookmark-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 16px;
    border-radius: 12px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.bookmark-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.bookmark-btn[aria-pressed="true"] {
    background: rgba(255, 79, 129, 0.2);
    border-color: rgba(255, 79, 129, 0.5);
    color: #ff4f81;
}

.game-tags-section {
    margin-bottom: 32px;
}

.tags-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.game-tag {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.game-tag:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.game-details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    margin-bottom: 48px;
}

.section-title {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 600;
}

.description-content {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

.description-content p {
    margin-bottom: 16px;
}

.game-features {
    margin-top: 24px;
}

.game-features h3 {
    color: #ffffff;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.game-features ul {
    list-style: none;
    padding: 0;
}

.game-features li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
}

.game-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4a9eff;
    font-weight: bold;
}

.info-card,
.stats-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.info-card h3,
.stats-card h3 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.info-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.info-value {
    color: #ffffff;
    font-weight: 500;
}

.stats-grid-game-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: #4a9eff;
    margin-bottom: 4px;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.similar-games-section {
    margin-bottom: 48px;
}

.similar-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.similar-game-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.similar-game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(2, 6, 23, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.similar-game-image {
    width: 100%;
    height: 140px;
    background-size: cover;
    background-position: center;
    background-color: #1a1a2e;
}

.similar-game-info {
    padding: 16px;
}

.similar-game-title {
    color: #ffffff;
    margin: 0 0 8px 0;
    font-size: 1rem;
    font-weight: 600;
}

.similar-game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.similar-rating {
    color: #ffd166;
    font-size: 0.9rem;
}

.similar-genre {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .mobile-back-btn {
        display: flex;
    }

    .game-banner {
        height: 300px;
        margin-bottom: 20px;
    }

    .banner-content {
        padding: 20px;
    }

    .game-title-large {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }

    .game-meta-row {
        gap: 16px;
        margin-bottom: 20px;
    }

    .action-buttons {
        gap: 12px;
    }

    .play-btn-large {
        padding: 14px 24px;
        font-size: 1rem;
    }

    .bookmark-btn {
        padding: 14px;
    }

    .game-details-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 32px;
    }

    .similar-games-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 16px;
    }

    .info-grid {
        gap: 12px;
    }

    .stats-grid-game-details {
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .game-banner {
        height: 350px;
        border-radius: 12px;
    }

    .banner-content {
        padding: 16px;
    }

    .game-title-large {
        font-size: 1.5rem;
    }

    .game-meta-row {
        gap: 12px;
        font-size: 0.9rem;
    }

    .action-buttons {
        flex-direction: row;
        gap: 10px;
    }

    .play-btn-large,
    .bookmark-btn {
        /* width: 100%; */
        justify-content: center;
        /* padding: 12px 20px; */
    }

    .tags-container {
        gap: 8px;
    }

    .game-tag {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .info-card,
    .stats-card {
        padding: 16px;
        margin-bottom: 16px;
    }

    .similar-games-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 12px;
    }

    .section-title {
        font-size: 1.3rem;
        margin-bottom: 16px;
    }
}

/* Profile Header Styles */
.profile-header {
    margin-bottom: 32px;
}

.profile-banner {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    overflow: hidden;
    padding: 40px;
    min-height: 280px;
}

.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="%23ffffff08" points="0,0 1000,300 1000,1000 0,700"/><polygon fill="%23ffffff05" points="0,300 1000,0 1000,400 0,600"/></svg>');
    background-size: cover;
}

.profile-content {
    position: relative;
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.profile-avatar-section {
    position: relative;
    flex-shrink: 0;
}

.avatar-container {
    position: relative;
}

.avatar-ring {
    width: 120px;
    height: 120px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(45deg, #4a9eff, #007bff);
    animation: ringPulse 3s ease-in-out infinite;
}

.avatar-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.status-indicator {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 3px solid white;
}

.status-indicator.online {
    background: #00ff88;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
}

.edit-avatar-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.edit-avatar-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

@keyframes ringPulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(74, 158, 255, 0.3);
    }

    50% {
        box-shadow: 0 0 30px rgba(74, 158, 255, 0.6);
    }
}

.profile-info {
    flex: 1;
    color: white;
}

.player-name {
    font-size: 2.5rem;
    margin: 0 0 8px 0;
    font-weight: bold;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.player-title {
    font-size: 1.2rem;
    margin: 0 0 24px 0;
    opacity: 0.9;
    font-weight: 500;
}

.profile-stats-row {
    display: flex;
    gap: 32px;
    margin-bottom: 24px;
}

.stat-badge {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.profile-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-primary {
    background: linear-gradient(90deg, #4a9eff, #007bff);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 158, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

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

.btn-icon {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Level Section */
.level-section {
    margin-bottom: 32px;
}

.level-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(20px);
}

.level-info {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
}

.level-badge {
    text-align: center;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #1a1a2e;
    padding: 16px;
    border-radius: 12px;
    min-width: 80px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.level-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
}

.level-text {
    font-size: 0.9rem;
    font-weight: 600;
}

.xp-info {
    flex: 1;
}

.xp-bar-container {
    margin-bottom: 8px;
}

.xp-bar {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.xp-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff88, #00cc6a);
    border-radius: 6px;
    position: relative;
    transition: width 0.5s ease;
}

.xp-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: xpShimmer 2s linear infinite;
}

@keyframes xpShimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.xp-text {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.next-level {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

.streak-info {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    padding: 16px 20px;
    border-radius: 12px;
    color: white;
}

.streak-flame {
    font-size: 1.5rem;
    animation: flameFlicker 1.5s ease-in-out infinite;
}

@keyframes flameFlicker {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.1) rotate(2deg);
    }
}

.streak-details {
    text-align: center;
}

.streak-number {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
}

.streak-label {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Stats Dashboard */
.stats-dashboard {
    margin-bottom: 32px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(2, 6, 23, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.stat-content h3 {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin: 0 0 8px 0;
    font-weight: 500;
}

.stat-value-large {
    font-size: 2.2rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 8px;
}

.stat-trend {
    font-size: 0.9rem;
    font-weight: 500;
}

.stat-trend.positive {
    color: #00ff88;
}

.stat-trend.negative {
    color: #ff6b6b;
}

/* Achievements */
.achievements-section {
    margin-bottom: 32px;
}

.achievements-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.view-all-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.achievement-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

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

.achievement-card.legendary {
    border-color: #ffd700;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1));
}

.achievement-card.epic {
    border-color: #9b59b6;
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.2), rgba(155, 89, 182, 0.1));
}

.achievement-card.rare {
    border-color: #3498db;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.2), rgba(52, 152, 219, 0.1));
}

.achievement-card.common {
    border-color: #95a5a6;
    background: linear-gradient(135deg, rgba(149, 165, 166, 0.2), rgba(149, 165, 166, 0.1));
}

.achievement-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.achievement-card:hover .achievement-glow {
    opacity: 1;
}

.achievement-card.legendary .achievement-glow {
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.achievement-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.achievement-info {
    flex: 1;
}

.achievement-info h4 {
    color: #ffffff;
    margin: 0 0 4px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.achievement-info p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 8px 0;
    font-size: 0.9rem;
}

.achievement-date {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

/* Favorite Games */
.favorite-games-section {
    margin-bottom: 32px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.manage-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.manage-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.favorite-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.favorite-game-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.favorite-game-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.5);
}

.game-image {
    width: 100%;
    height: 160px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.favorite-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px;
}

.favorite-game-card:hover .favorite-overlay {
    opacity: 1;
}

.play-time {
    color: white;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.favorite-actions {
    display: flex;
    gap: 8px;
    align-self: flex-end;
}

.quick-play-fav,
.remove-fav {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.quick-play-fav {
    background: rgba(74, 158, 255, 0.9);
    color: white;
}

.quick-play-fav:hover {
    background: #4a9eff;
    transform: scale(1.1);
}

.remove-fav {
    background: rgba(255, 107, 107, 0.9);
    color: white;
}

.remove-fav:hover {
    background: #ff6b6b;
    transform: scale(1.1);
}

.favorite-info {
    padding: 16px;
}

.favorite-info h4 {
    color: #ffffff;
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.favorite-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.achievement-count,
.rating {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Activity Section */
.activity-section {
    margin-bottom: 32px;
}

.activity-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.activity-chart-card,
.recent-activity-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(20px);
}

.activity-chart-card h3,
.recent-activity-card h3 {
    color: #ffffff;
    margin: 0 0 20px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.activity-chart {
    margin-bottom: 16px;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 150px;
    margin-bottom: 12px;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(to top, #4a9eff, #007bff);
    border-radius: 4px 4px 0 0;
    min-height: 20px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chart-bar:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(74, 158, 255, 0.3);
}

.chart-bar::after {
    content: attr(data-hours) 'h';
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.chart-bar:hover::after {
    opacity: 1;
}

.chart-labels {
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.weekly-total {
    text-align: center;
    color: #00ff88;
    margin-top: 16px;
}

.activity-timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4a9eff, #007bff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-text {
    color: #ffffff;
    margin-bottom: 4px;
    font-weight: 500;
}

.activity-time {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .profile-content {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .profile-stats-row {
        justify-content: center;
        gap: 24px;
    }

    .level-card {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .level-info {
        flex-direction: column;
        gap: 16px;
    }

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

    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .favorite-games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .activity-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .player-name {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .profile-banner {
        padding: 24px;
        min-height: 240px;
    }

    .player-name {
        font-size: 1.8rem;
    }

    .profile-stats-row {
        flex-direction: column;
        gap: 16px;
    }

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

    .favorite-games-grid {
        grid-template-columns: 1fr;
    }

    .chart-bars {
        height: 120px;
        gap: 8px;
    }

    .section-title {
        font-size: 1.3rem;
    }
}

.sidebar-content a {
    text-decoration: none;
}

/* Hide scrollbar by default */
.sidebar::-webkit-scrollbar {
    width: 8px;
    background: transparent;
    /* Invisible scroll track */
}

.sidebar::-webkit-scrollbar-thumb {
    background: transparent;
    /* Hide thumb by default */
    border-radius: 4px;
}

/* When hovering over sidebar, show colored scrollbar */
.sidebar:hover::-webkit-scrollbar-thumb {
    background: #16213e;
    /* scrollbar thumb color */
}

/* Optional: slight hover effect on the thumb itself */
.sidebar:hover::-webkit-scrollbar-thumb:hover {
    background: #16213e;
}

/* Smooth scrollbar appearance for Firefox */
.sidebar {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

.sidebar:hover {
    scrollbar-color: #16213e transparent;
}

/* Featured Categories Section */
.featured-categories-section {
    margin: 2rem 0;
}

.featured-categories-header {
    margin-bottom: 1.5rem;
}

.featured-categories-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.featured-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
    padding: 0;
}

.featured-category-card {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.featured-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.category-banner {
    height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
}

.category-content {
    padding: 1.5rem;
    position: relative;
}

.category-icon-large {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.category-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fff;
}

.category-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.category-stats {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .featured-categories-grid {

        gap: 1rem;
    }

    .featured-category-card {
        min-height: auto;
    }

    .category-content {
        padding: 1rem;
    }

    .category-icon-large {
        font-size: 2rem;
    }

    .category-name {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .category-banner {
        height: 200px;
    }

    .category-content {
        padding: 0.75rem;
    }

    .category-icon-large {
        font-size: 1.8rem;
    }
}
/* Alert class */
.alert {
    background-color: #f44336;
    /* Red */
    color: white;
    padding: 15px;
    margin: auto;
    border-radius: 5px;
    position: fixed;
    z-index: 1;
    bottom: 50px;
    left: 16px;
    right: 16px;
    max-width: 480px;
    text-align: center;
}

.alert.success {
    background-color: #4BB543;
}

/* Green */

.alert.info {
    background-color: #2196F3;
}

/* Blue */

.alert.warning {
    background-color: #ff9800;
}

/* Orange */

.alert.danger {
    background-color: rgb(244 67 54 / 60%);
}

/* Red */

.alert.closebtn {
    position: absolute;
    top: 10px;
    right: 25px;
    color: white;
    font-weight: bold;
    font-size: 22px;
    line-height: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.alert.closebtn:hover {
    color: black;
}

.alert.closebtn:after {
    content: "×";
    font-size: 20px;
    line-height: 20px;
    position: absolute;
    right: 10px;
    top: 0;
}

.alert.closebtn:hover:after {
    color: black;
}