        
        .color-controls {
            position: fixed;
            bottom: 20px;
            right: 20px;
            z-index: 9999;
            background: rgba(10, 14, 26, 0.95);
            backdrop-filter: blur(12px);
            border-radius: 20px;
            padding: 16px 20px;
            border: 1px solid rgba(90, 120, 200, 0.3);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            font-family: 'Segoe UI', 'Inter', monospace;
            font-size: 12px;
            min-width: 260px;
            transition: opacity 0.2s;
        }

        .color-controls:hover {
            background: rgba(10, 14, 26, 0.98);
        }

        .color-controls h4 {
            margin: 0 0 12px 0;
            color: #e8edf6;
            font-size: 13px;
            font-weight: 600;
            letter-spacing: 0.5px;
            text-align: center;
        }

        .control-group {
            margin-bottom: 14px;
        }

        .control-label {
            display: flex;
            justify-content: space-between;
            margin-bottom: 6px;
            color: #b9c4d7;
            font-size: 11px;
            font-weight: 500;
        }

        .control-label code {
            background: rgba(0, 0, 0, 0.4);
            padding: 2px 6px;
            border-radius: 6px;
            font-family: monospace;
            font-size: 10px;
            color: #d68b2a;
        }

        .control-value {
            color: #d68b2a;
            font-weight: 700;
        }

        input[type="range"] {
            width: 100%;
            height: 4px;
            -webkit-appearance: none;
            appearance: none;
            background: #2a3448;
            border-radius: 10px;
            outline: none;
            cursor: pointer;
        }

        input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 14px;
            height: 14px;
            border-radius: 50%;
            cursor: pointer;
            border: 2px solid white;
            box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
        }

        #huePrimaryCtrl::-webkit-slider-thumb { background: #d68b2a; }
        #hueSecondaryCtrl::-webkit-slider-thumb { background: #2e6fb8; }
        #saturationCtrl::-webkit-slider-thumb { background: #4fc17f; }

        .range-labels {
            display: flex;
            justify-content: space-between;
            margin-top: 4px;
            font-size: 9px;
            color: #6c7a91;
        }

        .reset-btn {
            width: 100%;
            margin-top: 12px;
            padding: 6px 12px;
            background: rgba(90, 120, 200, 0.2);
            border: 1px solid rgba(90, 120, 200, 0.4);
            border-radius: 10px;
            color: #b9c4d7;
            font-size: 11px;
            font-weight: 600;
            cursor: pointer;
            text-align: center;
            transition: all 0.2s;
        }

        .reset-btn:hover {
            background: rgba(90, 120, 200, 0.35);
            color: white;
        }

        
        .collapse-btn {
            position: absolute;
            top: 8px;
            right: 12px;
            background: none;
            border: none;
            color: #8a98b0;
            cursor: pointer;
            font-size: 14px;
            padding: 0;
            width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .color-controls.collapsed {
            padding: 10px 16px;
            min-width: auto;
        }

        .color-controls.collapsed .control-group,
        .color-controls.collapsed .reset-btn,
        .color-controls.collapsed h4 {
            display: none;
        }

        .color-controls.collapsed .collapse-btn {
            position: static;
            transform: none;
        }

        .color-controls.collapsed .collapse-btn span {
            transform: rotate(180deg);
            display: inline-block;
        }
        .button-group {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-direction: column;
}

.copy-btn {
    flex: 1;
    padding: 6px 12px;
    background: rgba(90, 120, 200, 0.2);
    border: 1px solid rgba(90, 120, 200, 0.4);
    border-radius: 10px;
    color: #b9c4d7;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: rgba(90, 120, 200, 0.35);
    color: white;
}
.color-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 16px 20px;
    border: 1px solid rgba(90, 120, 200, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    font-family: 'Segoe UI', 'Inter', monospace;
    font-size: 12px;
    min-width: 280px;
    transition: opacity 0.2s;
}

.color-controls:hover {
    background: rgba(10, 14, 26, 0.98);
}

.color-controls h4 {
    margin: 0 0 12px 0;
    color: #e8edf6;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-align: center;
}

.control-group {
    margin-bottom: 14px;
}

.control-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    color: #b9c4d7;
    font-size: 11px;
    font-weight: 500;
}

