body {
    font-family: 'Open Sans';
    margin: 0;
    padding: 0;
    background-color: #000000;
    color: white;
}

@font-face {
    font-family: 'RPG';
    src: url('/staticfiles/fonts/BreatheFireIii-PKLOB.ttf') format('truetype');
}

a {
    text-decoration: none;
}

a, a:focus, a:active {
    outline: none; /* Убираем стандартную обводку */
    box-shadow: none; /* Убираем тени при фокусе */
    background-color: transparent; /* Убираем фон при нажатии */
  }
  
a img {
    outline: none;
}

a:focus img, a:active img {
    outline: none;
    box-shadow: none;
    background-color: transparent;
}

a {
    -webkit-tap-highlight-color: transparent; /* Убираем подсветку на мобильных устройствах */
}

a:focus, a:active {
    -webkit-tap-highlight-color: transparent; /* Убираем подсветку при фокусе */
}

header {
    background-color: #000000;
    padding: 15px 15px 15px 0px;
    text-align: center;
    position: fixed; /* Сделать заголовок фиксированным */
    top: 0; /* Закрепить его в верхней части страницы */
    width: 100%; /* Растянуть на всю ширину */
    z-index: 2500;
}

header input[type="text"] {
    background-image: url("/staticfiles/img/search.svg");
}

header input[type="text"]:focus {
    animation:  moveBackground 0.3s ease;
}

@keyframes moveBackground {
    0% {
        background-position: 15px 11px;
    }
    50% {
        background-position: 15px 8px;
    }
    75% {
        background-position: 15px 12px;
    }
    100% {
        background-position: 15px 11px;
    }
}

:root {
    --link-color: #9b59b6; /* Цвет по умолчанию */
}
.theme_tg {
    color: var(--link-color) !important;
}

header h1 {
    margin: 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-left: 20px;
    padding-right: 20px;
}

.header-content form {
    flex-grow: 1;
}

header input[type="text"] {
    flex-grow: 1;
    padding: 10px 10px 10px 40px; /* Add padding to the left for the icon */
    border: none;
    border-radius: 11px;
    background-color: #1f1f1f9e;
    background-size: 13px; /* Adjust the size of the image */
    background-position: 15px 10px; /* Position the image */
    background-repeat: no-repeat; /* Prevent repeating */
    color: white;
}

header input[type="text"]::placeholder {
    font-size: 13px; /* Увеличение размера текста плейсхолдера */
}

/* Общие стили для таблиц */
table {
    width: 100%;
    max-width: 100%; /* Ограничивает максимальную ширину таблицы */
    overflow-x: auto; /* Добавляет горизонтальную прокрутку, если таблица выходит за границы */
    display: block; /* Делает таблицу блочным элементом */
    border-collapse: collapse; /* Убирает промежутки между ячейками */
}

th, td {
    word-wrap: break-word; /* Перенос длинных слов на новую строку */
    overflow-wrap: break-word; /* Альтернативное свойство для переноса длинных слов */
    border: 1px solid #2e2e2e; /* Добавляет границу к ячейкам */
    padding: 8px; /* Внутренние отступы ячеек */
}

.profile-container {
    background-color: #1f1f1f9e;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 9px; /* Adjust this value as needed for rounded corners */
}

.profile-img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

main {
    padding: 20px;
    margin-top: 90px; /* Добавить отступ для фиксированного заголовка */
}

.games-more {
    margin: 0;
    display: flex;
    flex-direction: row;
    align-content: stretch;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4px;
}

.games {
    margin-bottom: 20px;
    min-height: 80vh;
}

.products {
    margin-bottom: 65px;
}

.games h2, .products h2 {
    font-size: 19px;
    margin-top: 0;
    margin-bottom: 10px;
}

.game-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 70px;
}

.product-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

#maincontent {
    max-width: 800px;
    margin: auto;
}

.game-item {
    border: 1px solid #ffffff1f;
    background-color: #0b0b0b;
    border-radius: 10px;
    padding: 10px 10px 15px 10px;
    text-align: center;
    width: calc(50% - 10px); /* Two items per row with a gap */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.product-item {
    position: relative;
    border: 1px solid #dddddd17;
    background-color: #0b0b0b;
    border-radius: 10px;
    padding: 10px 10px 15px 10px;
    text-align: center;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Ensure the button stays at the bottom */
    align-items: center;
}

.game-item img, .product-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    max-width: 150px; /* Adjust this value as needed */
    height: 110px; /* Adjust this value as needed */
    object-fit: contain;
}

.game-item p, .product-item p {
    margin: 5px 0 5px 0;
}

/* Сброс стилей для ссылок внутри .game-list */
.game-item a {
    color: inherit; /* Наследовать цвет текста родительского элемента */
    text-decoration: none; /* Убрать подчеркивание */
}

.game-item a:hover {
    text-decoration: underline; /* Добавить подчеркивание при наведении, если нужно */
}

.product-item span {
    font-family: 'RPG';
    color: #00FD64;
}

.buy-button {
    width: 90%;
    background-color: #27ae60;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 0;
    transition: background-color 0.3s, transform 0.3s;
    font-weight: bold;
    border: 1px solid #cfcfcf36;
    border-radius: 5px;
}

