body {
    min-height: 100vh;
    overflow-x: hidden;
    padding-top: 70px;
    margin: 0;
}


/* Header Navbar */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.header-navbar {
    background: white;
    height: 70px;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 150px;
    height: 100%;
}

.navbar-left, .navbar-center, .navbar-right {
    display: flex;
    align-items: center;
}

.navbar-left { gap: 24px; }
.navbar-center { gap: 32px; }
.navbar-right { gap: 16px; }

/* Flash Sale Nav Link */
.flash-sale-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.3s ease;
    white-space: nowrap;
    animation: flash-nav-pulse 2s ease-in-out infinite;
}

.flash-sale-nav-link:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255,75,43,0.4);
    color: white;
}

.flash-sale-nav-link svg {
    animation: flash-icon-bounce 1s ease-in-out infinite;
}

@keyframes flash-nav-pulse {
    0%, 100% { box-shadow: 0 2px 10px rgba(255,75,43,0.3); }
    50% { box-shadow: 0 4px 20px rgba(255,75,43,0.5); }
}

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

/* Buttons */
.btn-logout, .btn-edit {
    background: transparent;
    border: 2px solid var(--color-gray-200);
    color: var(--color-gray-700);
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-base);
}

.btn-logout:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(12, 149, 30, 0.1);
    transform: translateY(-2px);
}

.btn-edit:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--color-gray-50);
}

.btn-login {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    min-width: 100px;
    height: 42px;
}

.btn-login:hover {
    background: var(--color-primary);
    color: white !important;
}

.btn-register, .btn-topup {
    background: var(--color-primary);
    color: white;
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition-base);
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
    border: 2px solid var(--color-primary);
    cursor: pointer;
    min-width: 100px;
    height: 42px;
}

.btn-register:hover, .btn-topup:hover {
    background: var(--color-primary-dark);
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.4);
}

.nav-link {
    color: var(--color-gray-600);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all var(--transition-base);
    padding: 8px 12px;
    border-radius: 8px;
}

.nav-link:hover {
    color: var(--color-primary);
    background: var(--color-gray-50);
}

/* All Apps Button */
.all-apps-wrapper {
    position: relative;
}

.all-apps-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.all-apps-btn:hover {
    background: var(--color-gray-100);
}

.grid-icon {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    width: 24px;
    height: 24px;
}

.grid-icon span {
    width: 8px;
    height: 8px;
    background: var(--color-gray-700);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.all-apps-btn:hover .grid-icon span {
    background: var(--color-primary);
}

/* Dropdown Menu */
.all-apps-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.all-apps-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--color-gray-700);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.dropdown-item:hover {
    background: var(--color-gray-50);
    color: var(--color-primary);
}

.dropdown-item svg {
    flex-shrink: 0;
    color: var(--color-gray-500);
    transition: color 0.2s ease;
}

.dropdown-item:hover svg {
    color: var(--color-primary);
}

.dropdown-divider {
    height: 1px;
    background: var(--color-gray-200);
    margin: 8px 0;
}

.logout-item {
    color: #dc2626;
}

.logout-item:hover {
    background: #fef2f2;
    color: #dc2626;
}

.logout-item svg {
    color: #dc2626;
}

/* Hide/Show based on screen size */
.btn-desktop-only {
    display: inline-flex;
}

.btn-mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .btn-desktop-only {
        display: none;
    }
    
    .btn-mobile-only {
        display: flex;
    }
}

/* Layout */
.container {
    display: block;
    padding: 24px 150px;
    max-width: 100%;
    margin: 0 auto;
    min-height: calc(100vh - 70px);
    background-image: url('../images/home-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.logo {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Search Bar */
.navbar-left .search-bar {
    position: relative;
    width: 300px;
}

.navbar-left .search-bar svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-gray-500);
}

.navbar-left .search-bar input {
    width: 100%;
    padding: 10px 14px 10px 42px;
    border: 1px solid var(--color-gray-200);
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: all var(--transition-base);
    background: var(--color-gray-50);
    color: var(--color-gray-800);
}

