.crop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    touch-action: none;
}

.crop-box {
    position: absolute;
    border: 2px solid #00D4FF;
    background: transparent;
    cursor: move;
    box-shadow: 
        0 0 0 9999px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(0, 212, 255, 0.5),
        inset 0 0 20px rgba(0, 212, 255, 0.1);
    touch-action: none;
    animation: cropPulse 2s ease-in-out infinite;
}

@keyframes cropPulse {
    0%, 100% { box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 212, 255, 0.5), inset 0 0 20px rgba(0, 212, 255, 0.1); }
    50% { box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 212, 255, 0.7), inset 0 0 30px rgba(0, 212, 255, 0.2); }
}

.crop-box::before,
.crop-box::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.8), transparent);
}

.crop-box::before {
    top: 33.33%;
}

.crop-box::after {
    top: 66.66%;
}

.crop-box .grid-v1,
.crop-box .grid-v2 {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(0, 212, 255, 0.8), transparent);
}

.crop-box .grid-v1 {
    left: 33.33%;
}

.crop-box .grid-v2 {
    left: 66.66%;
}

.crop-handles {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
}

.crop-handle {
    position: absolute;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #00D4FF 0%, #00FF88 100%);
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
    transition: all 0.2s ease;
}

.crop-handle:hover {
    transform: scale(1.2);
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.8);
}

.crop-handle.nw { top: 0; left: 0; cursor: nw-resize; }
.crop-handle.ne { top: 0; right: 0; cursor: ne-resize; }
.crop-handle.sw { bottom: 0; left: 0; cursor: sw-resize; }
.crop-handle.se { bottom: 0; right: 0; cursor: se-resize; }
.crop-handle.n { top: 0; left: 50%; transform: translateX(-50%); cursor: n-resize; }
.crop-handle.s { bottom: 0; left: 50%; transform: translateX(-50%); cursor: s-resize; }
.crop-handle.w { top: 50%; left: 0; transform: translateY(-50%); cursor: w-resize; }
.crop-handle.e { top: 50%; right: 0; transform: translateY(-50%); cursor: e-resize; }

.crop-handle.n:hover, .crop-handle.s:hover { transform: translateX(-50%) scale(1.2); }
.crop-handle.w:hover, .crop-handle.e:hover { transform: translateY(-50%) scale(1.2); }
