 
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: #20282C;
            min-height: 100vh;
            padding: 20px;
            color: #ffffff;
            position: relative;
            overflow-x: hidden;
        }

        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image:
                linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
            background-size: 30px 30px;
            pointer-events: none;
            z-index: 0;
        }

        .container {
            max-width: 600px;
            margin: 0 auto;
            position: relative;
            z-index: 1;
            width: 100%;
        }

        header {
            text-align: center;
            margin-bottom: 40px;
        }

        h1 {
            font-size: 32px;
            margin-bottom: 8px;
            text-shadow: none;
            font-weight: 300;
            letter-spacing: -0.5px;
        }

        .subtitle {
            opacity: 0.7;
            font-size: 14px;
            font-weight: 400;
        }

        .card {
            background: #111111;
            border-radius: 12px;
            padding: 28px;
            margin-bottom: 24px;
            box-shadow: none;
            border: 1px solid #222222;
            color: #515151;
        }

        .card.settings-grid {
            background: #161616;
            color: #ebe4e4;
            border: 1px solid #E5E1B3;
            position: relative;
        }

        .file-section {
            text-align: center;
        }

        .btn {
            background: transparent;
            color: #E5E1B3;
            border: 2px solid #E5E1B3;
            padding: 16px 28px;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
            width: 20%;
            margin-bottom: 12px;
            font-family: inherit;
        }

        .btn:hover {
            background: rgba(229, 225, 179, 0.1);
            border-color: #E5E1B3;
            color: #E5E1B3;
            transform: none;
            box-shadow: none;
        }

        .btn:active {
            background: #A8A79F;
            border-color: #969590;
        }

        .btn:disabled {
            background: #8A8983;
            border-color: #7A7973;
            color: #4A4944;
            cursor: not-allowed;
        }

        .btn-success {
            background: transparent;
            border: 2px solid #E5E1B3;
            color: #E5E1B3;
        }

        .btn-success:hover {
            background: rgba(229, 225, 179, 0.1);
            border-color: #E5E1B3;
            color: #E5E1B3;
        }

        .btn-success:disabled {
            background: transparent;
            border: 2px solid #8A8983;
            color: #8A8983;
        }

        .btn-preview {
            background: transparent;
            color: #E5E1B3;
            border: 2px solid #FF6633;
            width: 100%;
        }

        .btn-preview:hover {
            background: rgba(255, 102, 51, 0.1);
            border-color: #FF6633;
            color: #E5E1B3;
        }

        .btn-preview:active {
            background: rgba(255, 102, 51, 0.3);
            border-color: #FF8855;
        }

        #openFile {
            border: 3px solid #d5d8ab;
            background: #d26420;
            color: #000000;
        }

        #openFile:hover {
            background: #ff8133;
            border-color: #ebecd2;
        }

        .settings-grid {
            display: none;
        }

        .settings-grid.active {
            display: block;
        }

        .section-title {
            font-size: 16px;
            font-weight: 400;
            margin: 32px 0 20px 0;
            padding-bottom: 12px;
            border-bottom: 1px solid #333333;
            color: #ffffff;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .card.settings-grid .section-title {
            color: #dfdfdf;
            border-bottom: 1px solid #D4D0A3;
        }

        .section-title:first-child {
            margin-top: 0;
        }

        .control-group {
            margin-bottom: 24px;
            padding: 16px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.02);
        }

        .fader-controls-row {
            display: flex;
            flex-direction: row;
            gap: 20px;
            margin-bottom: 24px;
            align-items: flex-start;
        }

        .fader-controls-row .control-group {
            flex: 1;
            margin-bottom: 0;
            min-width: 0;
        }

        .upload-overlay {
            position: absolute;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 10;
            pointer-events: none;
            display: none;
        }

        .upload-text {
            background: rgba(0, 0, 0, 0.5);
            color: rgba(255, 255, 255, 0.8);
            padding: 16px 24px;
            border-radius: 8px;
            font-size: 18px;
            font-weight: 600;
            text-align: center;
            border: 2px solid rgba(255, 255, 255, 0.5);
        }

        label {
            display: block;
            font-weight: 400;
            margin-bottom: 8px;
            color: #cccccc;
            font-size: 13px;
        }

        .card.settings-grid label {
            color: #cdc9c9;
        }

        .help-text {
            font-size: 11px;
            color: #666666;
            margin-top: 6px;
        }

        .card.settings-grid .help-text {
            color: #666666;
        }

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

        .card.settings-grid input[type="range"] {
            background: #D4D0A3;
        }

        input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: #FF6633;
            cursor: pointer;
            transition: all 0.2s ease;
            border: none;
            box-shadow: 0 2px 4px rgba(255, 102, 51, 0.3);
        }

        input[type="range"]::-webkit-slider-thumb:hover {
            background: #FF5522;
            transform: scale(1.1);
        }

        input[type="range"]::-moz-range-thumb {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: #FF6633;
            cursor: pointer;
            border: none;
            box-shadow: 0 2px 4px rgba(255, 102, 51, 0.3);
        }

        /* Mobile-optimized slider thumbs */
        @media (max-width: 768px) {
            input[type="range"] {
                height: 8px;
                margin: 12px 0;
            }

            input[type="range"]::-webkit-slider-thumb {
                width: 36px;
                height: 36px;
                box-shadow: 0 3px 6px rgba(255, 102, 51, 0.4);
            }

            input[type="range"]::-webkit-slider-thumb:hover {
                transform: scale(1.05);
            }

            input[type="range"]::-moz-range-thumb {
                width: 36px;
                height: 36px;
                box-shadow: 0 3px 6px rgba(255, 102, 51, 0.4);
            }
        }

        input[type="number"] {
            width: 100%;
            max-width: 200px;
            padding: 12px;
            border: 1px solid #333333;
            border-radius: 6px;
            font-size: 14px;
            background: #1a1a1a;
            color: #ffffff;
            transition: border-color 0.2s ease;
            font-family: inherit;
        }

        input[type="number"]:focus {
            outline: none;
            border-color: #555555;
            background: #222222;
        }

        .card.settings-grid input[type="number"] {
            background: #ffffff;
            color: #333333;
            border: 1px solid #D4D0A3;
        }

        .card.settings-grid input[type="number"]:focus {
            border-color: #C7C398;
            background: #fafafa;
        }

        select {
            width: 100%;
            max-width: 200px;
            padding: 12px;
            border: 1px solid #333333;
            border-radius: 6px;
            font-size: 14px;
            background: #1a1a1a;
            color: #ffffff;
            cursor: pointer;
            transition: border-color 0.2s ease;
            font-family: inherit;
        }

        select:focus {
            outline: none;
            border-color: #555555;
            background: #222222;
        }

        .card.settings-grid select {
            background: #ffffff;
            color: #333333;
            border: 1px solid #D4D0A3;
        }

        .card.settings-grid select:focus {
            border-color: #C7C398;
            background: #fafafa;
        }

        .value-display {
            display: inline-block;
            background: #222222;
            padding: 6px 12px;
            border-radius: 6px;
            font-weight: 600;
            color: #ffffff;
            margin-left: 8px;
            font-size: 18px;
            border: 1px solid #333333;
            min-width: 80px;
            text-align: center;
            font-family: 'Courier New', monospace;
        }

        .card.settings-grid .value-display {
            background: #E5E1B3;
            color: #333333;
            border: 1px solid #D4D0A3;
        }

        .alert {
            padding: 14px 16px;
            border-radius: 6px;
            margin-bottom: 20px;
            font-size: 13px;
            border: 1px solid;
        }

        .alert-info {
            background: #1a1a1a;
            color: #cccccc;
            border-color: #333333;
        }

        .alert-warning {
            background: #1a1a1a;
            color: #ffcc00;
            border-color: #333333;
        }

        .alert-success {
            background: #1a1a1a;
            color: #FF6633;
            border-color: #333333;
        }

        .status {
            text-align: center;
            padding: 12px;
            border-radius: 6px;
            margin-bottom: 16px;
            font-weight: 400;
            font-size: 13px;
            border: 1px solid;
        }

        .status.success {
            background: #1a1a1a;
            color: #FF6633;
            border-color: #333333;
        }

        .status.error {
            background: #1a1a1a;
            color: #ff4444;
            border-color: #333333;
        }

        .toggle-switch {
            position: relative;
            display: inline-block;
            width: 44px;
            height: 24px;
            cursor: pointer;
        }

        .toggle-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .toggle-slider {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #333333;
            border: 1px solid #444444;
            border-radius: 24px;
            transition: all 0.3s ease;
        }

        .toggle-slider:before {
            position: absolute;
            content: "";
            height: 18px;
            width: 18px;
            left: 2px;
            bottom: 2px;
            background-color: #666666;
            border-radius: 50%;
            transition: all 0.3s ease;
        }

        .toggle-switch input:checked + .toggle-slider {
            background-color: #FF6633;
            border-color: #FF6633;
        }

        .toggle-switch input:checked + .toggle-slider:before {
            background-color: #ffffff;
            transform: translateX(20px);
        }

        .toggle-switch input:disabled + .toggle-slider {
            opacity: 0.4;
            cursor: not-allowed;
        }

        /* Modal styles */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
        }

        body.modal-open {
            overflow: hidden;
        }

        .modal-content {
            background-color: #1a1a1a;
            margin: 8% auto;
            padding: 30px;
            border: 1px solid #333;
            border-radius: 12px;
            width: 90%;
            max-width: 500px;
            max-height: 75vh;
            overflow-y: auto;
            color: white;
            position: relative;
        }

        .modal-header {
            margin-bottom: 20px;
            border-bottom: 1px solid #333;
            padding-bottom: 15px;
        }

        .modal-header h2 {
            margin: 0;
            color: #E5E1B3;
        }

        .close {
            color: #aaa;
            float: right;
            font-size: 28px;
            font-weight: bold;
            position: absolute;
            top: 15px;
            right: 20px;
            cursor: pointer;
        }

        .close:hover {
            color: white;
        }

        .modal-section {
            margin-bottom: 20px;
        }

        .modal-section h3 {
            color: #E5E1B3;
            margin-bottom: 10px;
        }

        .modal-section p {
            line-height: 1.6;
            margin-bottom: 10px;
        }

        .modal-link {
            color: #e01e5a;
            text-decoration: none;
            font-weight: 500;
        }

        .modal-link:hover {
            text-decoration: underline;
        }

        .coffee-button {
            display: inline-block;
            background: #FFDD00;
            color: #000;
            padding: 8px 16px;
            border-radius: 6px;
            text-decoration: none;
            font-weight: bold;
            margin-top: 10px;
        }

        .coffee-button:hover {
            background: #FFE55C;
        }

        .hayzer-link {
            color: #E5E1B3;
            text-decoration: none;
            font-weight: 500;
            border-bottom: 1px solid #E5E1B3;
            transition: all 0.2s ease;
            padding-bottom: 2px;
        }

        .hayzer-link:hover {
            color: #FF6633;
            border-bottom-color: #FF6633;
            text-decoration: none;
        }

        @media (max-width: 640px) {
            body {
                padding: 12px 12px 15px 12px;
            }

            h1 {
                font-size: 24px;
            }

            .card {
                padding: 20px;
                margin-bottom: 32px;
            }

            .modal-content {
                margin: 10% auto;
                width: 95%;
                padding: 20px;
                max-height: 80vh;
            }

            /* Mobile-friendly inputs */
            input[type="number"] {
                padding: 18px 16px;
                font-size: 18px;
                border-radius: 8px;
                -webkit-appearance: none;
                -moz-appearance: textfield;
                appearance: none;
                max-width: 150px;
                width: auto;
            }

            /* Remove spinner arrows on mobile */
            input[type="number"]::-webkit-outer-spin-button,
            input[type="number"]::-webkit-inner-spin-button {
                -webkit-appearance: none;
                margin: 0;
            }

            select {
                padding: 18px 16px;
                font-size: 18px;
                border-radius: 8px;
                -webkit-appearance: none;
                -moz-appearance: none;
                appearance: none;
                padding-right: 16px;
                max-width: 150px;
                width: auto;
            }

            /* Add dropdown icon only for specific selects on mobile */
            #fader_left,
            #fader_right,
            #effect_mode,
            #looper_mode {
                background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
                background-repeat: no-repeat;
                background-position: right 12px center;
                background-size: 16px;
                padding-right: 40px;
                max-width: 180px;
            }

            .card.settings-grid #fader_left,
            .card.settings-grid #fader_right,
            .card.settings-grid #effect_mode,
            .card.settings-grid #looper_mode {
                background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
            }

            .btn {
                padding: 18px 24px;
                font-size: 18px;
                border-radius: 8px;
                min-height: 56px;
            }

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

            label {
                font-size: 16px;
                margin-bottom: 12px;
            }

        }
   