/* === ОБЩИЙ СТИЛЬ И ФУТЕР === */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    display: flex;
    flex-direction: column;
}

/* === ОСНОВНОЙ ФОН КОНТЕНТА === */
.content-wrapper {
    flex: 1 0 auto;
    background-color: rgba(14, 11, 24, 0.82);
    width: 100%;
    padding-top: 20px;
    box-sizing: border-box;
}

@media (max-width: 700px) {
    .content-wrapper {
        padding-left: 15px;
        padding-right: 15px;
    }
}

.wrapper {
    width: 100%;
    max-width: 470px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* === БЛОК 1: Шапка раздела + выбор категории === */
.main__steam {
    width: 100%;
    max-width: 470px;
    margin: 0 auto;
}

.main__steam-content {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

/* Вместо баннера-фото — градиентная шапка в цветах Steam */
.main__steam-content-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 20px;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.18), rgba(240, 171, 252, 0.06));
    border-bottom: 1px solid rgba(168, 139, 250, 0.16);
}

.main__steam-content-header img {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 14px;
}

.main__steam-content-header-text h2 {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.main__steam-content-header-text p {
    color: #a79fc7;
    font-size: 13px;
    font-weight: 500;
    margin: 0;
}

.main__steam-content-donate {
    padding: 20px;
    text-align: center;
}

.main__steam-content-donate-name {
    color: #fff;
    font-size: 17px;
    font-weight: 500;
    margin: 0 0 15px 0;
}

.main__steam-content-donate-method {
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 400px;
    margin: 0 auto;
    flex-wrap: nowrap;
}

.main__steam-content-donate-method-topup {
    position: relative;
    width: 100%;
    height: 42px;
    background-color: rgba(167, 139, 250, 0.16);
    border: 1px solid rgba(167, 139, 250, 0.45);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    color: inherit;
    transition: 0.2s ease;
}

.main__steam-content-donate-method-soon {
    position: relative;
    width: 100%;
    height: 42px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    color: #6b6b6b;
    cursor: not-allowed;
}

.aa1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
}

.main__steam-content-donate-method-topup-name1,
.main__steam-content-donate-method-soon-name1 {
    font-weight: 500;
    font-size: 14px;
    margin: 0;
}

.main__steam-content-donate-method-topup-name1 { color: #fff; }
.main__steam-content-donate-method-soon-name1 { color: #6b6b6b; }

.main__steam-content-donate-method-topup-name2,
.main__steam-content-donate-method-soon-name2 {
    font-size: 12px;
    font-weight: 500;
    margin: 3px 0 0 0;
}

.main__steam-content-donate-method-topup-name2 { color: #c4b5fd; }
.main__steam-content-donate-method-soon-name2 { color: #555; }

/* === БЛОК: Предупреждение перед товарами === */
.main__steam-warning {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px;
    padding: 12px 14px;
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.28);
    border-radius: 14px;
    color: #fcd96b;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    margin: 0;
}

.main__steam-warning img {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* === БЛОК 2: Товары пополнения === */
.main__steam-donate-topup {
    width: 100%;
    max-width: 470px;
    margin: 20px auto;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    padding: 20px;
    box-sizing: border-box;
}

.main__steam-donate-topup-name {
    color: #fff;
    font-size: 19px;
    font-weight: 500;
    text-align: center;
    margin: 10px 0;
}

/* === КАЛЬКУЛЯТОР ПОПОЛНЕНИЯ === */
.steam-calc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 400px;
    margin: 0 auto 14px;
    padding: 12px 16px;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(168, 139, 250, 0.16);
    border-radius: 14px;
}

.steam-calc-row.steam-calc-total {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.2), rgba(240, 171, 252, 0.08));
    border-color: rgba(167, 139, 250, 0.45);
}

.steam-calc-label {
    color: #a79fc7;
    font-size: 14px;
    font-weight: 500;
}

.steam-calc-value {
    color: #c4b5fd;
    font-size: 18px;
    font-weight: 700;
}

.steam-calc-total .steam-calc-value {
    color: #fff;
}

.steam-calc-field {
    max-width: 400px;
    margin: 0 auto 14px;
}

.steam-calc-field label {
    display: block;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.steam-calc-field input[type="number"] {
    width: 100%;
    height: 44px;
    box-sizing: border-box;
    padding: 0 14px;
    background-color: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(168, 139, 250, 0.16);
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    outline: none;
    transition: border-color 0.15s ease;
}

.steam-calc-field input[type="number"]:focus {
    border-color: rgba(167, 139, 250, 0.45);
}

.steam-calc-field input[type="number"]::-webkit-inner-spin-button,
.steam-calc-field input[type="number"]::-webkit-outer-spin-button {
    opacity: 1;
}

.steam-calc-hint {
    color: #8a82a8;
    font-size: 12px;
    font-weight: 500;
    margin: 6px 0 0 0;
}

.main__steam-donate-topup-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0px;
    max-width: 400px;
    margin: 15px auto 0;
    justify-content: center;
}

.main__steam-donate-topup-content-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 12px;
    position: relative;
    margin: 10px;
}

