.vsync-soft-wrapper {
    --neo-border: 3px solid #111111;
    --neo-shadow: 5px 5px 0px #111111;
    
    --bg-main: #f8f9fa;
    --bg-card: #ffffff;
    --clr-indigo: #4361ee;
    --clr-green: #4cc9f0;
    --clr-neon: #f72585;
    --clr-yellow: #fdf0d5;

    max-width: 650px;
    margin: 0 auto;
    font-family: system-ui, -apple-system, sans-serif;
    color: #111;
    background: var(--bg-main);
    padding: 25px;
    border: var(--neo-border);
    border-radius: 16px;
    box-shadow: var(--neo-shadow);
}
.vsync-soft-wrapper * { box-sizing: border-box; }

.vsync-soft-header {
    background: var(--clr-indigo); color: #fff; padding: 20px;
    border: var(--neo-border); border-radius: 12px;
    text-align: center; margin-bottom: 25px; box-shadow: var(--neo-shadow);
}
.vsync-soft-header h2 { margin: 0 0 10px 0; font-size: 1.8rem; font-weight: 900; text-transform: uppercase;}
.vsync-soft-header p { margin: 0; font-weight: 700; font-size: 0.95rem; }

.vsync-body {
    background: var(--bg-card); padding: 25px;
    border: var(--neo-border); border-radius: 12px;
    box-shadow: var(--neo-shadow);
}

.vsync-group { margin-bottom: 20px; }
.vsync-label { font-weight: 900; font-size: 1rem; margin-bottom: 10px; display: block; }

/* Khung Upload */
.vsync-upload-box {
    background: var(--clr-green); border: 2px dashed #111; border-radius: 12px;
    padding: 25px; text-align: center; cursor: pointer; transition: 0.2s;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
}
.vsync-upload-box:hover { filter: brightness(0.95); }
.vsync-icon { font-size: 2.5rem; }
.vsync-filename { font-weight: 800; font-size: 1rem; word-break: break-all; color: #111; }

/* Box Nhập Độ Lệch */
.vsync-offset-box {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    margin-bottom: 15px; flex-wrap: wrap;
}
.vsync-tag { font-weight: 800; font-size: 0.85rem; padding: 8px 12px; border-radius: 8px; border: 2px solid #111; box-shadow: 2px 2px 0px #111;}
.tag-negative { background: var(--clr-neon); color: #fff; }
.tag-positive { background: var(--clr-yellow); color: #111; }
.vsync-input {
    flex: 1; padding: 12px; font-family: monospace; font-size: 1.5rem; font-weight: 900;
    border: 2px solid #111; border-radius: 8px; text-align: center; outline: none; box-shadow: inset 3px 3px 0px rgba(0,0,0,0.05); min-width: 100px;
}

/* Slider */
.vsync-timeline-wrapper {
    background: #f1f3f5; border: 2px solid #111; border-radius: 12px; padding: 15px; margin-bottom: 15px;
}
.vsync-slider {
    -webkit-appearance: none; width: 100%; height: 12px; background: #ddd;
    border: 2px solid #111; border-radius: 20px; outline: none;
}
.vsync-slider::-webkit-slider-thumb {
    -webkit-appearance: none; width: 25px; height: 25px; border-radius: 50%;
    background: var(--clr-indigo); border: 2px solid #fff; cursor: pointer; box-shadow: 2px 2px 0px #111;
}

/* Preview Box */
.vsync-preview-box { background: #f8f9fa; border: 2px dashed #111; padding: 15px; border-radius: 12px; }
.vsync-hint-text { font-size: 0.85rem; font-weight: 600; color: #333; margin: 0 0 10px 0;}
.vsync-btn-preview {
    width: 100%; padding: 12px; font-family: inherit; font-size: 1rem; font-weight: 800;
    background: #fff; border: 2px solid #111; border-radius: 8px; cursor: pointer;
    box-shadow: 3px 3px 0px #111; transition: 0.1s; color: #111;
}
.vsync-btn-preview:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: 0px 0px 0px #111; }

/* Nút Submit */
.vsync-btn-primary {
    width: 100%; padding: 18px; font-family: inherit; font-size: 1.15rem; font-weight: 900; text-transform: uppercase;
    background: var(--clr-indigo); color: #fff; border: var(--neo-border); border-radius: 12px; cursor: pointer;
    box-shadow: var(--neo-shadow); transition: 0.15s; margin-top: 10px;
}
.vsync-btn-primary:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: 0px 0px 0px #111; }
.vsync-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; filter: grayscale(1); box-shadow: none; transform: none; background: #ccc;}

/* Khung Progress */
.vsync-status-box { margin-top: 25px; padding: 20px; background: #fff; border: var(--neo-border); border-radius: 12px; text-align: center; box-shadow: 3px 3px 0px #111; }
.vsync-status-box h4 { margin: 0 0 10px 0; font-size: 1.05rem; font-weight: 900; }
.vsync-progress-bar { width: 100%; height: 24px; background: #eee; border: 2px solid #111; border-radius: 50px; overflow: hidden; }
.vsync-progress-fill { width: 0%; height: 100%; background: var(--clr-neon); transition: width 0.2s ease; border-right: 2px solid #111;}