/* ==========================================================================
   VORTEX — PROFESSIONAL TOP-UP & CHECKOUT STYLESHEET
   ========================================================================== */

.detail-header-section {
    padding-top: 88px;
    padding-bottom: 1.5rem;
}

.game-banner-card {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    display: flex;
    align-items: center;
    gap: 1.75rem;
    box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
    .game-banner-card {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
        gap: 1rem;
    }
}

.game-banner-thumb {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

.game-banner-details {
    flex-grow: 1;
}

.game-banner-title {
    font-size: 2rem;
    margin-bottom: 0.25rem;
    color: #FFFFFF;
}

.game-banner-tags {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .game-banner-tags {
        justify-content: center;
    }
}

.badge-tag {
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    font-weight: 600;
}

.tag-instant {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #10B981;
}

.tag-official {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.35);
    color: #818CF8;
}

.tag-safe {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #F59E0B;
}

.game-server-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: #9CA3AF;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 6px #10B981;
}

/* ==========================================================================
   ORDER FLOW STEPS
   ========================================================================== */
.order-flow-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin: 1.5rem 0 4rem;
}

@media (max-width: 992px) {
    .order-flow-layout {
        grid-template-columns: 1fr;
    }
}

.step-box {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.step-box-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.step-pill {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #6366F1;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
}

.step-box-title {
    font-size: 1.2rem;
    color: #FFFFFF;
    font-weight: 700;
}

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

@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #E5E7EB;
}

.form-input {
    width: 100%;
    padding: 0.75rem 0.95rem;
    background: #0A0E17;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: #FFFFFF;
    font-size: 0.92rem;
    outline: none;
    transition: all 0.2s ease;
}

.form-input:focus {
    border-color: #6366F1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.input-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.verify-btn {
    padding: 0.7rem 1.1rem;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #818CF8;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    margin-top: 1.25rem;
    transition: all 0.2s ease;
}

.verify-btn:hover {
    background: #6366F1;
    color: #FFFFFF;
}

.player-lookup-result {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #FFFFFF;
    display: none;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.88rem;
}

.player-lookup-result.visible {
    display: flex;
}

/* Diamonds & Packages Grid */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
    gap: 0.75rem;
}

@media (max-width: 480px) {
    .packages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.package-card {
    background: #0A0E17;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 1rem 0.65rem;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.package-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    background: #141C2E;
}

.package-card.selected {
    border-color: #6366F1;
    background: rgba(99, 102, 241, 0.12);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.3);
}

.package-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: #FF5722;
    color: #FFFFFF;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: var(--radius-sm) 0 6px 0;
    text-transform: uppercase;
}

.package-icon {
    font-size: 1.3rem;
    color: #818CF8;
    margin-top: 0.2rem;
}

.package-amount {
    font-size: 0.95rem;
    font-weight: 700;
    color: #FFFFFF;
}

.package-bonus {
    font-size: 0.72rem;
    color: #10B981;
    font-weight: 600;
}

.package-price {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 800;
    color: #818CF8;
    margin-top: auto;
}

/* Payment Gateway Grid */
.payments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.75rem;
}

.payment-card {
    background: #0A0E17;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 0.95rem 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.payment-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    background: #141C2E;
}

.payment-card.selected {
    border-color: #6366F1;
    background: rgba(99, 102, 241, 0.12);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.3);
}

.payment-card-logo {
    font-size: 1.4rem;
}

.payment-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #FFFFFF;
}

.payment-fee {
    font-size: 0.7rem;
    color: #10B981;
}

/* ==========================================================================
   ORDER SUMMARY SIDEBAR
   ========================================================================== */
.order-sidebar {
    position: sticky;
    top: 88px;
}

.summary-card {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.summary-title {
    font-size: 1.25rem;
    margin-bottom: 1.15rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: #FFFFFF;
}

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.summary-label {
    color: var(--text-muted);
}

.summary-val {
    font-weight: 600;
    color: #FFFFFF;
}

.summary-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 0.85rem 0;
}

.summary-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: #818CF8;
    margin-bottom: 1.25rem;
}

.promo-box {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.promo-input {
    flex-grow: 1;
    padding: 0.6rem 0.75rem;
    background: #0A0E17;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: #FFFFFF;
    font-size: 0.88rem;
    text-transform: uppercase;
}

.promo-btn {
    padding: 0.6rem 0.9rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
    font-weight: 600;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    transition: all 0.2s ease;
}

.promo-btn:hover {
    background: #6366F1;
    border-color: #6366F1;
}

.promo-message {
    font-size: 0.78rem;
    margin-top: -0.75rem;
    margin-bottom: 0.85rem;
    color: #10B981;
    display: none;
}

.promo-message.active {
    display: block;
}

.btn-checkout-now {
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    color: #FFFFFF;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-checkout-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

/* Floating Bottom Checkout Bar (Mobile) */
.mobile-checkout-bar {
    position: fixed;
    bottom: 62px;
    left: 0;
    width: 100%;
    background: #111827;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 998;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.4);
}

@media (min-width: 992px) {
    .mobile-checkout-bar {
        display: none;
    }
}

.mobile-checkout-info {
    display: flex;
    flex-direction: column;
}

.mobile-checkout-total-label {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.mobile-checkout-total-price {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: #818CF8;
    line-height: 1;
}

.btn-mobile-checkout {
    padding: 0.6rem 1.35rem;
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    color: #FFFFFF;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius-md);
}

/* Checkout Modal */
.checkout-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    z-index: 10005;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.checkout-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.checkout-modal-card {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 480px;
    padding: 1.75rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10006;
}

.modal-header {
    text-align: center;
    margin-bottom: 1.25rem;
}

.modal-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.15);
    color: #818CF8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 0.75rem;
}

.modal-title {
    font-size: 1.4rem;
    color: #FFFFFF;
}

.modal-table {
    background: #0A0E17;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 0.85rem;
    margin-bottom: 1.25rem;
}

.modal-table-row {
    display: flex;
    justify-content: space-between;
    padding: 0.35rem 0;
    font-size: 0.88rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.modal-table-row:last-child {
    border-bottom: none;
}

.modal-table-row span:first-child {
    color: var(--text-muted);
}

.modal-table-row span:last-child {
    color: #FFFFFF;
    font-weight: 600;
}

.modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.btn-modal-cancel {
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
}

.btn-modal-confirm {
    padding: 0.75rem;
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    color: #FFFFFF;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius-md);
}