.main__steam-donate-topup-content-item:hover {
    transform: translateY(-3px);
}

.main__steam-donate-topup-content-item.selected {
    transform: translateY(0);
}

.main__steam-donate-topup-content-item.selected .topup-icon {
    border: 2px solid #a78bfa;
}

.main__steam-donate-topup-content-item.selected::before {
    content: "Выбран";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #a78bfa, #f0abfc);
    color: #140c26;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 10px;
    white-space: nowrap;
    z-index: 2;
}

.main__steam-donate-topup-content-item .topup-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 90px;
    border-radius: 15px;
    border: 2px solid transparent;
    background: linear-gradient(145deg, rgba(167, 139, 250, 0.22), rgba(240, 171, 252, 0.07));
    transition: all 0.2s ease;
}

.main__steam-donate-topup-content-item .topup-amount {
    color: #f3f1fb;
    font-size: 22px;
    font-weight: 700;
}

.main__steam-donate-topup-content-item .topup-name {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    margin: 8px 0 4px 0;
    text-align: center;
    max-width: 130px;
    line-height: 1.2;
    display: block;
}

.main__steam-donate-topup-content-item .topup-price {
    color: #c4b5fd;
    font-size: 16px;
    font-weight: 450;
    margin: 0;
    text-align: center;
    display: block;
}

/* === КНОПКА "КУПИТЬ" === */
.main__steam-donate-pay-pay {
    display: block;
    margin: 15px auto;
    width: 400px;
    max-width: 100%;
    height: 40px;
    background: linear-gradient(135deg, #a78bfa, #f0abfc);
    color: #140c26;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 8px 20px rgba(167, 139, 250, 0.25);
}

.main__steam-donate-pay-pay:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(167, 139, 250, 0.35);
}

.main__steam-donate-pay-pay:disabled {
    background: rgba(255, 255, 255, 0.08);
    color: #777;
    cursor: not-allowed;
    box-shadow: none;
}

