/* ===== PRO.CSS — стили для модального окна PRO подписки ===== */

/* ---- ОВЕРЛЕЙ ---- */
.pro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease;
}

.pro-overlay.active {
  display: flex;
}

/* ---- МОДАЛЬНОЕ ОКНО ---- */
.pro-modal {
  background: linear-gradient(145deg, #11191e, #0d151a);
  border: 1px solid #f5a623;
  border-radius: 32px;
  padding: 44px 40px 40px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  margin: 20px;
  position: relative;
  animation: slideUp 0.4s ease;
  box-shadow: 0 30px 80px rgba(245, 166, 35, 0.15), inset 0 1px 0 rgba(245, 166, 35, 0.05);
  overflow: hidden; /* скрываем всё, что выходит за границы */
  display: flex;
  flex-direction: column;
}

/* Кнопка закрытия (всегда сверху) */
.pro-close {
  position: sticky;
  top: 0;
  float: right;
  background: none;
  border: none;
  color: #4f6a7a;
  font-size: 22px;
  cursor: pointer;
  transition: 0.2s ease;
  z-index: 10;
  flex-shrink: 0;
  align-self: flex-end;
  margin-top: -8px;
  margin-right: -8px;
}

.pro-close:hover {
  color: #dce9f2;
  transform: rotate(90deg);
}

/* Заголовок (не прокручивается) */
.pro-header {
  text-align: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.pro-header .pro-icon {
  font-size: 48px;
  background: linear-gradient(135deg, #f7b731, #f5a623);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  display: block;
  filter: drop-shadow(0 0 20px rgba(245, 166, 35, 0.2));
}

.pro-header h2 {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, #f7b731, #f5a623);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.pro-header p {
  color: #8aa6b8;
  font-size: 14px;
}

/* ----- ПРОКРУЧИВАЕМАЯ ОБЛАСТЬ ----- */
.pro-scrollable {
  flex: 1 1 auto;
  overflow-y: auto;
  padding-right: 4px;
  margin-right: -4px;
  border-radius: 12px; /* уменьшенный радиус, чтобы контент не обрезался по углам */
}

/* Кастомный скроллбар для pro-scrollable */
.pro-scrollable::-webkit-scrollbar {
  width: 3px;
}

.pro-scrollable::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
}

.pro-scrollable::-webkit-scrollbar-thumb {
  background: rgba(79, 138, 170, 0.2);
  border-radius: 10px;
  transition: 0.2s;
}

.pro-scrollable::-webkit-scrollbar-thumb:hover {
  background: rgba(79, 138, 170, 0.5);
}

/* Для Firefox */
.pro-scrollable {
  scrollbar-width: thin;
  scrollbar-color: rgba(79, 138, 170, 0.2) transparent;
}

/* ---- ПРЕИМУЩЕСТВА ---- */
.pro-benefits {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.pro-benefit {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #0a1218;
  border: 1px solid #1a2a32;
  border-radius: 16px;
  padding: 12px 16px;
  transition: 0.3s ease;
}

.pro-benefit:hover {
  border-color: #3f6a80;
  transform: translateX(4px);
}

.pro-benefit .benefit-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.15), rgba(245, 166, 35, 0.05));
  border: 1px solid rgba(245, 166, 35, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #f5a623;
  flex-shrink: 0;
}

.pro-benefit .benefit-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: #dce9f2;
  margin-bottom: 1px;
}

.pro-benefit .benefit-info p {
  font-size: 12px;
  color: #6d8fa0;
  margin: 0;
}

