html.vg-locked,
body.vg-locked {
  overflow: hidden !important;
}

/* =========================
   FULL SCREEN GATE
========================= */

.vg-gate {
  position: fixed;
  inset: 0;
  z-index: 2147483647;

  display: none;
  align-items: center;
  justify-content: center;

  width: 100%;
  min-height: 100vh;
  min-height: 100svh;

  overflow-y: auto;
  padding: 24px;

  background:
    radial-gradient(
      circle at 50% 20%,
      rgba(55, 185, 130, 0.12),
      transparent 36%
    ),
    linear-gradient(
      rgba(41, 88, 72, 0.18) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(41, 88, 72, 0.18) 1px,
      transparent 1px
    ),
    #07100d;

  background-size:
    auto,
    48px 48px,
    48px 48px,
    auto;

  font-family: Inter, Arial, Helvetica, sans-serif;
  box-sizing: border-box;
}

.vg-gate.is-visible {
  display: flex;
}

/* =========================
   CARD
========================= */

.vg-gate__panel {
  position: relative;

  width: min(100%, 580px);
  max-height: calc(100svh - 48px);

  overflow-y: auto;
  box-sizing: border-box;

  padding: 38px 40px 34px;

  border: 1px solid rgba(94, 214, 157, 0.26);
  border-radius: 18px;

  background:
    linear-gradient(
      180deg,
      rgba(18, 35, 29, 0.98),
      rgba(9, 20, 16, 0.98)
    );

  color: #f4f8f5;

  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.02),
    0 0 70px rgba(57, 208, 145, 0.08);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* subtle top glow */
.vg-gate__panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  width: 84%;
  height: 1px;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(102, 233, 171, 0.85),
    transparent
  );
}

/* =========================
   BRAND
========================= */

