/* Скрываем виджет Яндекс.Метрики */
.ym-element {
  display: none !important;
}

/* Убираем эффект нажатия для всего окна регистрации и входа */
#register-modal .glass-effect,
#login-modal .glass-effect,
#balance-modal .glass-effect {
  transition: none !important;
  transform: none !important;
}

/* Отключаем все анимации для balance-modal */
#balance-modal .glass-effect:active,
#balance-modal .glass-effect:focus {
  filter: none !important;
  transform: none !important;
  outline: none !important;
}

/* Убираем эффект нажатия и cursor для фона модального окна пополнения баланса */
#balance-modal {
  cursor: auto !important;
}

#balance-modal > div {
  cursor: auto !important;
  pointer-events: auto;
}

/* Сделать фон недоступным для нажатия */
#balance-modal::before {
  content: '';
  position: absolute;
  inset: 0;
  cursor: auto !important;
  pointer-events: auto;
}
}

/* Оставляем эффект нажатия только для input и кнопок внутри модалок */
#register-modal input:active,
#register-modal button:active,
#login-modal input:active,
#login-modal button:active {
  transform: scale(0.98);
  transition: transform 0.2s;
}
/* Новостная лента: overlay для затемнения */
.news-bg {
  position: relative;
  min-height: 350px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  background-size: cover;
  background-position: center;
    overflow: hidden;
    border-radius: 1rem;
    background-color: #22154b;
}
.news-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 10, 40, 0.55);
  z-index: 1;
  border-radius: 1rem;
}
/* Fix white input background in admin 'выдать данные' modal */
/* Адаптация всех img по сайту */
img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Картинка внутри новостной ленты */
.news-bg img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem;
  z-index: 0;
}

/* Новогодний тариф с фоном */
.new-year-bg {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.new-year-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 10, 40, 0.8);
  z-index: 5;
  border-radius: 0.5rem;
}
#server-credentials-modal input[type="text"],
#server-credentials-modal input,
#server-credentials-modal textarea,
#server-credentials-modal select {
  background: #18162a !important;
  color: #fff !important;
  border: 1px solid #4b267a !important;
  box-shadow: none !important;
}
#server-credentials-modal input:focus,
#server-credentials-modal textarea:focus,
#server-credentials-modal select:focus {
  border-color: #a855f7 !important;
  background: #23203b !important;
  color: #fff !important;
}
/* Индикаторы статуса тарифа */
.tariff-status-active {
  color: #22c55e !important; /* green-500 */
  font-size: 0.85em;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.tariff-status-expired {
  color: #ef4444 !important; /* red-500 */
  font-size: 0.85em;
  font-weight: 600;
  letter-spacing: 0.02em;
}
/* Force dark input background in balance modal everywhere */
#balance-modal input[type="text"],
#balance-modal input[type="number"],
#balance-modal input,
#balance-modal textarea,
#balance-modal select {
  background: #18162a !important;
  color: #fff !important;
  border: 1px solid #4b267a !important;
  box-shadow: none !important;
}
#balance-modal input:focus,
#balance-modal textarea:focus,
#balance-modal select:focus {
  border-color: #a855f7 !important;
  background: #23203b !important;
  color: #fff !important;
}

/* Анимация кнопок пополнения баланса */
#balance-modal .quick-amount,
#balance-modal .payment-method-btn,
#balance-modal button[type="submit"] {
  transition: all 0.2s ease !important;
}

/* Hover эффект для кнопок быстрого выбора суммы */
#balance-modal .quick-amount:hover {
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3) !important;
  border-color: #a855f7 !important;
}

#balance-modal .quick-amount:active {
  box-shadow: 0 2px 6px rgba(168, 85, 247, 0.2) !important;
}

/* Hover эффект для кнопок выбора способа оплаты */
#balance-modal .payment-method-btn:not([disabled]):hover {
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3) !important;
}

#balance-modal .payment-method-btn:not([disabled]):active {
  box-shadow: 0 2px 6px rgba(168, 85, 247, 0.2) !important;
}

/* Hover эффект для кнопки "Пополнить баланс" */
#balance-modal button[type="submit"]:hover:not(:disabled) {
  box-shadow: 0 8px 20px rgba(168, 85, 247, 0.4) !important;
}

#balance-modal button[type="submit"]:active:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3) !important;
}