.buy-button:hover {
    transform: scale(1.05);
}

.buy-button:active {
    transform: scale(1);
}

@media (min-width: 768px) {
    .game-item {
        width: calc(25% - 10px); /* Four items per row with a gap */
    }

    .product-item {
        width: calc(50% - 10px); /* Two items per row with a gap */
    }
}

@media (max-width: 540px) {
    .game-item, .product-item {
        width: calc(50% - 10px); /* Two items per row with a gap on smaller screens */
    }
}

.coming_soon_img {
    margin-top: 60px;
    width: 100%;
    height: 100%;
}

/* New styles for the balance and payment sections */
.balance-warning {
    margin-bottom: 5px;
}

.balance-warning h2 {
    margin-bottom: 10px;
}

.warning-box {
    background-color: #1f1f1f;
    border-radius: 10px;
    padding: 5px 15px 5px 15px;
    color: white;
    display: flex; /* Добавить flexbox для контейнера */
    align-items: center; /* Выравнивание по вертикали */
}

.warning-icon {
    margin-right: 15px; /* Отступ справа от иконки */
}

.warning-icon img {
    padding-top: 3px;
    width: 34px;
    height: 32px;
}


.warning-text {
    flex-grow: 1; /* Разрешить тексту занимать оставшееся пространство */
}

.warning-text p {
    margin: 0px;
}

.balance-form label {
    display: block;
    margin-bottom: 5px;
}

/* Убедитесь, что основному контейнеру задана правильная ширина */
.balance-form {
    margin-bottom: 5px;
    display: flex;
    flex-direction: column;
}

/* Измените стили для input */
.balance-form input[type="text"] {
    width: 100%;
    max-width: 100%; /* Максимальная ширина 100% */
    box-sizing: border-box; /* Включает padding и border в общую ширину и высоту элемента */
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: #1f1f1f;
    color: white;
    margin-bottom: 12px;
    margin-top: 10px;
}

.quick-buttons {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 5px;
}

.quick-buttons button {
    background-color: #2e2e2e;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
    flex: 1;
    min-width: 80px;
}

.quick-buttons button:hover {
    background-color: #3e3e3e;
}

.payment-method {
    text-align: center;
}

.payment-method h2 {
    margin-bottom: 10px;
}

.radio-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.radio-buttons label {
    display: block;
    margin-bottom: 10px;
}

/* Styles for the profile page */
.profile-page {
    padding: 10px;
    background-color: #0d0d0d73;
    border-radius: 10px;
    margin: 20px auto;
    max-width: 400px;
}

.profile-page h1 {
    font-size: 18px;
    text-align: center;
    margin-bottom: 10px;
}

.profile-info {
    display: flex;
    margin-bottom: 20px;
}

.profile_img {
    width: 60px;
    height: 60px;
    margin-right: 10px;
}

.profile-info h2 {
    font-size: 20px;
    margin: 0;
}

.profile-info p {
    margin: 0;
    color: #aaa;
}

.balance {
    display: flex;
    align-items: center;
}

.balance p {
    margin: 0;
    font-weight: bold;
    flex-grow: 1;
}

.replenish-link {
    font-family: Arial;
    color: #9b59b6;
    text-decoration: none;
}

.replenish-link:hover {
    text-decoration: underline;
}

.get-balance-button {
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    margin-bottom: 20px;
    white-space: nowrap; /* Ensure the text stays on one line */
}

