/* ── PASSPORT PHOTO CROPPER STYLING ── */
.psn-cropper-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 16px;
    box-sizing: border-box;
}

.psn-cropper-dialog {
    background: #ffffff;
    border-radius: 14px;
    max-width: 680px;
    width: 100%;
    max-height: 94vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: psnPopIn 0.2s ease-out;
}

@keyframes psnPopIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.psn-cropper-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
}

.psn-cropper-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.psn-cropper-body {
    padding: 20px;
    overflow-y: auto;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

@media (max-width: 640px) {
    .psn-cropper-body {
        flex-direction: column;
        align-items: center;
    }
}

.psn-cropper-workspace {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.psn-canvas-container {
    width: 100%;
    max-width: 380px;
    height: 380px;
    background: #0f172a;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: grab;
    user-select: none;
    touch-action: none;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.5);
}

.psn-canvas-container:active {
    cursor: grabbing;
}

.psn-canvas-container canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.psn-cropper-controls {
    margin-top: 14px;
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.psn-zoom-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.psn-zoom-row span {
    font-size: 14px;
    color: #475569;
}

.psn-zoom-slider {
    flex: 1;
    cursor: pointer;
    accent-color: #0284c7;
}

.psn-btn-tool {
    padding: 6px 12px;
    border: 1px solid #cbd5e1;
    background: #f1f5f9;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s;
}

.psn-btn-tool:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.psn-cropper-preview-side {
    width: 160px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.psn-preview-frame {
    width: 130px;
    height: 164px;
    border: 2px solid #0284c7;
    border-radius: 4px;
    overflow: hidden;
    background: #e2e8f0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    margin-bottom: 8px;
    position: relative;
}

.psn-preview-frame canvas {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.psn-cropper-footer {
    padding: 14px 20px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    background: #f8fafc;
}

.psn-btn-crop-apply {
    background: #16a34a;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.psn-btn-crop-apply:hover {
    background: #15803d;
}

.psn-btn-crop-cancel {
    background: #94a3b8;
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
}
.psn-btn-crop-cancel:hover {
    background: #64748b;
}