.navbar-left .search-bar input::placeholder {
    color: var(--color-gray-500);
}

.navbar-left .search-bar input:focus {
    border-color: var(--color-primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(12, 149, 30, 0.1);
}

/* Avatar */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar:hover {
    border-color: var(--color-primary);
    transform: scale(1.05);
    box-shadow: 0 0 12px rgba(12, 149, 30, 0.4);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar.active {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(12, 149, 30, 0.3);
}

.avatar-guest {
    background: rgba(12, 149, 30, 0.2);
    color: var(--color-primary);
}

.avatar-guest svg {
    color: var(--color-gray-500);
}

/* Main Content */
.main-content, .right-sidebar {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.main-content {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 0;
}

.right-sidebar {
    background: var(--color-secondary);
    border-radius: 28px;
    padding: 32px;
    height: fit-content;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}

/* Alert Banner */
.alert-success-banner {
    background: linear-gradient(135deg, rgba(12, 149, 30, 0.1) 0%, rgba(12, 149, 30, 0.15) 100%);
    color: #006D00;
    padding: 16px 24px;
    border-radius: 14px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 600;
    border: 1px solid rgba(12, 149, 30, 0.3);
    box-shadow: 0 4px 12px rgba(12, 149, 30, 0.2);
    animation: slideDown 0.3s ease-out;
}

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

/* Hero Banner Swiper - Original Size */
.banner-swiper {
    width: 100%;
    height: auto;
    margin-bottom: 0;
    border-radius: 24px;
    overflow: hidden;
    --swiper-navigation-color: var(--color-primary);
    --swiper-theme-color: var(--color-primary);
}

.banner-swiper .swiper-slide {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-swiper .swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: center;
}

/* Swiper Navigation Buttons */
.banner-swiper .swiper-button-prev,
.banner-swiper .swiper-button-next {
    width: 32px;
    height: 32px;
    background: none;
    transition: all 0.3s ease;
    color: white;
}

.banner-swiper .swiper-button-prev:hover,
.banner-swiper .swiper-button-next:hover {
    transform: scale(1.15);
}

.banner-swiper .swiper-button-prev:after,
.banner-swiper .swiper-button-next:after {
    font-size: 32px;
    font-weight: 700;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

/* Swiper Pagination */
.banner-swiper .swiper-pagination {
    bottom: 20px;
}

.banner-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.banner-swiper .swiper-pagination-bullet:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.banner-swiper .swiper-pagination-bullet-active {
    background: white;
    width: 32px;
    border-radius: 5px;
}

/* Category Header */
.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 32px;
    background: var(--color-secondary);
    border-radius: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.category-header-content {
    display: flex;
    align-items: center;
}

.category-header h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--color-gray-800);
    margin: 0 0 8px 0;
}

.category-header p {
    font-size: 16px;
    color: var(--color-gray-600);
    margin: 0;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    border: 2px solid var(--color-gray-300);
    color: var(--color-gray-700);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-back:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(12, 149, 30, 0.05);
}

.btn-back svg {
    transition: transform 0.3s ease;
}

.btn-back:hover svg {
    transform: translateX(-4px);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 40px;
    background: var(--color-secondary);
    border-radius: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.empty-icon {
    font-size: 80px;
    margin-bottom: 24px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-gray-800);
    margin-bottom: 12px;
}

.empty-state p {
    font-size: 16px;
    color: var(--color-gray-600);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--color-primary);
    color: white;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(12, 149, 30, 0.3);
}

/* Games Section */
.games-section {
    margin-bottom: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

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

.category-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.category-tabs .tab {
    background: var(--color-gray-50);
    border: 1px solid var(--color-gray-200);
    color: var(--color-gray-700);
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.category-tabs .tab:hover {
    background: var(--color-gray-100);
    border-color: var(--color-gray-300);
}

.category-tabs .tab.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(12, 149, 30, 0.3);
}

.section-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-gray-800);
}

.see-more, .see-all {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all var(--transition-base);
}

.see-more:hover, .see-all:hover {
    color: var(--color-primary-dark);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
}

