.avcrop-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.82);
  box-sizing: border-box;
}

.avcrop-modal[hidden] {
  display: none;
}

.avcrop-dialog {
  width: min(100%, 420px);
  padding: 20px 20px 18px;
  border: 1px solid #424242;
  border-radius: 12px;
  background: #0a0a0a;
  color: #bebebe;
  box-sizing: border-box;
}

.avcrop-dialog__title {
  margin: 0 0 6px;
  font-family: 'Exo 2', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.avcrop-dialog__hint {
  margin: 0 0 16px;
  font-size: 12px;
  line-height: 1.45;
  color: #424242;
}

.avcrop-stage {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.avcrop-viewport {
  position: relative;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  overflow: hidden;
  background: #111;
  border: 2px solid #424242;
  cursor: grab;
  touch-action: none;
}

.avcrop-viewport.is-dragging {
  cursor: grabbing;
}

.avcrop-viewport canvas {
  display: block;
  width: 280px;
  height: 280px;
}

.avcrop-zoom {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.avcrop-zoom label {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #424242;
}

.avcrop-zoom input[type='range'] {
  flex: 1;
  accent-color: #02b122;
}

.avcrop-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.avcrop-btn {
  min-height: 36px;
  padding: 0 16px;
  border-radius: 6px;
  border: 1px solid #424242;
  background: transparent;
  color: #bebebe;
  font-family: 'Exo 2', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.avcrop-btn:hover {
  border-color: #666;
}

.avcrop-btn--primary {
  border-color: #02b122;
  background: #02b122;
  color: #000;
}

.avcrop-btn--primary:hover {
  filter: brightness(1.08);
}
