/* ===== ПОДКЛЮЧЕНИЕ ШРИФТА KONEXY PERSONAL ===== */
@font-face {
  font-family: 'Konexy Personal';
  src: url('/fonts/KonexyPersonalUse.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ===== ПРИМЕНЕНИЕ ШРИФТА ===== */

/* ТОЛЬКО для логотипа SkySafe в навбаре */
.navbar-logo {
  font-family: 'Konexy Personal', sans-serif !important;
}

/* ТОЛЬКО для заголовка H1 */
.main-title {
  font-family: 'Konexy Personal', sans-serif;
  /* Оставляем остальные стили как были */
}

/* ПОДЗАГОЛОВОК - ОСТАВЛЯЕМ КАК БЫЛО */
.main-subtitle {
  /* Убираем Konexy Personal, оставляем стандартный шрифт */
  font-family: inherit; /* или можно явно указать другой шрифт */
  /* или вообще ничего не менять - будет использовать шрифт по умолчанию */
}

/* --- Сброс и базовые стили --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --vh: 1vh;
}

html {
  overflow-y: scroll; /* всегда показываем скролл, но только один */
  overflow-x: hidden;
  width: 100%;
  height: 100%;
}

body {
  overflow: visible; /* убираем overflow у body */
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #1a1a1a;
}

/* Убираем возможный скролл у всех элементов */
*::-webkit-scrollbar {
  width: 8px; /* делаем скролл тонким, но он будет только один */
}

*::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

*::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Разрешаем выделение и копирование текста на всей странице */
* {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
  caret-color: transparent !important; /* Убираем мигающую палочку */
}

/* Запрещаем изменение курсора при наведении на текст */
body, p, span, div, h1, h2, h3, h4, h5, h6, label, li {
  cursor: default !important;
}

/* Для ссылок - pointer */
a {
  cursor: pointer !important;
}

/* Разрешаем копирование только в специальных элементах */
.copy-btn, 
.vpn-key, 
.key-code, 
.key-item-compact .key-code,
[onclick*="copyText"],
[onclick*="copyKey"] {
  cursor: pointer !important;
}

/* Для кнопок копирования сохраняем pointer */
.copy-btn, 
.btn-copy,
[onclick*="copyText"],
[onclick*="copyKey"] {
  cursor: pointer !important;
}

/* Для интерактивных элементов сохраняем pointer */
button, 
a, 
[role="button"],
.clickable,
.action-card,
.key-card,
.key-item-compact {
  cursor: pointer !important;
}

/* Для полей ввода - возвращаем нормальный курсор и каретку */
input, textarea, [contenteditable="true"] {
  cursor: text !important;
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
  caret-color: auto !important; /* Возвращаем каретку для полей ввода */
}

/* ======================================== */
/* ФИКСИРОВАННАЯ ВЕРХНЯЯ ШТОРКА (NAVBAR) */
/* ======================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  width: 100%;
}

.navbar.navbar-scrolled {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.navbar-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
}

/* Логотип - СТРОГИЙ ШРИФТ С ГРАДИЕНТОМ */
.navbar-logo {
  font-size: 1.4rem;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: -0.5px;
  font-family: 'Segoe UI', 'Arial Black', Arial, sans-serif;
  background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: opacity 0.3s ease;
  text-transform: uppercase;
}

.navbar-logo:hover {
  opacity: 0.8;
}

/* Кнопка */
.navbar-actions {
  display: flex;
  align-items: center;
}

.navbar-btn {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.25);
}

.navbar-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.35);
  background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.navbar-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.2);
}

/* ======================================== */
/* АДАПТИВ ДЛЯ МОБИЛЬНЫХ (НАВБАР) */
/* ======================================== */

@media (max-width: 767px) {
  .navbar {
    height: 56px;
    padding: 0 16px;
    background: rgba(0, 0, 0, 0.2);
  }

  .navbar.navbar-scrolled {
    background: rgba(0, 0, 0, 0.35);
  }

  .navbar-logo {
    font-size: 1.15rem;
    letter-spacing: -0.3px;
  }

  .navbar-btn {
    padding: 6px 14px;
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .navbar {
    height: 50px;
    padding: 0 12px;
    background: rgba(0, 0, 0, 0.15);
  }

  .navbar.navbar-scrolled {
    background: rgba(0, 0, 0, 0.3);
  }

  .navbar-logo {
    font-size: 1rem;
    letter-spacing: -0.2px;
  }

  .navbar-btn {
    padding: 5px 12px;
    font-size: 0.7rem;
  }
}

/* Контент занимает всё пространство */
main {
  flex: 1;
}

/* --- ФОН --- */
.background-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  z-index: -2;
}

.bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 1.5s ease-in-out;
}

