/* ========================================
   OMINEO.COM DARK THEME
   Ciemny motyw konfiguratora dla omineo.com
   Ładowany warunkowo na omineo.com (head-assets.php)

   Paleta kolorów:
   - Primary: #E8054C (różowy/magenta)
   - Secondary: #E8A905 (złoty)
   - Background: #1a1a1a / #2a2a2a
   - Text: #ffffff / #b0b0b0
   - Font: Poppins
   ======================================== */

/* ===== ANIMATIONS (ensure keyframes exist) ===== */
@keyframes skeleton-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

/* Loader spinner — white on dark for visibility */
.configurator-neon .loading-spinner,
.configurator-neon .skeleton-loader > div:first-child,
.configurator-neon div[style*="border: 4px solid rgba(255"] {
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.configurator-neon .loading-spinner-animated,
.configurator-neon .skeleton-loader > div:last-child,
.configurator-neon div[style*="border-top-color: #0570e2"] {
    border-color: transparent !important;
    border-top-color: #ffffff !important;
}

/* ===== CSS VARIABLES OVERRIDE ===== */
:root {
    --primary-color: #E8054C;
    --primary-hover: #cc0443;
    --secondary-color: #E8A905;
    --success-color: #5cb85c;
    --danger-color: #dc3545;
    --warning-color: #E8A905;
    --info-color: #E8054C;

    --bg-primary: #1a1a1a;
    --bg-secondary: #2a2a2a;
    --bg-dark: #111111;
    --bg-overlay: rgba(0, 0, 0, 0.85);

    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-light: #ffffff;
    --text-muted: #888888;

    --border-color: #404040;
    --border-light: #333333;
    --border-dark: #555555;

    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.3);
    --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 10px 20px rgba(232, 5, 76, 0.2);

    --price-color: #E8A905;
    --slider-track: #404040;
    --slider-handle: #E8054C;
    --slider-range: #E8054C;
}

/* ===== GLOBAL ===== */
.configurator-neon,
.configurator-neon * {
    font-family: 'Poppins', sans-serif;
}

/* ===== LAYOUT FIX: nadpisz stary CSS omineo który odwracał kontenery ===== */
.configurator-neon .left-container {
    order: unset !important;
}

.configurator-neon .right-container {
    order: unset !important;
}

/* ===== RIGHT CONTAINER (wizard panel) ===== */
.configurator-neon .right-container,
.configurator-neon #right-container {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
}

/* ===== WIZARD STEP LIST ===== */
.wizard-steps-list .wizard-step-item {
    color: #666666;
    box-shadow: 0 -15px 15px -17px rgba(255, 255, 255, 0.05);
}

/* Nieodwiedzone kroki — ciemne kółko z numerem */
.wizard-steps-list .wizard-step-item::before {
    background: #333333 !important;
    border-color: #404040 !important;
    color: #666666 !important;
}

/* Aktywne/odwiedzone kroki */
.wizard-steps-list .wizard-step-item.active {
    color: #ffffff;
}

.wizard-steps-list .wizard-step-item.active::before {
    background: #5cb85c !important;
    border-color: #5cb85c !important;
    color: #ffffff !important;
}

/* Aktualny krok */
.wizard-steps-list .wizard-step-item.current {
    color: #ffffff !important;
}

.wizard-steps-list .wizard-step-item.current::before {
    background: #E8054C !important;
    border-color: #E8054C !important;
    color: #ffffff !important;
}

.wizard-steps-list .wizard-step-item .step-title {
    color: inherit;
}

/* ===== HEADINGS ===== */
.configurator-neon .wizard-heading,
.configurator-neon h2.wizard-heading,
.configurator-neon h3,
.configurator-neon .heading,
.configurator-neon .addon-group-title {
    color: #ffffff !important;
}

.configurator-neon .wizard-subheading,
.configurator-neon p,
.configurator-neon .addon-group-description {
    color: #b0b0b0 !important;
}

/* ===== MODE SELECTION CARDS (Step 1) ===== */
.mode-card {
    background: #2a2a2a !important;
    border-color: #404040 !important;
    color: #ffffff !important;
}

.mode-card:hover {
    border-color: #E8054C !important;
    box-shadow: 0 10px 20px rgba(232, 5, 76, 0.2) !important;
}

.mode-card.selected {
    border-color: #E8054C !important;
    background: linear-gradient(135deg, rgba(232, 5, 76, 0.1), rgba(232, 5, 76, 0.05)) !important;
}

.mode-card-title {
    color: #ffffff !important;
}

.mode-card-description {
    color: #b0b0b0 !important;
}

/* ===== FONT BUTTONS ===== */
.configurator-neon .fontButton {
    background-color: #2a2a2a !important;
    border-color: #404040 !important;
    color: #ffffff !important;
    filter: invert(0.9) !important;
}

.configurator-neon .fontButton:hover {
    border-color: #E8054C !important;
    filter: invert(0) !important;
}

.configurator-neon .fontButton.active,
.configurator-neon .fontButton.selected {
    border-color: #E8054C !important;
    background-color: rgba(232, 5, 76, 0.1) !important;
    filter: invert(0) !important;
}

