/* =====================================================
   GUEST TOP UP
===================================================== */

.guest-topup-main {
    min-height: calc(100vh - 72px);

    background:
        radial-gradient(circle at 8% 0%,
            rgba(22, 119, 255, 0.09),
            transparent 28%),
        radial-gradient(circle at 92% 15%,
            rgba(14, 165, 233, 0.05),
            transparent 24%),
        #f7f9fc;
}

.guest-topup-page {
    width: 100%;
    max-width: 1320px;

    margin: 0 auto;

    padding:
        42px 28px 70px;
}


/* =====================================================
   HEADER
===================================================== */

.guest-topup-header {
    position: sticky;

    top: 0;

    z-index: 500;

    border-bottom:
        1px solid rgba(226, 232, 240, 0.85);

    background:
        rgba(255, 255, 255, 0.9);

    backdrop-filter:
        blur(18px);
}

.guest-topup-header-inner {
    width: 100%;
    max-width: 1320px;

    min-height: 72px;

    margin: 0 auto;

    padding:
        0 28px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;
}

.guest-topup-brand {
    flex-shrink: 0;
}

.guest-topup-header-actions {
    display: flex;

    align-items: center;

    gap: 10px;
}

.guest-topup-secure-badge {
    min-height: 34px;

    padding:
        0 12px;

    border:
        1px solid #dbeafe;

    border-radius: 999px;

    background:
        #f0f7ff;

    color:
        #0c5fd5;

    display: inline-flex;

    align-items: center;

    gap: 5px;

    font-size: 10px;

    font-weight: 800;
}

.guest-topup-login-link {
    min-height: 38px;

    padding:
        0 16px;

    border:
        1px solid #dbe3ee;

    border-radius: 11px;

    background:
        white;

    color:
        #334155;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    font-size: 11px;

    font-weight: 800;

    transition:
        0.2s ease;
}

.guest-topup-login-link:hover {
    border-color:
        #bfdbfe;

    background:
        #f8fbff;

    color:
        var(--primary);

    transform:
        translateY(-1px);
}


/* =====================================================
   PAGE HEADING
===================================================== */

.guest-topup-page-heading {
    position: relative;

    margin-bottom: 28px;

    padding:
        5px 0 3px;
}

.guest-topup-page-heading::before {
    content: "";

    position: absolute;

    left: -28px;

    top: -42px;

    width: 300px;

    height: 210px;

    pointer-events: none;

    background:
        radial-gradient(circle,
            rgba(22, 119, 255, 0.08),
            transparent 68%);
}

.guest-topup-page-heading>div {
    position: relative;

    z-index: 1;
}

.guest-topup-page-heading h1 {
    max-width: 760px;

    margin-top: 7px;

    color:
        #0f172a;

    font-size:
        clamp(30px,
            4vw,
            43px);

    font-weight: 850;

    line-height: 1.08;

    letter-spacing:
        -1.7px;
}

.guest-topup-page-heading p {
    max-width: 650px;

    margin-top: 12px;

    color:
        #64748b;

    font-size: 13px;

    line-height: 1.7;
}


/* =====================================================
   MAIN LAYOUT
===================================================== */

.guest-topup-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr) 360px;

    gap: 24px;

    align-items: start;
}

.guest-topup-left-column {
    min-width: 0;

    display: flex;

    flex-direction: column;

    gap: 16px;
}

.guest-topup-right-column {
    min-width: 0;

    display: flex;

    flex-direction: column;

    gap: 14px;

    position: sticky;

    top: 96px;
}


/* =====================================================
   MAIN CARDS
===================================================== */

.guest-topup-card {
    position: relative;

    padding: 24px;

    overflow: hidden;

    border:
        1px solid #e4e9f1;

    border-radius: 20px;

    background:
        rgba(255, 255, 255, 0.96);

    box-shadow:
        0 5px 20px rgba(15, 23, 42, 0.035);

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.guest-topup-card:hover {
    border-color:
        #d8e2f0;

    box-shadow:
        0 8px 30px rgba(15, 23, 42, 0.05);
}


/* =====================================================
   CARD HEADER
===================================================== */

.guest-topup-card-header {
    margin-bottom: 21px;

    padding-bottom: 17px;

    border-bottom:
        1px solid #edf1f6;
}

.guest-topup-card-header h2 {
    margin-top: 4px;

    color:
        #0f172a;

    font-size: 19px;

    font-weight: 800;

    letter-spacing:
        -0.35px;
}

.guest-topup-card-header p {
    max-width: 600px;

    margin-top: 5px;

    color:
        #7b8798;

    font-size: 10.5px;

    line-height: 1.6;
}


/* =====================================================
   STEP LABEL
===================================================== */

.guest-topup-card-header .panel-eyebrow {
    display: inline-flex;

    min-height: 23px;

    padding:
        0 9px;

    border-radius:
        999px;

    background:
        #eef5ff;

    color:
        var(--primary);

    align-items: center;

    font-size: 8px;

    font-weight: 900;

    letter-spacing:
        0.8px;
}


/* =====================================================
   PHONE GRID
===================================================== */

.guest-topup-phone-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 0.92fr) minmax(0, 1.08fr);

    gap: 14px;
}


