.shg-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  padding: 16px;
}

.shg-modal.is-open {
  display: flex;
}

.shg-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.shg-modal-card {
  position: relative;
  width: min(520px, calc(100vw - 32px));
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(18, 18, 18, 0.96);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  direction: rtl;
}

.shg-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid var(--border);
}

.shg-modal-title {
  font-size: 13px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.92);
}

.shg-modal-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shg-modal-actions {
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--border);
}
