:root {
  --bg: #060a14;
  --panel: #0d1528;
  --border: rgba(120, 170, 255, 0.14);
  --text: #e8eefc;
  --text-dim: #9aa8c7;
  --blue: #3b82f6;
  --blue-light: #7cc4ff;
  --glow: rgba(80, 150, 255, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { min-height: 100%; background: var(--bg); }

body {
  min-height: 100vh;
  min-height: 100svh;
  background: transparent;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.plans-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0 52px;
}

.back-link {
  display: inline-flex;
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-dim);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--blue-light);
  border-color: rgba(124, 196, 255, 0.5);
  background: rgba(59, 130, 246, 0.08);
}

.plans-header {
  max-width: 820px;
  margin: -8px auto 48px;
  text-align: center;
}

.brand-mark {
  display: block;
  width: 118px;
  margin: 0 auto -2px;
  filter: drop-shadow(0 0 18px rgba(124, 196, 255, 0.42));
}

.brand-mark svg { display: block; width: 100%; height: auto; }

.eyebrow {
  color: var(--blue-light);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

h1 {
  margin-top: 12px;
  color: #fff;
  font-size: clamp(2.35rem, 6vw, 4.6rem);
  font-weight: 850;
  letter-spacing: -0.045em;
  line-height: 1;
  text-wrap: balance;
  text-shadow: 0 0 34px rgba(80, 150, 255, 0.24);
}

.plans-subtitle {
  max-width: 590px;
  margin: 18px auto 0;
  color: var(--text-dim);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.55;
  text-wrap: balance;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  display: flex;
  min-height: 510px;
  padding: 38px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(124, 196, 255, 0.23);
  border-radius: 24px;
  background:
    linear-gradient(rgba(124, 196, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 196, 255, 0.035) 1px, transparent 1px),
    linear-gradient(145deg, rgba(13, 21, 40, 0.97), rgba(6, 10, 20, 0.94));
  background-size: 82px 82px, 82px 82px, auto;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.pricing-card::before {
  content: '';
  position: absolute;
  inset: auto 5% -36% 5%;
  height: 68%;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.14);
  filter: blur(70px);
  pointer-events: none;
}

.pricing-annual {
  border: 2px solid rgba(124, 196, 255, 0.82);
  background:
    linear-gradient(rgba(124, 196, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 196, 255, 0.055) 1px, transparent 1px),
    linear-gradient(145deg, rgba(25, 60, 116, 0.96), rgba(8, 17, 35, 0.98));
  background-size: 82px 82px, 82px 82px, auto;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.42),
    0 0 34px rgba(59, 130, 246, 0.34),
    inset 0 0 42px rgba(124, 196, 255, 0.08);
  transform: translateY(-10px);
}

.value-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 7px 12px;
  border: 1px solid rgba(220, 242, 255, 0.78);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: #04101f;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 0 22px rgba(80, 150, 255, 0.55);
}

.card-heading { position: relative; z-index: 1; }

.plan-label {
  color: #fff;
  font-size: 1.28rem;
  font-weight: 850;
}

.plan-description {
  margin-top: 5px;
  color: var(--text-dim);
  font-size: 0.92rem;
}

.price-block {
  position: relative;
  z-index: 1;
  margin-top: 36px;
  text-align: center;
}

.old-price {
  min-height: 22px;
  margin-bottom: 2px;
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: line-through;
}

.pricing-monthly .price-block::before {
  content: '';
  display: block;
  height: 24px;
}

.price {
  color: #fff;
  font-size: clamp(4rem, 8vw, 6.2rem);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.95;
  text-shadow: 0 0 28px rgba(124, 196, 255, 0.2);
}

.currency {
  margin-right: 3px;
  font-size: 0.52em;
  vertical-align: 0.52em;
}

.price-period {
  margin-top: 13px;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.billing-note {
  margin-top: 10px;
  color: var(--text-dim);
  font-size: 0.86rem;
}

.annual-saving {
  margin-top: 8px;
  color: var(--blue-light);
  font-size: 0.92rem;
  font-weight: 850;
  text-shadow: 0 0 14px rgba(124, 196, 255, 0.42);
}

.plan-points {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  margin: 34px 0;
  list-style: none;
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 650;
}

.plan-points li {
  position: relative;
  padding-left: 25px;
}

.plan-points li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--blue-light);
  font-weight: 900;
  text-shadow: 0 0 10px var(--glow);
}

.checkout-button {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 58px;
  margin-top: auto;
  padding: 14px 20px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(124, 196, 255, 0.3);
  border-radius: 13px;
  background: rgba(6, 10, 20, 0.72);
  color: #fff;
  font-size: 0.96rem;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.25s ease, background 0.2s ease;
}

.checkout-button:hover,
.checkout-button:focus-visible {
  border-color: rgba(124, 196, 255, 0.72);
  background: rgba(59, 130, 246, 0.18);
  box-shadow: 0 0 28px rgba(59, 130, 246, 0.27);
  transform: translateY(-2px);
}

.checkout-annual {
  border-color: rgba(220, 242, 255, 0.72);
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: #04101f;
  box-shadow: 0 0 26px rgba(80, 150, 255, 0.42);
}

.checkout-annual:hover,
.checkout-annual:focus-visible {
  background: linear-gradient(135deg, #5293ff, #98d3ff);
  color: #04101f;
  box-shadow: 0 0 42px rgba(100, 175, 255, 0.58);
}

.refund-note {
  margin-top: 44px;
  color: var(--blue-light);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  font-weight: 750;
  text-align: center;
  text-shadow: 0 0 20px var(--glow);
}

.currency-note {
  margin-top: 10px;
  color: var(--text-dim);
  font-size: 0.78rem;
  text-align: center;
}

@media (max-width: 760px) {
  .plans-shell { width: min(100% - 28px, 620px); padding-top: 20px; }
  .plans-header { margin: 0 auto 34px; }
  .brand-mark { width: 96px; }
  .pricing-grid { grid-template-columns: 1fr; gap: 20px; }
  .pricing-card { min-height: 460px; padding: 28px 22px; }
  .pricing-annual { transform: none; }
  .value-badge { top: 14px; right: 14px; font-size: 0.65rem; }
}

@media (prefers-reduced-motion: reduce) {
  .back-link, .checkout-button { transition: none; }
}
