* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

    scrollbar-width: thin;
    scrollbar-color: #ff8c00 rgba(0, 0, 0, 0.1);
}
html { scrollbar-gutter: stable; }
/* 1) тело как якорь */
body{
    position: relative;
    background-color: #161616;
    background-image: url('https://avatars.mds.yandex.net/i?id=7e148274405fdecdd2417289e95fa543_l-9029247-images-thumbs&ref=rim&n=13&w=2560&h=1600');
    background-size: cover;
    background-attachment: fixed;
    font-family: 'Montserrat', sans-serif;
    min-height: 100vh;
    margin: 0;
    overflow-y: auto;
    overflow-x: hidden;
  }
  
  /* 2) полупрозрачный слой, который блюрит то, что СЗАДИ (картинку body) */
  body::before{
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;             /* не мешает кликам */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);  /* для Safari */
    background: rgba(0, 0, 0, 0.432);     /* лёгкое затемнение, чтобы текст читался */
    z-index: 0;
  }
  
  /* 3) контент поверх */
  .container{ position: relative; z-index: 1; }
  

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    width: 120px; /* Ширина логотипа (можно настроить) */
    height: auto; /* Автоматическая высота, чтобы сохранить пропорции */
    transition: transform 0.3s ease; /* Плавная анимация при наведении */
}

.logo img:hover {
    transform: scale(1.1); /* Увеличение логотипа при наведении */
}

.menu {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex: 1;
}

.menu-item-link {
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.menu-item {
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: color 0.3s ease, transform 0.25s ease;
  cursor: pointer;
  padding: 4px 0;
}

.menu-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, #ff5c5c, #f33c3c);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
  opacity: 0.9;
}

.menu-item:hover {
  color: #ff5c5c;
  transform: translateY(-1px);
}

.menu-item:hover::after {
  transform: scaleX(1);
}
.steam-login-link {
    text-decoration: none;
    display: inline-block;
}

.menu-item:hover {
    color: #ff5c5c;
}

.steam-login {
    display: flex;
    align-items: center;
    padding: 20px 20px;
    background: rgba(255, 255, 255, 0.20);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.steam-login:hover {
    background:linear-gradient(90deg, #ff5c5c, #f33c3cc4);
    box-shadow: 0 4px 15px rgb(255 0 0 / 50%);
}

.steam-login .steam-icon {
    width: 16px;
    height: 16px;
    margin-right: 10px;
}

.steam-login span {
    color: white;
    font-size: 14px;
    font-weight: 500;
}

/* Баннер */
.banner {
    width: 100%;
    height: 294px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 20px;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    position: absolute;
    top: 0;
    left: 0;
}

.server-name {
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.server-status {
    color: rgba(255, 255, 255, 0.70);
    font-size: 12px;
    font-weight: 500;
}

.server-icon {
    width: 16px;
    height: 16px;
    position: absolute;
    top: 22px;
    right: 20px;
}

/* Категории */
.categories {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
    margin-top: 30px;
}

.category-item {
    flex: 1 1 0;
    height: 60px;
    color: white;
    background: rgba(0, 0, 0, 0.20);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.4s ease, box-shadow 0.4s ease, transform 0.2s ease;
    padding: 10px 15px;
    cursor: pointer;
    position: relative;
    z-index: 1;
    overflow: hidden;
}
.category-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, #16161670, #8d8c8ca9);
    z-index: 0;
    transition: all 0.6s ease;
    opacity: 0.2;
}

.category-item:hover::before {
    left: 0;
    opacity: 0.3;
}
.category-item:hover,
.category-item.active-category {
    color: white;
    font-weight: 600;
    box-shadow: 0 0 5px rgb(143 143 143 / 38%);
    transform: translateY(-2px);
}
.category-item span {
    position: relative;
    z-index: 2;
}
/* ===== Карточки товаров: 4 в ряд, кнопка близко к картинке ===== */

.product-section{
    display:grid;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:20px;
    padding:30px 0;
}

/* Карточка */
.product-item{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    background:rgba(53,53,53,0.116);
    border-radius:8px;
    padding:16px;
    backdrop-filter:blur(50px);
    transition:all .3s ease;
    height:320px; /* одинаковая высота, чтобы всё было вровень */
    text-align: center;
}
.product-item:hover{
    background:rgba(255,255,255,0.20);
    box-shadow:0 8px 16px rgba(0,0,0,.2);
    transform:translateY(-5px);
}

/* Картинка в фиксированном боксе */
.product-image{
    height:166px;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    border-radius:6px;
}
.product-image img{
    max-width:100%;
    max-height:100%;
    object-fit:contain;
    display:block;
}

/* Заголовок — 1 строка, эллипсис, фикс. высота строки */
.product-title{
    color:#fff;
    font-size:16px;
    font-weight:600;
    margin-top:8px;
    line-height:1.3;
    height:1.3em;                 /* резерв под 1 строку */
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

/* Описание — 1 строка, эллипсис, минимальный зазор перед кнопкой */
.product-description{
    color:rgba(255,255,255,0.70);
    font-size:12px;
    font-weight:500;
    text-align:center;
    line-height:1.3;
    height:1.3em;                 /* резерв под 1 строку */
    margin:4px 0 8px;             /* маленькое расстояние до кнопки */
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

/* Кнопка покупки — сразу под описанием, одинаковой высоты у всех */
.product-purchase{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:12px;
    color:#fff;
    background:rgba(255,255,255,0.14);
    padding:12px 0;
    border-radius:8px;
    width:100%;
    cursor:pointer;
    transition:background .3s ease, transform .2s ease;
    margin-top:0;                 /* кнопка близко к картинке/описанию */
}
.product-purchase:hover{
    background:linear-gradient(90deg, #ff5c5c, #f33c3cc4);
    transform:translateY(-1px);
}

.product-price{
    background:#fff;
    color:#00aaff;
    font-size:14px;
    font-weight:500;
    padding:6px 10px;
    border-radius:41px;
}

/* Анимация появления — если используешь */
.fade-in{opacity:0;animation:fadeInAnimation .5s ease-in-out forwards;}
@keyframes fadeInAnimation{
    from{opacity:0;transform:translateY(10px)}
    to{opacity:1;transform:translateY(0)}
}

/* пока контейнер НЕ проигрывает .fade-in — карточки скрыты */
.product-section:not(.fade-in) .product-item {
  opacity: 0;
}
/* Footer */
.footer {
    width: 100%;
    height: 100px;
    background: rgba(0, 0, 0, 0.16);
    border-radius: 14px;
    display: flex;
    align-items: center;
    padding: 0 40px;
    justify-content: space-between;
    margin-top: 50px;
    margin-bottom: 20px;
}

.footer-logo {
    color: white;
    font-size: 20px;
    font-family: Montserrat, sans-serif;
    font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 40px;
}

.footer-links a {
  position: relative;
  display: inline-block;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  transition: color 0.3s ease, transform 0.25s ease;
  padding: 4px 0;
  cursor: pointer;
  overflow: hidden;
}

.footer-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, #ff5c5c, #f33c3c);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
  opacity: 0.9;
}

.footer-links a:hover {
  color: #ff5c5c;
  transform: translateY(-1px);
}

.footer-links a:hover::after {
  transform: scaleX(1);
}


.footer-icons {
    display: flex;
    gap: 15px;
}

.icon {
    width: 25px;
    height: 25px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon img {
    width: 20px;
    height: 20px;
}

/* Социальные иконки */
.icon-vk {
    background-color: #4c75a3; /* Цвет ВКонтакте */
}

.icon-youtube {
    background-color: #FF0000; /* Цвет YouTube */
}

.icon-telegram {
    background-color: #37AEE2; /* Цвет Telegram */
}

.icon-discord {
    background-color: #5865F2; /* Цвет Discord */
}

/* Эффект при наведении */
.icon:hover {
    background-color: rgba(255, 255, 255, 0.5);
}
/* ===== Новая универсальная модалка ===== */
.priz-modal{
  position: fixed;
  inset: 0;
  display: none;             /* скрыто по умолчанию */
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(12px);
  z-index: 9999;
  justify-content: center;
  align-items: flex-start;
  padding-top: 60px;
}
.priz-modal.is-open{         /* показать */
  display: flex;
}

.priz-modal__content{
  background: rgba(20,20,30,.35);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 16px;
  padding: 32px;
  width: 560px;
  max-width: 95%;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  position: relative;
  box-shadow: 0 12px 30px rgba(0,0,0,.6);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  animation: priz-zoomIn .35s ease forwards;
  text-align: center;

  /* 🔽 добавлено для прокрутки при маленьких экранах */
  max-height: 90vh;                /* не выше окна браузера */
  overflow-y: auto;                /* вертикальный скролл */
  -webkit-overflow-scrolling: touch; /* плавный скролл на iOS */
  overscroll-behavior: contain;    /* не проталкивать фон */
}

@keyframes priz-zoomIn{
  from{ transform: scale(.9); opacity: 0; }
  to  { transform: scale(1);  opacity: 1; }
}

.priz-modal__close{
  position: absolute; top: 14px; right: 18px;
  font-size: 26px; color: #fff; cursor: pointer; opacity: .75;
  transition: opacity .2s ease, transform .2s ease; font-weight: bold; z-index: 10;
}
.priz-modal__close:hover{ opacity:1; transform: rotate(90deg) scale(1.1); }

.priz-modal h2{
  margin-bottom: 20px; font-size: 24px; font-weight: 700;
  text-shadow: 0 0 8px rgba(151,25,255,.5); color:#fff;
}

/* Контент приза (оставил твои стили) */
#winInfo img{
  margin-top: 14px;
  max-width: 320px;
  border-radius: 12px;
  border: 2px solid #9719FF;
  box-shadow: 0 0 18px rgba(151,25,255,.6);
  transition: transform .3s;
}
#winInfo img:hover{ transform: scale(1.05); }

.modal-buttons{ display:flex; justify-content:center; gap:14px; margin-top:24px; }
.modal-buttons .save-button{
  padding:12px 20px; font-size:14px; font-weight:600; border:none; border-radius:10px; cursor:pointer;
  background: linear-gradient(135deg, #9719FF, #6a11cb); color:#fff;
  box-shadow: 0 0 10px rgba(151,25,255,.4);
}
.modal-buttons .save-button:hover{
  background: linear-gradient(135deg, #7d17cc, #5b0fa7);
  transform: scale(1.05);
  box-shadow: 0 0 16px rgba(151,25,255,.5);
}


/* === Overlay с плавным проявлением === */
.modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;              /* ⬅ по умолчанию нет в потоке */
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
  backdrop-filter: blur(50px);
}
.modal.is-open{
  display: flex;              /* ⬅ показываем только тут */
  opacity: 1;
  pointer-events: auto;
}
.modal.is-closing{
  opacity: 0;
  pointer-events: none;
}
.modal[aria-hidden="true"]{ display:none !important; }


/* === Стеклянная карточка контента === */
.modal-content {
  width: min(720px, 94vw);
  max-height: min(82vh, 880px);
  overflow: auto; /* общий скролл у модалки при переполнении */
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #fff;
  font-family: 'Montserrat', sans-serif;

  /* центрируем содержимое и позволяем детям растягиваться на всю ширину */
  display: flex;
  flex-direction: column;
  align-items: stretch;

  padding: 16px 16px 18px;
  transform: translateY(8px) scale(0.985);
  opacity: 0;
  transition: transform 0.42s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.42s ease;
}
.modal.is-open .modal-content { transform: translateY(0) scale(1); opacity: 1; }

/* === Картинка товара (фиксируем высоту, не сжимается) === */
#modalImageContainer {
  width: 100%;
  /* aspect-ratio убрали, чтобы не прыгало */
  height: clamp(220px, 36vw, 320px); /* адаптивная фиксируемая высота */
  flex: 0 0 auto;                    /* картинку не сжимать */

  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0 0;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  margin: 0 auto;               /* центр в контейнере */
}
#modalImage {
  height: 100%;          /* вписываем по высоте контейнера */
  width: auto;           /* ширина по содержимому */
  max-width: 100%;       /* но не вылезаем по ширине */
  object-fit: contain;
}
.discount-badge, .days-badge { filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.35)); }

/* === Заголовок, описание, категория — центр === */
#modalTitle{
  margin-top:14px;
  font-size: clamp(17px, 2.2vw, 20px);
  font-weight: 800;
  letter-spacing: .2px;
  text-align: center;
  width: 100%;
  flex: 0 0 auto;
}
#modalDescription{
  margin: 6px 0 14px;
  color: rgba(255,255,255,.78);
  font-size: 14px;
  text-align: center;
  width: 100%;
  flex: 0 0 auto;
}
.category-badge.under-image{
  margin: 10px auto 0;          /* центрируем бейдж */
  font-weight: 600;
  display: inline-block;
  flex: 0 0 auto;
}