.tabs {
    text-align: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.tab {
    background-color: #2e2e2e;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 7px;
    flex: 1;
    cursor: pointer;
    transition: background-color 0.3s;
}

.tab + .tab {
    margin-left: 10px;
}

.tab.active {
    background-color: #4b4b4b;
}

.empty-message, .orders, .transactions {
    color: #ebebeb;
}

.orders, .transactions {
    max-width: 100%; /* Ограничивает максимальную ширину контейнера */
    overflow-x: auto; /* Добавляет горизонтальную прокрутку, если содержимое выходит за границы */
    display: block; /* Делает контейнер блочным элементом */
}

.orders, .transactions {
    display: none; /* Hide by default */
}

.orders.active, .transactions.active {
    display: block; /* Show the active tab content */
}

/* Modal styles */
.modal {
    display: none; /* Скрываем по умолчанию */
    position: fixed; /* Фиксированное позиционирование */
    z-index: 1; /* На переднем плане */
    left: 0;
    top: 0;
    width: 100%; /* Полная ширина */
    height: 100%; /* Полная высота */
    overflow: auto; /* Включаем прокрутку, если нужно */
    background-color: rgb(0,0,0); /* Цвет фона */
    background-color: rgba(0,0,0,0.4); /* Чёрный с прозрачностью */
    align-items: center; /* Центрируем по вертикали */
    justify-content: center; /* Центрируем по горизонтали */
}

.modal-content {
    background-color: #1f1f1f;
    margin: 45% auto; /* Centered */
    padding: 20px;
    border: 1px solid #393939;
    width: 80%; /* Could be more or less, depending on screen size */
    border-radius: 10px;
    text-align: center; /* Center the text */
    animation: slideIn 0.5s;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s;
}

.close-button:hover, .close-button:focus {
    color: white;
    text-decoration: none;
    cursor: pointer;
    transform: scale(1.1);
}

.confirm-button, .unconfirm-button {
    background-color: #27ae60;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    font-weight: bold;

}

.confirm-button {
    border: 1px solid #cfcfcf36;
    border-radius: 5px;
    box-shadow: 0 0 15px rgb(66 255 120 / 17%);
}

.unconfirm-button {
    background-color: #e74c3c; /* Different color for unconfirm button */
    border: 1px solid #cfcfcf36;
    border-radius: 5px;
    box-shadow: 0 0 15px rgb(255 0 0 / 17%);
}

.confirm-button:hover, .unconfirm-button:hover {
    transform: scale(1.05);
}

.confirm-button:active, .unconfirm-button:active {
    transform: scale(1);
}

.buttons-container {
    display: flex;
    justify-content: center; /* Center the buttons horizontally */
    gap: 10px; /* Space between buttons */
    margin-top: 20px; /* Space above buttons */
}

.game-name {
    font-size: 18px;
}

.order-summary {
    margin-bottom: 190px;
}

.order-summary h2 {
    margin: 0px;
    margin-bottom: 20px;
    text-align: center;
}

.order-detail {
    background-color: #1f1f1f75;
    border-radius: 10px;
    padding: 15px;
}

.order-detail p {
    margin: 5px 0;
}

.email-form {
    margin-bottom: 40px;
}

.email-form label {
    display: block;
    margin-bottom: 5px;
}

.email-input-container {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.email-input-container input[type="text"] {
    flex-grow: 1;
    padding: 10px;
    border: none;
    border-radius: 10px;
    background-color: #1f1f1f75;
    color: white;
    box-sizing: border-box;
}

.send-button {
    background-color: #27ae60;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    font-weight: bold;
}

.code-form {
    margin-bottom: 20px;
}

.code-form label {
    display: block;
    margin-bottom: 5px;
}

.code-form input[type="number"] {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: #1f1f1f75;
    color: white;
    box-sizing: border-box;
}

.order-product-item p {
    margin: 0;
    font-size: 16px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#balance, #total-amount, #balance-total {
    margin-left: 5px;
    color: #f1c40f; /* gold */
}


#product_name {
    margin-left: 4px;
    color: #00FF7F; /* gold */
}

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

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

@keyframes slideIn {
    from {transform: translateY(-100%);}
    to {transform: translateY(0);}
}

#product_price {
    font-family: 'RPG';
    color: #00FD64;
    margin-left: 2px;
}

/* Стили для нижней панели */
.footer-content {
    border: 1px solid #ffffff1a;
    position: fixed;
    display: flex;
    transform: translateX(-50%);
    padding: 0;
    align-items: center;
    text-align: center;

    width: 90%;
    height: 63px;
    left: 50%;
    bottom: 10px;

    border-radius: 15px;
    justify-content: space-around;

    overflow: hidden;
    background-color: #121212;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    max-width: 800px;
}

.footer-icon {
    position: relative; /* Для абсолютного позиционирования текста */
    display: flex;
    flex-direction: column; /* Располагает элементы в колонку */
    align-items: center; /* Центрирует содержимое по горизонтали */
    text-decoration: none; /* Убирает подчеркивание у ссылок */
    color: #333; /* Цвет текста */
}

.footer-icon img {
    height: 32px;
    width: 32px;
    margin-bottom: 9px;
}

/* Стили для заголовка раздела поддержки */
.support-header {
    text-align: center;
    margin-bottom: 20px;
}

/* Стили для часто задаваемых вопросов */
.faq {
    margin-bottom: 20px;
}

.faq h3 {
    margin-top: 0px;
    font-size: 20px;
    margin-bottom: 10px;
    color: #ffffff;
    text-transform: uppercase;
}

.faq-item {
    background-color: #121212;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.faq-item h4 {
    margin: 0;
    font-size: 18px;
    margin-bottom: 5px;
    color: #00FD64;
}

.faq-item p {
    font-size: 16px;
    margin: 0;
    color: #cccccc;
}

/* Стили для раздела контакта с поддержкой */
.contact-support {
    margin-bottom: 20px;
}

.contact-support h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #ffffff;
    text-transform: uppercase;
}

.contact-item {
    background-color: #121212;
    padding: 10px;
    border-radius: 10px;
}

.contact-item p {
    font-size: 16px;
    margin: 5px 0;
    color: #cccccc;
}

