/* ===== MODAL OVERLAY ===== */

#avatarCropModal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  justify-content: center;
  align-items: center;
  z-index: 10000;
  pointer-events: auto;
}

/* ===== MODAL BOX ===== */

#avatarCropBox {
  background: #0b1222;
  padding: 16px;
  border-radius: 12px;
  width: 320px;
  max-height: 85vh;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  display: flex;
  flex-direction: column;
}

/* ===== CLOSE BUTTON ===== */

#avatarCropClose {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 99999;
  background: #0b1222;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 16px;
  color: #fff;
  cursor: pointer;
}

/* ===== IMAGE PREVIEW ===== */

#cropImage {
  max-width: 100%;
  max-height: 55vh;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  margin: auto;
}

/* ===== CONFIRM BUTTON ===== */

#cropConfirm {
  margin-top: 12px;
  width: 100%;
  padding: 8px;
  border-radius: 8px;
  background: #22d3ee;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

/* ===== CROPPER FIXES (CENTRADO REAL) ===== */

#avatarCropBox .cropper-container {
  max-width: 100% !important;
  max-height: 60vh !important;
  margin: 0 auto !important;
}

#avatarCropBox .cropper-wrap-box,
#avatarCropBox .cropper-canvas {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}




.id-avatar-upload-box:hover .id-avatar-preview {
  transform: scale(1.12);
}

.avatar-edit-btn {
  background: transparent;
  border: none;
  color: #7dd3fc;
  font-size: 12px;
  cursor: pointer;
}



/* Lightbox base (si ya lo tenés, dejá lo tuyo y sumá esto) */
.media-lightbox[aria-hidden="true"] { display:none; }
.media-lightbox[aria-hidden="false"] { display:flex; }

.media-lightbox .mlb-inner{
  position:relative;
}

/* Botón de acción */
.mlb-action{
  position:absolute;
  top:10px;
  left:10px;
  z-index:2;
  border:1px solid rgba(255,255,255,.2);
  background:rgba(10,18,34,.85);
  color:#fff;
  padding:6px 10px;
  border-radius:10px;
  cursor:pointer;
  font-weight:600;
}

/* Zoom */
.mlb-img{
  transform-origin:center center;
  cursor:grab;
  user-select:none;
  -webkit-user-drag:none;
}
.mlb-img:active{ cursor:grabbing; }

