/* Top-up page styles (SPA integrated) */

#view-topup {
    padding: 80px 16px 100px;  /* ✅ Увеличен top для шапки */
    max-width: 600px;
    margin: 0 auto;
}

.topup-header {
    text-align: center;
    margin-bottom: 24px;
}

.topup-header h1 {
    font-size: 26px;
    font-weight: 700;
    color: white;
    margin: 0 0 8px 0;
}

.topup-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* Info card */
.topup-info-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.topup-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topup-info-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.topup-info-value {
    font-size: 14px;
    font-weight: 600;
    color: white;
}

/* Result card */
.topup-result-card {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.2), rgba(114, 137, 218, 0.15));
    border: 2px solid rgba(88, 101, 242, 0.4);
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 28px;
    text-align: center;
}

.topup-result-amount {
    font-size: 42px;
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.topup-result-tokens {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.topup-result-tokens #topupTokensAmount {
    font-weight: 700;
    color: white;
}

/* Бонус отдельной строкой с пульсирующей анимацией */
.topup-bonus-line {
    margin-top: 12px;
    padding: 10px 16px;
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    animation: bonus-pulse 2s ease-in-out infinite;
}

.topup-bonus-line #topupBonusText {
    color: #FFD700;
    font-weight: 700;
    font-size: 15px;
}

@keyframes bonus-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(255, 215, 0, 0);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
    }
}

/* Form */
.topup-form {
    margin-bottom: 28px;
}

.topup-input-label {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
    font-weight: 500;
}

/* Поле ввода суммы */
.topup-input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.topup-amount-input {
    width: 100%;
    padding: 16px 50px 16px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.topup-amount-input:focus {
    outline: none;
    border-color: rgba(88, 101, 242, 0.5);
    background: rgba(255, 255, 255, 0.12);
}

/* Remove spinner arrows */
.topup-amount-input::-webkit-outer-spin-button,
.topup-amount-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.topup-amount-input[type=number] {
    -moz-appearance: textfield;
}

.topup-currency {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

.topup-slider-container {
    position: relative;
}

.topup-amount-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.15);
    outline: none;
    margin-bottom: 12px;
}

.topup-amount-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5865F2, #7289DA);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4);
}

.topup-amount-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5865F2, #7289DA);
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4);
}

.topup-slider-marks {
    display: flex;
    justify-content: space-between;
    padding: 0 4px;
}

.topup-mark {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

/* Пометки бонусов */
.topup-mark-bonus {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.topup-mark-bonus .mark-value {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.topup-mark-bonus .mark-label {
    font-size: 9px;
    font-weight: 700;
    color: #FFD700;
    background: rgba(255, 215, 0, 0.15);
    padding: 2px 6px;
    border-radius: 6px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

/* Payment button */
.topup-button-container {
    margin-bottom: 28px;
}

.topup-payment-btn {
    width: 100%;
    background: linear-gradient(135deg, #5865F2, #7289DA);
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
}

.topup-payment-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.topup-payment-btn:not(:disabled):active {
    transform: translateY(2px);
}

/* Payment info */
.topup-payment-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.topup-payment-info h3 {
    font-size: 15px;
    font-weight: 600;
    color: white;
    margin: 0 0 12px 0;
}

.topup-payment-info ul {
    margin: 0;
    padding: 0 0 0 20px;
    list-style: disc;
}

.topup-payment-info li {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 6px;
}

.topup-payment-info li:last-child {
    margin-bottom: 0;
}
