/* ============================================================
   ПАРТНЁРСКАЯ ПРОГРАММА — Safe Cloud 22
   Строгий сдержанный фирменный стиль Safe22
   ============================================================ */

.s22-pt-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
  color: #1d1d1f;
  font-family: inherit;
}

.s22-pt-header {
  margin-bottom: 4px;
}

.s22-pt-subtitle {
  color: #64748b;
  font-size: 15px;
  margin: 0;
  line-height: 1.5;
}

/* ── 3 верхние метрики ── */
.s22-pt-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 768px) {
  .s22-pt-metrics-grid {
    grid-template-columns: 1fr;
  }
}

.s22-pt-metric-card {
  background: #ffffff;
  border: 1px solid #e5eaea;
  border-radius: 18px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(52, 72, 90, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.s22-pt-metric-card:hover {
  box-shadow: 0 8px 24px rgba(52, 72, 90, 0.08);
}

.s22-pt-metric-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #86868b;
  text-transform: uppercase;
}

.s22-pt-metric-label svg {
  color: #64748b;
  flex-shrink: 0;
}

.s22-pt-metric-val {
  font-size: 28px;
  font-weight: 700;
  color: #1d1d1f;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.s22-pt-unit {
  font-size: 16px;
  font-weight: 500;
  color: #86868b;
  margin-left: 2px;
}

.s22-pt-metric-sub {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

/* ── Карточки секций ── */
.s22-pt-card {
  background: #ffffff;
  border: 1px solid #e5eaea;
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 4px 16px rgba(52, 72, 90, 0.05);
}

.s22-pt-card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.s22-pt-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #86868b;
  text-transform: uppercase;
}

.s22-pt-header-tag {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
}

/* ── Воронка (строгие сдержанные графитовые индикаторы) ── */
.s22-pt-funnel-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.s22-pt-funnel-row {
  display: grid;
  grid-template-columns: 200px 1fr 50px;
  align-items: center;
  gap: 16px;
}

@media (max-width: 600px) {
  .s22-pt-funnel-row {
    grid-template-columns: 140px 1fr 40px;
    gap: 10px;
  }
}

.s22-pt-funnel-name {
  font-size: 14px;
  color: #334155;
  font-weight: 500;
}

.s22-pt-funnel-bar-wrap {
  height: 8px;
  background: #f1f5f9;
  border-radius: 99px;
  overflow: hidden;
}

.s22-pt-funnel-bar {
  height: 100%;
  background: linear-gradient(90deg, #1e293b, #475569);
  border-radius: 99px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 4px;
}

.s22-pt-funnel-num {
  font-size: 15px;
  font-weight: 700;
  color: #1d1d1f;
  text-align: right;
}

/* ── Доход по месяцам (минималистичный элегантный блок) ── */
.s22-pt-months-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

@media (max-width: 768px) {
  .s22-pt-months-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.s22-pt-month-col {
  background: #f8fafc;
  border: 1px solid #e5eaea;
  border-radius: 12px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.s22-pt-month-label {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.s22-pt-month-amount {
  font-size: 14px;
  font-weight: 700;
  color: #1d1d1f;
}

/* ── Как это работает ── */
.s22-pt-info-text {
  font-size: 14px;
  line-height: 1.6;
  color: #475569;
  margin: 0;
}

.s22-pt-info-text strong {
  color: #1d1d1f;
}

.s22-pt-info-subtext {
  font-size: 13px;
  line-height: 1.6;
  color: #64748b;
  margin: -6px 0 4px 0;
}

.s22-pt-pills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 768px) {
  .s22-pt-pills-grid {
    grid-template-columns: 1fr;
  }
}

.s22-pt-pill {
  background: #f8fafc;
  border: 1px solid #e5eaea;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 10px;
}

.s22-pt-dot {
  width: 6px;
  height: 6px;
  background: #64748b;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Партнёрская ссылка ── */
.s22-pt-link-box {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.s22-pt-link-input {
  flex: 1;
  min-width: 260px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 14px;
  font-family: monospace;
  color: #0f172a;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.s22-pt-link-input:focus {
  border-color: #1e293b;
  box-shadow: 0 0 0 3px rgba(30, 41, 59, 0.1);
}

.s22-pt-btn-copy, .s22-pt-btn-tg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.s22-pt-btn-copy {
  background: #1d1d1f;
  color: #ffffff;
  border: none;
}

.s22-pt-btn-copy:hover {
  background: #000000;
  transform: translateY(-1px);
}

.s22-pt-btn-tg {
  background: #229ed9;
  color: #ffffff;
  border: none;
  text-decoration: none;
}

.s22-pt-btn-tg:hover {
  background: #1d8bc0;
  transform: translateY(-1px);
}

/* ── Промокод и кнопки ── */
.s22-pt-promo-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed #e2e8f0;
}

.s22-pt-promo-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.s22-pt-promo-label {
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
}

.s22-pt-promo-badge {
  background: #f8fafc;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  padding: 5px 12px;
  border-radius: 9px;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13.5px;
  letter-spacing: 0.05em;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
  display: inline-flex;
  align-items: center;
}

.s22-pt-promo-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Кнопка "Скопировать промокод" - фирменный светлый стиль Safe22 Slate */
.s22-pt-promo-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  text-decoration: none;
  line-height: 1;
}

.s22-pt-promo-copy svg {
  color: #64748b;
  transition: color 0.15s ease;
}

.s22-pt-promo-copy:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.08);
}

.s22-pt-promo-copy:hover svg {
  color: #0f172a;
}

.s22-pt-promo-copy:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

/* Кнопка "Запросить свой промокод" - фирменная тёмная кнопка Safe22 с золотой звездой */
.s22-pt-btn-custom-promo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1d1d1f;
  color: #ffffff;
  border: 1px solid #1d1d1f;
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(29, 29, 31, 0.16);
  text-decoration: none;
  line-height: 1;
}

.s22-pt-btn-custom-promo svg {
  color: #f59e0b;
  transition: transform 0.2s ease;
}

.s22-pt-btn-custom-promo:hover {
  background: #000000;
  border-color: #000000;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

.s22-pt-btn-custom-promo:hover svg {
  transform: scale(1.15) rotate(6deg);
}

.s22-pt-btn-custom-promo:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.s22-pt-promo-hint {
  color: #94a3b8;
  font-size: 12px;
  width: 100%;
  margin-top: 2px;
}

/* ── 3 нижние карточки действий ── */
.s22-pt-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 768px) {
  .s22-pt-actions-grid {
    grid-template-columns: 1fr;
  }
}

.s22-pt-action-card {
  background: #ffffff;
  border: 1px solid #e5eaea;
  border-radius: 18px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  box-shadow: 0 4px 16px rgba(52, 72, 90, 0.05);
}

.s22-pt-action-card:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 8px 24px rgba(52, 72, 90, 0.09);
  transform: translateY(-2px);
}

