.pricing-hero {
  text-align: center;
  margin-bottom: 28px;
}
.pricing-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.pricing-nav a {
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  color: #4a5568;
  background: #fff;
}
.pricing-nav a.active {
  background: #1a365d;
  color: #fff;
  border-color: #1a365d;
}

.club-billing-context {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  margin: 0 0 20px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #ebf8ff;
  border: 1px solid #90cdf4;
  color: #2a4365;
}
.club-billing-context[hidden] {
  display: none !important;
}
.club-billing-context-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  min-width: 0;
}
.club-billing-context-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #2b6cb0;
  white-space: nowrap;
  line-height: 1.2;
}
.club-billing-context-club {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  min-width: 0;
}
.club-billing-context-name {
  font-size: 15px;
  font-weight: 500;
  color: #1a365d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
  line-height: 1.2;
}
.club-billing-context-name[hidden] {
  display: none !important;
}
.club-billing-context-switch {
  display: inline-flex;
  align-items: center;
  margin: 0;
  min-width: 0;
  line-height: 1;
}
.club-billing-context-switch[hidden] {
  display: none !important;
}
.club-billing-context-switch select {
  width: auto;
  min-width: 160px;
  max-width: min(280px, 55vw);
  height: auto;
  min-height: 48px;
  padding: 10px 40px 10px 12px;
  border: 2px solid #bee3f8;
  border-radius: 10px;
  background-color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  color: #1a365d;
  vertical-align: middle;
}
.club-billing-context-hint {
  flex: 1 1 100%;
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: #2c5282;
}
.club-billing-context-hint[hidden] {
  display: none !important;
}
.club-billing-context-hint a {
  color: #2b6cb0;
  font-weight: 600;
}
.club-billing-context-trial {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px 10px;
  margin: 0;
  padding: 0;
  border: 0;
}
.club-billing-context-trial[hidden] {
  display: none !important;
}
.club-billing-context-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: #fefcbf;
  color: #744210;
}
.club-billing-context-days {
  font-size: 13px;
  font-weight: 700;
  color: #744210;
  white-space: nowrap;
}
.club-billing-context-trial-plan {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #5f370e;
  white-space: nowrap;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.club-billing-context.is-warn {
  background: #fffaf0;
  border-color: #fbd38d;
  color: #744210;
}
.club-billing-context.is-warn .club-billing-context-label {
  color: #c05621;
}
.club-billing-context.is-warn .club-billing-context-name {
  color: #744210;
}
.club-billing-context.is-trial {
  border-color: #d69e2e;
  background: #fffff0;
}
.club-billing-context.is-trial .club-billing-context-label {
  color: #975a16;
}
.club-billing-context.is-trial .club-billing-context-name {
  color: #744210;
}
.club-billing-context.is-trial .club-billing-context-switch select {
  border-color: #f6e05e;
}

.plan-modal-club-target {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #ebf8ff;
  border: 1px solid #90cdf4;
  color: #2a4365;
  font-size: 14px;
  line-height: 1.45;
}
.plan-modal-club-target[hidden] {
  display: none !important;
}
.plan-modal-club-target strong {
  color: #1a365d;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}
.price-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 28px 24px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    transform 0.15s;
  text-align: left;
}
.price-card:hover {
  border-color: #90cdf4;
  box-shadow: 0 8px 24px rgba(26, 54, 93, 0.08);
  transform: translateY(-2px);
}
.price-card.is-current {
  border-color: #2b6cb0;
}
.price-card.is-blocked {
  opacity: 0.85;
}
.plan-badge-current {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
  background: #ebf8ff;
  color: #2b6cb0;
  text-transform: uppercase;
}
.plan-badge-upgrade {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
  background: #f0fff4;
  color: #276749;
  text-transform: uppercase;
}
.plan-badge-trial {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
  background: #fefcbf;
  color: #744210;
  text-transform: uppercase;
}
.price-card.is-trial {
  border-color: #d69e2e;
}
.price-card h3 {
  margin: 0 0 4px;
  color: #1a202c;
  font-size: 20px;
}
.amount-block {
  margin: 16px 0 8px;
}
.price-card .amount-block {
  min-height: 72px;
}
.amount-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
}
.amount {
  font-size: 34px;
  font-weight: 700;
  color: #1a365d;
  margin: 0;
  line-height: 1.1;
}
.amount-period {
  font-size: 15px;
  font-weight: 500;
  color: #718096;
}
.amount-strike {
  font-size: 16px;
  color: #a0aec0;
  text-decoration: line-through;
  font-weight: 500;
}
.amount-note {
  margin-top: 6px;
  font-size: 13px;
  color: #718096;
}
.amount-free {
  font-size: 34px;
  font-weight: 700;
  color: #1a365d;
}
.price-card ul {
  margin: 0 0 20px;
  padding-left: 18px;
  color: #4a5568;
  font-size: 14px;
  line-height: 1.65;
  flex: 1;
}
.price-card .btn {
  width: 100%;
  justify-content: center;
  pointer-events: none;
}
.billing-toggle {
  display: inline-flex;
  justify-content: center;
  gap: 4px;
  margin: 0 auto 28px;
  padding: 4px;
  background: #edf2f7;
  border-radius: 10px;
  width: fit-content;
  max-width: 100%;
}
.billing-toggle-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}
.billing-toggle button {
  padding: 12px 20px;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: #4a5568;
  min-height: 48px;
  box-sizing: border-box;
}
.billing-toggle button.active {
  background: #fff;
  color: #1a365d;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}
.section-sub {
  color: #718096;
  font-size: 14px;
  margin: 0 auto 20px;
  text-align: center;
  max-width: 560px;
}
.pricing-footer-link {
  text-align: center;
  font-size: 14px;
  color: #718096;
  margin-top: 8px;
}

.pricing-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(247, 250, 252, 0.82);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.pricing-loading-overlay[hidden] {
  display: none !important;
}
.pricing-loading-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 32px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
  max-width: 320px;
  text-align: center;
}
.pricing-loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e2e8f0;
  border-top-color: #2b6cb0;
  border-radius: 50%;
  animation: pricing-spin 0.7s linear infinite;
}
.pricing-loading-card p {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #2d3748;
  line-height: 1.4;
}
.pricing-loading-card span {
  font-size: 13px;
  color: #718096;
  line-height: 1.4;
}
@keyframes pricing-spin {
  to {
    transform: rotate(360deg);
  }
}
body.pricing-busy {
  overflow: hidden;
}
body.pricing-busy .pricing-grid,
body.pricing-busy .billing-toggle,
body.pricing-busy .pricing-nav {
  pointer-events: none;
  user-select: none;
}

