/* ============================================
   PHOTO CROPPER MODAL
   Shared by profile.html (change photo) and complete-profile.html
   (upload photo). Injected dynamically by js/photo-cropper.js.
   ============================================ */

.crop-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(13, 13, 13, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 2000;
  animation: cropFadeIn 0.15s ease;
}

.crop-modal-backdrop.hidden {
  display: none;
}

@keyframes cropFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.crop-modal {
  width: min(360px, 100%);
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-md);
  animation: cropPopIn 0.18s ease;
}

@keyframes cropPopIn {
  from { opacity: 0; transform: scale(0.95) translateY(6px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.crop-modal h3 {
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  color: var(--color-text-dark);
}

.crop-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #111;
  touch-action: none;
  cursor: grab;
}

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

.crop-canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

.crop-circle-mask {
  position: absolute;
  top: 6%;
  left: 6%;
  right: 6%;
  bottom: 6%;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.crop-zoom-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 20px;
  color: var(--color-text-gray);
}

.crop-zoom-icon {
  flex-shrink: 0;
}

.crop-zoom-slider {
  flex: 1;
  accent-color: var(--color-gold);
}

.crop-actions {
  display: flex;
  gap: 10px;
}

.crop-actions .btn {
  flex: 1;
}