/* ===== TEXT INPUT (fontBox) ===== */
.configurator-neon #userText,
.configurator-neon textarea {
    background: #2a2a2a !important;
    color: #ffffff !important;
    border-color: #404040 !important;
}

.configurator-neon #userText:focus,
.configurator-neon textarea:focus {
    border-color: #E8054C !important;
    box-shadow: 0 0 0 2px rgba(232, 5, 76, 0.2) !important;
}

/* ===== INPUTS ===== */
.configurator-neon input[type="text"],
.configurator-neon input[type="number"],
.configurator-neon input[type="email"],
.configurator-neon input[type="range"],
.configurator-neon select {
    background: #2a2a2a !important;
    color: #ffffff !important;
    border-color: #404040 !important;
}

.configurator-neon input:focus,
.configurator-neon select:focus {
    border-color: #E8054C !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(232, 5, 76, 0.2) !important;
}

/* ===== DIMENSION SECTION ===== */
.configurator-neon .inside-right-container,
.configurator-neon .inside-right-container-center,
.wizard-section,
.configurator-neon .wizard-section {
    background-color: #1a1a1a !important;
    border-color: #404040 !important;
    border-radius: 8px;
    color: #ffffff !important;
}

.configurator-neon #dimensionSection {
    color: #ffffff;
}

.configurator-neon #dimensionSection label {
    color: #b0b0b0 !important;
}

/* ===== PRODUCT CARDS (Step 5) ===== */
.product-card-wizard,
.configurator-neon .product-card-wizard,
.configurator-neon .product-card-container {
    background: #2a2a2a !important;
    border-color: #404040 !important;
    color: #ffffff !important;
}

.product-card-wizard:hover,
.configurator-neon .product-card-wizard:hover,
.configurator-neon .product-card-container:hover {
    border-color: #E8054C !important;
    box-shadow: 0 8px 25px rgba(232, 5, 76, 0.2) !important;
}

.product-card-wizard.selected,
.configurator-neon .product-card-wizard.selected,
.configurator-neon .product-card-container.active {
    background: linear-gradient(135deg, rgba(232, 5, 76, 0.15) 0%, rgba(232, 5, 76, 0.05) 100%) !important;
    border-color: #E8054C !important;
    box-shadow: 0 8px 25px rgba(232, 5, 76, 0.3) !important;
}

.product-card-wizard.selected::after {
    background: #E8054C !important;
    color: #ffffff !important;
}

/* Product card buttons */
.product-card-btn,
.product-card-btn.primary {
    background: #2a2a2a !important;
    color: #E8054C !important;
    border-color: #E8054C !important;
}

.product-card-btn:hover,
.product-card-btn.primary:hover {
    background: rgba(232, 5, 76, 0.1) !important;
}

/* Wizard step item active/completed indicators */
.wizard-step-item .step-icon {
    color: #b0b0b0 !important;
}

.wizard-step-item.active .step-icon {
    color: #E8054C !important;
}

/* Compare all button */
.compare-all-btn {
    background: #2a2a2a !important;
    border-color: #404040 !important;
    color: #b0b0b0 !important;
}

.compare-all-btn:hover,
.compare-all-btn.active {
    background: #333333 !important;
    border-color: #E8054C !important;
    color: #ffffff !important;
}

/* Addon group inside wizard */
.addon-group {
    background: #222222 !important;
}

/* Wizard step item decorators (blue → pink) */
.wizard-step-item.active::before {
    background: #E8054C !important;
}

/* Save button in wizard nav */
.wizard-btn-save {
    background: #2a2a2a !important;
    border-color: #404040 !important;
    color: #b0b0b0 !important;
}

/* Generic: all wizard elements with blue accent → pink */
.configurator-neon [style*="border-color: #0570e2"],
.configurator-neon [style*="border-color:#0570e2"] {
    border-color: #E8054C !important;
}

.configurator-neon [style*="color: #0570e2"],
.configurator-neon [style*="color:#0570e2"] {
    color: #E8054C !important;
}

.configurator-neon [style*="background: #0570e2"]:not([data-allegro-replaced]),
.configurator-neon [style*="background-color: #0570e2"]:not([data-allegro-replaced]),
.configurator-neon [style*="background:#0570e2"]:not([data-allegro-replaced]) {
    background: #E8054C !important;
}

.configurator-neon .product-card-container.active {
    border-color: #E8054C !important;
    box-shadow: 0 0 15px rgba(232, 5, 76, 0.3) !important;
}

.configurator-neon .product-card-front,
.configurator-neon .product-card-back {
    background-color: #2a2a2a !important;
    color: #ffffff !important;
}

.configurator-neon .product-price-display {
    color: #E8A905 !important;
}

/* ===== COLOR BUTTONS ===== */
.configurator-neon .color-button {
    border-color: #404040 !important;
}

.configurator-neon .color-button:hover {
    border-color: #E8054C !important;
}

.configurator-neon .color-button.active,
.configurator-neon .color-button.selected {
    border-color: #E8054C !important;
    box-shadow: 0 0 8px rgba(232, 5, 76, 0.4) !important;
}

