    /* Checkout Overlay & Box */
    #checkout-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(5, 5, 15, 0.85);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        z-index: 99999;
        align-items: center;
        justify-content: center;
        padding: 16px;
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    #checkout-overlay.active {
        display: flex;
    }

    .swal2-container.checkout-swal-layer {
        z-index: 2147483647 !important;
    }

    .checkout-swal-popup {
        direction: rtl;
        font-family: inherit;
    }

    body.swal2-shown #checkout-overlay {
        pointer-events: none;
    }
    
    #checkout-box {
        background: rgba(20, 20, 30, 0.95);
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 22px;
        width: 100%;
        max-width: 520px;
        max-height: min(720px, calc(100dvh - 24px));
        overflow-y: auto;
        animation: popInModal 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255,255,255,0.05);
        display: flex;
        flex-direction: column;
        margin: auto;
    }

    #checkout-box.is-physical-product {
        max-width: min(760px, calc(100vw - 24px));
    }
    
    @keyframes popInModal {
        from { transform: scale(0.95) translateY(20px); opacity: 0; }
        to { transform: scale(1) translateY(0); opacity: 1; }
    }
    
    /* Custom Scrollbar for Modal */
    #checkout-box::-webkit-scrollbar { width: 5px; }
    #checkout-box::-webkit-scrollbar-thumb { background: rgba(99,102,241,0.5); border-radius: 10px; }
    
    .checkout-head {
        padding: 14px 16px 12px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        display: grid;
        gap: 12px;
        background: linear-gradient(180deg, rgba(255,255,255,0.055) 0%, rgba(255,255,255,0.015) 100%);
        position: sticky;
        top: 0;
        z-index: 3;
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }

    #checkout-box.is-physical-product .checkout-head {
        position: static !important;
    }

    .checkout-head-toolbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .checkout-product-summary {
        display: grid;
        grid-template-columns: 56px minmax(0, 1fr);
        align-items: center;
        gap: 12px;
    }

    #checkout-box.is-physical-product .checkout-product-summary {
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch;
    }
    
    .checkout-head-img {
        width: 56px;
        height: 56px;
        border-radius: 14px;
        object-fit: cover;
        border: 2px solid rgba(255,255,255,0.1);
        box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    }

    .checkout-physical-gallery {
        width: 100%;
        display: grid;
        gap: 10px;
    }

    .checkout-physical-gallery-main {
        width: 100%;
        height: min(25vh, 200px);
        object-fit: contain;
        border-radius: 16px;
        border: 1px solid rgba(255,255,255,0.12);
        background: radial-gradient(circle at center, rgba(59,130,246,0.14), rgba(0,0,0,0.28));
        cursor: zoom-in;
    }

    .checkout-gallery-thumbs {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .checkout-gallery-thumb {
        flex: 0 0 62px;
        width: 62px;
        height: 62px;
        border: 1px solid rgba(255,255,255,0.16);
        border-radius: 12px;
        overflow: hidden;
        padding: 0;
        background: rgba(255,255,255,0.06);
        cursor: pointer;
    }

    .checkout-gallery-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .checkout-head-img-ph {
        width: 56px;
        height: 56px;
        border-radius: 14px;
        border: 2px solid rgba(255,255,255,0.1);
        background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(168,85,247,0.2));
        color: var(--accent-primary);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.55rem;
        box-shadow: inset 0 0 20px rgba(99,102,241,0.2);
    }
    
    .checkout-head-info { min-width: 0; }
    .checkout-kicker {
        display: block;
        color: var(--text-secondary);
        font-size: 0.72rem;
        font-weight: 800;
        margin-bottom: 3px;
    }
    .checkout-head-info h3 {
        margin: 0;
        color: #fff;
        font-size: 1rem;
        font-weight: 900;
        line-height: 1.35;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow-wrap: anywhere;
        letter-spacing: 0;
    }
    .price-tag {
        background: var(--success);
        color: #020617;
        border-radius: 999px;
        padding: 7px 13px;
        font-size: 0.98rem;
        font-weight: 950;
        white-space: nowrap;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 34px;
        box-shadow: 0 8px 22px rgba(16, 185, 129, 0.22);
    }
    
    .checkout-close {
        position: static;
        background: rgba(255,255,255,0.05);
        border: 1px solid rgba(255,255,255,0.08);
        color: var(--text-secondary);
        min-width: 78px;
        height: 34px;
        padding: 0 12px;
        border-radius: 999px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        cursor: pointer;
        transition: 0.3s;
        font-size: 0.85rem;
        font-weight: 850;
    }
    .checkout-close:hover { background: rgba(255,255,255,0.09); color: #fff; }
    
    .checkout-body { padding: 16px 18px 18px; }
    
    .co-label {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 0.82rem;
        font-weight: 700;
        color: var(--text-secondary);
        margin-bottom: 7px;
    }
    .co-label i { color: var(--accent-primary); }
    
    .co-input {
        width: 100%;
        background: rgba(0,0,0,0.25);
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 12px;
        padding: 12px 14px;
        color: white;
        font-size: 0.95rem;
        transition: 0.3s;
        font-family: inherit;
    }
    .co-input:focus {
        outline: none;
        border-color: var(--accent-primary);
        background: rgba(99,102,241,0.08);
        box-shadow: 0 0 0 4px rgba(99,102,241,0.15);
    }

    .co-input.is-invalid {
        border-color: var(--danger);
        background: rgba(239, 68, 68, 0.08);
        box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.14);
    }

    textarea.co-input {
        min-height: 138px;
        resize: vertical;
        line-height: 1.65;
        white-space: pre-wrap;
    }

    .comments-counter {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-top: 8px;
        color: rgba(255,255,255,0.58);
        font-size: 0.78rem;
        font-weight: 750;
    }

    .comments-counter.is-invalid {
        color: var(--danger);
    }

    .comments-counter.is-valid {
        color: var(--success);
    }
    
    .co-group { margin-bottom: 16px; }
    .checkout-field-help {
        display: flex;
        align-items: flex-start;
        gap: 6px;
        margin-top: 7px;
        color: rgba(255,255,255,0.52);
        font-size: 0.76rem;
        line-height: 1.55;
    }
    .checkout-field-help.is-warning { color: #fbbf24; }

    #checkout-box.is-physical-product .co-group {
        margin-bottom: 14px;
    }

    #checkout-box.is-physical-product .checkout-param-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .checkout-product-copy {
        border: 1px solid rgba(255,255,255,0.07);
        background: rgba(255,255,255,0.04);
        border-radius: 14px;
        padding: 12px 13px;
        margin-bottom: 15px;
        color: rgba(255,255,255,0.78);
        font-size: 0.88rem;
        line-height: 1.75;
        font-weight: 650;
        overflow-wrap: anywhere;
    }

    .checkout-product-copy strong {
        display: block;
        color: #fff;
        margin-bottom: 4px;
        font-size: 0.82rem;
    }

    .checkout-service-details {
        display: grid;
        gap: 12px;
    }

    .checkout-service-description {
        white-space: pre-wrap;
        line-height: 1.8;
        overflow-wrap: anywhere;
    }

    .checkout-service-sla {
        display: grid;
        gap: 2px;
        padding-top: 10px;
        border-top: 1px solid rgba(255,255,255,0.09);
    }

    #manual-quote-status[hidden] { display: none !important; }

    .physical-summary-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-top: 12px;
    }

    .physical-summary-item {
        min-height: 58px;
        padding: 10px 12px;
        border-radius: 14px;
        background: rgba(255,255,255,0.045);
        border: 1px solid rgba(255,255,255,0.08);
    }

    .physical-summary-item dt {
        color: var(--text-secondary);
        font-size: .78rem;
        margin-bottom: 4px;
    }

    .physical-summary-item dd {
        margin: 0;
        color: #fff;
        font-weight: 800;
        word-break: break-word;
    }
    
    .qty-row {
        display: flex;
        gap: 10px;
        align-items: center;
        background: rgba(0,0,0,0.25);
        padding: 7px;
        border-radius: 14px;
        border: 1px solid rgba(255,255,255,0.08);
    }
    .qty-btn {
        width: 44px;
        height: 44px;
        border-radius: 11px;
        background: rgba(255,255,255,0.05);
        border: none;
        color: white;
        font-size: 1.35rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: 0.3s;
    }
    .qty-btn:hover { background: var(--accent-primary); color: white; transform: scale(1.05); }
    .qty-btn:disabled {
        opacity: 0.38;
        cursor: not-allowed;
        transform: none;
    }
    .qty-input {
        flex: 1;
        text-align: center;
        background: transparent;
        border: none;
        color: white;
        font-size: 1.12rem;
        font-weight: 900;
        outline: none;
        width: 100%;
    }
    
    .price-preview {
        background: linear-gradient(135deg, rgba(99,102,241,0.1) 0%, rgba(168,85,247,0.05) 100%);
        border: 1px solid rgba(168,85,247,0.3);
        border-radius: 20px;
        padding: 20px 25px;
        margin: 30px 0;
        position: relative;
        overflow: hidden;
    }
    .price-preview::before {
        content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
        background: radial-gradient(circle, rgba(99,102,241,0.1) 0%, transparent 70%);
        pointer-events: none;
    }
    .price-preview-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
        z-index: 1;
        position: relative;
    }
    .price-preview-row:last-child {
        margin-bottom: 0;
        padding-top: 10px;
        border-top: 1px dashed rgba(255,255,255,0.1);
    }
    .price-preview .total-label { color: rgba(255,255,255,0.8); font-size: 1rem; font-weight: 700; z-index: 1; }
    .price-preview .total-val { 
        font-size: 1.5rem; font-weight: 900; color: #fff; z-index: 1;
        text-shadow: 0 0 20px rgba(168,85,247,0.6);
    }
    .price-preview .balance-label { color: var(--text-secondary); font-size: 0.9rem; font-weight: 600; }
    .price-preview .balance-val { font-size: 1.1rem; font-weight: 800; color: var(--success); }
    .price-preview .balance-val.insufficient { color: var(--danger); }
    
    .btn-confirm {
        width: 100%;
        background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
        color: white;
        border: none;
        padding: 18px;
        border-radius: 16px;
        font-weight: 800;
        font-size: 1.15rem;
        cursor: pointer;
        transition: 0.3s;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        box-shadow: 0 10px 30px rgba(99,102,241,0.3);
    }
    .btn-confirm:hover:not(:disabled) {
        box-shadow: 0 15px 40px rgba(99,102,241,0.5);
        transform: translateY(-3px);
    }
    .btn-confirm:disabled { opacity: 0.5; cursor: not-allowed; }
    
    .btn-login-required {
        width: 100%;
        background: linear-gradient(135deg, var(--warning) 0%, #d97706 100%);
        color: white;
        border: none;
        padding: 18px;
        border-radius: 16px;
        font-weight: 800;
        font-size: 1.15rem;
        cursor: pointer;
        text-align: center;
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        text-decoration: none;
    }

    .btn-login-required.is-danger {
        background: linear-gradient(135deg, var(--danger) 0%, #991b1b 100%);
        color: #fff;
    }

    .checkout-summary-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-bottom: 16px;
    }

    .checkout-summary-card {
        background: rgba(255,255,255,0.055);
        border: 1px solid rgba(255,255,255,0.035);
        padding: 13px 10px;
        border-radius: 14px;
        text-align: center;
        min-width: 0;
    }

    .checkout-summary-label {
        color: var(--text-secondary);
        font-size: 0.78rem;
        margin-bottom: 4px;
        font-weight: 750;
    }

    .checkout-summary-value {
        color: #fff;
        font-size: 1.05rem;
        font-weight: 900;
        overflow-wrap: anywhere;
    }

    .checkout-summary-value.is-balance { color: var(--success); }

    .checkout-actions {
        display: flex;
        gap: 10px;
        margin-top: 2px;
    }

    .btn-cancel,
    .checkout-actions .btn-confirm,
    .checkout-actions .btn-login-required {
        min-height: 46px;
        padding: 12px 14px;
        border-radius: 999px;
        font-size: 0.98rem;
        font-weight: 850;
    }

    .btn-cancel {
        flex: 0 0 112px;
        background: transparent;
        border: 1px solid rgba(239, 68, 68, 0.55);
        color: var(--danger);
        cursor: pointer;
    }

    .checkout-actions .btn-confirm {
        flex: 1;
        background: var(--success);
        color: #020617;
        border: none;
        cursor: pointer;
    }

    .checkout-actions .btn-login-required {
        width: 100%;
    }

    .checkout-service-note {
        border-right: 3px solid var(--success);
        padding: 2px 12px 2px 0;
        margin-top: 16px;
        color: #fff;
        font-size: 0.88rem;
        line-height: 1.65;
        font-weight: 750;
    }

    .sms-activation-session { display: grid; gap: 14px; }
    .sms-session-status {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 12px 14px;
        border: 1px solid rgba(56, 189, 248, 0.24);
        border-radius: 8px;
        background: rgba(14, 116, 144, 0.1);
    }
    .sms-session-status strong { color: #e0f2fe; font-size: 0.9rem; }
    .sms-session-status small { display: block; margin-top: 3px; color: var(--text-secondary); }
    .sms-session-timer { direction: ltr; color: #fbbf24; font-size: 1.05rem; font-weight: 950; }
    .sms-session-field { display: grid; gap: 7px; }
    .sms-session-field > label { color: var(--text-secondary); font-size: 0.78rem; font-weight: 850; }
    .sms-copy-field {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 44px;
        min-height: 56px;
        overflow: hidden;
        border: 1px solid rgba(255,255,255,0.12);
        border-radius: 8px;
        background: rgba(2, 6, 23, 0.72);
    }
    .sms-copy-field output {
        display: grid;
        place-items: center;
        padding: 10px;
        color: #fff;
        font-size: 1.15rem;
        font-weight: 950;
        overflow-wrap: anywhere;
        letter-spacing: 0;
    }
    .sms-copy-field button { border: 0; border-inline-start: 1px solid rgba(255,255,255,0.1); border-radius: 0; }
    .sms-code-waiting { color: var(--text-secondary) !important; font-size: 0.9rem !important; }
    .sms-code-ready { color: #34d399 !important; font-size: 1.45rem !important; }
    .sms-session-note {
        margin: 0;
        color: var(--text-secondary);
        font-size: 0.78rem;
        line-height: 1.7;
    }
    .sms-session-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
    .sms-session-actions [hidden] { display: none !important; }
    .sms-session-actions .btn-confirm,
    .sms-session-actions .btn-cancel {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 46px;
        padding: 10px 15px;
        border-radius: 8px;
        font-weight: 900;
        cursor: pointer;
    }
    .sms-session-actions .btn-confirm { border: 0; color: #02120c; background: #34d399; }
    .sms-session-result {
        padding: 13px 14px;
        border: 1px solid rgba(52, 211, 153, 0.28);
        border-radius: 8px;
        color: #a7f3d0;
        background: rgba(16, 185, 129, 0.1);
        line-height: 1.6;
    }
    .sms-session-result.is-refunded { border-color: rgba(251, 191, 36, 0.3); color: #fde68a; background: rgba(251, 191, 36, 0.08); }

    @media (max-width: 640px) {
        #checkout-overlay {
            align-items: center;
            padding: max(10px, env(safe-area-inset-top)) 8px max(10px, env(safe-area-inset-bottom));
        }

        #checkout-box {
            max-height: calc(100dvh - 20px);
            border-radius: 18px;
            max-width: 100%;
        }

        #checkout-box.is-physical-product .checkout-param-grid {
            grid-template-columns: 1fr;
        }

        .checkout-physical-gallery-main {
            height: min(28vh, 240px);
        }

        .physical-summary-grid {
            grid-template-columns: 1fr;
        }

        .checkout-head {
            padding: 10px 12px 9px;
            gap: 9px;
        }

        .checkout-product-summary {
            grid-template-columns: 48px minmax(0, 1fr);
            gap: 10px;
        }

        .checkout-head-img,
        .checkout-head-img-ph {
            width: 48px;
            height: 48px;
            border-radius: 12px;
        }

        .checkout-head-info h3 {
            font-size: 0.95rem;
            line-height: 1.32;
        }

        .checkout-body {
            padding: 13px 14px 16px;
        }

        .co-group {
            margin-bottom: 13px;
        }

        .co-input {
            min-height: 44px;
        }

        .checkout-summary-card {
            padding: 11px 8px;
        }

        .checkout-actions {
            gap: 8px;
        }

        .btn-cancel {
            flex-basis: 92px;
        }

        .checkout-service-note {
            margin-top: 13px;
            font-size: 0.84rem;
        }

        .sms-session-actions { grid-template-columns: 1fr; }
    }
