.c-partner {
  padding: 0 15px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  /* Элемэнтүүдийг багтахгүй үед шинэ мөр рүү шилжүүлнэ */
  gap: 40px;
  justify-content: center;
}

.c-partner img {
  height: 106px;
}

/* ── Avatar дэлгэц (2:3) ── */
.avatar-wrapper {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.avatar-wrapper img {
  width: 180px;
  height: 240px;
  border-radius: 6px;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .18);
  display: block;
}

.avatar-hover {
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: rgba(0, 0, 0, .45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s;
  gap: 4px;
}

.avatar-hover span {
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .5px;
}

.avatar-wrapper:hover .avatar-hover {
  opacity: 1;
}

/* ── Modal ── */
#cropModal .modal-content {
  background: #1a1a2e;
  border: none;
  border-radius: 16px;
  overflow: hidden;
}

#cropModal .modal-header {
  background: #16213e;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  padding: 14px 20px;
}

/* ── Crop Stage ── */
#cropStage {
  position: relative;
  width: 100%;
  height: 400px;
  background: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  user-select: none;
}

#cropStage.dragging {
  cursor: grabbing;
}

#srcImg {
  position: absolute;
  transform-origin: center center;
  pointer-events: none;
  -webkit-user-drag: none;
  will-change: transform;
  max-width: none;
}

/* 2:3 crop overlay — box-shadow аргаар гадна харанхуй */
#cropOverlay {
  position: absolute;
  width: 200px;
  height: 300px;
  border-radius: 4px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.62);
  border: 2px dashed rgba(255, 255, 255, 0.75);
  pointer-events: none;
  z-index: 10;
}

/* Бүдэг avatar guide — одоогийн зураг 2:3 хэлбэрээр */
#avatarGuide {
  position: absolute;
  width: 200px;
  height: 300px;
  border-radius: 4px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0.7;
  pointer-events: none;
  z-index: 9;
}

/* ── Controls ── */
.crop-controls {
  background: #16213e;
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.ctrl-label {
  color: #8892b0;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .8px;
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

#zoomSlider {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(to right, #e94560 0%, #e94560 var(--pct, 50%), rgba(255, 255, 255, .2) var(--pct, 50%));
  outline: none;
  cursor: pointer;
}

#zoomSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e94560;
  box-shadow: 0 0 6px rgba(233, 69, 96, .5);
  cursor: grab;
}

#zoomSlider::-webkit-slider-thumb:active {
  cursor: grabbing;
}

#zoomVal {
  min-width: 40px;
  text-align: right;
  color: #e94560;
  font-size: 13px;
  font-weight: 700;
}

.btn-save {
  background: linear-gradient(135deg, #e94560, #c0392b);
  border: none;
  font-weight: 600;
  letter-spacing: .4px;
}

.btn-save:hover {
  opacity: .88;
}

#outputCanvas {
  display: none;
}

.modal {
  z-index: 9999;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.message-box p {
  margin-bottom: 0 !important;
  font-size: 16px;
  font-weight: 400;
}

.message-box br {
  margin-bottom: 12px !important;
}

.message-box {
  padding: 12px 28px !important;
  border-radius: 12px;
}

.message-box ul {
  padding-left: 20px;
}

.message-box ul li {
  list-style: disc;
}

.message-box h1,
.message-box h2,
.message-box h3,
.message-box h4 {
  color: #927238 !important;
}