/* Reset & Base UI */
.order-page-wrapper {
    background: #f8fafc;
    position: relative;
    min-height: 100vh;
    padding-bottom: 40px;
    display: flow-root;
    flex: 1 0 auto;
}
.header-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 320px;
    background: #2f74f5;
    z-index: 1;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.order-title {
    font-family: 'Poppins', sans-serif !important;
    color: #ffffff !important;
    text-shadow: 0 4px 12px rgba(0,0,0,0.15);
    position: relative;
    z-index: 2;
}

/* Cards & Steps */
.step-card {
    background: #ffffff !important;
    border-radius: 24px !important;
    padding: 30px !important;
    margin-bottom: 30px !important;
    border: 1px solid rgba(13, 110, 253, 0.08) !important;
    box-shadow: 0 10px 40px rgba(47, 116, 245, 0.06) !important;
    position: relative !important;
    overflow: visible !important;
    display: block;
    z-index: 3;
}
.step-indicator {
    position: absolute !important;
    top: -16px !important;
    left: -16px !important;
    background: #2f74f5 !important;
    color: white !important;
    width: 45px !important;
    height: 45px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.25rem !important;
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3) !important;
    border: 4px solid #ffffff !important;
    z-index: 10 !important;
}
.step-indicator i {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin-top: 1px; /* Optical adjustment for fontawesome */
}
.step-indicator img {
    display: block;
    width: 22px !important;
    height: 22px !important;
    object-fit: contain;
    margin: auto;
}
.step-title {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    margin-bottom: 25px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}
.step-title i { color: #2f74f5; }

/* Nominal Selection UI */
.btn-pilih-cepat {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
    width: 100%;
    margin: 0;
}
.btn-pilih-cepat:hover {
    background: #e2e8f0;
    color: #1e293b;
}
.btn-pilih-cepat[aria-expanded="true"] {
    background: #2f74f5;
    color: white;
    border-color: #2f74f5;
}

.pilih-cepat-grid {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100%;
    margin: 0;
}
.nominal-item-card {
    background: #f8fafc !important;
    border: 2px solid #f1f5f9 !important;
    border-radius: 18px !important;
    padding: 15px 8px !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}
.nominal-item-card:hover {
    border-color: #2f74f5 !important;
    background: #ffffff !important;
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(47, 116, 245, 0.1);
}
.nominal-radio-input:checked + label .nominal-item-card {
    border-color: #2f74f5 !important;
    background: rgba(47, 116, 245, 0.04) !important;
    box-shadow: 0 10px 25px rgba(47, 116, 245, 0.12);
}

.nominal-icon-container {
    width: 44px;
    height: 44px;
    background: #2f74f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}
.nominal-icon-img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}
.nominal-amount {
    font-weight: 800;
    color: #1e293b;
    font-size: 1rem;
}
.nominal-label {
    font-size: 0.75rem;
    color: #475569;
    font-weight: 800;
    letter-spacing: 0.5px;
}

/* Active state sync */
.nominal-btn-wrapper.active .nominal-amount { color: #2f74f5; }

@media (max-width: 768px) {
    .pilih-cepat-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 8px !important; }
    .nominal-amount { font-size: 0.9rem !important; }
    .nominal-icon-container { width: 38px; height: 38px; }
    .nominal-icon-img { width: 22px; height: 22px; }
    .step-card { padding: 25px 18px !important; }
    .step-title { 
        font-size: 1.05rem !important; 
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }
    #btnAddAccountBtn {
        font-size: 0.7rem !important;
        padding: 6px 12px !important;
        white-space: nowrap;
    }
    .account-item {
        padding: 15px !important;
        margin-bottom: 20px !important;
    }
    .account-item label {
        font-size: 0.75rem !important;
    }
    .header-accent { height: 260px; }
    .order-page-wrapper { padding-bottom: 40px !important; }
    .step-indicator {
        top: -15px !important;
        left: -10px !important;
        width: 40px !important;
        height: 40px !important;
        font-size: 1.1rem !important;
    }
    .step-indicator img {
        width: 18px !important;
        height: 18px !important;
    }
}


/* Payment UI Refinement */
.payment-option-bar {
    background: #2f74f5;
    color: white;
    padding: 18px;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(47, 116, 245, 0.2);
}

/* ========== GAMEPASS INSTRUCTION PANEL ========== */
.gamepass-instruction-panel {
    background: #fdfae6;
    border-left: 4px solid #ebb400;
    border-radius: 8px;
    overflow: hidden;
}
.gamepass-panel-inner {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
}
.gamepass-panel-icon { display: none !important; }
.gamepass-panel-label {
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #b08a0e;
    text-transform: uppercase;
}
.gamepass-panel-amount {
    font-weight: 800;
    color: #333;
    line-height: 1.2;
}
.gamepass-panel-hint { display: none !important; }
.gamepass-panel-btn {
    display: flex;
    align-items: center;
    background: #ebb400;
    color: white !important;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: auto;
}