/* ===== MOUNTING TYPE BUTTONS ===== */
.configurator-neon .mountingTypeButton {
    background: #2a2a2a !important;
    border-color: #404040 !important;
    color: #ffffff !important;
}

.configurator-neon .mountingTypeButton:hover {
    border-color: #E8054C !important;
}

.configurator-neon .mountingTypeButton.active {
    border-color: #E8054C !important;
    background: rgba(232, 5, 76, 0.1) !important;
}

.configurator-neon .typeName {
    color: #ffffff !important;
}

.configurator-neon .typeDescription {
    color: #b0b0b0 !important;
}

/* ===== INDOOR/OUTDOOR BUTTONS ===== */
.configurator-neon .indoor-outdoor-button {
    background-color: #2a2a2a !important;
    border-color: #404040 !important;
    color: #ffffff !important;
    filter: none !important;
}

.configurator-neon .indoor-outdoor-button span,
.configurator-neon .indoor-outdoor-button .unclickable {
    color: #ffffff !important;
}

.configurator-neon .indoor-outdoor-button svg,
.configurator-neon .indoor-outdoor-button svg path {
    fill: #ffffff !important;
}

.configurator-neon .indoor-outdoor-button-active {
    border-color: #E8054C !important;
    background-color: rgba(232, 5, 76, 0.15) !important;
    box-shadow: 0 0 10px rgba(232, 5, 76, 0.3) !important;
}

.configurator-neon .indoor-outdoor-button-inactive {
    filter: none !important;
    opacity: 0.7;
}

.configurator-neon .indoor-outdoor-button:hover {
    box-shadow: 0 0 10px rgba(232, 5, 76, 0.3) !important;
    filter: none !important;
}

/* ===== ADDON OPTIONS (Step 9) ===== */
.configurator-neon .addon-group {
    background: #222222;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
}

.configurator-neon .addon-image-button {
    background: #2a2a2a !important;
    border-color: #404040 !important;
    color: #ffffff !important;
}

.configurator-neon .addon-image-button:hover {
    border-color: #E8054C !important;
}

.configurator-neon .addon-image-button.selected {
    border-color: #E8054C !important;
    background: rgba(232, 5, 76, 0.08) !important;
}

.configurator-neon .addon-option-title {
    color: #ffffff !important;
}

.configurator-neon .addon-option-description {
    color: #b0b0b0 !important;
}

.configurator-neon .addon-option-price {
    color: #E8A905 !important;
}

/* ===== CABLE EXIT GRID ===== */
.configurator-neon .cable-exit-point {
    background: #2a2a2a !important;
    border-color: #404040 !important;
    color: #b0b0b0 !important;
}

.configurator-neon .cable-exit-label {
    color: #f5f5f5 !important;
}

.configurator-neon .cable-exit-point:hover {
    border-color: #E8054C !important;
}

.configurator-neon .cable-exit-point.selected {
    border-color: #E8054C !important;
    background: rgba(232, 5, 76, 0.1) !important;
    color: #ffffff !important;
}

/* ===== CHECKBOX LABELS ===== */
.configurator-neon .checkbox-label {
    color: #ffffff !important;
}

.configurator-neon .checkbox-text {
    color: #ffffff !important;
}

.configurator-neon .checkbox-price {
    color: #E8A905 !important;
}

.configurator-neon .addon-checkbox {
    background: #2a2a2a !important;
    border-color: #404040 !important;
}

.configurator-neon .addon-checkbox:hover {
    border-color: #E8054C !important;
    background: #333333 !important;
}

.configurator-neon .checkbox-custom {
    border-color: #E8054C !important;
}

.configurator-neon .checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: #E8054C !important;
    border-color: #E8054C !important;
}

/* ===== SUMMARY (Step 10) ===== */
.configurator-neon .summary-container {
    background: #2a2a2a !important;
    color: #ffffff !important;
}

.configurator-neon .summaryNetPrice {
    color: #E8A905 !important;
}

.configurator-neon .summaryGrossPrice {
    color: #b0b0b0 !important;
}

.configurator-neon #summaryOrderInfo {
    background: #222222 !important;
    color: #ffffff !important;
}

/* ===== PRICE BOX ===== */
.configurator-neon #priceBoxContainer {
    background: rgba(26, 26, 26, 0.95) !important;
    border-color: #404040 !important;
    color: #ffffff !important;
}

.configurator-neon #priceBoxContainer .summaryNetPrice {
    color: #E8A905 !important;
}

/* ===== BUTTONS ===== */
.configurator-neon .btn-primary {
    background: #E8054C !important;
    border-color: #E8054C !important;
    color: #ffffff !important;
}

.configurator-neon .btn-primary:hover {
    background: #cc0443 !important;
    border-color: #cc0443 !important;
}

/* Dalej — zielony (postęp/kontynuuj) */
.configurator-neon .wizard-btn-next {
    background: #28a745 !important;
    border-color: #28a745 !important;
    color: #ffffff !important;
}

.configurator-neon .wizard-btn-next:hover {
    background: #218838 !important;
    border-color: #218838 !important;
}

