/* ── Pricing page ────────────────────────────────────────────── */
.pricing-page {
  min-height: calc(100vh - 90px);
  color: #fff;
  padding: 2rem 1rem 3.5rem;
}

.pricing-shell {
  max-width: 1100px;
  margin: 0 auto;
}

/* ── Header ──────────────────────────────────────────────────── */
.pricing-headline {
  text-align: center;
  margin-bottom: 2rem;
}

.pricing-headline h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.pricing-headline p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
}

/* ── Toggle ──────────────────────────────────────────────────── */
.billing-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 3rem;
}

.billing-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  transition: color 150ms;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.billing-label.active {
  color: #fff;
}

.yearly-badge {
  font-size: 0.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, #4a7bff, #4dd0ff);
  color: #fff;
  padding: 0.3rem 0.6rem;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: inline-block;
  margin-left: 0.3rem;
}

/* Bootstrap switch but restyled */
.billing-switch {
  position: relative;
  width: 52px;
  height: 28px;
  flex-shrink: 0;
}

.billing-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.billing-switch-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background 250ms;
  cursor: pointer;
}

.billing-switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 250ms;
}

.billing-switch input:checked + .billing-switch-track {
  background: #0066cc;
  border-color: #0066cc;
}

.billing-switch input:checked + .billing-switch-track::after {
  transform: translateX(24px);
}

/* ── Cards grid ──────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
  padding-top: 0.9rem;
}

/* ── Single card ─────────────────────────────────────────────── */
.pricing-card {
  background: var(--panel, #111);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 220ms,
    box-shadow 220ms,
    border-color 220ms;
  position: relative;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 40px rgba(0, 0, 0, 0.28);
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  border-color: rgba(255, 255, 255, 0.22);
}

.pricing-card-popular {
  position: relative;
  overflow: visible;
  isolation: isolate;
  z-index: 2;
  border-color: rgba(235, 189, 92, 0.95);
  box-shadow:
    inset 0 1px 0 rgba(255, 242, 205, 0.24),
    0 18px 44px rgba(0, 0, 0, 0.34),
    0 0 28px rgba(236, 190, 88, 0.28);
}

.pricing-card-popular:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 249, 233, 0.32),
    0 24px 56px rgba(0, 0, 0, 0.44),
    0 0 34px rgba(240, 201, 116, 0.38);
  border-color: rgba(245, 209, 126, 1);
}

.pricing-card-popular::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  border: 1px solid rgba(255, 221, 149, 0.7);
  pointer-events: none;
  z-index: 1;
}

.pricing-badge-popular {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #fff3c6 0%, #f3c96a 45%, #e1a838 100%);
  padding: 0.3rem 0.95rem;
  border-radius: 999px;
  font-size: 0.72rem;
  color: #3a2304;
  font-weight: 800;
  letter-spacing: 0.07em;
  z-index: 3;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(214, 159, 44, 0.38);
  border: 1px solid rgba(255, 232, 173, 0.95);
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(255, 247, 224, 0.45);
}

.pricing-card-popular .pricing-card-body {
  padding-top: 2.1rem;
}

/* .pricing-card-accent {
  height: 14px;
  width: 72%;
  display: block;
  flex-shrink: 0;
  margin: 0 auto;
  border-radius: 0 0 999px 999px;
  background: var(
    --accent-gradient,
    linear-gradient(135deg, #b8862e, #d4af37, #f0d273)
  );
  box-shadow: 0 10px 24px rgba(77, 208, 255, 0.18);
  opacity: 0.92;
} */

/* .pricing-card-popular {
  width: 78%;
  height: 14px;
  margin-top: 0.15rem;
  margin-bottom: 0.1rem;
  border-radius: 0 0 8px 8px;
  display: block;
  background: linear-gradient(
    90deg,
    rgba(243, 198, 104, 0.95),
    rgba(224, 165, 54, 0.95)
  );
  box-shadow: 0 5px 14px rgba(214, 159, 44, 0.32);
} */

