[x-cloak] { display: none !important; }
        
.autoaltai-otp-input:focus {
    box-shadow: 0 0 0 4px rgba(179, 0, 0, 0.1) !important;
    outline: none !important;
    transform: translateY(-2px) !important;
}
/* TOOLTIP LOGIC */
.autoaltai-tooltip-content {
    visibility: hidden; opacity: 0; transition: all 0.2s ease-in-out;
    position: absolute; bottom: 125%; left: 50%; transform: translateX(-50%) translateY(5px);
    width: 240px; background: #1e293b; color: #fff; padding: 12px;
    border-radius: 8px; font-size: 11px; font-weight: 400; line-height: 1.5;
    text-align: center; z-index: 100; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.3);
    pointer-events: none;
}
.autoaltai-tooltip-trigger:hover .autoaltai-tooltip-content { visibility: visible; opacity: 1; transform: translateX(-50%) translateY(0); }
.autoaltai-tooltip-content .tooltip-arrow {
    position: absolute; top: 100%; left: 50%; margin-left: -5px;
    border-width: 5px; border-style: solid; border-color: #1e293b transparent transparent transparent;
}

/* CHECKBOX LOGIC */
.autoaltai-checkbox input {
    padding: 0;
    height: initial;
    width: initial;
    margin-bottom: 0;
    display: none;
    cursor: pointer;
}

.autoaltai-checkbox label {
    position: relative;
    cursor: pointer;
    padding-left: 56px;
}

.autoaltai-checkbox label:before {
    content:'';
    -webkit-appearance: none;
    background-color: #ffffff;
    border: 2px solid #B30000;
    padding: 8px;
    position: absolute;
    left: 20px;
    top: 23px;
    border-radius: 0.25rem;
}

.autoaltai-checkbox input:checked + label:before {
    background-color: #b30000;
}
.autoaltai-checkbox input:checked + label:after {
    content: '';
    display: block;
    position: absolute;
    top: 24px;
    left: 26px;
    width: 7px;
    height: 15px;
    border: solid #ffffff;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.autoaltai-checkbox-apply label:before {
    left: 10px;
    top: 12px;
}

.autoaltai-checkbox-apply input:checked + label:after {
    left: 17px;
    top: 13px;
}

.autoaltai-checkbox-apply label span {
    padding-left: 26px;
}
.autoaltai-checkbox-keyword label {
    padding-left: 36px;
}
.autoaltai-checkbox-keyword label:before {
    left: 0px;
    top: 2px;
}
.autoaltai-checkbox-keyword input:checked + label:after {
    left: 6px;
    top: 3px;
}



.autoaltai-checkbox-woo label:before { border: 2px solid #4d179a; }
.autoaltai-checkbox-woo input:checked + label:before { background-color: #4d179a; }

/* Custom Scrollbar Styling */
.autoaltai-scrollbar-scrollbar::-webkit-scrollbar { width: 6px; }
.autoaltai-scrollbar-scrollbar::-webkit-scrollbar-track { background: #f1f5f9; }
.autoaltai-scrollbar-scrollbar::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
        
/* Range Slider Styling */
input[type=range].autoaltai-range::-webkit-slider-thumb {
    -webkit-appearance: none; height: 18px; width: 18px;
    border-radius: 50%; background: #B30000; cursor: pointer; margin-top: -7px;
    border: 2px solid white; box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
input[type=range].autoaltai-range::-webkit-slider-runnable-track {
    width: 100%; height: 4px; cursor: pointer; background: #e2e8f0; border-radius: 2px;
}

/* Hide number input arrows for clean look */
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button {
    -webkit-appearance: none; margin: 0;
}

/* Error Log Styling */
.autoaltai-error-log a {color: #B30000; text-decoration: underline;}

/* PROGRESS BAR ANIMATION */
.autoaltai-progress-bar-fill {
    transition: width 0.4s ease-out;
    background: linear-gradient(90deg, #B30000 0%, #8a0000 100%);
}
.autoaltai-progress-bar-track {
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
}

/* THREE-STATE TOGGLE */
.autoaltai-tri-state-track {
    display: inline-flex;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 3px;
    gap: 2px;
    border: 1px solid #e2e8f0;
}
.autoaltai-tri-state-btn {
    padding: 5px 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    line-height: 1.2;
    white-space: nowrap;
}
.autoaltai-tri-state-btn.active-generate {
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.3);
}
.autoaltai-tri-state-btn.active-keep {
    background: #475569;
    color: white;
    box-shadow: 0 2px 6px rgba(71, 85, 105, 0.3);
}
.autoaltai-tri-state-btn.active-clear {
    background: linear-gradient(135deg, #B30000, #8a0000);
    color: white;
    box-shadow: 0 2px 6px rgba(179, 0, 0, 0.3);
}
.autoaltai-tri-state-btn:not([class*="active-"]) {
    color: #94a3b8;
}
.autoaltai-tri-state-btn:not([class*="active-"]):hover {
    background: #e2e8f0;
    color: #475569;
}

.autoaltai-no-credits-hint {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1px dashed #86efac;
}

.autoaltai-all-keep-hint {
    background: linear-gradient(135deg, #fff5f5 0%, #ffeaea 100%);
    border: 1px dashed #fca5a5;
}

#adminmenu li.menu-top a.toplevel_page_autoaltai .wp-menu-image.dashicons-before img{ max-width: 18px; margin: 0 auto; }