:root {
  --bg: #07111f;
  --bg-2: #0f172a;
  --card: rgba(255, 255, 255, 0.1);
  --card-2: rgba(255, 255, 255, 0.16);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --soft: #94a3b8;
  --line: rgba(255, 255, 255, 0.16);
  --primary: #22c55e;
  --primary-2: #16a34a;
  --accent: #38bdf8;
  --danger: #ef4444;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 12%, rgba(34, 197, 94, 0.2), transparent 34%),
    radial-gradient(circle at 88% 20%, rgba(56, 189, 248, 0.18), transparent 34%),
    linear-gradient(135deg, #050b14, #0f172a 52%, #08111f);
  overflow-x: hidden;
}

button,
a {
  font-family: inherit;
}

button {
  cursor: pointer;
  border: 0;
}

.page {
  position: relative;
  min-height: 100vh;
  padding: 40px 18px;
  overflow: hidden;
}

.orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(20px);
  opacity: 0.65;
  pointer-events: none;
  animation: float 7s ease-in-out infinite alternate;
}

.orb-1 {
  width: 160px;
  height: 160px;
  left: -50px;
  top: 110px;
  background: rgba(34, 197, 94, 0.35);
}

.orb-2 {
  width: 210px;
  height: 210px;
  right: -80px;
  top: 320px;
  background: rgba(56, 189, 248, 0.28);
  animation-delay: 1.5s;
}

.orb-3 {
  width: 130px;
  height: 130px;
  left: 42%;
  bottom: 80px;
  background: rgba(239, 68, 68, 0.18);
  animation-delay: 2.6s;
}

.hero {
  width: min(1120px, 100%);
  margin: 0 auto;
  min-height: calc(100vh - 190px);
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 34px;
  align-items: center;
}

.hero-text {
  position: relative;
  z-index: 1;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #bbf7d0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(20px);
}

.badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 18px var(--primary);
}

.hero h1 {
  max-width: 670px;
  margin-top: 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.94;
  letter-spacing: -0.07em;
}

.hero p {
  max-width: 560px;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.75;
}

.payment-wrap {
  position: relative;
  z-index: 1;
}

.switcher {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.tab-btn {
  padding: 13px 14px;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
  transition: 0.28s ease;
}

.tab-btn.active,
.tab-btn:hover {
  color: #052e16;
  background: linear-gradient(135deg, #bbf7d0, #22c55e);
  box-shadow: 0 12px 30px rgba(34, 197, 94, 0.3);
}

.payment-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06));
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.payment-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.28);
}

.payment-card.is-changing {
  animation: pop 0.32s ease;
}

.card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.label {
  margin-bottom: 7px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-head h2 {
  font-size: clamp(20px, 3vw, 26px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.card-head span:not(.status-dot) {
  display: inline-block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.status-dot {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid rgba(34, 197, 94, 0.32);
  border-radius: 999px;
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.11);
  font-size: 12px;
  font-weight: 800;
}

.status-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 14px var(--primary);
}

.qr-frame {
  position: relative;
  margin: 24px auto 18px;
  padding: 12px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08), 0 20px 50px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.qr-frame::after {
  content: "";
  position: absolute;
  inset: -80px;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55), transparent 70%);
  transform: translateX(-70%);
  animation: shine 3.8s ease-in-out infinite;
  pointer-events: none;
}

.qr-frame img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  border-radius: 22px;
}

.number-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.42);
}

.number-box p {
  color: var(--soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.number-box strong {
  display: block;
  margin-top: 5px;
  font-size: 22px;
  letter-spacing: 0.02em;
}

.icon-btn,
.primary-btn,
.secondary-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  border-radius: 16px;
  font-weight: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.icon-btn:hover,
.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-2px);
}

.icon-btn {
  padding: 0 17px;
  color: #052e16;
  background: #bbf7d0;
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.primary-btn {
  color: #052e16;
  background: linear-gradient(135deg, #bbf7d0, #22c55e);
  box-shadow: 0 16px 32px rgba(34, 197, 94, 0.25);
}

.secondary-btn {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.09);
}

.info-grid {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.info-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.info-card span {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 900;
}

.info-card h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.info-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 20;
  transform: translate(-50%, 18px);
  padding: 13px 18px;
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 999px;
  color: #052e16;
  background: #bbf7d0;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transition: 0.28s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  animation: reveal 0.9s ease forwards;
}

.delay-1 {
  animation-delay: 0.16s;
}

.delay-2 {
  animation-delay: 0.28s;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(24px, -30px, 0) scale(1.08);
  }
}

@keyframes shine {
  0%, 45% {
    transform: translateX(-70%) rotate(10deg);
  }
  100% {
    transform: translateX(70%) rotate(10deg);
  }
}

@keyframes pop {
  0% {
    transform: scale(0.985);
  }
  100% {
    transform: scale(1);
  }
}

@media (max-width: 940px) {
  .page {
    padding: 28px 14px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero h1,
  .hero p {
    max-width: 100%;
  }

  .payment-wrap {
    width: min(520px, 100%);
    margin: 0 auto;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .hero h1 {
    letter-spacing: -0.055em;
  }

  .payment-card {
    padding: 16px;
    border-radius: 28px;
  }

  .switcher {
    border-radius: 24px;
  }

  .tab-btn {
    padding: 12px 10px;
    font-size: 13px;
  }

  .card-head {
    flex-direction: column;
  }

  .status-dot {
    align-self: flex-start;
  }

  .qr-frame {
    padding: 9px;
    border-radius: 24px;
  }

  .qr-frame img {
    border-radius: 18px;
  }

  .number-box {
    align-items: stretch;
    flex-direction: column;
  }

  .actions {
    grid-template-columns: 1fr;
  }
}