.pro-benefit .benefit-badge {
  font-size: 10px;
  font-weight: 700;
  color: #f5a623;
  background: rgba(245, 166, 35, 0.12);
  border: 1px solid rgba(245, 166, 35, 0.15);
  padding: 2px 10px;
  border-radius: 40px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---- ЦЕНА ---- */
.pro-plans {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.pro-plan {
  flex: 1;
  background: #0a1218;
  border: 1px solid #1a2a32;
  border-radius: 16px;
  padding: 14px 12px;
  text-align: center;
  cursor: pointer;
  transition: 0.3s ease;
  position: relative;
}

.pro-plan:hover {
  border-color: #3f6a80;
}

.pro-plan.active {
  border-color: #f5a623;
  background: rgba(245, 166, 35, 0.06);
  box-shadow: 0 0 0 1px rgba(245, 166, 35, 0.15);
}

.plan-name {
  font-size: 13px;
  font-weight: 600;
  color: #8aa6b8;
  margin-bottom: 6px;
  transition: color 0.3s;
}

.pro-plan.active .plan-name {
  color: #dce9f2;
}

.plan-price {
  font-size: 20px;
  font-weight: 700;
  color: #dce9f2;
  transition: color 0.3s;
}

.pro-plan.active .plan-price {
  color: #f5a623;
}

.plan-price small {
  font-size: 12px;
  font-weight: 400;
  color: #6d8fa0;
}

.plan-per-month {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 500;
  color: #6d8fa0;
}

.pro-plan.active .plan-per-month {
  color: #8aa6b8;
}

.plan-badge {
  position: absolute;
  top: -8px;
  right: 12px;
  background: linear-gradient(135deg, #f7b731, #f5a623);
  color: #0a0f13;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 40px;
  text-transform: uppercase;
}

.pro-pricing {
  text-align: center;
  margin-bottom: 24px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.06), rgba(245, 166, 35, 0.02));
  border-radius: 20px;
  border: 1px solid rgba(245, 166, 35, 0.1);
}

.pro-pricing .price {
  font-size: 38px;
  font-weight: 700;
  color: #f5a623;
}

.pro-pricing .price small {
  font-size: 16px;
  font-weight: 400;
  color: #8aa6b8;
}

.pro-pricing .period {
  color: #6d8fa0;
  font-size: 13px;
  margin-top: 2px;
}

.pro-pricing .saving {
  display: inline-block;
  margin-top: 6px;
  background: rgba(245, 166, 35, 0.12);
  border: 1px solid rgba(245, 166, 35, 0.15);
  color: #f5a623;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 14px;
  border-radius: 40px;
}

/* ---- КНОПКИ ---- */
.pro-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.pro-actions .btn-pro-subscribe {
  flex: 1;
  background: linear-gradient(135deg, #f7b731 0%, #f5a623 100%);
  border: none;
  color: #0a0f13;
  padding: 14px 20px;
  border-radius: 60px;
  font-weight: 700;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 160px;
  /* Чёткое золотое свечение — несколько слоёв с разным blur */
  box-shadow:
    0 2px 8px rgba(245, 166, 35, 0.3),
    0 0 0 1px rgba(245, 166, 35, 0.1);
}

.pro-actions .btn-pro-subscribe i {
  font-size: 16px;
  /* Убираем размытое свечение у иконки */
  filter: none;
}

.pro-actions .btn-pro-subscribe:hover {
  transform: translateY(-2px);
  box-shadow:
    0 4px 12px rgba(245, 166, 35, 0.4),
    0 0 16px rgba(245, 166, 35, 0.25),
    0 0 0 1px rgba(245, 166, 35, 0.2);
}

.pro-actions .btn-pro-subscribe:active {
  transform: translateY(0);
  box-shadow:
    0 1px 4px rgba(245, 166, 35, 0.3),
    0 0 0 1px rgba(245, 166, 35, 0.1);
}

.pro-actions .btn-pro-subscribe:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.pro-actions .btn-pro-cancel {
  background: transparent;
  border: 1px solid #2f404a;
  color: #8aa6b8;
  padding: 14px 20px;
  border-radius: 60px;
  font-weight: 500;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: 0.25s ease;
  min-width: 100px;
}

.pro-actions .btn-pro-cancel:hover {
  background: #162026;
  border-color: #4f6a7a;
  color: #dce9f2;
}

/* ---- ПОДВАЛ МОДАЛКИ ---- */
.pro-footer {
  text-align: center;
  color: #4f6a7a;
  font-size: 12px;
  padding-bottom: 4px;
}

.pro-footer a {
  color: #4f8aaa;
  text-decoration: none;
}

.pro-footer a:hover {
  text-decoration: underline;
}

/* ---- АДАПТИВНОСТЬ ---- */
@media (max-width: 600px) {
  .pro-plans {
    flex-direction: column;
  }

  .pro-modal {
    padding: 28px 20px 24px;
    margin: 10px;
    border-radius: 24px;
    max-height: 85vh;
  }

  .pro-header .pro-icon {
    font-size: 40px;
  }

  .pro-header h2 {
    font-size: 22px;
  }

  .pro-benefit {
    padding: 10px 12px;
    gap: 10px;
  }

  .pro-benefit .benefit-icon {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .pro-benefit .benefit-info h4 {
    font-size: 13px;
  }

  .pro-benefit .benefit-info p {
    font-size: 11px;
  }

  .pro-benefit .benefit-badge {
    font-size: 9px;
    padding: 1px 8px;
  }

  .pro-pricing .price {
    font-size: 30px;
  }

  .pro-actions {
    flex-direction: column;
  }

  .pro-actions .btn-pro-subscribe,
  .pro-actions .btn-pro-cancel {
    min-width: unset;
    width: 100%;
    justify-content: center;
  }
}

/* ===== PRO BADGE — Золотой кубик рядом с именем ===== */
.pro-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-left: 6px;
  vertical-align: middle;
  flex-shrink: 0;
}

.pro-badge i {
  font-size: 14px;
  color: #f5a623;
  filter: drop-shadow(0 0 4px rgba(245, 166, 35, 0.4));
}

/* ===== Золотое имя для PRO пользователей ===== */
.username-pro {
  color: #f5a623 !important;
  text-shadow: 0 0 12px rgba(245, 166, 35, 0.25);
}

/* ===== PRO в шапке профиля (profile.html, user.html) ===== */
.profile-name-wrapper {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
}

/* ===== PRO в карточке модели (автор) ===== */
.card-author-pro {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.card-author-pro .author-name-text.username-pro {
  color: #f5a623 !important;
  text-shadow: 0 0 12px rgba(245, 166, 35, 0.25);
}

.card-author-pro .pro-badge i {
  font-size: 12px;
  color: #f5a623;
  filter: drop-shadow(0 0 3px rgba(245, 166, 35, 0.4));
}

/* ===== PRO в списке подписок/подписчиков (follow-list) ===== */
.follow-item .follow-name-wrapper {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
}

.follow-item .follow-name.username-pro {
  color: #f5a623 !important;
  text-shadow: 0 0 12px rgba(245, 166, 35, 0.25);
}

.follow-item .pro-badge i {
  font-size: 11px;
  color: #f5a623;
  filter: drop-shadow(0 0 3px rgba(245, 166, 35, 0.4));
}

@media (max-width: 400px) {
  .pro-modal {
    padding: 20px 14px 18px;
    margin: 8px;
    border-radius: 20px;
  }
  .pro-header .pro-icon {
    font-size: 32px;
  }
  .pro-header h2 {
    font-size: 20px;
  }
  .pro-pricing .price {
    font-size: 26px;
  }
  .pro-actions .btn-pro-subscribe {
    font-size: 14px;
    padding: 12px 16px;
  }
}