.demo-bg {
      height: 100vh;
      display: grid;
      place-items: center;
      background:
        radial-gradient(1200px 600px at 70% 40%, rgba(168, 85, 247, .25), transparent 60%),
        radial-gradient(900px 500px at 30% 60%, rgba(99, 102, 241, .18), transparent 60%),
        linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
    }
    .demo-card {
      width: min(980px, 92vw);
      height: min(520px, 78vh);
      border-radius: 24px;
      background: rgba(255,255,255,.06);
      border: 1px solid rgba(255,255,255,.10);
      display: grid;
      place-items: center;
      position: relative;
      overflow: hidden;
    }
    .demo-card h1 {
      margin: 0;
      font-size: clamp(28px, 5vw, 56px);
      color: rgba(255,255,255,.38);
      font-weight: 800;
      letter-spacing: -0.02em;
      text-align: center;
      padding: 0 16px;
      user-select: none;
    }
    .demo-open {
      position: absolute;
      bottom: 18px;
      left: 18px;
      padding: 10px 14px;
      border-radius: 12px;
      border: 1px solid rgba(255,255,255,.18);
      background: rgba(255,255,255,.10);
      color: rgba(255,255,255,.92);
      cursor: pointer;
      font-weight: 600;
    }

    /* =========================
       POPUP (ALL CSS IS PARENT SCOPED)
    ========================== */

    .hm-popup {
      position: fixed;
      inset: 0;
      z-index: 9999;
      display: none;
    }

    .hm-popup.hm-popup--open {
      display: block;
    }

    .hm-popup .hm-popup__backdrop {
      position: absolute;
      inset: 0;
      background: rgba(15, 23, 42, 0.55);
      backdrop-filter: blur(4px);
      -webkit-backdrop-filter: blur(4px);
    }

    .hm-popup .hm-popup__wrap {
      position: absolute;
      inset: 0;
      display: grid;
      place-items: center;
      padding: 24px;
    }

    .hm-popup .hm-popup__dialog {
      width: min(760px, 92vw);
      max-height: min(86vh, 900px);
      overflow: auto;
      background: #ffffff;
      border-radius: 18px;
      box-shadow:
        0 24px 60px rgba(0,0,0,.25),
        0 8px 24px rgba(0,0,0,.16);
      border: 1px solid rgba(15, 23, 42, 0.08);
      -webkit-overflow-scrolling: touch;
    }

    .hm-popup .hm-popup__inner {
      padding: 22px 28px 22px 28px;
    }

    .hm-popup .hm-popup__top {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
    }

    .hm-popup .hm-popup__kicker {
      margin: 2px 0 0 0;
      font-size: 18px;
      font-weight: 700;
      color: #0f172a;
      letter-spacing: -0.01em;
    }

    .hm-popup .hm-popup__close {
      width: 34px;
      height: 34px;
      border-radius: 9px;
      border: 1px solid rgba(15, 23, 42, 0.16);
      background: #ffffff;
      cursor: pointer;
      display: grid;
      place-items: center;
      padding: 0;
      line-height: 0;
      flex: 0 0 auto;
    }

    .hm-popup .hm-popup__close svg {
      width: 16px;
      height: 16px;
      opacity: .75;
    }

    .hm-popup .hm-popup__divider {
      height: 1px;
      background: rgba(15, 23, 42, 0.08);
      margin: 14px 0 18px 0;
    }

    .hm-popup .hm-popup__section {
      margin: 0 0 16px 0;
    }

    .hm-popup .hm-popup__title {
      margin: 0;
      font-size: 28px;
      font-weight: 800;
      color: #0f172a;
      letter-spacing: -0.02em;
      line-height: 1.15;
    }

    .hm-popup .hm-popup__sub {
      margin: 8px 0 14px 0;
      font-size: 14px;
      color: rgba(15, 23, 42, 0.62);
      line-height: 1.45;
      max-width: 560px;
    }

    .hm-popup .hm-popup__field {
      margin: 10px 0 0 0;
    }

    .hm-popup .hm-popup__input,
    .hm-popup .hm-popup__selectLike,
    .hm-popup .hm-popup__inputGroup {
      width: 100%;
      border-radius: 10px;
      border: 1px solid rgba(15, 23, 42, 0.14);
      background: #ffffff;
      height: 44px;
      display: flex;
      align-items: center;
      box-sizing: border-box;
    }

    .hm-popup .hm-popup__input {
      padding: 0 14px;
      font-size: 14px;
      color: #0f172a;
      outline: none;
    }

    .hm-popup .hm-popup__input::placeholder {
      color: rgba(15, 23, 42, 0.38);
    }

    .hm-popup .hm-popup__input:focus {
      border-color: rgba(15, 23, 42, 0.28);
      box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.06);
    }

    .hm-popup .hm-popup__inputGroup {
      overflow: hidden;
    }

    .hm-popup .hm-popup__inputGroup input {
      flex: 1;
      height: 100%;
      border: 0;
      outline: none;
      padding: 0 14px;
      font-size: 14px;
      color: #0f172a;
      background: transparent;
    }

    .hm-popup .hm-popup__inputGroup input::placeholder {
      color: rgba(15, 23, 42, 0.38);
    }

    .hm-popup .hm-popup__suffix {
      width: 76px;
      height: 100%;
      border-left: 1px solid rgba(15, 23, 42, 0.10);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 13px;
      font-weight: 600;
      color: rgba(15, 23, 42, 0.55);
      background: #ffffff;
      user-select: none;
    }

    .hm-popup .hm-popup__phoneWrap {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 0 12px;
      width: 100%;
      box-sizing: border-box;
    }

    .hm-popup .hm-popup__flag {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      min-width: 84px;
      padding-right: 8px;
      border-right: 1px solid rgba(15, 23, 42, 0.10);
      color: rgba(15, 23, 42, 0.72);
      font-size: 14px;
      user-select: none;
    }

    .hm-popup .hm-popup__flag .hm-popup__caret {
      opacity: .65;
      font-size: 12px;
      transform: translateY(-1px);
    }

    .hm-popup .hm-popup__phoneText {
      color: rgba(15, 23, 42, 0.70);
      font-size: 14px;
      white-space: nowrap;
    }

    .hm-popup .hm-popup__bottomDivider {
      height: 1px;
      background: rgba(15, 23, 42, 0.08);
      margin: 18px 0 16px 0;
    }

    .hm-popup .hm-popup__actions {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }

    .hm-popup .hm-popup__btn {
      height: 38px;
      padding: 0 14px;
      border-radius: 10px;
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
      border: 1px solid rgba(15, 23, 42, 0.18);
      background: #ffffff;
      color: rgba(15, 23, 42, 0.85);
    }

    .hm-popup .hm-popup__btn:hover {
      border-color: rgba(15, 23, 42, 0.26);
    }

    .hm-popup .hm-popup__btnPrimary {
      border: 0;
      background: #0b0f1a;
      color: #ffffff;
      padding: 0 18px;
      border-radius: 10px;
      height: 40px;
      box-shadow: 0 10px 24px rgba(0,0,0,.18);
    }

    .hm-popup .hm-popup__btnPrimary:hover {
      filter: brightness(1.02);
    }

    /* Mobile */
    @media (max-width: 520px) {
      .hm-popup .hm-popup__wrap {
        padding: 14px;
        place-items: end center;
      }

      .hm-popup .hm-popup__dialog {
        width: 100%;
        max-height: 92vh;
        border-radius: 16px;
      }

      .hm-popup .hm-popup__inner {
        padding: 18px 16px;
      }

      .hm-popup .hm-popup__title {
        font-size: 24px;
      }

      .hm-popup .hm-popup__actions {
        gap: 10px;
      }

      .hm-popup .hm-popup__btn {
        flex: 0 0 auto;
      }

      .hm-popup .hm-popup__btnPrimary {
        flex: 0 0 auto;
      }
    }
    
    .hm-popup .hm-popup__phoneField {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #ffffff;
  height: 44px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  position: relative;
}

