/* ==========================================================================
   NEON FLUX — Top-Up Game Detail Page Styles
   Specific styles for game details, nominal cards, and payment layouts
   ========================================================================== */

.hero-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 400px;
    background: linear-gradient(to bottom, var(--hero-overlay), transparent);
    z-index: -1;
    pointer-events: none;
}

/* --- Glass Input --- */
.glass-input {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    transition: all 0.3s ease;
}

.dark .glass-input {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--border-color);
    color: #ffffff;
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
    outline: none;
}

/* --- Radio & Method Cards --- */
.radio-card, .method-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-panel-light {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.dark .glass-panel-light {
    background: var(--surface-color);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    box-shadow: none;
}

.card-hover:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 20px 25px -5px rgba(0, 240, 255, 0.1), 0 10px 10px -5px rgba(0, 240, 255, 0.04);
}

.dark .card-hover:hover {
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

/* --- Promo Banner Glow --- */
.promo-glow {
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.05);
}

.dark .promo-glow {
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.15);
}

/* --- Section Locking --- */
.is-locked {
    cursor: not-allowed !important;
}

.is-locked > * {
    pointer-events: none !important;
}

/* Allow interaction with category tabs in nominal section even if locked if needed */
/* But the JS logic specifically allows .tab-btn, .category-tab etc. */
/* So we need to override pointer-events for those if we want them clickable */
.is-locked .category-tab, 
.is-locked .tab-btn, 
.is-locked .jenis-btn,
.is-locked #jenis-scroll-container,
.is-locked [role="tab"],
.is-locked .group\/nav button {
    pointer-events: auto !important;
}

.glass-panel.is-locked, .glass-panel-mobile.is-locked {
    /* filter: grayscale(0.2) brightness(0.9); */ /* Dihapus agar tetap terang sesuai permintaan */
}


/* --- Horizontal & Vertical Steppers --- */
.step-item {
    position: relative;
    padding-left: 2.5rem;
}

.step-item::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 1.5rem;
    bottom: -1.5rem;
    width: 2px;
    background: #e2e8f0;
    z-index: 0;
}

.step-item:last-child::before {
    display: none;
}

.step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 6px;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    box-shadow: 0 4px 10px rgba(0, 240, 255, 0.2);
}

/* --- Receipt Style Card --- */
.receipt-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px dashed #cbd5e1;
    position: relative;
    overflow: hidden;
}

.receipt-card::before, .receipt-card::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #f8fafc;
    top: 50%;
    transform: translateY(-50%);
}

.receipt-card::before { left: -10px; }
.receipt-card::after { right: -10px; }

/* --- Sticky Bottom Bar --- */
.sticky-action-bar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

.sticky-action-bar.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.dark .sticky-action-bar {
    background: rgba(15, 23, 42, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Aggressive Mobile UI Tightening (Targeting Mobile & Small Tablets) */
@media (max-width: 768px) {
    /* Main Layout Spacing */
    .glass-panel, .glass-panel-mobile {
        padding: 1rem !important; /* Reduced from p-6/p-8 */
        border-radius: 1.5rem !important;
    }

    /* Section Headers */
    h2.text-xl {
        font-size: 0.95rem !important;
        line-height: 1.25 !important;
    }

    h3.text-sm {
        font-size: 0.7rem !important;
        margin-bottom: 0.5rem !important;
    }

    /* Step Icons */
    .w-10.h-10.rounded-full, 
    .w-10.h-10.rounded-full.bg-primary\/20 {
        width: 1.5rem !important;
        height: 1.5rem !important;
        font-size: 0.75rem !important;
        min-width: 1.5rem !important;
    }

    /* General Labels & Text */
    label.text-sm, .text-sm {
        font-size: 0.7rem !important; /* approx 11px */
    }

    .text-xs, p.text-xs {
        font-size: 0.65rem !important; /* approx 10px */
        line-height: 1.3 !important;
    }

    /* Form Inputs */
    .glass-input {
        padding: 0.5rem 0.65rem !important;
        font-size: 0.75rem !important;
        border-radius: 0.75rem !important;
        height: auto !important;
    }

    /* Product Grid (3-Column Scaling) */
    .grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 0.4rem !important;
    }
    
    .grid-cols-3 .service-item label {
        padding: 0.4rem 0.3rem !important;
        border-radius: 0.75rem !important;
        min-height: 5rem !important; /* Consistent height */
    }
    
    /* Product Name */
    .grid-cols-3 .service-item .text-\[11px\],
    .text-\[11px\] {
        font-size: 8px !important;
        font-weight: 700 !important;
        line-height: 1.1 !important;
        min-height: 1.25rem !important;
        margin-bottom: 0.2rem !important;
    }
    
    /* Product Price (The badge) */
    .grid-cols-3 .service-item .text-\[10px\],
    .text-\[10px\] {
        font-size: 7.5px !important;
        padding: 0.15rem 0.25rem !important;
    }

    /* Payment Methods (2-Column Scaling) */
    #payment-section .grid-cols-2 {
        gap: 0.5rem !important;
    }

    .glass-panel-light.p-3 {
        padding: 0.4rem !important;
        min-height: 3.5rem !important;
    }

    .glass-panel-light img {
        width: 1.75rem !important;
        height: 1.75rem !important;
    }

    .glass-panel-light .font-bold.text-sm {
        font-size: 10px !important;
        line-height: 1.1 !important;
    }

    .payment-total {
        font-size: 10px !important;
        padding: 0.1rem 0.3rem !important;
    }

    /* Order Summary / Sidebar */
    #summary-section {
        padding: 1rem !important;
    }

    #summary-section h3.text-xl {
        font-size: 0.95rem !important;
        margin-bottom: 0.75rem !important;
        padding-bottom: 0.5rem !important;
    }

    #summary-section .space-y-4 {
        gap: 0.35rem !important;
    }

    #summary-total {
        font-size: 1.15rem !important;
    }

    /* Gaps in steps */
    .space-y-6 {
        gap: 1rem !important;
    }
    
    .mb-6 {
        margin-bottom: 0.75rem !important;
    }

    /* Helper spacing */
    .gap-6 {
        gap: 0.75rem !important;
    }
    
    .gap-4 {
        gap: 0.5rem !important;
    }
}

.dark .sticky-action-bar {
    background: rgba(15, 23, 42, 0.9);
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* --- Nominals Grid Adjustments --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

/* --- Selection Animations --- */
@keyframes select-bounce {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

.radio-card:checked + label {
    animation: select-bounce 0.3s ease-out;
    border-color: var(--primary);
    background: rgba(0, 240, 255, 0.05);
}

/* --- Section Animations --- */
.fade-in-section {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}
