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

:root {
    --primary-gold: #ff2d2d;
    --secondary-gold: #f80303;
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --card-bg: #1a1a1a;
    --text-light: #ffffff;
    --text-gray: #b0b0b0;
    --accent-purple: #8A2BE2;
    --success-green: #00b894;
    --error-red: #ff4757;
    --warning-yellow: #fdcb6e;
    --info-blue: #0984e3;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===== HEADER STYLES ===== */
.header {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid var(--primary-gold);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* Logo - Always Visible */
.logo h1 {
    color: var(--primary-gold);
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    white-space: nowrap;
}

.desktop-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.desktop-nav a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.desktop-nav a:hover {
    color: var(--primary-gold);
    background: rgba(255, 215, 0, 0.1);
}

.desktop-nav a i {
    font-size: 1.1rem;
}

.nav-text {
    display: inline;
}

.mobile-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.menu-btn {
    background: none;
    border: none;
    color: var(--primary-gold);
    font-size: 1.3rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: none;
    align-items: center;
    justify-content: center;
}

.menu-btn:hover {
    background: rgba(255, 215, 0, 0.1);
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 8px;
    border-radius: 5px;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    justify-content: center;
}

.hamburger-menu:hover {
    background: rgba(255, 215, 0, 0.1);
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: var(--primary-gold);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--card-bg);
    border-bottom: 2px solid var(--primary-gold);
    z-index: 99;
    padding: 1rem 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.mobile-nav.active {
    display: block;
    transform: translateY(0);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 8px;
    font-weight: 500;
    position: relative;
}

.mobile-nav-link:hover {
    background: rgba(255, 215, 0, 0.1);
    color: var(--primary-gold);
    transform: translateX(5px);
}

.mobile-nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1.2rem;
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 98;
    backdrop-filter: blur(2px);
}

.mobile-nav-overlay.active {
    display: block;
}

.cart-counter {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--error-red);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    display: none;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid var(--dark-bg);
}

