/* public/css/style_new.css */

.respect-wrap {
  width: 100%;
}

.respect-hero {
  width: 100%;
}

.respect-hero__quote {
  font-size: 16px;
  line-height: 1.55;
  color: #334155;
  text-align: center;
}

.respect-hero__action {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.ytdn-entry-state {
  padding: 30px 0 10px;
}

.auth-required-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(7px);
}

.auth-required-modal {
  width: min(460px, 100%);
  padding: 26px 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.auth-required-modal__message {
  font-size: 17px;
  line-height: 1.5;
  font-weight: 700;
  color: #1e293b;
  text-align: center;
}

.payment-welcome-wrap {
  margin-top: 18px;
}

.payment-welcome,
.payment-step2,
.prodlenie-card {
  width: 100%;
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(102, 126, 234, 0.13), transparent 34%),
    rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(102, 126, 234, 0.18);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.payment-welcome,
.payment-step2 {
  padding: 28px;
}

.ytdn-payment-welcome {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.payment-welcome__title {
  max-width: 760px;
  margin: 0 auto;
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: -0.045em;
  text-align: center;
  color: #111827;
}

.payment-welcome__manifesto {
  display: grid;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
}

.payment-welcome__manifesto-line {
  margin: 0;
  font-size: 17px;
  line-height: 1.58;
  color: #475569;
  text-align: center;
}

.payment-welcome__manifesto-line--strong {
  color: #312e81;
  font-weight: 800;
}

.payment-welcome__action {
  margin-top: 4px;
}

.vpn-pay-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 15px 30px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(102, 126, 234, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.vpn-pay-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(102, 126, 234, 0.45);
}

.vpn-pay-button:disabled {
  cursor: wait;
  opacity: 0.78;
}

.vpn-pay-button__spinner {
  display: none;
  width: 17px;
  height: 17px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: ytdnSpin 0.75s linear infinite;
}

.vpn-pay-button.is-loading .vpn-pay-button__spinner {
  display: inline-block;
}

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

.payment-welcome-card {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  border-radius: 22px;
  border: 1px solid rgba(102, 126, 234, 0.18);
  background: rgba(248, 250, 252, 0.9);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.ytdn-pay-faq__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border: 0;
  background: transparent;
  color: #1e293b;
  font: inherit;
  font-size: 17px;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.ytdn-pay-faq__icon {
  flex: 0 0 auto;
  font-size: 22px;
  line-height: 1;
  color: #667eea;
  transition: transform 0.2s ease;
}

.ytdn-pay-faq.is-open .ytdn-pay-faq__icon {
  transform: rotate(180deg);
}

.ytdn-pay-faq__panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 20px;
  color: #111827;
  transition: max-height 0.28s ease, opacity 0.2s ease, padding 0.2s ease;
}

.ytdn-pay-faq.is-open .ytdn-pay-faq__panel {
  max-height: 980px;
  opacity: 1;
  padding: 0 20px 20px;
}

.ytdn-pay-faq__panel p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.68;
  color: #111827;
  text-align: justify;
  text-align-last: left;
}

.ytdn-pay-faq__panel p:last-child {
  margin-bottom: 0;
}

.ytdn-pay-faq__link {
  color: #4f46e5;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ytdn-pay-faq__link:hover {
  color: #312e81;
}

.ytdn-pay-faq--danger {
  border-color: rgba(239, 68, 68, 0.28);
  background: rgba(254, 242, 242, 0.84);
}

.ytdn-pay-faq--danger .ytdn-pay-faq__toggle {
  color: #b91c1c;
}

.ytdn-pay-faq--danger .ytdn-pay-faq__icon {
  color: #ef4444;
}

.payment-step2 {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 18px;
}

.payment-step2__title {
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.15;
  font-weight: 900;
  color: #111827;
}

.payment-step2__payline {
  font-size: 19px;
  font-weight: 800;
  color: #312e81;
}

.payment-step2__card,
.payment-step2__timer {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(102, 126, 234, 0.18);
  background: rgba(248, 250, 252, 0.92);
}

.payment-step2__label,
.payment-step2__timer-label {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #64748b;
}

.payment-step2__link {
  color: #4f46e5;
  font-weight: 800;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.payment-step2__link:hover {
  text-decoration: underline;
}

.payment-step2__timer-value {
  font-size: clamp(32px, 8vw, 54px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.05em;
  color: #111827;
  text-align: center;
}

.payment-step2__status {
  margin-top: 8px;
  color: #475569;
  font-size: 14px;
  text-align: center;
}

.payment-step2__section-title {
  margin: 12px auto 0;
  max-width: 680px;
  width: 100%;
  font-size: 17px;
  font-weight: 850;
  color: #1e293b;
}

.payment-step2__guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
}

.payment-step2__guide-item {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.payment-step2__guide-image {
  display: block;
  width: 100%;
  height: auto;
  background: #f1f5f9;
}

.payment-step2__guide-caption {
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.45;
  color: #334155;
}

.prodlenie-card {
  margin-top: 18px;
  padding: 28px;
}

.prodlenie-card__title {
  font-size: clamp(26px, 5vw, 40px);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.04em;
  color: #111827;
  text-align: center;
}

.prodlenie-card__subtitle,
.prodlenie-card__note {
  max-width: 720px;
  margin: 12px auto 0;
  color: #475569;
  font-size: 16px;
  line-height: 1.55;
  text-align: center;
}

.prodlenie-card__controls {
  margin-top: 24px;
}

.prodlenie-card__label {
  margin: 18px 0 10px;
  font-size: 14px;
  font-weight: 850;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.prodlenie-card__current-value {
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 900;
  color: #312e81;
  text-align: center;
}

.prodlenie-card__slider {
  width: 100%;
  accent-color: #667eea;
}

.prodlenie-card__marks {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 6px;
  margin-top: 12px;
}

.prodlenie-card__mark {
  min-height: 34px;
  border: 1px solid rgba(102, 126, 234, 0.22);
  border-radius: 10px;
  background: #ffffff;
  color: #475569;
  font-weight: 800;
  cursor: pointer;
}

.prodlenie-card__mark[data-active="true"] {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  border-color: transparent;
}

.prodlenie-card__summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.prodlenie-card__summary-item,
.prodlenie-card__legend {
  border-radius: 18px;
  border: 1px solid rgba(102, 126, 234, 0.18);
  background: rgba(248, 250, 252, 0.9);
}

.prodlenie-card__summary-item {
  padding: 15px;
}

.prodlenie-card__summary-label {
  font-size: 12px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.prodlenie-card__summary-value {
  margin-top: 7px;
  font-size: 17px;
  font-weight: 900;
  color: #111827;
}

.prodlenie-card__legend {
  overflow: hidden;
}

.prodlenie-card__legend-item {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  font-size: 14px;
  color: #334155;
}

.prodlenie-card__legend-item:last-child {
  border-bottom: 0;
}

.prodlenie-card__legend-center {
  font-weight: 900;
  color: #312e81;
  text-align: center;
}

.prodlenie-card__legend-right {
  text-align: right;
  font-weight: 750;
}

.prodlenie-card__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.prodlenie-card__primary-button,
.prodlenie-card__secondary-button {
  min-height: 50px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 850;
  cursor: pointer;
}

.prodlenie-card__primary-button {
  border: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(102, 126, 234, 0.35);
}

.prodlenie-card__secondary-button {
  border: 1px solid rgba(102, 126, 234, 0.25);
  background: #ffffff;
  color: #4f46e5;
}

.prodlenie-card__primary-button:disabled,
.prodlenie-card__secondary-button:disabled {
  opacity: 0.7;
  cursor: wait;
}

@media (max-width: 760px) {
  .payment-welcome,
  .payment-step2,
  .prodlenie-card {
    padding: 22px 16px;
    border-radius: 24px;
  }

  .payment-step2__guide-grid,
  .prodlenie-card__summary-grid {
    grid-template-columns: 1fr;
  }

  .prodlenie-card__marks {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .prodlenie-card__legend-item {
    grid-template-columns: 1fr;
  }

  .prodlenie-card__legend-center,
  .prodlenie-card__legend-right {
    text-align: left;
  }
}

@media (max-width: 520px) {
  .payment-welcome__manifesto-line {
    font-size: 16px;
  }

  .vpn-pay-button,
  .prodlenie-card__primary-button,
  .prodlenie-card__secondary-button {
    width: 100%;
  }

  .prodlenie-card__actions {
    flex-direction: column;
  }
}
/* ==========================================================================
   Поиск: мини-личный кабинет и подписка
   ========================================================================== */

.ytfp-search-section {
  margin-bottom: 18px;
}

/* Весь нижний блок теперь компактный и визуально второстепенный */
.ytfp-account-panel {
  margin-top: 18px;
  display: grid;
  gap: 10px;
  align-self: stretch;
}

/* Убираем ощущение центрального большого ЛК-заголовка */
.ytfp-account-panel__heading {
  display: none;
}

.ytfp-account-update {
  padding: 10px 14px;
  border: 1px solid rgba(102, 126, 234, 0.18);
  border-radius: 14px;
  background: rgba(102, 126, 234, 0.055);
}

.ytfp-account-update__title {
  margin-bottom: 6px;
  text-align: center;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 800;
  color: #334155;
}

.ytfp-account-update__text {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  font-size: 14px;
  line-height: 1.45;
  color: #000;
}

.ytfp-subscription-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(118, 75, 162, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  text-align: left;
}

.ytfp-subscription-card__title {
  margin-bottom: 3px;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 700;
  color: #000;
}

.ytfp-subscription-card__date {
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 850;
  color: #64748b;
  white-space: nowrap;
}

.ytfp-subscription-card__button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 15px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(102, 126, 234, 0.2);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.ytfp-subscription-card__button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(102, 126, 234, 0.25);
}

.ytfp-subscription-card__button:disabled {
  cursor: default;
  opacity: 0.65;
  transform: none;
  box-shadow: none;
}

@media (max-width: 600px) {
  .ytfp-account-panel {
    gap: 9px;
  }

  .ytfp-account-update,
  .ytfp-subscription-card {
    border-radius: 14px;
    padding: 10px 12px;
  }

  .ytfp-account-update__title {
    font-size: 14px;
  }

  .ytfp-account-update__text {
    font-size: 12px;
  }

  .ytfp-subscription-card {
    align-items: stretch;
    gap: 10px;
  }

  .ytfp-subscription-card__date {
    font-size: 12px;
    white-space: normal;
  }

  .ytfp-subscription-card__button {
    min-height: 34px;
    padding: 7px 12px;
    font-size: 12px;
  }
}
/* ==========================================================================
   Демо-доступ и недоступные кнопки подписки
   ========================================================================== */

.payment-welcome__royal-text {
  max-width: 760px;
  margin: 0 auto;
  color: #000000;
}

.payment-welcome__royal-text p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.68;
  color: #000000;
  text-align: justify;
  text-align-last: left;
}

.payment-welcome__royal-text p:first-child {
  text-align: center;
  text-align-last: center;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 900;
  color: #111827;
}

.payment-welcome__royal-text p:last-child {
  margin-bottom: 0;
  text-align: center;
  text-align-last: center;
  font-weight: 850;
}

.payment-welcome__actions-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.payment-welcome__button-group {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: min(100%, 220px);
}

.payment-welcome__disabled-note,
.ytfp-subscription-card__disabled-note {
  font-size: 12px;
  line-height: 1.35;
  color: #94a3b8;
}

.payment-welcome__disabled-note {
  text-align: center;
}

.payment-welcome__status {
  min-height: 20px;
  margin-top: -8px;
  font-size: 13px;
  line-height: 1.35;
  color: #475569;
  text-align: center;
}

.payment-welcome__status.is-error {
  color: #dc2626;
  font-weight: 800;
}

.vpn-pay-button--secondary {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  box-shadow: 0 14px 30px rgba(22, 163, 74, 0.28);
}

.vpn-pay-button--secondary:hover:not(:disabled) {
  box-shadow: 0 18px 38px rgba(22, 163, 74, 0.36);
}

.vpn-pay-button.is-disabled,
.vpn-pay-button.is-disabled:disabled {
  cursor: default;
  opacity: 0.62;
  transform: none;
  box-shadow: none;
  filter: grayscale(0.2);
}

.ytfp-subscription-card__info {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.ytfp-subscription-card__line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.ytfp-subscription-card__label {
  font-size: 12px;
  line-height: 1.25;
  font-weight: 700;
  color: #000000;
}

.ytfp-subscription-card__value {
  font-size: 13px;
  line-height: 1.25;
  font-weight: 850;
  color: #64748b;
}

.ytfp-subscription-card--demo {
  border-color: rgba(22, 163, 74, 0.22);
  background: rgba(240, 253, 244, 0.68);
}

.ytfp-subscription-card--demo .ytfp-subscription-card__value {
  color: #15803d;
}

.ytfp-subscription-card__disabled-note {
  flex-basis: 100%;
  margin-top: -4px;
  text-align: right;
}

@media (max-width: 600px) {
  .payment-welcome__actions-grid {
    display: grid;
    gap: 12px;
  }

  .payment-welcome__button-group,
  .payment-welcome__button-group .vpn-pay-button {
    width: 100%;
  }

  .payment-welcome__royal-text p {
    font-size: 14px;
    line-height: 1.6;
  }

  .payment-welcome__royal-text p:first-child {
    font-size: 19px;
  }

  .ytfp-subscription-card__line {
    display: grid;
    gap: 2px;
  }

  .ytfp-subscription-card__disabled-note {
    text-align: center;
    font-size: 11px;
  }
}

/* ==========================================================================
   Скрытые кнопки подписки: центрирование демо и ЛК без действия
   ========================================================================== */

.payment-welcome__actions-grid--single {
  justify-content: center;
}

.payment-welcome__actions-grid--single .payment-welcome__button-group {
  min-width: min(100%, 280px);
}

.ytfp-subscription-card--no-action {
  justify-content: flex-start;
}

.ytfp-subscription-card--no-action .ytfp-subscription-card__info {
  width: 100%;
}