.app-gate-modal {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: none;
}

.app-gate-modal.is-open {
  display: block;
}

.app-gate-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 23, 0.62);
  backdrop-filter: blur(2px);
}

.app-gate-modal__dialog {
  position: relative;
  width: min(940px, 94vw);
  max-height: 88vh;
  margin: 4vh auto 0;
  background: var(--c-white);
  border: 1px solid var(--c-gray-200);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
  overflow: auto;
  padding: 16px;
}

.app-gate-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.app-gate-modal__title {
  font-size: 20px;
  color: var(--c-slate);
  margin: 0;
}

.app-gate-modal__desc {
  color: var(--c-gray-700);
  margin: 6px 0 0;
}

.app-gate-modal__close {
  border: 1px solid var(--c-gray-300);
  background: var(--c-white);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--c-slate);
}

.app-gate-modal__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.app-gate-modal__shot {
  background: #f8fafc;
  border: 1px solid var(--c-gray-200);
  border-radius: 12px;
  overflow: hidden;
}

.app-gate-modal__shot img {
  width: 100%;
  height: auto;
  display: block;
}

.app-gate-modal__shot figcaption {
  padding: 8px 10px;
  font-size: 12px;
  color: var(--c-gray-600);
}

.app-gate-modal__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.app-gate-modal__ok {
  border: 0;
  border-radius: 10px;
  background: var(--c-emerald);
  color: var(--c-white);
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}

body.dark-mode .app-gate-modal__dialog {
  background: var(--c-dark-surface);
  border-color: var(--ov-white-10);
}

body.dark-mode .app-gate-modal__title {
  color: var(--c-dark-text);
}

body.dark-mode .app-gate-modal__desc,
body.dark-mode .app-gate-modal__shot figcaption {
  color: var(--c-dark-text-soft);
}

body.dark-mode .app-gate-modal__shot {
  background: var(--c-dark-elevated);
  border-color: var(--ov-white-12);
}

body.dark-mode .app-gate-modal__close {
  background: var(--c-dark-elevated);
  border-color: var(--ov-white-12);
  color: var(--c-dark-text);
}

@media (max-width: 900px) {
  .app-gate-modal__grid {
    grid-template-columns: 1fr;
  }
}