/* === Количество — на всю ширину === */
.quantity-control{
  width: 100%;
  box-sizing: border-box;
  margin: 12px 0 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  user-select: none;
  flex: 0 0 auto;
}
.quantity-control div{
  min-width: 36px; height: 36px;
  display:inline-flex; align-items:center; justify-content:center;
  border-radius: 8px; cursor:pointer; color:#fff;
  transition: transform .12s ease, background .2s ease, border-color .2s ease;
  border: 1px solid transparent;
  font-size: 18px; font-weight: 700;
}
.quantity-control div:hover{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.22);
  transform: translateY(-1px);
}
.quantity-control .quantity{
  flex: 1 1 auto;               /* растягиваем центр */
  text-align: center;
  font-weight: 800;
  font-size: 16px;
  color:#fff;
}

/* === Кнопка выбора сервера — на всю ширину === */
#serverSelect{
  width: 100%;
  height: 48px; 
  line-height: 48px;
  padding: 0 16px;
  border-radius: 10px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.20);
  color: rgba(255,255,255,.85);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .15s ease;
  font-family: Montserrat, sans-serif; font-weight: 600; font-size: 14px;
  margin: 6px 0 8px;
  position: relative; z-index: 2;
  flex: 0 0 auto;
}
#serverSelect:hover:not(:disabled){
  transform: translateY(-1px);
  background-color: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.28);
  box-shadow: 0 8px 18px rgba(0,0,0,.25);
}
#serverSelect:active:not(:disabled){ transform: translateY(0); box-shadow: 0 4px 10px rgba(0,0,0,.22); }

/* === Список серверов (со скроллом) — на всю ширину контейнера === */
#serverList{
  display: none;
  width: 100%;
  max-height: 260px;
  overflow-y: auto;              /* явный скролл внутри списка */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 6px;
  border-radius: 10px;
  backdrop-filter: blur(8px);
  color: rgba(255,255,255,.85);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.35) transparent;
  box-sizing: border-box;
  flex: 0 0 auto;               /* чтобы не пытался занимать всю высоту */
}
#serverList::-webkit-scrollbar{ width: 6px; }
#serverList::-webkit-scrollbar-thumb{ background: rgba(255,255,255,.35); border-radius: 4px; }
#serverList::-webkit-scrollbar-track{ background: transparent; }

.server-item{
  width: 100%;
  display:flex; align-items:center; justify-content:center;
  padding: 10px 12px;
  border-radius: 8px;
  color: rgba(255,255,255,.85);
  font-weight: 600; letter-spacing: .2px;
  background: rgba(255,255,255,.10);
  transition: background .15s, transform .12s, color .15s;
  cursor: pointer;
  margin-bottom: 6px; text-align: center;
}
.server-item:last-child{ margin-bottom: 0; }
.server-item:hover{ background: rgba(255,255,255,.16); transform: translateY(-1px); color:#00aaff; }
.server-item:active{ transform: translateY(1px); }

/* === Кнопка "Купить" — на всю ширину и по центру === */
.purchase-button{
  width: 100%;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  margin-top: 12px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
  cursor: pointer;
  transition: background .25s, border-color .25s, transform .12s;
  flex: 0 0 auto;
}
.purchase-button:hover{
  background: rgba(255,255,255,.24);
  border-color: rgba(255,255,255,.28);
  transform: translateY(-1px);
}
.purchase-button span{
  color:#fff; font-size:14px; font-family: Montserrat, sans-serif; font-weight:500;
}
.purchase-button .price{
  background:#fff; color:#00aaff; font-size:14px; font-weight:500;
  padding:6px 10px; border-radius:41px;
}

/* === Мобильные правки === */
@media (max-width: 560px){
  .modal-content{ border-radius: 12px; }
  #modalTitle{ font-size: 17px; }
}

/* === Уважение к "уменьшить анимацию" === */
@media (prefers-reduced-motion: reduce){
  .modal, .modal-content{ transition: none !important; transform: none !important; }
}


::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff8c00, #ffd700);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ffd700, #ff8c00);
}


/* Полоска прогресса */
.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.5);
    animation: progress 3s linear forwards; /* Анимация полоски */
}

@keyframes progress {
    from {
        width: 100%;
    }
    to {
        width: 0;
    }
}


.container {
    width: 90%;
    max-width: 1400px;
    padding: 0 20px;
    margin: 20px auto; /* Центрирование с помощью margin */
}

/* Навигация */
.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.16);
    border-radius: 14px;
    margin-bottom: 20px;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.menu {
    display: flex;
    gap: 20px;
}

.menu-item {
    font-size: 14px;
    font-weight: 500;
    color: white;
    cursor: pointer;
}


.profile-section {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
  transition: transform .15s ease, border-color .2s ease, background .25s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.profile-section:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.profile-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  width: 100%;
  color: inherit;
}

.profile-info {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1.15;
}

.profile-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.3px;
  transition: color 0.25s ease;
}

.profile-balance {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}

.profile-section:hover .profile-name {
  color: #ff5c5c;
}

