:root {
  --bg: #f8fbfd;
  --surface: #ffffff;
  --text: #18212d;
  --muted: #8593a3;
  --line: #dbe8f2;
  --blue: #0f9b4a;
  --blue-dark: #067a37;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

.page-bg {
  min-height: 100vh;
  background:
    radial-gradient(circle at -10% 20%, #e3f6ea 0, #f8fbfd 30%),
    radial-gradient(circle at 110% 64%, #e6f6ec 0, #f8fbfd 26%),
    radial-gradient(circle at 50% 105%, #e4f5ea 0, #f8fbfd 24%);
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.checkout {
  padding-top: 42px;
}

h1 {
  margin: 0 0 22px;
  text-align: center;
  font-size: clamp(1.9rem, 3.9vw, 2.96rem);
  font-weight: 800;
}

.step-block,
.email-block {
  padding: 16px 0 26px;
  border-bottom: 1px solid #d2e3ee;
}

.step-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.step-title h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.7vw, 2.15rem);
  line-height: 1.1;
}

.step-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(170deg, var(--blue), var(--blue-dark));
  font-size: 2rem;
  font-weight: 700;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.plan-card {
  position: relative;
  background: var(--surface);
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 20px 20px 20px;
  min-height: 300px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.plan-card.selected {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(11, 84, 120, 0.2);
}

.plan-card.featured {
  color: #fff;
  border: 0;
  background: linear-gradient(100deg, #0d8f43, #19b35c);
}

.plan-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.plan-price {
  margin: 22px 0 14px;
  font-size: 2.85rem;
  font-weight: 700;
  line-height: 0.95;
}

.plan-price span {
  font-size: 1rem;
  font-weight: 500;
}

.plan-discount {
  margin: 0 0 20px;
  font-size: 0.88rem;
  color: #7f8a95;
}

.featured .plan-discount {
  color: #f3f8fc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(24, 31, 39, 0.9);
  border-radius: 999px;
  padding: 4px 10px;
}

.plan-charge {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid #d8e7f2;
  font-size: 0.9rem;
  color: #515f6c;
  text-align: center;
}

.featured .plan-charge {
  border-top-color: #8fdfb2;
  color: #f0fff5;
}

.chip {
  position: absolute;
  right: 12px;
  top: 10px;
  margin: 0;
  padding: 4px 9px;
  border-radius: 20px;
  background: #e7f7ed;
  color: #0a7f3c;
  font-size: 0.72rem;
  font-weight: 600;
}

.btn {
  margin: 18px auto 0;
  width: auto;
  min-width: 120px;
  border-radius: 999px;
  padding: 8px 20px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  display: block;
}

.btn-outline {
  border: 1px solid #7bcc9f;
  background: #fff;
  color: #0d8740;
}

.btn-ghost {
  border: 1px solid #8fdfb2;
  background: transparent;
  color: #f2fff7;
}

.small-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 10px;
}

.logo {
  margin: 0;
  font-weight: 800;
  color: #0d8b42;
}

.small-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.small-links a,
.footer-col a {
  color: #566472;
  text-decoration: none;
  font-size: 0.84rem;
}

.buy-btn {
  margin-left: auto;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #0f9647, #18b05b);
  color: #fff;
  padding: 8px 18px;
  font-size: 0.82rem;
  cursor: pointer;
}

input[type="email"] {
  margin-left: auto;
  width: min(352px, 44vw);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 10px 16px;
  font-size: 0.86rem;
}

.email-note {
  margin: 0 0 6px;
  color: #5e6e7e;
  font-size: 0.88rem;
}

.selected-plan-note {
  margin: 0;
  color: #536272;
  font-size: 0.86rem;
}

.payment-list {
  display: grid;
  gap: 10px;
}

.payment-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 12px 14px;
  cursor: pointer;
}

.payment-row i {
  color: #667684;
  font-style: normal;
  font-size: 1rem;
}

.payment-row strong {
  display: block;
  margin-bottom: 2px;
  font-size: 0.96rem;
}

.payment-row small {
  color: #6f7d8a;
  font-size: 0.79rem;
}

.pay-icons {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.icon-card,
.icon-coin {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 700;
}

.mc-red {
  background: #ea001b;
}

.mc-yellow {
  background: #ff9f00;
  margin-left: -12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.visa {
  width: 34px;
  border-radius: 8px;
  background: #1a4ea2;
  color: #fff;
  font-size: 0.56rem;
  letter-spacing: 0.2px;
}

.eth {
  background: #6f7a86;
  color: #f4f8fb;
}

.btc {
  background: #f7931a;
  color: #fff;
}

.ltc {
  background: #b5b7bc;
  color: #ffffff;
}

.footer {
  margin-top: 20px;
  padding: 24px 0 34px;
  border-top: 1px solid #d2e3ee;
  display: grid;
  grid-template-columns: 1.2fr repeat(4, 1fr);
  gap: 20px;
}

.theme-switch {
  margin-top: 12px;
  border: 1px solid #9ad9b4;
  border-radius: 999px;
  background: #fff;
  color: #0b8340;
  padding: 6px 12px;
  font-size: 0.78rem;
}

.copyright {
  margin-top: 18px;
  font-size: 0.78rem;
  color: #6f7d89;
}

.footer-col h3 {
  margin: 0 0 10px;
  font-size: 0.76rem;
  color: #394452;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lang {
  margin: 7px 0 0;
  color: #4e5c69;
  font-size: 0.82rem;
}

.stores {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stores span {
  display: inline-block;
  border: 1px solid #c8d9e6;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 0.72rem;
  color: #2b3845;
  background: #fff;
}

@media (max-width: 980px) {
  .plan-grid,
  .footer {
    grid-template-columns: 1fr;
  }

  .step-title {
    flex-wrap: wrap;
  }

  input[type="email"] {
    margin-left: 0;
    width: 100%;
  }

  .small-nav {
    flex-wrap: wrap;
  }
}