/* Fix white input background in balance modal in profile tab */
.profile-block #balance-modal input[type="text"],
.profile-block #balance-modal input[type="number"],
.profile-block #balance-modal input[type="password"],
.profile-block #balance-modal input,
.profile-block #balance-modal textarea,
.profile-block #balance-modal select {
  background: #18162a !important;
  color: #fff !important;
  border: 1px solid #4b267a !important;
  box-shadow: none !important;
}
.profile-block #balance-modal input:focus,
.profile-block #balance-modal textarea:focus,
.profile-block #balance-modal select:focus {
  border-color: #a855f7 !important;
  background: #23203b !important;
  color: #fff !important;
}
/* Темные поля ввода для профиля */
.profile-block input,
.profile-block textarea,
.profile-block select {
  background: #18162a !important;
  color: #fff !important;
  border: 1px solid #4b267a !important;
}

.profile-block input:focus,
.profile-block textarea:focus,
.profile-block select:focus {
  border-color: #a855f7 !important;
  background: #23203b !important;
  color: #fff !important;
}

/* Fix select dropdown and options background in profile modal */
.profile-block select,
.profile-block select option,
.profile-block select optgroup {
  background-color: #18162a !important;
  color: #fff !important;
}
@import url('range-thumb-hitbox.css');
/* Вынесено из <style>...</style> index.html */
@import url('flag-rect.css');

:root {
--purple-glow: 0 0 20px rgba(168, 85, 247, 0.4);
}

body {
background-color: #080410;
color: #fff;
font-family: 'Inter', sans-serif;
}

.glass-effect {
background: rgba(15, 8, 33, 0.7);
backdrop-filter: blur(10px);
border: 1px solid rgba(168, 85, 247, 0.1);
}

.purple-gradient {
background: linear-gradient(135deg, rgba(147, 51, 234, 0.1), rgba(126, 34, 206, 0.1));
}

.glow-effect {
position: relative;
}

.glow-effect::before {
content: '';
position: absolute;
inset: -1px;
background: linear-gradient(135deg, #9333EA, #7E22CE);
border-radius: inherit;
opacity: 0;
transition: opacity 0.3s ease;
z-index: -1;
}

.glow-effect:hover::before {
opacity: 1;
}

.animated-border {
position: relative;
overflow: hidden;
}

.animated-border::after {
content: '';
position: absolute;
inset: 0;
border: 2px solid transparent;
border-radius: inherit;
animation: borderGlow 4s linear infinite;
}

@keyframes borderGlow {
0% { border-color: rgba(168, 85, 247, 0); }
50% { border-color: rgba(168, 85, 247, 0.5); }
100% { border-color: rgba(168, 85, 247, 0); }
}

.hover-scale {
transition: transform 0.3s ease;
}

.hover-scale:hover {
transform: scale(1.05);
}

.sidebar {
background: linear-gradient(180deg, rgba(8, 4, 16, 0.95), rgba(15, 8, 33, 0.95));
backdrop-filter: blur(10px);
border-right: 1px solid rgba(168, 85, 247, 0.1);
}

.nav-item {
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}

.nav-item::before {
content: '';
position: absolute;
left: 0;
top: 0;
height: 100%;
width: 3px;
background: linear-gradient(to bottom, #9333EA, #7E22CE);
transform: scaleY(0);
transition: transform 0.3s ease;
}

.nav-item:hover::before {
transform: scaleY(1);
}

.nav-item:hover {
background: linear-gradient(90deg, rgba(147, 51, 234, 0.1), transparent);
}

.nav-item.active::before {
transform: scaleY(1);
}

.nav-item.active {
background: linear-gradient(90deg, rgba(147, 51, 234, 0.15), transparent);
}

@keyframes logoFloat {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-2px); }
}

.logo-icon {
animation: logoFloat 2s ease-in-out infinite;
}

.logo-text {
position: relative;
}