.profile-avatar {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.3s ease;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.profile-section:hover .profile-avatar {
  border-color: rgba(255, 92, 92, 0.8);
}

.profile-section:hover .profile-avatar img {
  transform: scale(1.06);
  filter: brightness(1.1);
}

@media (max-width: 600px) {
  .profile-section {
      padding: 10px 12px;
      gap: 10px;
  }
  .profile-avatar {
      width: 34px;
      height: 34px;
  }
  .profile-name {
      font-size: 13px;
  }
  .profile-balance {
      font-size: 12px;
  }
}


/* Информация */
.info-section {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 8px;
}

.info-header {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.info-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
}

.info-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-name {
    font-size: 18px;
    font-weight: 600;
}

.info-balance {
    display: flex;
    gap: 5px;
    align-items: center;
}

.info-balance .label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.info-balance .value {
    font-size: 18px;
    font-weight: 600;
}

/* Кнопка "Пополнить" */
.top-up-button {
    background: rgba(156, 39, 39, 0.8); /* Тёмный фон */
    color: white; /* Белый текст */
    padding: 10px 20px;
    border-radius: 41px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: box-shadow 0.3s ease, background 0.3s ease; /* Плавный переход */
}

.top-up-button:hover {
    box-shadow: 0 4px 15px rgba(151, 25, 255, 0.5); /* Светящаяся тень */
    background: rgb(47, 65, 219); /* Ещё более насыщенный тёмный фон */
    color: white; /* Белый текст остаётся неизменным */
}

.info-container {
    width: 50%; /* Уменьшенная ширина */
    max-width: 600px; /* Максимальная ширина */
    margin: 0; /* Полностью убираем отступы */
    background: rgba(0, 0, 0, 0.20);
    border-radius: 8px;
    padding: 30px;
    display: flex;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.info-avatar {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.info-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.info-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-nickname {
    font-size: 18px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: white;
}

.info-balance {
    display: flex;
    gap: 5px;
    align-items: center;
}

.info-balance .label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.info-balance .value {
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.info-row {
    display: flex; /* Для размещения элементов в одну строку */
    justify-content: space-between; /* Разделение текста и значения по краям */
    align-items: center; /* Вертикальное выравнивание */
    width: 100%; /* Ширина строки */
    gap: 10px; /* Расстояние между текстом и значением */
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: white;
}

.info-label {
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap; /* Запрещает перенос текста */
}

.info-value {
    color: white;
    text-align: right;
    flex-grow: 1; /* Заполняет оставшееся пространство */
}


.top-up-button {
    background: white;
    color: #9719FF;
    padding: 10px 20px;
    border-radius: 41px;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: box-shadow 0.3s ease, background 0.3s ease;
    align-self: flex-start; /* Расположить кнопку в начале блока */
}

.top-up-button:hover {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(151, 25, 255, 0.5);
    color: #9719FF;
}

/* Дополнительные данные */
.info-data {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-row {
    display: flex;
    justify-content: space-between;
}

.info-row .label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}
.info-row.steam-id {
    justify-content: space-between;
    padding: 0 20px; /* Добавляем отступы вместо абсолютного позиционирования */
}
.info-row .value {
    font-size: 14px;
    font-weight: 500;
    text-align: right;
}
/* Секция таблицы */
.purchases-section {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 20px;
}

/* Заголовок таблицы */
.table-header {
    display: flex;
    justify-content: space-between;
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.20);
}

.header-item {
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: white;
    text-align: left;
    flex: 1;
}

/* Для равномерного выравнивания столбцов */
.header-item:nth-child(1) {
    text-align: left; /* Товар */
}

.header-item:nth-child(2) {
    text-align: center; /* Кол-во */
}

.header-item:nth-child(3) {
    text-align: center; /* Сервер */
}

.header-item:nth-child(4) {
    text-align: right; /* Дата покупки */

}.header-item:nth-child(5) {
    text-align: right; /* Дата покупки */
}

/* Таблица с данными */
.table-body {
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.5);
}

/* Строки таблицы */
.table-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 30px;
    transition: background-color 0.3s ease;
}

.table-row:nth-child(odd) {
    background: rgba(255, 255, 255, 0.1);
}

.table-row:nth-child(even) {
    background: rgba(255, 255, 255, 0.05);
}

.table-row:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Ячейки таблицы */
.row-item {
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: white;
    text-align: left;
    flex: 1;
}

/* Для выравнивания ячеек по столбцам */
.row-item:nth-child(1) {
    text-align: left; /* Товар */
}

.row-item:nth-child(2) {
    text-align: center; /* Кол0-во */
}

.row-item:nth-child(3) {
    text-align: center; /* Сервер */
}

.row-item:nth-child(4) {
    text-align: right; /* Дата покупки */
}

.row-item:nth-child(5) {
    text-align: right; /* Стоимость */
}

/* Статусы платежей */
.status-completed {
    color: #10b981; /* Зелёный цвет для завершённых */
}

.status-pending {
    color: #FFA500; /* Оранжевый цвет для ожидающих */
}

.status-failed {
    color: #FF6347; /* Красный цвет для неудачных */
}

/* Секция промокодов */
.promocode-section {
    width: 100%;
    background: rgba(0, 0, 0, 0.20);
    border-radius: 8px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Заголовок */
.promocode-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.promocode-title {
    font-size: 18px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: white;
}

.promocode-description {
    font-size: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.70);
}

/* Поле ввода */
.promocode-input {
    width: 100%;
    max-width: 344px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.20);
    border-radius: 8px;
    padding: 0 20px;
    height: 57px;
}

.promocode-input input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: white;
}

.promocode-input input::placeholder {
    color: rgba(255, 255, 255, 0.70);
}

/* Кнопка активации */
.promocode-button {
    width: 100%;
    max-width: 344px;
    height: 57px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #9719FF;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.promocode-button:hover {
    background: #7d17cc;
    box-shadow: 0 4px 15px rgba(151, 25, 255, 0.5);
}

.promocode-button span {
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: white;
}

/* ===== Контейнер для кнопок ===== */
.info-buttons {
  display: flex;
  flex-direction: column; /* кнопки одна под другой */
  align-items: flex-end;
  gap: 10px;               /* ← вот отступ между кнопками */
  margin-top: 10px;
}

/* ===== Кнопка Пополнить ===== */
.popolnenie-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  min-width: 120px;
  height: 48px;

  background: linear-gradient(90deg, #9719FF, #7d17cc);
  border: none;
  border-radius: 10px;

  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  cursor: pointer;

  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(151, 25, 255, 0.3);
}

.popolnenie-button:hover {
  background: linear-gradient(90deg, #7d17cc, #9719FF);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(151, 25, 255, 0.45);
}

.popolnenie-button:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(151, 25, 255, 0.3);
}


/* ===== Кнопка Выйти ===== */
.logout-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  min-width: 120px;
  height: 48px;

  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;

  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  cursor: pointer;
  text-align: center;

  transition: all 0.25s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.logout-button:hover {
  color: #ff5c5c;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 92, 92, 0.35);
}

.logout-button:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(255, 92, 92, 0.25);
}


/* ===== Адаптив: на телефонах — в ряд ===== */
@media (max-width: 600px) {
  .info-buttons {
    flex-direction: row;
    justify-content: center;
    gap: 8px;
  }
}

/* Контейнер для раздела переводов */
.transfers-container {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

/* Левая секция: перевод средств */
.transfer-section {
    flex: 1;
    background: rgba(0, 0, 0, 0.20);
    border-radius: 8px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.transfer-title {
    font-size: 18px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: white;
}

.transfer-description {
    font-size: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.70);
}

/* Поля ввода */
.transfer-input {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.20);
    border-radius: 8px;
    padding: 0 20px;
    height: 57px;
}

.transfer-input input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: white;
}

.transfer-input input::placeholder {
    color: rgba(255, 255, 255, 0.70);
}

/* Уведомление */
.transfer-notice {
    font-size: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.50);
}

/* Кнопка перевода */
.transfer-button {
    height: 57px;
    background: #9719FF;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.transfer-button:hover {
    background: #7d17cc;
    box-shadow: 0 4px 15px rgba(151, 25, 255, 0.5);
}
.history-section {
    flex: 2;
    background: rgba(0, 0, 0, 0.20);
    border-radius: 8px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.history-title {
    font-size: 18px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: white;
}
.history-header {
    display: flex;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.20);
    padding: 15px 20px;
    border-radius: 8px;
}
.history-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.history-row {
    display: flex;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.10);
    padding: 15px 20px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}
.history-row:hover {
    background: rgba(255, 255, 255, 0.20);
}

.roulette-section {
    width: 100%;
    position: relative;
    border-radius: 8px;
    backdrop-filter: blur(50px);
    padding: 50px 0;
    text-align: center;
    margin-top: 30px; /* Отступ от навигации */
}

/* Заголовок и описание */
.roulette-title {
    color: white;
    font-size: 34px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 10px;
}

.roulette-description {
    color: white;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    max-width: 550px;
    margin: 0 auto 40px;
}

/* Рулетка с горизонтальным скольжением */
.roulette-images {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
    position: relative;
}
.roulette-images-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.try-luck-button {
    padding: 14px 24px;
    background: #9719FF;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.try-luck-button:hover {
    background-color: #7d17cc;
}

.button-price {
    padding: 6px 10px;
    background: white;
    border-radius: 41px;
    color: #9719FF;
    font-size: 14px;
    font-weight: 500;
}

/* Выбор сервера */
.server-select {
    height: 57px;
    padding: 0 20px;
    background: rgba(255, 255, 255, 0.20);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 55px;
    color: rgba(255, 255, 255, 0.70);
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    cursor: pointer;
    margin-top: 20px;
}
.center-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px; /* Толщина линии */
    height: 100%;
    background-color: #ffffff; /* Цвет линии */
    opacity: 0.7;
    z-index: 10;
}
.roulette-image {
    width: 232px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 42px;
}

.roulette-image img {
    width: 232px;
    height: 64px;
    border-radius: 8px;
}
.dropdown-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow {
    width: 10px;
    height: 5px;
    background: rgba(255, 255, 255, 0.50);
}