.pricing-card-popular .pricing-currency,
.pricing-card-popular .pricing-number {
  background: linear-gradient(135deg, #ffe7a8 0%, #f0bc58 50%, #d89321 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-card-popular .pricing-card-title,
.pricing-card-popular .pricing-short-desc {
  text-align: center;
}

.pricing-card-popular .pricing-amount {
  justify-content: center;
}

.pricing-card-body {
  padding: 1.5rem 1.5rem 0.5rem;
  flex: 1;
}

.pricing-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* ── Price display ───────────────────────────────────────────── */
.pricing-amount {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  margin-bottom: 0.25rem;
}

.pricing-currency {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
  background: var(--accent-gradient, linear-gradient(135deg, #4a7bff, #4dd0ff));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-number {
  font-size: clamp(2.5rem, 6vw, 3.2rem);
  font-weight: 800;
  line-height: 1;
  background: var(--accent-gradient, linear-gradient(135deg, #4a7bff, #4dd0ff));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-period {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  margin-left: 2px;
  align-self: flex-end;
  padding-bottom: 6px;
}

.pricing-short-desc {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.25rem;
  margin-top: 0.1rem;
  line-height: 1.5;
}

/* ── Features list ───────────────────────────────────────────── */
.pricing-features-section {
  margin-bottom: 1.25rem;
}

.pricing-features-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

.pricing-features li.enabled {
  color: rgba(255, 255, 255, 0.85);
}

.pricing-features li.disabled {
  color: rgba(255, 255, 255, 0.5);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
}

.pricing-features li.enabled .feature-icon {
  color: #22c55e;
}

.pricing-features li.disabled .feature-icon {
  color: rgba(255, 255, 255, 0.3);
}

.feature-label {
  display: inline;
}

/* ── Key Features list ───────────────────────────────────────── */
.pricing-key-features-section {
  margin-bottom: 0;
}

.pricing-key-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pricing-key-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.pricing-key-features li::before {
  content: "•";
  font-weight: 700;
  color: var(--agent-accent, #4a7bff);
  font-size: 1.2rem;
  line-height: 1;
  margin-top: -2px;
  flex-shrink: 0;
  width: 16px;
}

/* ── Divider ─────────────────────────────────────────────────── */
.pricing-card-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0 1.5rem;
}

/* ── CTA button ──────────────────────────────────────────────── */
.pricing-card-footer {
  padding: 1.25rem 1.5rem 1.5rem;
  margin-top: auto;
}

.pricing-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  cursor: pointer;
  transition:
    filter 150ms,
    transform 100ms,
    box-shadow 150ms;
  border: none;
  background: linear-gradient(
    135deg,
    rgba(30, 60, 180, 0.9) 0%,
    rgba(74, 123, 255, 1) 50%,
    rgba(20, 180, 220, 0.85) 100%
  );
  color: #fff;
  text-decoration: none;
  box-shadow:
    0 4px 18px rgba(74, 123, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.pricing-cta:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(74, 123, 255, 0.4);
  color: #fff;
}

.pricing-card-popular .pricing-cta:not(.pricing-cta-active) {
  background: linear-gradient(135deg, #ffe283 0%, #efc061 48%, #d9962f 100%);
  color: #3a2204;
  box-shadow:
    0 6px 22px rgba(219, 165, 58, 0.42),
    inset 0 1px 0 rgba(255, 248, 226, 0.85);
}

.pricing-card-popular .pricing-cta:not(.pricing-cta-active):hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
  box-shadow:
    0 10px 30px rgba(219, 165, 58, 0.5),
    inset 0 1px 0 rgba(255, 251, 238, 0.95);
  color: #2f1a02;
}

.pricing-card-active {
  position: relative;
  overflow: visible;
  isolation: isolate;
  z-index: 2;
  border-color: rgba(74, 208, 120, 0.85);
  box-shadow:
    inset 0 1px 0 rgba(144, 255, 180, 0.18),
    0 18px 44px rgba(0, 0, 0, 0.34),
    0 0 28px rgba(74, 208, 120, 0.22);
}

.pricing-card-active:hover {
  border-color: rgba(100, 230, 140, 1);
  box-shadow:
    inset 0 1px 0 rgba(160, 255, 195, 0.26),
    0 24px 56px rgba(0, 0, 0, 0.44),
    0 0 34px rgba(74, 208, 120, 0.32);
}

.pricing-card-active::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  border: 1px solid rgba(120, 240, 160, 0.5);
  pointer-events: none;
  z-index: 1;
}

.pricing-badge-active {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #d4fbe2 0%, #5dda8a 45%, #2db862 100%);
  padding: 0.3rem 0.95rem;
  border-radius: 999px;
  font-size: 0.72rem;
  color: #0a2e18;
  font-weight: 800;
  letter-spacing: 0.06em;
  z-index: 3;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(45, 184, 98, 0.38);
  border: 1px solid rgba(160, 245, 195, 0.9);
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(210, 255, 230, 0.4);
}

.pricing-card-active .pricing-card-body {
  padding-top: 2.1rem;
}

.pricing-cta-active {
  background: rgba(74, 208, 120, 0.15);
  border: 2px solid rgba(74, 208, 120, 0.5);
  color: #7eeaa8;
  cursor: default;
  opacity: 0.9;
}

.pricing-cta-active:hover {
  filter: none;
  transform: none;
  box-shadow: 0 4px 18px rgba(74, 123, 255, 0.25);
}

.pricing-select-btn {
  cursor: pointer;
}

.pricing-select-btn.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* ── Yoco checkout modal ─────────────────────────────────────── */
.yoco-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.74);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  padding: 1rem;
}

.yoco-modal-overlay.show {
  display: flex;
}

.yoco-modal {
  width: min(520px, 100%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(
    165deg,
    rgba(14, 16, 27, 0.97),
    rgba(11, 31, 63, 0.96)
  );
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.58);
  overflow: hidden;
}

.yoco-modal-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.yoco-modal-head img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  background: #fff;
  padding: 4px;
}

.yoco-modal-title {
  font-size: 1.02rem;
  font-weight: 700;
  margin: 0;
}

.yoco-modal-body {
  padding: 1rem 1.25rem 0.75rem;
}

.yoco-modal-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
}

.yoco-modal-summary {
  margin-top: 0.9rem;
  padding: 0.85rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(77, 208, 255, 0.35);
  background: rgba(77, 208, 255, 0.08);
  font-size: 0.93rem;
}

.yoco-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  padding: 1rem 1.25rem 1.2rem;
}