/* Weryfikacja (nav bar + summary) — ZAWSZE zielony */
.configurator-neon .wizard-btn-finish,
.configurator-neon #sendToVerifBtnSummary,
.configurator-neon #sendToVerifBtnSummary2 {
    background: #28a745 !important;
    border-color: #28a745 !important;
    color: #ffffff !important;
}

.configurator-neon .wizard-btn-finish:hover,
.configurator-neon #sendToVerifBtnSummary:hover,
.configurator-neon #sendToVerifBtnSummary2:hover {
    background: #218838 !important;
    border-color: #218838 !important;
}

/* Dodaj do koszyka — złoty omineo (ciepły, premium, NIE czerwony) */
/* Allegro button ma osobne reguły (pomarańczowy) niżej w pliku */
.configurator-neon #addToBasketBtn:not([data-allegro-replaced]) {
    background: linear-gradient(135deg, #E8A905, #d49b04) !important;
    border-color: #E8A905 !important;
    color: #ffffff !important;
}

.configurator-neon #addToBasketBtn:not([data-allegro-replaced]):hover {
    background: linear-gradient(135deg, #d49b04, #c08f03) !important;
    border-color: #d49b04 !important;
}

/* Wyślij email — niebieski (informacyjny) */
.configurator-neon #sendToEmailBtn {
    background: #0570e2 !important;
    border-color: #0570e2 !important;
    color: #ffffff !important;
}

.configurator-neon #sendToEmailBtn:hover {
    background: #0460c7 !important;
    border-color: #0460c7 !important;
}

.configurator-neon .wizard-btn-prev {
    background: transparent !important;
    border-color: #404040 !important;
    color: #b0b0b0 !important;
}

.configurator-neon .wizard-btn-prev:not(:disabled) {
    color: #ffffff !important;
    border-color: #666 !important;
}

.configurator-neon .wizard-btn-prev:hover {
    border-color: #E8054C !important;
    color: #ffffff !important;
}

/* ===== BOTTOM NAV BAR ===== */
.wizard-bottom-nav-bar {
    background: #1a1a1a !important;
    border-top-color: #333333 !important;
}

/* ===== MOBILE STEP SLIDER ===== */
.mobile-step-slider {
    background: rgba(26, 26, 26, 0.98) !important;
    border-bottom-color: #333333 !important;
}

.mobile-step {
    background: #2a2a2a !important;
    color: #b0b0b0 !important;
    border-color: #404040 !important;
}

.mobile-step.active {
    background: #E8054C !important;
    color: #ffffff !important;
    border-color: #E8054C !important;
}

/* Reset main-styles.css .step-number/.step-icon/.step-title (global) */
.mobile-step-slider .step-number {
    width: auto !important;
    height: auto !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

.mobile-step-slider .step-icon {
    font-size: 20px !important;
    margin: 0 !important;
    margin-bottom: 0 !important;
}

.mobile-step-slider .step-title,
.mobile-step-slider .step-name {
    font-size: 12px !important;
    margin: 0 !important;
    margin-bottom: 0 !important;
}

.mobile-step.completed,
.mobile-step.done {
    background: #2a2a2a !important;
    color: #5cb85c !important;
    border-color: #5cb85c !important;
}

/* ===== OUTPUT IMAGE CONTAINER (logo upload + AI processing) ===== */
.configurator-neon #outputImgContainer {
    background: radial-gradient(circle, #2a2a2a 10%, #1a1a1a 100%) !important;
}

/* ===== UPLOAD SECTION (wizard-step-2b) ===== */
.configurator-neon #wizard-step-2b {
    color: #ffffff !important;
}

.configurator-neon #wizard-step-2b .wizard-heading {
    color: #ffffff !important;
}

.configurator-neon #wizard-step-2b .wizard-subheading,
.configurator-neon #wizard-step-2b p {
    color: #b0b0b0 !important;
}

.configurator-neon #logoBox {
    background: transparent !important;
}

.configurator-neon .file-upload-area {
    background: #2a2a2a !important;
    border-color: #404040 !important;
}

.configurator-neon .file-upload-area:hover {
    border-color: #E8054C !important;
    background: rgba(232, 5, 76, 0.05) !important;
}

.configurator-neon .file-upload-area .upload-content h5,
.configurator-neon #dragDropTitle {
    color: #b0b0b0 !important;
}

.configurator-neon .file-upload-area .upload-content p,
.configurator-neon #dragDropOr {
    color: #666666 !important;
}

.configurator-neon .file-upload-area .upload-content i {
    color: #E8054C !important;
    opacity: 1 !important;
}

.configurator-neon .file-upload {
    background: #E8054C !important;
    color: #ffffff !important;
}

/* ===== MODALS ===== */
.configurator-neon .ebcf_modal {
    background: rgba(0, 0, 0, 0.85);
}

.configurator-neon .ebcf_modal-content {
    background: #2a2a2a !important;
    color: #ffffff !important;
    border-color: #404040 !important;
}

/* ===== PRODUCT DETAIL MODAL ===== */
.product-detail-modal .product-detail-content {
    background: #2a2a2a !important;
    color: #ffffff !important;
}

.product-detail-modal .product-detail-description {
    color: #b0b0b0 !important;
}