/* Контейнер для призов */
.prizes-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: left;
    gap: 20px;
    margin-top: 20px;
    background: rgba(0, 0, 0, 0.20);
    padding: 20px;
    border-radius: 8px;
    backdrop-filter: blur(50px);
}

/* Карточка приза */
.prize-card {
    flex: 1 1 calc(100% / 6 - 20px); /* Ширина карточки, чтобы вмещать до 6 на строку */
    max-width: calc(100% / 6 - 20px); /* Ограничение ширины для ровного размещения */
    background: rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    padding: 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
}

/* Изображение приза */
.prize-card img {
    width: 140px;
    height: 38px;
    margin-bottom: 10px;
    border-radius: 4px;
}

/* Название и описание */
.prize-title {
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 4px;
}

.prize-description {
    font-size: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.70);
    text-align: center;
}
/* Список серверов */
.server-list {
    margin-top: 20px;
    max-height: 300px;
    overflow-y: auto;
    position: relative;
    text-align: left; /* Выравниваем текст по левому краю */
}

/* Элементы списка */

button {
    margin-top: 20px;
    padding: 10px 20px;
    border: none;
    background-color: #9719FF;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background-color: #7d17cc;
}
.server-icon {
    width: 16px;
    height: 16px;
    margin-left: 10px;
}
.server-status-online {
    color: #32CD32; /* Зеленый для онлайн */
}

.server-status-offline {
    color: #FF6347; /* Красный для оффлайн */
}

.admin-link {
  margin-left: 12px;
  display: flex;
  align-items: center;
}

.admin-link-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 17px;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background .25s ease, border-color .25s ease, color .25s ease, transform .2s ease;
}

.admin-link-button:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.1);
  color: #ff5c5c;
  transform: translateY(-1px);
}

.admin-link-button:hover i {
  transform: rotate(90deg);
  transition: transform 0.4s ease;
}

.admin-link-button::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -38px;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 4px 8px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.2px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.admin-link-button:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.admin-link-button::before {
  content: "";
  position: absolute;
  bottom: -9px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
  opacity: 0;
  transition: opacity 0.25s ease, bottom 0.25s ease;
}

.admin-link-button:hover::before {
  bottom: -5px;
  opacity: 1;
}

@media (max-width: 600px) {
  .admin-link-button {
      width: 38px;
      height: 38px;
      font-size: 15px;
  }
  .admin-link-button::after {
      bottom: -34px;
      font-size: 10.5px;
  }
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.tab {
  flex: 1 1 0;
  text-align: center;
  padding: 10px 18px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  user-select: none;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.tab:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
  transform: translateY(-1px);
}

.tab.active {
  background: linear-gradient(90deg, #696969, #989898);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  box-shadow: 0 0 8px rgba(255, 92, 92, 0.25);
}

.tab-content {
  display: none !important;
  animation: fadeIn 0.3s ease forwards;
}

.tab-content.active {
  display: block !important;
}

@keyframes fadeIn {
  from {
      opacity: 0;
      transform: translateY(5px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .tabs {
      flex-wrap: nowrap;
      overflow-x: auto;
      scrollbar-width: thin;
      -webkit-overflow-scrolling: touch;
  }
  .tab {
      flex: 0 0 auto;
      min-width: max-content;
      font-size: 13px;
      padding: 8px 14px;
  }
  .tabs::-webkit-scrollbar {
      height: 5px;
  }
  .tabs::-webkit-scrollbar-thumb {
      background: rgba(255, 255, 255, 0.15);
      border-radius: 10px;
  }
}

.confirm-replace-modal {
    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: 9999;
}

.confirm-replace-modal {
    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: 9999;
}

.confirm-replace-content {
    background-color: rgba(0, 0, 0, 0.8); /* полупрозрачный тёмный фон */
    padding: 30px;
    border-radius: 15px;
    width: 500px;
    max-width: 90%;
    text-align: center;
    color: white;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    animation: zoomIn 0.3s ease forwards;
}

.confirm-replace-content p {
    font-size: 20px;
    margin-bottom: 25px;
}

.confirm-replace-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.confirm-replace-buttons button {
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.20);
    border-radius: 8px;
    color: white;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.confirm-replace-buttons button:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* Плавное появление модалки */
@keyframes zoomIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}
.pagination {
    margin-top: 10px;
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    justify-content: center;
}
.pagination button {
    padding: 5px 10px;
    border: none;
    background-color: #444;
    color: white;
    cursor: pointer;
}
.pagination button.active {
    background-color: #b3b3b3;
}
.pagination-dots {
    padding: 5px 8px;
    color: #999;
    user-select: none;
    align-self: flex-end; /* 👇 опускает элемент вниз в flex-контейнере */
}
.roulette-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    align-items: center;
}
.server-select select {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 8px;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}
.global-server-select {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 12px;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
}

.global-server-select label {
    font-family: 'Montserrat', sans-serif;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
}

.global-server-select select {
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    backdrop-filter: blur(10px);
    transition: background 0.3s ease;
}

.global-server-select select:hover {
    background: rgba(255, 255, 255, 0.3);
}

.global-server-select select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 5px #00aaff;
}
.left-align {
    margin-left: 0;
    justify-content: flex-start;
}

.server-bar {
    display: flex;
    align-items: flex-start; /* Выровнял по верхнему краю */
    gap: 20px; /* Расстояние между выбором сервера и карточками */
    flex-wrap: wrap; /* Если не влезает, переносится */
    margin: 30px 0;
}

/* Блок выбора сервера — оставляем как есть */
.global-server-select-custom {
    min-width: 220px; /* Чтобы он не был слишком узким */
    flex-shrink: 0; /* Чтобы не сжимался */
}

/* Карточки сервера — делаем адаптивными и мелкими */
.server-monitoring {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-start;
    flex: 1; /* Занимает всё доступное пространство */
}

.server-status-box {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 10px 15px;
    min-width: 160px; /* Ещё компактнее */
    flex: 1 1 160px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    cursor: pointer;
}

.server-status-box:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* Текст в карточке (уменьшен) */
.server-info-name {
    font-size: 14px;
    font-weight: 700;
    color: white;
}

.server-info-online {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 3px;
}

.server-info-map-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 3px;
    font-style: italic;
}


.ServerSelectBlock {
    position: relative;
    width: 100%;
    max-width: 250px;
}

.Server_Select {
    background-color: #343333;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    height: 45px;
    line-height: 45px;
    padding-left: 18px;
    padding-right: 30px;
    position: relative;
    transition: all .2s ease-in-out;
    user-select: none;
    white-space: nowrap;
}

.Server_Select:after {
    content: "";
    border-bottom: 2px solid #999;
    border-right: 2px solid #999;
    display: block;
    height: 5px;
    width: 5px;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    transition: all .15s ease-in-out;
}

.Server_Select.Open:after {
    transform: translateY(-50%) rotate(-135deg);
}

.Server_SelectedInp {
    background-color: #343333;
    border-radius: 5px;
    box-shadow: 0 0 0 1px rgb(68 68 68 / 11%);
    margin-top: 4px;
    position: absolute;
    top: 58px;
    left: 0;
    right: 0;
    transform-origin: 50% 0;
    transform: scale(0.75) translateY(-21px);
    transition: all .2s cubic-bezier(.5, 0, 0, 1.25), opacity .15s ease-out;
    opacity: 0;
    visibility: hidden;
    z-index: 9999;

    /* 👇 ДОБАВЬ ЭТО: */
    max-height: 220px;
    overflow-y: auto;
}


.Server_SelectedInp::-webkit-scrollbar {
    width: 6px;
}

.Server_SelectedInp::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.Server_SelectedInp {
    scrollbar-width: thin;
    scrollbar-color: #888 transparent;
}

.Server_SelectedInp.Open {
    transform: scale(1) translateY(0);
    opacity: 1;
    visibility: visible;
}

.Server_SelOption {
    padding-left: 18px;
    padding-right: 29px;
    line-height: 48px;
    min-height: 48px;
    color: #ffffff85;
    transition: all .2s;
    cursor: pointer;
}

.Server_SelOption:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.Server_SelOption.Selected {
    color: white;
}
.select-wrapper {
    position: relative;
    flex-grow: 1;
}

.select-wrapper select {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    backdrop-filter: blur(10px);
    transition: background 0.3s ease;
}

.select-wrapper select:hover {
    background: rgba(255, 255, 255, 0.3);
}

.select-wrapper select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 5px #00aaff;
}

/* 👇 Кастомная стрелочка */
.select-wrapper .select-arrow {
    position: absolute;
    top: 50%;
    right: 16px;
    width: 10px;
    height: 10px;
    pointer-events: none;
    transform: translateY(-50%) rotate(45deg);
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    opacity: 0.7;
}
.global-server-select-custom {
    position: relative;
    width: 250px;
    font-family: 'Montserrat', sans-serif;
}
.global-server-select-custom {
    position: relative;
    width: 250px;
    font-family: 'Montserrat', sans-serif;
}

.custom-select {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 25px 15px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    transition: background 0.3s;
}


.custom-select:hover {
    background: rgba(255, 255, 255, 0.3);
}

.arrow-down {
    width: 8px;
    height: 8px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
    margin-left: 10px;
}

.custom-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(50, 50, 50, 0.9);
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 999;
    display: none;
    margin-top: 6px;
}
.custom-options.show {
    display: block;
}
.custom-option {
    padding: 10px 16px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: background 0.2s ease;
}