/* =====================================================
   FORM LABEL
===================================================== */

.guest-topup-field label {
    display: block;

    margin-bottom: 7px;

    color:
        #475569;

    font-size: 11px;

    font-weight: 750;
}

.guest-topup-field-note {
    display: block;

    margin-top: 6px;

    color:
        #94a3b8;

    font-size: 9px;

    line-height: 1.5;
}

.guest-topup-error {
    display: block;

    min-height: 15px;

    margin-top: 4px;

    color:
        #dc2626;

    font-size: 9.5px;

    font-weight: 650;

    line-height: 1.5;
}


/* =====================================================
   COUNTRY SELECT
===================================================== */

.guest-country-select {
    width: 100%;

    min-height: 56px;

    padding:
        0 14px;

    border:
        1px solid #dce3ec;

    border-radius: 14px;

    background:
        #f9fbfd;

    display: flex;

    align-items: center;

    justify-content:
        space-between;

    gap: 12px;

    text-align: left;

    outline: none;

    cursor: pointer;

    transition:
        0.2s ease;
}

.guest-country-select:hover {
    border-color:
        #b9d5fb;

    background:
        white;
}

.guest-country-select:focus {
    border-color:
        var(--primary);

    background:
        white;

    box-shadow:
        0 0 0 4px rgba(22, 119, 255, 0.07);
}

.guest-country-selected {
    min-width: 0;

    display: flex;

    align-items: center;

    gap: 11px;
}

.guest-country-flag {
    width: 36px;

    height: 36px;

    flex-shrink: 0;

    border:
        1px solid #e7ecf3;

    border-radius: 11px;

    background:
        white;

    display: grid;

    place-items: center;

    font-size: 21px;
}

.guest-country-selected strong {
    display: block;

    overflow: hidden;

    color:
        #1e293b;

    font-size: 11.5px;

    font-weight: 800;

    text-overflow:
        ellipsis;

    white-space:
        nowrap;
}

.guest-country-selected span:last-child {
    display: block;

    margin-top: 2px;

    color:
        #94a3b8;

    font-size: 8.5px;
}

.guest-country-arrow {
    color:
        #94a3b8;

    font-size: 11px;
}


/* =====================================================
   PHONE INPUT
===================================================== */

.guest-phone-input {
    min-height: 56px;

    overflow: hidden;

    border:
        1px solid #dce3ec;

    border-radius: 14px;

    background:
        #f9fbfd;

    display: flex;

    align-items: center;

    transition:
        0.2s ease;
}

.guest-phone-input:focus-within {
    border-color:
        var(--primary);

    background:
        white;

    box-shadow:
        0 0 0 4px rgba(22, 119, 255, 0.07);
}

.guest-phone-input>span {
    min-width: 64px;

    min-height: 56px;

    padding:
        0 12px;

    border-right:
        1px solid #e5eaf1;

    display: flex;

    align-items: center;

    justify-content:
        center;

    color:
        #334155;

    font-size: 11px;

    font-weight: 800;
}

.guest-phone-input input {
    width: 100%;

    min-width: 0;

    min-height: 54px;

    padding:
        0 14px;

    border: 0;

    outline: 0;

    background:
        transparent;

    color:
        #0f172a;

    font-family:
        inherit;

    font-size: 13px;
}

.guest-phone-input input::placeholder {
    color:
        #a3adbb;
}


/* =====================================================
   DETECT BUTTON
===================================================== */