/* ===== SAVE SESSION MODAL ===== */
.save-session-modal {
    background: #2a2a2a !important;
    color: #ffffff !important;
}

.save-session-email-input {
    background: #1a1a1a !important;
    color: #ffffff !important;
    border-color: #404040 !important;
}

/* ===== SCROLLBAR (dark) ===== */
.configurator-neon ::-webkit-scrollbar {
    width: 6px;
}

.configurator-neon ::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.configurator-neon ::-webkit-scrollbar-thumb {
    background: #404040;
    border-radius: 3px;
}

.configurator-neon ::-webkit-scrollbar-thumb:hover {
    background: #555555;
}

/* ===== DELIVERY TIME INFO ===== */
.configurator-neon .delivery-time-info {
    color: #b0b0b0 !important;
}

/* ===== LINKS ===== */
.configurator-neon a:not(.btn):not(.wizard-nav-btn):not(.mode-card) {
    color: #E8054C;
}

.configurator-neon a:not(.btn):hover {
    color: #cc0443;
}

/* ===== EXAMPLE BUTTONS (mounting section) ===== */
.configurator-neon .exampleButton {
    background-color: #E8054C !important;
    border: 1px solid #E8054C !important;
    color: #ffffff !important;
}

.configurator-neon .exampleButton:hover {
    background-color: #cc0443 !important;
}

/* ===== COMPARE BUTTON ===== */
.configurator-neon #compareProductsBtn {
    background: #2a2a2a !important;
    border-color: #E8A905 !important;
    color: #E8A905 !important;
}

/* ===== jQuery UI SLIDER ===== */
.configurator-neon .ui-slider {
    background: #404040 !important;
}

.configurator-neon .ui-slider .ui-slider-range {
    background: #E8054C !important;
}

.configurator-neon .ui-slider .ui-slider-handle {
    background: #E8054C !important;
    border-color: #E8054C !important;
}

/* ===== GLOBAL CATCH-ALL: Light borders → dark ===== */
.configurator-neon [style*="border"],
.configurator-neon .wizard-step-item::before,
.configurator-neon hr,
.configurator-neon .separator {
    border-color: #404040 !important;
}

/* All light gray borders in wizard */
.configurator-neon .option-tile,
.configurator-neon .wizard-step-heading,
.configurator-neon .wizard-divider,
.configurator-neon .wizard-section,
.configurator-neon .product-detail-content {
    border-color: #404040 !important;
}

/* ===== INLINE STYLE OVERRIDES (using !important to beat inline) ===== */

/* Dark text that's invisible on dark bg */
.configurator-neon h2[style*="color: #333"],
.configurator-neon h3[style*="color: #333"],
.configurator-neon h5[style*="color: #333"],
.configurator-neon p[style*="color: #666"],
.configurator-neon span[style*="color: #666"],
.configurator-neon label[style*="color: #464646"],
.configurator-neon span[style*="color: #464646"],
.configurator-neon div[style*="color: #333"],
.configurator-neon [style*="color: #333"],
.configurator-neon [style*="color: #666"],
.configurator-neon [style*="color: #464646"],
.configurator-neon [style*="color: #212529"],
.configurator-neon [style*="color: black"],
.configurator-neon [style*="color:#333"],
.configurator-neon [style*="color:#666"],
.configurator-neon [style*="color:#464646"] {
    color: #ffffff !important;
}

/* Light backgrounds that break dark theme (exclude cable-color-preview which shows ACTUAL cable color) */
.configurator-neon [style*="background: white"]:not(.cable-color-preview),
.configurator-neon [style*="background-color: white"]:not(.cable-color-preview),
.configurator-neon [style*="background: #fff"]:not(.cable-color-preview),
.configurator-neon [style*="background-color: #fff"]:not(.cable-color-preview),
.configurator-neon [style*="background:#fff"]:not(.cable-color-preview),
.configurator-neon [style*="background: #f8f9fa"]:not(.cable-color-preview),
.configurator-neon [style*="background-color: #f8f9fa"]:not(.cable-color-preview),
.configurator-neon [style*="background: #e8f4ff"]:not(.cable-color-preview),
.configurator-neon [style*="background-color: #e8f4ff"]:not(.cable-color-preview),
.configurator-neon [style*="background: #e6e6e6"]:not(.cable-color-preview),
.configurator-neon [style*="background-color: #e6e6e6"] {
    background: #2a2a2a !important;
    color: #ffffff !important;
}

/* Light gradient backgrounds */
.configurator-neon [style*="background: linear-gradient"][style*="#f8f9fa"],
.configurator-neon [style*="background: linear-gradient"][style*="#e9ecef"] {
    background: linear-gradient(135deg, #2a2a2a 0%, #333333 100%) !important;
}

/* ===== VERSION SELECTION BUTTONS ===== */
.configurator-neon #skeletonHandMode {
    background: #2a2a2a !important;
    color: #ffffff !important;
}

.configurator-neon #skeletonHandMode h2,
.configurator-neon #skeletonHandMode h3,
.configurator-neon #skeletonHandMode h5,
.configurator-neon #skeletonHandMode p,
.configurator-neon #skeletonHandMode span {
    color: #ffffff !important;
}

