/* ========== БАЗОВЫЕ СТИЛИ ========== */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Unbounded:wght@500;600;700&display=swap');

:root {
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-display: 'Unbounded', system-ui, sans-serif;
  --vrn-text: #0c0c0c;
  --vrn-text-soft: #3d3d3d;
  --vrn-muted: #6b6b6b;
  --vrn-border: rgba(255, 255, 255, 0.3);
  --vrn-surface: rgba(255, 255, 255, 0.15);
  --vrn-shadow: 0 0.5rem 1.75rem rgba(0, 0, 0, 0.08), 0 0.15rem 0.4rem rgba(0, 0, 0, 0.04);
}

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

body {
  font-family: var(--font-body);
  color: #fff;
  background: #0a0a0a url('background.jpg') center center / cover no-repeat fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.hidden {
  display: none !important;
}

/* ========== НОВЫЙ ХЕДЕР ========== */
.new-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 100%;
  overflow: hidden;
}

.settings-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 8px 12px;
  border-radius: 25px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.settings-btn:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.15);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(145deg, #333, #111);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-nickname {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.balance-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 8px 14px;
  border-radius: 25px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  min-width: max-content;
}

.balance-badge:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.15);
}

#header-balance {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.3);
}

.plus-icon {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

/* ========== КОНТЕЙНЕР ========== */
.container {
  padding: 75px 16px 16px;
  max-width: 26rem;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ========== ЭКРАНЫ ========== */
.screen {
  display: none;
  animation: slideIn 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  width: 100%;
  max-width: 380px;
}

.screen.active {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ========== СТЕКЛЯННЫЕ КАРТОЧКИ ========== */
.glass-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  color: white;
}

.glass-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 6px;
}

.card-value {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
}

.screen.active {
  display: flex;
  flex-direction: column;
  align-items: center;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== ЛОГОТИП С СВЕЧЕНИЕМ ========== */
.logo-section {
  text-align: center;
  margin-bottom: 40px;
  animation: fadeIn 0.8s ease;
  width: 100%;
}

.main-logo {
  width: 120px;
  height: 120px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.6)) drop-shadow(0 0 60px rgba(255, 255, 255, 0.4));
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.4)) drop-shadow(0 0 40px rgba(255, 255, 255, 0.3));
  }

  to {
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 60px rgba(255, 255, 255, 0.5));
  }
}

.app-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.app-subtitle {
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== GLASSMORPHISM КАРТОЧКИ ========== */
.glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 24px;
  margin-bottom: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  width: 100%;
}

.glass-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* ========== КАРТОЧКА ПОДПИСКИ ========== */
.subscription-card {
  margin-bottom: 20px;
}

.sub-info {
  margin-bottom: 20px;
}

.sub-info:last-child {
  margin-bottom: 0;
}

.sub-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sub-link {
  display: flex;
  gap: 10px;
  align-items: center;
}

.sub-link input {
  flex: 1;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: #fff;
  font-size: 13px;
  font-family: 'SF Mono', 'Courier New', monospace;
  outline: none;
}

.copy-link-btn {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.copy-link-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.sub-date {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

/* ========== ПРЕДУПРЕЖДЕНИЕ ========== */
.warning-card {
  background: rgba(255, 193, 7, 0.15);
  border-color: rgba(255, 193, 7, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 15px;
}

.warning-icon {
  font-size: 48px;
}

.warning-text {
  color: #fff;
  line-height: 1.6;
}

.warning-text strong {
  font-size: 18px;
  display: block;
  margin-bottom: 5px;
}

.renew-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(145deg, #ffc107, #ff9800);
  color: #000;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

.renew-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 193, 7, 0.6);
}

/* ========== КНОПКИ ДЕЙСТВИЙ ========== */
.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
  width: 100%;
}

.secondary-btn {
  width: 100%;
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* ========== КНОПКА НАЗАД ========== */
.back-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  display: inline-block;
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateX(-4px);
}

.screen-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
  letter-spacing: -0.03em;
}

/* ========== КАРТОЧКИ ДАННЫХ ========== */
.card-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.card-value {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -1.5px;
}

/* ========== СЕТКА СУММ ========== */
.amount-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.amount-btn {
  padding: 22px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 16px;
}