.hm-popup .hm-popup__ccBtn {
  height: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  min-width: 110px;
  border-right: 1px solid rgba(15, 23, 42, 0.10);
  color: rgba(15, 23, 42, 0.78);
  font-size: 14px;
  font-weight: 600;
}

.hm-popup .hm-popup__ccBtn:focus {
  outline: none;
}

.hm-popup .hm-popup__ccBtn .hm-popup__caret {
  opacity: .65;
  font-size: 12px;
  transform: translateY(-1px);
}

.hm-popup .hm-popup__ccValue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.hm-popup .hm-popup__phoneInput {
  flex: 1;
  height: 100%;
  border: 0;
  outline: none;
  padding: 0 14px;
  font-size: 14px;
  color: #0f172a;
  background: transparent;
  box-sizing: border-box;
}

.hm-popup .hm-popup__phoneInput::placeholder {
  color: rgba(15, 23, 42, 0.38);
}

.hm-popup .hm-popup__ccMenu {
  position: absolute;
  left: 8px;
  top: calc(100% + 8px);
  width: min(320px, calc(100% - 16px));
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,.14);
  overflow: hidden;
  display: none;
  z-index: 20;
}

.hm-popup .hm-popup__ccMenu.hm-popup__ccMenu--open {
  display: block;
}

.hm-popup .hm-popup__ccSearch {
  padding: 10px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.hm-popup .hm-popup__ccSearch input {
  width: 100%;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  padding: 0 10px;
  outline: none;
  font-size: 13px;
  box-sizing: border-box;
}

.hm-popup .hm-popup__ccList {
  max-height: 240px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.hm-popup .hm-popup__ccItem {
  width: 100%;
  border: 0;
  background: #ffffff;
  cursor: pointer;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: rgba(15, 23, 42, 0.85);
}

.hm-popup .hm-popup__ccItem:hover {
  background: rgba(15, 23, 42, 0.04);
}

.hm-popup .hm-popup__ccLeft {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.hm-popup .hm-popup__ccName {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hm-popup .hm-popup__ccCode {
  font-weight: 700;
  color: rgba(15, 23, 42, 0.72);
  white-space: nowrap;
}