.all-games-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
}

/* Responsive grid for medium screens */
@media (max-width: 1400px) {
    .games-grid,
    .all-games-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1200px) {
    .games-grid,
    .all-games-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .games-grid,
    .all-games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Categories Section */
.categories-section {
    margin-bottom: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.categories-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.categories-grid::-webkit-scrollbar {
    display: none;
}

.category-card {
    flex: 0 0 auto;
    background: var(--color-black);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 12px 24px;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
}

.category-card:hover {
    background: var(--color-black);
    border-color: var(--color-primary);
}

.category-card h3 {
    font-size: 14px;
    font-weight: 600;
    color: white !important;
    margin-bottom: 0;
    transition: color 0.2s ease;
}

.category-card:hover h3 {
    color: var(--color-primary) !important;
}

.category-card p {
    display: none;
}

/* Game Card Improvements */
/* Popular Games - Horizontal Layout */
.popular-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 16px;
}

.popular-games-grid .game-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: border-color 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--color-gray-200);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    min-height: 100px;
}

.popular-games-grid .game-card:hover {
    border-color: var(--color-primary);
}

.popular-games-grid .game-image {
    width: 90px;
    min-width: 90px;
    height: 100%;
    min-height: 100px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e9f2 100%);
    z-index: 1;
    border-radius: 16px 0 0 16px;
}

.popular-games-grid .game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

.popular-games-grid .game-info {
    flex: 1;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
    min-width: 0;
}

.popular-games-grid .game-info h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-gray-800);
    margin-bottom: 4px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.popular-games-grid .game-info .game-category {
    font-size: 12px;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 3px;
}

.popular-games-grid .game-info .game-meta {
    margin-top: auto;
}

.popular-games-grid .game-info .game-developer {
    font-size: 11px;
    color: var(--color-gray-500);
}

.popular-games-grid .game-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #0a7a1e 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(12, 149, 30, 0.4);
}

/* Regular Game Card - Vertical Layout */
.game-card {
    background: white;
    background-image: url('../images/card-bg.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--color-gray-200);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.game-card:hover {
    border-color: var(--color-primary);
}

.game-image {
    width: 100%;
    aspect-ratio: 1;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e9f2 100%);
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #0a7a1e 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(12, 149, 30, 0.4);
}

.game-info {
    padding: 20px;
}

.game-info h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-gray-800);
    margin-bottom: 8px;
}

.game-category {
    font-size: 13px;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.game-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.game-developer {
    font-size: 11px;
    color: var(--color-gray-500);
    font-weight: 500;
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--color-gray-500);
}

.game-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-gray-800);
    margin-bottom: 10px;
    line-height: 1.3;
    text-align: left;
}

.game-stats {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: var(--color-gray-500);
    font-weight: 500;
}

.rating, .downloads {
    display: flex;
    align-items: center;
    gap: 4px;
}

.game-card-more {
    background: var(--color-gray-50);
    border: 2px dashed var(--color-gray-300);
    border-radius: 18px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
}

.game-card-more:hover {
    border-color: var(--color-primary);
    background: rgba(12, 149, 30, 0.05);
}

.btn-more {
    background: transparent;
    border: none;
    font-size: 32px;
    color: var(--color-gray-400);
    cursor: pointer;
    transition: all var(--transition-base);
}

.game-card-more:hover .btn-more {
    color: var(--color-primary);
}

/* Last Downloaded */
.last-downloaded {
    margin-top: 40px;
}

.download-item {
    background: var(--color-gray-50);
    border: 1px solid var(--color-gray-200);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.download-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    flex-shrink: 0;
}

.download-info {
    flex: 1;
}

.download-info h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-gray-800);
    margin-bottom: 6px;
}

.download-badge {
    display: inline-block;
    background: rgba(12, 149, 30, 0.1);
    color: var(--color-primary);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.download-progress {
    flex: 2;
}

.progress-text {
    font-size: 13px;
    color: var(--color-gray-600);
    margin-bottom: 6px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--color-gray-200);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 6px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    border-radius: 4px;
    transition: width var(--transition-base);
}

