.dk-tf-modal-lock {
  overflow: hidden !important;
}

.dk-tf-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  opacity: 1;
  visibility: visible;
  transition: opacity 200ms ease, visibility 200ms ease;
  box-sizing: border-box;
}

.dk-tf-modal-overlay[hidden] {
  display: flex;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.dk-tf-modal-dialog {
  position: relative;
  width: min(100%, 780px);
  height: 85vh !important;
  max-height: 88vh !important;
  min-height: 520px !important;
  overflow: hidden;
  border-radius: 16px;
  background: #0d0d12;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  contain: layout size style !important;
}

.dk-tf-modal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #16161e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 10;
  flex-shrink: 0;
}

.dk-tf-modal-title {
  color: #ffffff;
  font-family: Montserrat, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.dk-tf-modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dk-tf-modal-external {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-radius: 50%;
  text-decoration: none;
  transition: background-color 150ms ease, transform 150ms ease;
  box-sizing: border-box;
}

.dk-tf-modal-external:hover,
.dk-tf-modal-external:focus {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: scale(1.08);
  outline: none;
}

.dk-tf-modal-close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 150ms ease, transform 150ms ease;
  padding: 0;
}

.dk-tf-modal-close:hover,
.dk-tf-modal-close:focus {
  background: #aa015a;
  transform: scale(1.08);
  outline: none;
}

.dk-tf-modal-content {
  flex: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  background: #000000;
}

.dk-tf-modal-content [data-tf-live],
.dk-tf-modal-content [data-tf-live] > *,
.dk-tf-modal-content iframe,
.dk-tf-modal-content .tf-v1-widget,
.dk-tf-modal-content .tf-v1-iframe {
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  min-height: 100% !important;
  border: none !important;
  position: relative !important;
  top: 0 !important;
  left: 0 !important;
  transform: none !important;
}

.dk-tf-modal-footer,
.dk-tf-footer-close-btn,
[class*="footer-close"] {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-height: 720px) {
  .dk-tf-modal-dialog {
    height: 92vh !important;
    max-height: 94vh !important;
    min-height: 440px !important;
  }
}

@media (max-width: 767px) {
  .dk-tf-modal-overlay {
    padding: 10px 6px;
    align-items: center;
  }

  .dk-tf-modal-dialog {
    width: 100%;
    height: 88vh !important;
    max-height: 92vh !important;
    min-height: 460px !important;
    border-radius: 14px;
  }

  .dk-tf-modal-bar {
    padding: 10px 14px;
  }

  .dk-tf-modal-title {
    font-size: 14px;
  }

  .dk-tf-modal-external,
  .dk-tf-modal-close {
    width: 30px;
    height: 30px;
    font-size: 18px;
  }
}