.custom-option:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}
/* Баннер как якорь для абсолютного позиционирования */
.banner { position: relative; overflow: hidden; }

/* Мягкое затемнение снизу для читаемости карточек */
.banner::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height:46%;
  background: linear-gradient(0deg, rgba(0,0,0,.55), rgba(0,0,0,0));
  pointer-events:none;
  border-radius: inherit;
  z-index: 1;
}

/* Мониторинг на баннере — снизу слева */
.server-monitoring.on-banner{
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;                   /* выше затемнения */
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: calc(100% - 32px); /* чтобы не вылезало за края */
}

/* Можно чуть уплотнить карточки на баннере, не ломая твой общий стиль */
.server-monitoring.on-banner .server-status-box{
  min-width: 180px;             /* компактнее, чем в общем списке */
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.192);  /* чуть темнее на баннере для контраста */
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(10px);
}

/* Адаптив: на узких — ужимаем и скрываем часть второстепенного текста */
@media (max-width: 900px){
  .server-monitoring.on-banner .server-status-box{
    min-width: 160px;
    padding: 8px 10px;
  }
  .server-monitoring.on-banner .server-info-map-time{
    display: none;  /* на мобильных оставим Только имя+онлайн */
  }
}
.server-status-box{ position:relative; padding-left:28px; }
.server-status-box::before{
  content:""; position:absolute; left:10px; top:12px; width:10px; height:10px; border-radius:50%;
  background:#ff4d4f; /* offline по умолчанию */
  box-shadow:0 0 0 2px rgba(0,0,0,.25) inset, 0 0 10px rgba(255,77,79,.35);
  transition:background .2s, box-shadow .2s, transform .2s;
}
.server-status-box.is-online::before{
  background:#36e46f;
  box-shadow:0 0 0 2px rgba(0,0,0,.2) inset, 0 0 12px rgba(54,228,111,.55);
  animation:status-pulse 1.8s ease-in-out infinite;
}
@keyframes status-pulse{ 0%{transform:scale(1)}50%{transform:scale(1.15)}100%{transform:scale(1)} }
/* если раньше был индикатор на .server-status-box::before — выключаем */
.server-status-box::before{ display:none !important; }
.server-status-box{ padding-left: 15px !important; } /* возвращаем нормальный отступ */
/* имя сервера в строку с точкой слева */
.server-info-name{
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  
  /* точка-статус перед текстом (по умолчанию КРАСНАЯ = оффлайн/нет ответа) */
  .server-info-name::before{
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff4d4f; /* красный */
    box-shadow: 0 0 0 2px rgba(0,0,0,.25) inset, 0 0 10px rgba(255,77,79,.35);
    flex: 0 0 10px;
    transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
  }
  
  /* когда сервер отвечает — ЗЕЛЁНЫЙ */
  .server-status-box.is-online .server-info-name::before{
    background: #36e46f;
    box-shadow: 0 0 0 2px rgba(0,0,0,.2) inset, 0 0 12px rgba(54,228,111,.55);
    animation: status-pulse 1.8s ease-in-out infinite;
  }
  
  /* опционально — слегка приглушаем оффлайн */
  .server-status-box.is-offline .server-info-name{ opacity: .95; }
  
  @keyframes status-pulse{
    0%{transform:scale(1)}
    50%{transform:scale(1.15)}
    100%{transform:scale(1)}
  }
  /* ==== Toolbar: выше и с меньшим скруглением ==== */
  .server-toolbar {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
  }
  
  /* селект сервера — выше и менее скруглённый */
  .server-toolbar .global-server-select-custom{
    flex:0 0 260px; /* при необходимости подгони ширину */
  }
  .server-toolbar .custom-select{
    height:56px;             /* +высота */
    padding:0 16px;          /* плотнее по бокам */
    border-radius:10px;      /* было «пилюлей», делаем спокойнее */
    display:flex;
    align-items:center;
  }
  
  /* категории — выше и менее скруглённые */
  .server-toolbar .categories{
    flex: 1 1 0;          /* можно сжиматься */
    min-width: 0;         /* КРИТИЧНО: иначе будет выталкивать вправо */
    display: flex;
    flex-wrap: wrap;      /* перенос чипов на новые строки */
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    white-space: normal;  /* отменяем nowrap на контейнере */
    overflow: visible;
  }
  .server-toolbar .categories::-webkit-scrollbar{ display:none; }
  
  /* чипы категорий */
  .server-toolbar .category-item{
    /* ключевые правки для переноса и троеточия */
    flex: 0 1 auto;        /* можно сжиматься (а не фикс. ширина) */
    min-width: 0;          /* важно для обрезки внутри flex */
    max-width: 240px;      /* ограничиваем ширину бейджа */
    white-space: nowrap;   /* в одну строку */
    overflow: hidden;      
    text-overflow: ellipsis;
  
    /* твои существующие стили ниже — оставляем */
    display:flex;
    align-items:center;
    min-height:56px;
    padding:0 18px;
    border-radius:10px;
    border:1px solid rgba(255,255,255,.18);
    background:transparent;
    color:rgba(255,255,255,.92);
    font-weight:600;
    letter-spacing:.2px;
    cursor:pointer;
    transition:
      transform .15s ease,
      border-color .2s ease,
      background .2s ease,
      color .2s ease,
      box-shadow .2s ease;
  }

  .server-toolbar .category-item:hover{
    transform:translateY(-1px);
    border-color:rgba(255,255,255,.35);
    background:rgba(255,255,255,.04); /* можешь удалить для «сухого» вида */
    color:#fff;
  }
  .server-toolbar .category-item.active-category{
    border-color:rgba(255,255,255,.7);
    color:#fff;
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.05);
  }
  
  /* адаптив: на узких переносим строки */
  @media (max-width:900px){
    .server-toolbar{ flex-wrap:wrap; }
    .server-toolbar .global-server-select-custom{ flex:1 1 100%; }
    .server-toolbar .categories{ width:100%; }
    .server-toolbar .category-item{ min-height:52px; padding:0 16px; }
  }
  /* === Server Select — clean glass style === */
:root{
    --ss-bg: rgba(255,255,255,.06);
    --ss-bg-hover: rgba(255,255,255,.10);
    --ss-stroke: rgba(255,255,255,.22);
    --ss-stroke-strong: rgba(255,255,255,.45);
    --ss-text: rgba(255,255,255,.95);
  }
  
  .server-toolbar .global-server-select-custom{
    position: relative;
    flex: 0 0 260px;               /* ширина селекта; подгони при желании */
    z-index: 20;                   /* поверх категорий и прочего */
  }
  
  .server-toolbar .custom-select{
    height: 56px;                  /* выше */
    padding: 0 16px;
    border-radius: 10px;           /* меньшее скругление */
    background: var(--ss-bg);
    border: 1px solid var(--ss-stroke);
    color: var(--ss-text);
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px;
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .15s ease;
  }
  .server-toolbar .custom-select:hover{
    background: var(--ss-bg-hover);
    border-color: var(--ss-stroke-strong);
    box-shadow: 0 10px 26px rgba(0,0,0,.28);
    transform: translateY(-1px);
  }
  
  /* стрелка */
  .server-toolbar .arrow-down{
    width: 8px; height: 8px;
    border-right: 2px solid rgba(255,255,255,.8);
    border-bottom: 2px solid rgba(255,255,255,.8);
    transform: rotate(45deg);
    transition: transform .2s ease, opacity .2s ease;
    opacity: .9;
  }
  
  /* состояния "открыто" без JS-класса — через :has() списка с .show */
  .global-server-select-custom:has(.custom-options.show) .custom-select{
    background: rgba(255,255,255,.12);
    border-color: var(--ss-stroke-strong);
    box-shadow: 0 14px 30px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.06);
  }
  .global-server-select-custom:has(.custom-options.show) .arrow-down{
    transform: rotate(225deg);     /* переворачиваем стрелку при открытии */
  }
  
  /* список вариантов */
  .server-toolbar .custom-options{
    position: absolute;
    top: calc(100% + 8px);
    left: 0; right: 0;
    display: none;                 /* по умолчанию скрыт (показывается твоим .show) */
    background: rgba(15, 15, 15, 0.274);
    border: 1px solid var(--ss-stroke);
    border-radius: 10px;
    box-shadow: 0 18px 36px rgba(0,0,0,.45);
    backdrop-filter: blur(8px);
    max-height: 280px;
    overflow-y: auto;
    padding: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.35) transparent;
    z-index: 9999;
  }
  .server-toolbar .custom-options.show{ display: block; }
  
  /* скроллбар (WebKit) */
  .server-toolbar .custom-options::-webkit-scrollbar{ width: 6px; }
  .server-toolbar .custom-options::-webkit-scrollbar-thumb{
    background: rgba(255,255,255,.35);
    border-radius: 4px;
  }
  .server-toolbar .custom-options::-webkit-scrollbar-track{
    background: transparent;
  }
  
  /* пункт списка */
  .server-toolbar .custom-option{
    display: flex; align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--ss-text);
    font-weight: 600;
    letter-spacing: .2px;
    transition: background .15s ease, transform .12s ease;
    cursor: pointer;
  }
  .server-toolbar .custom-option:hover{
    background: rgba(255,255,255,.10);
    transform: translateY(-1px);
  }
  
  /* active/keyboard press ощущение */
  .server-toolbar .custom-option:active{
    transform: translateY(0);
    background: rgba(255,255,255,.16);
  }
  
  /* доступность */
  .server-toolbar .custom-select:focus-visible{
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,255,255,.25);
  }
  
  /* на узких — растягиваем селект */
  @media (max-width: 900px){
    .server-toolbar .global-server-select-custom{ flex: 1 1 100%; }
  }
  /* Лента: селект + категории с переносом */
