/* Сброс для страниц пополнения */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: #0A0A0F;
    color: #F1F5F9;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.bg-glow {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Навигация */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 100;
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 38px;
    width: auto;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Основной контейнер */
.topup-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 500px;
    padding: 100px 20px 40px;
    margin: 0 auto;
}

/* Ссылка назад */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #94A3B8;
    text-decoration: none;
    margin-bottom: 20px;
    font-size: 14px;
    transition: color 0.3s;
}

.back-link:hover {
    color: white;
}

/* Карточка формы */
.form-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 36px 32px;
}

.platform-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
}

.platform-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 6px;
}

.platform-desc {
    color: #94A3B8;
    font-size: 14px;
    margin-bottom: 28px;
}

/* Сетка сумм */
.amount-label {
    color: #94A3B8;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: block;
}

.amount-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 24px;
}

.amount-btn {
    padding: 14px 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: white;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s;
}

.amount-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
}

.amount-btn.active {
    background: linear-gradient(135deg, #6366F1, #EC4899);
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

/* Поля ввода */
.input-group {
    margin-bottom: 20px;
}

.input-label {
    color: #94A3B8;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

.input-field {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: white;
    font-size: 16px;
    transition: all 0.3s;
}

.input-field:focus {
    outline: none;
    border-color: #6366F1;
    background: rgba(99, 102, 241, 0.1);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.input-field::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

/* Кнопка оплаты */
.btn-pay {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #6366F1, #EC4899);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.btn-pay:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.5);
}

/* Инфо под кнопкой */
.pay-info {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.pay-info span {
    font-size: 12px;
    color: #64748B;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Адаптив */
@media (max-width: 500px) {
    .form-card {
        padding: 24px 20px;
    }
    
    .amount-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .platform-title {
        font-size: 24px;
    }
}


/* Скрываем дублирующий большой заголовок платформы, если баннер уже показан */
body.has-page-banner .form-card > .platform-icon,
body.has-page-banner .form-card > .platform-title,
body.has-page-banner .form-card > .platform-desc,
body.has-page-banner .form-card > h1,
body.has-page-banner .form-card > .subtitle {
  display: none !important;
}
