/* ===== Listening Section Styles ===== */
    .waveform-container {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        height: 80px;
        margin: 24px auto;
        max-width: 300px;
    }
    .waveform-bar {
        width: 6px;
        height: 20px;
        background: var(--bg-tertiary);
        border-radius: 3px;
        transition: background 0.3s ease;
    }
    .waveform-container.playing .waveform-bar {
        background: var(--gradient-accent);
        background: linear-gradient(180deg, var(--green-400), var(--blue-500));
        animation: waveform 0.8s ease-in-out infinite alternate;
    }
    .waveform-container.playing .waveform-bar:nth-child(1)  { animation-delay: 0.00s; height: 30px; }
    .waveform-container.playing .waveform-bar:nth-child(2)  { animation-delay: 0.05s; height: 50px; }
    .waveform-container.playing .waveform-bar:nth-child(3)  { animation-delay: 0.10s; height: 35px; }
    .waveform-container.playing .waveform-bar:nth-child(4)  { animation-delay: 0.15s; height: 65px; }
    .waveform-container.playing .waveform-bar:nth-child(5)  { animation-delay: 0.20s; height: 45px; }
    .waveform-container.playing .waveform-bar:nth-child(6)  { animation-delay: 0.25s; height: 70px; }
    .waveform-container.playing .waveform-bar:nth-child(7)  { animation-delay: 0.30s; height: 40px; }
    .waveform-container.playing .waveform-bar:nth-child(8)  { animation-delay: 0.35s; height: 55px; }
    .waveform-container.playing .waveform-bar:nth-child(9)  { animation-delay: 0.40s; height: 30px; }
    .waveform-container.playing .waveform-bar:nth-child(10) { animation-delay: 0.45s; height: 60px; }
    .waveform-container.playing .waveform-bar:nth-child(11) { animation-delay: 0.50s; height: 45px; }
    .waveform-container.playing .waveform-bar:nth-child(12) { animation-delay: 0.55s; height: 70px; }
    .waveform-container.playing .waveform-bar:nth-child(13) { animation-delay: 0.60s; height: 35px; }
    .waveform-container.playing .waveform-bar:nth-child(14) { animation-delay: 0.65s; height: 55px; }
    .waveform-container.playing .waveform-bar:nth-child(15) { animation-delay: 0.70s; height: 40px; }
    .waveform-container.playing .waveform-bar:nth-child(16) { animation-delay: 0.75s; height: 65px; }
    .waveform-container.playing .waveform-bar:nth-child(17) { animation-delay: 0.80s; height: 30px; }
    .waveform-container.playing .waveform-bar:nth-child(18) { animation-delay: 0.85s; height: 50px; }
    .waveform-container.playing .waveform-bar:nth-child(19) { animation-delay: 0.90s; height: 35px; }
    .waveform-container.playing .waveform-bar:nth-child(20) { animation-delay: 0.95s; height: 45px; }
    @keyframes waveform {
        0%   { transform: scaleY(0.3); opacity: 0.6; }
        100% { transform: scaleY(1);   opacity: 1; }
    }
    .waveform-container.finished .waveform-bar {
        background: var(--green-400);
        height: 20px;
        opacity: 0.4;
    }

    .listening-play-btn {
        width: 90px;
        height: 90px;
        border-radius: 50%;
        border: none;
        background: var(--gradient-accent);
        color: white;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 6px 30px rgba(99, 102, 241, 0.35);
        transition: all 0.3s ease;
    }
    .listening-play-btn:hover {
        transform: scale(1.08);
        box-shadow: 0 8px 40px rgba(99, 102, 241, 0.5);
    }
    .listening-play-btn:active { transform: scale(0.96); }
    .listening-play-btn svg { width: 40px; height: 40px; }
    .listening-play-btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
        transform: none;
    }

    .speed-btn {
        padding: 6px 14px;
        border-radius: 8px;
        border: 1px solid var(--border-color);
        background: var(--bg-glass-light);
        color: var(--text-secondary);
        font-size: 0.82rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        font-family: 'Inter', sans-serif;
    }
    .speed-btn:hover { border-color: var(--green-400); color: var(--green-400); }
    .speed-btn.active {
        background: var(--gradient-accent);
        border-color: transparent;
        color: white;
    }

    .replay-counter {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 6px 14px;
        border-radius: 8px;
        background: rgba(99, 102, 241, 0.1);
        border: 1px solid rgba(99, 102, 241, 0.2);
        color: var(--blue-400);
        font-size: 0.85rem;
        font-weight: 500;
    }

    /* ===== Simulation Mode Styles ===== */
    .simulation-card {
        position: relative;
        background: var(--bg-card);
        border-radius: 16px;
        padding: 28px;
        margin-bottom: 32px;
        cursor: pointer;
        transition: all 0.3s ease;
        overflow: hidden;
        border: 2px solid transparent;
        background-clip: padding-box;
    }
    .simulation-card::before {
        content: '';
        position: absolute;
        inset: -2px;
        border-radius: 18px;
        background: linear-gradient(135deg, #4F46E5, #6366F1, #6366F1, #7C3AED, #4F46E5);
        background-size: 300% 300%;
        animation: simGradient 4s ease infinite;
        z-index: -1;
    }
    .simulation-card::after {
        content: '';
        position: absolute;
        inset: -8px;
        border-radius: 24px;
        background: linear-gradient(135deg, rgba(79,70,229,0.3), rgba(99,102,241,0.3), rgba(124,58,237,0.3));
        background-size: 300% 300%;
        animation: simGradient 4s ease infinite;
        filter: blur(20px);
        z-index: -2;
        opacity: 0.6;
    }
    @keyframes simGradient {
        0% { background-position: 0% 50%; }
        50% { background-position: 100% 50%; }
        100% { background-position: 0% 50%; }
    }
    .simulation-card:hover {
        transform: translateY(-4px);
    }
    .simulation-card:hover::after {
        opacity: 1;
    }
    .simulation-card-inner {
        display: flex;
        align-items: center;
        gap: 20px;
        flex-wrap: wrap;
    }
    .simulation-card-icon {
        width: 64px;
        height: 64px;
        border-radius: 16px;
        background: linear-gradient(135deg, #4F46E5, #6366F1);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 32px;
        flex-shrink: 0;
    }
    .simulation-card-content { flex: 1; min-width: 200px; }
    .simulation-card-content h3 {
        font-size: 1.3rem;
        font-weight: 800;
        margin-bottom: 4px;
        background: linear-gradient(135deg, #6366F1, #818CF8);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    .simulation-card-content p {
        color: var(--text-secondary);
        font-size: 0.95rem;
        margin: 0;
    }
    .simulation-card-badges {
        display: flex;
        gap: 8px;
        margin-top: 10px;
        flex-wrap: wrap;
    }
    .sim-badge {
        padding: 4px 12px;
        border-radius: 20px;
        font-size: 0.78rem;
        font-weight: 600;
        background: rgba(99,102,241,0.12);
        color: var(--green-400);
        border: 1px solid rgba(99,102,241,0.2);
    }
    .simulation-card-arrow {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: var(--bg-tertiary);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        transition: all 0.3s ease;
    }
    .simulation-card:hover .simulation-card-arrow {
        background: linear-gradient(135deg, #4F46E5, #6366F1);
    }
    /* Simulation timer styles */
    .sim-timer-danger { color: #EF4444 !important; animation: timerPulse 1s ease infinite; }
    .sim-timer-danger svg { stroke: #EF4444 !important; }
    @keyframes timerPulse {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.6; }
    }
    /* Section divider */
    .section-divider-overlay {
        position: fixed; inset: 0; z-index: 9999;
        background: rgba(0,0,0,0.7);
        display: flex; align-items: center; justify-content: center;
        backdrop-filter: blur(8px);
    }
    .section-divider-box {
        background: var(--bg-secondary);
        border-radius: 20px;
        padding: 40px 50px;
        text-align: center;
        border: 2px solid var(--border-glow);
        box-shadow: var(--shadow-lg);
        max-width: 90%;
    }
    .section-divider-box h2 { font-size: 1.6rem; margin-bottom: 8px; }
    .section-divider-box p { color: var(--text-secondary); margin-bottom: 20px; }
    /* Simulation results extras */
    .sim-results-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 16px;
        margin: 20px 0;
    }
    .sim-result-card {
        background: var(--bg-card);
        border-radius: 14px;
        padding: 20px;
        text-align: center;
        border: 1px solid var(--border-color);
    }
    .sim-result-card .sim-label { color: var(--text-secondary); font-size: 0.85rem; margin-bottom: 6px; }
    .sim-result-card .sim-value { font-size: 1.8rem; font-weight: 800; }
    .sim-result-card .sim-sub { color: var(--text-muted); font-size: 0.8rem; margin-top: 4px; }
    .sim-estimated { color: #F59E0B; }
    .share-buttons { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
    .share-btn {
        display: inline-flex; align-items: center; gap: 6px;
        padding: 10px 18px; border-radius: 10px; font-size: 0.9rem;
        font-weight: 600; border: none; cursor: pointer;
        transition: all 0.2s ease; color: white; text-decoration: none;
    }
    .share-btn-whatsapp { background: #25D366; }
    .share-btn-whatsapp:hover { background: #1EBE57; }
    .share-btn-twitter { background: #1DA1F2; }
    .share-btn-twitter:hover { background: #0D95E8; }
    .share-btn-copy { background: var(--bg-tertiary); color: var(--text-primary); }
    .share-btn-copy:hover { background: var(--bg-card-hover); }