* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body.bg {
  min-height: 100vh;
  font-family: Inter, Arial, sans-serif;
  color: #fff;
  background:
    radial-gradient(circle at top, rgba(115, 98, 255, 0.32) 0%, rgba(8, 14, 35, 0.08) 35%, rgba(3, 8, 24, 1) 70%),
    linear-gradient(180deg, #071126 0%, #040918 100%);
  overflow-x: hidden;
  position: relative;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at center, rgba(255,255,255,0.35), transparent 80%);
  pointer-events: none;
  z-index: 0;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}

.orb-1 {
  width: 380px;
  height: 380px;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(118, 97, 255, 0.32);
}

.orb-2 {
  width: 260px;
  height: 260px;
  bottom: 60px;
  right: 10%;
  background: rgba(0, 209, 255, 0.12);
}

.page {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 48px 18px 32px;
}

.hero {
  text-align: center;
  margin-bottom: 26px;
}

.logo-wrap {
  position: relative;
  width: 104px;
  height: 104px;
  margin: 0 auto 18px;
}

.logo-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #7b61ff,
    #9c6bff,
    #53d8ff,
    #7b61ff
  );
  animation: spinRing 7s linear infinite;
  filter: blur(10px);
  opacity: 0.9;
}

.logo {
  position: absolute;
  inset: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 48px;
  background: linear-gradient(180deg, #ffa83d 0%, #ff8a00 100%);
  box-shadow:
    0 8px 30px rgba(255, 138, 0, 0.45),
    inset 0 2px 10px rgba(255,255,255,0.25);
}

.hero-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 12px;
  border: 1px solid rgba(145, 134, 255, 0.35);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #c9c0ff;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);
}

.hero h1 {
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #b9c2e6;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.link-form {
  margin: 0;
}

.card {
  position: relative;
  width: 100%;
  border: 1px solid rgba(132, 145, 255, 0.14);
  border-radius: 24px;
  padding: 18px 18px;
  background:
    linear-gradient(180deg, rgba(13, 22, 51, 0.96) 0%, rgba(10, 18, 44, 0.98) 100%);
  box-shadow:
    0 16px 40px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.03);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card:hover {
  transform: translateY(-2px) scale(1.01);
  border-color: rgba(135, 122, 255, 0.4);
  box-shadow:
    0 18px 46px rgba(0,0,0,0.42),
    0 0 28px rgba(114, 97, 255, 0.16);
}

.card-glow {
  position: absolute;
  inset: -1px;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(123, 97, 255, 0.00) 20%,
    rgba(123, 97, 255, 0.20) 50%,
    rgba(83, 216, 255, 0.18) 75%,
    transparent 100%
  );
  transform: translateX(-100%);
  animation: shineMove 4.8s linear infinite;
  pointer-events: none;
}

.left {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
}

.icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(180deg, #24d86f 0%, #13b859 100%);
  box-shadow:
    0 10px 24px rgba(36, 216, 111, 0.28),
    inset 0 1px 5px rgba(255,255,255,0.18);
  flex-shrink: 0;
}

.texts {
  text-align: left;
}

.title {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 4px;
}

.sub {
  font-size: 14px;
  color: #9aa7d3;
}

.arrow {
  position: relative;
  z-index: 2;
  font-size: 32px;
  line-height: 1;
  color: #93a0d0;
  transition: transform 0.2s ease, color 0.2s ease;
}

.card:hover .arrow {
  transform: translateX(4px);
  color: #c9d0ff;
}

.cta {
  margin-top: 22px;
}

.tg-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  width: 100%;
  border-radius: 999px;
  text-decoration: none;
  overflow: hidden;
  background: linear-gradient(90deg, #6d5dfc 0%, #8d63ff 50%, #6ed8ff 100%);
  box-shadow:
    0 16px 34px rgba(114, 97, 255, 0.34),
    0 0 24px rgba(114, 97, 255, 0.18);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.tg-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 18px 38px rgba(114, 97, 255, 0.42),
    0 0 26px rgba(114, 97, 255, 0.24);
}

.tg-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 0%,
    rgba(255,255,255,0.06) 25%,
    rgba(255,255,255,0.28) 50%,
    rgba(255,255,255,0.06) 75%,
    transparent 100%
  );
  transform: translateX(-100%);
  animation: shineMove 3.8s linear infinite;
}

.tg-text {
  position: relative;
  z-index: 2;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.empty {
  margin: 30px 0 10px;
  text-align: center;
  color: #b8c2ea;
  font-size: 16px;
}

.footer {
  margin-top: 18px;
  text-align: center;
  font-size: 12px;
  color: rgba(194, 203, 236, 0.45);
  letter-spacing: 0.04em;
}

@keyframes shineMove {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(130%);
  }
}

@keyframes spinRing {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 640px) {
  .page {
    padding: 34px 14px 24px;
  }

  .logo-wrap {
    width: 90px;
    height: 90px;
    margin-bottom: 16px;
  }

  .logo {
    inset: 9px;
    font-size: 40px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 14px;
  }

  .card {
    padding: 16px 16px;
    border-radius: 20px;
  }

  .icon {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }

  .title {
    font-size: 18px;
  }

  .sub {
    font-size: 13px;
  }

  .arrow {
    font-size: 28px;
  }

  .tg-btn {
    min-height: 58px;
  }

  .tg-text {
    font-size: 16px;
  }
}