body {
    margin: 0;
    font-family: "Inter", sans-serif;
    background: radial-gradient(circle at 70% 40%, rgba(0, 0, 0, 0.15), transparent 60%), #000F22;
    color: #ffffff;
}

* {
    font-family: "Inter", sans-serif;
}

.wrapper {
    width: 1440px;
    margin: 0 auto;
    position: relative;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 180px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo {
    font-size: 30px;
    font-weight: 700;
}

.nav-left nav a {
    color: #002D68;
    text-decoration: none;
    margin-right: 25px;
    font-size: 16px;
    transition: 0.2s;
    font-weight: 700;
}

.active-nav {
    color: #ffffff !important;
}

.nav-left nav a:hover {
    color: white;
}

.nav-login {
    width: 90px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0672FF, #3F92FF);
    border-radius: 15px;
    border: none;
    font-family: "Inter", sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #FFFFFF;
    cursor: pointer;
    transition: 0.2s ease;
}

.nav-login:hover {
    filter: brightness(1.15);
}

.exchange-rate {
    text-align: center;
    color: #0672FF;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
    opacity: 0.95;
}

.robuxblue {
    width: 17px;
    height: 18px;
    vertical-align: middle;
    margin-left: 1px;
}

.hero {
    text-align: center;
    font-weight: 700;
    margin-top: 10px;
}

.hero h1 {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.25;
    margin-top: 0;
    margin-bottom: -10px;
}

.blue {
    background: linear-gradient(135deg, #ffffff, #ffffff);
    -webkit-background-clip: text;
    color: transparent;
}

.tabs-container {
    position: relative;
    display: flex;
    width: 523px;
    height: 40px;
    margin: 22px auto 0;
    background: #000F22;
    border: 1.7px solid #002D68;
    border-radius: 15px;
    padding: 4px;
    box-sizing: border-box;
}

/* Островок */
.tab-highlight {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 170px;
    height: 30px;
    background: #001D42;
    border-radius: 10px;
    transition: 0.25s ease;
    z-index: 1;
}

/* Кнопки табов */
.tab {
    flex: 1;
    border: none;
    background: transparent;
    color: white;
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    letter-spacing: 0.2px;
}

.purchase {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.block1 {
    width: 430px;
    height: 390px;
    background: #000F22;
    border: 1.7px solid #002D68;
    border-radius: 20px;
    box-shadow: 0 0 150px rgba(0, 71, 187, 0.4);
    padding: 20px 25px;
    box-sizing: border-box;
}

.pay-label {
    color: #004EB3;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    display: block;
    margin-bottom: 10px;
}

.label-bottom {
    margin-top: 18px;
}

.pay-input {
    width: 375px;
    height: 70px;
    background: #000F22;
    border: 0.7px solid #002D68;
    border-radius: 15px;

    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

/* Поле ввода */
.pay-input input {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    color: #ffffff;
    padding: 0 60px 0 18px;
    font-size: 26px;
    font-weight: 700;
}

/* Иконка ₽ */
.suffix {
    position: absolute;
    right: 18px;
    font-size: 27px;
    color: #004EB3;
}

/* Иконка робуксов справа */
.robux-icon {
    width: 26px;
    height: 28px;
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
}

/* Убираем стрелки у number input */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type=number] {
    -moz-appearance: textfield;
}

.pay-input input:focus {
    outline: none;
}

/* Кнопки 500 / 1000 */
.pay-buttons {
    display: flex;
    gap: 10px;
}
.pay-btn {
    width: 75px;
    height: 31px;
    background: #000F22;
    border: 1.7px solid #002D68;
    border-radius: 10px;
    color: #004EB3;
    font-weight: 500;
    font-size: 18px;
    cursor: pointer;
}

/* ============================= */
/* ========= СЛАЙДЕР =========== */
/* ============================= */

.rbx-slider {
    width: 375px;
    height: 40px;
    margin: 6px auto 0;
    position: relative;
}

/* Невидимый input */
.rbx-hidden-slider {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

/* Трек */
.rbx-slider-track {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    height: 10px;
    background: #00091A;
    border-radius: 999px;
}

.rbx-slider-fill {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 10px;
    background: #002D68;
    border-radius: 999px;
    width: 0%;
    transition: none; /* <<< Вот это важно */
}

/* Бабл */
.rbx-slider-thumb {
    position: absolute;
    top: 50%;
    transform: translateY(-50%); /* ← правильный вариант */

    width: 65px;
    height: 30px;
    padding: 0 10px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;

    background: linear-gradient(135deg, #3F92FF, #0672FF);
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: white;
    z-index: 5;
}

.rbx-slider-value {
    font-weight: 600;
}

.rbx-slider-icon {
    width: 15px;
    height: 15px;
}

/* "В наличии" */
.rbx-stock {
    width: 375px;
    margin: 12px auto 0;
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 600;
    color: #0672FF;
}
.rbx-stock-label {
    opacity: 0.85;
}
.rbx-stock-value {
    opacity: 0.9;
}

/* ============================= */
/* ====== COMPARE BLOCK ======== */
/* ============================= */

.block2 {
    width: 430px;
    height: 44px;
    padding: 20px 25px;
    box-sizing: border-box;
    background: #000F22;
    border: 1.7px solid #002D68;
    border-radius: 15px;

    display: flex;
    align-items: center;
    overflow: hidden;
}

.compare-container {
    width: 375px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.compare-text {
    color: #0672FF;
    font-weight: 600;
    font-size: 15px;
}

.compare-values {
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: 50%;
    justify-content: flex-end;
}

.compare-old {
    font-size: 15px;
    color: #002D68;
    text-decoration: line-through;
    font-weight: 600;
}

.compare-icon-old {
    width: 15px;
    height: 15px;
}

.compare-new {
    font-size: 16px;
    font-weight: 700;
    color: #3F92FF;
}

.compare-icon-new {
    width: 16px;
    height: 16px;
}

/* ============================= */
/* ========= КНОПКИ ============ */
/* ============================= */

.buy-btn {
    width: 430px;
    height: 45px;
    margin-top: 4px;

    background: linear-gradient(135deg, #3F92FF, #0672FF);
    border: none;
    border-radius: 15px;

    color: white;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
}

.buy-btn:hover {
    filter: brightness(1.1);
}

.promo-btn {
    margin-top: 1px;
    background: transparent;
    border: none;
    color: #3F92FF;
    font-size: 15px;
    font-weight: 200;
    cursor: pointer;

    display: block;
    margin-left: auto;
    margin-right: auto;
    transition: 0.15s ease;
}

.promo-btn:hover {
    color: #67a8ff;
}

/* ============================= */
/* ===== ТВОИ МОДАЛКИ И Т.Д. === */
/* ===== (оставлены как есть) == */
/* ============================= */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: #1c1c1c;
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 480px;
    text-align: center;
    position: relative;
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 14px;
    font-size: 26px;
    cursor: pointer;
}

.purple-btn {
    background: linear-gradient(135deg, #a991ff, #7f66ff);
    padding: 14px;
    border-radius: 12px;
    color: white;
    border: none;
    font-weight: 600;
    margin-top: 20px;
    cursor: pointer;
}

/* Модалки ожидания/успеха могут использовать доп. стиль,
   если он у тебя был — просто добавь сюда .stylish-modal и т.п. */

.stylish-modal {
    background: #1a1a1c;
    border-radius: 18px;
    padding: 30px 24px;
    text-align: center;
}

/* Последние покупки */

.recent-purchases {
    margin-top: 50px;
    text-align: center;
}

.purchases-list {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.purchase-item {
    display: flex;
    align-items: center;
    background: #1a1a1a;
    border-radius: 10px;
    padding: 8px 12px;
    width: 160px;
}

.purchase-avatar {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    margin-right: 10px;
}

.purchase-info .nickname {
    font-weight: 600;
}

.purchase-info .amount {
    color: #a991ff;
    font-size: 13px;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    justify-content: center;
    align-items: center;
    z-index: 2000;

    animation: fadeIn 0.25s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.modal.show {
    display: flex;
}

.modal-content {
    background: #06101f;
    border-radius: 22px;
    padding: 32px 28px;
    width: 92%;
    max-width: 470px;
    text-align: center;

    border: 1.5px solid #003b85;
    box-shadow: 0 0 60px rgba(0, 98, 255, 0.25);

    animation: modalPop 0.25s ease;
}

@keyframes modalPop {
    from {
        transform: translateY(20px) scale(0.96);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: #3F92FF;
    margin-bottom: 8px;
}

.modal-content p {
    font-size: 15px;
    color: #94b8ff;
    margin-bottom: 18px;
}

/* Поле ввода */
.modal-content input[type="text"] {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;

    background: #000F22;
    border: 1.5px solid #00306e;
    color: #fff;
    font-size: 16px;
    font-weight: 500;

    transition: 0.2s;
}

.modal-content input[type="text"]:focus {
    border-color: #3F92FF;
    outline: none;
    box-shadow: 0 0 10px rgba(63,146,255,0.4);
}

/* Крестик */
.close-btn {
    position: absolute;
    right: 18px;
    top: 12px;
    font-size: 26px;
    cursor: pointer;
    color: #3F92FF;
    transition: 0.15s;
}

.close-btn:hover {
    color: #6db1ff;
}

/* Кнопка “Далее” */
.purple-btn {
    background: linear-gradient(135deg, #3F92FF, #0672FF);
    padding: 14px;
    border-radius: 14px;
    color: white;
    border: none;
    font-weight: 600;
    font-size: 16px;
    width: 100%;
    margin-top: 20px;
    cursor: pointer;
    transition: 0.2s;
}

.purple-btn:hover {
    filter: brightness(1.15);
}

.purple-btn.disabled {
    opacity: 0.4;
    cursor: default;
}

/* Список пользователей / игр */
.user-list, .experience-list {
    margin-top: 12px;
    max-height: 260px;
    overflow-y: auto;
    border-radius: 14px;
    padding-right: 6px;
}

.user-item, .experience-item {
    background: #09172b;
    border: 1px solid #002d68;
    padding: 12px;
    border-radius: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: 0.2s;
}

.user-item:hover, .experience-item:hover {
    background: #00306e;
}

.user-item img, .experience-item img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    margin-right: 12px;
}