.control-label code {
    background: rgba(0, 0, 0, 0.4);
    padding: 2px 6px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 10px;
    color: #d68b2a;
}

.control-value {
    color: #d68b2a;
    font-weight: 700;
}

input[type="range"] {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: #2a3448;
    border-radius: 10px;
    outline: none;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

#huePrimaryCtrl::-webkit-slider-thumb { background: #d68b2a; }
#hueGradientEndCtrl::-webkit-slider-thumb { background: #7b5a3a; }
#hueSecondaryCtrl::-webkit-slider-thumb { background: #2e6fb8; }
#saturationCtrl::-webkit-slider-thumb { background: #4fc17f; }

.range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    font-size: 9px;
    color: #6c7a91;
}

.font-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(90, 120, 200, 0.3);
}

.font-section-title {
    font-size: 11px;
    font-weight: 600;
    color: #b9c4d7;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    text-align: center;
}

.font-select {
    width: 100%;
    padding: 8px 10px;
    background: rgba(10, 14, 26, 0.8);
    border: 1px solid rgba(90, 120, 200, 0.4);
    border-radius: 8px;
    color: #e8edf6;
    font-size: 11px;
    font-family: monospace;
    cursor: pointer;
    transition: all 0.2s;
}

.font-select:hover {
    background: rgba(10, 14, 26, 1);
    border-color: rgba(90, 120, 200, 0.6);
}

.font-select:focus {
    outline: none;
    border-color: #d68b2a;
}

.button-group {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-direction: column;
}

.reset-btn, .reset-fonts-btn, .copy-btn {
    width: 100%;
    padding: 6px 12px;
    background: rgba(90, 120, 200, 0.2);
    border: 1px solid rgba(90, 120, 200, 0.4);
    border-radius: 10px;
    color: #b9c4d7;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.reset-btn:hover, .reset-fonts-btn:hover, .copy-btn:hover {
    background: rgba(90, 120, 200, 0.35);
    color: white;
}

.collapse-btn {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    color: #8a98b0;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.color-controls.collapsed {
    padding: 10px 16px;
    min-width: auto;
}

.color-controls.collapsed .control-group,
.color-controls.collapsed .reset-btn,
.color-controls.collapsed .reset-fonts-btn,
.color-controls.collapsed .copy-btn,
.color-controls.collapsed .font-section,
.color-controls.collapsed h4 {
    display: none;
}

.color-controls.collapsed .collapse-btn {
    position: static;
    transform: none;
}

.color-controls.collapsed .collapse-btn span {
    transform: rotate(180deg);
    display: inline-block;
}
/* Brand name input styles */
.brand-input-group {
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(90, 120, 200, 0.2);
}

.brand-name-input {
    width: 100%;
    padding: 8px 10px;
    background: rgba(10, 14, 26, 0.8);
    border: 1px solid rgba(90, 120, 200, 0.4);
    border-radius: 8px;
    color: #e8edf6;
    font-size: 12px;
    font-family: monospace;
    transition: all 0.2s;
    box-sizing: border-box;
}

.brand-name-input:focus {
    outline: none;
    border-color: #d68b2a;
    background: rgba(10, 14, 26, 1);
}

.brand-name-input::placeholder {
    color: #6c7a91;
}

#brandNamePreview {
    color: #4fc17f;
    font-weight: 700;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.apply-brand-btn {
    width: 100%;
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(79, 193, 127, 0.2);
    border: 1px solid rgba(79, 193, 127, 0.4);
    border-radius: 8px;
    color: #4fc17f;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.apply-brand-btn:hover {
    background: rgba(79, 193, 127, 0.35);
    color: white;
    border-color: #4fc17f;
}