/* ===== SIDEBAR STYLES ===== */
.sidebar {
    position: fixed;
    left: -300px;
    top: 0;
    width: 300px;
    height: 100%;
    background: var(--card-bg);
    transition: left 0.3s ease;
    z-index: 1000;
    box-shadow: 5px 0 15px rgba(255, 215, 0, 0.1);
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    padding: 20px;
    background: var(--primary-gold);
    color: var(--dark-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h2 {
    font-weight: bold;
    font-size: 1.5rem;
}

.close-sidebar {
    background: none;
    border: none;
    color: var(--dark-bg);
    font-size: 1.5rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-sidebar:hover {
    background: rgba(0, 0, 0, 0.1);
}

.sidebar ul {
    list-style: none;
    padding: 20px 0;
}

.sidebar ul li {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.sidebar ul li:hover {
    background: rgba(255, 215, 0, 0.1);
}

.sidebar ul li a {
    color: var(--text-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

.sidebar ul li a:hover {
    color: var(--primary-gold);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    margin-left: 0;
    transition: margin-left 0.3s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content.sidebar-open {
    margin-left: 300px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== BANNER SLIDER ===== */
.banner-slider {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
}

.banner-slides {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.banner-slide {
    width: 33.333%;
    height: 100%;
}

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

.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-dot.active {
    background: var(--primary-gold);
    transform: scale(1.2);
}

.banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: var(--primary-gold);
    border: 2px solid var(--primary-gold);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    opacity: 0;
}

.banner-slider:hover .banner-nav {
    opacity: 1;
}

.banner-nav:hover {
    background: var(--primary-gold);
    color: var(--dark-bg);
    transform: translateY(-50%) scale(1.1);
}

.banner-prev {
    left: 20px;
}

.banner-next {
    right: 20px;
}

/* ===== FILTER SECTION ===== */
.filter-section {
    padding: 2rem 0;
    background: var(--card-bg);
    margin: 0;
}

.filter-group {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 1.5rem;
    background: var(--dark-bg);
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.filter-group select,
.filter-group input {
    padding: 12px 15px;
    border: 1px solid var(--primary-gold);
    background: var(--darker-bg);
    color: var(--text-light);
    border-radius: 8px;
    min-width: 150px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--secondary-gold);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.filter-group button {
    background: var(--primary-gold);
    color: var(--dark-bg);
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group button:hover {
    background: var(--secondary-gold);
    transform: translateY(-2px);
}

.price-filter {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.price-filter input {
    width: 120px;
}

/* ===== GAMES SECTION ===== */
.games-section {
    background-image: url("https://vexagame.com/vexagame-bg.webp");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    padding: 2rem 0;
    flex: 1;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    justify-items: center;
}

.game-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.2);
    position: relative;
    width: 100%;
    max-width: 300px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: fit-content;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.2);
    border-color: var(--primary-gold);
}

.game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.game-info {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.game-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-gold);
    line-height: 1.3;
    height: 2.6rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    flex-shrink: 0;
}

.game-category {
    color: var(--text-gray);
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
    flex-shrink: 0;
}

.game-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-size: 0.8rem;
    color: var(--text-gray);
    flex-shrink: 0;
}

.game-stats span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.price-section {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.original-price {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: bold;
}

.discount-price {
    font-size: 1rem;
    color: var(--primary-gold);
    font-weight: bold;
}

.original-price.discounted {
    text-decoration: line-through;
    color: var(--text-gray);
    font-size: 0.8rem;
}

.game-card .btn-gold {
    padding: 10px 15px;
    font-size: 0.9rem;
    width: 100%;
    border-radius: 8px;
    margin-top: auto;
    flex-shrink: 0;
}

.games-grid:has(.game-card:only-child) {
    grid-template-columns: repeat(auto-fit, minmax(280px, 300px));
    justify-content: center;
}

/* Perbaikan Ketika hanya ada 1-2 game, tetap bentuk kotak */
.games-grid .game-card:nth-child(1):nth-last-child(1),
.games-grid .game-card:nth-child(1):nth-last-child(2),
.games-grid .game-card:nth-child(2):nth-last-child(1) {
    max-width: 300px;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Perbaikan Desktop Large Agar Tetap kotak */
@media (min-width: 1200px) {
    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
    
    .game-card {
        max-width: 320px;
    }
    
    .game-image {
        height: 220px;
    }
}

@media (min-width: 1025px) {
    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .games-grid:has(.game-card:nth-child(3)) {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 1024px) {
    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .game-card {
        max-width: 280px;
    }
    
    .game-image {
        height: 180px;
    }
    
    .game-info {
        padding: 1rem;
    }
    
    .game-title {
        font-size: 1rem;
        height: 2.4rem;
    }
}

@media (max-width: 768px) {
    .games-section {
        padding: 1.5rem 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 15px;
    }
    
    .game-card {
        border-radius: 10px;
        max-width: none;
    }
    
    .game-image {
        height: 300px;
    }
    
    .game-info {
        padding: 0.8rem;
    }
    
    .game-title {
        font-size: 0.9rem;
        height: 2.2rem;
        margin-bottom: 0.3rem;
        -webkit-line-clamp: 2;
    }
    
    .game-category {
        font-size: 0.75rem;
        margin-bottom: 0.6rem;
    }
    
    .game-stats {
        font-size: 0.75rem;
        margin-bottom: 0.6rem;
    }
    
    .game-stats span {
        gap: 0.2rem;
    }
    
    .game-stats i {
        font-size: 0.7rem;
    }
    
    .price-section {
        margin-bottom: 0.8rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .original-price {
        font-size: 0.9rem;
    }
    
    .discount-price {
        font-size: 0.95rem;
        font-weight: bold;
    }
    
    .original-price.discounted {
        font-size: 0.8rem;
        text-decoration: line-through;
    }
    
    .game-card .btn-gold {
        padding: 8px 12px;
        font-size: 0.8rem;
        border-radius: 6px;
    }
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        padding: 0 10px;
    }
    
    .game-image {
        height: 120px;
    }
    
    .game-info {
        padding: 0.7rem;
    }
    
    .game-title {
        font-size: 0.85rem;
        height: 2rem;
        -webkit-line-clamp: 2;
    }
    
    .game-category {
        font-size: 0.7rem;
        margin-bottom: 0.5rem;
    }
    
    .game-stats {
        font-size: 0.7rem;
        margin-bottom: 0.5rem;
    }
    
    .price-section {
        margin-bottom: 0.7rem;
    }
    
    .original-price {
        font-size: 0.85rem;
    }
    
    .discount-price {
        font-size: 0.85rem;
    }
    
    .game-card .btn-gold {
        padding: 7px 10px;
        font-size: 0.75rem;
    }
}

/* Perbaikan Responsif Mobile */
@media (max-width: 360px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
        padding: 0 8px;
    }
    
    .game-image {
        height: 100px;
    }
    
    .game-info {
        padding: 0.6rem;
    }
    
    .game-title {
        font-size: 0.8rem;
        height: 1.8rem;
    }
    
    .game-category {
        font-size: 0.65rem;
    }
    
    .game-stats {
        font-size: 0.65rem;
    }
    
    .price-section {
        gap: 4px;
    }
    
    .original-price {
        font-size: 0.8rem;
    }
    
    .discount-price {
        font-size: 0.8rem;
    }
    
    .game-card .btn-gold {
        padding: 6px 8px;
        font-size: 0.7rem;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .game-image {
        height: 100px;
    }
}

/* Perbaikan Special case untuk jumlah game tertentu */
/* Ketika hanya ada 1 game */
.games-grid:has(.game-card:only-child) {
    justify-content: center;
}

@media (min-width: 769px) {
    .games-grid:has(.game-card:nth-child(1):nth-last-child(2)),
    .games-grid:has(.game-card:nth-child(2):nth-last-child(1)) {
        grid-template-columns: repeat(2, minmax(280px, 320px));
        justify-content: center;
    }
}

/* Ketika ada 3 game di desktop */
@media (min-width: 769px) {
    .games-grid:has(.game-card:nth-child(3):nth-last-child(1)) {
        grid-template-columns: repeat(3, minmax(280px, 1fr));
    }
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-gray);
    width: 100%;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-gold);
}

.empty-state h4 {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.empty-state p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

/* ===== BUTTONS ===== */
.btn-gold {
    background: linear-gradient(45deg, var(--primary-gold), var(--secondary-gold));
    color: var(--dark-bg);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-gold);
    border: 2px solid var(--primary-gold);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: var(--primary-gold);
    color: var(--dark-bg);
}

.btn-small {
    padding: 8px 12px;
    font-size: 0.8rem;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.btn-danger {
    background: var(--error-red);
    color: white;
}

.btn-danger:hover {
    background: #ff3742;
    transform: translateY(-1px);
}

.btn-warning {
    background: var(--warning-yellow);
    color: var(--dark-bg);
}

.btn-warning:hover {
    background: #fdc14e;
    transform: translateY(-1px);
}

.btn-success {
    background: var(--success-green);
    color: white;
}

.btn-success:hover {
    background: #00a885;
    transform: translateY(-1px);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--card-bg);
    padding: 3rem 0 1rem;
    margin-top: auto;
    border-top: 2px solid var(--primary-gold);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section h3 {
    color: var(--primary-gold);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.footer-section h4 {
    color: var(--primary-gold);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section a {
    color: var(--text-gray);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

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

.footer-section p {
    color: var(--text-gray);
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-gray);
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--card-bg);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    border: 2px solid var(--primary-gold);
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.close-modal {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    color: var(--primary-gold);
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: scale(1.1);
}

/* ===== LOADING & STATES ===== */
.loading {
    text-align: center;
    padding: 2rem;
    color: var(--primary-gold);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-gold);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

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

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-gray);
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-gold);
}

.empty-state h4 {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.empty-state p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.error-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--error-red);
    grid-column: 1 / -1;
}

.error-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.error-state h4 {
    color: var(--error-red);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

/* ===== FORM STYLES ===== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-gold);
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: var(--dark-bg);
    border: 1px solid var(--primary-gold);
    border-radius: 5px;
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-gold);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.form-group textarea {
    height: 100px;
    resize: vertical;
    font-family: inherit;
}

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

/* ===== ADMIN PANEL STYLES ===== */
.admin-panel {
    padding: 2rem 0;
    min-height: 80vh;
}

.admin-section {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.admin-section h3 {
    color: var(--primary-gold);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary-gold);
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.banner-management {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.banner-upload {
    background: var(--dark-bg);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.banner-upload h4 {
    color: var(--primary-gold);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.upload-area {
    border: 2px dashed var(--primary-gold);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    background: rgba(255, 215, 0, 0.05);
}

.upload-area:hover {
    border-color: var(--secondary-gold);
    background: rgba(255, 215, 0, 0.1);
}

.upload-area i {
    font-size: 3rem;
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

.upload-area p {
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.upload-note {
    font-size: 0.8rem;
    color: var(--text-gray);
    font-style: italic;
    margin-bottom: 1rem;
}

.url-input-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.url-preview {
    margin-top: 1.5rem;
    display: none;
}

.preview-image {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 2px solid var(--primary-gold);
    object-fit: cover;
}

.upload-form {
    background: var(--darker-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.url-preview-section {
    margin-top: 1.5rem;
}

.preview-container {
    background: var(--darker-bg);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    text-align: center;
}

.preview-title {
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.current-banners {
    background: var(--dark-bg);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.current-banners h4 {
    color: var(--primary-gold);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.banners-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 500px;
    overflow-y: auto;
}

.banner-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--darker-bg);
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
}

.banner-item:hover {
    border-color: var(--primary-gold);
    transform: translateY(-2px);
}

.banner-item img {
    width: 120px;
    height: 70px;
    object-fit: cover;
    border-radius: 5px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.banner-item-info {
    flex: 1;
}

.banner-item-info h5 {
    color: var(--text-light);
    margin-bottom: 0.3rem;
    font-size: 1rem;
}

.banner-item-info p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.banner-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
}

.banner-status {
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 0.7rem;
}

.status-active {
    background: var(--success-green);
    color: white;
}

.status-inactive {
    background: #636e72;
    color: white;
}

.banner-item-actions {
    display: flex;
    gap: 0.5rem;
}

/* ===== CUSTOM NOTIFICATIONS ===== */
.custom-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    z-index: 3000;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transform: translateX(400px);
    transition: all 0.3s ease;
    max-width: 300px;
    word-wrap: break-word;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.custom-notification.success {
    background: var(--success-green);
    color: white;
}

.custom-notification.error {
    background: var(--error-red);
    color: white;
}

.custom-notification.warning {
    background: var(--warning-yellow);
    color: var(--dark-bg);
}

.custom-notification.info {
    background: var(--info-blue);
    color: white;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Desktop Large */
@media (min-width: 1200px) {
    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
    
    .game-image {
        height: 300px;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .game-image {
        height: 300px;
    }
    
    .game-info {
        padding: 1rem;
    }
    
    .game-title {
        font-size: 1rem;
        height: 2.4rem;
    }
    
    .header .container {
        padding: 0 15px;
    }
    
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .banner-management {
        grid-template-columns: 1fr;
    }
}

/* Mobile - 2 kolom */
@media (max-width: 768px) {
    .header .container {
        padding: 0 15px;
    }
    
    /* Sembunyikan desktop nav di mobile */
    .desktop-nav {
        display: none !important;
    }
    
    /* Tampilkan mobile header */
    .mobile-header {
        display: flex;
    }
    
    /* Tampilkan hamburger menu */
    .hamburger-menu {
        display: flex;
    }
    
    /* Tampilkan menu button untuk sidebar */
    .menu-btn {
        display: flex;
    }
    
    /* Perkecil logo di mobile */
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .hamburger-menu.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .hamburger-menu.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger-menu.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .games-section {
        padding: 1.5rem 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 15px;
    }
    
    .game-card {
        border-radius: 10px;
    }
    
    .game-image {
        height: 300px;
    }
    
    .game-info {
        padding: 0.8rem;
    }
    
    .game-title {
        font-size: 0.9rem;
        height: 2.2rem;
        margin-bottom: 0.3rem;
        -webkit-line-clamp: 2;
    }
    
    .game-category {
        font-size: 0.75rem;
        margin-bottom: 0.6rem;
    }
    
    .game-stats {
        font-size: 0.75rem;
        margin-bottom: 0.6rem;
    }
    
    .game-stats span {
        gap: 0.2rem;
    }
    
    .game-stats i {
        font-size: 0.7rem;
    }
    
    .price-section {
        margin-bottom: 0.8rem;
        gap: 6px;
    }
    
    .original-price {
        font-size: 0.9rem;
    }
    
    .discount-price {
        font-size: 0.9rem;
    }
    
    .original-price.discounted {
        font-size: 0.75rem;
    }
    
    .game-card .btn-gold {
        padding: 8px 12px;
        font-size: 0.8rem;
        border-radius: 6px;
    }
    
    /* Filter Mobile */
    .filter-group {
        flex-direction: column;
        margin: 0 10px;
        padding: 1rem;
        gap: 1rem;
    }
    
    .price-filter {
        width: 100%;
        justify-content: space-between;
    }
    
    .price-filter input {
        width: 48%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .banner-item {
        flex-direction: column;
        text-align: center;
    }
    
    .banner-item-actions {
        justify-content: center;
        width: 100%;
    }
    
    .banner-item-info {
        text-align: center;
    }
    
    .banner-meta {
        justify-content: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .cart-counter {
        width: 18px;
        height: 18px;
        font-size: 0.65rem;
        top: -6px;
        right: -6px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0.8rem 0;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }
    
    .mobile-nav {
        top: 62px;
    }
    
    .hamburger-menu {
        padding: 6px;
    }
    
    .hamburger-line {
        width: 20px;
        height: 2px;
    }
    
    .banner-slider {
        height: 250px;
    }
    
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        padding: 0 10px;
    }
    
    .game-image {
        height: 300px;
    }
    
    .game-info {
        padding: 0.7rem;
    }
    
    .game-title {
        font-size: 0.85rem;
        height: 2rem;
        -webkit-line-clamp: 2;
    }
    
    .game-category {
        font-size: 0.7rem;
        margin-bottom: 0.5rem;
    }
    
    .game-stats {
        font-size: 0.7rem;
        margin-bottom: 0.5rem;
    }
    
    .price-section {
        margin-bottom: 0.7rem;
    }
    
    .original-price {
        font-size: 0.85rem;
    }
    
    .discount-price {
        font-size: 0.85rem;
    }
    
    .game-card .btn-gold {
        padding: 7px 10px;
        font-size: 0.75rem;
    }
    
    .game-card .btn-gold i {
        font-size: 0.7rem;
    }
    
    /* Filter Small Mobile */
    .filter-group {
        padding: 0.8rem;
        margin: 0 5px;
    }
    
    .price-filter {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .price-filter input {
        width: 100%;
    }
    
    /* Admin Small Mobile */
    .admin-section {
        padding: 1.5rem;
    }
    
    .banner-upload,
    .current-banners {
        padding: 1rem;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 1rem;
    }
}

@media (max-width: 360px) {
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .menu-btn,
    .hamburger-menu {
        width: 35px;
        height: 35px;
    }
    
    .banner-slider {
        height: 200px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
        padding: 0 8px;
    }
    
    .game-image {
        height: 300px;
    }
    
    .game-info {
        padding: 0.6rem;
    }
    
    .game-title {
        font-size: 0.8rem;
        height: 1.8rem;
    }
    
    .game-category {
        font-size: 0.65rem;
    }
    
    .game-stats {
        font-size: 0.65rem;
    }
    
    .price-section {
        gap: 4px;
    }
    
    .original-price {
        font-size: 0.8rem;
    }
    
    .discount-price {
        font-size: 0.8rem;
    }
    
    .game-card .btn-gold {
        padding: 6px 8px;
        font-size: 0.7rem;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .game-image {
        height: 100px;
    }
    
    .banner-slider {
        height: 300px;
    }
}

.banners-list::-webkit-scrollbar {
    width: 6px;
}

.banners-list::-webkit-scrollbar-track {
    background: var(--dark-bg);
    border-radius: 3px;
}

.banners-list::-webkit-scrollbar-thumb {
    background: var(--primary-gold);
    border-radius: 3px;
}

.banners-list::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-gold);
}

::selection {
    background: var(--primary-gold);
    color: var(--dark-bg);
}

::-moz-selection {
    background: var(--primary-gold);
    color: var(--dark-bg);
}

/* Agar Focus styles untuk accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid var(--primary-gold);
    outline-offset: 2px;
}

/* Reduced motion untuk users yang prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media print {
    .header,
    .footer,
    .filter-section,
    .btn-gold {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .game-card {
        break-inside: avoid;
        border: 1px solid #ccc !important;
    }
}

/* ===== API KEY MANAGEMENT STYLES ===== */
.api-key-management {
    background: var(--dark-bg);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    margin-bottom: 2rem;
}

.api-key-management h4 {
    color: var(--primary-gold);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.api-key-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.api-key-row {
    display: grid;
    grid-template-columns: 1fr 2fr auto;
    gap: 1rem;
    align-items: end;
}

.api-key-display {
    background: var(--darker-bg);
    padding: 10px 15px;
    border-radius: 5px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    word-break: break-all;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.api-key-display .key-value {
    color: var(--text-light);
}

.api-key-display .key-type {
    color: var(--text-gray);
    font-size: 0.8rem;
    background: rgba(255, 215, 0, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 10px;
}

.copy-btn {
    background: transparent;
    border: 1px solid var(--primary-gold);
    color: var(--primary-gold);
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.copy-btn:hover {
    background: var(--primary-gold);
    color: var(--dark-bg);
}

.api-key-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}