.oz-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(14, 14, 14, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
    box-sizing: border-box;
    animation: ozFadeIn 0.25s ease-out;
}

@keyframes ozFadeIn {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

.oz-modal-box {
    background: #141618;
    border: 1px solid #2A2E33;
    border-radius: 18px;
    width: 100%;
    max-width: 820px;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.oz-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 28px;
    border-bottom: 1px solid #23262B;
    background: #101214;
}

.oz-modal-title-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.oz-badge-ai {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #C9CCD1;
    text-transform: uppercase;
}

.oz-modal-title {
    font-size: 19px;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0;
    letter-spacing: 0.3px;
}

.oz-btn-close {
    background: transparent;
    border: none;
    color: #8E95A0;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: color 0.15s;
}

.oz-btn-close:hover {
    color: #FFFFFF;
}

.oz-modal-body {
    padding: 28px;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #141618;
}

.oz-progress-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    width: 100%;
}

.oz-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #2A2E33;
    border-top: 3px solid #FFFFFF;
    border-radius: 50%;
    animation: ozSpin 0.9s linear infinite;
    margin-bottom: 24px;
}

@keyframes ozSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.oz-spinner-sm {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: ozSpin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

.oz-progress-text {
    font-size: 17px;
    color: #FFFFFF;
    font-weight: 500;
    margin-bottom: 16px;
}

.oz-progress-bar-wrap {
    width: 100%;
    max-width: 440px;
    height: 6px;
    background: #23262B;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 14px;
}

.oz-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #8E95A0, #FFFFFF);
    transition: width 0.3s ease;
}

.oz-progress-sub {
    font-size: 13px;
    color: #7E8490;
    max-width: 440px;
    margin: 0;
    line-height: 1.5;
}

.oz-preview-panel {
    width: 100%;
}

.oz-split-container {
    position: relative;
    width: 100%;
    height: 380px;
    background: #0E0E0E;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #2A2E33;
    user-select: none;
    -webkit-user-select: none;
}

.oz-split-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.oz-split-layer img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.oz-layer-orig {
    z-index: 1;
    background: #141618;
}

.oz-layer-clean {
    z-index: 2;
}

.oz-clean-canvas-wrap {
    width: 100%;
    height: 100%;
    background: #FFFFFF;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.oz-luxury-shadow {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 42%;
    height: 14px;
    background: radial-gradient(ellipse at center, rgba(30, 32, 36, 0.45) 0%, rgba(30, 32, 36, 0) 70%);
    pointer-events: none;
}

.oz-split-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #FFFFFF;
    z-index: 10;
    cursor: ew-resize;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
}

.oz-split-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #FFFFFF;
    color: #0E0E0E;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    border: 2px solid #0E0E0E;
}

.oz-view-tag {
    position: absolute;
    top: 14px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 6px;
    pointer-events: none;
    z-index: 5;
}

.tag-left {
    left: 14px;
    background: rgba(14, 14, 14, 0.75);
    color: #8E95A0;
    border: 1px solid #2A2E33;
}

.tag-right {
    right: 14px;
    background: rgba(255, 255, 255, 0.95);
    color: #0E0E0E;
}

.oz-studio-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #23262B;
}

.oz-control-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.oz-ctrl-label {
    font-size: 13px;
    color: #8E95A0;
    font-weight: 500;
}

.oz-color-pills {
    display: flex;
    gap: 8px;
}

.oz-color-pill {
    background: #1C1F23;
    border: 1px solid #2A2E33;
    color: #C9CCD1;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s;
}

.oz-color-pill:hover,
.oz-color-pill.active {
    background: #252930;
    border-color: #FFFFFF;
    color: #FFFFFF;
}

.color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.checker-dot {
    background: repeating-conic-gradient(#aaa 0% 25%, #fff 0% 50%) 50% / 6px 6px;
    border: 1px solid #666;
}

.oz-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #C9CCD1;
    font-size: 13px;
    cursor: pointer;
}

.oz-checkbox-label input[type="checkbox"] {
    accent-color: #FFFFFF;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.oz-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 18px 28px;
    border-top: 1px solid #23262B;
    background: #101214;
}

.oz-btn {
    padding: 10px 22px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    border: none;
}

.oz-btn-secondary {
    background: #1C1F23;
    color: #8E95A0;
    border: 1px solid #2A2E33;
}

.oz-btn-secondary:hover {
    background: #252930;
    color: #FFFFFF;
}

.oz-btn-primary {
    background: #FFFFFF;
    color: #0E0E0E;
}

.oz-btn-primary:hover:not(:disabled) {
    background: #E5E7EB;
    transform: translateY(-1px);
}

.oz-btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.oz-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #16181A;
    border: 1px solid #2A2E33;
    color: #FFFFFF;
    padding: 14px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    z-index: 100000;
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.25s ease;
}

.oz-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.oz-toast-success {
    border-left: 4px solid #10B981;
}

.oz-toast-info {
    border-left: 4px solid #C9CCD1;
}
