* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #fff;
  background:
    radial-gradient(80% 55% at 15% 18%, rgba(126, 35, 133, 0.36) 0%, rgba(126, 35, 133, 0) 70%),
    radial-gradient(85% 60% at 86% 94%, rgba(214, 35, 146, 0.28) 0%, rgba(214, 35, 146, 0) 72%),
    linear-gradient(180deg, rgba(12, 9, 30, 0.48) 0%, rgba(6, 5, 16, 0.74) 100%),
    url("./bg-desktop.jpg") center / cover no-repeat fixed;
}

.page {
  min-height: 100vh;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.region-switch {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 18px;
}

.hero-center h1 {
  margin: 0;
  font-size: clamp(36px, 7vw, 64px);
  line-height: 1.05;
  text-shadow:
    0 0 16px rgba(114, 171, 255, 0.45),
    0 0 32px rgba(255, 79, 188, 0.26);
}

.hero-center p {
  margin: 12px auto 18px;
  max-width: 480px;
  font-size: clamp(16px, 2.4vw, 20px);
  color: rgba(255, 255, 255, 0.9);
}

.bonus-wrap {
  margin: 8px auto 20px;
  width: min(100%, 520px);
  padding: 16px 12px 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(42, 29, 92, 0.72), rgba(13, 10, 36, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow:
    0 0 0 1px rgba(255, 118, 220, 0.22) inset,
    0 14px 30px rgba(0, 0, 0, 0.34),
    0 0 40px rgba(255, 79, 188, 0.2);
}

.bonus-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: rgba(255, 255, 255, 0.78);
}

.bonus-value {
  margin-top: 6px;
  font-size: clamp(52px, 10vw, 88px);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-shadow:
    0 0 16px rgba(114, 171, 255, 0.5),
    0 0 34px rgba(255, 79, 188, 0.38);
}

.cta {
  width: min(100%, 520px);
  min-height: 58px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  background:
    linear-gradient(180deg, rgba(20, 38, 90, 0.5), rgba(16, 31, 74, 0.6)),
    url("./button-primary.png") center / cover no-repeat;
  border: 1px solid rgba(140, 176, 255, 0.7);
  box-shadow:
    0 0 20px rgba(118, 168, 255, 0.35),
    0 0 30px rgba(255, 74, 182, 0.3);
  cursor: pointer;
}

.region-switch-header {
  margin-bottom: 0;
}

.switch-btn {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(12, 14, 35, 0.7);
  color: #fff;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.switch-btn.is-active {
  border-color: rgba(255, 118, 220, 0.95);
  box-shadow: 0 0 0 1px rgba(255, 118, 220, 0.55) inset;
}

.hero-center {
  width: min(100%, 760px);
  margin: auto;
  text-align: center;
  padding: 10px 14px 6px;
}

.cta:hover {
  background:
    linear-gradient(180deg, rgba(20, 38, 90, 0.35), rgba(16, 31, 74, 0.45)),
    url("./button-secondary.png") center / cover no-repeat;
}

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 3, 10, 0.66);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 16px;
  z-index: 20;
}

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

.popup-card {
  width: min(100%, 360px);
  border-radius: 16px;
  padding: 20px 16px 14px;
  text-align: center;
  position: relative;
  background: linear-gradient(180deg, rgba(18, 22, 52, 0.95), rgba(10, 12, 30, 0.97));
  border: 1px solid rgba(170, 198, 255, 0.3);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.48),
    0 0 18px rgba(103, 147, 255, 0.26),
    0 0 24px rgba(255, 68, 181, 0.2);
}

.popup-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.popup-logo {
  margin-top: 2px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.popup-code-label {
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 1.4px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
}

.popup-code-value {
  margin-top: 2px;
  font-size: 42px;
  line-height: 1;
  font-weight: 900;
  color: #fff;
  text-shadow:
    0 0 12px rgba(114, 171, 255, 0.54),
    0 0 20px rgba(255, 79, 188, 0.34);
}

.popup-text {
  margin: 10px 0 12px;
  font-size: 17px;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.92);
}

.popup-action {
  width: 100%;
  min-height: 48px;
  border-radius: 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
  background:
    linear-gradient(180deg, rgba(20, 38, 90, 0.5), rgba(16, 31, 74, 0.6)),
    url("./button-primary.png") center / cover no-repeat;
  border: 1px solid rgba(140, 176, 255, 0.7);
}

@media (max-width: 760px) {
  body {
    background:
      radial-gradient(88% 48% at 18% 12%, rgba(126, 35, 133, 0.32) 0%, rgba(126, 35, 133, 0) 75%),
      radial-gradient(80% 52% at 82% 90%, rgba(214, 35, 146, 0.24) 0%, rgba(214, 35, 146, 0) 76%),
      linear-gradient(180deg, rgba(12, 9, 30, 0.54) 0%, rgba(6, 5, 16, 0.8) 100%),
      url("./bg-mobile.jpg") center / cover no-repeat fixed;
  }

  .page {
    padding: 14px;
  }

  .logo {
    font-size: 22px;
  }

  .hero-center {
    width: 100%;
    padding: 6px 6px 0;
  }
}
