.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal[hidden] {
  display: none;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 3, 10, 0.8);
  backdrop-filter: blur(6px);
  animation: fade-up 0.25s ease both;
}

.modal__panel {
  position: relative;
  z-index: 1;
  max-width: 480px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 36px 32px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  animation: fade-up 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--color-text-muted);
  border-radius: 50%;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.modal__close:hover {
  color: #fff;
  background: var(--color-surface-alt);
}

.modal__title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 16px;
  padding-right: 24px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.modal__panel p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--color-text-muted);
}

.modal__panel p + p {
  margin-top: 14px;
}