.logo-text::after {
content: '';
position: absolute;
bottom: -2px;
left: 0;
width: 0;
height: 2px;
background: linear-gradient(to right, #9333EA, #7E22CE);
transition: width 0.3s ease;
}

.logo-container:hover .logo-text::after {
width: 100%;
}

.logo-container:hover .logo-icon {
transform: rotate(-10deg);
transition: transform 0.3s ease;
}

.hero-bg {
position: relative;
overflow: hidden;
background: url('img/fon.png') center center / cover no-repeat !important;
}

.hero-bg::before,
.hero-bg::after {
display: none !important;
}

.feature-card {
transition: none !important;
cursor: default !important;
border: 2px solid rgba(168, 85, 247, 0.25) !important;
box-shadow: 0 0 16px 0 rgba(168, 85, 247, 0.18), 0 0 0 2px rgba(168, 85, 247, 0.10);
background-clip: padding-box;
}

.feature-card:hover {
transform: none !important;
box-shadow: 0 0 24px 2px rgba(168, 85, 247, 0.28), 0 0 0 2px rgba(168, 85, 247, 0.18) !important;
}

.btn-primary {
background: linear-gradient(135deg, #9333EA, #7E22CE);
position: relative;
overflow: hidden;
transition: all 0.3s ease;
}

.btn-primary::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
transition: left 0.5s ease;
}

.btn-primary:hover::before {
left: 100%;
}

.btn-primary:hover {
box-shadow: var(--purple-glow);
}

.btn-primary,
.glass-effect.border {
  cursor: pointer;
  user-select: none;
}

.btn-primary:focus,
.glass-effect.border:focus {
  outline: 2px solid #A855F7;
  outline-offset: 2px;
}

.btn-primary:active,
.glass-effect.border:active {
  filter: brightness(0.95);
  transform: scale(0.98);
}

.btn-tariff {
  cursor: pointer;
  user-select: none;
  outline: none;
  transition: box-shadow 0.2s, outline 0.2s;
}
.btn-tariff:focus {
  outline: 2px solid #A855F7;
  outline-offset: 2px;
}
.btn-tariff:active {
  box-shadow: 0 0 0 2px #9333EA;
  background: linear-gradient(135deg, #7E22CE 80%, #9333EA 100%);
}

/* Стили для модального окна профиля */
#profile-modal, #profile-modal *, #profile-modal::before, #profile-modal::after {
  transition: none !important;
  animation: none !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
}
#profile-modal {
  cursor: default !important;
}
#profile-modal *:not(button):not(a):not([role="button"]):not(input):not(select):not(textarea) {
  cursor: default !important;
}
#profile-modal button,
#profile-modal a,
#profile-modal [role="button"],
#profile-modal input,
#profile-modal select,
#profile-modal textarea {
  cursor: pointer !important;
}
/* Fix input, textarea, select backgrounds in profile modal to match dark theme */
#profile-modal input[type="text"],
#profile-modal input[type="number"],
#profile-modal input[type="password"],
#profile-modal input,
#profile-modal textarea,
#profile-modal select {
  background: #18162a !important;
  color: #fff !important;
  border: 1px solid #4b267a !important;
  box-shadow: none !important;
}
#profile-modal input:focus,
#profile-modal textarea:focus,
#profile-modal select:focus {
  border-color: #a855f7 !important;
  background: #23203b !important;
  color: #fff !important;
}

/* Стили для крестика закрытия окна профиля как у базы знаний */
#profile-modal-close {
  color: #a855f7;
  background: none;
  border: none;
  outline: none;
  cursor: pointer !important;
  transition: color 0.2s, transform 0.2s;
}
#profile-modal-close i {
  pointer-events: none;
}
#profile-modal-close:hover, #profile-modal-close:focus {
  color: #c084fc !important;
  transform: scale(1.2) rotate(90deg);
}

