/* ═══════════════════════════════════════════════════════════════
   Shared Modal Component
   Usage: <div class="site-modal site-modal--dark" id="...">
            <div class="site-modal__backdrop"></div>
            <div class="site-modal__card">
              <button class="site-modal__close">&times;</button>
              <div class="site-modal__body">...</div>
            </div>
          </div>
   Activate via JS: el.classList.add('site-modal--active')
   ═══════════════════════════════════════════════════════════════ */

/* ── Base Structure ── */
.site-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.site-modal--active {
  display: flex;
}

.site-modal__backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.site-modal__card {
  position: relative;
  z-index: 2;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.site-modal__close {
  position: absolute;
  top: 0;
  right: 0;
  cursor: pointer;
  z-index: 3;
  border: none;
}

.site-modal__body {
  position: relative;
}

/* ── Dark Theme (blur backdrop + dark card + red close) ── */
.site-modal--dark .site-modal__backdrop {
  background: rgba(26, 33, 43, 0.8);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-modal--dark .site-modal__card {
  background: #101a26;
  border-radius: 20px;
  border: 1px solid #293442;
  box-shadow: 0 0 20px 5px #151922de;
}

.site-modal--dark .site-modal__close {
  width: 40px;
  height: 40px;
  background: #ff0037;
  color: #fff;
  font-weight: bold;
  font-size: 20px;
  text-align: center;
  line-height: 40px;
}

.site-modal--dark .site-modal__close:hover {
  background: #b40606;
}

/* ── Light Theme (solid backdrop + white card + text close) ── */
.site-modal--light .site-modal__backdrop {
  background: rgba(0, 0, 0, 0.6);
}

.site-modal--light .site-modal__card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.site-modal--light .site-modal__close {
  top: 15px;
  right: 20px;
  width: auto;
  height: auto;
  background: none;
  font-size: 28px;
  color: #666;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .site-modal__card {
    width: 95%;
  }
}