.wp-bg-remover-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.wp-bg-remover-container * {
    box-sizing: border-box;
}

.wbg-step {
    text-align: center;
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    border: 1px solid #eaeaea;
}

.wbg-step h2 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
}

.wbg-step p {
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
}

/* Dropzone */
.wbg-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 60px 20px;
    background-color: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.wbg-dropzone:hover, .wbg-dropzone.dragover {
    border-color: #3b82f6;
    background-color: #eff6ff;
}

.wbg-dropzone:focus-visible {
    outline: 3px solid #3b82f6;
    outline-offset: 2px;
}

.wbg-upload-icon {
    color: #64748b;
    margin-bottom: 20px;
}

.wbg-dropzone:hover .wbg-upload-icon, .wbg-dropzone.dragover .wbg-upload-icon {
    color: #3b82f6;
}

.wbg-upload-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.wbg-drag-text {
    color: #64748b;
    font-size: 14px;
}

/* Buttons */
.wbg-btn-primary {
    background-color: #A8F028;
    color: #111827;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 4px 6px -1px rgba(168, 240, 40, 0.4);
}

.wbg-btn-primary:hover {
    background-color: #92d421;
    box-shadow: 0 6px 12px -2px rgba(168, 240, 40, 0.5);
}

.wbg-btn-primary:active {
    transform: scale(0.98);
}

.wbg-btn-primary.wbg-btn-large {
    padding: 16px 32px;
    font-size: 18px;
    box-shadow: 0 8px 16px rgba(168, 240, 40, 0.4);
}

.wbg-pricing-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    flex: 1;
    text-align: center;
    transition: transform 0.2s, border-color 0.2s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.wbg-pricing-card:hover {
    transform: translateY(-4px);
    border-color: #A8F028;
}

.wbg-pricing-card h3 {
    margin-top: 0;
    font-size: 20px;
    color: #111827;
    margin-bottom: 8px;
}

.wbg-pricing-price {
    font-size: 36px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 24px;
}

.wbg-pricing-btn {
    width: 100%;
    margin-top: 16px;
}

.wbg-btn-secondary {
    background-color: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wbg-btn-secondary:hover {
    background-color: #e2e8f0;
}

.wbg-error-message {
    margin-top: 20px;
    padding: 12px 16px;
    background-color: #fef2f2;
    border: 1px solid #f87171;
    color: #b91c1c;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

/* Processing */
.wbg-processing-card {
    max-width: 400px;
    margin: 0 auto;
}

.wbg-preview-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    background-color: #f1f5f9;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.wbg-preview-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.7;
    filter: blur(2px);
    transition: all 0.3s;
}

.wbg-scanner-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, transparent, #3b82f6, transparent);
    box-shadow: 0 0 10px #3b82f6, 0 0 20px #3b82f6;
    animation: wbg-scan 2s ease-in-out infinite;
    z-index: 10;
}

@keyframes wbg-scan {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.wbg-progress-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    text-align: left;
}

.wbg-progress-list li {
    font-size: 14px;
    margin-bottom: 12px;
    color: #94a3b8;
    transition: color 0.3s;
}

.wbg-status-done {
    color: #10b981 !important;
    font-weight: 500;
}

.wbg-status-active {
    color: #2563eb !important;
    font-weight: 600;
}

.wbg-status-pending {
    color: #94a3b8;
}

/* Result */
.wbg-result-container {
    margin: 30px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    aspect-ratio: 4/3;
    max-height: 500px;
    background-color: #f8fafc;
}

.wbg-comparison-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.wbg-checkerboard-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(45deg, #e5e5e5 25%, transparent 25%), 
                      linear-gradient(-45deg, #e5e5e5 25%, transparent 25%), 
                      linear-gradient(45deg, transparent 75%, #e5e5e5 75%), 
                      linear-gradient(-45deg, transparent 75%, #e5e5e5 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    background-color: #f5f5f5;
    z-index: 1;
}

.wbg-img-after, .wbg-img-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.wbg-img-after {
    z-index: 2;
}

.wbg-img-before-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%; /* Initial split */
    height: 100%;
    overflow: hidden;
    z-index: 3;
    border-right: 2px solid white;
    background-color: #ffffff;
}

.wbg-img-before {
    width: 100vw; /* Reset width so it doesn't squish */
    max-width: none;
    /* We'll handle exact sizing via JS */
}

.wbg-slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transform: translate(-50%, -50%);
    top: 50%;
    z-index: 4;
    cursor: ew-resize;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.wbg-slider-arrow {
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

.wbg-slider-arrow-left {
    border-right: 6px solid #64748b;
}

.wbg-slider-arrow-right {
    border-left: 6px solid #64748b;
}

.wbg-slider-handle:focus-visible {
    outline: 3px solid #3b82f6;
}

.wbg-label-before, .wbg-label-after {
    position: absolute;
    bottom: 16px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 4;
    pointer-events: none;
}

.wbg-label-before { left: 16px; }
.wbg-label-after { right: 16px; }

.wbg-result-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    margin-top: 30px;
}

.wbg-privacy-notice {
    margin-top: 30px !important;
    font-size: 13px !important;
    color: #94a3b8 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0 !important;
}

/* Responsive */
@media (min-width: 640px) {
    .wbg-result-actions {
        flex-direction: row;
        justify-content: center;
    }
}