.contact-item a {
    color: #ffffff;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}


.payment-method {
    text-align: center;
    margin-bottom: 20px;
    display: none;
}

.payment-method h2 {
    margin-bottom: 10px;
    text-align: left; /* Прижать текст к левой стороне */
    padding-left: 10px; /* Добавить отступ слева, если нужно */
}

.radio-buttons {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-direction: row-reverse;
}

.radio-buttons label {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.radio-buttons input[type="radio"] {
    display: none; /* Скрыть стандартное радиокнопку */
}

.radio-buttons img {
    width: 100px; /* Увеличиваем размер изображения */
    height: auto;
    border: 2px solid transparent;
    border-radius: 5px;
    transition: border-color 0.3s, transform 0.3s;
}

.radio-buttons input[type="radio"]:checked + img {
    border-color: #27ae60; /* Цвет границы для выбранного элемента */
    transform: scale(1.1); /* Увеличиваем размер выбранного элемента */
}

.radio-buttons span {
    font-family: 'Arial';
    font-weight: bold;
    margin-top: 5px;
    color: white; /* Цвет текста */
    font-size: 14px;
}

.error-message {
    color: red;
    font-weight: bold;
    margin-top: 5px;
}

/* Спиннер */
.spinner {
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-top: 2px solid rgb(0, 0, 0);
  border-radius: 50%;
  width: 16px;
  height: 16px;
  animation: spin 1s linear infinite;
  display: inline-block;
  margin-left: 10px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Общие стили для контейнера методов оплаты */
.methods {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    font-family: "Arial";
    font-weight: bold;
}

/* Заголовок */
.methods__title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
}

.methods__item {
    display: flex;
    align-items: center;
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #1f1f1f;
    border-radius: 5px;
    cursor: pointer;
    justify-content: center;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.methods__item input[type="radio"] {
    display: none;
}

.methods__item__icon {
    height: 27px;
}

/* Иконка метода оплаты */
.methods__item__icon img {
    height: 27px;
    margin-right: 10px;
}

.methods__item_active {
    background-color: #1f1f1f;
}

.more-link {
    font-size: 15px;
    color: #008eff;
    text-decoration: none;
}

.more-link:hover {
    text-decoration: underline;
}

.transactions table {
    display: none;
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.transactions th, .transactions td {
    border: 1px solid #2e2e2e;
    padding: 8px;
}

.transactions th {
    background-color: #1f1f1f75;
    text-align: left;
}

.orders table {
    display: none;
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.orders th, .orders td {
    border: 1px solid #2e2e2e;
    padding: 8px;
}

.orders th {
    background-color: #1f1f1f75;
    text-align: left;
}

.success-message {
    padding: 0px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.success-image {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
}

.modal-custom {
    position: fixed;
    z-index: 2500;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content-custom {
    display: flex;
    flex-direction: column;
    border-radius: 7px;
    text-align: center;
}

.modal-content-custom button {
    padding: 10px 20px;
    font-size: 14px;
    background-color: #27ae60;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    font-weight: bold;
}

.loading-overlay-custom {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3500;
}

.support_padding {
    padding-bottom: 10px;
}

.email-form {
    position: relative;
}

.label-container {
    display: flex;
    align-items: center;
}

.question-mark {
    margin-left: 5px;
    cursor: pointer;
    font-size: 18px;
    color: #2ecc71;
}

.image-popup {
    width: 100%;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none; /* По умолчанию скрываем */
    z-index: 1000; /* Убедитесь, что элемент будет над другими элементами */
    max-width: 100%; /* Ограничиваем максимальную ширину, чтобы изображение не выходило за границы экрана */
    max-height: 100%; /* Ограничиваем максимальную высоту */
    background-color: rgba(0, 0, 0, 0.8); /* Полупрозрачный фон для улучшения видимости */
    padding: 20px; /* Внутренние отступы */
    border-radius: 10px; /* Скругленные углы */
}

.image-popup img {
    width: 100%;
    display: block; /* Убираем пробелы вокруг изображений */
    margin: 0 auto; /* Центрируем изображение внутри контейнера */
}

.order-product-item {
    background-color: #121212;
    border: 1px solid #343434;
    border-radius: 10px;
    width: 100%;
    max-width: 100%;
    padding: 15px;
    margin-bottom: 10px;
}

.order-product-item img {
    height: 60px;
    width: 65px;
    border-radius: 5px;
    flex-shrink: 0;
    object-fit: scale-down;
}


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

.product-details, .product-name {
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.price {
    margin-left: 10px;
}

.other_fonts {
    font-family: 'Arial';
}

.product-description {
    font-family: 'Helvetica';

    word-wrap: break-word; /* Перенос длинных слов */
    overflow-wrap: break-word; /* Альтернативное свойство для переноса длинных слов */
    width: 100%; /* Установите ширину контейнера */
    box-sizing: border-box; /* Включает padding и border в ширину контейнера */
    white-space: pre-line; /* Сохраняет переносы строк */
}

.email-input-container {
    max-width: 100%; /* Ограничивает максимальную ширину контейнера */
    overflow: hidden; /* Предотвращает выход текста за границы контейнера */
}

.copy-button {
  background-color: transparent;
  border: none;
  cursor: pointer;
}

.balance-methods {
    width: 100%;
    padding: 9px;
    font-size: 16px;
    background-color: #27ae60;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 11px;
    display: block;
}

.balance-methods a {
    text-decoration: none;
    color:white
}

.balance-methods:hover {
  background-color: #45a049;
}

.base_profile {
    position: absolute; /* Абсолютное позиционирование текста */
    bottom: 0; /* Привязка текста к нижнему краю родительского контейнера */
    left: 50%; /* Центрирование текста по горизонтали */
    transform: translateX(-50%); /* Смещение текста влево на 50% его ширины для точного центрирования */
    font-size: 10px; /* Размер шрифта */
    text-align: center; /* Центрирование текста */
    align-items: center;
    color: #f1f1f1;
    font-size: 9px;
    font-weight: 400;
}


.copy-notification, .cart-add-notification {
    display: none;
    align-items: center;
    justify-content: space-evenly;
    background: linear-gradient(#131313,#131313),linear-gradient(56deg,#2d2d2d .97%,rgba(45,45,45,0) 17.01%,rgba(45,45,45,0) 34.03%,#2d2d2d 52.5%,rgba(45,45,45,0) 68.55%,rgba(45,45,45,0) 85.08%,#2d2d2d 98.2%);
    text-align: center;
    width: auto;
    position: fixed;
    left: 50%;
    bottom: 0;
    margin-bottom: 55px;
    transform: translate(-50%,-50%);
    background-color: #2d2d2d;
    color: #ffffffb8;
    padding: 10px 20px;
    border-radius: 10px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s,visibility .5s;
    z-index: 1000;
    white-space: nowrap
}

.copy-notification img {
    width: 30px;
    margin-right: 5px;
  }
.cart-add-notification img {
    width: 25px;
    margin-right: 5px;
}
.copy-notification.show-notification, .cart-add-notification.show-notification {
    opacity: 1;
    visibility: visible;
}

.cart-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.cart-button img {
    width: 29px;
    height: 34px;
}

.button-group {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 10px; /* Расстояние между кнопками */
    margin-top: 15px; /* Отступ сверху для группы кнопок */
}



.cart-count {
    font-family: 'RPG';
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(-50%, -50%);
    background-color: #121212;
    color: #00FD64;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px; /* Размер текста */
}

.close-image {
    width: 20px !important;
    height: 20px !important;
    margin-left: 5px;
}

.remove-item {
    height: 20px !important;
}

.rpg_style {
    font-family: 'RPG';
    color: #00FD64;
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 2px;
}

.product_quantity {
    white-space: nowrap;
    padding: 0px 5px 0px 5px;
}

.add-to-cart img {
    height: 37px !important;
    width: 37px !important;
}

._form-thank-you {
  text-align: center;
}

._form-thank-you p {
  margin: 0;
}

._form-thank-you span {
  display: block;
}

@keyframes scaleAnimation {
  0% {
    opacity: 0;
    transform: scale(1.5);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes drawCircle {
  0% {
    stroke-dashoffset: 151px;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes drawCheck {
  0% {
    stroke-dashoffset: 36px;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

#successAnimationCircle {
  stroke-dasharray: 151px 151px;
  stroke: #00FD64;
}

#successAnimationCheck {
  stroke-dasharray: 36px 36px;
  stroke: #00FD64;
}

#successAnimationResult {
  fill: #00FD64;
  opacity: 0;
}

#successAnimation.animated {
  animation: 1s ease-out 0s 1 both scaleAnimation;
}

#successAnimation.animated #successAnimationCircle {
  animation: 1s cubic-bezier(0.77, 0, 0.175, 1) 0s 1 both drawCircle, 0.3s linear 0.9s 1 both fadeOut;
}

#successAnimation.animated #successAnimationCheck {
  animation: 1s cubic-bezier(0.77, 0, 0.175, 1) 0s 1 both drawCheck, 0.3s linear 0.9s 1 both fadeOut;
}

#successAnimation.animated #successAnimationResult {
  animation: 0.3s linear 0.9s both fadeIn;
}

.support_padding:last-child {
    margin-bottom: 50px;
}


.help_balance {
    margin-left: 10px; /* Добавьте отступ справа, если нужно */
    width: 24px;
}

.warning_span {
    color: #ff0b44;
    font-weight: bold;
}

.warning_a {
    text-decoration: none;
    color: #15ff82;
    font-weight: bold;
}

.buy_button_effects {
    border: 1px solid #fff;
    border-radius: 5px;
    box-shadow: 0 0 15px rgb(66 255 120 / 80%);
}

.main-footer, .text-sm {
    display: none !important;
}




/* profile */

.items-container {
    display: block;
}

.items {
    width: 100%;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
}

.menu-item {
    cursor: pointer;
    position: relative;
    color: #fff;
    transition: color 0.3s, background 0.3s;
    display: inline-block; /* Важно для правильного расчета ширины */
}

.transaction-list {
    max-width: 500px;
    margin: 20px auto 30px auto;
    border-radius: 10px;
    overflow: hidden;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #333;
    background-color: #131313;
    align-items: center;
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-info {
    display: flex;
    flex-direction: column;
}

.transaction-type {
    font-size: 14px;
    font-weight: bold;
}

.transaction-subtype {
    font-size: 12px;
    color: #999;
}

.transaction-amount {
    font-size: 12px;
    font-weight: 700;
    line-height: 14.48px;
    text-align: right;
}

.transaction-amount.positive {
    color: #00FD64;
}

.transaction-amount.negative {
    color: #EB0D04;
}

.transaction-status {
    font-size: 12px;
    color: #999;
    text-align: right;
}

.transaction-amount.cancelled {
    color: #E6E204;
}

.transaction-id {
    text-align: right;
    text-align: right;
    font-size: 12px;
    font-weight: 400;
    line-height: 14.48px;
    opacity: 50%;
    margin-bottom: 3px;
}

.product-card {
    border: 0.5px solid transparent;
    background: linear-gradient(#131313, #131313), linear-gradient(56deg, #2D2D2D 0.97%, rgba(45, 45, 45, 0) 17.01%, rgba(45, 45, 45, 0) 34.03%, #2D2D2D 52.5%, rgba(45, 45, 45, 0) 68.55%, rgba(45, 45, 45, 0) 85.08%, #2D2D2D 98.2%);
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    padding: 10px;
    margin-bottom: 10px;
    color: #fff;
    position: relative;

    font-size: 12px;
    font-weight: 700;
    line-height: 14.48px;
    text-align: left;
}

.product-card-body {
    overflow: hidden;
    display: flex;
    align-items: center;
}

.product-image {
    display: block;
}

.product-card-image {
    height: 55px;
    width: 65px;
    border-radius: 10px;
    object-fit: scale-down;
}

.product-card-content {
    flex: 1;
    padding: 0 10px;
}

.product-card-content h2 {
    font-size: 14px;
    color: #9e9e9e;
    margin: 0;
    font-size: 10px;
    font-weight: 400;
    line-height: 12.07px;
    text-align: left;
    margin-bottom: 5px;

}

.product-card-content h3 {
    margin: 0;
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    line-height: 14.48px;
    text-align: left;
    margin-bottom: 5px;
}

.product-card-content p {
    margin: 0;
    color: #fff;
    font-size: 10px;
    font-weight: 400;
    line-height: 12.07px;
    text-align: left;
    opacity: 50%;
}


.product-card-footer {
    display: flex;
    align-items: end;
    justify-content: space-between;
    flex-direction: column;
}

.product-id {
    font-size: 12px;
    font-weight: 400;
    line-height: 14.48px;
    text-align: left;
    opacity: 50%;
    margin-bottom: 3px;
}

.product-price {
    color: #00FD64;
    font-size: 16px;
    margin-bottom: 2px;
}

.product-status {
    color: #9e9e9e;
    margin-bottom: 5px;
}

.product-status {
    font-size: 10px;
    font-weight: 400;
    line-height: 12.07px;
    text-align: left;
}

.no-results {
    text-align: center;
    padding: 5px;
    color: #888;
}


.align-center {
    text-align: center;
    margin: 10px;
}

.width30 {
    text-align: center;
    width: 50%;
}

.display-flex {
    display: flex;
}


/* cart */
.product-quantity {
    display: flex;
    align-items: center;
}


.quantity-button {
    color: black;
    font-weight: bold;
    background-color: #afafaf;
    border: none;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
}


.quantity-number {
    margin: 0 10px;
}


/* profile  */

.header-top {
    display: flex;
    justify-content: space-between;
    padding: 0 22px;
    margin-bottom: 10px;
}

.user-info {
    display: flex;
    align-items: center;
}

.profile-image-container {
    position: relative;
    height: 35px;
    border-radius: 5px; /* Скругленные углы */
    margin-right: 8px; /* Отступ справа для разделения с остальной частью */
}

.profile-image-container.bonus-profile-image-container {
    position: relative;
    margin-right: 15px;
}

.user-image {
    height: 35px;
    border-radius: 5px; /* Скругленные углы изображения */
}

.user-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.user-name {
    font-family: Tahoma, "Trebuchet MS", sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 16px;
    color: white;
    margin-bottom: 4px; /* Отступ снизу для разделения с идентификатором */
}

.user-id-container {
    display: flex;
    align-items: center;
}

.user-id {
    opacity: 50%;
    font-family: 'Tahoma';
    font-size: 12px;
    font-weight: 600;
    line-height: 14.48px;
    color: #9A9A9A;
    margin-right: 5px; /* Отступ справа для значка копирования */
}

.copy-icon {
    border-radius: 0px !important;
    width: 15px !important;
    height: 15px !important;
    margin-left: 3px;
}

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

.balance-container {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
}

.bonus-balance-container {
    display: flex;
    justify-content: space-between;
    padding: 0 15px !important;
}

.balance-text {
    color: white;
    align-self: flex-start;
    font-family: Tahoma;
    font-size: 10px;
    font-weight: 400;
    line-height: 12.07px;
    text-align: left;
    opacity: 50%;
}

.balance {
    font-family: 'RPG';
    letter-spacing: 1px;
    color: #00FD64;
    font-weight: bold;
    line-height: 16.9px;
    text-align: left;
    font-size: 14px;
}

.balance_add {
    margin-bottom: 4px;
    margin-left: 6px;
    width: 20px;
    height: 20px;
    align-self: end;
}

.balance_add img {
    width: 20px;
    height: 20px;
}

.header {
    background: #000000;
    padding: 15px 0 2px;;
    text-align: center;
    position: fixed;
    top: 0; /* Закрепить его в верхней части страницы */
    width: 100%; /* Растянуть на всю ширину */
    z-index: 2400;
    max-width: 800px;
}


.search-bar {
    width: 100%;
    margin-top: 3px;
    padding: 0 20px;
    box-sizing: border-box;
}

.search-input {
    width: 100%;
}

/* Обычный стиль инпута с округленными углами */
.search-input {
    border-radius: 4px;
    transition: border-radius 0.3s;
}
  
/* Когда панель поиска открыта — убираем нижние углы */
.search-input.active {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

#search-results {
    display: none;
    position: relative;
}

.search-results {
    background: #131313;
    border: 1px solid #2D2D2D;
    max-height: 200px;
    overflow-y: auto;
    width: 100%;
    display: none;
    border-radius: 0px 0px 5px 5px;
}

.loading-search {
    display: flex;
    justify-content: center;
    min-height: 40px;
}

.loading-search img {
    width: 20px;
}

.bottom-background {
    position: fixed;
    width: 100%;
    height: 12px; /* Высота контейнера */
    bottom: -1px;
    left: 0;
    background-color: #000000;
    z-index: 999; /* Под футером, но над остальным контентом */
}

.bottom-background-cart {
    position: fixed;
    width: 100%;
    height: 36px; /* Высота контейнера */
    bottom: 61px;
    left: 0;
    background-color: #000000;
    z-index: 999; /* Под футером, но над остальным контентом */
}

.product_name_main {
    width: 100%;
    font-size: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
}


.pay-button-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.pay-button {
    background-color: #00FD64;
    box-shadow: 0px 0px 7px 0px #00FD64BF;
    border: none;
    color: #000;
    padding: 9px;
    border-radius: 5px;
    cursor: pointer;
    width: 60%;
    font-size: 15px;
    font-weight: 700;
    line-height: 18.11px;
}

.cart_page_footer {
    border: 1px solid #353535;
    left: 50%;
    background: #121212;
    position: fixed;
    bottom: 90px;
    width: 90%;
    padding-bottom: 20px;
    border-radius: 11px;
    transform: translate(-50%, 0px);
    z-index: 1000;
    transition: transform 0.2s ease;
}

.cart_page_footer::after {
    background: #00FD64;
    width: 10px;
    height: 10px;
}


.popup {
    visibility: hidden;; /* Скрываем попап по умолчанию */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Полупрозрачный черный фон */
    justify-content: center;
    align-items: center;
    z-index: 2500;
}

.popup-content {
    max-height: 80%;
    overflow-y: auto;
    width: 90%;

    background-color: #131313; /* Темный фон */
    padding: 15px 20px 20px 20px;
    border-radius: 9px;
    max-width: 500px; /* Ограничиваем максимальную ширину */
    color: white;
    display: flex;
    flex-direction: column;
    border: 1px solid #272727;
    transform: translateY(-600px); 
    transition: transform 0.2s ease;
}

.popup-content.active {
    transform: translateY(-50px);
}

.popup-content.hide {
    transform: translateY(-600px);
}

.paybutton-instruction {
    text-align: center;
}

/* Стили для плейсхолдера */
.popup-content input::placeholder, .popup-content select::placeholder, .bonus-promocode::placeholder {
    color: white;
    font-size: 13px;
    font-weight: 400;
    opacity: 20%;
}

.popup-content label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 400;
}

.popup-content .close-btn {
    align-self: flex-end;
}

.popup-content input, .popup-content select {
    background-color: #000000; /* Темный фон для инпутов */
    color: #FFFFFF; /* Белый текст в инпутах */
    border: none;
    width: 100%;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 15px;
}

.popup-content button[type="submit"] {
    background-color: #00FD64; /* Зеленый текст */
    box-shadow: 0px 0px 7px 0px #00FD64BF;
    color: black;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    width: 100%;
}

/* Добавляем анимацию плавного появления */

.dynamic-fields.show {
    display: block;
    opacity: 1;
    max-height: 500px; /* Установите максимальную высоту, чтобы плавно анимировать */
}

.popup.show {
    display: flex; /* Показываем попап */
    visibility: initial;
}


.ml-5 {
    margin-left: 5px;
}


.result-item {
    padding: 10px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
    position: relative;
    bottom: -20px;
}

.result-item:not(:last-child) {
    border-bottom: 1px solid #2e2e2e;
}

.product-price-main {
    font-size: 13px;
    font-weight: 700;
    line-height: 14.48px;
    color: #00FD64;
}

.product-card:last-child {
    margin-bottom: 35px;
}

.header-input-container {
    border: 0.5px solid #ffffff36;
    border-radius: 10px;
}


.ribbon {
    position: absolute;
    top: 0;
    left: 0;
}

.ribbon span {
    display: block;
    padding: 4px 12px;
    background-color: #00fd64;
    text-align: center;
    border-top-right-radius: 0;
    border-top-left-radius: 10px;
    border-bottom-right-radius: 15px;
    border-bottom-left-radius: 0;
    box-shadow: 0 0 5px 0 #00fD64BF;
    color: #000;
    font-family: Tahoma, "Trebuchet MS", sans-serif;
    font-size: 10px;
    font-weight: 400;
    line-height: 12.07px;
    text-align: left;
    white-space: nowrap;
}

.ribbon .new-product-span {
    position: absolute;
    display: block;
    padding: 4px 12px;
    background-color: #fd0000;
    text-align: center;
    left: 0;
    top: 0;
    border-top-right-radius: 0;
    border-top-left-radius: 10px;
    border-bottom-right-radius: 15px;
    border-bottom-left-radius: 0;
    box-shadow: 0 0 7px 1px #fd0000BF;
    color: #fff;
    font-family: Tahoma, "Trebuchet MS", sans-serif;
    font-size: 10px;
    font-weight: 400;
    line-height: 12.07px;
    text-align: left;
    white-space: nowrap;
}

.cart-svg-container {
    background-color: rgba(255, 255, 255, 0.03); /* Полупрозрачный белый цвет */
    backdrop-filter: blur(10px); /* Размытие фона */
    position: absolute;
    width: 40px; /* Размер контейнера */
    height: 40px; /* Размер контейнера */
    top: 5px; /* Расстояние от верха */
    right: 5px; /* Расстояние от правого края */
    border-radius: 50%; /* Сделать контейнер круглым */
    display: flex; /* Включить флексы для центровки */
    align-items: center; /* Вертикальная центровка */
    justify-content: center; /* Горизонтальная центровка */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2); /* Небольшая тень для эффекта */
}

.cart-svg {
    height: 20px !important;
    z-index: 2; /* Корзина над галочкой */
    transition: transform 1s ease-in-out, opacity 0.5s ease-in-out;
}

.cart-svg-active .cart-svg {
    animation: rotateCart 1s ease-in-out forwards;
}

/* Вращение корзины и её исчезновение */
@keyframes rotateCart {
    0% {
        transform: rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: rotate(360deg);
        opacity: 0; /* Корзина исчезает к середине */
    }
    100% {
        transform: rotate(720deg);
        opacity: 0; /* Полностью исчезла */
    }
}

.checkmark {
    display: none;
    color: #00FD64;
    font-size: 24px;
    position: absolute;
    transform: scale(0.5); /* Галочка изначально уменьшена */
    transition: transform 0.5s ease-in-out;
}

.checkmark-active {
    opacity: 1; /* Плавно появляется */
    transform: scale(1); /* Плавно увеличивается до нормального размера */
}









* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.custom-modal {
    display: none; /* Изначально скрыто */
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2500;
}

.custom-modal.show {
    display: flex; /* Показать модальное окно, когда есть класс 'show' */
}

.custom-modal-content {
    background-color: rgb(20, 20, 20);
    color: white;
    border-radius: 8px;
    padding: 24px;
    width: 90%;
    max-width: 90%;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
    position: relative;
    transform: scale(0); /* Начальное состояние */
    transition: transform 0.1s cubic-bezier(0.18, -0.55, 0.27, 1.01);
}

.custom-modal.show .custom-modal-content {
    transform: scale(1); /* Конечное состояние */
}

.close-custom-modal-button {
    position: absolute;
    top: 5px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
}

.custom-modal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.custom-modal-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.custom-modal-title {
    font-size: 18px;
    font-weight: bold;
}

.custom-modal-body {
    display: flex;
    gap: 16px;
}

.custom-product-image {
    width: 100%;
    padding: 10px;
    max-width: 230px;
}

.custom-modal-right-column {
    flex-grow: 1;
    width: 100%;
}

.custom-product-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
}

.custom-modal-tag {
    display: inline-block;
    background-color: #ff4081;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 8px;
}

.custom-price-wrapper {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 16px;
}

.custom-final-price {
    color: #00FD64;
    font-size: 18px;
    font-weight: bold;
}

.custom-old-price {
    font-size: 14px;
    text-decoration: line-through;
    color: #888;
}

.custom-buy-button {
    width: 100%;
    padding: 12px 0;
    background-color: #27ae60;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-bottom: 16px;
    transition: background-color 0.3s;
    font-weight: bold;
}

.custom-product-description p {
    margin-bottom: 8px;
    font-size: 14px;
    color: #ddd;
}

@media (max-width: 499px) {
    .banner-image {
        max-height: 120px;
    }

    .custom-modal-body {
        flex-direction: column;
        align-items: center;
    }

    .custom-product-image {
        object-fit: scale-down;
        width: 100%;
        margin: 0 auto;
        max-width: 230px;
    }

    .custom-price-wrapper {
        justify-content: left;
    }

    .custom-buy-button {
        font-size: 14px;
    }
}

@media (min-width: 900px) {
    .banner-image {
        max-height: 300px;
    }
}

.custom-image-background {
    border-radius: 5px;
    width: 100%;
    display: inline-flex;
    background: #1f1f1f;
}

.help-image {
    margin-top: 10px;
}
.help-image img {
    max-width: 100px;
    height: auto;
}


.content-order-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 55vh;
}


.product-order-description {
    text-align: left;
}

.footer-icon {
    transition: transform 0.2s ease;
}

.footer-icon:active {
    transform: scale(1.15);
}

.footer-icon:hover {
    color: transparent;
}


.quantity-button {
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

.quantity-button:active {
    transform: rotate(360deg);
}
