        /* Base font size for mobile */
        html {
            font-size: 16px;
            overflow-x: hidden;
        }

        body {
            overflow-x: hidden;
            width: 100%;
            position: relative;
        }

        /* Base mobile-first styles - no media query needed */
        html {
            font-size: 16px;
        }

        .container {
            padding: 1rem;
            width: 100%;
            /* Mobile first - full width */
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        /* Tablet */
        @media screen and (min-width: 768px) {
            .container {
                width: 95%;
            }
        }



        form.container>.feature-card,
        form.container>.upload-zone,
        form.container>.btn-primary,
        form.container>.btn-success,
        form.container>.wave-container,
        form.container>form,
        form.container #processButton,
        form.container #downloadButton {
            width: 90%;
            margin: 1rem auto;
            padding: 1.5rem;
            border-radius: 0.75rem;
            box-sizing: border-box;
            display: block;
        }

        form.container #processButton,
        form.container #downloadButton {
            padding: 1rem;
        }

        /* Tablet and larger screens */
        @media screen and (min-width: 768px) {
            .container {
                width: 95%;
                max-width: 1200px;
                padding: 2rem 1rem;
            }

            .feature-card {
                width: 90%;
                margin: 1.5rem auto;
            }

            .btn-lg {
                width: 90% !important;
                padding: 1rem !important;
                margin: 0.75rem auto !important;
                font-size: 1.125rem !important;
                display: block !important;
            }

            .form-label {
                font-size: 1.1rem;
                margin-bottom: 0.75rem;
            }

            .form-check-label {
                font-size: 1.1rem;
                line-height: 1.4;
                margin-bottom: 0.5rem;
            }

            small {
                font-size: 0.9rem;
                margin-top: 0.5rem;
            }

            #speedValue,
            #pitchValue {
                font-size: 1.1rem;
                min-width: 3rem;
                text-align: center;
            }

            .section-title {
                font-size: 1.5rem;
                margin: 1rem 0;
            }

            .app-title {
                font-size: 2rem;
                margin-bottom: 1rem;
                line-height: 1.2;
            }

            .app-subtitle {
                font-size: 1.125rem;
                margin-bottom: 1.5rem;
                padding: 0 1rem;
                line-height: 1.4;
            }

            .form-range {
                height: 0.5rem;
                width: 100%;
            }

            .form-check,
            .form-label {
                font-size: 1rem;
                line-height: 1.5;
            }

            .btn-sm {
                padding: 0.5rem 1rem;
                font-size: 1rem;
            }

            .upload-zone {
                padding: 1.5rem;
                margin: 0.75rem auto;
                width: 90%;
                box-sizing: border-box;
            }

            .app-title {
                font-size: 1.75rem;
            }

            .app-subtitle {
                font-size: 1.1rem;
                padding: 0 0.5rem;
            }

            .logo-image {
                max-width: 7.5rem;
            }

            .feature-card {
                padding: 1rem;
                margin: 0 0.25rem 1rem;
            }

            .btn-lg {
                padding: 0.75rem 1.5rem;
                font-size: 1.2rem;
            }

            .controls button {
                width: 50px;
                height: 50px;
            }

            .waveform-scroll>div {
                min-width: 300px;
            }



            .form-label {
                font-size: 1.1rem;
                color: #ffffff;
                margin-bottom: 0.5rem;
            }

            .form-check-label {
                font-size: 1.1rem;
                color: #ffffff;
                line-height: 1.4;
            }

            small {
                font-size: 1rem;
                color: #ffffff !important;
                line-height: 1.4;
                display: block;
                margin-top: 0.5rem;
            }

            #speedValue,
            #pitchValue {
                color: #ffffff;
                font-size: 1.1rem;
            }

            .feature-card {
                margin-left: 0;
                margin-right: 0;
                border-radius: 8px;
                width: 100%;
            }
        }

        body {
            background: var(--dark-bg);
            color: var(--text-primary);
            font-family: 'Inter', sans-serif;
        }

        .section-title,
        .app-title {
            font-family: 'Orbitron', sans-serif;
            font-weight: 800;
            letter-spacing: 1px;
        }

        .app-subtitle {
            font-family: 'Roboto Slab', serif;
            font-style: italic;
            font-weight: 400;
        }

        .btn {
            font-family: 'Orbitron', sans-serif;
            font-weight: 700;
            letter-spacing: 1px;
            text-transform: uppercase;
            font-size: 1.1rem;
        }

        code,
        .technical {
            font-family: 'Roboto Mono', monospace;
        }

        .container {
            width: 92%;
            margin: 0 auto;
            padding: 1rem 0.5rem;
            box-sizing: border-box;
            overflow-x: hidden;
        }

        .logo-container {
            text-align: center;
            margin-bottom: 0.25rem;
        }

        .logo-image {
            max-width: 300px;
            height: auto;
            margin-bottom: 0;
        }

        .app-title {
            color: var(--text-primary);
            text-align: center;
            margin-top: 0;
            margin-bottom: 0.5rem;
            font-size: 2.5rem;
            font-family: 'Orbitron', sans-serif;
            font-weight: 800;
            letter-spacing: 1px;
        }

        .app-subtitle {
            color: var(--text-secondary);
            text-align: center;
            margin-bottom: 2rem;
            font-size: 1.1rem;
        }

        /* Feature chips row (one row; Builder chip leads with a NEW tag) */
        .chip-row {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 8px;
            margin-bottom: 1.25rem;
        }

        .chip {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            color: var(--text-secondary);
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 999px;
            padding: 0.2rem 0.7rem;
            font-size: 0.78rem;
            white-space: nowrap;
            text-decoration: none;
        }

        .chip-builder {
            color: var(--text-primary);
            border-color: var(--accent-blue);
            background: rgba(4, 150, 255, 0.12);
            font-weight: 600;
        }

        .chip-builder:hover {
            background: rgba(4, 150, 255, 0.25);
            color: #fff;
        }

        .chip-new {
            background: var(--accent-blue);
            color: #fff;
            font-family: 'Orbitron', sans-serif;
            font-size: 0.58rem;
            letter-spacing: 0.08em;
            border-radius: 999px;
            padding: 0.1rem 0.4rem;
        }

        /* Builder entry card: centered marketing-style stack (pill on top,
           generous padding, consistent 2rem section rhythm) */
        .builder-card {
            text-align: center;
            background: var(--dark-secondary);
            border: 1px solid rgba(4, 150, 255, 0.45);
            border-radius: 10px;
            padding: 2rem 2rem 2.25rem;
            margin: 0 0 2rem;
            animation: builderGlow 3s ease-in-out infinite;
        }

        @keyframes builderGlow {
            0%, 100% { box-shadow: 0 0 0 rgba(4, 150, 255, 0); }
            50% { box-shadow: 0 0 22px rgba(4, 150, 255, 0.35); }
        }

        .builder-sub {
            color: var(--text-secondary);
            font-size: 0.92rem;
            margin: 0 auto 1.25rem;
            max-width: 520px;
        }

        .builder-mock {
            max-width: 300px;
            margin: 0 auto 1.5rem;
            display: flex;
            flex-direction: column;
            gap: 7px;
        }

        .bm-clip {
            height: 10px;
            border-radius: 4px;
            margin: 0 auto;
            background: repeating-linear-gradient(90deg,
                var(--accent-blue) 0 3px, rgba(4, 150, 255, 0.25) 3px 5px,
                var(--accent-blue) 5px 7px, rgba(4, 150, 255, 0.15) 7px 10px);
            opacity: 0.85;
        }

        /* The build, animated: the three clips drop into the master track,
           the master flashes as it receives them, clips fade back in. 7s loop. */
        .builder-mock .bm-clip:nth-of-type(1) { animation: bmMerge1 7s ease-in-out infinite; }
        .builder-mock .bm-clip:nth-of-type(2) { animation: bmMerge2 7s ease-in-out infinite 0.12s; }
        .builder-mock .bm-clip:nth-of-type(3) { animation: bmMerge3 7s ease-in-out infinite 0.24s; }

        @keyframes bmMerge1 {
            0%, 42% { transform: none; opacity: 0.85; }
            58% { transform: translateY(54px) scaleX(0.45); opacity: 0; }
            62% { transform: none; opacity: 0; }
            78%, 100% { opacity: 0.85; }
        }

        @keyframes bmMerge2 {
            0%, 42% { transform: none; opacity: 0.85; }
            58% { transform: translateY(37px) scaleX(0.45); opacity: 0; }
            62% { transform: none; opacity: 0; }
            78%, 100% { opacity: 0.85; }
        }

        @keyframes bmMerge3 {
            0%, 42% { transform: none; opacity: 0.85; }
            58% { transform: translateY(20px) scaleX(0.45); opacity: 0; }
            62% { transform: none; opacity: 0; }
            78%, 100% { opacity: 0.85; }
        }

        @keyframes bmReceive {
            0%, 50% { box-shadow: none; }
            60% { box-shadow: 0 0 16px rgba(76, 175, 80, 0.65); }
            72%, 100% { box-shadow: none; }
        }

        @media (prefers-reduced-motion: reduce) {
            .builder-card, .bm-clip, .bm-master, .bm-master span { animation: none !important; }
        }

        .bm-master {
            animation: bmReceive 7s ease-in-out infinite;
            margin-top: 3px;
            height: 30px;
            border-radius: 6px;
            background: #16212c;
            display: flex;
            align-items: center;
            justify-content: space-evenly;
            padding: 0 6px;
        }

        .bm-master span {
            width: 4px;
            border-radius: 2px;
            background: #4CAF50;
            height: 30%;
            animation: bmEq 1.1s ease-in-out infinite alternate;
        }

        .bm-master span:nth-child(2n) { animation-delay: 0.15s; height: 65%; }
        .bm-master span:nth-child(3n) { animation-delay: 0.3s; height: 45%; }
        .bm-master span:nth-child(4n) { animation-delay: 0.45s; height: 80%; }
        .bm-master span:nth-child(5n) { animation-delay: 0.6s; height: 55%; }

        @keyframes bmEq {
            from { transform: scaleY(0.4); }
            to { transform: scaleY(1); }
        }

        /* Matches the site's button language (Upgrade / RESET): Orbitron,
           uppercase, subtle corners */
        .builder-cta {
            display: inline-block;
            background: var(--accent-blue);
            color: #fff;
            font-family: 'Orbitron', sans-serif;
            font-weight: 700;
            font-size: 0.9rem;
            letter-spacing: 1px;
            text-transform: uppercase;
            text-decoration: none;
            border-radius: 0.25rem;
            padding: 0.5rem 1.5rem;
            transition: background 0.2s;
        }

        .builder-cta:hover {
            background: var(--accent-blue-hover);
            color: #fff;
        }

        .upload-zone {
            width: 100%;
            margin: 1rem auto 2rem;
            padding: 2rem;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            background: var(--dark-secondary);
            border: 2px dashed #3D5A80;
            border-radius: 10px;
            box-sizing: border-box;
        }

        .upload-zone:hover,
        .upload-zone.dragover {
            border-color: var(--accent-blue);
            background: rgba(61, 90, 128, 0.1);
        }

        .section-title {
            color: var(--text-primary);
            font-size: 1.5rem;
            margin: 2rem 0 1rem;
            text-align: center;
        }

        .feature-card {
            background: var(--dark-secondary);
            border: none;
            border-radius: 10px;
            padding: 1.5rem 1.5rem 2.5rem 1.5rem;
            margin-bottom: 2rem;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .section-spacing {
            margin-bottom: 2rem;
        }

        .feature-card .section-title {
            margin-top: 0;
            margin-bottom: 1.5rem;
        }

        .form-range {
            height: 6px;
            background: var(--dark-secondary);
        }

        .form-range::-webkit-slider-thumb {
            background: var(--accent-blue);
        }

        .form-check-input {
            background-color: #1a2632;
            border: 2px solid #4d6a90;
        }

        .form-check-input:checked {
            background-color: #3D5A80;
            border-color: #ffffff;
        }

        .form-switch .form-check-input {
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
        }

        .form-switch .form-check-input:checked {
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
        }

        .btn-primary {
            background: var(--accent-blue);
            border: none;
            padding: 0.5rem 2rem;
            margin: 0.5rem;
        }

        .btn-primary:hover {
            background: #4d6a90;
        }

        .btn-outline-secondary {
            color: var(--text-secondary);
            border-color: var(--text-secondary);
        }

        .coming-soon {
            opacity: 0.6;
            cursor: not-allowed;
        }

        .disabled-section {
            opacity: 0.5;
            pointer-events: none;
        }

        .disabled-section .form-check-input:checked {
            background-color: var(--text-secondary);
            border-color: var(--text-secondary);
        }

        .disabled-section .form-check-label,
        .disabled-section .form-label {
            color: var(--text-secondary);
        }

        .coming-soon-badge {
            background: var(--accent-blue);
            font-size: 0.7rem;
            padding: 0.2rem 0.5rem;
            border-radius: 4px;
        }

        .wave-container {
            background: var(--dark-secondary);
            border-radius: 10px;
            padding: 1.5rem 1.5rem 1.75rem;
            margin: 1rem 0 2rem;
            position: relative;
        }

        .waveform-scroll {
            overflow-x: auto;
            margin-bottom: 1rem;
            max-width: 100%;
            width: 100%;
        }

        .waveform-scroll::-webkit-scrollbar {
            height: 8px;
        }

        .waveform-scroll::-webkit-scrollbar-track {
            background: var(--dark-secondary);
            border-radius: 4px;
        }

        .waveform-scroll::-webkit-scrollbar-thumb {
            background: var(--dark-bg);
            border-radius: 4px;
        }

        /* No overflow clamp here: wavesurfer scrolls horizontally inside
           #waveform when zoomed in (#194); clipping hid the track's tail. */
        .waveform-scroll>div {
            width: 100%;
        }

        #waveform {
            width: 100%;
        }

        .wave-note {
            text-align: center;
            font-size: 0.75rem;
            color: var(--text-secondary);
            opacity: 0.65;
            margin: 0.85rem 0 0;
        }

        /* The waveform always fits its box now (no zoom); keep any stray
           overflow clipped so nothing can ever grow a scrollbar again. */
        #waveform wave {
            overflow: hidden !important;
        }

        #waveform {
            background: transparent;
        }

        .controls {
            display: flex;
            justify-content: center;
            gap: 1rem;
            margin: 1rem 0;
        }

        .controls button {
            width: 50px;
            height: 50px;
            border-radius: 25px;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--accent-blue);
            color: white;
            cursor: pointer;
            transition: all 0.2s ease;
            font-size: 1.2rem;
            margin: 0 5px;
        }

        .controls button:hover {
            background: #4d6a90;
        }

        .controls button:disabled {
            background: #2a3950;
            cursor: not-allowed;
        }


        .alert {
            background: var(--dark-secondary);
            border: 1px solid var(--accent-blue);
            color: var(--text-secondary);
        }

        .progress {
            background: var(--dark-secondary);
        }

        .progress-bar {
            background: var(--accent-blue);
        }

        .form-label {
            font-family: 'Roboto', Arial, sans-serif;
            font-size: 1.1rem;
            font-weight: 500;
            color: #ffffff;
            margin-bottom: 0.75rem;
            text-transform: none;
        }

        .form-check-label:not(small + .form-check-label) {
            font-family: 'Roboto', Arial, sans-serif;
            font-size: 1.1rem;
            font-weight: 500;
            color: #ffffff;
            line-height: 1.4;
            text-transform: none;
        }

        small+.form-check-label {
            font-weight: 400;
        }

        small {
            font-size: 1rem;
            color: #ffffff !important;
            line-height: 1.4;
        }

        #speedValue,
        #pitchValue {
            color: #ffffff;
            font-size: 1.1rem;
        }

        .btn-logout {
            position: absolute;
            right: 1rem;
        }

        /* Tablet */
        @media screen and (min-width: 768px) {
            .logo-image {
                max-width: 180px;
            }
        }

        /* Desktop */
        @media screen and (min-width: 1024px) {
            .logo-image {
                max-width: 220px;
            }
        }

        /* Navigation bar styling */
        .nav-container {
            background-color: #1e2b38;
            padding: 0.75rem 0;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1030;
        }

        body {
            padding-top: 88px;
        }

        .navbar-content {
            width: 95%;
            max-width: none;
            margin: 0 auto;
            padding: 0 1rem;
        }

        .navbar-brand {
            font-family: 'Orbitron', sans-serif;
            font-weight: 800;
            color: var(--text-primary);
            font-size: 1.75rem;
            margin: 0;
            padding: 0;
        }

        .nav-link {
            color: #a9b6c4;
            transition: color 0.2s ease;
            font-weight: 500;
            padding: 0.5rem 1rem;
            margin: 0 0.25rem;
        }

        .nav-link:hover {
            color: var(--text-primary);
        }

        .nav-link.active {
            color: var(--text-primary);
            background-color: rgba(255, 255, 255, 0.1);
            border-radius: 0.25rem;
        }

        .user-welcome {
            color: #a9b6c4;
            font-weight: 500;
        }

        .nav-btn {
            background-color: transparent;
            border: 1px solid rgba(255, 255, 255, 0.3);
            color: white;
            padding: 0.375rem 1.5rem;
            border-radius: 0.25rem;
            font-weight: 500;
            font-size: 0.9rem;
            transition: all 0.2s;
        }

        .nav-btn:hover {
            background-color: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.5);
        }
        /* pricing table */
        .a-subscription-option{
            text-decoration: none !important;
        }

        .subscription-option{
            background-color: rgba(var(--bs-primary-rgb));
            border-radius: 10px;
            border-width: 2px;
            border-style: solid;
            border-color: rgba(var(--bs-primary-rgb), 0.5);
            padding: 1.25rem;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

        }
        @media (hover: hover) {
            .subscription-option:hover {
                transform: scale(1.06);
            }
        }

        .subscription-title{
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
        }

        .price{
            font-size: 2rem;
            font-weight: 700;
        }
        .modal .feature-icon{
        color: var(--bs-white) !important;
        }

