/* Rainbow Shield — Community membership purchase wizard (Discover / Benefits steps) */

/* ─── Checkout steps bar ─── */
.rs-checkout-steps {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  padding: 14px 48px 12px 16px;
  margin-bottom: 28px;
  border-radius: 12px;
  background: rgba(124, 58, 237, 0.04);
  border: 1px solid rgba(124, 58, 237, 0.1);
}

[data-theme="dark"] .rs-checkout-steps {
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.18);
}

.rs-step {
  gap: 6px;
  flex: 0 0 auto;
  min-width: 52px;
}

.rs-step-num {
  width: 36px;
  height: 36px;
  font-size: 14px;
}

.rs-step-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.rs-step-line {
  flex: 1;
  min-width: 8px;
  max-width: 64px;
  height: 3px;
  align-self: flex-start;
  margin-top: 17px;
}

@media (max-width: 480px) {
  .rs-checkout-steps {
    padding: 12px 40px 10px 10px;
    margin-bottom: 22px;
  }

  .rs-step {
    min-width: 36px;
    gap: 0;
  }

  .rs-step-num {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .rs-step-line {
    margin-top: 15px;
    max-width: 36px;
  }
}

/* ─── Plan comparison (Discover) ─── */
.rs-card-picker {
  margin-bottom: 20px;
}

.rs-card-picker-head {
  margin-bottom: 14px;
}

.rs-card-picker-label {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text, #111827);
  margin: 0 0 4px;
  letter-spacing: -0.01em;
  text-transform: none;
}

.rs-card-picker-sub {
  font-size: 0.8rem;
  color: var(--muted, #6b7280);
  margin: 0;
  line-height: 1.45;
}

.rs-card-picker-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.rs-card-picker-scroll::-webkit-scrollbar {
  height: 5px;
}

.rs-card-picker-scroll::-webkit-scrollbar-thumb {
  background: rgba(124, 58, 237, 0.25);
  border-radius: 99px;
}

.rs-card-picker-item {
  flex: 0 0 min(100%, 168px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 14px 14px 12px;
  border-radius: 14px;
  border: 1.5px solid var(--border, #e5e7eb);
  background: var(--panel, #fff);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  position: relative;
  min-height: 148px;
}

[data-theme="dark"] .rs-card-picker-item {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border, #1a2742);
}

.rs-card-picker-item:hover {
  border-color: rgba(124, 58, 237, 0.35);
  transform: translateY(-1px);
}

.rs-card-picker-item--active {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.14);
  background: linear-gradient(160deg, rgba(124, 58, 237, 0.07), rgba(167, 139, 250, 0.04));
}

[data-theme="dark"] .rs-card-picker-item--active {
  background: linear-gradient(160deg, rgba(124, 58, 237, 0.14), rgba(124, 58, 237, 0.06));
}

.rs-card-picker-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 7px;
  border-radius: 99px;
  background: #7c3aed;
  color: #fff;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.2s, transform 0.2s;
}

.rs-card-picker-item--active .rs-card-picker-badge {
  opacity: 1;
  transform: scale(1);
}

.rs-card-picker-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  font-size: 18px;
  background: rgba(124, 58, 237, 0.08);
  color: #7c3aed;
}

.rs-card-picker-item--active .rs-card-picker-icon {
  background: rgba(124, 58, 237, 0.16);
}

.rs-card-picker-name {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text, #111827);
  line-height: 1.25;
  margin-bottom: 4px;
}

.rs-card-picker-tagline {
  font-size: 0.72rem;
  color: var(--muted, #6b7280);
  line-height: 1.4;
  margin-bottom: 10px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rs-card-picker-pricing {
  margin-top: auto;
  width: 100%;
}

.rs-card-picker-price {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: #7c3aed;
  line-height: 1.15;
}

.rs-card-picker-price .rs-tier-card__currency,
.rs-card-picker-price .rs-inr-sym {
  font-size: 0.82em;
  margin-right: 1px;
}

.rs-card-picker-price .rs-tier-card__amount,
.rs-card-picker-price .rs-inr-amt {
  letter-spacing: -0.02em;
}

.rs-card-picker-price-reg {
  display: block;
  font-size: 0.62rem;
  color: #94a3b8;
  font-weight: 600;
  margin-bottom: 2px;
  line-height: 1.2;
}

.rs-card-picker-price-reg .rs-inr-amt,
.rs-card-picker-price-reg .rs-inr-sym {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

/* Explicit strikethrough — <s> alone fails on inline-flex .rs-inr children */
.rs-price-strike,
.rs-price-strike .rs-inr,
.rs-price-strike .rs-inr-sym,
.rs-price-strike .rs-inr-amt,
.rs-card-picker-price-reg s,
.rs-card-picker-price-reg s .rs-inr,
.rs-card-picker-price-reg s .rs-inr-sym,
.rs-card-picker-price-reg s .rs-inr-amt,
.rs-value-price-regular s,
.rs-value-price-regular s .rs-inr,
.rs-value-price-regular s .rs-inr-sym,
.rs-value-price-regular s .rs-inr-amt {
  text-decoration: line-through !important;
  -webkit-text-decoration-line: line-through !important;
  text-decoration-thickness: 2px;
  text-decoration-color: #94a3b8;
  color: #94a3b8;
}

[data-theme="dark"] .rs-price-strike,
[data-theme="dark"] .rs-price-strike .rs-inr,
[data-theme="dark"] .rs-price-strike .rs-inr-sym,
[data-theme="dark"] .rs-price-strike .rs-inr-amt,
[data-theme="dark"] .rs-card-picker-price-reg s,
[data-theme="dark"] .rs-card-picker-price-reg s .rs-inr,
[data-theme="dark"] .rs-card-picker-price-reg s .rs-inr-sym,
[data-theme="dark"] .rs-card-picker-price-reg s .rs-inr-amt,
[data-theme="dark"] .rs-value-price-regular s,
[data-theme="dark"] .rs-value-price-regular s .rs-inr,
[data-theme="dark"] .rs-value-price-regular s .rs-inr-sym,
[data-theme="dark"] .rs-value-price-regular s .rs-inr-amt {
  text-decoration-color: #64748b;
  color: #94a3b8;
}

.rs-card-picker-price-note {
  display: block;
  font-size: 0.65rem;
  color: var(--muted, #9ca3af);
  font-weight: 500;
  margin-top: 2px;
}

.rs-inr {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.rs-inr-sym {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
}

.rs-inr-amt {
  letter-spacing: -0.02em;
}

.rs-inr--alt {
  font-weight: 800;
  color: #7c3aed;
}

.rs-card-picker-empty {
  font-size: 0.85rem;
  color: var(--muted, #9ca3af);
  text-align: center;
  padding: 16px;
}

@media (min-width: 520px) {
  .rs-card-picker-scroll {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
    padding: 0;
  }

  .rs-card-picker-item {
    flex: none;
    min-height: 156px;
  }
}

/* ─── Benefits step — pricing hero ─── */
.rs-value-hero {
  text-align: center;
  margin-bottom: 16px;
}

.rs-value-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.rs-value-subtitle {
  font-size: 0.8rem;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.rs-value-price-box {
  text-align: center;
  padding: 20px 22px;
  border-radius: 16px;
  margin-bottom: 20px;
  background: linear-gradient(160deg, rgba(124, 58, 237, 0.06), rgba(167, 139, 250, 0.03));
  border: 1px solid rgba(124, 58, 237, 0.12);
}

[data-theme="dark"] .rs-value-price-box {
  background: linear-gradient(160deg, rgba(124, 58, 237, 0.12), rgba(124, 58, 237, 0.04));
  border-color: rgba(124, 58, 237, 0.22);
}

.rs-value-price-regular {
  font-size: 0.75rem;
  color: var(--muted, #9ca3af);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.rs-value-price-regular .rs-inr {
  opacity: 1;
}

.rs-value-price-offer {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-bottom: 2px;
}

.rs-price-big {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  color: #7c3aed;
}

.rs-price-big .rs-inr,
.rs-price-big.rs-inr {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

.rs-price-big .rs-tier-card__currency,
.rs-price-big .rs-inr-sym {
  font-size: 0.72em;
  margin-right: 2px;
}

.rs-price-big .rs-tier-card__amount,
.rs-price-big .rs-inr-amt {
  letter-spacing: -0.03em;
}

.rs-value-price-note {
  font-size: 0.72rem;
  margin-top: 6px;
  line-height: 1.4;
}

/* ─── Grouped benefits ─── */
.rs-benefits-grouped {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.rs-benefits-section {
  border-radius: 12px;
  border: 1px solid var(--border, #e7eaf2);
  background: rgba(0, 0, 0, 0.015);
  overflow: hidden;
}

[data-theme="dark"] .rs-benefits-section {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--border, #1a2742);
}

.rs-benefits-section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.05);
  border-bottom: 1px solid var(--border, #e7eaf2);
}

[data-theme="dark"] .rs-benefits-section-head {
  background: rgba(124, 58, 237, 0.1);
  border-color: var(--border, #1a2742);
  color: #a78bfa;
}

.rs-benefits-section-head .ti {
  font-size: 15px;
  opacity: 0.9;
}

.rs-benefits-section-body {
  padding: 8px 10px;
}

.rs-benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}

@media (min-width: 400px) {
  .rs-benefits-grid--two {
    grid-template-columns: 1fr 1fr;
    gap: 4px 10px;
  }
}

.rs-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 4px;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text, #374151);
}

.rs-benefit-item .ti {
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 14px;
  color: #22c55e;
}

.rs-benefit-item__text {
  flex: 1;
  min-width: 0;
}

.rs-benefit-item__name {
  display: block;
  font-weight: 500;
}

.rs-benefit-voucher {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(124, 58, 237, 0.04);
  margin-bottom: 4px;
}

[data-theme="dark"] .rs-benefit-voucher {
  background: rgba(124, 58, 237, 0.08);
}

.rs-benefit-voucher:last-child {
  margin-bottom: 0;
}

.rs-benefit-voucher__name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text, #374151);
  line-height: 1.35;
}

.rs-benefit-voucher__badge {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 99px;
  background: rgba(124, 58, 237, 0.12);
  color: #7c3aed;
  white-space: nowrap;
}

.rs-benefit-point {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(34, 197, 94, 0.06);
  margin-bottom: 4px;
}

[data-theme="dark"] .rs-benefit-point {
  background: rgba(34, 197, 94, 0.08);
}

.rs-benefit-point:last-child {
  margin-bottom: 0;
}

.rs-benefit-point__amount {
  font-size: 0.95rem;
  font-weight: 800;
  color: #16a34a;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

[data-theme="dark"] .rs-benefit-point__amount {
  color: #22c55e;
}

.rs-benefit-point__label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text, #374151);
  line-height: 1.35;
}

.rs-benefits-empty {
  font-size: 0.8rem;
  color: var(--muted, #9ca3af);
  text-align: center;
  padding: 12px;
}

/* Discover step actions */
.rs-discover-actions {
  margin-top: 4px;
}