.progress-time {
    font-size: 12px;
    color: var(--color-gray-500);
}

.btn-cancel {
    background: var(--color-gray-200);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 20px;
    color: var(--color-gray-600);
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-cancel:hover {
    background: var(--color-danger);
    color: white;
}

/* What's New Sidebar */
.whats-new {
    height: 100%;
}

.update-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.update-item {
    background: var(--color-gray-50);
    border: 1px solid var(--color-gray-200);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    transition: all var(--transition-base);
}

.update-item:hover {
    border-color: var(--color-gray-300);
    box-shadow: var(--shadow-sm);
}

.update-icon {
    font-size: 32px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-secondary);
    border-radius: 10px;
    flex-shrink: 0;
}

.update-info {
    flex: 1;
}

.update-info h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-gray-800);
    margin-bottom: 4px;
}

.update-info p {
    font-size: 13px;
    color: var(--color-gray-600);
    margin-bottom: 8px;
}

.btn-update {
    background: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-update:hover {
    background: var(--color-primary);
    color: white;
}

/* Profile */
.profile-header {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 32px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    border-radius: 20px;
    margin-bottom: 32px;
    box-shadow: 0 8px 24px rgba(4, 120, 87, 0.2);
}

.profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.profile-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.profile-name {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
}

.profile-email {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 12px;
}

.profile-section {
    background: var(--color-secondary);
    border: 1px solid var(--color-gray-200);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 24px;
}

.profile-section .section-header {
    padding-bottom: 16px;
    border-bottom: 2px solid var(--color-gray-100);
}

/* Form */
.profile-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-gray-700);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
}

/* Security Info Box */
.security-info-box {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: var(--color-gray-50);
    border: 1px solid var(--color-gray-200);
    border-radius: 14px;
}

.info-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.info-content h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 6px;
}

.info-content p {
    font-size: 14px;
    color: var(--color-gray-600);
}