.format-description {
            color: var(--text-primary);
            font-size: 1.1rem;
            margin-bottom: 2rem;
        }

        .format-info {
            text-align: left;
        }

        .format-description {
            color: var(--text-primary);
            font-size: 1.1rem;
            font-weight: 500;
        }

        .format-note {
            color: var(--text-secondary);
            font-size: 0.95rem;
            line-height: 1.4;
        }

        .format-selection .form-check {
            margin-bottom: 1rem;
        }

        .format-selection .form-check-label {
            color: var(--text-primary);
        }

        .format-selection .format-label {
            font-weight: 500;
            display: block;
            margin-bottom: 0.25rem;
        }

        .format-selection small {
            color: var(--text-secondary) !important;
            font-weight: normal;
        }

        .coming-soon-note {
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            padding-top: 1rem;
            margin-top: 1.5rem;
        }

        .coming-soon-note small {
            color: var(--text-secondary) !important;
            font-style: italic;
        }
        /* STANDARD PAGE WIDTH (July 2026): content is 95% of the viewport,
           capped at 1600px, centered. The Builder uses the same numbers.
           Placed last so it beats Bootstrap's .container caps. */
        .container {
            width: 95%;
            max-width: 1600px;
            margin-left: auto;
            margin-right: auto;
        }

        .navbar-content {
            width: 95%;
            max-width: 1600px;
        }
