/* ===== ОСНОВНЫЕ СТИЛИ ===== */
:root {
  --primary-color: #6610f2;
  --primary-dark: #5a0fd8;
  --primary-light: #7a3df4;
  --vpn-gradient-start: #6610f2;
  --vpn-gradient-end: #5a0fd8;
  --lte-gradient-start: #6610f2;
  --lte-gradient-end: #5a0fd8;
  --success-color: #198754;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #0dcaf0;
  --bg-primary: #0a0e27;
  --bg-secondary: #151b3d;
  --bg-card: #1e2747;
  --text-primary: #ffffff;
  --text-secondary: #b4c5e7;
  --shadow-sm: 0 2px 8px rgba(102, 16, 242, 0.15);
  --shadow-md: 0 4px 16px rgba(102, 16, 242, 0.25);
  --shadow-lg: 0 8px 32px rgba(102, 16, 242, 0.35);
  --border-radius: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-primary);
  padding: 16px;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(102, 16, 242, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(102, 16, 242, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  padding: 0;
}

/* На ПК — сузить контент профиля как на главной */
@media (min-width: 768px) {
  .profile-page-container {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
  }
}
@media (min-width: 992px) {
  .profile-page-container {
    max-width: 800px;
  }
}

/* ===== КАРТОЧКА ПРОФИЛЯ ===== */
.profile-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, #252f55 100%);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: fadeInUp 0.6s ease-out;
}

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

/* ===== АВАТАР И ЗАГОЛОВОК ===== */
.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--vpn-gradient-start), var(--vpn-gradient-end));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  animation: scaleIn 0.5s ease-out 0.2s both;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.profile-avatar::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.profile-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeIn 0.6s ease-out 0.3s both;
}

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

/* ===== ОБЩАЯ ИНФОРМАЦИЯ ===== */
.profile-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
}

.profile-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
  animation: slideInRight 0.5s ease-out both;
}

.profile-list li:nth-child(1) { animation-delay: 0.1s; }
.profile-list li:nth-child(2) { animation-delay: 0.2s; }
.profile-list li:nth-child(3) { animation-delay: 0.3s; }
.profile-list li:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.profile-list li:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(4px);
  border-color: rgba(102, 16, 242, 0.5);
}

.profile-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.profile-value {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
}

