:root {
            --bg-primary: #f8fafc;
            --bg-secondary: #ffffff;
            --bg-card: rgba(255, 255, 255, 0.7);
            --header-bg: rgba(255, 255, 255, 0.85);
            --border-color: rgba(0, 0, 0, 0.08);
            --accent-primary: #71BF44;
            --accent-secondary: #87cf56;
            --text-primary: #0f172a;
            --text-secondary: #64748b;
            --success: #059669;
            --warning: #d97706;
            --danger: #dc2626;

            /* UI elements that were hardcoded rgba */
            --glass-bg: rgba(0, 0, 0, 0.03);
            --glass-hover: rgba(0, 0, 0, 0.06);
            --header-text-gradient: linear-gradient(135deg, #0f172a 0%, #64748b 100%);

            --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        }

        [data-theme="dark"] {
            --bg-primary: #0b0f19;
            --bg-secondary: #131b2e;
            --bg-card: rgba(30, 41, 59, 0.4);
            --header-bg: rgba(11, 15, 25, 0.85);
            --border-color: rgba(255, 255, 255, 0.08);
            --accent-primary: #71BF44;
            --accent-secondary: #5da636;
            --text-primary: #f8fafc;
            --text-secondary: #94a3b8;
            --success: #10b981;
            --warning: #f59e0b;
            --danger: #ef4444;

            --glass-bg: rgba(255, 255, 255, 0.04);
            --glass-hover: rgba(255, 255, 255, 0.08);
            --header-text-gradient: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Plus Jakarta Sans', sans-serif;
        }

        body {
            background-color: var(--bg-primary);
            color: var(--text-primary);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            overflow-x: hidden;
            background-image:
                radial-gradient(at 0% 0%, rgba(113, 191, 68, 0.12) 0px, transparent 50%),
                radial-gradient(at 100% 100%, rgba(135, 207, 86, 0.08) 0px, transparent 50%);
        }

        header {
            padding: 0.6rem 1.5rem;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            justify-content: space-between;
            align-items: center;
            backdrop-filter: blur(12px);
            position: sticky;
            top: 0;
            z-index: 10;
            background: var(--header-bg);
        }

        .theme-btn {
            background: var(--glass-bg);
            border: 1px solid var(--border-color);
            color: var(--text-primary);
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: var(--transition);
        }

        .theme-btn:hover {
            background: var(--glass-hover);
            transform: scale(1.05);
        }

        .logo-light { display: block; height: 24px; }
        .logo-dark { display: none; height: 24px; }
        [data-theme="dark"] .logo-light { display: none; }
        [data-theme="dark"] .logo-dark { display: block; }

        header h1 {
            font-family: 'Outfit', sans-serif;
            font-size: 0.95rem;
            font-weight: 700;
            background: var(--header-text-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            letter-spacing: -0.5px;
        }

        header .logo-badge {
            background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
            padding: 0.3rem 0.8rem;
            border-radius: 99px;
            font-size: 0.75rem;
            font-weight: 600;

        }

        main {
            flex: 1;
            display: grid;
            grid-template-columns: 260px 1.6fr 1fr;
            max-width: 1800px;
            margin: 0 auto;
            width: 100%;
            padding: 1rem 1.5rem;
            gap: 1rem;
        }

        /* Left Column - Preview and Specs */
        .product-preview {
            display: flex;
            flex-direction: column;
            gap: 0.8rem;
            position: sticky;
            top: 70px;
            height: fit-content;
        }

        .image-gallery {
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 0.8rem;
            display: flex;
            justify-content: center;
            align-items: center;
            position: relative;
            overflow: hidden;

        }

        .image-gallery::before {
            content: '';
            position: absolute;
            width: 100px;
            height: 100px;
            background: var(--accent-primary);
            filter: blur(80px);
            opacity: 0.15;
            pointer-events: none;
        }

        .image-gallery img {
            width: 100%;
            height: 250px;
            object-fit: contain;
            transition: var(--transition);
        }

        .image-gallery:hover img {
            transform: scale(1.03);
        }

        .features-section h2,
        .configurator-section h2 {
            font-family: 'Outfit', sans-serif;
            font-size: 0.95rem;
            font-weight: 600;
            margin-bottom: 0.3rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            width: 100%;
        }

        .features-grid {
            display: flex;
            flex-direction: column;
            gap: 0.2rem;
        }

        .feature-card {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            padding: 0.25rem 0.6rem;
            border-radius: 6px;
            backdrop-filter: blur(4px);
            transition: var(--transition);
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 1rem;
        }

        .feature-card:hover {
            border-color: rgba(113, 191, 68, 0.3);
            background: var(--glass-bg);
        }

        .feature-label {
            font-size: 0.65rem;
            color: var(--text-secondary);
            margin-bottom: 0;
            white-space: nowrap;
        }

        .feature-value {
            font-size: 0.7rem;
            font-weight: 500;
            color: var(--text-primary);
            text-align: right;
        }

        .thumbnails-container {
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
            justify-content: center;
        }

        .thumbnail-img {
            width: 45px;
            height: 45px;
            border-radius: 6px;
            border: 2px solid var(--border-color);
            background: var(--bg-card);
            object-fit: contain;
            cursor: pointer;
            padding: 3px;
            transition: var(--transition);
        }

        .thumbnail-img.active {
            border-color: var(--accent-primary);
            background: rgba(113, 191, 68, 0.1);
        }

        .thumbnail-img:hover {
            border-color: rgba(113, 191, 68, 0.5);
            transform: scale(1.05);
        }

        /* Right Column - Configurator Table */
        .configurator-section {
            display: flex;
            flex-direction: column;
            gap: 0.8rem;
        }

        .reset-btn {
            background: var(--glass-bg);
            border: 1px solid var(--border-color);
            color: var(--text-secondary);
            padding: 0.2rem 0.6rem;
            border-radius: 4px;
            font-size: 0.65rem;
            font-weight: 600;
            cursor: pointer;
            margin-left: auto;
            transition: var(--transition);
        }

        .reset-btn:hover {
            background: var(--danger);
            color: white;
            border-color: transparent;

        }

        .options-table-wrapper {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 16px;
            padding: 0;
            overflow: hidden;

            backdrop-filter: blur(4px);
        }

        .options-table {
            width: 100%;
            border-collapse: collapse;
        }

        .options-table tr {
            border-bottom: 1px solid var(--border-color);
        }

        .options-table tr:last-child {
            border-bottom: none;
        }

        .options-table td {
            padding: 0.4rem 0.6rem;
            vertical-align: middle;
        }

        .options-table td.option-name-col {
            font-weight: 600;
            font-size: 0.75rem;
            color: var(--text-primary);
            width: 140px;
            background-color: var(--glass-bg);
            border-right: 1px solid var(--border-color);
            user-select: none;
        }

        .options-table td.option-chips-col {
            background-color: transparent;
        }

        .chips-container {
            display: flex;
            flex-wrap: wrap;
            gap: 0.3rem;
            align-items: center;
        }

        .help-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 0.75rem;
            color: var(--text-secondary);
            margin-left: 6px;
            font-weight: normal;
            cursor: help;
            transition: var(--transition);
        }

        .help-icon:hover {
            color: var(--accent-primary);
        }

        .chip {
            background: var(--glass-bg);
            border: 1px solid var(--border-color);
            color: var(--text-secondary);
            padding: 0.25rem 0.6rem;
            border-radius: 6px;
            font-size: 0.7rem;
            font-weight: 500;
            cursor: pointer;
            transition: var(--transition);
            user-select: none;
        }

        .chip:hover:not(.disabled):not(.selected) {
            border-color: rgba(113, 191, 68, 0.5);
            color: var(--text-primary);
            background: rgba(255, 255, 255, 0.08);
            transform: translateY(-1px);
        }

        .chip.selected {
            border-color: var(--accent-primary);
            color: var(--accent-primary);
            background: rgba(113, 191, 68, 0.2);

            transform: translateY(-1px);
        }

        .chip.disabled {
            background: rgba(0, 0, 0, 0.2);
            border-color: rgba(255, 255, 255, 0.03);
            color: rgba(255, 255, 255, 0.2);
            cursor: not-allowed;
        }


        /* Folder Tree Styling */
        .folder-item {
            display: flex;
            flex-direction: column;
            gap: 0.1rem;
        }

        .folder-header {
            padding: 0.2rem 0.4rem;
            border-radius: 4px;
            font-size: 0.75rem;
            color: var(--text-primary);
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 0.4rem;
            transition: var(--transition);
        }

        .folder-header:hover {
            background: var(--glass-bg);
        }

        .folder-icon {
            font-size: 0.6rem;
            transition: transform 0.2s;
            color: var(--text-secondary);
        }

        .folder-item.expanded>.folder-header .folder-icon {
            transform: rotate(90deg);
        }

        .folder-content {
            display: none;
            padding-left: 0.4rem;
            border-left: 1px solid var(--border-color);
            margin-left: 0.4rem;
            margin-top: 0.2rem;
            flex-direction: column;
            gap: 0.1rem;
        }

        .folder-item.expanded>.folder-content {
            display: flex;
        }

        /* Sidebar Styling */
        .sidebar {
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            display: flex;
            flex-direction: column;
            height: calc(100vh - 90px);
            position: sticky;
            top: 70px;
            overflow: hidden;

            backdrop-filter: blur(8px);
        }

        .sidebar-header {
            padding: 0.6rem 0.8rem;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            flex-direction: column;
            gap: 0.3rem;
        }

        .sidebar-header h2 {
            font-family: 'Outfit', sans-serif;
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--text-primary);
            letter-spacing: -0.3px;
        }

        #search-box {
            background: var(--glass-bg);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            padding: 0.35rem 0.6rem;
            color: var(--text-primary);
            font-size: 0.75rem;
            outline: none;
            transition: var(--transition);
        }

        #search-box:focus {
            border-color: var(--accent-primary);
            background: rgba(255, 255, 255, 0.06);

        }

        .sidebar-list {
            flex: 1;
            overflow-y: auto;
            padding: 0.5rem;
            display: flex;
            flex-direction: column;
            gap: 0.1rem;
        }

        .product-item {
            padding: 0.15rem 0.4rem;
            border-radius: 4px;
            font-size: 0.75rem;
            color: var(--text-secondary);
            cursor: pointer;
            transition: var(--transition);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            border: 1px solid transparent;
        }

        .product-item:hover {
            background: var(--glass-bg);
            color: var(--text-primary);
        }

        .product-item.active {
            background: rgba(113, 191, 68, 0.1);
            border-color: rgba(113, 191, 68, 0.3);
            color: var(--text-primary);
            font-weight: 600;
        }

        .sidebar-footer {
            padding: 0.6rem;
            border-top: 1px solid var(--border-color);
        }

        .upload-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            width: 100%;
            background: var(--glass-bg);
            border: 1px solid var(--border-color);
            color: var(--text-secondary);
            padding: 0.4rem;
            border-radius: 6px;
            font-size: 0.7rem;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
        }

        .upload-btn:hover {
            background: rgba(255, 255, 255, 0.1);
            color: var(--text-primary);
            border-color: rgba(255, 255, 255, 0.2);
        }

        /* Responsive Layout */
        @media (max-width: 1200px) {
            main {
                grid-template-columns: 240px 1fr;
                gap: 1.5rem;
                padding: 1.5rem;
            }

            .configurator-section {
                grid-column: 1 / -1;
            }
        }

        @media (max-width: 800px) {
            main {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }

            .sidebar {
                position: relative;
                top: 0;
                height: 250px;
            }

            .product-preview {
                position: relative;
                top: 0;
            }
        }

        @media (max-width: 600px) {
            header {
                padding: 1rem 1.5rem;
            }

            main {
                padding: 1rem;
            }

            .options-table td.option-name-col {
                width: 100px;
            }

            .features-grid {
                grid-template-columns: 1fr;
            }
        }

        /* ================================================================
           Brand Selector Landing Page
           ================================================================ */
        .brand-selector {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 2rem 1.5rem;
        }

        .brand-selector-inner {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 2rem;
            max-width: 640px;
            width: 100%;
        }

        .brand-selector-label {
            font-size: 0.95rem;
            color: var(--text-secondary);
            letter-spacing: 0.01em;
        }

        .brand-cards {
            display: flex;
            gap: 1.25rem;
            width: 100%;
        }

        .brand-card {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 0.5rem;
            padding: 1.5rem;
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 16px;
            cursor: pointer;
            transition: var(--transition);
            position: relative;
            text-align: left;
            color: var(--text-primary);
            backdrop-filter: blur(8px);
            text-decoration: none;
        }


        .brand-card:hover {
            background: var(--glass-hover);
            border-color: var(--accent-primary);
            transform: translateY(-3px);
            box-shadow: 0 8px 32px rgba(113, 191, 68, 0.15);
        }

        .brand-card-icon {
            width: 56px;
            height: 56px;
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 0.5rem;
        }

        .brand-card-icon--colorsled {
            background: linear-gradient(135deg, rgba(113, 191, 68, 0.18), rgba(135, 207, 86, 0.10));
            color: var(--accent-primary);
            border: 1px solid rgba(113, 191, 68, 0.25);
        }

        .brand-card-icon--ledluz {
            background: linear-gradient(135deg, rgba(99, 149, 220, 0.18), rgba(130, 170, 240, 0.10));
            color: #6395dc;
            border: 1px solid rgba(99, 149, 220, 0.25);
        }

        .brand-card-name {
            font-family: 'Outfit', sans-serif;
            font-size: 1.15rem;
            font-weight: 700;
            letter-spacing: -0.3px;
        }

        .brand-card-desc {
            font-size: 0.82rem;
            color: var(--text-secondary);
            line-height: 1.4;
        }

        .brand-card-arrow {
            position: absolute;
            top: 1.25rem;
            right: 1.25rem;
            color: var(--text-secondary);
            transition: var(--transition);
        }

        .brand-card:hover .brand-card-arrow {
            color: var(--accent-primary);
            transform: translateX(3px);
        }

        /* ================================================================
           Back-to-brands button in header
           ================================================================ */
        .brand-back-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            padding: 0.35rem 0.85rem;
            font-size: 0.8rem;
            font-weight: 500;
            color: var(--text-secondary);
            background: var(--glass-bg);
            border: 1px solid var(--border-color);
            border-radius: 99px;
            cursor: pointer;
            transition: var(--transition);
            text-decoration: none;
        }


        .brand-back-btn:hover {
            color: var(--text-primary);
            background: var(--glass-hover);
        }

        /* ================================================================
           Coming-soon placeholder (LedLuzProfile page)
           ================================================================ */
        .coming-soon-card {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1rem;
            padding: 3rem 2.5rem;
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 20px;
            text-align: center;
            backdrop-filter: blur(8px);
        }

        .coming-soon-icon {
            width: 80px;
            height: 80px;
            border-radius: 20px;
            background: linear-gradient(135deg, rgba(99, 149, 220, 0.18), rgba(130, 170, 240, 0.10));
            border: 1px solid rgba(99, 149, 220, 0.25);
            color: #6395dc;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 0.5rem;
        }

        .coming-soon-title {
            font-family: 'Outfit', sans-serif;
            font-size: 1.4rem;
            font-weight: 700;
            letter-spacing: -0.4px;
        }

        .coming-soon-desc {
            font-size: 0.9rem;
            color: var(--text-secondary);
        }

        @media (max-width: 540px) {
            .brand-cards {
                flex-direction: column;
            }
        }

        /* Export button styling */
        .colorsled-page .export-btn {
            background: rgba(113, 191, 68, 0.08);
            border-color: rgba(113, 191, 68, 0.2);
            color: var(--accent-primary);
        }
        .colorsled-page .export-btn:hover {
            background: var(--accent-primary);
            color: #ffffff;
            border-color: var(--accent-primary);
        }

        .ledluz-page .export-btn {
            background: rgba(99, 149, 220, 0.08);
            border-color: rgba(99, 149, 220, 0.2);
            color: #6395dc;
        }
        .ledluz-page .export-btn:hover {
            background: #6395dc;
            color: #ffffff;
            border-color: #6395dc;
        }