/* Responsive */
@media (max-width: 968px) {
    .navbar-center {
        display: none;
    }
    .navbar-left .search-bar {
        width: 200px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 30px 0 0 0;
        gap: 0;
    }
    
    .navbar-container {
        padding: 0 16px;
    }
    .navbar-left .search-bar {
        display: none;
    }
    .main-content {
        padding: 0 16px;
        gap: 24px;
    }
    .banner-swiper {
        border-radius: 16px;
        margin-bottom: 0;
        height: auto;
    }
    .banner-swiper .swiper-slide {
        height: auto;
    }
    .banner-swiper .swiper-button-prev,
    .banner-swiper .swiper-button-next {
        width: 28px;
        height: 28px;
    }
    .banner-swiper .swiper-button-prev:after,
    .banner-swiper .swiper-button-next:after {
        font-size: 28px;
    }
    .banner-swiper .swiper-pagination {
        bottom: 12px;
    }
    .banner-swiper .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
    }
    .banner-swiper .swiper-pagination-bullet-active {
        width: 24px;
    }
    .categories-section {
        padding: 0;
        margin-bottom: 0;
        border-radius: 0;
    }
    .games-section {
        padding: 0;
        margin-bottom: 0;
        border-radius: 0;
    }
    .popular-games-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .popular-games-grid .game-card {
        display: flex;
        flex-direction: row;
    }
    .popular-games-grid .game-image {
        width: 70px;
        min-width: 70px;
        height: 100%;
        min-height: 70px;
    }
    .popular-games-grid .game-info {
        padding: 12px;
    }
    .popular-games-grid .game-info h3 {
        font-size: 12px;
        margin-bottom: 4px;
    }
    .popular-games-grid .game-category {
        font-size: 10px;
    }
    .popular-games-grid .game-meta {
        display: none;
    }
    .games-grid {
        display: flex;
        overflow-x: auto;
        gap: 12px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        padding-bottom: 4px;
    }
    .games-grid::-webkit-scrollbar {
        display: none; /* Chrome, Safari */
    }
    .games-grid .game-card {
        flex: 0 0 140px;
        scroll-snap-align: start;
    }
    .all-games-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .all-games-grid .game-card {
        display: flex;
        flex-direction: column;
    }
    .all-games-grid .game-info {
        padding: 12px;
    }
    .all-games-grid .game-info h3 {
        font-size: 13px;
        margin-bottom: 4px;
    }
    .all-games-grid .game-category {
        font-size: 11px;
    }
    .all-games-grid .game-developer {
        font-size: 10px;
    }
    .categories-grid {
        display: flex;
        overflow-x: auto;
        overflow-y: visible;
        gap: 8px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
    }
    .categories-grid::-webkit-scrollbar {
        display: none;
    }
    .categories-grid .category-card {
        flex: 0 0 auto;
        scroll-snap-align: start;
        padding: 10px 20px;
        border-radius: 20px;
        background: var(--color-black);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    .categories-grid .category-card h3 {
        font-size: 13px;
        margin-bottom: 0;
        color: white !important;
    }
    .categories-grid .category-card:hover {
        border-color: var(--color-primary);
    }
    .categories-grid .category-card:hover h3 {
        color: var(--color-primary) !important;
    }
    .categories-grid .category-card p {
        display: none;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Footer Styles */
.main-footer {
    background: white;
    color: var(--color-gray-800);
    padding: 60px 0 20px;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
}

.footer-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 150px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-column h4 {
    color: var(--color-primary);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-logo {
    margin-bottom: 16px;
}

.footer-logo img {
    height: 60px;
    width: auto;
}

.footer-desc {
    color: var(--color-gray-600);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(12, 149, 30, 0.1);
    border-radius: 50%;
    color: var(--color-primary);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(12, 149, 30, 0.3);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--color-gray-600);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--color-primary);
    transform: translateX(5px);
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.payment-badge {
    background: var(--color-gray-100);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    color: var(--color-gray-700);
    border: 1px solid var(--color-gray-200);
    transition: all 0.3s ease;
}

.payment-badge:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--color-gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    color: #808080;
    font-size: 14px;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-bottom-links a {
    color: var(--color-gray-600);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--color-primary);
}

.footer-bottom-links span {
    color: var(--color-gray-400);
}

/* Footer Responsive */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (max-width: 640px) {
    .main-footer {
        padding: 40px 0 20px;
        margin-top: 60px;
    }
    
    .footer-container {
        padding: 0 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .payment-methods {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(12, 149, 30, 0.05);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #0C951E;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #006D00;
}

/* Products Page Styles */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--color-primary-dark);
}

.breadcrumb span:not(:last-child) {
    color: var(--color-gray-400);
}

.game-header-card {
    background: white;
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.game-banner {
    width: 200px;
    height: 200px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.game-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-header-info {
    flex: 1;
}

.game-header-info h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--color-gray-800);
    margin-bottom: 8px;
}

.game-dev {
    font-size: 16px;
    color: var(--color-gray-600);
    margin-bottom: 12px;
}

.game-cat-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(12, 149, 30, 0.1) 0%, rgba(12, 149, 30, 0.15) 100%);
    color: var(--color-primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
}

.game-description {
    font-size: 14px;
    color: var(--color-gray-600);
    line-height: 1.6;
    margin-top: 16px;
}

.products-section {
    margin-bottom: 40px;
}

.section-desc {
    font-size: 14px;
    color: var(--color-gray-600);
    margin-top: 8px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.product-card {
    background: white;
    border: 2px solid var(--color-gray-200);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.product-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(12, 149, 30, 0.15);
}

.product-card.active {
    border-color: var(--color-primary);
    background: linear-gradient(135deg, rgba(12, 149, 30, 0.03) 0%, rgba(12, 149, 30, 0.05) 100%);
    box-shadow: 0 8px 20px rgba(12, 149, 30, 0.2);
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.product-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-gray-800);
}

.discount-badge {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
}

.product-desc {
    font-size: 13px;
    color: var(--color-gray-600);
    margin-bottom: 16px;
}

.product-price {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
}

