/* Modals + auth */
.modalOverlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(1, 10, 15, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modalOverlay[hidden] { display: none; }
.modal {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: var(--color-support-1);
  border: 1px solid var(--color-secondary-3);
  border-radius: var(--radius);
  padding: 24px;
}
.modal--wide { max-width: 720px; min-height: 400px; }
.modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--color-support-2);
  font-size: 22px;
  line-height: 1;
}
.modal__close:hover { background: var(--color-secondary-3); color: var(--color-white); }
.modal__title { margin: 0 0 16px; font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.4px; color: var(--color-white); }

.authTabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--color-secondary-3);
  border-radius: 8px;
  margin-bottom: 16px;
}
.authTabs__tab {
  flex: 1;
  padding: 8px;
  border: 0;
  background: transparent;
  color: var(--color-support-2);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-radius: 6px;
}
.authTabs__tab--active { background: var(--color-support-1); color: var(--color-white); }
.authForm { display: grid; gap: 4px; }
.authForm[hidden] { display: none; }
.formError {
  color: var(--color-red);
  font-size: 12px;
  margin: 8px 0 0;
}
.formHint {
  color: var(--color-support-2);
  font-size: 11px;
  margin: 8px 0 0;
}

/* Hidden tabs/bars must actually disappear (their base rules use flex). */
.authTabs__tab[hidden],
.tabsBar[hidden] { display: none; }

/* ---------- guest gate ---------- */
.authGate {
  display: flex;
  justify-content: center;
  padding: 56px 16px;
}
.authGate__card {
  width: 100%;
  max-width: 440px;
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
  padding: 36px 24px;
  background: var(--color-support-1);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius);
}
.authGate__icon { font-size: 32px; line-height: 1; }
.authGate__title { font-size: 18px; font-weight: 800; color: var(--color-white); }
.authGate__text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-support-2);
  max-width: 340px;
}
.authGate__btn { margin-top: 10px; }