.server-toolbar{
    display:flex;
    align-items:center;
    gap:16px;
    flex-wrap:wrap;
  }
  
  /* селект фиксированной ширины (первая строка, слева) */
  .server-toolbar .global-server-select-custom{
    flex:0 0 260px;
  }
  
  /* «растворяем» обёртку категорий — чипы станут прямыми flex-элементами,
     поэтому перенос начнётся под селектом */
  .server-toolbar .categories{
    display: contents !important;
  }
  
  /* Чипы:
     - растягиваются (flex-grow:1), чтобы заполнить всю строку без пустоты;
     - не сжимаются меньше текста (min-width:max-content);
     - длинные названия обрезаем троеточием, если нужно. */
  .server-toolbar .category-item{
    flex: 1 1 0;              /* делят доступное место строки */
    min-width: max-content;   /* не меньше ширины текста */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  
    /* твои визуальные стили — оставляем */
    display:flex;
    align-items:center;
    min-height:56px;
    padding:0 18px;
    border-radius:10px;
    border:1px solid rgba(255,255,255,.18);
    background:transparent;
    color:rgba(255,255,255,.92);
    font-weight:600;
    letter-spacing:.2px;
    transition: transform .15s ease, border-color .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  }
  /* === Roulette: серверный селект как на главной === */
.roulette-actions .global-server-select-custom{
    position: relative;
    flex: 0 0 260px;
    z-index: 20;
    font-family: 'Montserrat', sans-serif;
  }
  
  .roulette-actions .custom-select{
    height: 56px;
    padding: 0 16px;
    border-radius: 10px;
    background: var(--ss-bg, rgba(255,255,255,.06));
    border: 1px solid var(--ss-stroke, rgba(255,255,255,.22));
    color: var(--ss-text, rgba(255,255,255,.95));
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px;
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .15s ease;
  }
  
  .roulette-actions .custom-select:hover{
    background: var(--ss-bg-hover, rgba(255,255,255,.10));
    border-color: var(--ss-stroke-strong, rgba(255,255,255,.45));
    box-shadow: 0 10px 26px rgba(0,0,0,.28);
    transform: translateY(-1px);
  }
  
  /* стрелка */
  .roulette-actions .arrow-down{
    width: 8px; height: 8px;
    border-right: 2px solid rgba(255,255,255,.8);
    border-bottom: 2px solid rgba(255,255,255,.8);
    transform: rotate(45deg);
    transition: transform .2s ease, opacity .2s ease;
    opacity: .9;
  }
  
  /* активное состояние (когда список открыт) */
  .roulette-actions .global-server-select-custom:has(.custom-options.show) .custom-select{
    background: rgba(255,255,255,.12);
    border-color: var(--ss-stroke-strong, rgba(255,255,255,.45));
    box-shadow: 0 14px 30px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.06);
  }
  .roulette-actions .global-server-select-custom:has(.custom-options.show) .arrow-down{
    transform: rotate(225deg);
  }
  
  /* список */
  .roulette-actions .custom-options{
    position: absolute;
    top: calc(100% + 8px);
    left: 0; right: 0;
    display: none;
    background: rgba(15,15,15,0.27);
    border: 1px solid var(--ss-stroke, rgba(255,255,255,.22));
    border-radius: 10px;
    box-shadow: 0 18px 36px rgba(0,0,0,.45);
    backdrop-filter: blur(8px);
    max-height: 280px;
    overflow-y: auto;
    padding: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.35) transparent;
    z-index: 9999;
  }
  .roulette-actions .custom-options.show{ display: block; }
  .roulette-actions .custom-options::-webkit-scrollbar{ width: 6px; }
  .roulette-actions .custom-options::-webkit-scrollbar-thumb{
    background: rgba(255,255,255,.35);
    border-radius: 4px;
  }
  
  /* пункт списка */
  .roulette-actions .custom-option{
    display: flex; align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--ss-text, rgba(255,255,255,.95));
    font-weight: 600;
    letter-spacing: .2px;
    transition: background .15s ease, transform .12s ease;
    cursor: pointer;
  }
  .roulette-actions .custom-option:hover{
    background: rgba(255,255,255,.10);
    transform: translateY(-1px);
  }
  .roulette-actions .custom-option:active{
    transform: translateY(0);
    background: rgba(255,255,255,.16);
  }
  
  /* на узких — растягиваем селект */
  @media (max-width: 900px){
    .roulette-actions{
      flex-wrap: wrap;
    }
    .roulette-actions .global-server-select-custom{
      flex: 1 1 100%;
    }
  }

