.air-purchase-overlay {
    position: fixed;
    inset: 0;
    z-index: 7000;
    background: rgba(2, 6, 23, 0.62);
    backdrop-filter: blur(7px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: 0.25s ease;
}

.air-purchase-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.air-purchase-sheet {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 7100;
    width: min(560px, 94vw);
    height: 100vh;
    padding: 38px 34px;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.10), transparent 35%),
        var(--air-card, #ffffff);
    color: var(--air-text, #0f172a);
    border-left: 1px solid var(--air-border, rgba(15, 23, 42, .10));
    box-shadow: -30px 0 90px rgba(2, 6, 23, 0.25);
    transform: translateX(105%);
    transition: 0.35s cubic-bezier(.22, 1, .36, 1);
    overflow-y: auto;
}

.air-purchase-sheet.show {
    transform: translateX(0);
}

.air-purchase-handle {
    display: none;
}

.air-purchase-close {
    position: absolute;
    top: 34px;
    right: 28px;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 18px;
    background: var(--air-card-soft, #f1f5f9);
    color: var(--air-text, #0f172a);
    font-size: 18px;
    cursor: pointer;
}

.air-purchase-head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-right: 70px;
    margin-bottom: 24px;
}

.air-purchase-logo {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    overflow: hidden;
    flex-shrink: 0;
}

.air-purchase-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.air-purchase-head span {
    display: block;
    margin-bottom: 8px;
    color: var(--air-muted, #64748b);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.air-purchase-head h2 {
    margin: 0;
    color: var(--air-text, #0f172a);
    font-size: 27px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -1.2px;
}

.air-purchase-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.air-purchase-summary-card {
    min-height: 96px;
    padding: 18px;
    border-radius: 20px;
    background: var(--air-card, #ffffff);
    border: 1px solid var(--air-border, rgba(15, 23, 42, .10));
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
}

.air-purchase-summary-card span {
    display: block;
    margin-bottom: 14px;
    color: var(--air-muted, #64748b);
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.4px;
}

.air-purchase-summary-card strong {
    color: var(--air-text, #0f172a);
    font-size: 22px;
    font-weight: 750;
    letter-spacing: -0.7px;
}

.air-purchase-summary-card strong b {
    font-weight: inherit;
}

.air-form-group {
    margin-bottom: 18px;
}

.air-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.air-label-row span {
    margin-bottom: 10px;
    color: var(--air-muted, #64748b);
    font-size: 11.5px;
    font-weight: 600;
    text-align: right;
}

.air-form-group label,
.air-payment-title label {
    display: block;
    margin-bottom: 10px;
    color: var(--air-text, #0f172a);
    font-size: 14px;
    font-weight: 700;
}

.air-form-group input {
    width: 100%;
    height: 62px;
    padding: 0 18px;
    border-radius: 18px;
    outline: none;
    border: 1px solid var(--air-border, rgba(15, 23, 42, .12));
    background: var(--air-card, #ffffff);
    color: var(--air-text, #0f172a);
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0;
    transition: 0.22s ease;
}

.air-form-group input::placeholder {
    font-weight: 400;
    color: #8b95a7;
}

.air-form-group input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.air-form-group input.is-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.10);
}

.air-form-group input.is-valid {
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.10);
}

.air-form-group small {
    display: block;
    margin-top: 8px;
    color: var(--air-muted, #64748b);
    font-size: 12px;
    font-weight: 500;
}

.air-field-error {
    display: none !important;
    color: #ef4444 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.45;
}

.air-field-error.show {
    display: block !important;
}

.air-ported-check {
    min-height: 58px;
    padding: 12px 14px;
    margin: -4px 0 18px;
    border-radius: 17px;
    align-items: center;
    gap: 12px;
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid var(--air-border, rgba(15, 23, 42, .10));
    cursor: pointer;
    display: none;
}

.air-ported-check.show {
    display: flex;
}

.air-ported-check input {
    width: 18px;
    height: 18px;
    accent-color: #2563eb;
    flex-shrink: 0;
}

.air-ported-check span {
    display: grid;
    gap: 3px;
}

.air-ported-check strong {
    color: var(--air-text, #0f172a);
    font-size: 13px;
    font-weight: 600;
}

.air-ported-check small {
    color: var(--air-muted, #64748b);
    font-size: 11.5px;
    font-weight: 400;
}

.air-payment-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 6px 0 12px;
}

.air-payment-title span {
    color: var(--air-muted, #64748b);
    font-size: 12px;
    font-weight: 500;
    text-align: right;
}

.air-payment-options {
    display: grid;
    gap: 12px;
    margin-bottom: 22px;
}

.air-payment-options.has-wallet {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.air-payment-options.guest-only {
    grid-template-columns: 1fr;
}

.air-payment-option {
    position: relative;
    min-height: 82px;
    padding: 13px 16px;
    border-radius: 20px;
    border: 1px solid var(--air-border, rgba(15, 23, 42, .12));
    background: var(--air-card, #ffffff);
    color: var(--air-text, #0f172a);
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    text-align: left;
    transition: 0.22s ease;
}

.air-payment-option > i {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: var(--air-card-soft, #f1f5f9);
    color: #2563eb;
    font-size: 19px;
    flex-shrink: 0;
}

.air-payment-option span {
    font-size: 14px;
    font-weight: 600;
}

.air-payment-option b {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: none;
    place-items: center;
    background: #10b981;
    color: #ffffff;
    font-size: 11px;
}

.air-payment-option.active {
    border-color: #2563eb;
    box-shadow: inset 0 0 0 1px #2563eb;
}

.air-payment-option.active > i {
    background: #2563eb;
    color: #ffffff;
}

.air-payment-option.active b {
    display: grid;
}

.air-purchase-form-message {
    display: none;
    margin: -4px 0 14px;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
}

.air-purchase-form-message.show {
    display: block;
}

.air-purchase-form-message.error {
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.10);
    border: 1px solid rgba(239, 68, 68, 0.18);
}

.air-purchase-form-message.success {
    color: #047857;
    background: rgba(16, 185, 129, 0.10);
    border: 1px solid rgba(16, 185, 129, 0.18);
}

.air-purchase-form-message.info {
    color: #1d4ed8;
    background: rgba(37, 99, 235, 0.10);
    border: 1px solid rgba(37, 99, 235, 0.18);
}

.air-purchase-submit {
    width: 100%;
    height: 62px;
    border: none;
    border-radius: 18px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    font-size: 16px;
    font-weight: 750;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    cursor: pointer;
}

.air-purchase-submit:hover {
    filter: brightness(1.03);
    transform: translateY(-1px);
}

.air-purchase-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.air-slide-submit {
    display: none;
}

body.air-purchase-open {
    overflow: hidden;
}

body.air-purchase-open .air-whatsapp-float,
body.air-purchase-open .whatsapp-float,
body.air-purchase-open .air-whatsapp-btn,
body.air-purchase-open #airWhatsappFloat {
    display: none !important;
}

/* Network colors */
.network-mtn-purchase .air-purchase-submit,
.network-mtn-purchase .air-payment-option.active > i {
    background: #ffcc00;
    color: #111827;
}

.network-mtn-purchase .air-payment-option.active {
    border-color: #ffcc00;
    box-shadow: inset 0 0 0 1px #ffcc00;
}

.network-telecel-purchase .air-purchase-submit,
.network-telecel-purchase .air-payment-option.active > i {
    background: #ed1b24;
    color: #ffffff;
}

.network-telecel-purchase .air-payment-option.active {
    border-color: #ed1b24;
    box-shadow: inset 0 0 0 1px #ed1b24;
}

.network-at-purchase .air-purchase-submit,
.network-at-purchase .air-payment-option.active > i {
    background: #1f4fb8;
    color: #ffffff;
}

.network-at-purchase .air-payment-option.active {
    border-color: #1f4fb8;
    box-shadow: inset 0 0 0 1px #1f4fb8;
}

/* Slide colors */
.network-mtn-purchase .air-slide-track {
    background: rgba(255, 204, 0, 0.16);
    border-color: rgba(255, 204, 0, 0.42);
}

.network-mtn-purchase .air-slide-thumb {
    background: #ffcc00;
    color: #111827;
}

.network-telecel-purchase .air-slide-track {
    background: rgba(237, 27, 36, 0.12);
    border-color: rgba(237, 27, 36, 0.42);
}

.network-telecel-purchase .air-slide-thumb {
    background: #ed1b24;
    color: #ffffff;
}

.network-at-purchase .air-slide-track {
    background: rgba(31, 79, 184, 0.12);
    border-color: rgba(31, 79, 184, 0.42);
}

.network-at-purchase .air-slide-thumb {
    background: #1f4fb8;
    color: #ffffff;
}

/* Dark */
html[data-theme="dark"] .air-purchase-sheet {
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.13), transparent 35%),
        #020817;
    border-left-color: rgba(148, 163, 184, 0.16);
}

html[data-theme="dark"] .air-purchase-close,
html[data-theme="dark"] .air-purchase-summary-card,
html[data-theme="dark"] .air-form-group input,
html[data-theme="dark"] .air-payment-option,
html[data-theme="dark"] .air-ported-check {
    background: rgba(15, 23, 42, 0.82);
    border-color: rgba(148, 163, 184, 0.16);
}

html[data-theme="dark"] .air-purchase-head h2,
html[data-theme="dark"] .air-purchase-summary-card strong,
html[data-theme="dark"] .air-form-group label,
html[data-theme="dark"] .air-payment-title label,
html[data-theme="dark"] .air-payment-option,
html[data-theme="dark"] .air-ported-check strong {
    color: #f8fafc;
}

html[data-theme="dark"] .air-payment-option > i {
    background: rgba(148, 163, 184, 0.12);
}

/* Mobile bottom sheet */
@media (max-width: 768px) {
    .air-purchase-sheet {
        top: auto;
        right: 0;
        bottom: 0;
        width: 100%;
        max-height: 92vh;
        height: auto;
        padding: 14px 18px 24px;
        border-left: none;
        border-top: 1px solid var(--air-border, rgba(15, 23, 42, .10));
        border-radius: 28px 28px 0 0;
        transform: translateY(105%);
        box-shadow: 0 -28px 80px rgba(2, 6, 23, 0.35);
    }

    .air-purchase-sheet.show {
        transform: translateY(0);
    }

    .air-purchase-handle {
        display: block;
        width: 46px;
        height: 5px;
        margin: 0 auto 16px;
        border-radius: 999px;
        background: rgba(148, 163, 184, 0.45);
    }

    .air-purchase-close {
        top: 20px;
        right: 18px;
        width: 44px;
        height: 44px;
        border-radius: 15px;
    }

    .air-purchase-head {
        margin-bottom: 20px;
        padding-right: 54px;
    }

    .air-purchase-logo {
        width: 62px;
        height: 62px;
        border-radius: 16px;
    }

    .air-purchase-head h2 {
        font-size: 24px;
    }

    .air-purchase-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .air-purchase-summary-card {
        min-height: 86px;
        padding: 15px;
        border-radius: 18px;
    }

    .air-purchase-summary-card span {
        margin-bottom: 12px;
        font-size: 10px;
    }

    .air-purchase-summary-card strong {
        font-size: 18px;
    }

    .air-payment-options.has-wallet {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .air-payment-options.guest-only {
        grid-template-columns: 1fr;
    }

    .air-payment-option {
        min-height: 74px;
        padding: 12px;
        border-radius: 18px;
        gap: 10px;
    }

    .air-payment-option > i {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        font-size: 16px;
    }

    .air-payment-option span {
        font-size: 13px;
        font-weight: 500;
    }

    .air-form-group input {
        height: 56px;
        border-radius: 17px;
        font-size: 14px;
        font-weight: 400;
    }

    .air-purchase-submit {
        display: none;
    }

    .air-slide-submit {
        display: block;
        width: 100%;
        height: 58px;
        margin-top: 8px;
        user-select: none;
        touch-action: none;
    }

    .air-slide-track {
        position: relative;
        width: 100%;
        height: 58px;
        border-radius: 18px;
        border: 1px solid rgba(37, 99, 235, 0.28);
        background: rgba(37, 99, 235, 0.10);
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .air-slide-track::before {
        content: "";
        position: absolute;
        inset: 0 auto 0 0;
        width: var(--slide-progress, 0px);
        background: rgba(37, 99, 235, 0.12);
        transition: width 0.08s linear;
    }

    .air-slide-track span {
        position: relative;
        z-index: 1;
        color: var(--air-text, #0f172a);
        font-size: 14px;
        font-weight: 500;
        letter-spacing: 0;
        opacity: 0.82;
        pointer-events: none;
    }

    .air-slide-thumb {
        position: absolute;
        left: 6px;
        top: 6px;
        z-index: 2;
        width: 46px;
        height: 46px;
        border: none;
        border-radius: 15px;
        background: #2563eb;
        color: #ffffff;
        display: grid;
        place-items: center;
        cursor: grab;
        box-shadow: 0 12px 25px rgba(37, 99, 235, 0.26);
        transition: transform 0.12s ease;
        touch-action: none;
    }

    .air-slide-thumb:active {
        cursor: grabbing;
    }

    .air-slide-submit.is-loading .air-slide-thumb {
        cursor: wait;
    }

    .air-slide-submit.is-complete .air-slide-track span,
    .air-slide-submit.is-loading .air-slide-track span {
        opacity: 1;
    }

    html[data-theme="dark"] .air-slide-track span {
        color: #f8fafc;
    }
}

@media (max-width: 420px) {
    .air-purchase-sheet {
        padding-left: 14px;
        padding-right: 14px;
    }

    .air-purchase-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .air-purchase-summary-card {
        padding: 13px;
    }

    .air-purchase-summary-card strong {
        font-size: 16px;
    }

    .air-payment-options.has-wallet {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .air-payment-option {
        padding: 10px;
    }

    .air-payment-option > i {
        width: 38px;
        height: 38px;
    }

    .air-payment-option span {
        font-size: 12px;
    }

    .air-label-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 0;
    }

    .air-label-row span {
        text-align: left;
        margin-top: -4px;
    }

    .air-slide-track span {
        font-size: 13px;
    }
}

.air-charge-notice {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #1d4ed8;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.16);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
}

.air-charge-notice i {
    margin-top: 2px;
    flex-shrink: 0;
}

.air-purchase-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.air-total-card {
    border-color: rgba(37, 99, 235, 0.26);
    background: rgba(37, 99, 235, 0.06);
}

.air-total-card strong {
    color: #1d4ed8;
}

html[data-theme="dark"] .air-charge-notice {
    color: #bfdbfe;
    background: rgba(37, 99, 235, 0.14);
    border-color: rgba(147, 197, 253, 0.18);
}

html[data-theme="dark"] .air-total-card {
    background: rgba(37, 99, 235, 0.14);
    border-color: rgba(147, 197, 253, 0.18);
}

html[data-theme="dark"] .air-total-card strong {
    color: #bfdbfe;
}

@media (max-width: 768px) {
    .air-purchase-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}

@media (max-width: 420px) {
    .air-purchase-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.air-payment-disabled-notice,
.air-payment-warning-notice {
    margin: 0 22px 18px;
    padding: 14px 15px;
    border-radius: 18px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid rgba(239, 68, 68, .20);
    background: rgba(239, 68, 68, .10);
    color: #991b1b;
}

.air-payment-warning-notice {
    border-color: rgba(245, 158, 11, .22);
    background: rgba(245, 158, 11, .11);
    color: #92400e;
}

.air-payment-disabled-notice > i,
.air-payment-warning-notice > i {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .60);
    font-size: 15px;
}

.air-payment-disabled-notice strong,
.air-payment-warning-notice strong {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 950;
}

.air-payment-disabled-notice span,
.air-payment-warning-notice span {
    display: block;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.55;
}

html[data-theme="dark"] .air-payment-disabled-notice {
    border-color: rgba(248, 113, 113, .24);
    background: rgba(127, 29, 29, .24);
    color: #fecaca;
}

html[data-theme="dark"] .air-payment-warning-notice {
    border-color: rgba(251, 191, 36, .24);
    background: rgba(120, 53, 15, .24);
    color: #fde68a;
}

html[data-theme="dark"] .air-payment-disabled-notice > i,
html[data-theme="dark"] .air-payment-warning-notice > i {
    background: rgba(255, 255, 255, .08);
}

.air-charge-notice-disabled {
    opacity: .75;
}

.air-payment-option.is-disabled,
.air-purchase-submit.is-disabled,
.air-slide-submit.is-disabled,
.air-ported-check.is-disabled {
    opacity: .55;
    cursor: not-allowed;
    pointer-events: none;
}

.air-payment-option em {
    margin-left: auto;
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
    color: #ef4444;
    background: rgba(239, 68, 68, .10);
    padding: 4px 8px;
    border-radius: 999px;
}

html[data-theme="dark"] .air-payment-option em {
    color: #fecaca;
    background: rgba(239, 68, 68, .16);
}

.air-purchase-form.is-payment-disabled input,
.air-purchase-form.is-payment-disabled button {
    cursor: not-allowed;
}