.profile-balance {
  color: var(--success-color);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== КНОПКИ ===== */
.btn {
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:active::before {
  width: 300px;
  height: 300px;
}

.btn-success {
  background: linear-gradient(135deg, var(--success-color), #157347);
  color: white;
  box-shadow: 0 4px 12px rgba(25, 135, 84, 0.3);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(25, 135, 84, 0.4);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 12px rgba(102, 16, 242, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 16, 242, 0.4);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-rounded {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
}

/* ===== ВКЛАДКИ УСЛУГ ===== */
.services-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  position: relative;
}

.service-tab {
  flex: 1;
  padding: 16px;
  border-radius: var(--border-radius);
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.service-tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s;
}

.service-tab:hover::before {
  left: 100%;
}

/* Вкладка VPN */
.service-tab.vpn.active {
  background: linear-gradient(135deg, var(--vpn-gradient-start), var(--vpn-gradient-end));
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-tab.vpn:not(.active):hover {
  background: rgba(102, 16, 242, 0.2);
  border-color: rgba(102, 16, 242, 0.5);
}

/* Вкладка LTE */
.service-tab.lte.active {
  background: linear-gradient(135deg, var(--lte-gradient-start), var(--lte-gradient-end));
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-tab.lte:not(.active):hover {
  background: rgba(102, 16, 242, 0.2);
  border-color: rgba(102, 16, 242, 0.5);
}

/* ===== КОНТЕНТ УСЛУГ ===== */
.service-content {
  display: none;
  animation: fadeIn 0.4s ease-out;
  width: 100%;
}

.service-content.active {
  display: block;
  width: 100%;
}

/* Секция VPN */
.vpn-section {
  background: linear-gradient(135deg, rgba(102, 16, 242, 0.1), rgba(90, 15, 216, 0.05));
  border: 1px solid rgba(102, 16, 242, 0.3);
  border-radius: var(--border-radius);
  padding: 24px;
  margin-bottom: 24px;
  animation: slideInUp 0.5s ease-out;
  width: 100%;
  box-sizing: border-box;
}

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

/* Секция LTE */
.lte-section {
  background: linear-gradient(135deg, rgba(102, 16, 242, 0.1), rgba(90, 15, 216, 0.05));
  border: 1px solid rgba(102, 16, 242, 0.3);
  border-radius: var(--border-radius);
  padding: 24px;
  margin-bottom: 24px;
  animation: slideInUp 0.5s ease-out;
  width: 100%;
  box-sizing: border-box;
}

/* ===== КАРТОЧКИ СТАТУСА ===== */
.status-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.status-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-left: 8px;
}

.status-badge.active {
  background: rgba(25, 135, 84, 0.2);
  color: #4ade80;
  border: 1px solid rgba(25, 135, 84, 0.5);
}

.status-badge.inactive {
  background: rgba(220, 53, 69, 0.2);
  color: #f87171;
  border: 1px solid rgba(220, 53, 69, 0.5);
}

/* ===== ИНСТРУКЦИИ ===== */
.instruction-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  border-left: 4px solid var(--primary-color);
}

.instruction-step {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  align-items: flex-start;
  animation: fadeInLeft 0.5s ease-out both;
}

.instruction-step:nth-child(1) { animation-delay: 0.1s; }
.instruction-step:nth-child(2) { animation-delay: 0.2s; }
.instruction-step:nth-child(3) { animation-delay: 0.3s; }
.instruction-step:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.step-content h6 {
  margin-bottom: 8px;
  color: var(--text-primary);
  font-weight: 600;
}

.step-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ===== КНОПКИ ДЕЙСТВИЙ ===== */
.action-btn {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 12px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.action-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.action-btn:active::after {
  width: 300px;
  height: 300px;
}

.action-btn.vpn {
  background: linear-gradient(135deg, var(--vpn-gradient-start), var(--vpn-gradient-end));
  color: white;
  box-shadow: var(--shadow-md);
}

.action-btn.vpn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.action-btn.lte {
  background: linear-gradient(135deg, var(--lte-gradient-start), var(--lte-gradient-end));
  color: white;
  box-shadow: var(--shadow-md);
}

.action-btn.lte:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

/* ===== МОДАЛЬНЫЕ ОКНА ===== */
.modal-backdrop {
  background: rgba(10, 14, 39, 0.8);
  backdrop-filter: blur(4px);
}

.modal-content {
  background: linear-gradient(135deg, var(--bg-card) 0%, #252f55 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 24px;
}

.modal-title {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.3rem;
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 24px;
}

.btn-close {
  filter: invert(1);
  opacity: 0.8;
  transition: opacity 0.3s;
}

.btn-close:hover {
  opacity: 1;
}

/* Кнопки быстрого выбора суммы */
.quick-amount {
  width: 100%;
  padding: 16px;
  margin-bottom: 12px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.quick-amount::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s;
}

.quick-amount:hover::before {
  left: 100%;
}

.quick-amount:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary-color);
  transform: translateX(4px) scale(1.02);
}

.quick-amount.active {
  background: linear-gradient(135deg, var(--vpn-gradient-start), var(--vpn-gradient-end));
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
  animation: pulseActive 2s infinite;
}

.quick-amount.lte.active {
  background: linear-gradient(135deg, var(--lte-gradient-start), var(--lte-gradient-end));
  border-color: var(--primary-color);
}

@keyframes pulseActive {
  0%, 100% {
    box-shadow: var(--shadow-md);
  }
  50% {
    box-shadow: 0 6px 24px rgba(102, 16, 242, 0.4);
  }
}

.qa-months {
  font-size: 1.1rem;
  font-weight: 700;
}

.qa-amount {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Вкладки в модальном окне */
.payment-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.payment-tab {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.payment-tab.vpn.active {
  background: linear-gradient(135deg, var(--vpn-gradient-start), var(--vpn-gradient-end));
  color: white;
  border-color: var(--primary-color);
}

.payment-tab.lte.active {
  background: linear-gradient(135deg, var(--lte-gradient-start), var(--lte-gradient-end));
  color: white;
  border-color: var(--primary-color);
}

.payment-content {
  display: none;
  animation: fadeIn 0.3s ease-out;
}

.payment-content.active {
  display: block;
}

/* Способ оплаты в модальном окне пополнения */
.payment-method-section .form-label {
  color: var(--text-primary);
  margin-bottom: 10px;
}

.payment-method-select.form-select {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  border-radius: 10px;
  padding: 10px 14px;
}

.payment-method-select.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.payment-method-select.form-select option {
  background: var(--card-bg, #1e1e2e);
  color: var(--text-primary);
}

/* ===== АЛЕРТЫ ===== */
.alert {
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid;
  animation: slideInDown 0.4s ease-out;
}

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

.alert-warning {
  background: rgba(255, 193, 7, 0.1);
  border-color: rgba(255, 193, 7, 0.3);
  color: #ffd60a;
}

.alert-info {
  background: rgba(13, 202, 240, 0.1);
  border-color: rgba(13, 202, 240, 0.3);
  color: #48d0ff;
}

.alert-success {
  background: rgba(25, 135, 84, 0.1);
  border-color: rgba(25, 135, 84, 0.3);
  color: #4ade80;
}

.alert-danger {
  background: rgba(220, 53, 69, 0.1);
  border-color: rgba(220, 53, 69, 0.3);
  color: #f87171;
}

/* ===== DEVICE CARD ===== */
.device-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  transition: var(--transition);
}

.device-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ===== ПРОМОКОД ===== */
.promocode-input {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: var(--transition);
}

.promocode-input:focus {
  outline: none;
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(102, 16, 242, 0.2);
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
  body {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 12px;
  }

  .profile-card {
    padding: 20px;
  }

  .instruction-card {
    padding: 16px;
  }
  
  .vpn-section,
  .lte-section {
    padding: 20px;
  }
}

/* ===== ПРОИЗВОЛЬНАЯ СУММА ===== */
.custom-amount-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.divider-text {
  text-align: center;
  margin-bottom: 20px;
}

.divider-text span {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.custom-amount-input-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.custom-amount-label {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 8px;
  display: block;
}

.input-group {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.custom-amount-input {
  width: 100%;
  padding: 16px 20px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  transition: var(--transition);
  outline: none;
}

.custom-amount-input:focus {
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(102, 16, 242, 0.2);
}

.custom-amount-input.is-invalid {
  border-color: var(--danger-color);
  background: rgba(220, 53, 69, 0.1);
}

.custom-amount-input::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

.custom-amount-hint {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-top: 4px;
  display: block;
}

/* ===== КОМПЬЮТЕРНАЯ ВЕРСИЯ - ССЫЛКА ПОДКЛЮЧЕНИЯ ===== */
.desktop-connection-info {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 16px;
}

.connection-link-wrapper {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.connection-link-input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-family: 'Courier New', monospace;
  word-break: break-all;
  transition: var(--transition);
  outline: none;
}

.connection-link-input:focus {
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(102, 16, 242, 0.2);
}

.btn-copy-link {
  padding: 12px 16px;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  min-width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-copy-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--primary-color);
}

.btn-copy-link:active {
  transform: translateY(0);
}

/* ===== УТИЛИТЫ ===== */
.text-center {
  text-align: center;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-2 {
  margin-bottom: 8px;
}

.mb-3 {
  margin-bottom: 16px;
}

.mb-4 {
  margin-bottom: 24px;
}

.mt-3 {
  margin-top: 16px;
}

.w-100 {
  width: 100%;
}

.d-flex {
  display: flex;
}

.gap-2 {
  gap: 8px;
}

.d-none {
  display: none;
}

.d-block {
  display: block;
}

.fade {
  opacity: 0;
  transition: opacity 0.3s;
}

.fade.show {
  opacity: 1;
}

/* ===== LOADING STATES ===== */
.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.6;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== ANIMATIONS ===== */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Плавное появление при переключении вкладок */
.tab-content > .tab-pane {
  display: none;
}

.tab-content > .tab-pane.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

/* Блики на кнопках */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.btn-shimmer {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}