* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: #020224;
    color: #fff;
}

.menu-container {
    position: fixed;
    width: 100%;
    height: 15%;
    background-color: #030116;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    z-index: 1000;
}

.menu-container h1 {
    font-size: 1.5rem;
    color: #6366f1;
    
}

nav {
    display: flex;
    gap: 15px;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: #d8dbfa;
    font-weight: bold;
}

nav a:hover {
    color: #ff6f61;
}

.topup-btn {
    padding: 6px 12px;
    border-radius: 20px;
    border: none;
    background: linear-gradient(135deg, #6366f1, #22d3ee);
    color: #fff;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    font-weight: bold;
}

.hamburger span {
    height: 3px;
    width: 25px;
    background: #bababc;
    margin-bottom: 5px;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    nav {
        position: fixed;
        top: 90px;
        right: -100%;
        flex-direction: column;
        background: #000016;
        width: 200px;
        height: 100vh;
        padding: 20px;
        gap: 25px;
        transition: right 0.3s ease-in-out;
    }
    nav.active { right: 0; }
}

.product-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    padding: 90px 20px 20px;
}

.product {
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 12px;
    transition: transform 0.3s;
}

.product:hover {
    transform: translateY(-6px);
}

.product img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: contain;
    margin-bottom: 10px;
}

.price {
    color: #4ade80;
    font-weight: bold;
    margin: 6px 0;
}

.availability {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}

.light {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: blink 1.2s infinite;
}

.green { background: #22c55e; }
.red { background: #ef4444; }

@keyframes blink { 50% { opacity: 0.3; } }

@media (max-width: 600px) {
    .product-container {
        grid-template-columns: repeat(2, 1fr);
    }
}


.shop-btn {
    width: 100%;
    margin-top: 10px;
    padding: 11px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1, #22d3ee);
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.shop-btn:disabled {
    background: gray;
    cursor: not-allowed;
}

.cart-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    display: none;
    justify-content: center;
    align-items: center;
}

.cart-box {
    background: #111827;
    width: 90%;
    max-width: 420px;
    padding: 25px;
    border-radius: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.balance-toon {
    display: inline-block;
    background: linear-gradient(135deg, #ff6f61, #ffb347);
    color: white;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 20px;
    box-shadow: 0 0 8px rgba(255,182,123,0.7);
    font-size: 14px;
    margin-left: 6px;
    transition: transform 0.2s;
}

.balance-toon:hover {
    transform: scale(1.1);
}