/* cropper.css — חלון חיתוך תמונת פרופיל */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9997;
  padding: 20px;
}

.modal-overlay[hidden] { display: none !important; }

.modal-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  max-width: 360px;
  width: 100%;
  position: relative;
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 12px;
  left: 12px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
}

.modal-close:hover { color: var(--text); }

.modal-box h2 {
  font-family: var(--font-head);
  font-size: 17px;
  margin: 4px 0 14px;
}

.crop-viewport {
  width: 260px;
  height: 260px;
  margin: 0 auto 16px;
  position: relative;
  overflow: hidden;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--gold-dim);
  touch-action: none;
  cursor: grab;
}

.crop-viewport:active { cursor: grabbing; }

#cropImage {
  position: absolute;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none; /* הגרירה נתפסת ע"י ה-viewport, לא ע"י התמונה עצמה */
}

.crop-controls {
  max-width: 260px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.crop-controls input[type="range"] { flex: 1; }
.crop-controls span { font-size: 16px; }