/* ===== Toasts — минимал и без цветных теней ===== */
#toast-container{
    position: fixed;
    right: 24px;
    top: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: min(420px, 90vw);
    pointer-events: none;
  }
  
  /* Базовый вид */
  .toast{
    --bg: rgba(18, 20, 24, 0.432);
    --fg: #E5E7EB;
    --stroke: rgba(255,255,255,.08);
    --accent: #9CA3AF;   /* поменяется по состоянию */
    --bar-bg: rgba(255,255,255,.10);
  
    color: var(--fg);
    background: var(--bg);
    border: 1px solid var(--stroke);
    border-radius: 12px;
    padding: 10px 12px;
    display: grid;
    grid-template-columns: 18px 1fr;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
    position: relative;
    overflow: hidden;
    min-height: 40px;
  
    /* без цветных свечений */
    box-shadow: 0 8px 24px rgba(0,0,0,.28);
  
    transform: translateY(-10px) scale(.98);
    opacity: 0;
    transition: transform .25s cubic-bezier(.22,.85,.35,1), opacity .25s ease;
  }
  .toast.show{ transform: translateY(0) scale(1); opacity: 1; }
  
  /* Узкая акцентная полоса слева */
  .toast::before{
    content:"";
    position:absolute;
    left:0; top:0; bottom:0;
    width:3px;
    background: var(--accent);
    border-radius: 12px 0 0 12px;
  }
  
  /* Контент */
  .toast .icon{ font-size:14px; line-height:1; margin:0; align-self:center; }
  .toast .content{
    font: 600 14px/1 "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin:0;
  }
  
  /* Прогресс-бар снизу, нейтральный фон + акцентная заливка */
  .toast .bar{
    position:absolute; left:0; bottom:0; height:2px; width:100%;
    background: var(--bar-bg);
  }
  .toast .bar>i{
    display:block; height:100%; width:100%;
    transform-origin:left; transform:scaleX(1);
    background: var(--accent);
  }
  
  /* Состояния (только акцент и бар, без свечения) */
  .toast.info    { --accent:#7AA2FF; }
  .toast.success { --accent:#22C55E; }
  .toast.error   { --accent:#EF4444; }
  .toast.warn    { --accent:#F59E0B; }
  
  /* Светлая тема */
  :root[data-theme="light"] .toast{
    --bg:#fff; --fg:#111827; --stroke:#E5E7EB; --bar-bg: rgba(17,24,39,.08);
    background:#fff; color:var(--fg);
    box-shadow: 0 8px 20px rgba(17,24,39,.10);
  }
  
  /* Предпочтение без анимаций */
  @media (prefers-reduced-motion: reduce){
    .toast{ transition:none; transform:none; }
    .toast .bar>i{ transition:none !important; }
  }
  
  .product-price {
    display: flex;
    gap: 8px;
    align-items: baseline;
    font-weight: 700;
  }
  
  .product-price .old-price {
    opacity: 0.65;
    text-decoration: line-through;
  }
  
  .product-price .new-price {
    font-size: 1.05em;
    color: #ff9800;  /* оранжевая новая цена */
  }
  
  .discount-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #e53935;
    color: #fff;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 14px;
    box-shadow: 0 6px 16px rgba(229, 57, 53, 0.35);
    z-index: 2;
  }
  .product-price .old-price,
.purchase-button .price .old-price {
  text-decoration: line-through;
  opacity: 0.7;
  font-weight: 500;
  color: #00aaff;                /* серая старая цена */
}
  /* Бейдж «кол-во дней» для кастом-сета (правый верх) */
  .days-badge {
    position: absolute;
    top: 8px;
    right: 8px;                /* 👉 справа, зеркально скидке */
    background: #1e88e5;       /* насыщенный синий */
    color: #fff;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 14px;
    box-shadow: 0 6px 16px rgba(30, 136, 229, 0.35);
    z-index: 2;
  }
  
  
  /* На маленьких карточках слегка уменьшим */
  @media (max-width: 520px){
    .days-badge{
      padding: 4px 8px;
      font-size: 11px;
    }
  }
  .category-badge {
    margin: 10px auto 0;          /* по центру */
    padding: 4px 12px;
    border-radius: 8px;
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #42a5f5;
    border: 2px solid #42a5f5;
    background: rgba(66,165,245,0.08);
    backdrop-filter: blur(4px);
  }
  
  /* На маленьких карточках слегка уменьшим */
  @media (max-width: 520px) {
    .category-badge {
      padding: 4px 8px;
      font-size: 11px;
    }
  }
  .category-label {
    margin: 10px auto 0;          /* по центру */
    padding: 4px 12px;
    border-radius: 8px;
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #42a5f5;
    border: 2px solid #42a5f5;
    background: rgba(66,165,245,0.08);
    backdrop-filter: blur(4px);
  }
  .server-status-box{
    display: grid;
    grid-template-columns: 1fr auto;  /* инфа слева, кнопка справа */
    align-items: center;               /* кнопка по вертикали по центру всего блока */
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
  }
  
  .server-info{
    display: flex;
    flex-direction: column;
    gap: 4px;               /* расстояние между строками */
    min-width: 0;           /* чтобы длинное имя не ломало сетку */
  }
  
  .server-info-name{
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  /* стили кнопки */
  .server-play{
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 10px;
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
    padding: 0;
  }
  .server-play svg{ fill:#fff; opacity:.9; }
  .server-status-box.is-online  .server-play{ border-color: rgba(76,175,80,.45); }
  .server-status-box.is-offline .server-play{ border-color: rgba(244,67,54,.45); }
  .server-play:hover{ transform: scale(1.05); box-shadow: 0 6px 18px rgba(0,0,0,.28); background: rgba(255,255,255,.12); }
  .server-play:active{ transform: scale(.98); }
  /* === ЛЕВАЯ КАРТОЧКА: не растягивать на всю ширину, кнопка видна === */
.info-two-col{
    display: grid;
    grid-template-columns: auto 1fr;  /* левая колонка — по содержимому, правая — остальное */
    gap: 20px;
    align-items: start;
  }
  @media (max-width:1100px){
    .info-two-col{ grid-template-columns: 1fr; }
  }
  
  /* переопределяем жесткую ширину у твоего .info-container только в этой секции */
  .info-two-col > .info-container{
    width: auto !important;          /* было 50% — из-за этого всё ломалось */
    max-width: 600px !important;     /* как и планировалось по дизайну */
    margin: 0 !important;
  }
  .info-two-col > .info-container .popolnenie-button{
    align-self: flex-start;
    min-height: 44px;
    line-height: 1;
    margin-top: 6px;
  }
  
/* ===========================
   ПРАВЫЙ БЛОК: ИГРОВАЯ СТАТИСТИКА
   =========================== */

/* Заголовок (чип слева + стрелка справа) */
.stats-header-bar{
    display:flex; align-items:center; justify-content:space-between;
    gap:12px; width:100%;
  }
  .stats-chip{
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.16);
    color:#fff; backdrop-filter: blur(12px);
    border-radius: 16px; padding: 10px 14px;
    font-size: 16px; font-weight: 300; letter-spacing: .3px;
  }
  
  /* Карточка блока (чистый стеклянный, без фиолета) */
  .profile-stats-card{
    background: rgba(18,18,22,.55);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 12px 32px rgba(0,0,0,.35);
  }
  
  /* Список чипов-кнопок серверов: компактно */
  .server-chips{
    display:flex; flex-wrap:wrap; gap:6px;   /* 👈 уменьшили отступы */
    margin-top:12px;
  }
  
  /* Чип-кнопка сервера */
  .server-chip{
    display:inline-flex; align-items:center; gap:8px;
    
    font-size: 13px; font-weight: 600;
    color: rgba(255,255,255,.88);
    background: rgba(22,22,22,.55);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 10px; cursor:pointer;
    transition: background .2s ease, border-color .2s ease, transform .12s ease, box-shadow .22s ease, color .2s ease;
    backdrop-filter: blur(8px);
  }
  .server-chip .dot{
    width:8px; height:8px; border-radius:50%;
    background:#b3b3b3;                      /* серый по умолчанию */
  }
  .server-chip:hover{
    background: rgba(255,255,255,.10);
    border-color: rgba(255,255,255,.28);
    color:#fff; transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0,0,0,.25);
  }
  .server-chip:active{ transform: translateY(0); box-shadow:none; }
  
  /* Активный сервер (подсвечиваем выбранный) */
  .server-chip.active{
    background: rgba(255,255,255,.14);
    border-color: rgba(255,255,255,.35);
    color:#fff;
  }
  
  /* Если хочешь показывать онлайн-точку зелёной — просто добавь .online на кнопку */
  .server-chip.online .dot{
    background:#36e46f;
    box-shadow: 0 0 0 2px rgba(0,0,0,.25) inset, 0 0 10px rgba(54,228,111,.45);
  }
  
  
  /* ===========================
     МОДАЛЬНОЕ ОКНО СТАТИСТИКИ
     =========================== */
  
  /* Оверлей */
  .stats-modal{
    position: fixed; inset: 0;
    display: none;                           /* JS покажет display:flex */
    align-items: center; justify-content: center;
    padding: clamp(12px, 2vw, 28px);
    background: radial-gradient(1200px 1200px at 50% 50%, rgba(0,0,0,.28), rgba(0,0,0,.42));
    backdrop-filter: blur(2px);
    z-index: 1000;
  }
  
  /* Контент */
  .stats-modal__content {
    width: min(960px, 96vw);
    border-radius: 16px;
    background: rgba(18, 18, 22, 0.61);       /* 👈 исправлено */
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 24px 64px rgba(0, 0, 0, .55);
    overflow: clip;
    animation: modalPop .18s ease-out;
  }
  
  @keyframes modalPop{
    from{ transform: translateY(6px) scale(.985); opacity:.0; }
    to  { transform: translateY(0)    scale(1);    opacity:1; }
  }
  
  /* Шапка */
  .stats-modal__head{
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 16px 18px 8px 18px;
  }
  .stats-modal__title{
    font-size: clamp(18px, 1.8vw, 22px);
    font-weight: 800;
    color: #fff;
    display:flex; align-items:center; gap:10px;
  }
  
  /* Кнопка закрытия */
  .stats-modal__close{
    appearance:none; border:0; outline:0;
    border-radius: 12px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.18);
    color:#fff; font-size:22px; line-height:1;
    cursor:pointer;
    transition: transform .12s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  }
  .stats-modal__close:hover{
    transform: scale(1.05);
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.28);
    box-shadow: 0 8px 20px rgba(0,0,0,.32);
  }
  
  /* Тело модалки */
  .stats-modal__body{
    padding: 10px 18px 18px 18px;
    color:#fff;
  }
  .stats-placeholder{ color:rgba(255,255,255,.75); }
  
  /* Внутренний контейнер в твоём JS — используем .stat-grid + «пилюли» */
  .stat-grid{
    display:grid;
    gap: 12px;                                /* компактные зазоры */
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  @media (min-width: 560px){
    .stat-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
  }
  @media (min-width: 920px){
    .stat-grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
  }
  
  /* Ячейка-пилюля */
  .stat-pill{
    position: relative;
    border-radius: 12px;
    padding: 12px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, background .12s ease;
    min-height: 68px;
    display:flex; flex-direction:column; justify-content:center;
  }
  .stat-pill:hover{
    transform: translateY(-2px);
    background: rgba(255,255,255,.10);
    border-color: rgba(255,255,255,.22);
    box-shadow: 0 10px 20px rgba(0,0,0,.28);
  }
  
  /* Подпись и значение */
  .stat-name{
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .75;
    white-space: nowrap; overflow:hidden; text-overflow:ellipsis;
  }
  .stat-val{
    margin-top: 4px;
    font-weight: 800;
    font-size: clamp(18px, 3.2vw, 24px);
    line-height: 1.1;
    color:#fff;
    text-align: center;
  }
  
  /* Анимационная точка «Загрузка…» в заголовке */
  .loading-dot{
    display:inline-block; width:6px; height:6px; margin-left:6px;
    border-radius:50%; background:#42a5f5;
    animation: dotPulse .9s infinite ease-in-out; vertical-align:middle;
  }
  @keyframes dotPulse{
    0%,100%{ transform: scale(.6); opacity:.65; }
    50%    { transform: scale(1);   opacity:1; }
  }
  
  /* Тонкие скроллы в теле модалки при переполнении (если нужно) */
  .stats-modal__body{
    max-height: 70vh; overflow-y: auto;
    scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.35) transparent;
  }
  .stats-modal__body::-webkit-scrollbar{ width:6px; }
  .stats-modal__body::-webkit-scrollbar-thumb{ background: rgba(255,255,255,.35); border-radius:4px; }
  .stats-modal__body::-webkit-scrollbar-track{ background: transparent; }
  
  .stat-pill{
    display: flex;
    align-items: center;
    gap: 10px;              /* отступ между иконкой и текстом */
    padding: 12px;
  }
  
  .stat-icon{
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border-radius: 8px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    color: #fff;
  }
  /* ===== Вариации товара (кнопки как category-item) ===== */
#variationsBlock .variation-heading{
    font-size: 13px;
    opacity: .8;
    margin-bottom: 6px;
  }
  
  #variationsList{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
  }
  
  /* Базовый вид — стеклянная таблетка без синего/фиолетового */
  .variation-btn{
    /* лайаут */
    font-family: inherit;
    height: 56px;
    padding: 0 18px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
  
    /* визуал */
    border-radius:10px;
    background: transparent;                 /* как category-item */
    border:1px solid rgba(255,255,255,.18);  /* полупрозрачная белая рамка */
    color: rgba(255,255,255,.92);
    font-weight:600;
    letter-spacing:.2px;
    backdrop-filter: blur(10px);
  
    /* поведение */
    cursor:pointer;
    white-space: nowrap;
    transition:
      transform .15s ease,
      border-color .2s ease,
      background .2s ease,
      color .2s ease,
      box-shadow .2s ease;
  }
  
  /* Ховер — только стеклянная подсветка и белая окантовка, БЕЗ синего/фиолетового */
  .variation-btn:hover{
    transform: translateY(-1px);
    border-color: rgba(255,255,255,.36);            /* светлее рамка */
    background: rgba(255,255,255,.06);              /* лёгкий «стеклянный» слой */
    box-shadow: 0 6px 16px rgba(0,0,0,.25);         /* мягкая тень */
  }
  
  /* Фокус для клавиатуры — белое свечение */
  .variation-btn:focus-visible{
    outline: none;
    border-color: rgba(255,255,255,.7);
    box-shadow: 0 0 0 3px rgba(255,255,255,.25);
  }
  
  /* Активная вариация — беленькая окантовка + тонкий внутренний контур, без цвета фона */
  .variation-btn.is-active{
    border-color: rgba(255,255,255,.7);
    box-shadow:
      inset 0 0 0 1px rgba(255,255,255,.35),
      0 8px 18px rgba(0,0,0,.28);
    background: rgba(255,255,255,.08);              /* еле заметная «стеклянность» */
    color: rgba(255,255,255,.95);
  }
  
  /* Мобильная подстройка */
  @media (max-width: 480px){
    .variation-btn{
      height: 48px;
      padding: 0 14px;
      font-size: 13px;
    }
  }
  .server-item.is-last-used {
    outline: 1px dashed rgba(255,255,255,.25);
  }
  /* ===== Контейнер с полупрозрачным фоном (как transfers-container) ===== */
