/* Dedicated tariffs page */

body.tariffs-page {
  --tf-ink: #1a2340;
  --tf-muted: #5a6a8a;
  --tf-violet: #7c5cfc;
  --tf-bg: #f3eefc;
  background: var(--tf-bg) !important;
  color: var(--tf-ink);
}

.tariffs-page__main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(28px, 4vw, 48px) 0 clamp(40px, 6vw, 72px);
  box-sizing: border-box;
}

.tariffs-hero {
  text-align: center;
  margin: 0 0 clamp(28px, 4vw, 40px);
}
.tariffs-hero__kicker {
  margin: 0 0 8px;
  color: var(--tf-violet);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.tariffs-hero__title {
  margin: 0 0 12px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  background: linear-gradient(120deg, #4c1d95 0%, #7c3aed 50%, #db2777 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tariffs-hero__lead {
  margin: 0 auto;
  max-width: 40rem;
  color: var(--tf-muted);
  font-size: 15px;
  line-height: 1.5;
}

.tariffs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 20px);
  align-items: stretch;
}
@media (max-width: 900px) {
  .tariffs-grid { grid-template-columns: 1fr; }
}

.tariffs-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(18px, 2.5vw, 26px);
  border-radius: 22px;
  background: #fff;
  border: 2px solid #d4e0f5;
  box-shadow: 0 12px 36px rgba(59, 130, 246, .08);
  box-sizing: border-box;
}
.tariffs-card.is-featured {
  border-color: #a78bfa;
  background: linear-gradient(180deg, #faf7ff 0%, #fff 55%);
  box-shadow: 0 18px 48px rgba(124, 92, 252, .18);
}
.tariffs-card__star {
  position: absolute;
  top: 14px;
  right: 16px;
  color: #f59e0b;
  font-size: 18px;
}
.tariffs-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font: 800 12px/1 system-ui, sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #94a3b8, #64748b);
}
.tariffs-card--premium .tariffs-card__badge {
  background: linear-gradient(135deg, #a78bfa, #7c5cfc);
}
.tariffs-card--hiro .tariffs-card__badge {
  background: linear-gradient(135deg, #f472b6, #7c5cfc);
}
.tariffs-card__price {
  margin: 10px 0 4px;
  font-size: clamp(28px, 3vw, 34px);
  font-weight: 800;
  color: var(--tf-ink);
  line-height: 1.1;
}
.tariffs-card__price small {
  font-size: 14px;
  font-weight: 650;
  color: var(--tf-muted);
}
.tariffs-card__tagline {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--tf-muted);
  font-weight: 600;
}
.tariffs-card__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.tariffs-card__list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.4;
  color: #2b3550;
}
.tariffs-card__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #7c5cfc;
  font-weight: 800;
}
.tariffs-card__note {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: #8b93a8;
}
.tariffs-card__cta {
  appearance: none;
  width: 100%;
  min-height: 48px;
  margin-top: 4px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #a78bfa 0%, #7c5cfc 45%, #ec4899 100%);
  color: #fff;
  font: 700 14px/1 system-ui, sans-serif;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(124, 92, 252, .28);
  transition: transform .15s ease, box-shadow .15s ease;
}
.tariffs-card__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(124, 92, 252, .36);
}
.tariffs-card--pro .tariffs-card__cta {
  background: linear-gradient(135deg, #94a3b8, #64748b);
  box-shadow: 0 12px 28px rgba(100, 116, 139, .25);
}

.tariffs-compare {
  margin-top: clamp(36px, 5vw, 56px);
  padding: clamp(18px, 2.5vw, 28px);
  border-radius: 22px;
  background: rgba(255,255,255,.92);
  border: 1px solid #e6e0f4;
  box-shadow: 0 12px 36px rgba(88, 70, 180, .08);
}
.tariffs-compare h2 {
  margin: 0 0 16px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(22px, 2.6vw, 28px);
  text-align: center;
}
.tariffs-compare__wrap { overflow-x: auto; }
.tariffs-compare__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.tariffs-compare__table th,
.tariffs-compare__table td {
  padding: 12px 14px;
  border-bottom: 1px solid #ebe6f7;
  text-align: center;
}
.tariffs-compare__table th:first-child,
.tariffs-compare__table td:first-child {
  text-align: left;
  font-weight: 650;
}
.tariffs-compare__table th {
  color: var(--tf-violet);
  font-weight: 750;
}
.tariffs-compare__fine {
  margin: 16px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--tf-muted);
  line-height: 1.45;
}

.tariffs-card__methods {
  margin: 0 0 16px;
  padding: 0 0 0 18px;
  max-height: 220px;
  overflow: auto;
  font-size: 13px;
  line-height: 1.45;
  color: var(--tf-muted);
}
.tariffs-card__methods li {
  margin: 0 0 4px;
}

/* Register modal (same as home guest) */
.result-register-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1200;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(20, 12, 40, .55);
  box-sizing: border-box;
}
.result-register-overlay.show { display: flex; }
.result-register-modal {
  position: relative;
  width: min(420px, 100%);
  padding: 24px 22px 20px;
  border-radius: 18px;
  background: #1e1b2e;
  color: #f5f3ff;
  box-shadow: 0 24px 64px rgba(0,0,0,.35);
}
.result-register-modal h3 {
  margin: 0 0 12px;
  font-size: 18px;
}
.result-register-modal .result-register-sub {
  margin: 0 0 14px;
  font-size: 13px;
  color: #c4b5fd;
  line-height: 1.4;
}
.result-register-modal .form-group { margin-bottom: 14px; }
.result-register-modal label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 650;
}
.result-register-modal input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #4c4468;
  background: #2a2540;
  color: #fff;
  box-sizing: border-box;
}
.result-register-modal .result-register-err {
  margin: 0 0 10px;
  color: #fda4af;
  font-size: 13px;
}
.result-register-modal .result-register-hint {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: #a5a0c0;
}
.result-register-modal .result-register-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: #c4b5fd;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}
.result-register-modal .submit-register-btn {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #a78bfa, #ec4899);
  color: #fff;
  font: 700 14px/1 system-ui, sans-serif;
  cursor: pointer;
}
.result-register-plan-details {
  margin: 0 0 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
}
.result-register-plan-details__head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  font-weight: 750;
}
.result-register-plan-details__term {
  margin: 0 0 8px;
  font-size: 12px;
  color: #c4b5fd;
}
.result-register-plan-details__features {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.4;
}
@media (max-width: 768px) {
  body.tariffs-page {
    padding-bottom: calc(var(--site-header-height, 56px) + env(safe-area-inset-bottom, 0px) + 16px);
  }
}