.vg-gate__brand {
  display: flex;
  align-items: center;
  gap: 12px;

  margin: 0 0 34px;
  padding: 0;

  color: #eef8f2;

  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.vg-gate__brand-mark {
  display: inline-grid;
  place-items: center;

  width: 34px;
  height: 34px;

  flex: 0 0 34px;

  border: 1px solid rgba(95, 229, 164, 0.65);
  border-radius: 8px;

  background: rgba(62, 202, 139, 0.08);

  color: #71e3a9;

  font-size: 26px;
  font-weight: 300;
  line-height: 1;
}

/* =========================
   HEADING
========================= */

.vg-gate__eyebrow {
  margin: 0 0 12px;

  color: #69dea3;

  font-family: Inter, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.vg-gate__panel h2 {
  margin: 0 0 14px;

  color: #f5faf7;

  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.vg-gate__intro {
  max-width: 470px;

  margin: 0 0 26px;

  color: #a9bbb1;

  font-family: Inter, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
}

/* =========================
   MARKET TICKER
========================= */

.vg-gate__ticker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;

  margin: 0 0 28px;
  padding: 16px 0;

  border-top: 1px solid rgba(81, 146, 119, 0.28);
  border-bottom: 1px solid rgba(81, 146, 119, 0.28);

  font-family: Inter, Arial, sans-serif;
}

.vg-gate__ticker span {
  display: flex;
  flex-direction: column;
  gap: 5px;

  min-width: 0;

  color: #83978d;
  font-size: 11px;
  line-height: 1.25;
}

.vg-gate__ticker b {
  color: #edf7f1;
  font-size: 12px;
  font-weight: 700;
}

.vg-gate__ticker em {
  color: #67dda1;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
}

/* =========================
   FORM
========================= */

#vg-gate-form {
  margin: 0;
}

.vg-gate__panel label {
  display: block;

  margin: 0 0 8px;

  color: #d8e5de;

  font-family: Inter, Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.vg-gate__panel label:not(:first-of-type) {
  margin-top: 18px;
}

.vg-gate__panel label span {
  color: #6fe2a7;
}

.vg-gate__panel input {
  width: 100%;
  min-height: 54px;

  box-sizing: border-box;

  padding: 0 16px;

  border: 1px solid rgba(102, 144, 127, 0.55);
  border-radius: 10px;

  outline: none;

  background: rgba(4, 13, 10, 0.72);
  color: #f1f7f3;

  font-family: Inter, Arial, sans-serif;
  font-size: 15px;
  line-height: 1;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.vg-gate__panel input::placeholder {
  color: #60776b;
}

.vg-gate__panel input:hover {
  border-color: rgba(107, 203, 155, 0.75);
}

.vg-gate__panel input:focus {
  border-color: #6fe2a7;

  background: rgba(7, 20, 15, 0.95);

  box-shadow:
    0 0 0 3px rgba(111, 226, 167, 0.1),
    0 0 20px rgba(111, 226, 167, 0.05);
}

/* =========================
   BUTTON
========================= */

.vg-gate__panel button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  width: 100%;
  min-height: 56px;

  margin-top: 22px;
  padding: 0 20px;

  border: 1px solid #70dda6;
  border-radius: 10px;

  background:
    linear-gradient(
      135deg,
      #71dca7,
      #58c990
    );

  color: #07100d;

  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;

  cursor: pointer;

  box-shadow:
    0 10px 28px rgba(74, 204, 139, 0.18);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.vg-gate__panel button:hover {
  transform: translateY(-2px);

  background:
    linear-gradient(
      135deg,
      #82e8b5,
      #60d499
    );

  box-shadow:
    0 14px 34px rgba(74, 204, 139, 0.26);
}

.vg-gate__panel button:active {
  transform: translateY(0);
}

.vg-gate__panel button:focus-visible {
  outline: 3px solid rgba(111, 226, 167, 0.24);
  outline-offset: 3px;
}

.vg-gate__panel button span {
  margin-left: 4px;

  font-size: 19px;
  line-height: 1;
}

.vg-gate__panel button:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

/* =========================
   MESSAGES
========================= */

.vg-message {
  min-height: 20px;

  margin-top: 12px;

  color: #ff9e92;

  font-family: Inter, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.5;
}

.vg-gate__fine-print {
  display: block;

  margin-top: 14px;

  color: #70837a;

  font-family: Inter, Arial, sans-serif;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

/* =========================
   SCROLLBAR
========================= */

.vg-gate__panel::-webkit-scrollbar {
  width: 6px;
}

.vg-gate__panel::-webkit-scrollbar-track {
  background: transparent;
}

.vg-gate__panel::-webkit-scrollbar-thumb {
  background: rgba(111, 226, 167, 0.22);
  border-radius: 99px;
}

/* =========================
   TABLET
========================= */

@media (max-width: 768px) {
  .vg-gate {
    padding: 18px;
  }

  .vg-gate__panel {
    width: min(100%, 540px);
    max-height: calc(100svh - 36px);

    padding: 32px 30px;
  }

  .vg-gate__brand {
    margin-bottom: 28px;
  }

  .vg-gate__panel h2 {
    font-size: clamp(32px, 8vw, 46px);
  }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 560px) {
  .vg-gate {
    align-items: flex-start;

    padding: 12px;
  }

  .vg-gate__panel {
    width: 100%;
    max-height: calc(100svh - 24px);

    margin: auto 0;
    padding: 24px 20px 22px;

    border-radius: 14px;
  }

  .vg-gate__brand {
    gap: 10px;

    margin-bottom: 24px;

    font-size: 13px;
  }

  .vg-gate__brand-mark {
    width: 30px;
    height: 30px;

    flex-basis: 30px;

    border-radius: 7px;

    font-size: 22px;
  }

  .vg-gate__eyebrow {
    margin-bottom: 10px;

    font-size: 10px;
    letter-spacing: 0.16em;
  }

  .vg-gate__panel h2 {
    margin-bottom: 12px;

    font-size: clamp(31px, 10vw, 40px);
    line-height: 1.03;
  }

  .vg-gate__intro {
    margin-bottom: 20px;

    font-size: 14px;
    line-height: 1.6;
  }

  .vg-gate__ticker {
    gap: 8px;

    margin-bottom: 22px;
    padding: 13px 0;
  }

  .vg-gate__ticker span {
    font-size: 9px;
  }

  .vg-gate__ticker b {
    font-size: 10px;
  }

  .vg-gate__ticker em {
    font-size: 9px;
  }

  .vg-gate__panel label {
    font-size: 12px;
  }

  .vg-gate__panel label:not(:first-of-type) {
    margin-top: 15px;
  }

  .vg-gate__panel input {
    min-height: 50px;

    padding: 0 14px;

    border-radius: 8px;

    font-size: 14px;
  }

  .vg-gate__panel button {
    min-height: 52px;

    margin-top: 18px;

    border-radius: 8px;

    font-size: 13px;
  }
}

/* =========================
   VERY SMALL PHONES
========================= */

@media (max-width: 380px) {
  .vg-gate {
    padding: 8px;
  }

  .vg-gate__panel {
    max-height: calc(100svh - 16px);

    padding: 20px 16px;
  }

  .vg-gate__brand {
    margin-bottom: 20px;
  }

  .vg-gate__panel h2 {
    font-size: 30px;
  }

  .vg-gate__ticker {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }
}

/* =========================
   SHORT LAPTOP SCREENS
========================= */

@media (max-height: 760px) and (min-width: 561px) {
  .vg-gate {
    align-items: flex-start;

    padding-top: 16px;
    padding-bottom: 16px;
  }

  .vg-gate__panel {
    max-height: calc(100svh - 32px);

    padding-top: 26px;
    padding-bottom: 26px;
  }

  .vg-gate__brand {
    margin-bottom: 22px;
  }

  .vg-gate__eyebrow {
    margin-bottom: 8px;
  }

  .vg-gate__panel h2 {
    font-size: 40px;
  }

  .vg-gate__intro {
    margin-bottom: 18px;

    line-height: 1.5;
  }

  .vg-gate__ticker {
    margin-bottom: 20px;
    padding: 11px 0;
  }

  .vg-gate__panel input {
    min-height: 48px;
  }

  .vg-gate__panel button {
    min-height: 50px;
    margin-top: 18px;
  }
}