  
        
/* * ===================================================================
* STYLES ARE GOOD
* ===================================================================
*/
        :root {
            --primary: #4361ee;
            --primary-light: #4895ef;
            --primary-dark: #3a0ca3;
            --secondary: #3f37c9;
            --accent: #f72585;
            --accent-light: #ff3a8d;
            --dark: #1a1a2e;
            --darker: #12121a;
            --light: #f8f9fa;
            --lighter: #ffffff;
            --gray: #6c757d;
            --gray-light: #e9ecef;
            --success: #4cc9f0;
            --warning: #f8961e;
            --danger: #ef233c;
            --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            --shadow-md: 0 6px 10px rgba(0, 0, 0, 0.12);
            --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.15);
            --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.2);
            --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
            --transition-fast: all 0.15s ease-out;
            --border-radius: 12px;
            --border-radius-sm: 8px;
            --border-radius-xs: 4px;
        }
        
        *, *::before, *::after {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
        
        html {
            scroll-behavior: smooth;
        }
        
        body, html {
            font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
            background-color: var(--light);
            color: var(--dark);
            min-height: 100vh;
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            overflow-x: hidden;
        }
        
        a {
            text-decoration: none;
            color: inherit;
            transition: var(--transition-fast);
        }
        
        img {
            max-width: 100%;
            display: block;
            height: auto;
        }
        
        button, input, textarea, select {
            font: inherit;
            outline: none;
        }
        
        h1, h2, h3, h4, h5, h6 {
            line-height: 1.2;
            font-weight: 700;
            color: var(--darker);
        }

        /* NEW: Basic card style */
        .card {
            background: white;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
            padding: 1.5rem;
            margin-bottom: 1rem;
        }
        
        /* NEW: Header styles */
        .site-header {
            background: var(--darker);
            color: var(--lighter);
            padding: 1rem 1.5rem;
            text-align: center;
            box-shadow: var(--shadow-md);
        }
        .site-title {
            color: var(--lighter);
            font-size: 1.5rem;
            margin: 0;
        }
        
        /* UPDATED: Layout styles */
        .main-container {
            width: 100%;
            max-width: 1400px; /* Wider for this layout */
            margin: 0 auto;
            padding: 1.5rem 15px;
            display: grid;
            gap: 1.5rem;
        }

        @media (min-width: 992px) {
            .main-container {
                /* 2-column layout on desktop */
                grid-template-columns: 2fr 1fr;
            }
        }
        /* Center text only on screens smaller than 768px (mobile) */
@media (max-width: 768px) {
    .mobile-center {
        text-align: center;
        color: red;
        font-weight: 400;
    }
}
        
        .sidebar {
            /* This makes the sidebar sticky on desktop */
            position: sticky;
            top: 20px;
            /* Wrap order form content in a card for better appearance */
            background: white;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
            padding: 1.5rem;
        }
        
        @media (max-width: 991px) {
            /* On mobile, sidebar is just part of the flow */
            .sidebar {
                position: static;
                top: auto;
                margin-top: 1.5rem; /* Add some space */
            }
        }

        /* Styles for the banner (these existed but weren't used) */
        .game-banner {
            width: 100%;
            position: relative;
            overflow: hidden;
            border-radius: var(--border-radius); /* Rounded corners for the banner */
            box-shadow: var(--shadow-md);
        }
        .banner-image {
            width: 100%;
            height: auto;
        }
        .game-meta {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            display: flex;
            justify-content: space-around;
            align-items: center;
            background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
            color: var(--lighter);
            padding: 1rem;
            border-bottom-left-radius: var(--border-radius);
            border-bottom-right-radius: var(--border-radius);
        }
        .meta-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.9rem;
            color: var(--lighter);
            text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
        }
        .meta-item i {
            color: var(--success);
        }
        
        /* UPDATED: Renamed .section-title to .section-header */
        .section-header {
            font-size: 1.5rem;
            color: var(--darker);
            position: relative;
            padding-bottom: 0.75rem;
            margin-bottom: 1.5rem;
            font-weight: 700;
            border-bottom: 1px solid var(--gray-light);
        }
        .section-header::after {
            content: '';
            position: absolute;
            bottom: -1px; /* Sits on top of the border */
            left: 0;
            width: 70px;
            height: 3px;
            background: linear-gradient(90deg, var(--primary), var(--accent));
            border-radius: 2px;
        }

        /* UPDATED: Renamed .diamond-grid to .products-grid */
        .products-grid {
            display: grid;
            gap: 1rem;
            grid-template-columns: repeat(3, 1fr);
        }
        
        /* UPDATED: Renamed .diamond-card to .product-card */
        .product-card {
            background: white;
            border-radius: var(--border-radius-sm);
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: var(--transition);
            border: 2px solid transparent;
            position: relative;
            cursor: pointer;
        }
        .product-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-lg);
            border-color: rgba(67, 97, 238, 0.5);
        }
        .product-card.selected {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
            transform: scale(1.02);
        }
        
        /* NEW: Out of stock style */
        .product-card.out-of-stock {
            opacity: 0.6;
            cursor: not-allowed;
            background-color: var(--gray-light);
        }
        .product-card.out-of-stock:hover {
            transform: none;
            box-shadow: var(--shadow);
            border-color: transparent;
        }
        .product-card.out-of-stock::after {
            content: 'Out of Stock';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(0,0,0,0.6);
            color: white;
            padding: 0.25rem 0.5rem;
            border-radius: var(--border-radius-xs);
            font-size: 0.7rem;
            font-weight: 700;
            z-index: 2;
        }
        
        /* UPDATED: Renamed .diamond-img to .product-img */
        .product-img {
            width: 100%;
            height: 80px;
            object-fit: contain;
            background: linear-gradient(135deg, rgba(67, 97, 238, 0.05) 0%, rgba(72, 149, 239, 0.05) 100%);
            padding: 0.75rem;
            transition: var(--transition);
        }
        .product-card:hover .product-img {
            transform: scale(1.05);
        }
        
        /* UPDATED: Renamed .diamond-content to .product-content */
        .product-content {
            padding: 0.75rem;
            text-align: center;
        }
        
        /* UPDATED: Renamed .diamond-title to .product-title */
        .product-title {
            font-size: 0.9rem;
            font-weight: 600;
            margin-bottom: 0.25rem;
            color: var(--dark);
            transition: var(--transition);
            line-height: 1.3;
        }
        .product-card:hover .product-title {
            color: var(--primary);
        }
        
        /* UPDATED: Renamed .diamond-price to .product-price */
        .product-price {
            font-size: 1rem;
            font-weight: 700;
            color: var(--accent);
        }
        
        /* UPDATED: Renamed .order-form to .order-form-section */
        /* .order-form-section is styled by the .card class */
        
        .form-group {
            margin-bottom: 1rem;
            position: relative;
        }
        
        .id-zone-group {
            display: flex;
            gap: 1rem;
        }
        .id-zone-group .form-group {
            flex: 1; /* Each input takes equal space */
            margin-bottom: 0;
        }
        
        .form-label {
            display: block;
            margin-bottom: 0.25rem;
            font-weight: 600;
            color: var(--dark);
            font-size: 0.9rem;
        }
        
        .form-control {
            width: 100%;
            padding: 0.6rem 0.75rem;
            border: 1px solid #ddd;
            border-radius: var(--border-radius-sm);
            font-size: 0.9rem;
            transition: var(--transition);
            background-color: var(--light);
        }
        .form-control:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
            background-color: white;
        }
        
        /* *** FIX: ADDED STYLES FOR INPUT ICONS *** */
        .input-icon {
            position: absolute;
            top: 36px; /* Position relative to top of form-group */
            right: 12px;
            color: var(--gray);
            pointer-events: none;
            font-size: 0.9rem;
            transition: var(--transition-fast);
        }
        .form-control:focus + .input-icon {
            color: var(--primary);
        }

        /* NEW: Wallet Balance Display */
        .wallet-balance-display {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: linear-gradient(90deg, var(--primary), var(--primary-light));
            color: white;
            padding: 0.75rem 1rem;
            border-radius: var(--border-radius-sm);
            margin-bottom: 1.5rem;
            box-shadow: 0 4px 10px rgba(67, 97, 238, 0.3);
        }
        .wallet-balance-display i {
            font-size: 1.2rem;
            margin-right: 0.5rem;
        }
        .wallet-balance-display span {
            font-weight: 500;
            font-size: 0.9rem;
        }
        .wallet-balance-display strong {
            font-weight: 700;
            font-size: 1.1rem;
            color: white;
        }
        
        /* *** FIX: ADDED STYLES FOR TOTAL/BUY BUTTON *** */
        .price-calculator {
            display: flex;
            flex-direction: column; /* Stack vertically */
            gap: 0.5rem;
            align-items: stretch;
            padding: 1rem;
            background: var(--gray-light);
            border-radius: var(--border-radius-sm);
            margin-top: 1.5rem; /* Space from form */
            margin-bottom: 1.5rem;
        }
        .total-price-label {
            font-size: 0.9rem;
            font-weight: 600;
            color: var(--dark);
        }
        #selected-price {
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--darker);
            text-align: left;
            line-height: 1.3;
        }

        /* NEW: Container for payment buttons */
        .payment-options {
            display: grid;
            /* UPDATED: Grid layout for payment options */
            grid-template-columns: repeat(2, 1fr);
            gap: 0.75rem;
        }

        .btn-buy {
            /* Sourced from .modal-button-primary */
            display: block;
            width: 100%;
            padding: 0.8rem 1.2rem;
            border-radius: var(--border-radius-sm);
            font-weight: 700;
            font-size: 1rem;
            text-align: center;
            cursor: pointer;
            transition: var(--transition);
            background: linear-gradient(90deg, var(--success), #48bfe3);
            color: white;
            border: none;
            box-shadow: 0 4px 15px rgba(76, 201, 240, 0.3);
        }
        .btn-buy:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(76, 201, 240, 0.4);
        }
        .btn-buy i {
            margin-right: 0.5rem;
        }

        /* NEW: Styles for Wallet button */
        .btn-buy.wallet {
            background: linear-gradient(90deg, var(--primary), var(--secondary));
            box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
        }
        .btn-buy.wallet:hover {
            box-shadow: 0 8px 25px rgba(67, 97, 238, 0.4);
        }

        /* NEW: Styles for disabled button */
        .btn-buy.disabled {
            background: var(--gray-light);
            color: var(--gray);
            box-shadow: none;
            cursor: not-allowed;
            text-align: center;
        }
         .btn-buy.disabled:hover {
             transform: none;
         }

        /* UPDATED: Renamed .payment-methods to .payment-buttons */
        /* .payment-buttons is now .payment-options */
        
        .payment-option {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.5rem;
            padding: 0.75rem;
            border: 2px solid var(--gray-light);
            border-radius: var(--border-radius-sm);
            cursor: pointer;
            transition: var(--transition);
        }
        .payment-option:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-md);
            border-color: var(--primary);
        }
        .payment-option:hover span {
             color: var(--primary);
         }
        .payment-option.selected { /* This class is not used, but good to have */
            border-color: var(--primary);
            box-shadow: var(--shadow-md);
            background-color: rgba(67, 97, 238, 0.05);
            transform: translateY(-4px);
        }
        .payment-option.selected span {
             color: var(--primary);
         }

        /* NEW: Disabled state for payment-option */
        .payment-option.disabled {
            opacity: 0.6;
            cursor: not-allowed;
            background-color: var(--gray-light);
        }
        .payment-option.disabled:hover, .payment-option.disabled.selected {
            transform: none;
            box-shadow: none;
            border-color: var(--gray-light);
            background-color: var(--gray-light);
        }
        .payment-option.disabled:hover span, .payment-option.disabled.selected span {
            color: var(--gray);
        }


        .payment-icon {
            width: 50px;
            height: 50px;
            object-fit: contain;
        }

        .payment-option span {
            font-size: 0.8rem;
            font-weight: 600;
            color: var(--gray);
            transition: var(--transition-fast);
            text-align: center;
        }
        
        /* UPDATED: Renamed .modal to .modal-overlay */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 2000;
            transition: var(--transition);
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
            /* display: none; is handled by JS */
        }
        
        .modal-content {
            background: white;
            border-radius: var(--border-radius);
            width: 90%;
            max-width: 500px;
            max-height: 90vh;
            overflow-y: auto;
            padding: 2rem 1.5rem 1.5rem 1.5rem;
            position: relative;
            box-shadow: var(--shadow-xl);
            transform: scale(0.9);
            transition: var(--transition);
        }
        .modal-overlay[style*="display: flex;"] .modal-content {
             transform: scale(1); /* Animate in */
         }
        
        .modal-title {
            font-size: 1.5rem;
            text-align: center;
            margin-bottom: 0.5rem;
            color: var(--primary);
        }
        .modal-text {
            text-align: center;
            color: var(--gray);
            margin-bottom: 1.5rem;
            font-size: 0.9rem;
        }
        .balance-info {
            display: flex;
            justify-content: space-between;
            font-size: 1rem;
            padding: 0.75rem 0;
            border-bottom: 1px solid var(--gray-light);
        }
        .balance-info span { color: var(--gray); }
        .balance-info strong { color: var(--darker); font-weight: 700; }
        .balance-info:last-of-type { border-bottom: none; }
        
        .modal-actions {
            display: flex;
            justify-content: flex-end;
            gap: 0.75rem;
            margin-top: 1.5rem;
        }
        .modal-button-secondary, .modal-button-primary {
            padding: 0.6rem 1.2rem;
            border-radius: var(--border-radius-sm);
            font-weight: 600;
            text-align: center;
            cursor: pointer;
            transition: var(--transition);
            border: 1px solid var(--gray-light);
            background: var(--light);
        }
        .modal-button-primary {
            background: linear-gradient(90deg, var(--success), #48bfe3);
            color: white;
            border: none;
            box-shadow: 0 4px 15px rgba(76, 201, 240, 0.3);
        }
        .modal-button-primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(76, 201, 240, 0.4);
        }
        
        /* Styles for new confirmation modal */
        .confirmation-details {
            text-align: left;
            margin-bottom: 1.5rem;
        }
        .confirmation-details .detail-item {
            font-size: 1rem;
            color: var(--dark);
            margin-bottom: 0.75rem;
            border-bottom: 1px solid var(--gray-light);
            padding-bottom: 0.75rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .confirmation-details .detail-item:last-child { border-bottom: none; }
        .confirmation-details .detail-item span {
            color: var(--gray);
            margin-right: 1rem;
            font-weight: 500;
        }
         .confirmation-details .detail-item strong {
             font-weight: 600;
             text-align: right;
         }
        .confirmation-details .detail-item.price strong {
            font-weight: 700;
            color: var(--accent);
            font-size: 1.2rem;
        }

        /* UPDATED: Renamed .mobile-footer-nav to .mobile-footer */
        .mobile-footer {
            display: flex; 
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            background-color: var(--lighter);
            box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
            z-index: 1200;
            justify-content: space-around;
            padding: 5px 0;
            padding-bottom: calc(5px + env(safe-area-inset-bottom));
        }
        
        /* UPDATED: Renamed .footer-link to .footer-item */
        .footer-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: var(--gray);
            font-size: 0.7rem;
            padding: 5px 10px;
            flex-grow: 1;
        }
        .footer-item i {
            font-size: 1.2rem;
            margin-bottom: 3px;
        }
        .footer-item:hover, .footer-item.active {
            color: var(--primary);
        }
        
        @media (max-width: 768px) {
            .products-grid { grid-template-columns: repeat(3, 1fr); }
            body { padding-bottom: 70px; } /* Increased padding for footer */
            .game-meta { justify-content: space-between; padding: 0.75rem; }
            .meta-item { gap: 0.4rem; font-size: 0.75rem; }
            .id-zone-group { flex-direction: column; gap: 0; }
            .id-zone-group .form-group { margin-bottom: 1rem; }
            .input-icon { top: 36px; } /* Keep icon aligned */
        }
        
        @media (max-width: 480px) {
            .products-grid {
                grid-template-columns: repeat(3, 1fr); 
                gap: 0.5rem;
            }
            .product-card {
                border-radius: 6px;
            }
            .product-card.selected {
                border-width: 1.5px;
                box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.2);
            }
            .product-img {
                height: 40px;
                padding: 0.25rem;
            }
            .product-content {
                padding: 0.5rem;
            }
            .product-title {
                font-size: 0.7rem;
                font-weight: 600;
                line-height: 1.2;
                margin-bottom: 2px;
            }
            .product-price {
                font-size: 0.75rem;
                margin: 0;
            }
            .card { padding: 1rem; }
            .sidebar { padding: 1rem; }
            .form-control, .btn-submit { font-size: 0.85rem; }
            .modal-content { padding: 1.5rem 1rem; }
            
            /* UPDATED: Make payment grid 2-col on small screens */
            .payment-options {
                grid-template-columns: repeat(2, 1fr);
                gap: 0.5rem;
            }
            .payment-option {
                padding: 0.5rem;
            }
            .payment-icon {
                width: 35px;
                height: 35px;
            }
            .payment-option span {
                font-size: 0.7rem;
            }
        }
        
        .spinner {
            display: inline-block;
            width: 1em; /* Relative to font size */
            height: 1em;
            border: 3px solid rgba(0, 0, 0, 0.2); /* Darker border */
            /* FIX: Changed color to --primary to be visible on white buttons */
            border-top-color: var(--primary); 
            border-radius: 50%; /* Added for completeness */
            animation: spin 1s ease-in-out infinite;
            margin-right: 8px;
            vertical-align: middle;
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        /* NEW: Added missing Toast notification styles */
        .toast {
            position: fixed;
            top: 20px;
            right: 20px;
            background-color: var(--darker);
            color: white;
            padding: 1rem 1.5rem;
            border-radius: var(--border-radius-sm);
            box-shadow: var(--shadow-lg);
            z-index: 9999;
            opacity: 0;
            transform: translateX(100%);
            transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
            font-weight: 600;
        }
        .toast.show {
            opacity: 1;
            transform: translateX(0);
        }
        .toast i {
            margin-right: 0.5rem;
        }
        .toast.success {
            background-color: #00b894; /* Green */
        }
        .toast.error {
            background-color: var(--danger); /* Red */
        }
        .toast.info {
            background-color: var(--primary-light); /* Blue */
        }
        

   