.daily-container{
    background: rgba(0,0,0,0.20);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 18px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  
  /* заголовок */
  .daily-bonus-header{
    margin: 0 0 6px;
  }
  .daily-bonus-header h3{
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
  }
  .daily-bonus-header p{
    margin: 0;
    opacity: .8;
    font-size: 13px;
    color: #f3f3f3;
  }
  
  /* сетка карточек */
  .daily-bonus-grid{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px,1fr));
    gap: 14px;
  }
  
  /* карточка (светлый вариант) */
  .bonus-card{
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 12px;
    padding: 16px;
    display: flex; 
    flex-direction: column; 
    gap: 10px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  }
  .bonus-card:hover{
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.3);
    border-color: rgba(255,255,255,0.4);
  }
  
  /* верх — номер дня */
  .bonus-step{ 
    display:flex; 
    align-items:center; 
    gap:8px; 
  }
  .step-dot{
    width:28px; 
    height:28px; 
    border-radius:999px; 
    display:inline-flex; 
    align-items:center; 
    justify-content:center;
    font-weight:700; 
    color:#fff;
    background: rgba(255,255,255,0.3);
    border:1px solid rgba(255,255,255,0.4);
  }
  .step-label{ 
    font-size:13px; 
    color:#fff; 
    opacity:.85; 
  }
  
  /* сумма */
  .bonus-amount{ 
    display:flex; 
    align-items:baseline; 
    gap:6px; 
    margin:4px 0 2px; 
  }
  .bonus-amount .amount{ 
    font-size:26px; 
    line-height:1; 
    font-weight:800; 
    color:#fff; 
  }
  .bonus-amount .currency{ 
    color:#fff; 
    opacity:.9; 
    font-weight:600; 
  }
  
  /* статусная плашка */
  .bonus-status{ 
    margin-top:-2px; 
  }
  .status-pill{
    display:inline-block; 
    font-size:11px; 
    letter-spacing:.2px; 
    padding:4px 8px; 
    border-radius:999px;
    background: rgba(255,255,255,0.18); 
    border:1px solid rgba(255,255,255,0.3); 
    color:#fff;
  }
  
  /* ЗЕЛЁНЫЙ — можно забирать сегодня */
  .status-pill.is-today{
    background: rgba(34,197,94,0.25);   /* зелёный фон */
    border-color: rgba(34,197,94,0.55); /* зелёная рамка */
  }
  
  /* ОРАНЖЕВЫЙ — закрыто (и показываем ETA) */
  .status-pill.is-locked{
    background: rgba(255,140,0,0.25);   /* #ff8c00 с прозрачностью */
    border-color: rgba(255,140,0,0.55);
    color: #fff;
  }
  
  /* кнопки */
  .bonus-claim{
    width:100%; 
    height:44px; 
    margin-top:6px;
    border:none; 
    border-radius:10px; 
    font-weight:700; 
    cursor:pointer;
    transition: transform .12s ease, box-shadow .2s ease, background .2s ease, opacity .2s ease;
  }
  .bonus-claim:active{ 
    transform: translateY(1px); 
  }
  
  /* активная — ЗЕЛЁНАЯ (можно забрать) */
  .bonus-claim.active{
    background:#22c55e; /* зелёный */
    color:#fff;
    box-shadow:0 6px 12px rgba(0,0,0,0.25);
  }
  .bonus-claim.active:hover{
    background:#16a34a;
    box-shadow:0 6px 14px rgba(0,0,0,0.35);
  }
  
  /* неактивные */
  .bonus-claim.disabled{
    background: rgba(0,0,0,0.1);
    color: rgba(255,255,255,0.6);
    cursor: not-allowed;
    border: 1px dashed rgba(255,255,255,0.2);
    box-shadow: none;
  }
  
  /* неактивная, но подчеркнуть «закрыто» оранжевым */
  .bonus-claim.disabled.locked{
    background: #ff8c00;
    color: #fff;
    border: 1px dashed rgba(255,255,255,0.25);
    opacity: .9;
    cursor: not-allowed;
  }
  
  /* подсветки карточек */
  .bonus-card.bonus-claimed{ 
    opacity:.9; 
  }
  .bonus-card.bonus-locked{ 
    opacity:.85; 
  }
  .bonus-card.bonus-today{
    border-color: rgba(34,197,94,0.65);
    box-shadow: 0 8px 22px rgba(34,197,94,0.25);
  }
  
  /* адаптив */
  @media (max-width: 560px){
    .daily-container{ 
      padding:14px; 
      border-radius:10px; 
    }
    .daily-bonus-grid{ 
      grid-template-columns: repeat(2, minmax(0,1fr)); 
      gap:10px; 
    }
    .bonus-card{ 
      padding:12px; 
      border-radius:10px; 
    }
    .bonus-amount .amount{ 
      font-size:22px; 
    }
  }
  .purchase-button.is-loading {
    cursor: wait;
    transition: opacity .2s ease;
  }
/* === Pagination: по центру и белые цифры === */
.pagination{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:20px;
  justify-content:center; /* было flex-end */
}
.page-btn{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:34px; height:34px; border-radius:8px;
  border:1px solid rgba(255,255,255,.15);
  background:rgba(255,255,255,.06);
  color:#fff; text-decoration:none; font-weight:600;
  transition:background .2s ease,border-color .2s ease,transform .15s ease;
}
.page-btn:hover{
  background:rgba(255,255,255,.12);
  border-color:rgba(255,255,255,.25);
  transform:translateY(-1px);
}
.page-info{
  color:#fff;           /* белым */
  opacity:1;            /* убираем полупрозрачность */
  font-weight:700;
}

/* === Таблицы: выравнивание === */
/* Покупки: 1-й столбец (товар) — слева, остальные — по центру */
#purchases .table-header .header-item:nth-child(1),
#purchases .table-body .table-row .row-item:nth-child(1){
  text-align:left;
}
#purchases .table-header .header-item:nth-child(n+2),
#purchases .table-body .table-row .row-item:nth-child(n+2){
  text-align:center;
}

/* Платежи: все столбцы по центру */
#payments .table-header .header-item,
#payments .table-body .table-row .row-item{
  text-align:center;
}

/* Цвет текста в строках таблиц — белый */
.table-body .table-row .row-item{
  color:#fff;
}
/* === Платежи: выравнивание как в «Покупках» === */
#payments .table-header .header-item:nth-child(1),
#payments .table-body .table-row .row-item:nth-child(1){
  text-align:left;             /* Дата — слева */
}
#payments .table-header .header-item:nth-child(n+2),
#payments .table-body .table-row .row-item:nth-child(n+2){
  text-align:center;           /* Остальные — по центру */
}

/* === Статусы платежей === */
#payments .table-body .row-item.status-completed{
  color:#10b981;               /* зелёный (tailwind emerald-500) */
  font-weight:700;
}

/* Опционально: другие статусы, если появятся */
#payments .table-body .row-item.status-pending{  color:#f59e0b; font-weight:700; }  /* жёлтый */
#payments .table-body .row-item.status-failed{   color:#ef4444; font-weight:700; }  /* красный */

.footer-brand {
  color: #fff;
  font-family: Montserrat, sans-serif;
  font-weight: 500;
  font-size: 14px;
}

.footer-created {
  color: #fff;
  text-decoration: none;
  transition: 0.2s;
}

.footer-created span {
  font-weight: 700;
  color: #4fc3f7; /* можешь поменять на свой акцентный цвет */
}

.footer-created:hover {
  text-decoration: underline;
  color: #fff;
}
