/* ============================================================
   Блок быстрого пополнения — по образцу playerok.com
   (светлая адаптация под тему Pro Seller)
   ============================================================ */

.topup {
    padding: 16px 0 10px;
}

/* ---------- Полоска быстрого пополнения (карточка поверх баннера) ---------- */

.topup__strip-wrap {
    position: relative;
    z-index: 2;
    margin-bottom: 14px;
}

.topup__strip {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 14px 16px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 28px rgba(28, 39, 51, 0.12);
    scrollbar-width: none;
}

.topup__strip::-webkit-scrollbar {
    display: none;
}

.topup__strip-item {
    flex: 0 0 auto;
    width: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    font: inherit;
}

.topup__strip-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #dfe7ef, #c9d6e4);
    overflow: hidden;
    transition: transform .15s ease;
}

.topup__strip-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.topup__strip-item:hover .topup__strip-icon {
    transform: translateY(-2px);
}

.topup__strip-item.is-active .topup__strip-icon {
    box-shadow:
        0 0 0 2px #fff,
        0 0 0 4px #1268b3;
}

.topup__strip-item.is-active .topup__strip-name {
    color: #1268b3;
}

.topup__strip-icon--a { background: linear-gradient(135deg, #f7941e, #e86a10); }
.topup__strip-icon--b { background: linear-gradient(135deg, #7b61ff, #5636d6); }
.topup__strip-icon--c { background: linear-gradient(135deg, #2ecc71, #16a34a); }
.topup__strip-icon--d { background: linear-gradient(135deg, #ff5f6d, #d62839); }
.topup__strip-icon--e { background: linear-gradient(135deg, #00b8d9, #0086a8); }
.topup__strip-icon--f { background: linear-gradient(135deg, #f4511e, #bf360c); }

.topup__strip-caption {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    max-width: 76px;
}

.topup__strip-name {
    font-size: 12px;
    line-height: 1.2;
    font-weight: 600;
    color: #333;
    text-align: center;
    max-width: 76px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topup__strip-sub {
    font-size: 10px;
    line-height: 1.2;
    font-weight: 600;
    color: #7b8794;
    text-transform: uppercase;
    letter-spacing: .03em;
    max-width: 76px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- Табы сервисов: капсула с иконками ---------- */

.topup__tabs {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 5px;
    background: #e9eef5;
    border-radius: 999px;
    margin-bottom: 18px;
}

.topup__tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #55606c;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}

.topup__tab:hover {
    color: #1268b3;
}

.topup__tab.is-active {
    background: #fff;
    color: #1268b3;
    box-shadow: 0 2px 8px rgba(28, 39, 51, 0.16);
}

/* ---------- Панели ---------- */

.topup__panels {
    position: relative;
}

.topup__panel {
    display: none;
}

.topup__panel.is-active {
    display: block;
}

.topup__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.topup__title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #1c2733;
}

/* ---------- Круглые переключатели валют ---------- */

.topup__currency {
    display: inline-flex;
    gap: 8px;
}

.topup__cur {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #e9eef5;
    color: #333;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.topup__cur--wide {
    width: auto;
    border-radius: 999px;
    padding: 0 14px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.topup__chip.is-active {
    background: #1268b3;
    color: #fff;
}

.topup__chip.is-active:hover {
    background: #0e5a9e;
    color: #fff;
}

.topup__cur:hover {
    color: #1268b3;
}

.topup__cur.is-active {
    background: #1268b3;
    color: #fff;
}

/* ---------- Поля с плавающей меткой (как у playerok) ---------- */

.topup__form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.topup__form--single {
    grid-template-columns: 1fr;
    margin-top: 12px;
}

.topup__box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    min-height: 62px;
    padding: 8px 16px 10px;
    background: #f2f5f9;
    border-radius: 14px;
    box-shadow: inset 0 0 0 2px transparent;
    transition: box-shadow .15s ease;
    cursor: text;
}

.topup__box:focus-within {
    box-shadow: inset 0 0 0 2px #1268b3;
}

.topup__box-label {
    font-size: 12px;
    line-height: 1.3;
    color: #7b8794;
}

.topup__box-input,
.topup__box-select {
    width: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    color: #1c2733;
    font-size: 18px;
    font-weight: 600;
    font-family: inherit;
    outline: none;
}

.topup__box-input::placeholder {
    color: #a8b3c0;
    font-weight: 500;
}

.topup__box-input[type="number"] {
    -moz-appearance: textfield;
}

.topup__box-input::-webkit-outer-spin-button,
.topup__box-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.topup__box-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237b8794' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 22px;
    cursor: pointer;
}

.topup__box-wrap {
    position: relative;
    display: block;
}

.topup__box-wrap .topup__box-input {
    padding-right: 30px;
}

.topup__hint-icon {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #c3cfdc;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    font-style: italic;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: help;
}

.topup__note {
    min-height: 20px;
    margin-top: 6px;
    font-size: 13px;
}

.topup__note--ok { color: #16a34a; }
.topup__note--err { color: #d62839; }

/* ---------- Мета-строка: комиссия / курс + быстрые суммы ---------- */

.topup__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin: 10px 0 14px;
}

.topup__meta-label {
    font-size: 14px;
    color: #333;
}

.topup__badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    background: #1268b3;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    vertical-align: 1px;
}

.topup__badge--orange {
    background: #f59e0b;
}

.topup__chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.topup__chip {
    padding: 6px 13px;
    border-radius: 999px;
    border: 0;
    background: #e9eef5;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.topup__chip:hover {
    background: #1268b3;
    color: #fff;
}

/* ---------- Кнопка оплаты: градиент с «утопленным» низом ---------- */

.topup__pay {
    display: block;
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: inset 0 -2px 0 0 rgba(0, 0, 0, 0.22);
    transition: filter .15s ease;
}

.topup__pay:active:not(:disabled) {
    transform: translateY(2px);
    box-shadow: none;
}

.topup__pay:hover:not(:disabled) {
    filter: brightness(1.06);
}

.topup__pay:disabled {
    cursor: not-allowed;
    filter: saturate(.25) opacity(.75);
}

.topup__pay--blue {
    background: linear-gradient(90deg, #144a9e, #1268b3 50%, #0ea5e9);
}

.topup__pay--blue:disabled {
    background: linear-gradient(90deg, #7e97b5, #8aa6c2 50%, #93b3c9);
}

.topup__pay--orange {
    background: linear-gradient(90deg, #d97706, #f59e0b 55%, #fbbf24);
    color: #3d2800;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.topup__pay--orange:disabled {
    background: linear-gradient(90deg, #d8c3a5, #ddcbaa 55%, #e3d5bc);
}

.topup__pay.is-loading {
    pointer-events: none;
    filter: brightness(.9);
}

/* ---------- Сообщения и статус ---------- */

.topup__message {
    margin-top: 12px;
    font-size: 14px;
    min-height: 18px;
}

.topup__message--ok { color: #16a34a; }
.topup__message--err { color: #d62839; }

.topup__message a {
    color: #1268b3;
    text-decoration: underline;
}

.topup__status {
    margin-top: 16px;
    padding: 16px 20px;
    border-radius: 16px;
    background: #f2f5f9;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 15px;
}

.topup__status[hidden] {
    display: none;
}

.topup__status-icon {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #d9e7f5 url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2Zm1 10.6V7h-2v6.4l4.6 2.7 1-1.7-3.6-2.1Z' fill='%231268b3'/%3E%3C/svg%3E") center/18px no-repeat;
    animation: topup-pulse 1.2s ease-in-out infinite;
}

.topup__status--done .topup__status-icon {
    background: #e5f6eb url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2Z' fill='%2316a34a'/%3E%3C/svg%3E") center/18px no-repeat;
    animation: none;
}

.topup__status--failed .topup__status-icon {
    background: #fdecec url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2Zm1 15h-2v-2h2v2Zm0-4h-2V7h2v6Z' fill='%23d62839'/%3E%3C/svg%3E") center/18px no-repeat;
    animation: none;
}

@keyframes topup-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .45; }
}

/* ---------- Адаптив ---------- */

@media (max-width: 767px) {
    .topup {
        padding: 12px 0 6px;
    }

    .topup__strip-wrap {
        margin-bottom: 10px;
    }

    .topup__strip {
        padding: 12px;
        gap: 10px;
        border-radius: 16px;
    }

    .topup__strip-item {
        width: 64px;
    }

    .topup__strip-icon {
        width: 50px;
        height: 50px;
        border-radius: 14px;
        font-size: 21px;
    }

    .topup__tabs {
        margin-bottom: 14px;
    }

    .topup__title {
        font-size: 19px;
    }

    .topup__cur {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }

    .topup__cur--wide {
        width: auto;
    }

    .topup__form {
        gap: 10px;
    }

    .topup__box {
        min-height: 56px;
        padding: 7px 12px 8px;
        border-radius: 12px;
    }

    .topup__box-input,
    .topup__box-select {
        font-size: 15px;
    }

    .topup__meta {
        margin: 8px 0 12px;
    }

    .topup__chips {
        width: 100%;
    }

    .topup__pay {
        height: 48px;
        font-size: 15px;
    }
}
