.panel-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 60;
}

.panel-modal.is-open { display: block; }

.panel-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 18, 0.72);
}

.panel-modal-content {
  position: relative;
  z-index: 1;
  margin: 8vh auto;
  width: min(560px, calc(100% - 24px));
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34);
}

.panel-modal-header {
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.panel-modal-header h2 { margin: 0; font-size: 18px; }

.panel-modal-header button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  border-radius: 8px;
  width: 30px;
  height: 30px;
  cursor: pointer;
}

.panel-modal-body {
  padding: 16px;
  color: var(--muted);
}

.panel-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 16px 16px;
}

.modal-btn {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-soft);
  color: var(--text);
  padding: 10px 14px;
  cursor: pointer;
  font-size: 13px;
}

.modal-btn-ghost {
  color: var(--muted);
}

.modal-btn-danger {
  border-color: #775050;
  background: rgba(130, 72, 72, 0.25);
}

.logout-confirm-message {
  margin: 0;
  line-height: 1.4;
}