.configurator-neon #skeletonHandMode .version-option,
.configurator-neon #skeletonHandMode .version-btn,
.configurator-neon #mixedVersionBtn,
.configurator-neon #retryFromStartBtn {
    background: #2a2a2a !important;
    border-color: #404040 !important;
    color: #ffffff !important;
}

.configurator-neon #mixedVersionBtn:hover,
.configurator-neon #retryFromStartBtn:hover {
    border-color: #E8054C !important;
}

/* ===== CABLE COLOR PREVIEW (white preview needs border) ===== */
.configurator-neon .cable-color-preview[style*="background: #ffffff"],
.configurator-neon .cable-color-preview[style*="background:#ffffff"],
.configurator-neon .cable-color-preview[data-color="white"] {
    border: 2px solid #666 !important;
}

/* Clear cable preview (transparent pattern) — make visible on dark */
.configurator-neon .cable-color-preview[style*="linear-gradient"][style*="#f0f0f0"] {
    border: 2px solid #666 !important;
}

/* ===== LOAD CUSTOM FONT BUTTON ===== */
.configurator-neon #load_font,
.configurator-neon button[style*="background: white"] {
    background: #2a2a2a !important;
    color: #ffffff !important;
    border-color: #404040 !important;
}

/* ===== INFO BOXES / ALERTS ===== */
.configurator-neon [style*="background-color: #e8f4ff"],
.configurator-neon .info-box,
.configurator-neon .alert-info {
    background: #1e2d3d !important;
    border-color: #2a4a6a !important;
    color: #b0d4ff !important;
}

.configurator-neon [style*="color: #0570e2"] {
    color: #4da6ff !important;
}

/* ===== DIBOND SECTION LABELS ===== */
.configurator-neon #dibondMarginLabel,
.configurator-neon .dibond-margin-label,
.configurator-neon [id*="dibond"] label {
    color: #b0b0b0 !important;
}

/* ===== WHITE BOX SHADOWS → dark glow ===== */
.configurator-neon [style*="box-shadow"][style*="white"] {
    box-shadow: none !important;
}

/* ===== CONFIRMATION BUTTONS / CROP AREA ===== */
.configurator-neon #confirmCropBtnContainer {
    background: #2a2a2a !important;
    color: #ffffff !important;
}

.configurator-neon #confirmCropBtnContainer .btn-primary {
    background: #E8054C !important;
}

/* ===== THRESHOLD CONTROL ===== */
.configurator-neon #thresholdControl {
    background: #2a2a2a !important;
    color: #ffffff !important;
}

/* ===== ELEMENTS LIST (remove elements step) ===== */
.configurator-neon #elementsListContainer {
    background: #2a2a2a !important;
    color: #ffffff !important;
}

.configurator-neon #elementsListContainer h4,
.configurator-neon #elementsListContainer p,
.configurator-neon #elementsListContainer li,
.configurator-neon #elementsListContainer ol {
    color: #ffffff !important;
}

/* ===== DELIVERY TIME DISPLAY ===== */
.configurator-neon #deliveryTimeDisplay,
.configurator-neon .delivery-time-display {
    color: #b0b0b0 !important;
}

/* ===== PLACEHOLDER TEXT ===== */
.configurator-neon input::placeholder,
.configurator-neon textarea::placeholder {
    color: #666666 !important;
    opacity: 1 !important;
}

/* ===== TOOLTIP ===== */
/* Uwaga: NIE używaj .tooltip — Bootstrap nadaje tę klasę przyciskom kolorów */
.configurator-neon .tooltip-inner {
    background: #333333 !important;
    color: #ffffff !important;
}

.configurator-neon .tooltip .tooltip-arrow::before {
    border-top-color: #333333 !important;
}

/* ===== RIGHT MENU (legacy containers) ===== */
.configurator-neon .right-menu {
    background: #2a2a2a !important;
    color: #ffffff !important;
}

.configurator-neon .right-menu .heading {
    color: #ffffff !important;
    border-bottom-color: #404040 !important;
}

.configurator-neon .right-menu p,
.configurator-neon .right-menu span,
.configurator-neon .right-menu label {
    color: #b0b0b0 !important;
}

/* ===== RELOAD / RESET BUTTON ===== */
.configurator-neon .reloadBtn {
    background: #333333 !important;
    color: #b0b0b0 !important;
    border-color: #404040 !important;
}

.configurator-neon .reloadBtn:hover {
    background: #404040 !important;
    color: #ffffff !important;
}

/* ===== PRODUCT MODE BOX (left container) ===== */
.configurator-neon #ProductModeBoxContainer button {
    background: rgba(42, 42, 42, 0.9) !important;
    color: #ffffff !important;
    border-color: #404040 !important;
}

.configurator-neon #ProductModeBoxContainer button.active,
.configurator-neon #ProductModeBoxContainer button:hover {
    border-color: #E8054C !important;
}

/* ===== VERIFICATION POPUP ===== */
.configurator-neon #sendToVerifPopup .ebcf_modal-content,
.configurator-neon #sendToEmailPopup .ebcf_modal-content {
    background: #2a2a2a !important;
    color: #ffffff !important;
}

