.pricing-page .nav a.is-active {
  color: #fff;
}

.pricing-main {
  padding: 40px 0 72px;
  overflow-x: clip;
}

.pricing-main > .container {
  min-width: 0;
}

.pricing-page-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 28px;
}

.pricing-page-head .section-title {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 12px;
}

.pricing-user-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 18px;
  margin-bottom: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.04);
}

.pricing-user-bar--logged .pricing-user-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pricing-user-bar--logged strong {
  color: #fff;
}

.pricing-user-balance {
  font-size: 14px;
  color: var(--text-muted);
}

.pricing-banner {
  padding: 14px 18px;
  margin-bottom: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--panel-border);
}

.pricing-banner--promo {
  border-color: rgba(139, 92, 246, 0.45);
  background: rgba(139, 92, 246, 0.12);
  color: #e9e0ff;
}

.pricing-banner--wait {
  border-color: rgba(6, 182, 212, 0.45);
  background: rgba(6, 182, 212, 0.1);
}

.pricing-banner__sub {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-muted);
}

.pricing-pay-open {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  align-items: center;
}

.pricing-pay-open .btn-primary {
  text-decoration: none;
}

.pricing-err {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(236, 72, 153, 0.45);
  background: rgba(236, 72, 153, 0.12);
  color: #fecdd3;
  font-size: 14px;
}

.pricing-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: stretch;
  margin: 0 auto 28px;
  max-width: 620px;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid transparent;
  background:
    rgba(12, 12, 14, 0.72) padding-box,
    linear-gradient(90deg, var(--brand-a), var(--brand-b), var(--brand-c)) border-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 36px rgba(0, 0, 0, 0.28);
}

.pricing-tab {
  flex: 1 1 0;
  min-width: 132px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.pricing-tab:hover:not(.is-active) {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
}

.pricing-tab.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(90deg, var(--brand-a) 0%, var(--brand-b) 55%, var(--brand-c) 100%);
  box-shadow:
    0 8px 24px rgba(6, 182, 212, 0.34),
    0 2px 10px rgba(236, 72, 153, 0.24);
  transform: translateY(-1px);
}

.pricing-tab:focus-visible {
  outline: 2px solid rgba(6, 182, 212, 0.85);
  outline-offset: 2px;
}

@media (max-width: 560px) {
  .pricing-tabs {
    max-width: none;
  }

  .pricing-tab {
    min-width: 0;
    padding: 12px 10px;
    font-size: 13px;
  }
}

.pricing-loading {
  text-align: center;
  color: var(--text-muted);
  padding: 32px 0;
}

.pricing-panel-desc {
  color: var(--text-muted);
  margin-bottom: 20px;
  max-width: 640px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ── Grids ── */
.pricing-grid-shop {
  display: grid;
  gap: 20px;
  width: 100%;
}

.pricing-grid-shop--subs {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.pricing-grid-shop--packs {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

@media (min-width: 1100px) {
  .pricing-grid-shop--subs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pricing-grid-shop--packs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ── Cards base ── */
.shop-card {
  position: relative;
  min-width: 0;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 20px 18px 18px;
  background: linear-gradient(155deg, rgba(32, 32, 34, 0.96), rgba(18, 18, 20, 0.98));
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.shop-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
  border-radius: inherit;
}

.shop-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.shop-card:hover::before {
  opacity: 1;
}

.shop-card--accent-cyan::before {
  background: radial-gradient(circle at 20% 0%, rgba(6, 182, 212, 0.14), transparent 55%);
}

.shop-card--accent-violet::before {
  background: radial-gradient(circle at 20% 0%, rgba(139, 92, 246, 0.18), transparent 55%);
}

.shop-card--accent-gold::before {
  background: radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.14), transparent 55%);
}

.shop-card--accent-pink::before {
  background: radial-gradient(circle at 80% 0%, rgba(236, 72, 153, 0.14), transparent 55%);
}

.shop-card--free.shop-card--banner {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  padding: 18px 22px;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.14);
}

.shop-card--free.shop-card--banner:hover {
  transform: none;
}

.shop-card--free .shop-card__banner-copy {
  flex: 1;
  min-width: 200px;
}

.shop-card--featured {
  border-color: rgba(139, 92, 246, 0.45);
}

.shop-card--sub > .shop-card__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
}

.shop-card--sub .shop-card__top {
  padding-right: 72px;
}

.shop-card__top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.shop-card__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 18px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.shop-card--accent-cyan .shop-card__icon {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.35), rgba(6, 182, 212, 0.08));
}