.bg-low-quality {
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
              url('/assets/header-bg-small.webp');
  background-size: cover;
  background-position: center;
  opacity: 1;
}

.bg-high-quality {
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
              url('/assets/header-bg-full.webp');
  background-size: cover;
  background-position: center;
  opacity: 0;
}

/* --- КОНТЕНТ --- */
.content-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100vh;
  min-height: calc(var(--vh, 1vh) * 100);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 64px;
}

@media (max-width: 767px) {
  .content-wrapper {
    padding-top: 56px;
  }
}

@media (max-width: 480px) {
  .content-wrapper {
    padding-top: 50px;
  }
}

/* --- Хедер --- */
header {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 60px 20px 10px;
  text-align: center;
  width: 100%;
  opacity: 0;
  animation: fadeIn 3s ease forwards;
}

header h1 {
  font-size: clamp(2.2em, 5vw, 4em);
  margin: 0;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

header p {
  font-size: 14px;
  margin-top: 15px;
  opacity: 0.95;
  max-width: 90%;
}

/* --- Кнопочные блоки --- */
.buttons-columns {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 30px;
  margin-bottom: 10px;
  width: 100%;
  max-width: 900px;
  padding: 0 20px;
}

.button-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(40, 40, 40, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  
  /* АНИМАЦИЯ ТОЛЬКО ДЛЯ ДЕСКТОПА */
  transform: translateY(-50px);
  opacity: 0;
  animation: slideDown 2.5s ease forwards;
}

.button-desc {
  font-size: 0.95em;
  color: #eee;
  margin-top: 15px;
  max-width: 100%;
  line-height: 1.5;
}

/* --- Кнопки --- */
.cta-button, .proxy-button {
  display: inline-block;
  padding: 18px 35px;
  border-radius: 16px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  color: #fff;
  width: 100%;
  max-width: 320px;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

/* Кнопка зеленый */
.cta-button {
  background: linear-gradient(135deg, #2d8a4e, #1a5a32);
  box-shadow: 0 4px 15px rgba(26, 90, 50, 0.3);
}

.cta-button:hover {
  background: linear-gradient(135deg, #1a5a32, #0f3b21);
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(26, 90, 50, 0.4);
}

/* Белая кнопка */
.proxy-button {
  background: linear-gradient(135deg, #ffffff, #f3f3f3);
  color: #1e3a8a;
}
.proxy-button:hover {
  background: linear-gradient(135deg, #e5e5e5, #d4d4d4);
  transform: scale(1.05);
}

/* --- Главная секция --- */
.main-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: 0;
  max-width: 1200px;
  min-width: 0;
  margin: 10px auto;
  padding: 0 40px;
  width: 100%;
}

.left-column, .center-column, .right-column {
  background: rgba(40, 40, 40, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateY(50px);
  opacity: 0;
  animation: slideUp 3s ease forwards;
}

.center-column .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.card {
  background: rgba(50,50,50,0.6);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.05);
}

.online {
  color: #22c55e;
  font-weight: bold;
}

/* --- Футер --- */
footer {
  padding: 40px 20px;
  text-align: center;
  font-size: 1em;
  background: rgba(17, 17, 17, 0.95);
  width: 100%;
  border-top: 2px solid #333;
  margin-top: auto; /* Прижимаем к низу */
  /* Убираем анимацию появления */
  opacity: 1 !important;
  animation: none !important;
}

footer a {
  color: #ef4444;
  font-weight: bold;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

footer p {
  margin: 0 0 10px 0;
}

footer p:last-child {
  margin-bottom: 0;
}

/* --- Заголовки --- */
h2 {
  font-size: clamp(1.6em, 4vw, 2.4em);
  margin-bottom: 25px;
  text-align: center;
  color: #fff;
}

/* --- Флаги --- */
.flag {
  width: 28px;
  height: 21px;
  margin-right: 12px;
  vertical-align: middle;
  border-radius: 3px;
  object-fit: cover;
}

/* Убираем нижние отступы у всех колонок */
.button-column,
.left-column, 
.center-column, 
.right-column {
  margin-bottom: 0;
  margin-top: 0;
}

/* ======================================== */
/* СТИЛИ ДЛЯ ПРОКСИ-БЛОКОВ */
/* ======================================== */

/* Стили для плавного переключения */
.buttons-wrapper {
  transition: opacity 0.3s ease-in-out;
}

.buttons-wrapper.hidden {
  display: none;
}

.back-button {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 10px 20px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
  margin-top: 20px;
}

.back-button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Контейнер для центрирования */
.proxy-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* Полное переопределение стилей для прокси-блока */
.proxy-single-block {
  width: 320px !important;
  max-width: 320px !important;
  min-width: 320px !important;
  margin: 0 auto !important;
}

.proxy-single-block .button-column {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
  margin: 0 !important;
  padding: 20px !important;
  box-sizing: border-box !important;
}

.proxy-buttons-vertical {
  display: flex !important;
  flex-direction: column !important;
  gap: 15px !important;
  width: 100% !important;
}

/* Переопределяем все возможные стили кнопок */
.proxy-buttons-vertical .cta-button,
.proxy-buttons-vertical .proxy-button {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  display: block !important;
  text-align: center !important;
  box-sizing: border-box !important;
  padding: 12px 24px !important;
  font-size: 16px !important;
  margin: 0 !important;
  white-space: nowrap !important;
}

/* Убираем возможные флексы от родительских элементов */
.proxy-single-block .button-column::before,
.proxy-single-block .button-column::after {
  display: none !important;
}

/* ======================================== */
/* АДАПТИВНЫЕ СТИЛИ */
/* ======================================== */

/* --- Адаптив для ПК --- */
@media (min-width: 992px) {
  .buttons-columns {
    flex-direction: row;
    justify-content: center;
    gap: 30px;
  }
  
  .button-column {
    width: 50%;
    max-width: none;
    border-radius: 0;
  }
  
  .button-column:first-child {
    border-radius: 16px 16px 16px 16px;
  }
  
  .button-column:last-child {
    border-radius: 16px 16px 16px 16px;
  }
  
  .main-content {
    flex-direction: row;
    justify-content: center;
    gap: 30px;
  }
  
  .left-column, .center-column, .right-column {
    width: 45%;
    flex: none;
    min-height: 320px;
    border-radius: 0;
  }
  
  .left-column {
    border-radius: 16px 16px 16px 16px;
  }
  
  .center-column {
    border-radius: 16px 16px 16px 16px;
  }

  .right-column {
    border-radius: 16px 16px 16px 16px;
  }
}

/* --- Адаптив для планшетов --- */
@media (min-width: 768px) and (max-width: 991px) {
  .main-content {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    margin: 10px auto;
    padding: 0 20px;
  }
  
  .left-column, .right-column {
    width: 50%;
    margin: 0;
    border-radius: 0;
  }
  
  .center-column {
    width: 100%;
    order: 3;
    margin: 0;
    border-radius: 16px 16px 16px 16px;
  }
  
  .left-column {
    border-radius: 16px 16px 16px 16px;
  }
  
  .right-column {
    border-radius: 16px 16px 16px 16px;
  }
  
  .left-column,
  .right-column {
    margin-bottom: 0;
  }
  
  .center-column {
    margin-top: 0;
  }
}

/* --- Адаптив для мобильных --- */
@media (max-width: 767px) {
  /* Мобильные стили — полностью отключаем анимацию */
  header {
    animation: none !important;
    opacity: 1 !important;
  }

  .button-column {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .left-column,
  .center-column,
  .right-column {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .fade-in-text {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  footer {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  /* Стили для мобильной верстки */
  .buttons-columns {
    gap: 0;
    border-radius: 16px;
  }
  
  .button-column {
    border-radius: 16px;
    margin-bottom: 20px;
  }
  
  .button-column:first-child {
    border-radius: 16px 16px 16px 16px;
  }
  
  .button-column:last-child {
    margin-bottom: 0;
  }
  
  .main-content {
    gap: 0;
    padding: 0 15px;
  }
  
  .left-column, .center-column, .right-column {
    border-radius: 16px;
    margin-bottom: 20px;
  }
  
  .left-column {
    border-radius: 16px 16px 16px 16px;
  }
  
  .center-column {
    border-radius: 16px 16px 16px 16px;
  }

  .right-column {
    border-radius: 16px 16px 16px 16px;
  }
  
  .right-column:last-child {
    margin-bottom: 0;
  }

  /* Стили для прокси-блока на мобильных */
  .proxy-single-block {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
  }
  
  .proxy-buttons-vertical .cta-button,
  .proxy-buttons-vertical .proxy-button {
    white-space: normal !important;
  }

  /* Стили для мобильной адаптации текста */
  .main-title {
    font-size: 7.375rem;
    margin-top: 100px;
    margin-bottom: 0px;
    text-align: center;
    word-break: break-word;
  }

  .main-subtitle {
    font-size: 1.625rem;
    margin-bottom: 120px;
    text-align: center;
    color: #ccc;
    word-break: break-word;
  }

  .buttons-columns {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    margin-top: 40px;
  }

  .button-column {
    max-width: 90%;
    text-align: center;
  }

  .cta-button, .proxy-button {
    display: block;
    width: 100%;
    font-size: 1.1rem;
    padding: 14px;
  }

  .main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 20px;
    text-align: center;
  }

  .left-column, .center-column, .right-column {
    width: 100%;
  }

  .grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .card {
    font-size: 0.95rem;
    padding: 10px;
  }

  footer {
    font-size: 0.9rem;
    padding: 30px 10px;
  }
}

/* --- Дополнительная оптимизация для маленьких экранов --- */
@media (max-width: 480px) {
  .main-title {
    font-size: 2.2rem !important;
    margin-top: 50px !important;
  }
  
  .main-subtitle {
    font-size: 0.95rem !important;
    margin-bottom: 30px !important;
  }

  .cta-button, .proxy-button {
    font-size: 1rem;
    padding: 12px;
  }

  .card {
    font-size: 0.85rem;
  }
}

/* ======================================== */
/* АНИМАЦИИ */
/* ======================================== */

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

@keyframes slideDown {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

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

.fade-in-text {
  opacity: 0;
  animation: fadeIn 2s ease-in forwards;
}

.fade-in-text:nth-child(1) {
  animation-delay: 0.3s; /* h1 */
}

.fade-in-text:nth-child(2) {
  animation-delay: 0.8s; /* p */
}

.main-title {
  font-size: 7.375rem;
  margin-top: 100px;
  margin-bottom: 0px;
  text-align: center;
}

.main-subtitle {
  font-size: 1.625rem;
  margin-bottom: 120px;
  text-align: center;
  color: #ccc;
}

.buttons-columns {
  margin-top: 60px;
  margin-bottom: 10px;
}

/* ======================================== */
/* МОДАЛЬНОЕ ОКНО АВТОРИЗАЦИИ */
/* ======================================== */

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-window {
  background: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 40px;
  border-radius: 20px;
  width: 100%;
  max-width: 420px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  position: relative;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-30px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: #888;
  font-size: 28px;
  cursor: pointer;
  transition: color 0.3s;
}

.modal-close:hover {
  color: #fff;
}

.modal-window h2 {
  text-align: center;
  color: #fff;
  margin-bottom: 25px;
  font-size: 24px;
}

.modal-window input {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 15px;
  transition: border-color 0.3s;
  box-sizing: border-box;
}

.modal-window input:focus {
  outline: none;
  border-color: #ef4444;
}

.modal-window input::placeholder {
  color: #666;
}

.modal-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  margin-top: 5px;
}

.modal-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
}

.modal-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.modal-switch {
  text-align: center;
  margin-top: 18px;
  color: #888;
  font-size: 14px;
}

.modal-switch a {
  color: #ef4444;
  text-decoration: none;
  cursor: pointer;
  font-weight: 500;
}

.modal-switch a:hover {
  text-decoration: underline;
}

.modal-message {
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  display: none;
  font-size: 14px;
}

.modal-message.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.modal-message.success {
  display: block;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.modal-loader {
  display: none;
  text-align: center;
  padding: 10px;
  color: #888;
}

.modal-loader.active {
  display: block;
}

.modal-loader::after {
  content: '...';
  animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
  0%, 20% { content: '.'; }
  40% { content: '..'; }
  60%, 100% { content: '...'; }
}

/* Кнопка входа в навбаре меняет цвет при авторизации */
.navbar-btn.logged-in {
  background: linear-gradient(135deg, #2d8a4e, #1a5a32);
  box-shadow: 0 2px 10px rgba(26, 90, 50, 0.2);
}

.navbar-btn.logged-in:hover {
  background: linear-gradient(135deg, #1a5a32, #0f3b21);
  box-shadow: 0 4px 15px rgba(26, 90, 50, 0.3);
}

/* ======================================== */
/* СТИЛИ ДЛЯ ГРУППЫ КНОПОК "ПОЛУЧИТЬ КЛЮЧ" */
/* ======================================== */

.button-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 320px;
}

.button-group .cta-button {
  margin: 0;
  max-width: 100%;
}

.button-group .tg-button {
  background: linear-gradient(135deg, #0088cc, #006699);
}

.button-group .tg-button:hover {
  background: linear-gradient(135deg, #006699, #004d66);
}

/* ======================================== */
/* СТИЛИ ДЛЯ БЛОКА "ПРОКСИ НЕ НАЙДЕНЫ" */
/* ======================================== */

.proxy-not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 2px dashed rgba(255, 255, 255, 0.1);
  width: 100%;
  min-height: 100px;
  gap: 8px;
}

.proxy-not-found .proxy-icon {
  font-size: 32px;
  opacity: 0.5;
}

.proxy-not-found .proxy-text {
  font-size: 18px;
  font-weight: 600;
  color: #888;
}

.proxy-not-found .proxy-hint {
  font-size: 14px;
  color: #555;
}

/* Адаптив для мобильных */
@media (max-width: 767px) {
  .button-group {
    max-width: 100%;
  }
  
  .proxy-not-found {
    padding: 25px 15px;
    min-height: 80px;
  }
  
  .proxy-not-found .proxy-text {
    font-size: 16px;
  }
}