.configurator-neon .ebcf_close {
    color: #b0b0b0 !important;
}

.configurator-neon .ebcf_close:hover {
    color: #ffffff !important;
}

/* ===== STROKE WIDTH WARNING ===== */
#strokeWidthWarning {
    background: #3d2e00 !important;
    border-color: #E8A905 !important;
    color: #ffd966 !important;
}

/* ===== GENERAL: catch remaining dark text ===== */
.configurator-neon .is-that-all-headline,
.configurator-neon .is-that-all-descr {
    color: #b0b0b0 !important;
}

/* ===== CF7 FORM ELEMENTS ===== */
.configurator-neon .wpcf7 input,
.configurator-neon .wpcf7 textarea {
    background: #2a2a2a !important;
    color: #ffffff !important;
    border-color: #404040 !important;
}

.configurator-neon .wpcf7 label {
    color: #b0b0b0 !important;
}

.configurator-neon .wpcf7-submit {
    background: #E8054C !important;
    color: #ffffff !important;
    border-color: #E8054C !important;
}

/* ===== PRODUCT CARDS GRID (wizard step 5) ===== */
.configurator-neon .product-cards-grid .product-card-price {
    color: #E8A905 !important;
}

.configurator-neon .product-card-container .btn-sm {
    background: transparent !important;
    border-color: #E8054C !important;
    color: #E8054C !important;
}

.configurator-neon .product-card-container .btn-sm:hover {
    background: rgba(232, 5, 76, 0.1) !important;
}

/* ===== POPUPY (stroke validator, weryfikacja, itp.) ===== */
/* Popupy mają białe tło — tekst musi być ciemny, nie nadpisany przez dark theme */
#strokePopupOverlay,
#strokePopupOverlay *,
#verifSuccessOverlay,
#verifSuccessOverlay *,
#strokeToast,
#strokeToast * {
    color: inherit !important;
}

#strokePopupOverlay > div,
#verifSuccessOverlay > div {
    background: #2a2a2a !important;
    color: #ffffff !important;
}

#strokePopupOverlay div[style*="font-size"],
#strokePopupOverlay span,
#strokePopupOverlay p,
#verifSuccessOverlay div[style*="font-size"],
#verifSuccessOverlay span {
    color: #ffffff !important;
}

#strokePopupOverlay div[style*="color:#666"],
#verifSuccessOverlay div[style*="color:#666"] {
    color: #b0b0b0 !important;
}

#strokePopupOverlay button,
#verifSuccessOverlay button {
    color: #ffffff !important;
}

/* Allegro popup */
.allegro-popup {
    color: #333333 !important;
}

.allegro-popup * {
    color: inherit !important;
}

.allegro-popup h2,
.allegro-popup h3,
.allegro-popup strong {
    color: #333333 !important;
}

.allegro-popup p,
.allegro-popup span {
    color: #555555 !important;
}

.allegro-popup input[type="text"],
.allegro-popup input[type="email"],
.allegro-popup input[type="number"],
.allegro-popup select,
.allegro-popup textarea {
    background: #ffffff !important;
    color: #333333 !important;
    border-color: #cccccc !important;
}

.allegro-popup input::placeholder {
    color: #999999 !important;
}