/* === БЛОК 3: Инструкция === */
.main__steam-guide {
    width: 100%;
    max-width: 470px;
    margin: 20px auto;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.main__steam-guide-content {
    padding: 20px;
    max-width: 400px;
    margin: 0 auto;
}

.gg1 {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    gap: 3px;
}

.main__steam-guide-content-1-name {
    color: #fff;
    font-size: 17px;
    font-weight: 500;
}

.main__steam-guide-step {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    margin-bottom: 10px;
}

.main__steam-guide-step img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.main__steam-guide-step p {
    color: #919191;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
    padding-top: 2px;
    padding-bottom: 2px;
    word-wrap: break-word;
}

/* === ОТЗЫВЫ === */
.main__steam-reviews {
    width: 100%;
    max-width: 470px;
    margin: 20px auto;
}

.main__steam-reviews .reviews-outer {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    padding: 20px;
}

/* === МОБИЛЬНЫЙ РЕЖИМ === */
@media (max-width: 700px) {
    .main__steam,
    .main__steam-donate-topup,
    .main__steam-guide,
    .main__steam-reviews {
        width: 100%;
        max-width: 470px;
    }

    .main__steam-donate-topup-content-item:hover {
        transform: translateY(0px);
    }

    @media (max-width: 485px) {
        .main__steam,
        .main__steam-donate-topup,
        .main__steam-guide,
        .main__steam-reviews {
            width: 100%;
        }

        .main__steam-donate-topup-content {
            grid-template-columns: repeat(2, 1fr);
            gap: 0px;
            margin: 15px auto;
        }

        .main__steam-donate-topup-content-item .topup-icon {
            width: 140px;
        }
    }

    .main__steam-content-donate-method {
        flex-direction: column;
        gap: 10px;
    }

    .main__steam-content-donate-method-topup,
    .main__steam-content-donate-method-soon {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .main__steam-donate-topup-content-item .topup-name,
    .main__steam-donate-topup-content-item .topup-price {
        font-size: 15px;
    }

    .main__steam-donate-pay-pay {
        width: 100%;
        max-width: 400px;
        margin: 15px auto;
    }
}

@media (max-width: 767px) {
    .main__steam-content,
    .main__steam-donate-topup,
    .main__steam-guide {
        border: none;
    }
}

/* === БАННЕР СКИДКИ === */
.discount-banner {
    background: linear-gradient(135deg, #2a475e, #66c0f4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    padding: 15px;
    margin: 20px 0;
    text-align: center;
    animation: pulse 2s infinite alternate;
    position: relative;
    overflow: hidden;
}

.discount-banner-content {
    position: relative;
    z-index: 3;
    color: white;
}

.discount-banner h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.discount-banner p {
    margin: 0;
    font-size: 14px;
    opacity: 0.95;
}

@media (max-width: 768px) {
    .discount-banner {
        margin: 20px 0;
        padding: 16px;
    }
    .discount-banner h3 {
        font-size: 18px;
    }
    .discount-banner p {
        font-size: 13px;
    }
}

/* === УГОЛОК СО СКИДКОЙ НА ТОВАРЕ === */
.discount-ribbon {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #a78bfa, #f0abfc);
    color: #140c26;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 8px;
    z-index: 3;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


/* === AURORA: БЕЙДЖИ ИНСТРУКЦИИ === */
.guide-icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(167, 139, 250, 0.15);
  color: #c4b5fd;
  font-size: 12px;
  font-weight: 700;
  font-style: italic;
  flex-shrink: 0;
}

.guide-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a78bfa, #f0abfc);
  color: #140c26;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

/* === Выпадающий список валюты Steam === */
.steam-select {
  width: 100%;
  height: 44px;
  box-sizing: border-box;
  padding: 0 14px;
  background-color: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(168, 139, 250, 0.16);
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  outline: none;
}
.steam-select:focus { border-color: rgba(167, 139, 250, 0.45); }
.steam-select option { background: #1a1530; color: #f3f1fb; }

/* === Текстовое поле логина Steam — как числовое === */
.steam-calc-field input[type="text"] {
  width: 100%;
  height: 44px;
  box-sizing: border-box;
  padding: 0 14px;
  background-color: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(168, 139, 250, 0.16);
  border-radius: 12px;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  outline: none;
  transition: border-color 0.15s ease;
}
.steam-calc-field input[type="text"]:focus { border-color: rgba(167, 139, 250, 0.45); }
.steam-calc-field input[type="text"]::placeholder { color: #8a82a8; }
/* Убираем белый фон автозаполнения браузера */
.steam-calc-field input:-webkit-autofill,
.steam-calc-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  -webkit-box-shadow: 0 0 0 1000px rgba(26, 21, 48, 0.9) inset;
  caret-color: #fff;
}

/* === Кнопки категорий Steam (Aurora) === */
.main__steam-content-donate-method { gap: 12px; max-width: 440px; }
.main__steam-content-donate-method-topup,
.main__steam-content-donate-method-soon { height: 52px; border-radius: 16px; }
.main__steam-content-donate-method-topup {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.38), rgba(240, 171, 252, 0.18));
    border: 1px solid rgba(196, 181, 253, 0.7);
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.12), 0 10px 28px rgba(139, 92, 246, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.main__steam-content-donate-method-topup:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.2), 0 14px 34px rgba(139, 92, 246, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.main__steam-content-donate-method-topup-name1 { font-weight: 700; letter-spacing: 0.2px; }
.main__steam-content-donate-method-topup-name2 { color: #ede9fe; opacity: 0.85; }
.main__steam-content-donate-method-soon {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(167, 139, 250, 0.25);
    box-shadow: none;
}
.main__steam-content-donate-method-soon-name1 { color: #8b85a3; }
.main__steam-content-donate-method-soon-name2 {
    display: inline-block;
    margin-top: 4px;
    padding: 1px 8px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #a78bfa;
    background: rgba(167, 139, 250, 0.12);
    border-radius: 999px;
}