/* Desktop: Lebih besar */
@media (min-width: 769px) {
    .gamepass-panel-inner { padding: 14px 20px; gap: 12px; }
    .gamepass-panel-label { font-size: 10px; margin-bottom: 3px; }
    .gamepass-panel-amount { font-size: 1.5rem; }
    .gamepass-panel-btn { padding: 9px 18px; font-size: 13px; height: 40px; gap: 7px; border-radius: 8px; }
    .gamepass-panel-btn i { font-size: 12px; }
}

/* Mobile: Slim */
@media (max-width: 768px) {
    .gamepass-panel-inner { padding: 7px 12px; gap: 8px; }
    .gamepass-panel-label { font-size: 8.5px; }
    .gamepass-panel-amount { font-size: 1rem; }
    .gamepass-panel-btn { padding: 5px 12px; font-size: 10px; height: 30px; gap: 5px; }
    .gamepass-panel-btn i { font-size: 8px; }
}

@media (max-width: 768px) {
    footer.footer-container {
        padding-bottom: 100px !important; /* Retained mobile bottom padding for nav */
    }
}

/* ========== TAX SELECTOR PREMIUM ========== */
.tax-selector-wrapper {
    display: flex;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 18px;
    gap: 6px;
    margin-bottom: 5px;
}
.tax-selector-wrapper input {
    display: none;
}
.tax-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 10px;
    cursor: pointer;
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #64748b;
    border: 1px solid transparent;
}
.tax-item i {
    font-size: 1.1rem;
    opacity: 0.7;
}
.tax-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.tax-text .main {
    font-weight: 800;
    font-size: 0.9rem;
}
.tax-text .sub {
    font-size: 0.7rem;
    font-weight: 600;
    opacity: 0.8;
}

.tax-selector-wrapper input:checked + .tax-item {
    background: #ffffff;
    color: #2f74f5;
    box-shadow: 0 4px 15px rgba(47, 116, 245, 0.1);
    border-color: rgba(47, 116, 245, 0.05);
}
.tax-selector-wrapper input:checked + .tax-item i {
    opacity: 1;
    color: #2f74f5;
}

@media (max-width: 576px) {
    .tax-item {
        gap: 8px;
        padding: 10px 5px;
    }
    .tax-text .main { font-size: 0.8rem; }
    .tax-text .sub { font-size: 0.65rem; }
}

/* Modern Segmented Control Tabs (Half on blue, half on white) */
.category-tabs-container {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 10;
    margin-top: 45px; /* Push down to sit exactly in the middle of the blue-white transition */
    margin-bottom: -25px; /* Pull the content cards up to overlap with the bottom half of the tabs */
}

.category-tabs-scroll-outer {
    position: relative;
    display: inline-flex;
    align-items: center;
    max-width: 100%;
}

.scroll-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(47,116,245,0.15);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    font-size: 0.75rem;
    z-index: 12;
    cursor: pointer;
    transition: all 0.22s ease;
    opacity: 0;
    pointer-events: none;
}

.scroll-nav-btn.visible {
    opacity: 1;
    pointer-events: auto;
}

.scroll-nav-btn:hover {
    color: #2f74f5;
    background: #f8fafc;
    box-shadow: 0 4px 12px rgba(47, 116, 245, 0.15);
}

.scroll-nav-btn.left {
    left: -16px;
}

.scroll-nav-btn.right {
    right: -16px;
}

@media (max-width: 768px) {
    .scroll-nav-btn.left {
        left: 2px;
    }
    .scroll-nav-btn.right {
        right: 2px;
    }
}

.category-tabs-wrapper {
    background: #ffffff;
    border-radius: 20px;
    padding: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(47,116,245,0.14);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    max-width: 100%;
    /* CSS Scroll Snapping */
    scroll-snap-type: x mandatory;
}

.category-tabs-wrapper .tab-btn {
    background: transparent;
    border: none;
    outline: none;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 15px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    /* CSS Scroll Snapping */
    scroll-snap-align: center;
}

.category-tabs-wrapper .tab-btn:hover {
    color: #2f74f5;
    background: rgba(47, 116, 245, 0.05);
}

.category-tabs-wrapper .tab-btn.active {
    background: #2f74f5 !important;
    color: #ffffff !important;
    box-shadow: none !important; /* Removed blue glowing shadow */
}

/* Prevent millions text wrap inside nominal card */
.nominal-item-card .text-muted.small {
    white-space: nowrap !important;
    font-size: 0.72rem !important;
    letter-spacing: -0.2px;
}

/* Mobile responsive horizontal scrolling tabs */
@media (max-width: 768px) {
    .category-tabs-container {
        margin-top: 35px;
        margin-bottom: -20px;
        padding: 0 10px;
    }
    
    .category-tabs-wrapper {
        display: flex;
        overflow-x: auto;
        border-radius: 14px;
        width: 100%;
        padding: 5px;
        gap: 2px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        /* CSS Scroll Snapping on Mobile */
        scroll-snap-type: x mandatory;
    }
    
    .category-tabs-wrapper::-webkit-scrollbar {
        display: none;
    }
    
    .category-tabs-wrapper .tab-btn {
        flex-shrink: 0;
        padding: 9px 18px;
        font-size: 0.82rem;
        border-radius: 10px;
        /* CSS Scroll Snapping on Mobile */
        scroll-snap-align: center;
    }
}