/* Allegro buttons — keep Allegro brand colors (orange), don't override with pink */
.configurator-neon .allegro-buy-button,
.configurator-neon .allegro-buy-btn,
.configurator-neon #allegroGoToAuction,
.configurator-neon [data-allegro-replaced="true"] {
    background: linear-gradient(135deg, #ff5a00, #ff7a22) !important;
    border-color: #ff5a00 !important;
    color: #ffffff !important;
}

.configurator-neon .allegro-buy-button:hover,
.configurator-neon .allegro-buy-btn:hover,
.configurator-neon #allegroGoToAuction:hover,
.configurator-neon [data-allegro-replaced="true"]:hover {
    background: linear-gradient(135deg, #e65000, #ff5a00) !important;
}

/* Allegro price info box */
.allegro-price-info-box,
.configurator-neon .allegro-price-info-box {
    background: linear-gradient(135deg, #ff5a00, #ff7a22) !important;
    color: #ffffff !important;
    border-color: #ff5a00 !important;
}

.allegro-price-info-box *,
.configurator-neon .allegro-price-info-box * {
    color: #ffffff !important;
}

/* =========================================================
   MOBILE OVERRIDES (max-width: 768px)
   ========================================================= */
@media (max-width: 768px) {

    /* ===== MOBILE LAYOUT: kontenery (przywróć order z v4 CSS) ===== */
    .configurator-neon .containerMain {
        flex-direction: column !important;
        overflow: visible !important; /* WAŻNE: overflow:hidden blokuje position:fixed bottom nav */
    }

    .configurator-neon .left-container {
        order: 1 !important;
        overflow: hidden !important; /* przenosimy overflow:hidden na sam kontener preview */
    }

    .configurator-neon .right-container {
        order: 2 !important;
        box-shadow: none !important;
        overflow-x: hidden !important;
        overflow-y: visible !important;
    }

    /* ===== PRICE BOX — ograniczony rozmiar na mobile ===== */
    .configurator-neon #priceBoxContainer {
        position: absolute !important;
        right: 5px !important;
        top: 5px !important;
        bottom: auto !important;
        width: auto !important;
        max-width: 120px !important;
        padding: 4px 8px !important;
        font-size: 13px !important;
        background-color: rgba(26, 26, 26, 0.85) !important;
        border-color: rgba(255, 255, 255, 0.2) !important;
        z-index: 10 !important;
    }

    /* ===== BOTTOM NAV BAR ===== */
    .wizard-bottom-nav-bar {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 999999 !important;
        background: rgba(26, 26, 26, 0.98) !important;
        border-top-color: #333333 !important;
        -webkit-backdrop-filter: blur(10px) !important;
        backdrop-filter: blur(10px) !important;
        /* iOS safe area — nie chowaj pod pasek adresu */
        padding-bottom: env(safe-area-inset-bottom, 0px) !important;
    }

    /* Body padding musi uwzględniać safe area */
    body {
        padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
    }

    /* ===== MOBILE STEP SLIDER ===== */
    .mobile-step-slider {
        background: rgba(26, 26, 26, 0.98) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        backdrop-filter: blur(10px) !important;
        border-bottom-color: #333333 !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
    }

    .mobile-step {
        background: #2a2a2a !important;
        color: #b0b0b0 !important;
        border-color: #404040 !important;
    }

    /* Reset main-styles.css globalne .step-number/.step-icon/.step-title */
    .mobile-step-slider .step-number {
        width: auto !important;
        height: auto !important;
        background: none !important;
        border: none !important;
        border-radius: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        color: #b0b0b0 !important;
        display: inline !important;
    }

    .mobile-step-slider .step-icon {
        font-size: 20px !important;
        margin: 0 !important;
        margin-bottom: 0 !important;
        color: #b0b0b0 !important;
    }

    .mobile-step-slider .step-name {
        font-size: 12px !important;
        margin: 0 !important;
        margin-bottom: 0 !important;
        color: #b0b0b0 !important;
    }

    .mobile-step-slider .step-title {
        font-size: 12px !important;
        margin: 0 !important;
        margin-bottom: 0 !important;
        color: #b0b0b0 !important;
    }

    .mobile-step i {
        color: #b0b0b0 !important;
    }

    .mobile-step.active {
        background: #E8054C !important;
        color: #ffffff !important;
        border-color: #E8054C !important;
        box-shadow: 0 0 0 4px rgba(232, 5, 76, 0.2), 0 4px 12px rgba(232, 5, 76, 0.3) !important;
    }

    .mobile-step.active .step-number,
    .mobile-step.active .step-icon,
    .mobile-step.active .step-name,
    .mobile-step.active .step-title,
    .mobile-step.active i {
        color: #ffffff !important;
    }

    .mobile-step.completed,
    .mobile-step.done {
        background: #2a2a2a !important;
        border-color: #5cb85c !important;
    }

    .mobile-step.completed .step-number,
    .mobile-step.completed .step-icon,
    .mobile-step.completed i,
    .mobile-step.done .step-number,
    .mobile-step.done .step-icon,
    .mobile-step.done i {
        color: #5cb85c !important;
    }

    /* ===== WIZARD NAV BUTTONS (mobile) ===== */
    .configurator-neon .wizard-btn-prev {
        background: transparent !important;
        border-color: #555 !important;
        color: #ffffff !important;
    }

    .configurator-neon .wizard-btn-next,
    .configurator-neon .wizard-btn-finish {
        background: #28a745 !important;
        border-color: #28a745 !important;
        color: #ffffff !important;
    }

    /* ===== WIZARD STEP ITEMS (ukryte na mobile, ale dark theme) ===== */
    .wizard-steps-list {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

    /* ===== STEP 1 (mode selection) — dark bg ===== */
    #wizard-step-1 {
        background: transparent !important;
    }

    /* ===== FONT BUTTONS ===== */
    .configurator-neon .fontButton {
        width: 17vw !important;
        height: 7vw !important;
    }

    .configurator-neon #load_font {
        width: 17vw !important;
        height: 7vw !important;
    }

    /* ===== PRODUCT CARDS (mobile) ===== */
    .configurator-neon .product-card-container {
        background: #2a2a2a !important;
        border-color: #404040 !important;
    }

    .configurator-neon .product-card-container.active {
        border-color: #E8054C !important;
    }

    /* ===== PRICE BOX (mobile position) ===== */
    .configurator-neon #priceBoxContainer {
        background-color: rgba(26, 26, 26, 0.9) !important;
        border-color: rgba(255, 255, 255, 0.2) !important;
    }

    /* ===== INPUTS (mobile) ===== */
    .configurator-neon input[type="text"],
    .configurator-neon input[type="number"],
    .configurator-neon select {
        background: #2a2a2a !important;
        color: #ffffff !important;
        border-color: #404040 !important;
    }

    /* ===== SCROLL HINT ===== */
    .configurator-neon .scroll-hint-right {
        background-color: rgba(42, 42, 42, 0.9) !important;
        color: #ffffff !important;
    }
}
