.njpro_modal_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 999999;
    display: none;
    overflow-y: auto; 
    align-items: flex-start;
    padding-top: 40px;
    padding-bottom: 40px;
    backdrop-filter: blur(5px);
}

.njpro_modal_content {
    max-width: 1100px;
    width: 95%;
    margin: 0 auto;
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 20px;
}

/* Close Button */
.njpro_close_btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 45px;
    line-height: 35px;
    font-weight: 900;
    color: #ef4444;
    cursor: pointer;
    z-index: 10001;
    background: #fff;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: 0.2s;
}
.njpro_close_btn:hover {
    color: #000;
    transform: scale(1.1);
}

.njpro_upload_grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 15px; 
}

.njpro_upload_area { 
    border: 2px dashed #cbd5e1; 
    padding: 25px; 
    border-radius: 15px; 
    text-align: center; 
    cursor: pointer; 
    transition: 0.3s; 
    background: #f8fafc; 
}
.njpro_upload_area:hover { border-color: #f43f5e; background: #fff1f2; }
.njpro_upload_area i { font-size: 32px; margin-bottom: 8px; }
.njpro_upload_area p { margin: 0; font-weight: 800; font-size: 14px; color: #475569; font-family: &#39;Inter&#39;, sans-serif; }

/* Magic Button */
.njpro_magic_btn {
    width: 100%;
    background: linear-gradient(45deg, #4f46e5, #8b5cf6, #ec4899);
    background-size: 200% 200%;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(124, 58, 237, 0.4);
    animation: njpro_gradientAnim 3s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: &#39;Inter&#39;, sans-serif;
    font-size: 14px;
}
.njpro_magic_btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.6);
    filter: brightness(1.1);
}
.njpro_magic_btn:active { transform: translateY(1px); }

@keyframes njpro_gradientAnim {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.njpro_point {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #f43f5e;
    border: 2px solid #fff;
    border-radius: 50%;
    margin-left: -10px;
    margin-top: -10px;
    z-index: 1001;
    touch-action: none;
    cursor: move;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}
.njpro_point:active { background: #059669; transform: scale(1.2); }
#njpro_select_canvas { border-radius: 0px; display: block; max-width: 100%; height: auto; }

.njpro_preset_btn {
    padding: 8px 15px; border: none; border-radius: 8px; font-weight: 700; cursor: pointer; background: #e2e8f0; color: #475569;
}
.njpro_preset_btn.active { background: #f43f5e; color: #fff; }

.njpro_action_btn {
    color: #fff; padding: 12px; border: none; border-radius: 8px; font-weight: 800; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
}

@media (max-width: 768px) {
    .njpro_upload_grid { grid-template-columns: 1fr; }
    .njpro_point { width: 24px; height: 24px; margin-left: -12px; margin-top: -12px; }
    #njpro_title { font-size: 18px; }
    .njpro_modal_content { width: 98%; padding: 15px 5px; margin: 10px auto; }
    #njpro_zoom_glass { width: 100px !important; height: 100px !important; }
    #njpro_zoom_canvas { width: 200px !important; height: 200px !important; } 
    .njpro_close_btn { top: 5px; right: 5px; font-size: 35px; }
}
@media (max-width: 480px) {
    .njpro_actions { grid-template-columns: 1fr !important; }
}
