/* Popup đăng ký */
.dviant-register-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  padding: 20px;
}

.dviant-register-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.dviant-register-popup {
  background: #fff;
  border-radius: 16px;
  max-width: 460px;
  width: 100%;
  text-align: center;
  position: relative;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.35s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.dviant-register-popup-overlay.active .dviant-register-popup {
  transform: translateY(0) scale(1);
}

.dviant-register-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s;
  padding: 0;
  margin: 0;
  line-height: 1;
}

.dviant-register-popup-close:hover {
  background: rgba(0, 0, 0, 0.7);
}

.dviant-register-popup-banner {
  width: 100%;
  line-height: 0;
}

.dviant-register-popup-banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.dviant-register-popup-body {
  padding: 28px 32px 28px;
}

.dviant-register-popup-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 12px;
  color: #111;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.dviant-register-popup-desc {
  font-size: 16px;
  color: #555;
  margin: 0 0 24px;
  line-height: 1.6;
}

.dviant-register-popup-btn {
  display: block;
  background: #000;
  color: #fff !important;
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.2s ease;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  width: 100%;
  box-sizing: border-box;
}

.dviant-register-popup-btn:hover {
  background: #333;
  transform: translateY(-1px);
  color: #fff !important;
  text-decoration: none;
}

.dviant-register-popup-later {
  display: block;
  margin: 16px auto 0;
  background: none;
  border: none;
  color: #999;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s;
  letter-spacing: 0.5px;
}

.dviant-register-popup-later:hover {
  color: #555;
}

@media only screen and (max-width: 48em) {
  .dviant-register-popup {
    max-width: 340px;
  }

  .dviant-register-popup-body {
    padding: 22px 20px 22px;
  }

  .dviant-register-popup-title {
    font-size: 19px;
  }

  .dviant-register-popup-desc {
    font-size: 14px;
  }
}