.price-original {
    font-size: 13px;
    color: var(--color-gray-500);
    text-decoration: line-through;
}

.price-current {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-primary);
}

.btn-select-product {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #0a7a1e 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-select-product:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(12, 149, 30, 0.4);
}

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

/* Order Form */
.order-form-section {
    background: white;
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 40px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.order-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-gray-800);
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--color-gray-200);
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(12, 149, 30, 0.1);
}

.form-hint {
    display: block;
    font-size: 12px;
    color: var(--color-gray-500);
    margin-top: 6px;
}

.order-summary {
    background: linear-gradient(135deg, rgba(12, 149, 30, 0.05) 0%, rgba(12, 149, 30, 0.08) 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.order-summary h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-gray-800);
    margin-bottom: 16px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--color-gray-600);
    margin-bottom: 12px;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 800;
    color: var(--color-primary);
    padding-top: 16px;
    border-top: 2px solid rgba(12, 149, 30, 0.2);
    margin-top: 8px;
}

.btn-checkout {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #0a7a1e 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(12, 149, 30, 0.4);
}

/* Steps List */
.steps-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.step-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #0a7a1e 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.step-text strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-gray-800);
    margin-bottom: 4px;
}

.step-text p {
    font-size: 12px;
    color: var(--color-gray-600);
    line-height: 1.4;
    margin: 0;
}

/* Responsive Products */
@media (max-width: 768px) {
    .game-header-card {
        flex-direction: column;
        padding: 24px;
    }

    .game-banner {
        width: 100%;
        height: 200px;
    }

    .game-header-info h1 {
        font-size: 24px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 16px;
    }

    .order-form-section {
        padding: 20px;
    }
}

/* ===============================================
   FLASH SALE HOME SECTION
   =============================================== */

.flash-sale-home-section {
    margin: 2rem 0;
}

.flash-sale-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.flash-sale-header-title h2 {
    margin: 0;
}

.flash-icon-small {
    width: 24px;
    height: 24px;
    color: #ff4444;
    animation: flash-pulse 1s ease-in-out infinite;
}

@keyframes flash-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.live-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: #ff4444;
    color: white;
    font-size: 10px;
    font-weight: 800;
    border-radius: 12px;
    animation: pulse-live 1.5s ease-in-out infinite;
}

@keyframes pulse-live {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.flash-sale-home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.flash-sale-home-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    text-decoration: none;
    color: inherit;
    position: relative;
    transition: all 0.3s ease;
}

.flash-sale-home-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.flash-discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 800;
    z-index: 5;
}

.flash-home-image {
    width: 100%;
    height: 120px;
    overflow: hidden;
}

.flash-home-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.flash-sale-home-card:hover .flash-home-image img {
    transform: scale(1.05);
}

.flash-home-info {
    padding: 12px;
}

.flash-home-game {
    display: inline-block;
    background: #f0f0f0;
    color: #666;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    margin-bottom: 6px;
}

.flash-home-product {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.flash-home-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.flash-home-price .original {
    font-size: 11px;
    color: #999;
    text-decoration: line-through;
}

.flash-home-price .sale {
    font-size: 14px;
    font-weight: 800;
    color: #ff4444;
}

.flash-home-stock {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stock-bar {
    flex: 1;
    height: 4px;
    background: #f0f0f0;
    border-radius: 2px;
    overflow: hidden;
}

.stock-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff416c 0%, #ff4b2b 100%);
    border-radius: 2px;
}

.stock-label {
    font-size: 10px;
    color: #ff4444;
    font-weight: 600;
    white-space: nowrap;
}

/* Responsive Flash Sale Home */
@media (max-width: 768px) {
    .flash-sale-home-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .flash-home-image {
        height: 100px;
    }
    
    .flash-home-info {
        padding: 10px;
    }
    
    .flash-home-product {
        font-size: 12px;
    }
    
    .flash-sale-nav-link {
        padding: 6px 12px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .flash-sale-nav-link span {
        display: none;
    }
    
    .flash-sale-nav-link {
        padding: 8px;
    }
}