.price-card ul strong,
.plan-modal ul strong {
  color: #1a365d;
  font-weight: 700;
}

.plan-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.plan-modal-overlay.open {
  display: flex;
}
.plan-modal {
  background: #fff;
  border-radius: 18px;
  max-width: 580px;
  width: 100%;
  max-height: min(92vh, 820px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}
.plan-modal-scroll {
  flex: 1 1 auto;
  overflow: auto;
  padding: 32px 32px 8px;
  -webkit-overflow-scrolling: touch;
}
.plan-modal-footer {
  flex: 0 0 auto;
  padding: 16px 32px 28px;
  border-top: 1px solid #edf2f7;
  background: #fff;
}
.plan-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 2;
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #718096;
  padding: 4px 8px;
}
.plan-modal h2 {
  margin: 0 44px 10px 0;
  font-size: 26px;
  line-height: 1.25;
  color: #1a202c;
}
.plan-modal .modal-lead {
  margin: 0 0 22px;
  color: #4a5568;
  font-size: 15px;
  line-height: 1.55;
  max-width: 46ch;
}
.plan-modal .amount-block {
  margin: 0 0 22px;
  min-height: auto;
}
.plan-modal .upgrade-price {
  margin: 0 0 22px;
  padding: 20px 22px;
  border-radius: 14px;
  background: linear-gradient(165deg, #f7fafc 0%, #edf2f7 100%);
  border: 1px solid #e2e8f0;
}
.plan-modal .upgrade-price .amount-main,
.plan-modal .upgrade-price .amount {
  font-size: 36px;
  font-weight: 700;
  color: #1a365d;
  line-height: 1.1;
  margin: 0;
}
.plan-modal .upgrade-price .amount-label {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #2d3748;
}
.plan-modal .upgrade-price-meta {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
  font-size: 13px;
  color: #718096;
  line-height: 1.45;
}
.plan-modal .upgrade-price-meta .strike {
  text-decoration: line-through;
  color: #a0aec0;
}
.plan-modal .upgrade-note {
  margin: 0 0 22px;
  padding: 16px 18px;
  border-radius: 12px;
  background: #f0fff4;
  border: 1px solid #c6f6d5;
  color: #22543d;
  font-size: 14px;
  line-height: 1.55;
}
.plan-modal .upgrade-note[hidden] {
  display: none !important;
}
.plan-modal .upgrade-note.is-info {
  background: #ebf8ff;
  border-color: #bee3f8;
  color: #2a4365;
}
.plan-modal .upgrade-note.is-info strong {
  color: #2b6cb0;
}
.plan-modal .upgrade-note.is-warn {
  background: #fffaf0;
  border-color: #fbd38d;
  color: #744210;
}
.plan-modal .upgrade-note.is-warn strong {
  color: #c05621;
}
.plan-modal .upgrade-note strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #276749;
}
.plan-modal .upgrade-note p {
  margin: 0;
}
.plan-modal .upgrade-note p + p {
  margin-top: 8px;
}
.plan-modal .plan-features {
  margin: 0 0 24px;
}
.plan-modal .plan-features-title {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #718096;
}
.plan-modal ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #4a5568;
  font-size: 14px;
  line-height: 1.5;
  display: grid;
  gap: 10px;
}
.plan-modal ul li {
  position: relative;
  padding: 10px 12px 10px 34px;
  background: #f7fafc;
  border-radius: 10px;
}
.plan-modal ul li::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 15px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2b6cb0;
}
.plan-modal .legal-box {
  margin: 0 0 4px;
  padding: 16px 18px;
  background: #fffaf0;
  border: 1px solid #fbd38d;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: #744210;
}
.plan-modal .legal-box > strong {
  display: block;
  margin-bottom: 4px;
}
.plan-modal .legal-box label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 12px;
  cursor: pointer;
  line-height: 1.45;
}
.plan-modal .legal-box input[type='checkbox'] {
  margin-top: 2px;
  flex-shrink: 0;
}
.legal-box {
  margin: 0 0 16px;
  padding: 14px;
  background: #fffaf0;
  border: 1px solid #fbd38d;
  border-radius: 8px;
  font-size: 13px;
  color: #744210;
}
.legal-box label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 10px;
  cursor: pointer;
}
.plan-modal .modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.plan-modal .modal-actions .btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  line-height: 1.25;
  box-sizing: border-box;
  padding-top: 12px;
  padding-bottom: 12px;
}
.plan-modal .modal-actions .btn:disabled,
#createClubBtn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (max-width: 560px) {
  .plan-modal-scroll {
    padding: 28px 20px 8px;
  }
  .plan-modal-footer {
    padding: 14px 20px 22px;
  }
  .plan-modal h2 {
    font-size: 22px;
  }
}
