.pricing-page {
  padding: 60px 0 40px;
}

.pricing-gate {
  position: relative;
  transition: filter .5s ease, opacity .5s ease;
}

.pricing-gate--locked {
  filter: blur(18px) saturate(0);
  opacity: .35;
  pointer-events: none;
  user-select: none;
}

.pricing-hero {
  text-align: center;
  margin-bottom: 48px;
}

.pricing-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 12px;
  letter-spacing: -.5px;
}

.pricing-hero p {
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto;
}

/* Entry price card */
.entry-card {
  background:
    radial-gradient(700px 350px at 20% 20%, rgba(193, 18, 61, .18), transparent 60%),
    radial-gradient(600px 300px at 80% 80%, rgba(109, 40, 217, .2), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  border: 1px solid rgba(193, 18, 61, .3);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  box-shadow: 0 0 0 1px rgba(193, 18, 61, .15), var(--shadow);
  margin-bottom: 24px;
}

.entry-price {
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, #fff 40%, rgba(255, 255, 255, .65));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.entry-unit {
  font-size: .75rem;
  color: rgba(255, 255, 255, .45);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-top: 6px;
  margin-bottom: 16px;
}

.entry-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: .8rem;
  color: rgba(255, 255, 255, .6);
  font-weight: 600;
}

/* Features card */
.pricing-col {
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
}

.pricing-col h2 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text);
}

.feature-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 32px;
}

.feature-list li {
  font-size: .9rem;
  color: var(--muted);
  padding-left: 22px;
  position: relative;
  line-height: 1.5;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #4ade80;
  font-weight: 800;
  font-size: .85rem;
}

[dir="rtl"] .feature-list li {
  padding-left: 0;
  padding-right: 22px;
}

[dir="rtl"] .feature-list li::before {
  left: auto;
  right: 0;
}

/* User menu */
.user-menu {
  position: relative;
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px 5px 8px;
  font-size: .8rem;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}

.user-badge:hover {
  background: rgba(255, 255, 255, .09);
  border-color: rgba(255, 255, 255, .18);
}

.user-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #C1123D, #6D28D9);
  flex-shrink: 0;
}

.user-chevron {
  width: 12px;
  height: 12px;
  opacity: .5;
  transition: transform .15s;
  flex-shrink: 0;
}

.user-menu.open .user-chevron {
  transform: rotate(180deg);
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 140px;
  background: rgba(18, 10, 36, .95);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .5);
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .15s, transform .15s;
  z-index: 200;
}

.user-menu.open .user-dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 7px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  text-align: start;
  transition: background .12s, color .12s;
}

.user-dropdown-item:hover {
  background: rgba(255, 255, 255, .06);
  color: var(--text);
}

.user-dropdown-item.danger:hover {
  background: rgba(193, 18, 61, .12);
  color: #f87171;
}

[dir="rtl"] .user-dropdown {
  right: auto;
  left: 0;
}

/* CTA card */
.pricing-cta {
  text-align: center;
  background:
    radial-gradient(600px 300px at 20% 50%, rgba(109, 40, 217, .2), transparent 60%),
    radial-gradient(500px 280px at 80% 20%, rgba(193, 18, 61, .18), transparent 55%),
    rgba(255, 255, 255, .04);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  margin-top: 24px;
  box-shadow: var(--shadow);
}

.pricing-cta h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  margin-bottom: 10px;
}

.pricing-cta p {
  max-width: 480px;
  margin: 0 auto 24px;
}

/* Billing toggle */
.billing-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.billing-toggle {
  position: relative;
  display: inline-flex;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}

.billing-indicator {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  background: rgba(255, 255, 255, .13);
  border-radius: 999px;
  transition: left .25s cubic-bezier(.4, 0, .2, 1);
  pointer-events: none;
}

.billing-toggle[data-mode="annually"] .billing-indicator {
  left: 50%;
}

.billing-btn {
  position: relative;
  z-index: 1;
  flex: 1;
  padding: 7px 22px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  color: rgba(255, 255, 255, .4);
  background: none;
  border: none;
  cursor: pointer;
  transition: color .2s;
  white-space: nowrap;
}

.billing-btn.active {
  color: var(--text);
}

.save-badge {
  position: absolute;
  top: 50%;
  left: calc(100% + 8px);
  transform: translateY(-50%) scale(.85);
  white-space: nowrap;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  background: rgba(74, 222, 128, .1);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, .2);
  border-radius: 999px;
  padding: 4px 10px;
  opacity: 0;
  transition: opacity .2s, transform .2s;
  pointer-events: none;
}

.save-badge.visible {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

/* Price flip animation */
.entry-price {
  transition: opacity .15s ease, transform .15s ease;
}

.entry-price.switching {
  opacity: 0;
  transform: translateY(-5px);
}

/* Coming soon CTA */
.pricing-cta--soon p {
  margin-bottom: 0;
}

.soon-icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
  opacity: .65;
}

.soon-label {
  display: inline-block;
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .3);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 14px;
}

@media (max-width: 640px) {
  .entry-card {
    padding: 36px 24px;
  }

  .pricing-col {
    padding: 24px 20px;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }
}

.checkout-card {
  background:
    radial-gradient(700px 350px at 80% 20%, rgba(193, 18, 61, .1), transparent 60%),
    radial-gradient(600px 300px at 10% 80%, rgba(109, 40, 217, .12), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
  border: 1px solid rgba(193, 18, 61, .22);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  margin-top: 24px;
  box-shadow: 0 0 0 1px rgba(193, 18, 61, .08), var(--shadow);
}

.checkout-card__header {
  margin-bottom: 26px;
}

.checkout-card__header h2 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 5px;
}

.checkout-card__header p {
  font-size: .87rem;
  color: var(--muted);
}

.qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.qty-label {
  font-size: .9rem;
  font-weight: 600;
  flex: 1;
  min-width: 120px;
}

.qty-stepper {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.qty-btn {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background .12s, color .12s;
  font-family: inherit;
  flex-shrink: 0;
  user-select: none;
}

.qty-btn:hover {
  background: rgba(255, 255, 255, .07);
  color: var(--text);
}

.qty-input {
  width: 72px;
  text-align: center;
  background: none;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  color: var(--text);
  font-size: .95rem;
  font-weight: 700;
  font-family: inherit;
  padding: 0 8px;
  height: 42px;
  appearance: textfield;
  -moz-appearance: textfield;
}

.qty-input:focus {
  outline: none;
}

.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

.price-summary {
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 22px;
}

.price-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .87rem;
  color: var(--muted);
  gap: 8px;
}

.price-line+.price-line {
  margin-top: 9px;
}

.price-line--total {
  margin-top: 14px !important;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
}

.price-line--total .price-amount {
  font-size: 1.2rem;
  background: linear-gradient(135deg, #fff 40%, rgba(255, 255, 255, .7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price-savings {
  font-size: .77rem;
  font-weight: 700;
  color: #4ade80;
}

.checkout-btn {
  width: 100%;
  padding: 15px;
  font-size: 1rem;
  border-radius: 16px;
  margin-bottom: 14px;
}

.pay-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: .76rem;
  color: rgba(243, 244, 246, .28);
}

.pay-error {
  display: none;
  background: rgba(193, 18, 61, .12);
  border: 1px solid rgba(193, 18, 61, .3);
  color: #f87171;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: .82rem;
  margin-bottom: 14px;
  text-align: center;
}

.pay-error.show {
  display: block;
}

@media (max-width: 500px) {
  .checkout-card {
    padding: 28px 20px;
  }

  .qty-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