.guest-detect-button {
    min-width: 180px;

    min-height: 47px;

    margin-top: 9px;

    padding:
        0 21px;

    border-radius: 12px;

    box-shadow:
        0 8px 20px rgba(22, 119, 255, 0.14);

    font-size: 11px;

    font-weight: 800;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.guest-detect-button:hover {
    transform:
        translateY(-1px);

    box-shadow:
        0 11px 25px rgba(22, 119, 255, 0.2);
}


/* =====================================================
   OPERATOR RESULT
===================================================== */

.guest-operator-result {
    position: relative;

    padding: 16px;

    overflow: hidden;

    border:
        1px solid #cfe2fc;

    border-radius: 16px;

    background:
        linear-gradient(135deg,
            #f8fbff,
            #f3f8ff);

    display: flex;

    align-items: center;

    gap: 13px;
}

.guest-operator-result::after {
    content: "";

    position: absolute;

    width: 110px;

    height: 110px;

    right: -45px;

    top: -50px;

    border-radius: 50%;

    background:
        rgba(22, 119, 255, 0.05);
}

.guest-operator-logo {
    width: 52px;

    height: 52px;

    z-index: 1;

    flex-shrink: 0;

    padding: 8px;

    border:
        1px solid #e2e8f0;

    border-radius: 15px;

    background:
        white;

    display: grid;

    place-items: center;

    box-shadow:
        0 4px 12px rgba(15, 23, 42, 0.05);
}

.guest-operator-logo img {
    width: 100%;

    height: 100%;

    object-fit:
        contain;
}

.guest-operator-logo span {
    font-size: 21px;
}

.guest-operator-info {
    min-width: 0;

    z-index: 1;

    flex: 1;
}

.guest-operator-info strong {
    display: block;

    color:
        #172033;

    font-size: 13px;

    font-weight: 850;
}

.guest-operator-info span {
    display: block;

    margin-top: 3px;

    color:
        #77849a;

    font-size: 9.5px;
}

.guest-operator-status {
    width: 30px;

    height: 30px;

    z-index: 1;

    flex-shrink: 0;

    border:
        1px solid #bbf7d0;

    border-radius: 50%;

    background:
        #ecfdf3;

    color:
        #15803d;

    display: grid;

    place-items: center;

    font-size: 11px;

    font-weight: 900;
}


/* =====================================================
   PRODUCT TABS
===================================================== */

.guest-product-tabs {
    width: 100%;
    margin-bottom: 16px;
    padding: 4px;

    display: flex;
    align-items: center;
    gap: 6px;

    border: 1px solid #e2e8f0;
    border-radius: 12px;

    background: #f5f7fa;
}


.guest-product-tab {
    flex: 1;

    min-height: 40px;
    padding: 0 16px;

    border: 0;
    border-radius: 9px;

    background: transparent;
    color: #64748b;

    font-family: inherit;
    font-size: 10.5px;
    font-weight: 800;

    cursor: pointer;

    transition:
        background 0.18s ease,
        color 0.18s ease,
        box-shadow 0.18s ease;
}


.guest-product-tab:hover {
    color: #1677ff;
    background: rgba(255, 255, 255, 0.65);
}


.guest-product-tab.active {
    background: #ffffff;
    color: #1677ff;

    box-shadow:
        0 2px 7px rgba(15, 23, 42, 0.08);
}


.guest-product-tab[hidden] {
    display: none !important;
}


/* =====================================================
   AMOUNT GRID
===================================================== */

.guest-amount-options {
    display: grid;

    grid-template-columns:
        repeat(4,
            minmax(0, 1fr));

    gap: 10px;
}

.guest-amount-option {
    position: relative;

    min-height: 68px;

    padding:
        10px;

    border:
        1px solid #dde4ed;

    border-radius: 14px;

    background:
        #fafbfd;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 4px;

    color:
        #334155;

    cursor: pointer;

    transition:
        0.18s ease;
}

.guest-amount-option:hover {
    border-color:
        #adcffa;

    background:
        #f4f8ff;

    color:
        #0c5fd5;

    transform:
        translateY(-1px);
}

.guest-amount-option.active {
    border-color:
        var(--primary);

    background:
        linear-gradient(135deg,
            #0c5fd5,
            #1677ff);

    color:
        white;

    box-shadow:
        0 9px 22px rgba(22, 119, 255, 0.2);

    transform:
        translateY(-1px);
}

.guest-amount-option span {
    color: inherit;

    font-size: 12px;

    font-weight: 850;

    line-height: 1.2;
}

.guest-amount-option small {
    color: inherit;

    font-size: 8px;

    font-weight: 600;

    opacity: 0.68;
}


/* =====================================================
   CUSTOM AMOUNT
===================================================== */

#guestCustomAmountField {
    margin-top: 17px;
}

.guest-custom-amount-input {
    min-height: 58px;

    overflow: hidden;

    border:
        1px solid #dce3ec;

    border-radius: 14px;

    background:
        #f9fbfd;

    display: flex;

    align-items: center;

    transition:
        0.2s ease;
}

.guest-custom-amount-input:focus-within {
    border-color:
        var(--primary);

    background:
        white;

    box-shadow:
        0 0 0 4px rgba(22, 119, 255, 0.07);
}

.guest-custom-amount-input>span {
    padding-left: 16px;

    color:
        #1677ff;

    font-size: 17px;

    font-weight: 900;
}

.guest-custom-amount-input input {
    min-width: 0;

    flex: 1;

    min-height: 56px;

    padding:
        0 9px;

    border: 0;

    outline: 0;

    background:
        transparent;

    color:
        #172033;

    font-family:
        inherit;

    font-size: 19px;

    font-weight: 850;
}

.guest-custom-amount-input strong {
    padding-right: 16px;

    color:
        #94a3b8;

    font-size: 9px;

    font-weight: 800;
}


/* =====================================================
   PROMO
===================================================== */

.guest-promo-form {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr) 105px;

    gap: 9px;
}

.guest-promo-form input {
    width: 100%;

    min-height: 52px;

    padding:
        0 14px;

    border:
        1px solid #dce3ec;

    border-radius: 13px;

    background:
        #f9fbfd;

    outline: none;

    color:
        #1e293b;

    font-family:
        inherit;

    font-size: 12px;

    font-weight: 700;

    letter-spacing:
        0.5px;

    text-transform:
        uppercase;

    transition:
        0.2s ease;
}

.guest-promo-form input:focus {
    border-color:
        var(--primary);

    background:
        white;

    box-shadow:
        0 0 0 4px rgba(22, 119, 255, 0.07);
}

.guest-promo-button {
    min-height: 52px;

    border:
        1px solid #cfe2fc;

    border-radius: 13px;

    background:
        #edf5ff;

    color:
        #0c5fd5;

    font-size: 10.5px;

    font-weight: 850;

    transition:
        0.18s ease;
}

.guest-promo-button:hover {
    border-color:
        #a9ccfa;

    background:
        #e3f0ff;
}

.guest-promo-applied {
    padding:
        13px 14px;

    border:
        1px solid #bbf7d0;

    border-radius: 14px;

    background:
        linear-gradient(135deg,
            #f0fdf4,
            #ecfdf5);

    display: flex;

    align-items: center;

    justify-content:
        space-between;

    gap: 12px;
}

.guest-promo-applied strong {
    display: block;

    color:
        #166534;

    font-size: 11px;

    font-weight: 900;

    letter-spacing:
        0.5px;
}

.guest-promo-applied span {
    display: block;

    margin-top: 3px;

    color:
        #15803d;

    font-size: 9px;
}

.guest-promo-applied button {
    min-height: 30px;

    padding:
        0 9px;

    border-radius: 8px;

    background:
        rgba(255, 255, 255, 0.7);

    color:
        #b91c1c;

    font-size: 9px;

    font-weight: 800;
}


/* =====================================================
   RIGHT SIDE CARD
===================================================== */

.guest-topup-side-card {
    padding: 21px;

    border:
        1px solid #e1e7ef;

    border-radius: 19px;

    background:
        rgba(255, 255, 255, 0.98);

    box-shadow:
        0 7px 24px rgba(15, 23, 42, 0.045);
}

.guest-topup-side-header {
    margin-bottom: 17px;
}

.guest-topup-side-header h2 {
    margin-top: 4px;

    color:
        #172033;

    font-size: 18px;

    font-weight: 850;

    letter-spacing:
        -0.3px;
}


/* =====================================================
   SUMMARY EMPTY
===================================================== */

.guest-summary-empty {
    min-height: 260px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    padding:
        25px 12px;

    text-align: center;
}

.guest-summary-empty-icon {
    width: 58px;

    height: 58px;

    margin-bottom: 15px;

    border:
        1px solid #d9e9ff;

    border-radius: 18px;

    background:
        linear-gradient(145deg,
            #eef6ff,
            #f8fbff);

    display: grid;

    place-items: center;

    font-size: 22px;

    box-shadow:
        0 6px 16px rgba(22, 119, 255, 0.07);
}

.guest-summary-empty strong {
    color:
        #334155;

    font-size: 11px;

    font-weight: 850;
}

.guest-summary-empty span {
    max-width: 230px;

    margin-top: 6px;

    color:
        #94a3b8;

    font-size: 9px;

    line-height: 1.6;
}


/* =====================================================
   SUMMARY OPERATOR
===================================================== */

.guest-summary-operator {
    padding:
        12px;

    border:
        1px solid #edf1f6;

    border-radius: 13px;

    background:
        #fafbfd;

    display: flex;

    align-items: center;

    gap: 11px;
}

.guest-summary-operator-icon {
    width: 42px;

    height: 42px;

    flex-shrink: 0;

    border-radius: 12px;

    background:
        #eef5ff;

    color:
        var(--primary);

    display: grid;

    place-items: center;

    font-size: 17px;
}

.guest-summary-operator span {
    display: block;

    color:
        #94a3b8;

    font-size: 8px;

    font-weight: 650;

    text-transform:
        uppercase;

    letter-spacing:
        0.4px;
}

.guest-summary-operator strong {
    display: block;

    margin-top: 2px;

    overflow: hidden;

    color:
        #1e293b;

    font-size: 11px;

    font-weight: 850;

    text-overflow:
        ellipsis;

    white-space:
        nowrap;
}

.guest-summary-operator small {
    display: block;

    margin-top: 2px;

    color:
        #77849a;

    font-size: 8.5px;
}

.guest-summary-divider {
    height: 1px;

    margin:
        16px 0;

    background:
        #edf1f5;
}


/* =====================================================
   SUMMARY ROWS
===================================================== */

.guest-summary-row {
    min-height: 36px;

    display: flex;

    align-items: center;

    justify-content:
        space-between;

    gap: 16px;
}

.guest-summary-row span {
    color:
        #77849a;

    font-size: 10px;
}

.guest-summary-row strong {
    color:
        #334155;

    font-size: 10.5px;

    font-weight: 800;
}

.guest-summary-row.discount {
    color:
        #15803d;
}

.guest-summary-row.discount span,
.guest-summary-row.discount strong {
    color:
        #15803d;
}

.guest-summary-row.total {
    min-height: 50px;

    margin-top: 7px;

    padding-top: 13px;

    border-top:
        1px solid #e5eaf1;
}

.guest-summary-row.total span {
    color:
        #0f172a;

    font-size: 11px;

    font-weight: 850;
}

.guest-summary-row.total strong {
    color:
        #0c5fd5;

    font-size: 20px;

    font-weight: 900;

    letter-spacing:
        -0.5px;
}


/* =====================================================
   PAY BUTTON
===================================================== */

.guest-pay-button {
    width: 100%;

    min-height: 51px;

    margin-top: 15px;

    border-radius: 13px;

    box-shadow:
        0 9px 22px rgba(22, 119, 255, 0.18);

    font-size: 11px;

    font-weight: 850;

    transition:
        0.2s ease;
}

.guest-pay-button:not(:disabled):hover {
    transform:
        translateY(-1px);

    box-shadow:
        0 13px 30px rgba(22, 119, 255, 0.24);
}

.guest-pay-button:disabled {
    opacity: 0.48;

    cursor:
        not-allowed;

    box-shadow: none;
}

.guest-payment-note {
    display: block;

    margin-top: 10px;

    color:
        #94a3b8;

    text-align: center;

    font-size: 8.5px;
}


/* =====================================================
   SIDE INFO
===================================================== */

.guest-info-card {
    background:
        linear-gradient(145deg,
            #ffffff,
            #f8fbff);
}

.guest-side-icon {
    width: 43px;

    height: 43px;

    margin-bottom: 12px;

    border-radius: 13px;

    background:
        #edf5ff;

    display: grid;

    place-items: center;

    font-size: 17px;
}

.guest-info-card>strong {
    display: block;

    color:
        #334155;

    font-size: 11px;

    font-weight: 850;
}

.guest-info-card>span {
    display: block;

    margin-top: 5px;

    color:
        #8793a5;

    font-size: 9px;

    line-height: 1.6;
}

.guest-account-card {
    border-color:
        #dbeafe;

    background:
        #f7fbff;
}

.guest-account-card span {
    display: block;

    color:
        #8793a5;

    font-size: 9px;
}

.guest-account-card strong {
    display: block;

    margin-top: 4px;

    color:
        #334155;

    font-size: 12px;

    font-weight: 850;
}

.guest-account-card a {
    display: inline-flex;

    margin-top: 11px;

    color:
        #0c5fd5;

    font-size: 9.5px;

    font-weight: 850;
}


/* =====================================================
   COUNTRY MODAL
===================================================== */

.guest-country-modal {
    position: fixed;

    inset: 0;

    z-index: 2100;

    padding: 20px;

    display: grid;

    place-items: center;
}

.guest-country-modal[hidden] {
    display: none;
}

.guest-country-modal-backdrop {
    position: absolute;

    inset: 0;

    background:
        rgba(15, 23, 42, 0.55);

    backdrop-filter:
        blur(5px);
}

.guest-country-modal-card {
    position: relative;

    z-index: 1;

    width: 100%;

    max-width: 520px;

    max-height:
        calc(100vh - 40px);

    padding: 22px;

    overflow: hidden;

    border:
        1px solid rgba(255, 255, 255, 0.4);

    border-radius: 21px;

    background:
        white;

    box-shadow:
        0 30px 80px rgba(15, 23, 42, 0.24);
}

.guest-country-modal-header {
    display: flex;

    align-items: flex-start;

    justify-content:
        space-between;

    gap: 15px;

    margin-bottom: 15px;
}

.guest-country-modal-header h2 {
    margin-top: 3px;

    color:
        #172033;

    font-size: 19px;

    font-weight: 850;
}

.guest-country-modal-close,
.guest-stripe-modal-close {
    width: 34px;

    height: 34px;

    flex-shrink: 0;

    border-radius: 10px;

    background:
        #f1f5f9;

    color:
        #64748b;

    display: grid;

    place-items: center;

    font-size: 18px;

    transition:
        0.18s ease;
}

.guest-country-modal-close:hover,
.guest-stripe-modal-close:hover {
    background:
        #e8edf3;

    color:
        #1e293b;
}

.guest-country-search input {
    width: 100%;

    min-height: 48px;

    padding:
        0 14px;

    border:
        1px solid #dce3ec;

    border-radius: 12px;

    background:
        #f9fbfd;

    outline: none;

    font-family:
        inherit;

    font-size: 11px;

    transition:
        0.2s ease;
}

.guest-country-search input:focus {
    border-color:
        var(--primary);

    background:
        white;

    box-shadow:
        0 0 0 4px rgba(22, 119, 255, 0.06);
}

.guest-country-list {
    max-height: 410px;

    margin-top: 11px;

    padding-right: 4px;

    overflow-y: auto;

    scrollbar-width: thin;
}

.guest-country-option {
    width: 100%;

    min-height: 55px;

    padding:
        7px 10px;

    border-radius: 11px;

    display: flex;

    align-items: center;

    gap: 10px;

    text-align: left;

    transition:
        0.16s ease;
}

.guest-country-option:hover {
    background:
        #f3f7fc;
}

.guest-country-option-flag {
    width: 32px;

    flex-shrink: 0;

    text-align: center;

    font-size: 19px;
}

.guest-country-option-info {
    min-width: 0;

    flex: 1;
}

.guest-country-option-info strong {
    display: block;

    color:
        #334155;

    font-size: 10.5px;

    font-weight: 800;
}

.guest-country-option-info span {
    display: block;

    margin-top: 2px;

    color:
        #9aa6b5;

    font-size: 8px;
}

.guest-country-option-code {
    color:
        #64748b;

    font-size: 9.5px;

    font-weight: 750;
}



/* =====================================================
   PREMIUM STRIPE CHECKOUT MODAL
===================================================== */


.guest-stripe-button-loader {
    width: 15px;
    height: 15px;

    border:
        2px solid rgba(255, 255, 255, 0.4);

    border-top-color: white;

    border-radius: 50%;

    animation:
        guestStripeSpin 0.7s linear infinite;
}

@keyframes guestStripeSpin {
    to {
        transform: rotate(360deg);
    }
}

.guest-stripe-modal {
    position: fixed;
    inset: 0;
    z-index: 2500;

    padding: 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(10px);
}


.guest-stripe-modal[hidden] {
    display: none;
}


.guest-stripe-modal-card {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 560px;

    max-height: calc(100vh - 48px);

    padding: 0;

    overflow-y: auto;
    overflow-x: hidden;

    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 24px;

    background: #ffffff;

    box-shadow:
        0 32px 80px rgba(15, 23, 42, 0.28),
        0 8px 25px rgba(15, 23, 42, 0.08);

    scrollbar-width: thin;
}


/* HEADER */

.guest-stripe-modal-header {
    position: sticky;
    top: 0;
    z-index: 10;

    padding: 22px 24px 18px;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;

    border-bottom: 1px solid #eef2f7;

    background:
        rgba(255, 255, 255, 0.96);

    backdrop-filter: blur(12px);
}


.guest-stripe-modal-header .panel-eyebrow {
    color: #1677ff;

    font-size: 9px;
    font-weight: 900;

    letter-spacing: 0.9px;
}


.guest-stripe-modal-header h2 {
    margin-top: 5px;

    color: #0f172a;

    font-size: 23px;
    font-weight: 900;

    letter-spacing: -0.6px;
}


.guest-stripe-modal-header p {
    margin-top: 5px;

    color: #94a3b8;

    font-size: 10px;
    line-height: 1.55;
}


.guest-stripe-modal-close {
    width: 36px;
    height: 36px;

    flex: 0 0 36px;

    border: 1px solid #e2e8f0;
    border-radius: 11px;

    background: #f8fafc;

    color: #64748b;

    display: grid;
    place-items: center;

    font-size: 18px;

    cursor: pointer;

    transition: 0.18s ease;
}


.guest-stripe-modal-close:hover {
    background: #f1f5f9;
    color: #0f172a;

    transform: translateY(-1px);
}


/* ORDER SUMMARY */

.guest-stripe-summary {
    margin: 20px 24px 0;
    padding: 16px;

    border: 1px solid #e5eaf1;
    border-radius: 16px;

    background:
        linear-gradient(145deg,
            #f8fafc,
            #fbfdff);
}


.guest-stripe-summary>div {
    min-height: 35px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}


.guest-stripe-summary span {
    color: #64748b;

    font-size: 10px;
    font-weight: 600;
}


.guest-stripe-summary strong {
    color: #172033;

    font-size: 11px;
    font-weight: 850;
}


.guest-stripe-summary .total {
    min-height: 48px;

    margin-top: 7px;
    padding-top: 12px;

    border-top: 1px solid #e2e8f0;
}


.guest-stripe-summary .total span {
    color: #0f172a;

    font-size: 11px;
    font-weight: 850;
}


.guest-stripe-summary .total strong {
    color: #1677ff;

    font-size: 22px;
    font-weight: 900;

    letter-spacing: -0.5px;
}


/* STRIPE BOX */

.guest-stripe-payment-box {
    margin: 16px 24px 0;
    padding: 16px;

    border: 1px solid #e2e8f0;
    border-radius: 17px;

    background: #ffffff;

    box-shadow:
        0 5px 18px rgba(15, 23, 42, 0.04);
}


/* ERROR */

.guest-stripe-error {
    margin: 12px 24px 0;
    padding: 11px 13px;

    border: 1px solid #fecaca;
    border-radius: 12px;

    background: #fff7f7;

    color: #b91c1c;

    font-size: 10px;
}


/* ACTION AREA */

.guest-stripe-actions {
    position: sticky;
    bottom: 0;
    z-index: 10;

    margin-top: 18px;
    padding: 16px 24px 20px;

    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 10px;

    border-top: 1px solid #eef2f7;

    background:
        rgba(255, 255, 255, 0.96);

    backdrop-filter: blur(12px);
}


.guest-stripe-cancel-button,
.guest-stripe-pay-button {
    min-height: 50px;

    border-radius: 13px;

    font-size: 11px;
    font-weight: 850;
}


.guest-stripe-cancel-button {
    border: 1px solid #dce3eb;

    background: #f8fafc;

    color: #475569;

    cursor: pointer;
}


.guest-stripe-cancel-button:hover {
    background: #f1f5f9;
}


.guest-stripe-pay-button {
    border: 0;

    background:
        linear-gradient(135deg,
            #0c5fd5,
            #1677ff);

    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    box-shadow:
        0 10px 24px rgba(22, 119, 255, 0.22);

    cursor: pointer;
}


.guest-stripe-pay-button:hover {
    transform: translateY(-1px);

    box-shadow:
        0 13px 30px rgba(22, 119, 255, 0.28);
}


/* SECURITY NOTE */

.guest-stripe-security {
    margin: 0;
    padding: 0 24px 18px;

    display: flex;
    justify-content: center;
    gap: 7px;

    color: #94a3b8;
}


.guest-stripe-security p {
    margin: 0;

    max-width: 330px;

    font-size: 8.5px;
    line-height: 1.5;

    text-align: center;
}


/* MOBILE */

@media (max-width: 600px) {

    .guest-stripe-modal {
        padding: 10px;
        align-items: flex-end;
    }


    .guest-stripe-modal-card {
        max-width: none;
        max-height: 94vh;

        border-radius:
            22px 22px 0 0;
    }


    .guest-stripe-modal-header {
        padding:
            18px 18px 15px;
    }


    .guest-stripe-summary,
    .guest-stripe-payment-box {
        margin-left: 16px;
        margin-right: 16px;
    }


    .guest-stripe-actions {
        padding:
            14px 16px 16px;

        grid-template-columns:
            1fr;
    }


    .guest-stripe-pay-button {
        grid-row: 1;
    }


    .guest-stripe-cancel-button {
        grid-row: 2;
    }


    .guest-stripe-security {
        padding:
            0 16px 16px;
    }
}

/* =====================================================
   PROCESSING MODAL
===================================================== */

.guest-payment-modal {
    position: fixed;

    inset: 0;

    z-index: 2700;

    padding: 20px;

    background:
        rgba(15, 23, 42, 0.62);

    display: grid;

    place-items: center;

    backdrop-filter:
        blur(6px);
}

.guest-payment-modal[hidden] {
    display: none;
}

.guest-payment-modal-card {
    width: 100%;

    max-width: 380px;

    padding:
        32px 26px;

    border-radius: 22px;

    background:
        white;

    text-align: center;

    box-shadow:
        0 35px 90px rgba(15, 23, 42, 0.28);
}

.guest-payment-spinner {
    width: 50px;

    height: 50px;

    margin:
        0 auto 19px;

    border:
        4px solid #e0ecff;

    border-top-color:
        #1677ff;

    border-radius: 50%;

    animation:
        guestProcessingSpin 0.75s linear infinite;
}

@keyframes guestProcessingSpin {
    to {
        transform:
            rotate(360deg);
    }
}

.guest-payment-modal-card h2 {
    color:
        #172033;

    font-size: 18px;

    font-weight: 850;
}

.guest-payment-modal-card p {
    max-width: 290px;

    margin:
        8px auto 0;

    color:
        #7f8b9d;

    font-size: 9.5px;

    line-height: 1.65;
}


/* =====================================================
   SUCCESS
===================================================== */

.guest-success-modal {
    position: fixed;

    inset: 0;

    z-index: 2800;

    padding: 20px;

    background:
        rgba(15, 23, 42, 0.62);

    display: grid;

    place-items: center;

    backdrop-filter:
        blur(6px);
}

.guest-success-modal[hidden] {
    display: none;
}

.guest-success-card {
    width: 100%;

    max-width: 430px;

    padding: 28px;

    border-radius: 23px;

    background:
        white;

    text-align: center;

    box-shadow:
        0 35px 90px rgba(15, 23, 42, 0.28);
}

.guest-success-icon {
    width: 68px;

    height: 68px;

    margin:
        0 auto 16px;

    border:
        1px solid #bbf7d0;

    border-radius: 50%;

    background:
        linear-gradient(145deg,
            #dcfce7,
            #f0fdf4);

    color:
        #15803d;

    display: grid;

    place-items: center;

    font-size: 27px;

    font-weight: 900;

    box-shadow:
        0 8px 20px rgba(21, 128, 61, 0.08);
}

.guest-success-card h2 {
    margin-top: 5px;

    color:
        #172033;

    font-size: 21px;

    font-weight: 900;
}

.guest-success-card>p {
    margin-top: 7px;

    color:
        #8793a5;

    font-size: 9.5px;

    line-height: 1.6;
}

.guest-success-details {
    margin-top: 19px;

    padding: 14px;

    border:
        1px solid #edf1f5;

    border-radius: 14px;

    background:
        #f9fafc;
}

.guest-success-details>div {
    min-height: 36px;

    display: flex;

    align-items: center;

    justify-content:
        space-between;

    gap: 14px;
}

.guest-success-details span {
    color:
        #8b97a7;

    font-size: 8.5px;
}

.guest-success-details strong {
    max-width: 230px;

    color:
        #334155;

    font-size: 9.5px;

    font-weight: 800;

    text-align: right;

    word-break:
        break-word;
}

.guest-success-button {
    width: 100%;

    min-height: 49px;

    margin-top: 18px;

    border-radius: 12px;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1000px) {

    .guest-topup-page {
        max-width: 850px;
    }

    .guest-topup-grid {
        grid-template-columns:
            1fr;
    }

    .guest-topup-right-column {
        position: static;

        display: grid;

        grid-template-columns:
            repeat(2,
                minmax(0, 1fr));
    }

    .guest-topup-side-card:first-child {
        grid-column:
            1 / -1;
    }
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 700px) {

    .guest-topup-main {
        min-height:
            calc(100vh - 64px);
    }

    .guest-topup-header-inner {
        min-height: 64px;

        padding:
            0 16px;
    }

    .guest-topup-secure-badge {
        display: none;
    }

    .guest-topup-page {
        padding:
            25px 15px 45px;
    }

    .guest-topup-page-heading {
        margin-bottom: 22px;
    }

    .guest-topup-page-heading h1 {
        font-size: 28px;

        letter-spacing:
            -1px;
    }

    .guest-topup-page-heading p {
        font-size: 11px;
    }

    .guest-topup-card {
        padding: 18px;

        border-radius: 17px;
    }

    .guest-topup-card-header {
        margin-bottom: 17px;

        padding-bottom: 14px;
    }

    .guest-topup-card-header h2 {
        font-size: 17px;
    }

    .guest-topup-phone-grid {
        grid-template-columns:
            1fr;
    }

    .guest-detect-button {
        width: 100%;
    }

    .guest-amount-options {
        grid-template-columns:
            repeat(3,
                minmax(0, 1fr));
    }

    .guest-topup-right-column {
        grid-template-columns:
            1fr;
    }

    .guest-topup-side-card:first-child {
        grid-column: auto;
    }

    .guest-country-modal,
    .guest-stripe-modal,
    .guest-payment-modal,
    .guest-success-modal {
        padding: 11px;
    }

    .guest-country-modal-card,
    .guest-success-card {
        max-height: calc(100vh - 22px);
        padding: 19px;
        border-radius: 18px;
    }

    .guest-stripe-modal-card {
        max-height: 94vh;
        padding: 0;
    }
}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 480px) {

    .guest-topup-header-actions {
        gap: 6px;
    }

    .guest-topup-login-link {
        min-height: 34px;

        padding:
            0 11px;
    }

    .guest-topup-page-heading h1 {
        font-size: 25px;
    }

    .guest-amount-options {
        grid-template-columns:
            repeat(2,
                minmax(0, 1fr));
    }

    .guest-promo-form {
        grid-template-columns:
            1fr;
    }

    .guest-promo-button {
        width: 100%;
    }

    .guest-promo-applied {
        align-items:
            flex-start;

        flex-direction:
            column;
    }

    .guest-stripe-actions {
        grid-template-columns:
            1fr;
    }

    .guest-stripe-pay-button {
        grid-row: 1;
    }

    .guest-stripe-cancel-button {
        grid-row: 2;
    }

    .guest-success-details>div {
        align-items:
            flex-start;

        flex-direction:
            column;

        gap: 3px;

        padding:
            6px 0;
    }

    .guest-success-details strong {
        max-width: 100%;

        text-align: left;
    }
}


/* =========================================
   MANUAL OPERATOR SELECTION
========================================= */

.guest-manual-operator-grid {
    display: grid;
    grid-template-columns: repeat(2,
            minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}


.guest-manual-operator-option {
    width: 100%;
    min-height: 82px;

    display: flex;
    align-items: center;
    gap: 14px;

    padding: 14px 16px;

    border: 1px solid #e5e7eb;
    border-radius: 16px;

    background: #ffffff;

    cursor: pointer;

    text-align: left;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease,
        background 0.2s ease;
}


.guest-manual-operator-option:hover {
    border-color: #2563eb;

    transform:
        translateY(-2px);

    box-shadow:
        0 8px 24px rgba(15, 23, 42, 0.08);
}


.guest-manual-operator-option.active {
    border-color: #2563eb;

    background:
        #eff6ff;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.1);
}


.guest-manual-operator-logo {
    width: 50px;
    height: 50px;

    flex: 0 0 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-radius: 14px;

    background: #f8fafc;
}


.guest-manual-operator-logo img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    padding: 5px;
}


.guest-manual-operator-logo span {
    font-size: 24px;
}


.guest-manual-operator-info {
    min-width: 0;

    flex: 1;

    display: flex;
    flex-direction: column;

    gap: 4px;
}


.guest-manual-operator-info strong {
    color: #0f172a;

    font-size: 15px;
    font-weight: 700;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.guest-manual-operator-info span {
    color: #64748b;

    font-size: 13px;
}


.guest-manual-operator-check {
    width: 26px;
    height: 26px;

    flex: 0 0 26px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #2563eb;
    color: #ffffff;

    font-size: 13px;
    font-weight: 800;

    opacity: 0;

    transform: scale(0.75);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}


.guest-manual-operator-option.active .guest-manual-operator-check {
    opacity: 1;

    transform: scale(1);
}


@media (max-width: 640px) {

    .guest-manual-operator-grid {
        grid-template-columns: 1fr;
    }

}