.s22-pt-action-icon {
  width: 44px;
  height: 44px;
  background: #f1f5f9;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e293b;
  flex-shrink: 0;
}

.s22-pt-action-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.s22-pt-action-title {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
}

.s22-pt-action-sub {
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Модальные окна партнёрки (чистый дизайн без смайликов и агрессивных цветов) ── */
.s22-pt-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.22s ease;
}

.s22-pt-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.s22-pt-modal {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  max-width: 480px;
  width: 100%;
  padding: 26px 28px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: #1e293b;
  position: relative;
}

.s22-pt-modal-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.s22-pt-modal-title {
  font-size: 19px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.02em;
}

.s22-pt-modal-close-icon {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  transition: color 0.15s ease;
}

.s22-pt-modal-close-icon:hover {
  color: #0f172a;
}

.s22-pt-modal-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 12px;
}

.s22-pt-tab-btn {
  background: none;
  border: none;
  color: #64748b;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.s22-pt-tab-btn.is-active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  font-weight: 700;
}

.s22-pt-modal-input {
  width: 100%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  color: #0f172a;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.s22-pt-modal-input:focus {
  border-color: #1d1d1f;
  box-shadow: 0 0 0 3px rgba(29, 29, 31, 0.08);
}

.s22-pt-modal-btns {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.s22-pt-modal-cancel {
  flex: 1;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  padding: 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.s22-pt-modal-cancel:hover {
  background: #e2e8f0;
}

.s22-pt-modal-submit {
  flex: 1.5;
  background: #1d1d1f;
  border: none;
  color: #ffffff;
  padding: 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.s22-pt-modal-submit:hover {
  background: #000000;
  transform: translateY(-1px);
}

.s22-pt-modal-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