/* Стили для модального окна покупки тарифа */
#tariff-buy-modal, #tariff-buy-modal *, #tariff-buy-modal::before, #tariff-buy-modal::after {
  transition: none !important;
  animation: none !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
}
#tariff-buy-modal {
  background: rgba(8, 4, 16, 0.85) !important;
  cursor: default !important;
  z-index: 9999;
}
#tariff-buy-modal *:not(button):not(a):not([role="button"]):not(input):not(select):not(textarea) {
  cursor: default !important;
}
#tariff-buy-modal button,
#tariff-buy-modal a,
#tariff-buy-modal [role="button"],
#tariff-buy-modal input,
#tariff-buy-modal select,
#tariff-buy-modal textarea {
  cursor: pointer !important;
}
#tariff-buy-modal-close {
  color: #a855f7;
  background: none;
  border: none;
  outline: none;
  cursor: pointer !important;
  transition: color 0.2s, transform 0.2s;
}
#tariff-buy-modal-close i {
  pointer-events: none;
}
#tariff-buy-modal-close:hover, #tariff-buy-modal-close:focus {
  color: #c084fc !important;
  transform: scale(1.2) rotate(90deg);
}
#tariff-buy-modal .glass-effect {
  background: rgba(24, 22, 42, 0.98) !important;
  box-shadow: 0 8px 40px 0 rgba(126, 34, 206, 0.18), 0 0 0 2px rgba(168, 85, 247, 0.10);
}
#tariff-buy-modal label {
  cursor: pointer;
  user-select: none;
}
#tariff-buy-modal input[type="radio"] {
  display: none !important;
}
#tariff-buy-modal .tariff-option.selected {
  border: 2px solid #a855f7 !important;
  background: rgba(168, 85, 247, 0.08) !important;
  box-shadow: 0 0 12px 0 #a855f744;
}
#tariff-buy-modal .btn-primary {
  background: linear-gradient(135deg, #9333EA, #7E22CE);
  box-shadow: 0 0 20px 0 rgba(168, 85, 247, 0.18);
  border: none;
}
#tariff-buy-modal .btn-primary:hover {
  box-shadow: 0 0 32px 0 #a855f7;
  filter: brightness(1.08);
}
#tariff-buy-modal input[type="range"] {
  accent-color: #a855f7;
  width: 100%;
}
#tariff-buy-modal input[type="checkbox"] {
  accent-color: #a855f7;
}
#tariff-buy-modal input, #tariff-buy-modal select {
  background: #18162a !important;
  border: 1px solid #a855f7 !important;
  color: #fff !important;
}
#tariff-buy-modal input:focus, #tariff-buy-modal select:focus {
  border-color: #9333ea !important;
  outline: none;
}
#tariff-buy-modal .border-l {
  border-left: 1px solid #a855f7 !important;
}
#tariff-buy-modal .rounded-xl, #tariff-buy-modal .rounded-2xl {
  border-radius: 1.25rem !important;
}
#tariff-buy-modal .rounded-lg {
  border-radius: 0.75rem !important;
}
#tariff-buy-modal .rounded {
  border-radius: 0.5rem !important;
}
#tariff-buy-modal .font-bold {
  font-weight: 700 !important;
}
#tariff-buy-modal .font-semibold {
  font-weight: 600 !important;
}
#tariff-buy-modal .text-purple-300 {
  color: #c084fc !important;
}
#tariff-buy-modal .text-purple-200 {
  color: #e9d5ff !important;
}
#tariff-buy-modal .text-yellow-300 {
  color: #fde68a !important;
}
#tariff-buy-modal .text-green-300 {
  color: #6ee7b7 !important;
}
#tariff-buy-modal .text-cyan-300 {
  color: #67e8f9 !important;
}
#tariff-buy-modal .text-yellow-100 {
  color: #fef9c3 !important;
}
#tariff-buy-modal .text-gray-400 {
  color: #9ca3af !important;
}
#tariff-buy-modal .text-gray-200 {
  color: #e5e7eb !important;
}
#tariff-buy-modal .text-white {
  color: #fff !important;
}
#tariff-buy-modal .bg-dark {
  background: #18162a !important;
}
#tariff-buy-modal .bg-dark2 {
  background: #23203b !important;
}
#tariff-buy-modal .bg-dark3 {
  background: #1a1830 !important;
}
#tariff-buy-modal .hover\:border-purple-400:hover {
  border-color: #a855f7 !important;
}
#tariff-buy-modal .group:hover .font-bold {
  color: #a855f7 !important;
}
#tariff-buy-modal .accent-purple-500 {
  accent-color: #a855f7 !important;
}
#tariff-buy-modal .shadow-2xl {
  box-shadow: 0 8px 40px 0 rgba(126, 34, 206, 0.18), 0 0 0 2px rgba(168, 85, 247, 0.10) !important;
}
#tariff-buy-modal .overflow-hidden {
  overflow: hidden !important;
}
#tariff-buy-modal .z-10 {
  z-index: 10 !important;
}
#tariff-buy-modal .mt-2 {
  margin-top: 0.5rem !important;
}
#tariff-buy-modal .mt-4 {
  margin-top: 1rem !important;
}
#tariff-buy-modal .mt-6 {
  margin-top: 1.5rem !important;
}
#tariff-buy-modal .mb-2 {
  margin-bottom: 0.5rem !important;
}
#tariff-buy-modal .mb-4 {
  margin-bottom: 1rem !important;
}
#tariff-buy-modal .mb-6 {
  margin-bottom: 1.5rem !important;
}
#tariff-buy-modal .gap-2 {
  gap: 0.5rem !important;
}
#tariff-buy-modal .gap-3 {
  gap: 0.75rem !important;
}
#tariff-buy-modal .gap-4 {
  gap: 1rem !important;
}
#tariff-buy-modal .gap-6 {
  gap: 1.5rem !important;
}
#tariff-buy-modal .flex {
  display: flex !important;
}
#tariff-buy-modal .flex-col {
  flex-direction: column !important;
}
#tariff-buy-modal .flex-row {
  flex-direction: row !important;
}
#tariff-buy-modal .items-center {
  align-items: center !important;
}
#tariff-buy-modal .justify-between {
  justify-content: space-between !important;
}
#tariff-buy-modal .w-full {
  width: 100% !important;
}
#tariff-buy-modal .w-10 {
  width: 2.5rem !important;
}
#tariff-buy-modal .h-10 {
  height: 2.5rem !important;
}
#tariff-buy-modal .max-w-4xl {
  max-width: 64rem !important;
}
#tariff-buy-modal .p-0 {
  padding: 0 !important;
}
#tariff-buy-modal .p-4 {
  padding: 1rem !important;
}
#tariff-buy-modal .p-6 {
  padding: 1.5rem !important;
}
#tariff-buy-modal .p-8 {
  padding: 2rem !important;
}
#tariff-buy-modal .md\:p-8 {
  padding: 2rem !important;
}
#tariff-buy-modal .md\:p-10 {
  padding: 2.5rem !important;
}
#tariff-buy-modal .rounded-xl {
  border-radius: 1.25rem !important;
}
#tariff-buy-modal .rounded-2xl {
  border-radius: 1.5rem !important;
}
#tariff-buy-modal .rounded-lg {
  border-radius: 0.75rem !important;
}
#tariff-buy-modal .rounded {
  border-radius: 0.5rem !important;
}
#tariff-buy-modal .border {
  border-width: 1px !important;
}
#tariff-buy-modal .border-l {
  border-left-width: 1px !important;
}
#tariff-buy-modal .border-purple-500\/20 {
  border-color: #a855f733 !important;
}
#tariff-buy-modal .border-purple-500\/30 {
  border-color: #a855f74d !important;
}
#tariff-buy-modal .cursor-pointer {
  cursor: pointer !important;
}
#tariff-buy-modal .transition {
  transition: all 0.2s;
}
#tariff-buy-modal .group:hover {
  background: #23203b !important;
}
#tariff-buy-modal .overflow-hidden {
  overflow: hidden !important;
}
#tariff-buy-modal .z-10 {
  z-index: 10 !important;
}
#tariff-buy-modal .absolute {
  position: absolute !important;
}
#tariff-buy-modal .top-4 {
  top: 1rem !important;
}
#tariff-buy-modal .right-4 {
  right: 1rem !important;
}
#tariff-buy-modal .md\:w-2\/3 {
  width: 66.666667% !important;
}
#tariff-buy-modal .md\:w-1\/3 {
  width: 33.333333% !important;
}
#tariff-buy-modal .md\:flex-row {
  flex-direction: row !important;
}
#tariff-buy-modal .md\:p-10 {
  padding: 2.5rem !important;
}
#tariff-buy-modal .md\:p-8 {
  padding: 2rem !important;
}
#tariff-buy-modal img.flag, #tariff-buy-modal .flag {
  background: transparent !important;
  box-shadow: none !important;
}
#tariff-buy-modal .tariff-option {
  background: transparent !important;
}
#tariff-buy-modal label.flex,
#tariff-buy-modal label.relative.block.rounded-xl {
  cursor: pointer !important;
  user-select: none;
  transition: box-shadow 0.2s, border-color 0.2s, background 0.2s;
}
#tariff-buy-modal label.flex:hover,
#tariff-buy-modal label.relative.block.rounded-xl:hover {
  box-shadow: 0 0 0 2px #a855f7cc;
  border-color: #a855f7 !important;
  background: #23203b !important;
}
#tariff-buy-modal label.flex.tariff-selected,
#tariff-buy-modal label.relative.block.rounded-xl.tariff-selected {
  border-color: #a78bfa !important;
  background: linear-gradient(90deg, #2a2250 0%, #1a1830 100%) !important;
  box-shadow: 0 0 0 2px #a78bfa99;
}
#tariff-buy-modal .grid .flex.items-center.gap-4.p-4.rounded-xl {
  cursor: pointer !important;
  transition: box-shadow 0.2s, border-color 0.2s, background 0.2s;
}
#tariff-buy-modal .grid .flex.items-center.gap-4.p-4.rounded-xl:hover {
  box-shadow: 0 0 0 2px #a855f7cc;
  border-color: #a855f7 !important;
  background: #23203b !important;
}
#tariff-buy-modal .grid .flex.items-center.gap-4.p-4.rounded-xl.tariff-selected {
  border-color: #a78bfa !important;
  background: linear-gradient(90deg, #2a2250 0%, #1a1830 100%) !important;
  box-shadow: 0 0 0 2px #a78bfa99;
}
.tariff-selected {
  border-color: #a78bfa !important;
  background: linear-gradient(90deg, #2a2250 0%, #1a1830 100%) !important;
  box-shadow: 0 0 0 2px #a78bfa33;
}
#tariff-buy-modal .location-selected {
  border-color: #a855f7 !important;
  box-shadow: 0 0 0 2px #a855f7;
  background: #1a1830 !important;
}
#tariff-buy-modal .range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.25rem;
  font-size: 0.85em;
  color: #a855f7;
  letter-spacing: 0.05em;
}
#tariff-buy-modal .range-value {
  font-size: 1em;
  color: #fff;
  font-weight: 600;
  margin-left: 0.5em;
}
#tariff-buy-modal .range-row {
  display: flex;
  align-items: center;
  gap: 0.5em;
}
#tariff-buy-modal form#tariff-buy-form > fieldset > div {
  margin-bottom: 1.5rem !important; /* Increase space between each option block */
}
#tariff-buy-modal .range-row {
  margin-top: 0.5rem !important; /* Add space above range slider */
  margin-bottom: 0.5rem !important; /* Add space below range slider */
}
#tariff-buy-modal .range-ticks {
  margin-top: 0.5rem !important; /* Add space below ticks */
}
#tariff-buy-modal .grid.grid-cols-1.sm\:grid-cols-2.gap-4.mb-4 {
  gap: 1.5rem !important; /* More space between location cards */
  margin-bottom: 2rem !important; /* More space below location selection */
}
#tariff-buy-modal input[placeholder^="Промокод"],
#tariff-buy-modal input[placeholder^="Название сервера"] {
  margin-bottom: 1.5rem !important;
}
#tariff-buy-modal .flex.items-center.gap-2 {
  margin-bottom: 0.3rem !important;
}
#tariff-buy-modal button[type="submit"] {
  margin-top: 0 !important;
  padding-top: 0.7em !important;
  padding-bottom: 0.7em !important;
  font-size: 1.1em !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .sidebar {
    width: 250px;
  }
  
  .hero-bg {
    padding: 2rem 1rem;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    height: auto;
    border-right: none;
    border-top: 1px solid rgba(168, 85, 247, 0.1);
    padding: 0.5rem;
    z-index: 50;
  }

  header.fixed {
    width: 100% !important;
    margin-left: 0 !important;
  }

  /* Стили для профиля на мобильных устройствах */
  .profile-block {
    padding: 0.5rem 0.5rem 0.5rem 0.5rem !important;
    margin: 0 !important;
    min-height: 100vh !important;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 5rem;
  }

  .profile-block .glass-effect,
  .profile-block .bg-darkLight {
    padding: 0.75rem 1rem !important;
    margin-bottom: 0.5rem !important;
    border-radius: 0.75rem !important;
    background: rgba(24, 22, 42, 0.98) !important;
    border: 1px solid rgba(168, 85, 247, 0.10) !important;
    box-shadow: 0 2px 8px 0 rgba(168, 85, 247, 0.10);
    width: 100% !important;
    max-width: 100% !important;
  }

  .profile-block .flex-col,
  .profile-block .md\:flex-row {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }

  /* Адаптация контейнера с сервера и история платежей */
  .profile-block .flex.items-start {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }

  /* Адаптация блока "Мои сервера" */
  .profile-block .w-\[800px\] {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Адаптация блока "История платежей" */
  .profile-block .w-80 {
    width: 100% !important;
    margin-left: 0 !important;
  }

  /* Убираем правый отступ и ширину для всех flex контейнеров в профиле */
  .profile-block .flex-1 .flex {
    flex-direction: column !important;
  }

  .profile-block .max-w-md,
  .profile-block .space-y-6,
  .profile-block .grid,
  .profile-block .grid-cols-1 {
    max-width: 100% !important;
    width: 100% !important;
    gap: 0.5rem !important;
  }

  .profile-block h3 {
    font-size: 1.1rem !important;
    margin-bottom: 0.7rem !important;
    color: #ffffff !important;
    font-weight: 600 !important;
  }

  .profile-block input,
  .profile-block select,
  .profile-block textarea {
    font-size: 1rem !important;
    padding: 0.6rem 0.9rem !important;
    margin-bottom: 0.4rem !important;
    background: #18162a !important;
    border: 1px solid #4b267a !important;
    border-radius: 0.6rem !important;
    width: 100% !important;
    box-sizing: border-box;
  }

  .profile-block label {
    font-size: 0.95rem !important;
    margin-bottom: 0.15rem !important;
    color: #e9d5ff !important;
    font-weight: 500 !important;
  }

  .profile-block .btn-primary,
  .profile-block button[type="submit"] {
    width: 100% !important;
    padding: 0.7rem 1rem !important;
    font-size: 1rem !important;
    margin-top: 0.4rem !important;
    border-radius: 0.7rem !important;
    background: linear-gradient(135deg, #9333EA, #7E22CE) !important;
    font-weight: 600 !important;
  }

  /* Стили для левой колонки профиля */
  .profile-block > .flex.flex-col.md\:flex-row {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }

  .profile-block .max-w-md {
    max-width: 100% !important;
    width: 100% !important;
  }
  .profile-block .border.border-purple-500\/10 {
    padding: 1.25rem !important;
    margin-bottom: 1rem !important;
    border-radius: 1rem !important;
    background: rgba(15, 8, 33, 0.6) !important;
  }

  .profile-block .space-y-4 > * + * {
    margin-top: 1rem !important;
  }

  /* Стили для кнопок тариф */
  .profile-block .flex.flex-col.sm\:flex-row {
    flex-direction: column !important;
    gap: 0.75rem !important;
  }

  .profile-block .inline-flex.items-center {
    width: 100% !important;
    justify-content: center !important;
    padding: 0.95rem 1.1rem !important;
    margin-top: 0.6rem !important;
    font-size: 1rem !important;
    min-height: 48px;
    border-radius: 0.8rem !important;
    transition: all 0.2s ease !important;
  }

  /* Убираем больной отступ снизу */
  .profile-block {
    margin-bottom: 5rem !important;
    padding-bottom: 2rem !important;
  }

  /* Стили для блока баланса в шапке */
  .balance-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 0.5rem;
  }

  .balance-container {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.4rem;
    background: rgba(15, 8, 33, 0.95);
    border-radius: 0.375rem;
    border: 1px solid rgba(168, 85, 247, 0.15);
    max-width: max-content;
  }

  .balance-value {
    font-size: 0.85rem;
    white-space: nowrap;
    letter-spacing: -0.02em;
    line-height: 1;
  }

  /* Адаптация размера шрифта баланса в зависимости от количества цифр */
  .balance-value[data-length="4"] {
    font-size: 0.8rem;
  }

  .balance-value[data-length="5"] {
    font-size: 0.75rem;
  }

  .balance-value[data-length="6"] {
    font-size: 0.7rem;
  }

  .exit-button {
    padding: 0.35rem 0.6rem;
    font-size: 0.875rem;
    white-space: nowrap;
    border-radius: 0.375rem;
    background: rgba(15, 8, 33, 0.95);
    border: 1px solid rgba(168, 85, 247, 0.15);
  }

  .nav-item {
    padding: 0.5rem;
  }

  .hero-bg {
    padding: 1.5rem 1rem;
    text-align: center;
  }

  .feature-card {
    padding: 1rem;
  }

  #tariff-buy-modal .md\:flex-row {
    flex-direction: column !important;
  }

  #tariff-buy-modal .md\:w-2\/3,
  #tariff-buy-modal .md\:w-1\/3 {
    width: 100% !important;
  }
}

