/* Telegram-style circular avatar cropper */
#profilePictureCropperModal .modal-dialog {
    max-width: 520px;
}

#profilePictureCropperModal .modal-content {
    border: 0;
    border-radius: 16px;
    overflow: hidden;
}

#profilePictureCropperModal .modal-header {
    border-bottom: 0;
    padding: 1rem 1.25rem 0.5rem;
}

#profilePictureCropperModal .modal-title {
    font-size: 1.05rem;
    font-weight: 600;
}

#profilePictureCropperModal .modal-body {
    padding: 0.75rem 1.25rem 1rem;
}

.ppc-stage {
    position: relative;
    height: 360px;
    background: #0f1419;
    border-radius: 12px;
    overflow: hidden;
}

.ppc-stage img {
    display: block;
    max-width: 100%;
}

/* Circular crop viewport (Telegram feel) */
.ppc-stage .cropper-view-box,
.ppc-stage .cropper-face {
    border-radius: 50%;
}

.ppc-stage .cropper-view-box {
    outline: 2px solid rgba(255, 255, 255, 0.95);
    outline-offset: 0;
}

.ppc-stage .cropper-dashed,
.ppc-stage .cropper-center,
.ppc-stage .cropper-line,
.ppc-stage .cropper-point {
    display: none !important;
}

.ppc-tools {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.ppc-tools button {
    flex: 1;
    border: 0;
    border-radius: 10px;
    padding: 10px 0;
    background: #eef1f6;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.ppc-tools button:hover {
    background: #e0e5ee;
}

.ppc-hint {
    margin: 10px 0 0;
    font-size: 13px;
    color: #64748b;
    text-align: center;
}

.ppc-preview-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
    display: none;
}

img.ppc-preview-circle[src]:not([src=""]) {
    display: inline-block;
}

.ppc-file-status {
    direction: rtl;
}

.ppc-file-status .fa {
    margin-left: 4px;
}

/* Native "No file selected" stays wrong after JS assign — status text is source of truth */
input.js-avatar-crop.ppc-has-file {
    border-color: #28a745;
}