.shop-card--accent-violet .shop-card__icon {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(139, 92, 246, 0.1));
}

.shop-card--accent-gold .shop-card__icon {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.35), rgba(245, 158, 11, 0.08));
}

.shop-card--accent-pink .shop-card__icon {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.35), rgba(236, 72, 153, 0.08));
}

.shop-card__head {
  flex: 1;
  min-width: 0;
}

.shop-card__title {
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.shop-card__subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.4;
}

.shop-card__badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-b), var(--brand-c));
  white-space: nowrap;
  flex-shrink: 0;
}

.shop-card__limits {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.shop-limit-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #d4d4d4;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.shop-limit-chip i {
  font-size: 12px;
  opacity: 0.75;
  width: 14px;
  text-align: center;
  flex-shrink: 0;
}

/* Billing toggle (month / week) */
.shop-billing {
  margin-top: auto;
  padding-top: 4px;
}

.shop-billing-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.shop-billing-tab {
  border: none;
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.shop-billing-tab:hover {
  color: #fff;
}

.shop-billing-tab.is-active {
  color: #fff;
  background: rgba(139, 92, 246, 0.28);
  box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.35);
}

.shop-billing-tab:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.shop-card__note {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.shop-billing-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.shop-billing-price__amount {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.shop-price-was {
  text-decoration: line-through;
  color: #666;
  font-size: 15px;
  font-weight: 500;
}

/* ── Pack cards ── */
.shop-card--pack {
  text-align: center;
  padding-top: 26px;
}

.shop-card--pack .shop-card__amount {
  font-size: clamp(36px, 5vw, 44px);
  font-weight: 800;
  line-height: 1;
  color: #fff;
  margin: 12px 0 4px;
  background: linear-gradient(135deg, #fff 30%, rgba(255, 255, 255, 0.72));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shop-card--pack .shop-card__unit {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.shop-card--pack .shop-card__hint {
  font-size: 12px;
  color: #777;
  margin-bottom: 18px;
}

.shop-card--pack .shop-card__price-block {
  padding: 14px 0 16px;
  margin-bottom: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.shop-card--pack .shop-card__price-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.shop-card--pack .shop-card__price-value {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
}

.shop-card--pack .shop-card__icon {
  margin: 0 auto;
}

.shop-card--pack-popular {
  border-color: rgba(139, 92, 246, 0.45);
}

.shop-card--pack-popular .shop-card__badge {
  position: absolute;
  top: 14px;
  right: 14px;
}

/* ── Pay buttons ── */
.shop-pay-row {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
}

.shop-pay-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  border: none;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}

a.shop-pay-btn {
  text-decoration: none;
  color: inherit;
}

.shop-pay-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.shop-pay-btn:not(:disabled):hover {
  opacity: 0.92;
}

.shop-pay-btn--rub {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.2);
}

.shop-pay-btn--rub:not(:disabled):hover {
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.28);
}

.shop-pay-btn--usdt {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.shop-pay-btn__left {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.shop-pay-btn__left i {
  font-size: 14px;
  opacity: 0.9;
}

.shop-pay-btn__price {
  font-weight: 700;
  white-space: nowrap;
}

.shop-pay-btn__price--usdt {
  font-size: 12px;
  opacity: 0.92;
}

/* Auth modal */
.pricing-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}

.pricing-auth-overlay[hidden] {
  display: none;
}

.pricing-auth-card {
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--panel-border);
  background: linear-gradient(160deg, rgba(28, 28, 28, 0.98), rgba(18, 18, 18, 0.99));
  padding: 22px 20px;
}

.pricing-auth-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.pricing-auth-title {
  font-size: 22px;
  color: #fff;
}

.pricing-auth-close {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.pricing-auth-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.pricing-auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.pricing-auth-tab {
  flex: 1;
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border-radius: 10px;
  padding: 10px;
  font-weight: 600;
  cursor: pointer;
}

.pricing-auth-tab.is-active {
  color: #fff;
  border-color: rgba(139, 92, 246, 0.5);
  background: rgba(139, 92, 246, 0.15);
}

.pricing-auth-google,
.pricing-auth-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  text-decoration: none;
}

.pricing-auth-social {
  display: grid;
  gap: 10px;
}

.pricing-auth-code {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.pricing-auth-input {
  width: 100%;
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 15px;
}

.pricing-auth-hint {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.home-pricing-section .section-subtitle {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.home-pricing-more {
  text-align: center;
  margin-top: 22px;
}

.home-pricing-more .btn {
  display: inline-flex;
}
