:root {
  --tg-blue: #00aaff;
  --text-muted: #e8eeff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;

  /* Full-screen background image */
  background-image: url("./img/bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  position: relative;
  overflow: hidden;
  color: white;
}

/* Blur layer so content stays sharp */
body::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(6px) brightness(0.55);
  z-index: -1;
}

.page-wrapper {
  width: 100%;
  max-width: 960px;
  padding: 1.5rem;
  margin: auto;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.content {
  border-radius: 1.5rem;
  padding: clamp(2rem, 4vw, 3rem);
  background: rgba(10, 18, 40, 0.88);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(148, 163, 184, 0.2);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.8rem;
  width: 100%;
  max-width: 640px;
}

h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: 0.04em;
  color: #f6f8ff;
}

p {
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  max-width: 420px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ACTION ROW: language (left) + button (right) */
.action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

/* LANGUAGE SWITCHER INLINE */
.language-switcher-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.65);
  backdrop-filter: blur(10px);
  font-size: 0.9rem;
  white-space: nowrap;
}

.language-icon {
  font-size: 1.1rem;
}

.language-select {
  background: transparent;
  border: none;
  color: #e5edff;
  font-size: 0.9rem;
  outline: none;
  cursor: pointer;
}

.language-select option {
  color: black; /* dropdown list text */
}

/* TELEGRAM BUTTON */
.tg-button {
  position: relative;
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 999px;
  isolation: isolate;
  outline: none;
}

/* Animated neon border */
.tg-button::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background:
    conic-gradient(
      from 0deg,
      #00f5ff,
      #00ff85,
      #ffdd00,
      #ff4d4d,
      #9b5cff,
      #00f5ff
    );
  animation: spin-border 3s linear infinite;
  z-index: -1;
}

@keyframes spin-border {
  to {
    transform: rotate(360deg);
  }
}

.tg-inner {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--tg-blue);
  color: white;
  padding: clamp(0.8rem, 1.8vw, 1rem) clamp(1.6rem, 3vw, 2.2rem);
  border-radius: inherit;
  box-shadow:
    0 18px 45px rgba(0, 170, 255, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.2);
  font-size: clamp(0.95rem, 2.1vw, 1.1rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  filter: brightness(1.15);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

.tg-icon {
  width: clamp(1.25rem, 3vw, 1.6rem);
  height: clamp(1.25rem, 3vw, 1.6rem);
  display: inline-block;
}

.tg-button:hover .tg-inner,
.tg-button:focus-visible .tg-inner {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 26px 55px rgba(0, 170, 255, 0.75),
    0 0 0 1px rgba(255, 255, 255, 0.35);
  filter: brightness(1.35);
}

.tg-button:active .tg-inner {
  transform: translateY(0) scale(0.98);
  filter: brightness(1.1);
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(148, 163, 184, 0.4);
}

@media (min-width: 768px) {
  .content {
    padding-inline: 4rem;
  }
}
