.servers-buttons {
  display: none;
}
:root {
    --main-white-color: #171a17;
    --main-bg-color: var(--main-white-color);
    --main-white-gray-color: #f9fafb;
    --main-text-color: white;
    --main-dark-color: #333;
    --warning-color: #ffc107;
    --info-color: #2196f3;
    --error-color: #b85c5c;
    --success-color: #4caf50
}
.app-button--primary {
    background-color: #171a17;
    color: #fff
}
.app-button--primary:hover,.app-button--primary.app-button--active {
    background-color: #fff;
    color: #171a17
}

.product-card {
    aspect-ratio: 3.5 / 4;
    position: relative;
    flex-direction: column;
    border-radius: 12px;
    background-color: var(--main-bg-color);
    box-shadow: 0 0 3px #0000001a;
    overflow: hidden;
    font-family: sans-serif;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    transition: transform .3s ease, box-shadow .3s ease;
    cursor: pointer;
}

.product-card:hover {
    animation: greenGlow 1.6s ease-in-out infinite;
}

/* Анимация свечения */
@keyframes greenGlow {
    0% {
        box-shadow:
            0 0 6px rgba(0, 255, 120, 0.35),
            0 0 14px rgba(0, 255, 120, 0.25);
    }
    50% {
        box-shadow:
            0 0 10px rgba(0, 255, 120, 0.6),
            0 0 28px rgba(0, 255, 120, 0.45),
            0 0 42px rgba(0, 255, 120, 0.3);
    }
    100% {
        box-shadow:
            0 0 6px rgba(0, 255, 120, 0.35),
            0 0 14px rgba(0, 255, 120, 0.25);
    }
}


.product-card-name {
    font-size: 14px;
    font-weight: 700;
    word-break: break-word;
    color: white
}

.product-card-price {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    color: white
}

.product-card-discount-price {
    color: #6c6
}

.product-modal-inputs {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    color: black
}

.product-modal {
    padding: 1rem 1rem 0;
    max-width: 900px;
    display: flex;
    gap: 1rem;
    flex-direction: column
}

.select-display {
    padding: .5rem 1rem;
    background: white;
    border-radius: .5rem;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.modal-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: #00000080;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    z-index: 1000
}

@media (min-width: 750px) {
    .modal-overlay {
        align-items:center
    }
}

.modal {
    width: min(930px, 96vw);
    max-width: 60vw;
    min-height: 60vh;
    position: relative;
    border-radius: 5px 40px;
    background: #171a17;
    margin: 30px 0;
    box-shadow: 0 4px 20px #0003;
    transition: inherit;
    overflow: hidden;
}


@media (min-width: 450px) {
    .modal {
        margin-top:0
    }
}

.modal-content {
    padding: 1.5rem;
    overflow-y: auto
}

.modal-footer-buttons {
    display: flex;
    position: relative;
    justify-content: space-between;
    margin: .2rem 0 .6rem;
    height: 70px
}

.modal-close-button {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: 3rem;
    transition: all .2s ease;
    height: 3rem
}

.modal-close-button-text {
    color: white;
    font-size: .9rem;
    font-weight: 400;
    opacity: .8
}

.modal-close-button-text:hover {
    opacity: 1
}

.modal-primary-button {
    cursor: pointer;
    background-color: #249c28;
    transition: all .2s ease;
    height: 3rem;
    padding-right: 3rem;
    padding-left: 2rem;
    border-radius: 1.5rem 0 0 1.5rem
}

.modal-primary-button:hover {
    opacity: .9
}

.modal-primary-button-text {
    color: var(--main-white-color);
    font-size: .9rem;
    font-weight: 500
}


.select-option:hover {
    background: #e0e0e0;
}

.select-option.active {
    background: white;
    color: var(--main-white-color);
}

.product-modal-description {
    color: white;
    font-size: 1rem;
    text-align: center;
    max-height: 30vh;
    overflow-y: auto
}


/* =========================
   MODAL: mobile adapt + glow
   ========================= */

/* 1) Базово: убираем 60vw, чтобы модалка не ломалась на узких экранах */
.modal {
  width: min(930px, 96vw);
  max-width: 930px;          /* вместо 60vw */
  min-height: auto;          /* на мобилках лучше без принудительного 60vh */
  max-height: calc(100dvh - 24px); /* чтобы влезала по высоте (учёт адресной строки) */
  margin: 12px 0;
}

/* контент модалки: на мобиле меньше паддинги, чтобы больше полезной площади */
.modal-content {
  padding: 1rem;
  max-height: calc(100dvh - 160px); /* запас под хедер/футер */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* overlay: на мобилках всегда сверху, удобный скролл */
.modal-overlay {
  align-items: flex-start;
  padding: 12px 0;
}

/* 2) Свечение модалки "как у product-card"
      - легкое постоянное свечение
      - усиление при hover (на десктопе)
*/
.modal {
  /* базовое мягкое свечение */
  box-shadow:
    0 0 6px rgba(0, 255, 120, 0.18),
    0 0 14px rgba(0, 255, 120, 0.12),
    0 4px 20px rgba(0, 0, 0, 0.35);
}

/* если хочешь, чтобы при открытии слегка "дышало" — включи анимацию */
.modal {
  animation: greenGlow 2.0s ease-in-out infinite;
}

/* усиление на hover — актуально только для устройств с hover */
@media (hover: hover) and (pointer: fine) {
  .modal:hover {
    animation: greenGlow 1.6s ease-in-out infinite;
  }
}

/* 3) Адаптация футера/кнопок под мобилки */
@media (max-width: 750px) {
  .modal-footer-buttons {
    height: auto;
    gap: 10px;
    margin: .75rem 0 1rem;
    flex-direction: column-reverse; /* primary снизу/сверху — можно поменять */
    align-items: stretch;
  }

  .modal-close-button {
    margin-left: 0;
    width: 100%;
    height: 44px;
  }

  .modal-primary-button {
    width: 100%;
    height: 46px;
    padding-left: 1rem;
    padding-right: 1rem;
    border-radius: 12px; /* вместо 1.5rem 0 0 1.5rem */
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .modal-primary-button-text,
  .modal-close-button-text {
    font-size: 1rem;
  }
}

@media (max-width: 450px) {
  .modal {
    border-radius: 12px 28px; /* чуть мягче на маленьких экранах */
  }

  .modal-content {
    padding: .9rem;
  }
}

/* 4) На тач-устройствах hover не нужен: если анимация кажется "шумной",
      можно сделать более спокойной.
      (Оставь, если хочешь постоянное свечение; иначе закомментируй блок .modal{animation:...} выше) */
@media (hover: none) and (pointer: coarse) {
  .modal {
    animation-duration: 2.6s;
  }
}

.recharge-panel-label {
    color: white
}

.recharge-panel-input {
    border: 1px solid #ccc;
    border-radius: .5rem;
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: start;
    align-items: center;
    padding: 15px;
    color: white
}

.recharge-panel-input-raw {
    all: unset;
    flex: 1;
    color: white;
    width: 100%
}

.recharge-panel-input-raw::placeholder {
    color: white;
    opacity: .6
}