.yoco-btn {
  border: none;
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.62rem 1.08rem;
}

.yoco-btn-cancel {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.14);
}

.yoco-btn-checkout {
  color: #fff;
  background: linear-gradient(135deg, #1757ff 0%, #09a9ff 100%);
}

.yoco-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ── Disabled / price not available ─────────────────────────── */
.price-unavailable {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
  padding: 0.5rem 0 1rem;
}

/* ── Empty state ─────────────────────────────────────────────── */
.pricing-empty {
  text-align: center;
  padding: 4rem 1rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.05rem;
}

/* ── Pricing benefits section ────────────────────────────────── */
.pricing-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 4rem;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
}

.pricing-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0;
}

.pricing-benefit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(74, 123, 255, 0.12);
  color: rgba(74, 123, 255, 0.8);
  font-size: 1.3rem;
  transition:
    background 200ms,
    border-color 200ms,
    color 200ms;
}

.pricing-benefit-item:hover .pricing-benefit-icon {
  background: rgba(74, 123, 255, 0.25);
  border-color: rgba(74, 123, 255, 0.4);
  color: rgba(74, 123, 255, 1);
}

.pricing-benefit-logo {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.pricing-benefit-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.pricing-benefit-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
}

.pricing-benefit-desc {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ── Hidden class ────────────────────────────────────────────── */
.d-none {
  display: none !important;
}

@media (max-width: 768px) {
  .pricing-benefits {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1.5rem;
  }
}

@media (max-width: 640px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-benefits {
    grid-template-columns: 1fr;
  }
}