@media (max-width: 640px) {
  #tariff-buy-modal form#tariff-buy-form > fieldset > div {
    margin-bottom: 1.2rem !important;
  }
  
  #tariff-buy-modal .grid.grid-cols-1.sm\:grid-cols-2.gap-4.mb-4 {
    gap: 1rem !important;
    margin-bottom: 1.2rem !important;
  }
  
  #tariff-buy-modal button[type="submit"] {
    margin-top: 1.2rem !important;
  }

  .feature-card {
    margin: 0.5rem 0;
  }

  .btn-primary {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-bg {
    padding: 1rem 0.5rem;
  }

  /* Дополнительные стили для профиля на маленьких экранах */
  .profile-block {
    padding: 1rem !important;
    margin-top: 3rem !important;
    margin-bottom: 5rem !important;
    gap: 1.25rem !important;
  }

  .profile-block .glass-effect {
    padding: 1.25rem !important;
    border-radius: 1rem !important;
    margin-bottom: 0 !important;
  }

  .profile-block .flex-col {
    gap: 1rem !important;
  }

  .profile-block h3 {
    font-size: 1.2rem !important;
    margin-bottom: 1rem !important;
    text-align: center !important;
  }

  .profile-block input,
  .profile-block select,
  .profile-block textarea {
    font-size: 1rem !important;
    padding: 0.85rem 1rem !important;
    margin-bottom: 0.8rem !important;
    border-radius: 0.8rem !important;
    min-height: 48px;
  }

  .profile-block label {
    font-size: 0.95rem !important;
    margin-bottom: 0.4rem !important;
    font-weight: 600 !important;
  }

  .profile-block .btn-primary,
  .profile-block button[type="submit"] {
    padding: 0.95rem 1rem !important;
    font-size: 1.05rem !important;
    border-radius: 0.85rem !important;
    min-height: 50px;
    font-weight: 700 !important;
  }

  .profile-block .space-y-6 > * + * {
    margin-top: 1rem !important;
  }

  /* Улучшенные стили для карточек в профиле */
  .profile-block .grid-cols-1 > * {
    margin-bottom: 0.75rem !important;
  }

  .profile-block .grid {
    gap: 1rem !important;
  }

  .profile-block .border.border-purple-500\/10 {
    padding: 1.2rem !important;
    margin-bottom: 1rem !important;
  }

  .profile-block .inline-flex.items-center {
    padding: 0.9rem 1rem !important;
    font-size: 0.95rem !important;
    min-height: 46px;
  }

  .profile-block .grid {
    gap: 0.75rem !important;
  }

  .balance-header {
    gap: 0.35rem;
  }

  .balance-container {
    padding: 0.2rem 0.35rem;
    min-width: 0;
  }

  .balance-value {
    font-size: 0.75rem;
  }

  .balance-value[data-length="4"] {
    font-size: 0.7rem;
  }

  .balance-value[data-length="5"] {
    font-size: 0.65rem;
  }

  .balance-value[data-length="6"] {
    font-size: 0.6rem;
  }

  .exit-button {
    padding: 0.25rem 0.5rem;
    font-size: 0.8125rem;
  }

  #profile-modal,
  #tariff-buy-modal {
    padding: 1rem !important;
  }

  .glass-effect {
    padding: 1rem !important;
  }

  input[type="range"] {
    margin: 5px 0;
  }

  /* Стили для социальных сетей на мобильных */
  .profile-block .flex.items-center.justify-between {
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0.75rem !important;
  }

  .profile-block .flex.items-center.justify-between > * {
    width: 100% !important;
  }

  /* Центрирование текста и иконок */
  .profile-block .flex.items-center {
    justify-content: center !important;
  }

  .profile-block .text-center {
    text-align: center !important;
  }
}

