/* GenVex — промо Telegram: центральный модал с затемнением */
.gv-tgp {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  z-index: 2147482500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.gv-tgp.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.gv-tgp-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 14, 0.72);
  backdrop-filter: blur(4px);
}

.gv-tgp-card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  padding: 28px 26px 24px;
  border-radius: 22px;
  border: 1px solid rgba(167, 139, 250, 0.4);
  background:
    radial-gradient(120% 80% at 10% 0%, rgba(139, 92, 246, 0.18), transparent 55%),
    radial-gradient(90% 70% at 100% 100%, rgba(34, 211, 238, 0.12), transparent 50%),
    linear-gradient(155deg, rgba(20, 24, 40, 0.98), rgba(10, 12, 22, 0.96));
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 0 60px rgba(139, 92, 246, 0.2);
  transform: translateY(16px) scale(0.96);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.gv-tgp.is-visible .gv-tgp-card {
  transform: translateY(0) scale(1);
}

.gv-tgp-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(196, 181, 253, 0.65), rgba(34, 211, 238, 0.45));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.gv-tgp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0b1020;
  background: linear-gradient(135deg, #c4b5fd, #22d3ee);
}

.gv-tgp-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(226, 232, 240, 0.8);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 0.2s, color 0.2s;
}

.gv-tgp-close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.gv-tgp-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 8px 4px;
}

.gv-tgp-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #2aabee, #229ed9);
  box-shadow: 0 12px 32px rgba(42, 171, 238, 0.45);
}

.gv-tgp-icon svg {
  width: 32px;
  height: 32px;
  fill: #fff;
  shape-rendering: geometricPrecision;
}

.gv-tgp-title {
  margin: 0 0 10px;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #f8fafc;
}

.gv-tgp-text {
  margin: 0;
  max-width: 34ch;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(203, 213, 225, 0.94);
}

.gv-tgp-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
}

.gv-tgp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  border: 0;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
  color: #0b1020;
  -webkit-text-fill-color: #0b1020;
  background: linear-gradient(135deg, #c4b5fd, #22d3ee);
  background-clip: border-box;
  -webkit-background-clip: border-box;
  text-shadow: none;
  box-shadow: 0 14px 36px rgba(34, 211, 238, 0.28);
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
}

.gv-tgp-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(34, 211, 238, 0.35);
}

.gv-tgp-btn-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #2aabee;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
  font-size: 0;
  line-height: 0;
  box-shadow: 0 2px 8px rgba(42, 171, 238, 0.45);
}

.gv-tgp-btn-label {
  flex: 0 1 auto;
  white-space: nowrap;
}

.gv-tgp-btn-icon svg {
  width: 14px;
  height: 14px;
  fill: #fff;
  shape-rendering: geometricPrecision;
}

.gv-tgp-later {
  min-height: 40px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: rgba(148, 163, 184, 0.95);
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s;
}

.gv-tgp-later:hover {
  color: #e2e8f0;
}

body.gv-tgp-open {
  overflow: hidden;
  touch-action: none;
}

@media (max-width: 640px) {
  .gv-tgp {
    display: block;
    padding: 0;
  }

  .gv-tgp-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100dvh;
  }

  .gv-tgp-card {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 22px 18px max(18px, env(safe-area-inset-bottom, 0px));
    padding-top: 20px;
    border-radius: 22px 22px 0 0;
    border-bottom: 0;
    max-height: min(88dvh, 520px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    transform: translate3d(0, 100%, 0);
  }

  .gv-tgp.is-visible .gv-tgp-card {
    transform: translate3d(0, 0, 0);
  }

  .gv-tgp-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 14px;
    border-radius: 18px;
  }

  .gv-tgp-icon svg {
    width: 30px;
    height: 30px;
  }

  .gv-tgp-title {
    font-size: 1.18rem;
  }

  .gv-tgp-text {
    font-size: 0.9rem;
    max-width: none;
  }

  .gv-tgp-btn {
    min-height: 50px;
    font-size: 1rem;
  }

  .gv-tgp-btn-label {
    white-space: normal;
    text-align: center;
  }

  .gv-tgp-later {
    min-height: 44px;
    font-size: 0.9rem;
  }

  .gv-tgp-close {
    top: max(10px, env(safe-area-inset-top, 0px));
    right: max(10px, env(safe-area-inset-right, 0px));
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 380px) {
  .gv-tgp-title {
    font-size: 1.08rem;
  }

  .gv-tgp-kicker {
    font-size: 0.62rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gv-tgp,
  .gv-tgp-card {
    transition: none;
  }
}
