/* ====== MODAL STYLES ====== */
.bm-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.bm-modal.is-open {
  display: flex;
  opacity: 1;
  visibility: visible;
  animation: bmFadeIn 0.18s ease-out both;
}

@keyframes bmFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.bm-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.62);
  backdrop-filter: blur(10px);
}

.bm-modal__panel {
  position: relative;
  width: min(760px, 100%);
  border-radius: 18px;
  border: 1px solid rgba(0,229,255,.28);
  background: rgba(11,19,32,.92);
  box-shadow: 0 30px 100px rgba(0,0,0,.75);
  overflow: hidden;
  padding: 16px;
  transform: translateY(10px) scale(.98);
  animation: bmPop 0.20s ease-out both;
  z-index: 2;
  max-height: 85vh;
  overflow-y: auto;
}

@keyframes bmPop {
  from { transform: translateY(16px) scale(.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.bm-modal__x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(234,242,255,.14);
  background: rgba(255,255,255,.03);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all .15s ease;
  font-size: 24px;
  z-index: 3;
}

.bm-modal__x:hover {
  border-color: rgba(0,229,255,.35);
  background: rgba(0,229,255,.08);
  transform: translateY(-1px);
}

.bm-modal__title {
  font-weight: 950;
  letter-spacing: .3px;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-right: 54px;
  color: var(--text);
  margin: 0 0 10px;
}

.bm-modal__title i {
  color: var(--accent);
  filter: drop-shadow(0 0 14px rgba(0,229,255,.22));
}

.bm-modal__lead {
  color: var(--muted);
  line-height: 1.6;
  margin: 10px 0 12px;
  font-size: 14px;
}

.bm-modal__steps {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--text);
}

.bm-modal__steps li {
  border-radius: 14px;
  border: 1px solid rgba(234,242,255,.10);
  background: rgba(255,255,255,.02);
  padding: 10px 12px;
  list-style-position: inside;
}

.bm-modal__steps li b {
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}

.bm-modal__note {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,210,74,.22);
  background: rgba(255,210,74,.06);
  color: var(--muted);
  line-height: 1.5;
  font-size: 13.5px;
}

.bm-modal__note i {
  color: var(--gold);
  margin-right: 6px;
}

.bm-modal__note a {
  color: var(--text);
  border-bottom: 1px dashed rgba(234,242,255,.25);
  text-decoration: none;
}

.bm-modal__note a:hover {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
}

.bm-modal__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: 14px;
}

.bm-modal__actions .btn {
  min-width: 200px;
  justify-content: center;
}

/* Responsive modal styles */
@media (max-width: 600px) {
  .bm-modal__panel {
    width: 95%;
    padding: 15px;
    max-height: 90vh;
  }
  
  .bm-modal__title {
    font-size: 15px;
    padding-right: 45px;
  }
  
  .bm-modal__actions {
    flex-direction: column;
  }
  
  .bm-modal__actions .btn {
    min-width: 100%;
    width: 100%;
  }
}

@media (max-width: 400px) {
  .bm-modal__title {
    font-size: 14px;
  }
  
  .bm-modal__lead {
    font-size: 13px;
  }
  
  .bm-modal__steps li {
    padding: 8px 10px;
    font-size: 13px;
  }
}