@media (hover: none) {
  .btn-primary:hover::before,
  .nav-item:hover::before,
  .feature-card:hover,
  .logo-container:hover .logo-text::after {
    display: none;
  }
  
  .btn-primary:active,
  .nav-item:active,
  .feature-card:active {
    opacity: 0.8;
  }
}

#tariff-buy-modal ::-webkit-scrollbar {
  width: 8px;
  background: #18162a;
  border-radius: 8px;
}
#tariff-buy-modal ::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #a855f7 10%, #7e22ce 90%);
  border-radius: 8px;
  min-height: 40px;
}
#tariff-buy-modal ::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #c084fc 10%, #a855f7 90%);
}
#tariff-buy-modal ::-webkit-scrollbar-corner {
  background: #18162a;
}
#tariff-buy-modal {
  scrollbar-width: thin;
  scrollbar-color: #a855f7 #18162a;
}

/* Стили для цен опций */
.text-right {
  text-align: right;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-purple-400 {
  color: rgb(192, 132, 252);
}

/* Обновленные стили для ползунков */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: rgba(147, 51, 234, 0.2);
  border-radius: 2px;
  outline: none;
  margin: 10px 0;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: rgb(147, 51, 234);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  background: rgb(168, 85, 247);
  transform: scale(1.1);
}