.amount-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.amount-btn.selected {
  border: 2px solid transparent;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
  transform: scale(1.08);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* ========== ПОЛЕ ВВОДА СВОЕЙ СУММЫ ========== */
.custom-amount-section {
  margin: 24px 0;
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.custom-amount-container {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

#custom-amount {
  flex: 1;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  outline: none;
  transition: all 0.3s ease;
}

#custom-amount:focus {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
}

#custom-amount::placeholder {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.custom-amount-container .action-btn {
  flex: 0 0 auto;
  width: auto;
  padding: 16px 28px;
  margin-bottom: 0;
  font-size: 15px;
}

.action-btn {
  width: 100%;
  padding: 18px;
  background: linear-gradient(145deg, #1a1a1a, #2e2e2e);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  filter: brightness(1.1);
}

/* ========== СПОСОБЫ ОПЛАТЫ ========== */
.payment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.payment-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 12px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 120px;
  border-radius: 16px;
}

.payment-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.payment-btn.selected {
  border: 2px solid transparent;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(240, 147, 251, 0.4);
}

.payment-icon {
  width: 44px;
  height: 44px;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
}

.payment-btn:hover .payment-icon {
  transform: scale(1.15);
}

.payment-btn span {
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
}

/* ========== ТАРИФЫ ========== */
.tariff-subtitle {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.promo-section {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

#promo-input {
  flex: 1;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
}

#promo-input:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

#promo-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.promo-btn {
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.promo-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.tariff-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.tariff-card-new {
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  border-radius: 20px;
}

.tariff-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: linear-gradient(270deg, #ffffff, #e0e0e0, #c0c0c0, #e0e0e0, #ffffff);
  background-size: 400% 400%;
  color: #000;
  padding: 3px 6px;
  border-radius: 20px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  animation: gradient-flow 4s ease infinite;
}

@keyframes gradient-flow {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.tariff-card-new:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.tariff-card-new.selected {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.tariff-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.tariff-name {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.tariff-price-new {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 5px;
}

.tariff-total {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.tariff-discount {
  background: rgba(76, 175, 80, 0.3);
  color: #4caf50;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(76, 175, 80, 0.5);
}

.buy-vpn-btn {
  width: 100%;
  padding: 18px;
  background: linear-gradient(145deg, #1a1a1a, #2e2e2e);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  margin-bottom: 16px;
    margin-top: 4px;

}

.buy-vpn-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(125, 125, 125, 0.6);
  filter: brightness(1.1);
}

/* Анимация перелива градиента для Stars */
@keyframes goldShimmer {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Базовый стиль для золотой кнопки Stars  */
.animate-gold-gradient {
  width: 100%;
  padding: 18px;
  background: linear-gradient(145deg, #f9c93a, #ffa000, #f9c93a);
  background-size: 200% 200%;
  animation: goldShimmer 5s ease infinite;
  color: #000000 !important;
  border: none;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 160, 0, 0.3);
  margin-bottom: 16px;
  box-sizing: border-box;
}

.animate-gold-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 160, 0, 0.5);
  filter: brightness(1.05);
}

/* Стиль для кнопки Оплаты Криптой/СБП  */
.buy-crypto-btn {
  width: 100%;
  padding: 18px;
  background: linear-gradient(145deg, #1a1a1a, #2e2e2e);
  color: #00ffcc !important;
  /* Твой фирменный бирюзовый цвет текста */
  border: 1px solid rgba(0, 255, 204, 0.2);
  border-radius: 14px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  margin-bottom: 16px;
  box-sizing: border-box;
}

.buy-crypto-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 255, 204, 0.2);
  border-color: rgba(0, 255, 204, 0.5);
  filter: brightness(1.1);
}

.balance-info {
  text-align: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.balance-info span:last-child {
  font-weight: 700;
  color: #fff;
}

/* Старые стили тарифов - оставляем для совместимости */
.tariff-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  border-radius: 20px;
}

.tariff-card:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateX(6px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.tariff-price {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: #fff;
}

/* ========== РЕФЕРАЛЬНАЯ ПРОГРАММА ========== */
.referral-link-section {
  margin: 24px 0;
}

.referral-link-container {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

#referral-link {
  flex: 1;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  color: #fff;
  font-size: 13px;
  font-family: 'SF Mono', 'Courier New', monospace;
  outline: none;
}

.referral-link-detail {
  flex: 1;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  color: #fff;
  font-size: 13px;
  font-family: 'SF Mono', 'Courier New', monospace;
  outline: none;
}

.copy-btn {
  height: auto;
  padding: 16px 24px;
  background: linear-gradient(145deg, #1a1a1a, #2e2e2e);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.copy-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  filter: brightness(1.1);
}

.referral-info {
  background: rgba(76, 175, 80, 0.15);
  border-color: rgba(76, 175, 80, 0.4);
  padding: 22px;
}

.referral-info p {
  font-size: 15px;
  line-height: 1.6;
  color: #fff;
  text-align: center;
}

.referral-info strong {
  color: #4caf50;
  font-weight: 700;
  font-size: 18px;
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 400px) {
  .new-header {
    height: 60px;
    padding: 0 15px;
  }

  .container {
    padding-top: 70px;
  }

  .main-logo {
    width: 100px;
    height: 100px;
  }

  .app-title {
    font-size: 30px;
  }

  .card-value {
    font-size: 36px;
  }

  .amount-btn {
    font-size: 20px;
    padding: 24px;
  }

  .payment-icon {
    width: 44px;
    height: 44px;
  }
}

/* ========== НАСТРОЙКИ ========== */
.settings-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.settings-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  width: 100%;
}

.settings-item:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateX(4px);
}

.settings-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.settings-text {
  flex: 1;
}

.settings-label {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.settings-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.settings-arrow {
  font-size: 24px;
  color: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}

/* ========== TOGGLE SWITCH ========== */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.2);
  transition: 0.3s;
  border-radius: 34px;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  background: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked+.toggle-slider {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: #667eea;
}

input:checked+.toggle-slider:before {
  transform: translateX(24px);
}

/* ========== ДЕТАЛЬНАЯ РЕФЕРАЛЬНАЯ ПРОГРАММА ========== */
.referral-stats {
  padding: 24px;
  margin-bottom: 20px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-row:last-child {
  border-bottom: none;
}

.stat-label {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
}

.stat-value {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.referral-conditions {
  padding: 24px;
  margin-bottom: 20px;
}

.conditions-list {
  list-style: none;
  padding: 0;
  margin: 15px 0;
}

.conditions-list li {
  padding: 10px 0;
  padding-left: 25px;
  position: relative;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.conditions-list li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: #4caf50;
  font-size: 20px;
  font-weight: bold;
}

.conditions-list strong {
  color: #4caf50;
  font-weight: 700;
}

.examples {
  margin-top: 20px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border-left: 4px solid #4caf50;
}

.examples p {
  margin: 8px 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.examples strong {
  color: #fff;
  font-weight: 600;
}

/* ========== КУРСОР НА АВАТАРКЕ ========== */
.user-info {
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.user-info:hover {
  opacity: 0.8;
}

/*Небольшие правки*/

/* Убираем жесткую высоту экрана инструкции, чтобы он не улетал вниз */
#connection-screen {
  height: auto !important;
  min-height: unset !important;
  padding-bottom: 20px !important;
  padding-top: 10px !important;
}

/* Выравниваем кнопку Назад, чтобы она стояла аккуратно */
#connection-screen .back-btn {
  margin-bottom: 15px !important;
  margin-top: 5px !important;
}

/* Профессиональные стили для переключателя тарифов base/vip */
.tariff-tabs-container {
  display: flex !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 14px !important;
  padding: 4px !important;
  margin: 15px auto 25px auto !important;
  width: 90%;
  max-width: 400px;
  box-sizing: border-box;
  backdrop-filter: blur(10px);
}

.tariff-tabs-container .tab-btn {
  flex: 1 !important;
  background: none;
  border: none !important;
  color: rgba(255, 255, 255, 0.6);
  padding: 12px 10px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  transition: all 0.25s ease-in-out !important;
  outline: none;
}

/* Стиль для активной выбранной вкладки */
.tariff-tabs-container .tab-btn.active {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}