  /* Main tool */
        .bass-app {
            width: 100%;
            max-width: 800px;
            min-height: 600px;
            margin: auto;
            background: #ffffff;
            border: 1px solid #dfe3e8;
            border-radius: 18px;
            overflow: hidden;
            box-shadow: 0 14px 38px rgba(16, 24, 40, 0.10);
        }

        /* Header */
        .app-header {
            padding: 20px 22px;
            color: #ffffff;
            background: linear-gradient(135deg, #111318, #292c33);
        }

        .app-header h1 {
            margin: 0 0 7px;
            font-size: 25px;
            font-weight: 800;
        }

        .app-header p {
            margin: 0;
            font-size: 13px;
            color: #c7cbd2;
            line-height: 1.5;
        }

        .header-tag {
            display: inline-block;
            margin-bottom: 10px;
            padding: 5px 10px;
            border: 1px solid #555a65;
            border-radius: 20px;
            color: #eeeeee;
            font-size: 10px;
            letter-spacing: 1px;
        }

        .app-body {
            padding: 17px;
        }

        /* Panels */
        .panel {
            height: 100%;
            padding: 16px;
            background: #ffffff;
            border: 1px solid #e3e6ec;
            border-radius: 13px;
            box-shadow: 0 5px 17px rgba(17, 24, 39, 0.05);
        }

        .panel-title {
            margin: 0 0 14px;
            color: #22252b;
            font-size: 15px;
            font-weight: 800;
        }

        /* Frequency display */
        .output-screen {
            overflow: hidden;
            padding: 21px 12px 15px;
            color: #ffffff;
            text-align: center;
            border-radius: 12px;
            background: linear-gradient(145deg, #17191f, #07080a);
            box-shadow: inset 0 0 25px rgba(255,255,255,0.03),
                        0 5px 14px rgba(0,0,0,0.10);
        }

        .freq-value {
            font-size: 49px;
            line-height: 1.05;
            font-weight: 800;
            letter-spacing: -1.5px;
        }

        .freq-value small {
            color: #b6bac3;
            font-size: 16px;
            letter-spacing: 0;
        }

        .freq-name {
            margin-top: 7px;
            color: #aeb4c0;
            font-size: 12px;
        }

        /* Animated visualizer */
        .waveform {
            height: 45px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
            margin-top: 12px;
        }

        .waveform span {
            width: 4px;
            height: 4px;
            border-radius: 4px;
            background: #e8e8e8;
            opacity: 0.75;
        }

        .waveform.active span {
            animation: wave 0.6s ease-in-out infinite alternate;
        }

        .waveform.active span:nth-child(3n) {
            animation-delay: 0.18s;
        }

        .waveform.active span:nth-child(2n) {
            animation-delay: 0.3s;
        }

        @keyframes wave {
            from {
                height: 5px;
                opacity: 0.4;
            }
            to {
                height: var(--height, 28px);
                opacity: 1;
            }
        }

        .play-state {
            margin-top: 8px;
            color: #d3d6dc;
            font-size: 11px;
        }

        .state-dot {
            display: inline-block;
            width: 7px;
            height: 7px;
            margin-right: 5px;
            border-radius: 50%;
            background: #818792;
        }

        .state-dot.on {
            background: #66e0a3;
            box-shadow: 0 0 8px #66e0a3;
        }

        /* Buttons */
        .btn-dark-gradient {
            color: #ffffff;
            background: linear-gradient(
                180deg,
                #444444 0%,
                #202020 60%,
                #080808 100%
            );
            border: 1px solid #222222;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 750;
            box-shadow: 0 4px 9px rgba(0,0,0,0.12);
            transition: background 0.15s ease;
        }

        .btn-dark-gradient:hover,
        .btn-dark-gradient:focus {
            color: #ffffff;
            background: linear-gradient(
                180deg,
                #555555,
                #252525,
                #090909
            );
        }

        .btn-dark-gradient:disabled {
            color: #ffffff;
            opacity: 0.45;
            cursor: not-allowed;
        }

        /* Form controls */
        .form-label {
            margin-bottom: 6px;
            color: #3d4149;
            font-size: 12px;
            font-weight: 750;
        }

        .form-control,
        .form-select {
            min-height: 38px;
            border-color: #dce0e7;
            border-radius: 8px;
            font-size: 13px;
        }

        .form-control:focus,
        .form-select:focus {
            border-color: #777777;
            box-shadow: 0 0 0 0.2rem rgba(30,30,30,0.08);
        }

        .form-range {
            accent-color: #171717;
        }

        .range-meta {
            display: flex;
            justify-content: space-between;
            color: #777f8c;
            font-size: 10px;
        }

        /* Frequency presets */
        .preset-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 7px;
        }

        .preset {
            padding: 9px 3px;
            color: #444a54;
            background: #f7f8fa;
            border: 1px solid #e0e3e8;
            border-radius: 8px;
            font-size: 12px;
            font-weight: 750;
            cursor: pointer;
        }

        .preset:hover {
            background: #eceef2;
        }

        .preset.selected {
            color: #ffffff;
            background: #191a1e;
            border-color: #191a1e;
            box-shadow: 0 3px 7px rgba(0,0,0,0.12);
        }

        .setting-box {
            padding: 11px;
            background: #f7f8fa;
            border: 1px solid #e9ebf0;
            border-radius: 10px;
        }

        .volume-value {
            font-size: 12px;
            font-weight: 800;
        }

        /* Statistics */
        .stats {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
        }

        .stat {
            padding: 10px;
            background: #ffffff;
            border: 1px solid #e7e9ee;
            border-radius: 9px;
        }

        .stat span {
            display: block;
            margin-bottom: 5px;
            color: #7b818b;
            font-size: 10px;
        }

        .stat strong {
            color: #202228;
            font-size: 14px;
            overflow-wrap: anywhere;
        }

        .section-caption {
            margin-bottom: 9px;
            color: #858b96;
            font-size: 10px;
            font-weight: 800;
            letter-spacing: 0.7px;
        }

        .safety {
            padding: 10px;
            color: #92400e;
            background: #fff7ed;
            border: 1px solid #fed7aa;
            border-radius: 9px;
            font-size: 11px;
            line-height: 1.5;
        }

        .footer-line {
            margin-top: 13px;
            color: #9298a2;
            text-align: center;
            font-size: 10px;
        }

        @media (max-width: 575px) {
            body {
                padding: 7px 4px;
            }

            .app-header {
                padding: 17px;
            }

            .app-header h1 {
                font-size: 22px;
            }

            .app-body {
                padding: 10px;
            }

            .panel {
                padding: 13px;
            }

            .freq-value {
                font-size: 44px;
            }
        }