input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: rgb(147, 51, 234);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}

input[type="range"]::-moz-range-thumb:hover {
  background: rgb(168, 85, 247);
  transform: scale(1.1);
}

/* Стили для тиков */
.range-ticks {
  position: relative;
  height: 5px;
  margin-top: -10px;
}

.range-ticks span {
  position: absolute;
  width: 1px;
  height: 5px;
  background: rgba(147, 51, 234, 0.3);
  transform: translateX(-50%);
}

/* Мобильная адаптация: меняем порядок частей окна оплаты тарифа */
@media (max-width: 768px) {
  #tariff-buy-modal > div.relative {
    flex-direction: column !important;
    display: flex !important;
  }
  #tariff-buy-modal > div.relative > .md\:w-3\/5 {
    border-left: none !important;
    border-top: 1px solid rgba(168,85,247,0.2) !important;
    height: 32vh !important;
    min-height: 140px !important;
    max-height: 40vh !important;
    width: 100% !important;
    overflow-y: auto !important;
  }
  #tariff-buy-modal > div.relative > .md\:w-2\/5 {
    border-left: none !important;
    border-bottom: 1px solid rgba(168,85,247,0.2) !important;
    height: 68vh !important;
    min-height: 250px !important;
    max-height: 75vh !important;
    width: 100% !important;
    overflow-y: auto !important;
  }
}

/* Стили для карточек тарифов в профиле - современный строгий дизайн */
.tariff-card-modern {
  position: relative;
  transition: all 0.3s ease;
}

.tariff-card-modern:hover {
  border-color: rgb(75, 85, 99);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  background: linear-gradient(to bottom right, rgb(17, 24, 39), rgb(5, 7, 15));
}

/* Конец стилей */