/* Core Variables */
:root {
    /* Colors */
    --primary: #FFFFFF;
    --secondary: #000000;
    --accent: #000000;
    --accent-gradient: linear-gradient(135deg, #000000 0%, #333333 100%);
    --accent-hover: #333333;
    --success: #000000;
    --warning: #ffd60a;
    --error: #ff0844;
    --background: #ffffff;
    --surface: #f8f9fa;
    --text: #000000;
    --text-secondary: #4a4a4a;
    --panel-bg: rgba(255, 255, 255, 0.98);
    --border-color: rgba(0, 0, 0, 0.1);
    --hover-bg: #f0f2f5;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.15);
    
    /* Animations */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Layout */
    --container-padding: 1.5rem;
    --section-spacing: 4rem;
    --border-radius: 12px;
    
    /* Z-indices */
    --z-modal: 9999;
    --z-overlay: 9998;
    --z-dropdown: 100;
    --z-header: 50;
}

/* Reset & Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    padding-top: 75px; /* Adjust based on header height */
}


/* Header Styles */
header {
    background: var(--primary);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem var(--container-padding);
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    box-shadow: var(--shadow-md);
}

header {
    background: var(--primary);
    border-bottom: 1px solid var(--border-color);
    position: fixed; /* Change from sticky to fixed */
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000; /* Higher z-index */
    box-shadow: var(--shadow-md);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.company-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--secondary);
    margin: 0;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--accent);
}

.mobile-menu {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Container Layout */
.container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: var(--container-padding);
    max-width: 1800px;
    margin: 0 auto;
}

/* Mobile Tabs */
.mobile-tabs {
    display: none;
    margin-bottom: 1rem;
}

.tab-buttons {
    display: flex;
    gap: 0.5rem;
    background: var(--surface);
    padding: 0.5rem;
    border-radius: var(--border-radius);
}

.tab-button {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: calc(var(--border-radius) - 4px);
    background: transparent;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.tab-button.active {
    background: var(--accent-gradient);
    color: var(--primary);
}

/* Panel Styles */
.panel {
    background: var(--panel-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    height: calc(100vh - 12rem);
    overflow-y: auto;
    position: relative;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    position: sticky;
    top: 0;
    background: var(--panel-bg);
    z-index: var(--z-dropdown);
    padding: 0.5rem 0;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.panel-actions {
    display: flex;
    gap: 0.5rem;
}

.panel-action-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.panel-action-btn:hover {
    background: var(--hover-bg);
    color: var(--accent);
}

/* Input Section */
.input-container {
    position: relative;
    margin-bottom: 1rem;
}

textarea {
    width: 100%;
    height: 150px;
    background: var(--primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    font-family: inherit;
    font-size: 0.875rem;
    resize: vertical;
    transition: var(--transition-normal);
}

textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.input-features {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.char-count {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.char-count.warning {
    color: var(--warning);
}

.char-count.danger {
    color: var(--error);
}

.auto-save-status {
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0;
    transition: var(--transition-fast);
}

.auto-save-status.visible {
    opacity: 1;
}

/* Voice Selection */
.voice-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
    position: static;
    top: 75px; /* Header height */
    background: var(--panel-bg);
    z-index: 100;
    padding: 0.5rem 0;
}

.search-box input,
.filter-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--primary);
    color: var(--text);
    font-family: inherit;
    font-size: 0.875rem;
    transition: var(--transition-fast);
}

.search-box input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.voice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    padding-top: 0.5rem;
    max-height: calc(200vh - 900px); /* Adjust height to leave space for other elements */
    overflow-y: auto;
    padding-right: 8px; /* Space for scrollbar */
}

.voice-option {
    background: var(--primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.75rem;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.voice-option:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.voice-option.selected {
    background: var(--accent-gradient);
    border-color: transparent;
    color: var(--primary);
}

.voice-info {
    flex: 1;
}

.voice-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
}

.voice-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.voice-detail {
    padding: 0.25rem 0.5rem;
    background: var(--surface);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

.voice-option.selected .voice-detail {
    background: rgba(255, 255, 255, 0.2);
    color: var(--primary);
}

/* Preview Button */
.preview-btn {
    background: var(--accent-gradient);
    color: var(--primary);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    margin-left: 0.5rem;
    flex-shrink: 0;
}

.preview-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

/* Generated Audio Section */
.generated-audio-notification {
    background: var(--surface);
    padding: 0.75rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--accent);
    font-size: 0.8125rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.generated-audio-notification i {
    color: var(--accent);
}

.generated-audio {
    background: var(--primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    transition: var(--transition-normal);
}

.generated-audio:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.audio-info {
    margin-bottom: 0.75rem;
}

.audio-text {
    color: var(--text);
    margin-bottom: 0.5rem;
    font-weight: 500;
    line-height: 1.5;
    font-size: 0.875rem;
}

.audio-metadata {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.audio-metadata span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.audio-metadata i {
    color: var(--accent);
}

.audio-visualizer {
    background: var(--surface);
    border-radius: 12px;
    overflow: hidden;
    min-height: 40px;
    margin: 0.75rem 0;
}

.audio-controls {
    display: flex;
    gap: 0.5rem;
}

.audio-control-btn {
    flex: 1;
    padding: 0.625rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    font-weight: 500;
    font-size: 0.8125rem;
}

.play-btn {
    background: var(--accent-gradient);
    color: var(--primary);
}

.play-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.download-btn {
    background: var(--surface);
    color: var(--accent);
}

.download-btn:hover {
    background: var(--hover-bg);
}

.delete-btn {
    background: rgba(255, 8, 68, 0.1);
    color: var(--error);
}

.delete-btn:hover {
    background: var(--error);
    color: var(--primary);
}

/* Enhanced Modal Styles */
.premium-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.premium-modal.show {
    opacity: 1;
    visibility: visible;
}

.premium-modal-content {
    background: var(--panel-bg);
    border-radius: 16px;
    padding: 24px;
    width: 90%;
    max-width: 400px;
    transform: translateY(20px);
    opacity: 0;
    transition: transform var(--transition-normal), opacity var(--transition-normal);
    box-shadow: var(--shadow-xl);
    position: relative;
}

.premium-modal.show .premium-modal-content {
    transform: translateY(0);
    opacity: 1;
}

/* Button Styles */
.cyber-button {
    background: var(--accent-gradient);
    color: var(--primary);
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    width: 100%;
    margin-bottom: 0.75rem;
    overflow: hidden;
    position: relative;
}

.cyber-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cyber-button:active {
    transform: translateY(1px);
}

.cyber-button__text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.cyber-button.processing {
    opacity: 0.8;
    cursor: not-allowed;
}



/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: var(--z-modal);
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background: var(--panel-bg);
    border-radius: 16px;
    max-width: 500px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 1.5rem;
    box-shadow: var(--shadow-xl);
    width: 90%;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--accent);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.modal-actions button {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-normal);
    min-width: 100px;
}

.modal-actions .cancel-btn {
    background: var(--surface);
    color: var(--text);
}

.modal-actions .confirm-btn {
    background: var(--accent-gradient);
    color: var(--primary);
}

.modal-actions button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Content Sections */
.content-section {
    padding: var(--section-spacing) var(--container-padding);
    border-bottom: 1px solid var(--border-color);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.content-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--primary);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* Tutorial Grid */
.tutorial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.tutorial-card {
    background: var(--primary);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.tutorial-step {
    width: 40px;
    height: 40px;
    background: var(--accent-gradient);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
}

/* Use Cases Grid */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.use-case-card {
    background: var(--primary);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
}

.use-case-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.use-case-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 3rem auto 0;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-question {
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.faq-question i {
    color: var(--accent);
    transition: var(--transition-fast);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal), padding var(--transition-normal);
}

.faq-item.open .faq-answer {
    padding: 0 0 1.5rem;
}

.faq-item.open .faq-question i {
    transform: rotate(180deg);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-card {
    background: var(--primary);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.contact-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    background: var(--surface);
    padding: 4rem var(--container-padding) 1.5rem;
    margin-top: var(--section-spacing);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.footer-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-section p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section a:hover {
    color: var(--accent);
    transform: translateX(4px);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition-normal);
}

.social-link:hover {
    background: var(--accent-gradient);
    border-color: transparent;
    color: var(--primary);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Enhanced Toast Notifications */
.premium-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 12px 20px;
    border-radius: 12px;
    background: var(--panel-bg);
    color: var(--text);
    box-shadow: var(--shadow-lg);
    z-index: var(--z-modal);
    transform: translateY(100%);
    opacity: 0;
    transition: transform var(--transition-normal), opacity var(--transition-normal);
    max-width: 90%;
}

.premium-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.premium-toast.success {
    background: var(--accent-gradient);
    color: var(--primary);
}

.premium-toast.error {
    background: var(--error);
    color: var(--primary);
}

/* Screen Reader Only */
.screen-reader-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent);
    color: var(--primary);
    padding: 8px 16px;
    z-index: var(--z-modal);
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Mobile Optimizations */
@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1rem;
    }
    
    .mobile-tabs {
        display: block;
    }

    .mobile-menu {
        display: flex;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 73px;
        left: 0;
        width: 100%;
        height: calc(100vh - 73px);
        background: var(--primary);
        padding: 1rem;
        box-shadow: var(--shadow-md);
        z-index: 1000;
        flex-direction: column;
    }

    .nav-links.show {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 0.75rem;
        border-radius: 8px;
    }

    .nav-links a:hover {
        background: var(--hover-bg);
    }

    .panel {
        padding: 1rem;
        border-radius: 16px;
        min-height: 500px; /* Add minimum height to panel */
        max-height: 1000px; /* Add minimum height to panel */
    }

    .voice-grid {
        grid-template-columns: 1fr !important; /* Force single column */
        min-height: 400px !important; /* Force minimum grid height */
        height: auto !important;
        max-height: calc(100vh - 250px) !important; /* Remove max height limit */
        margin-top: 1rem !important;
            align-items: start !important; /* Prevent stretching */
    align-content: flex-start !important; /* Keep items at top */

    }

    .section-title {
        font-size: 1.75rem;
    }

    .input-container textarea {
        min-height: 120px;
        font-size: 16px;
        padding: 12px;
    }

    .voice-filters {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        position: static;
        top: 0;
        z-index: var(--z-dropdown);
    }

    .search-box input,
    .filter-select {
        height: 40px;
        padding: 8px 12px;
        font-size: 14px;
    }

    .premium-modal-content {
        width: calc(100% - 32px);
        margin: 16px;
        padding: 16px;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
        --section-spacing: 3rem;
    }

    .header-content {
        padding: 0.75rem;
    }

    .company-title {
        font-size: 1.5rem;
    }

    .panel {
        padding: 1rem;
        border-radius: 16px;
    }

    .voice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    padding-top: 0.75rem;
    height: auto;
    min-height: 400px;
    max-height: calc(100vh - 250px);
    overflow-y: auto;
    padding-right: 8px; /* Space for scrollbar */
    align-items: start !important; /* Prevent stretching */
    align-content: flex-start !important; /* Keep items at top */
    
}

    .voice-option {
        padding: 12px;
        min-height: auto;
    }

    .voice-name {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .voice-details {
        gap: 4px;
    }

    .voice-detail {
        padding: 2px 6px;
        font-size: 11px;
    }

    .preview-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .generated-audio {
        padding: 12px;
        margin-bottom: 8px;
    }

    .audio-text {
        font-size: 13px;
        line-height: 1.4;
    }

    .audio-metadata {
        gap: 8px;
        font-size: 11px;
    }

    .audio-controls {
        display: flex;
        gap: 6px;
        margin-top: 8px;
    }

    .audio-control-btn {
        flex: 1;
        padding: 8px;
        font-size: 12px;
    }

    .audio-control-btn i {
        margin-right: 4px;
    }

    .content-section h2 {
        font-size: 1.5rem;
    }

    .features-grid,
    .tutorial-grid,
    .use-cases-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .premium-toast {
        left: 16px;
        right: 16px;
        bottom: 16px;
        text-align: center;
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-actions button {
        width: 100%;
    }
    
/* Voice Selection Mobile Optimizations */
@media (max-width: 768px) {
    .voice-filters {
        grid-template-columns: repeat(2, 1fr); /* Two columns for filters */
        gap: 6px; /* Reduced gap */
        padding: 6px 0; /* Reduced padding */
        top: 65px;
    }

    .search-box input,
    .filter-select {
        height: 36px; /* Reduced height */
        padding: 6px 8px; /* Reduced padding */
        font-size: 13px; /* Smaller font */
        min-height: 36px; /* Ensure consistent height */
    }
}

main {
        padding-top: 80px; /* Slightly smaller for mobile */
    }

.nav-links {
    top: 75px; /* Header height */
}
    
}

@media (max-width: 480px) {
    :root {
        --container-padding: 0.75rem;
        --section-spacing: 2rem;
    }

    .panel {
        padding: 12px;
    }
    
/* Even smaller screens */
    .voice-filters {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* Keep two columns but smaller */
        gap: 4px; /* Further reduced gap */
    }

    .search-box input,
    .filter-select {
        height: 32px; /* Further reduced height */
        padding: 4px 6px; /* Smaller padding */
        font-size: 12px; /* Smaller font */
        min-height: 32px; /* Ensure consistent height */
    }

    /* Optimize dropdown arrows */
    .filter-select {
        padding-right: 20px; /* Space for dropdown arrow */
        background-position: calc(100% - 6px) center; /* Adjust arrow position */
    }

    .voice-option {
        padding: 8px;
    }

    .preview-btn {
        width: 24px;
        height: 24px;
    }

    .audio-visualizer {
        height: 40px !important;
    }

    .audio-controls {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .audio-control-btn {
        flex-basis: calc(33.333% - 4px);
        font-size: 11px;
        padding: 6px;
    }

    .cyber-button {
        padding: 12px;
        font-size: 14px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Improved Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus States */
:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.2);
}

:focus:not(:focus-visible) {
    box-shadow: none;
}

:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.2);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--surface);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}

/* Support Button Widget Styles */
.support-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}

.support-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: #000000;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.support-button i {
    font-size: 14px;
}

.support-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.support-modal {
    display: none;
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 100%;
    max-width: 400px;
    background: var(--panel-bg);
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    z-index: var(--z-modal);
}

.support-modal.show {
    display: block;
    animation: slideUp 0.3s ease-out;
}

.support-modal-content {
    padding: 24px;
}

.support-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.support-modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.support-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    transition: var(--transition-fast);
}

.support-close:hover {
    color: var(--accent);
}

.support-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    transition: var(--transition-fast);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.support-submit {
    background: var(--accent-gradient);
    color: var(--primary);
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-normal);
}

.support-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .support-modal {
        bottom: 80px;
        right: 16px;
        left: 16px;
        width: auto;
    }
    
    .support-button {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* Print Styles */

/* Print Styles */
@media print {
    .panel-actions,
    .voice-filters,
    .mobile-tabs,
    .audio-controls,
    .preview-btn {
        display: none !important;
    }

    .panel {
        height: auto !important;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }

    .voice-option {
        page-break-inside: avoid;
    }

    .generated-audio {
        page-break-inside: avoid;
    }
}

.no-audio-message,
.error-message {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.no-audio-message {
    background: var(--surface);
    color: var(--text-secondary);
}

.error-message {
    background: rgba(255, 0, 0, 0.1);
    color: #ff0000;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --accent-gradient: var(--accent);
        --shadow-sm: none;
        --shadow-md: none;
        --shadow-lg: none;
        --shadow-xl: none;
    }

    .voice-option,
    .generated-audio,
    .feature-card,
    .tutorial-card,
    .use-case-card,
    .contact-card {
        border: 2px solid var(--accent);
    }
}

/* Add these styles to your styles.css file */

/* Coffee Widget */
.coffee-widget {
    position: fixed;
    bottom: 65px; /* Reduced gap */
    right: 20px;
    z-index: 998;
}

.coffee-button {
    display: block;
    transition: transform 0.3s ease;
}

.coffee-img {
    height: 32px; /* Smaller size */
    width: auto;
    display: block;
    border-radius: 20px; /* Match support button radius */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Hover effects */
.support-button:hover,
.coffee-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Mobile optimization */
@media (max-width: 768px) {
    .support-button {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .support-button i {
        font-size: 12px;
    }
    
    .coffee-img {
        height: 28px; /* Even smaller on mobile */
    }
    
    .coffee-widget {
        bottom: 60px; /* Reduced gap on mobile */
        right: 20px;
    }
    
    .support-widget {
        right: 20px;
    }
}

/* Replace the entire notification and generated audio styles with this code */

/* === Generated Audio Section === */
.generated-audio-notification {
    background: var(--surface);
    padding: 0.75rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--accent);
    font-size: 0.8125rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.generated-audio-notification i {
    color: var(--accent);
}

/* Premium Support Notification - Ultra Modern Design */
.premium-support-notification {
    background: linear-gradient(90deg, #0d0b1e, #1a1530);
    border-radius: 10px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1;
}

.premium-support-notification:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.premium-support-content {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.premium-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.premium-icon-container i {
    font-size: 18px;
    background: linear-gradient(45deg, #f9d423, #ff4e50);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 1px rgba(249, 212, 35, 0.3));
}

.premium-text-container {
    flex: 1;
    margin: 0 12px;
}

.premium-text-main {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    display: block;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.premium-support-btn-inline {
    background: linear-gradient(90deg, #f9d423, #ff4e50);
    color: #000;
    border: none;
    border-radius: 6px;
    padding: 7px 14px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(249, 212, 35, 0.3);
}

.premium-support-btn-inline:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(249, 212, 35, 0.4);
}

/* Glowing background effect for attention */
.premium-notification-glow {
    position: absolute;
    top: 0;
    left: -50%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.05),
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.05),
        transparent
    );
    z-index: 1;
    animation: sweep 3s ease-in-out infinite;
}

/* Animation for new audio highlight */
.premium-highlight {
    animation: pulse-border 2s ease;
}

.premium-highlight .premium-icon-container i {
    animation: star-pulse 2s ease-in-out;
}

@keyframes sweep {
    0% {
        left: -50%;
    }
    100% {
        left: 150%;
    }
}

@keyframes pulse-border {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(249, 212, 35, 0);
        border-color: rgba(255, 255, 255, 0.08);
    }
    50% {
        box-shadow: 0 0 10px 3px rgba(249, 212, 35, 0.3);
        border-color: rgba(249, 212, 35, 0.5);
    }
}

@keyframes star-pulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 1px rgba(249, 212, 35, 0.3));
    }
    50% {
        transform: scale(1.2);
        filter: drop-shadow(0 0 8px rgba(249, 212, 35, 0.7));
    }
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .premium-support-notification {
        margin-bottom: 12px;
    }
    
    .premium-support-content {
        padding: 8px 12px;
    }
    
    .premium-icon-container {
        width: 24px;
        height: 24px;
    }
    
    .premium-icon-container i {
        font-size: 16px;
    }
    
    .premium-text-main {
        font-size: 13px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 150px;
    }
    
    .premium-support-btn-inline {
        padding: 5px 10px;
        font-size: 12px;
    }
}

/* Extra small screens */
@media (max-width: 375px) {
    .premium-text-main {
        max-width: 110px;
    }
}

/* Generated Audio Item - Updated with highlight effect */
.generated-audio {
    background: var(--primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    transition: all 0.4s ease;
    position: relative;
    scroll-margin-top: 80px;
}

/* New audio highlight effect */
.generated-audio.highlight-new {
    animation: highlightBorder 5s ease-out;
}

@keyframes highlightBorder {
    0%, 100% {
        border-color: var(--border-color);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    20%, 80% {
        border-color: #FFD700;
        box-shadow: 0 4px 20px rgba(255, 215, 0, 0.2);
    }
}

.generated-audio:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .donation-notification {
        padding: 0.5rem;
        margin: 0.5rem;
    }
    
    .donation-bell {
        font-size: 1rem;
    }
    
    .donation-text p {
        font-size: 0.75rem;
    }
    
    .donation-text .donation-subtext {
        font-size: 0.675rem;
    }
    
    .donate-button {
        padding: 0.375rem 0.625rem;
        font-size: 0.675rem;
    }
    
    .generated-audio {
        margin: 0.5rem;
        padding: 0.5rem;
    }
}

/* Optimized Captcha Styles */
.captcha-container {
    margin: 0.75rem auto; /* Horizontally center by setting auto margin */
    padding: 0.5rem;
    background: var(--surface);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    max-width: 280px; /* Reduced max-width */
    text-align: center; /* Center content inside the container */
}

.captcha-box {
    display: flex;
    align-items: center;
    justify-content: center; /* Horizontally center the captcha content */
    gap: 8px; /* Reduced gap */
    background: white;
    padding: 6px; /* Reduced padding */
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

#captchaImg {
    height: 35px; /* Reduced height */
    width: 105px; /* Fixed width */
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    object-fit: cover; /* Ensure image fits container */
}

#captchaRefresh {
    min-width: 28px; /* Fixed minimum width */
    width: 28px; /* Reduced width */
    height: 28px; /* Reduced height */
    border: none;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    padding: 0; /* Remove padding */
    font-size: 12px; /* Smaller icon */
}

#captchaRefresh:hover {
    transform: rotate(180deg);
}

#captchaInput {
    width: 80px; /* Reduced width */
    padding: 8px; /* Reduced padding */
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px; /* Smaller font */
    font-weight: 600;
    text-align: center;
    letter-spacing: 2px;
}

#captchaInput:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(0,0,0,0.1);
}

/* Desktop Optimization */
@media (min-width: 769px) {
    .captcha-container {
        margin: 1rem auto; /* Horizontally center the container */
        padding: 0.75rem;
        max-width: 300px;
    }

    .captcha-box {
        padding: 8px;
        gap: 10px;
    }

    #captchaImg {
        height: 40px;
        width: 120px;
    }

    #captchaRefresh {
        width: 32px;
        height: 32px;
    }

    #captchaInput {
        width: 90px;
        padding: 10px;
        font-size: 16px;
    }
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .panel {
        min-height: calc(100vh - 200px); /* Adjust based on your header height */
        height: auto;
        max-height: none;
    }
    
    .voice-grid {
        max-height: calc(100vh - 400px); /* Adjust to prevent scrollbar */
    }

    .captcha-container {
        margin: 1rem auto; /* Horizontally center on mobile */
    }
}

/* High DPI Screen Optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    #captchaImg {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Touch Device Optimization */
@media (hover: none) {
    #captchaRefresh {
        padding: 0;
    }
    
    #captchaInput {
        font-size: 14px; /* Prevent iOS zoom */
    }
}

/* Mobile Optimizations - Add this at the end of styles.css */

/* Header & Navigation Optimizations */
@media (max-width: 768px) {
    /* Compact Header */
    header {
        height: 40px !important;
        padding: 0.25rem 0.75rem !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
        background: white !important;
    }

    .header-content {
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
    }

    .logo-container {
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
    }

    .logo-container img {
        width: 24px !important;
        height: 24px !important;
    }

    .company-title {
        font-size: 1.125rem !important;
        font-weight: 600 !important;
        margin: 0 !important;
    }

    /* Mobile Menu */
    .mobile-menu {
        width: 32px !important;
        height: 32px !important;
        padding: 4px !important;
        margin-left: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .nav-links {
        top: 40px !important; /* Match header height */
        padding: 0.5rem !important;
        background: white !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 0.5rem !important;
        height: auto !important;
        max-height: 200px !important;
        overflow-y: auto !important;
    }

    .nav-links li {
        width: auto !important;
        margin: 0.25rem !important;
    }

    .nav-links a {
        padding: 0.5rem 1rem !important;
        font-size: 0.875rem !important;
        white-space: nowrap !important;
        border-radius: 20px !important;
        background: var(--surface) !important;
    }

    /* Tab Navigation */
    .mobile-tabs {
        position: fixed !important;
        top: 40px !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 99 !important;
        background: white !important;
        padding: 0.35rem !important;
        margin: 0 !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
    }

    .tab-buttons {
        display: flex !important;
        gap: 0.35rem !important;
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .tab-button {
        flex: 1 !important;
        padding: 0.5rem !important;
        background: #e0e0e0 !important;
        color: #666 !important;
        border-radius: 8px !important;
        font-size: 0.875rem !important;
        font-weight: 500 !important;
        transition: all 0.2s ease !important;
        border: none !important;
    }

    .tab-button.active {
        background: #000 !important;
        color: white !important;
    }

    /* Main Content Layout */
    main {
        padding-top: 85px !important; /* Header + Tabs height */
    }

    /* Panel Adjustments */
    .panel {
        padding: 0.35rem !important;
        margin-top: 0 !important;
    }

    .panel-header {
        position: relative !important;
        top: 0 !important;
        margin-bottom: 0.35rem !important;
        padding: 0 !important;
        background: transparent !important;
        z-index: 1 !important;
    }

    .section-title {
        font-size: 1rem !important;
        margin: 0 !important;
        padding: 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* Input Container & Character Counter */
    .input-container {
        position: relative !important;
        margin: 0.35rem 0 !important;
    }

    #textInput {
        padding-bottom: 2rem !important;
        margin-bottom: 0 !important;
    }

    #charCount {
        position: absolute !important;
        bottom: 8px !important;
        right: 12px !important;
        font-size: 0.75rem !important;
        color: #666 !important;
        background: transparent !important;
        margin: 0 !important;
        padding: 0 !important;
        z-index: 2 !important;
    }

    /* Voice Filters */
    .voice-filters {
        position: relative !important;
        top: 0 !important;
        padding: 0.35rem 0 !important;
        gap: 0.35rem !important;
        background: transparent !important;
        z-index: 1 !important;
    }

    /* Generated Audio Elements */
    .generated-audio-notification,
    .donation-notification,
    .generated-audio {
        margin: 0.35rem 0 !important;
        width: 100% !important;
    }

    /* Audio Visualizer */
    .audio-visualizer {
        height: 40px !important;
        margin: 0.5rem 0 !important;
        min-height: 40px !important;
    }

    wave {
        height: 40px !important;
        display: block !important;
    }

    /* Support & Coffee Buttons */
    .support-widget {
        bottom: 0.3rem !important;
        right: 0.4rem !important;
    }

    .coffee-widget {
        bottom: 2.2rem !important;
        right: 0.5rem !important;
    }

    .coffee-button {
        animation: highlight 2s infinite !important;
    }}

    @keyframes highlight {
        0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 221, 87, 0.4); }
        50% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(255, 221, 87, 0); }
        100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 221, 87, 0); }
    }

    /* Spacing Optimizations */
    .captcha-container,
    .button-container {
        margin: 0.35rem 0 !important;
    }

    /* Remove Unnecessary Spacing */
    .panel > *:first-child {
        margin-top: 0 !important;
    }

    .panel > *:last-child {
        margin-bottom: 0 !important;
    }
/* Add this at the end of your styles.css file to override previous styles */

/* Text Input & Character Counter */
.input-container {
    position: relative !important;
    margin-bottom: 0.75rem !important;
}

#textInput {
    width: 100% !important;
    min-height: 120px !important;
    padding: 1rem !important;
    padding-bottom: 2.5rem !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    font-family: inherit !important;
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
    resize: vertical !important;
}

#charCount {
    position: absolute !important;
    bottom: 0.75rem !important;
    right: 1rem !important;
    font-size: 0.75rem !important;
    color: var(--text-secondary) !important;
    background: transparent !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

/* Captcha & Tutorial Layout */
.input-actions-row {
    display: flex !important;
    gap: 0.75rem !important;
    margin-bottom: 1rem !important;
    align-items: stretch !important;
}

.captcha-container {
    flex: 5 !important;
    margin: 0 !important;
    background: white !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    min-height: 45px !important;
    padding: 0.5rem !important;
}

.captcha-box {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    height: 100% !important;
}

#captchaImg {
    height: 34px !important;
    border-radius: 4px !important;
}

#captchaRefresh {
    min-width: 34px !important;
    height: 34px !important;
    background: black !important;
    color: white !important;
    border: none !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: transform 0.2s ease !important;
}

#captchaRefresh:hover {
    transform: scale(1.05) !important;
}

#captchaInput {
    flex: 1 !important;
    height: 34px !important;
    padding: 0 0.75rem !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 6px !important;
    font-size: 0.9rem !important;
    text-align: center !important;
    letter-spacing: 2px !important;
    font-weight: 500 !important;
}

.tutorial-button-container {
    flex: 1 !important;
}

.tutorial-button {
    width: 100% !important;
    height: 100% !important;
    background: black !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: transform 0.2s ease !important;
}

.tutorial-button:hover {
    transform: translateY(-1px) !important;
}

.tutorial-button i {
    font-size: 1.125rem !important;
}


/* Coffee Button */
.coffee-button {
    animation: coffeeHighlight 3s infinite !important;
}

/* Animations */
@keyframes coffeeHighlight {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 2px 8px rgba(255, 221, 87, 0.3);
    }
    50% {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(255, 221, 87, 0.5);
    }
}

@keyframes bellRing {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(10deg); }
    75% { transform: rotate(-10deg); }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .input-actions-row {
        gap: 0.5rem !important;
    }

    .captcha-container {
        min-height: 40px !important;
        padding: 0.35rem !important;
    }

    #captchaImg,
    #captchaRefresh,
    #captchaInput {
        height: 32px !important;
    }

    #captchaInput {
        font-size: 0.875rem !important;
    }

    .tutorial-button span {
        display: none !important;
    }
}

/* Add these styles to your styles.css file */

/* Improved Captcha Styles */
.captcha-container {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.captcha-box {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    background: #fff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 8px !important;
    padding: 4px !important;
    height: 40px !important;
}

#captchaImg {
    height: 32px !important;
    width: auto !important;
    border-radius: 4px !important;
}

#captchaRefresh {
    min-width: 32px !important;
    height: 32px !important;
    border-radius: 6px !important;
    background: #000 !important;
    color: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.2s ease !important;
}

#captchaInput {
    flex: 1 !important;
    height: 32px !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 6px !important;
    padding: 0 8px !important;
    font-size: 14px !important;
    text-align: center !important;
    letter-spacing: 2px !important;
}

/* Enhanced Tutorial Button */
/* Tutorial Modal Base Styles */
.tutorial-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tutorial-modal.show {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.tutorial-modal-content {
    background: var(--panel-bg);
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg);
}

/* Tutorial Dropdown - Matching Voice Selection Style */
.tutorial-language-dropdown {
    position: relative;
    min-width: 200px;
    margin-right: 1rem;
}

.tutorial-dropdown-selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text);
}

.tutorial-dropdown-selected i {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.tutorial-language-dropdown.open .tutorial-dropdown-selected i {
    transform: rotate(180deg);
}

.tutorial-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    margin-top: 4px;
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 1001;
}

.tutorial-language-dropdown.open .tutorial-dropdown-menu {
    display: block;
    animation: dropdownShow 0.2s ease;
}

.tutorial-dropdown-item {
    padding: 8px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
    color: var(--text);
}

.tutorial-dropdown-item:hover {
    background: var(--hover-bg);
}

.tutorial-dropdown-item.selected {
    background: var(--accent);
    color: var(--primary);
}

/* Tutorial Modal Header */
.tutorial-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.tutorial-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s ease;
}

.tutorial-modal-close:hover {
    color: var(--text);
}

/* Video Container */
.tutorial-modal-body {
    padding: 0;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Navigation Controls */
.tutorial-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--surface);
    border-top: 1px solid var(--border-color);
}

.nav-btn {
    padding: 8px 16px;
    border: none;
    background: var(--accent);
    color: var(--primary);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-btn:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.tutorial-counter {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .tutorial-modal-content {
        width: 95%;
        margin: 16px;
    }

    .tutorial-language-dropdown {
        min-width: 160px;
        margin-right: 0.5rem;
    }

    .tutorial-dropdown-selected {
        padding: 6px 12px;
        font-size: 14px;
    }

    .tutorial-dropdown-item {
        padding: 8px 12px;
        font-size: 14px;
    }

    .nav-btn {
        padding: 6px 12px;
        font-size: 14px;
    }
}

/* Animations */
@keyframes dropdownShow {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Add these styles at the end of your styles.css file to ensure they override previous styles */


/* Fix captcha container borders */
.captcha-box {
    border: none !important;
    background: #fff !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
}

.captcha-container {
    border: none !important;
    box-shadow: none !important;
}

/* Character counter improvements */
#charCount {
    position: absolute !important;
    bottom: 12px !important;
    right: 10px !important;
    background: #fff !important;
    padding: 1px 4px !important;
    border-radius: 4px !important;
    font-size: 9px !important;
    color: #666 !important;
    box-shadow: 0 0 0 4px #fff !important;
    z-index: 2 !important;
}

/* Tab links for voice selection and generated audio */
.tab-button {
    text-decoration: none !important;
    color: inherit !important;
    width: 100% !important;
    text-align: center !important;
    padding: 12px !important;
    background: #f0f0f0 !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    scroll-margin-top: 1px;
}

.tab-button.active {
    background: #000 !important;
    color: #fff !important;
}

.tab-button:hover {
    background: #e0e0e0 !important;
}

.tab-button.active:hover {
    background: #000 !important;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    #charCount {
        bottom: 13px !important;
        right: 5px !important;
        font-size: 11px !important;
        padding: 1px 6px !important;
    }

    .captcha-box {
        margin: 0 !important;
    }
    
    .tab-buttons {
        top: 60px !important;
        padding: 6px !important;
    }
    
    .tab-button {
        padding: 6px 12px !important;
        font-size: 13px !important;
    }
}

/* Add smooth scroll behavior */
html {
    scroll-behavior: smooth !important;
}


/* Section anchor links */
.section-title a {
    color: inherit !important;
    text-decoration: none !important;
    display: block !important;
    width: 100% !important;
}

/* Voice Filter Section Mobile Optimizations */
@media (max-width: 768px) {
    /* Container optimization */
    .voice-filters {
        display: flex !important;
        flex-direction: row !important;
        gap: 4px !important;
        padding: 4px !important;
        margin: 4px 0 !important;
        position: static !important;
        top: 85px !important;
        background: white !important;
        z-index: 10 !important;
        width: 95% !important; /* Increased width to show more content */
        margin-left: auto !important;
        margin-right: auto !important;
        border-radius: 8px !important;
        align-items: center !important;
    }

    /* Search box styling */
    .search-box {
        flex: 1.2 !important; /* Slightly reduced to give more space to selects */
        min-width: 80px !important;
    }

    .search-box input {
        width: 100% !important;
        height: 32px !important;
        padding: 4px 8px !important;
        font-size: 11px !important;
        border-radius: 6px !important;
        border: 1px solid rgba(0,0,0,0.1) !important;
    }

    /* Filter select styling */
    .filter-select {
        flex: 1 !important;
        height: 32px !important;
        padding: 4px 16px 4px 6px !important;
        font-size: 11px !important;
        border-radius: 6px !important;
        border: 1px solid rgba(0,0,0,0.1) !important;
        background-position: right 4px center !important;
        background-size: 8px !important;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23000' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
        background-repeat: no-repeat !important;
        min-width: 70px !important; /* Ensure minimum width for better readability */
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* Change placeholder text to be shorter */
    .search-box input::placeholder {
        content: "Search..." !important;
        color: #999 !important;
        font-size: 11px !important;
    }

    /* Compact select options */
    .filter-select option {
        font-size: 11px !important;
        padding: 4px !important;
    }

    /* Focus states */
    .search-box input:focus,
    .filter-select:focus {
        outline: none !important;
        border-color: #000 !important;
        box-shadow: 0 0 0 2px rgba(0,0,0,0.05) !important;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .voice-filters {
        width: 98% !important; /* Almost full width on very small screens */
        top: 80px !important;
        gap: 3px !important;
        padding: 3px !important;
    }

    .search-box input,
    .filter-select {
        height: 28px !important;
        font-size: 10px !important; /* Slightly smaller font */
    }

    .filter-select {
        padding-right: 12px !important;
        min-width: 60px !important;
    }

    /* Adjust search box size */
    .search-box {
        flex: 1 !important;
        min-width: 60px !important;
    }
}

/* Ensure proper spacing for voice grid */
@media (max-width: 768px) {
    .voice-grid {
        margin-top: 8px !important;
        padding-top: 4px !important;
    }
}

/* Override select widths to show more text */
@media (max-width: 768px) {
    #genderFilter {
        min-width: 75px !important; /* Space for "All Genders" */
    }
    
    #languageFilter {
        min-width: 85px !important; /* Space for "All Languages" */
    }
    
    #countryFilter {
        min-width: 80px !important; /* Space for "All Countries" */
    }
}

/* Adjust the filters container width and position */
@media (max-width: 768px) {
    .voice-filters {
        width: 100% !important; /* Reduced width to prevent overflow */
        padding: 4px 8px !important; /* Added horizontal padding */
        margin: 4px auto !important;
        justify-content: flex-start !important; /* Align to left */
        gap: 6px !important;
    }

    .search-box {
        max-width: 100px !important;
    }

    .custom-select-container {
        min-width: 60px !important;
        max-width: 80px !important;
    }
}

/* Custom Filter Styles - Override Everything */
.voice-filters {
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    padding: 8px !important;
    background: #ffffff !important;
    border-bottom: 1px solid #eee !important;
    position: static !important;
    top: 85px !important;
    z-index: 1000 !important;
}

/* Search Input */
.custom-search {
    position: relative !important;
    flex: 1 !important;
}

.custom-search input {
    width: 100% !important;
    height: 36px !important;
    padding: 0 12px !important;
    border: 1px solid #eee !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    background: #fff !important;
}

/* Custom Dropdown Base */
.custom-dropdown {
    position: relative !important;
    min-width: 120px !important;
}

.dropdown-selected {
    height: 36px !important;
    padding: 0 30px 0 12px !important;
    border: 1px solid #eee !important;
    border-radius: 6px !important;
    background: #fff !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    font-size: 13px !important;
    position: relative !important;
}

.dropdown-selected i {
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    transition: transform 0.2s ease !important;
    font-size: 10px !important;
}

.custom-dropdown.open .dropdown-selected i {
    transform: translateY(-50%) rotate(180deg) !important;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    margin-top: 4px !important;
    background: #fff !important;
    border: 1px solid #eee !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    max-height: 200px !important;
    overflow-y: auto !important;
    display: none !important;
    z-index: 1001 !important;
}

.custom-dropdown.open .dropdown-menu {
    display: block !important;
}

.dropdown-item {
    padding: 8px 12px !important;
    cursor: pointer !important;
    font-size: 13px !important;
    transition: background 0.2s ease !important;
}

.dropdown-item:hover {
    background: #f8f8f8 !important;
}

.dropdown-item.selected {
    background: #000 !important;
    color: #fff !important;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .voice-filters {
        gap: 6px !important;
        padding: 6px !important;
        flex-wrap: nowrap !important;
        top: 80px !important;
    }
    
    .custom-search {
        max-width: 120px !important;
    }
    
    .custom-dropdown {
        min-width: 90px !important;
    }

    .custom-search input,
    .dropdown-selected {
        height: 32px !important;
        font-size: 12px !important;
    }

    .dropdown-selected {
        padding: 0 24px 0 8px !important;
    }

    .dropdown-selected span {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: unset !important;
        max-width: 100% !important; 
    }

    .dropdown-item {
        padding: 6px 8px !important;
        font-size: 12px !important;
    }
}

/* Small Mobile Screens */
@media (max-width: 480px) {
    .voice-filters {
        gap: 4px !important;
        padding: 4px !important;
    }

    .custom-search {
        max-width: 90px !important;
    }

    .custom-dropdown {
        min-width: 80px !important;
    }

    .dropdown-selected i {
        right: 6px !important;
        font-size: 8px !important;
    }
}

/* Scrollbar Styling */
.dropdown-menu::-webkit-scrollbar {
    width: 6px !important;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: #f1f1f1 !important;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: #888 !important;
    border-radius: 3px !important;
}

/* No Results State */
.no-results {
    text-align: center !important;
    padding: 20px !important;
    color: #666 !important;
    font-size: 14px !important;
}

/* Focus States */
.custom-search input:focus {
    outline: none !important;
    border-color: #000 !important;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.1) !important;
}

.dropdown-selected:hover {
    border-color: #000 !important;
}

/* Loading State */
.voice-filters.loading .dropdown-selected {
    opacity: 0.7 !important;
    pointer-events: none !important;
}

/* Enhanced Tutorial Button - Slightly Lighter Black */
.tutorial-button {
    background: #222 !important; /* Slightly lighter than pure black */
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    height: 40px !important;
    padding: 0 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    font-weight: 600 !important;
    transition: transform 0.2s ease, background-color 0.2s ease !important;
}

.tutorial-button:hover {
    transform: translateY(-1px) !important;
    background: #333 !important; /* Slightly lighter black on hover */
}

/* Navigation Buttons - Slightly Lighter Black */
.nav-btn {
    background: #222 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-btn:not(:disabled):hover {
    transform: translateY(-1px);
    background: #333 !important; /* Slightly lighter on hover */
}

/* ✅ 1. REMOVE THE UNWANTED WHITE SPACE BELOW THE VOICE SELECTION */
.voice-selection-section {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    height: auto !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* ✅ 2. REMOVE ANY THIN LINE OR BORDER BELOW THE FILTERS */
.voice-filters {
    margin-bottom: 2px !important; /* Minimal spacing */
    padding-bottom: 2px !important;
    border-bottom: none !important; /* No thin line */
}

/* ✅ 3. MAKE THE VOICE GRID FOLLOW THE FILTERS WITH NO EXTRA SPACE */
.voice-grid {
    max-height: 500px !important; /* Enables scrolling */
    overflow-y: scroll !important; /* Always visible scrollbar */
    overflow-x: hidden !important;
    padding-right: 10px; /* Space for scrollbar */
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    align-content: flex-start;
    background: #fff;
    border-radius: 8px;
    border: none !important;
    min-height: 300px; /* Ensure scrolling happens */
    flex-grow: 1;
}


/* ✅ 6. REMOVE ANY EXTRA SPACE AT THE VERY BOTTOM */
.voice-selection-container {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    height: auto !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px !important;
    height: 6px !important;
}

::-webkit-scrollbar-track {
    background: var(--surface) !important;
    border-radius: 3px !important;
}

::-webkit-scrollbar-thumb {
    background: var(--accent) !important;
    border-radius: 3px !important;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover) !important;
}


/* CAPTCHA Box - Keep it professional */
.captcha-box {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    padding: 4px;
    border-radius: 6px;
}

#captchaInput {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    opacity: 0;
    border: none;
    padding: 0;
}

/* Properly Displaying the Captcha */
.captcha-display {
    position: relative;
    width: 120px;
    height: 34px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    z-index: 1;
    cursor: text;
}

.char-box {
    width: 14px;
    text-align: center;
    font-family: monospace;
    font-size: 15px;
    color: #333;
    margin-right: 10px;
    font-weight: 500;
    position: relative;
}

.char-box.asterisk {
    color: #999;
}

.char-box:last-child {
    margin-right: 0;
}

/* Only one blinking cursor is shown */
/* Only ONE blinking cursor is shown at a time */
.char-box.active-caret::after {
    content: '|';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: #000;
    opacity: 1;
    transition: opacity 0.7s ease;
}

/* Cursor blinks properly without duplication */
.char-box.cursor-blink::after {
    animation: blink-caret 1s step-end infinite;
}

@keyframes blink-caret {
    from, to { opacity: 0; }
    50% { opacity: 1; }
}

.char-box.active-caret.focused::after {
    animation: blink-caret 1s step-end infinite;
}

/* Mobile Optimization - Fixing Size Issues */
@media (max-width: 768px) {
    .captcha-box {
        flex-direction: row;
    }
    .captcha-display {
        width: 90px;  /* Smaller width */
    }
    .char-box {
        width: 10px;
        margin-right: 6px;
        font-size: 12px;
    }
}

/* Floating Warning Tooltip with Arrow */
.captcha-warning {
    display: none;
    position: absolute;
    top: -45px; /* Position above CAPTCHA */
    left: 50%;
    transform: translateX(-50%);
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 0.8rem;
    white-space: nowrap;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* Arrow pointing from CAPTCHA input to the warning */
.captcha-warning::after {
    content: "";
    position: absolute;
    top: 100%; /* Below the tooltip */
    left: 95%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: #744700 transparent transparent transparent; /* Arrow color same as warning */
}

/* Show warning when needed */
.captcha-warning.show {
    display: block;
    opacity: 1;
}


.captchaIncorrectWarning {
    display: none;
    position: absolute;
    top: -45px; /* Position above CAPTCHA */
    left: 50%;
    transform: translateX(-50%);
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 0.8rem;
    white-space: nowrap;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* Arrow pointing from CAPTCHA input to the warning */
.captchaIncorrectWarning::after {
    content: "";
    position: absolute;
    top: 100%; /* Below the tooltip */
    left: 95%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: #744700 transparent transparent transparent; /* Arrow color same as warning */
}

/* Show warning when needed */
.captchaIncorrectWarning.show {
    display: block;
    opacity: 1;
}

/* Updated Toast Notification Position - Top Middle */
.premium-toast {
    position: fixed !important;
    top: 80px !important; /* Positioned below header */
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translateX(-50%) translateY(0) !important;
    z-index: 9999 !important;
    opacity: 0 !important;
    transition: transform 0.3s ease, opacity 0.3s ease !important;
    text-align: center !important;
    max-width: 90% !important;
    width: auto !important;
}

.premium-toast.show {
    transform: translateX(-50%) translateY(0) !important;
    opacity: 1 !important;
}

/* Mobile optimization for notifications */
@media (max-width: 768px) {
    .premium-toast {
        top: 70px !important; /* Slightly lower for mobile */
        width: 90% !important;
        padding: 10px 15px !important;
        font-size: 14px !important;
    }
}

/* Voice Settings Button and Modal */
.button-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 0.75rem;
}

.cyber-button {
    flex: 1;
}

.voice-settings-button {
    height: 100%;
    min-height: 44px;
    background: #111;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0 15px;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.voice-settings-button:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.voice-settings-button i {
    font-size: 1rem;
}

/* Voice Settings Modal */
.settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.settings-modal.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.settings-modal-content {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

.settings-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
}

.settings-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-modal-header h3 i {
    color: #333;
}

.settings-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    transition: color 0.2s ease;
}

.settings-close:hover {
    color: #000;
}

.settings-modal-body {
    padding: 1.5rem;
}

.setting-item {
    margin-bottom: 1.25rem;
}

.setting-item label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.slider {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: #eee;
    border-radius: 3px;
    outline: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #000;
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #000;
    cursor: pointer;
    border: none;
}

.slider-value {
    min-width: 40px;
    text-align: center;
    font-weight: 600;
    font-size: 0.875rem;
    background: #f5f5f5;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.settings-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
}

.reset-button {
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reset-button:hover {
    background: #e5e5e5;
}

.remember-settings {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: #555;
    cursor: pointer;
}

.remember-settings input {
    cursor: pointer;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .voice-settings-button span {
        display: none;
    }

    .voice-settings-button {
        padding: 0 10px;
        min-width: 44px;
    }

    .settings-modal-content {
        width: 95%;
    }
    
    .settings-modal-header,
    .settings-modal-body {
        padding: 0.75rem 1rem;
    }
    
    .settings-actions {
        flex-direction: row; /* Change to row */
        align-items: center; /* Align items vertically in the row */
        justify-content: space-between; /* Distribute space evenly */
        width: 100%; /* Ensure it takes full width */
    }
    
    .remember-settings {
        margin-left: 0; /* Remove unnecessary margin */
        padding-left: 10px; /* Add some left padding */
    }
}

@media (max-width: 480px) {
    .button-container {
        gap: 6px;
    }
    
    .voice-settings-button {
        min-width: 38px;
        min-height: 38px;
    }
    
    .settings-close {
        font-size: 1.25rem;
    }
}


.button-container {
    display: flex;
    align-items: stretch !important; 
    gap: 10px !important; 
    width: 100% !important;
    margin-bottom: 0.75rem !important;
    height: 44px !important; 
}

.cyber-button {
    flex: 1 !important;
    display: flex !important; 
    align-items: center !important; /* Vertically center content */
    height: 100% !important; 
    justify-content: center !important; /* Horizontally center content */
}

.voice-settings-button {
    display: flex !important; 
    align-items: center !important; /* Vertically center content */
    height: 100% !important; 
    justify-content: center !important; /* Horizontally center content */
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .voice-settings-button {
        min-width: auto !important; 
        padding: 0 10px !important; 
    }
}

/* Improved Button Container and Button Styles */
.button-container {
    display: flex !important;
    align-items: stretch !important;
    gap: 10px !important;
    width: 100% !important;
    margin-bottom: 0.75rem !important;
    height: 44px !important;
}

/* Generate Audio Button - Main button with prominent styling */
.cyber-button {
    flex: 1 !important;
    background: #000 !important;
    position: relative !important;
    overflow: hidden !important;
    border: none !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    letter-spacing: 0.5px !important;
}

.cyber-button::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(rgba(255, 255, 255, 0.1), transparent) !important;
    pointer-events: none !important;
}

/* Voice Effects Button - Secondary button with lighter styling */
.voice-settings-button,
.tutorial-button { /* added class tutorial-button */
    background: #333 !important;
    color: white !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 0 15px !important;
    font-size: 0.85rem !important;
    font-weight: 400 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important;
    min-width: 130px !important;
}

/* Hover states */
.cyber-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4) !important;
}

.voice-settings-button:hover,
.tutorial-button:hover {
    background: #444 !important;
    transform: translateY(-1px) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .voice-settings-button,
    .tutorial-button {
        min-width: 44px !important;
    }

    .voice-settings-button span,
    .tutorial-button span {
        display: none !important;
    }

    .cyber-button {
        font-size: 1rem !important;
    }
}

/* Premium Support System Styles */
.premium-support-container {
  --support-primary: #FF5858;
  --support-primary-light: #FF5858;
  --support-primary-dark: #CC4646;
  --support-secondary: #3A3A3A;
  --support-accent: #00C2FF;
  --support-white: #FFFFFF;
  --support-grey-100: #F9F9F9;
  --support-grey-200: #F0F0F0;
  --support-grey-300: #E0E0E0;
  --support-grey-400: #BDBDBD;
  --support-grey-500: #9E9E9E;
  --support-grey-600: #757575;
  --support-grey-700: #616161;
  --support-grey-800: #424242;
  --support-grey-900: #212121;
  --support-success: #00C853;
  --support-shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.08);
  --support-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --support-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --support-gradient: linear-gradient(135deg, #FF5858 0%, #FF416C 100%);
  --support-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --support-border-radius: 12px;
  --support-border-radius-sm: 8px;
  --support-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Main Button - Styled to match Contact Us button */
.premium-support-btn {
  position: fixed;
  bottom: 55px; /* Positioned exactly above Contact Us with minimal gap */
  right: 20px;
  z-index: 999;
  border: none;
  border-radius: 40px;
  background-color: #FF416C;
  color: white;
  font-size: 14px;
  padding: 12px 12px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(255, 65, 108, 0.3);
  transition: all 0.3s ease;
  font-family: var(--support-font);
  width: 120px;
  height: 30px;
}

.premium-support-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 65, 108, 0.4);
}

.premium-support-btn i {
  font-size: 16px;
}

/* Panel Styles */
.premium-support-panel {
  position: fixed;
  bottom: 75px; /* Positioned above Support button */
  right: 20px;
  z-index: 1001;
  width: 480px;
  max-width: calc(100vw - 40px);
  background: var(--support-white);
  border-radius: var(--support-border-radius);
  box-shadow: var(--support-shadow-lg);
  transform: translateY(20px);
  opacity: 0;
  visibility: hidden;
  transition: var(--support-transition);
  font-family: var(--support-font);
  max-height: calc(100vh - 140px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.premium-support-panel.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.support-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--support-grey-200);
  background: var(--support-white);
  position: sticky;
  top: 0;
  z-index: 10;
  border-radius: var(--support-border-radius) var(--support-border-radius) 0 0;
}

.support-panel-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--support-grey-900);
}

.support-panel-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.support-language-selector select {
  padding: 8px 32px 8px 12px;
  border: 1px solid var(--support-grey-300);
  border-radius: var(--support-border-radius-sm);
  font-size: 14px;
  color: var(--support-grey-800);
  background: var(--support-white);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='none' stroke='%23666' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.support-language-selector select:focus {
  outline: none;
  border-color: var(--support-primary);
}

.support-close-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--support-grey-200);
  border: none;
  border-radius: var(--support-border-radius-sm);
  cursor: pointer;
  color: var(--support-grey-700);
  transition: var(--support-transition);
}

.support-close-btn:hover {
  background: var(--support-grey-300);
  color: var(--support-grey-900);
}

/* Panel Body */
.support-panel-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: var(--support-grey-400) transparent;
}

.support-panel-body::-webkit-scrollbar {
  width: 6px;
}

.support-panel-body::-webkit-scrollbar-track {
  background: transparent;
}

.support-panel-body::-webkit-scrollbar-thumb {
  background-color: var(--support-grey-400);
  border-radius: 20px;
}

/* Value Statement */
.support-value-statement {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(255, 88, 88, 0.08) 0%, rgba(255, 65, 108, 0.08) 100%);
  border-radius: var(--support-border-radius);
  margin-bottom: 24px;
  border: 1px solid rgba(255, 88, 88, 0.12);
}

.value-icon {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--support-white);
  border-radius: var(--support-border-radius-sm);
  color: var(--support-primary);
  flex-shrink: 0;
}

.value-icon i {
  font-size: 24px;
  margin-top: 12px;
}

.value-content {
  flex: 1;
}

.value-content h4 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--support-grey-900);
}

.value-content p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--support-grey-800);
}

.value-content strong {
  color: var(--support-primary);
  font-weight: 700;
}

/* Collapsible Method Styles */
.support-methods-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.collapsible-method {
  background: var(--support-white);
  border: 1px solid var(--support-grey-300);
  border-radius: var(--support-border-radius);
  overflow: hidden;
  transition: var(--support-transition);
}

.collapsible-method:hover {
  border-color: var(--support-grey-400);
  box-shadow: var(--support-shadow-sm);
}

.method-header {
  display: flex;
  align-items: center;
  padding: 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.method-header:hover {
  background-color: var(--support-grey-100);
}

.method-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--support-grey-100);
  border-radius: var(--support-border-radius-sm);
  color: var(--support-grey-900);
  flex-shrink: 0;
  margin-right: 16px;
}

.method-icon i {
  font-size: 20px;
}

.method-icon .bmc-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.method-summary {
  flex: 1;
}

.method-summary h5 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--support-grey-900);
}

.method-summary p {
  margin: 0;
  font-size: 13px;
  color: var(--support-grey-600);
}

.method-expand-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--support-grey-600);
  transition: transform 0.3s ease;
}

.collapsible-method.active .method-expand-icon {
  transform: rotate(180deg);
}

/* Method Details */
.method-details {
  height: 0;
  overflow: hidden;
  transition: height 0.3s ease;
  background-color: var(--support-grey-100);
  border-top: 0 solid var(--support-grey-300);
}

.collapsible-method.active .method-details {
  height: auto;
  border-top-width: 1px;
}

.details-content {
  padding: 16px;
}

.details-content p {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--support-grey-800);
}

/* Amount Buttons */
.method-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.amount-btn {
  display: inline-block;
  padding: 6px 12px;
  background: var(--support-grey-200);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--support-grey-800);
  text-decoration: none;
  transition: var(--support-transition);
  text-align: center;
  min-width: 50px;
}

.amount-btn:hover {
  background: var(--support-grey-300);
  color: var(--support-grey-900);
  transform: translateY(-1px);
}

.amount-btn.recommended {
  background: var(--support-primary-light);
  color: var(--support-white);
}

.amount-btn.recommended:hover {
  background: var(--support-primary-dark);
}

.amount-btn.custom {
  background: var(--support-white);
  border: 1px dashed var(--support-grey-400);
}

.amount-btn.custom:hover {
  border-color: var(--support-grey-600);
}

/* Copy Input */
.copy-input-container {
  display: flex;
  margin-bottom: 12px;
}

.copy-input {
  flex: 1;
  padding: 8px 12px;
  background: var(--support-white);
  border: 1px solid var(--support-grey-300);
  border-right: none;
  border-radius: var(--support-border-radius-sm) 0 0 var(--support-border-radius-sm);
  font-family: monospace;
  font-size: 14px;
  color: var(--support-grey-900);
  cursor: text;
}

.copy-btn {
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--support-grey-200);
  border: 1px solid var(--support-grey-300);
  border-radius: 0 var(--support-border-radius-sm) var(--support-border-radius-sm) 0;
  color: var(--support-grey-700);
  cursor: pointer;
  transition: var(--support-transition);
}

.copy-btn:hover {
  background: var(--support-grey-300);
  color: var(--support-grey-900);
}

.copy-btn.copied {
  background: var(--support-success);
  color: var(--support-white);
  border-color: var(--support-success);
}

/* QR Codes */
.qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  background: var(--support-white);
  border: 1px solid var(--support-grey-300);
  border-radius: var(--support-border-radius-sm);
  margin-bottom: 16px;
}

.qr-code {
  width: 150px;
  height: 150px;
  display: block;
  margin-bottom: 8px;
}

.qr-caption {
  font-size: 12px;
  color: var(--support-grey-600);
  margin: 0;
  text-align: center;
}

/* Crypto Sections */
.crypto-section {
  margin-bottom: 24px;
}

.crypto-section:last-child {
  margin-bottom: 0;
}

.crypto-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--support-grey-800);
  font-weight: 500;
}

.crypto-label i {
  font-size: 16px;
  color: var(--support-grey-700);
}

/* Trust Section */
.support-trust-section {
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--support-grey-200);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--support-grey-600);
  font-size: 13px;
}

.trust-item i {
  font-size: 14px;
  color: var(--support-success);
}

/* Tooltip */
.tooltip {
  position: absolute;
  background: var(--support-grey-900);
  color: var(--support-white);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  pointer-events: none;
  white-space: nowrap;
  z-index: 1010;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.tooltip.show {
  opacity: 1;
}

.tooltip::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--support-grey-900);
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
}

/* Responsive Styles - Matched to Contact Us button */
@media (max-width: 768px) {
  .premium-support-btn {
    bottom: 35px !important;/* Minimal gap from Contact Us button */
    right: 8px !important;
    height: 26px !important;
    width: 100px !important;
    padding: 0 0px !important;
    font-size: 12px !important;
    font-weight: 500;

    border-radius: 40px;
    /* Keep text visible on mobile */
  }
  
  .premium-support-panel {
    bottom: 25px !important; /* Position properly above the button */
    right: 20px !important;
    width: calc(100vw - 40px) !important;
    max-height: calc(100vh - 100px) !important;
    max-width: 480px;
  }
  
  .support-panel-header {
    padding: 12px !important;
  }
  
  .support-panel-header h3 {
    font-size: 14px !important;
  }
  
  .support-panel-body {
    padding: 16px;
  }
  
  .support-value-statement {
    padding: 16px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .method-header {
    padding: 12px;
  }
  
  .method-icon {
    width: 36px;
    height: 36px;
    margin-right: 12px;
  }
  
  .method-summary h5 {
    font-size: 15px;
  }
  
  .method-summary p {
    font-size: 12px;
  }
  
  .details-content {
    padding: 12px;
  }
  
  .qr-code {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 480px) {
  .premium-support-btn {
    width: auto; /* Auto width to fit content */
    height: 46px; /* Fixed height matching Contact Us */
    right: 20px;
    bottom: 75px; /* Position above Contact Us with visible gap */
    font-size: 15px;
  }
  
  .premium-support-panel {
    bottom: 130px; /* Further adjustment for smaller screens */
  }
  
  .copy-input-container {
    flex-direction: column;
  }
  
  .copy-input {
    border-radius: var(--support-border-radius-sm) var(--support-border-radius-sm) 0 0;
    border-right: 1px solid var(--support-grey-300);
    border-bottom: none;
    text-align: center;
  }
  
  .copy-btn {
    width: 100%;
    border-radius: 0 0 var(--support-border-radius-sm) var(--support-border-radius-sm);
    padding: 8px;
  }
  
  .method-amounts {
    flex-wrap: wrap;
  }
  
  .amount-btn {
    flex: 1;
    min-width: 40%;
  }
}

/* Pause Buttons Styling */
.pause-buttons {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.pause-btn {
    flex: 1;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: white;
    color: var(--text);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.pause-btn:hover {
    background: var(--hover-bg);
    transform: translateY(-1px);
}

.pause-btn i {
    font-size: 0.8rem;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .pause-buttons {
        flex-wrap: wrap;
    }
    
    .pause-btn {
        min-width: 70px;
        padding: 6px;
        font-size: 0.75rem;
    }
}

/* Mobile Filter Fix - Fixed Width, Flexible Height */
@media (max-width: 768px) {
    .voice-filters {
        display: flex !important;
        flex-direction: column !important; /* Stack vertically */
        width: 100% !important;
        gap: 8px !important;
    }
    
    .custom-search,
    .custom-dropdown {
        width: 100% !important; /* Full width of container */
        max-width: 300px !important; /* Maximum width */
        min-width: 200px !important; /* Minimum width */
        margin: 0 auto !important; /* Center them */
        height: auto !important; /* Flexible height for ads */
        min-height: 36px !important; /* Minimum height */
    }
    
    /* Let ads flow inside filter containers */
    .custom-search ins.adsbygoogle,
    .custom-dropdown ins.adsbygoogle {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        margin-top: 8px !important;
    }
}


/* ============================================
   APP NOTIFICATION BAR - CENTERED & RESPONSIVE
   ============================================ */

.app-notification-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #000000;
    color: #ffffff;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: 50px;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.app-notification-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 0 24px;
    height: 100%;
    flex-wrap: nowrap;
}

.app-notification-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.app-logo-wrapper {
    display: flex;
    align-items: center;
}

.app-icon-main {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    object-fit: contain;
    background: #ffffff;
    padding: 4px;
}

.notification-message {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 400;
    color: #e0e0e0;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.app-name-highlight {
    font-weight: 700;
    font-size: 15px;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.notification-divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 2px;
}

.app-notification-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.playstore-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.playstore-link:hover {
    opacity: 0.85;
}

.google-play-badge {
    height: 38px;
    width: auto;
}

.download-app-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: #000000;
    padding: 7px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.download-app-btn:hover {
    background: #f5f5f5;
    transform: translateY(-1px);
}

.download-icon {
    width: 16px;
    height: 16px;
}

.close-notification-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    width: 30px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    transition: all 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}

.close-notification-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

/* Adjust page layout when notification is visible */
body.notification-active header {
    top: 50px;
}

body.notification-active main {
    padding-top: 125px;
}

/* Large Desktop - 1200px and above */
@media (min-width: 1200px) {
    .app-notification-content {
        gap: 24px;
    }
}

/* Desktop - 992px to 1199px */
@media (max-width: 1199px) {
    .app-notification-content {
        gap: 18px;
    }
}

/* Tablet Landscape - 768px to 991px */
@media (max-width: 991px) {
    .app-notification-bar {
        height: 48px;
    }
    
    .app-notification-content {
        gap: 14px;
        padding: 0 20px;
    }
    
    .app-notification-left {
        gap: 12px;
    }
    
    .app-icon-main {
        width: 28px;
        height: 28px;
    }
    
    .notification-message {
        font-size: 13px;
    }
    
    .app-name-highlight {
        font-size: 14px;
    }
    
    .google-play-badge {
        height: 36px;
    }
    
    .download-app-btn {
        padding: 6px 14px;
        font-size: 12px;
    }
    
    body.notification-active header {
        top: 48px;
    }
    
    body.notification-active main {
        padding-top: 123px;
    }
}

/* Tablet Portrait - 600px to 767px */
@media (max-width: 767px) {
    .app-notification-bar {
        height: 46px;
    }
    
    .app-notification-content {
        gap: 12px;
        padding: 0 16px;
    }
    
    .app-notification-left {
        gap: 10px;
    }
    
    .app-icon-main {
        width: 26px;
        height: 26px;
    }
    
    .notification-message {
        font-size: 12px;
        gap: 5px;
    }
    
    .app-name-highlight {
        font-size: 13px;
    }
    
    .notification-divider {
        height: 18px;
    }
    
    .google-play-badge {
        height: 34px;
    }
    
    .download-app-btn {
        padding: 6px 12px;
        font-size: 12px;
        gap: 6px;
    }
    
    .download-icon {
        width: 14px;
        height: 14px;
    }
    
    .close-notification-btn {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }
    
    body.notification-active header {
        top: 46px;
    }
    
    body.notification-active main {
        padding-top: 121px;
    }
}

/* Mobile Large - 480px to 599px */
@media (max-width: 599px) {
    .app-notification-bar {
        height: 44px;
    }
    
    .app-notification-content {
        gap: 10px;
        padding: 0 14px;
    }
    
    .app-notification-left {
        gap: 8px;
    }
    
    .app-icon-main {
        width: 24px;
        height: 24px;
    }
    
    .notification-message {
        font-size: 11px;
        gap: 4px;
    }
    
    .app-name-highlight {
        font-size: 12px;
    }
    
    .google-play-badge {
        height: 32px;
    }
    
    .download-app-btn span {
        display: none;
    }
    
    .download-app-btn {
        padding: 6px 10px;
        gap: 0;
    }
    
    .download-icon {
        width: 14px;
        height: 14px;
    }
    
    body.notification-active header {
        top: 44px;
    }
    
    body.notification-active main {
        padding-top: 119px;
    }
}

/* Mobile Medium - 375px to 479px */
@media (max-width: 479px) {
    .app-notification-bar {
        height: 42px;
    }
    
    .app-notification-content {
        gap: 8px;
        padding: 0 12px;
    }
    
    .app-notification-left {
        gap: 7px;
    }
    
    .app-icon-main {
        width: 22px;
        height: 22px;
    }
    
    .notification-message span:first-child {
        display: none;
    }
    
    .notification-message span:last-child {
        display: none;
    }
    
    .notification-message {
        font-size: 11px;
    }
    
    .app-name-highlight {
        font-size: 12px;
    }
    
    .notification-divider {
        display: none;
    }
    
    .google-play-badge {
        height: 30px;
    }
    
    .app-notification-right {
        gap: 8px;
    }
    
    .close-notification-btn {
        width: 26px;
        height: 26px;
        font-size: 16px;
    }
    
    body.notification-active header {
        top: 42px;
    }
    
    body.notification-active main {
        padding-top: 117px;
    }
}

/* Mobile Small - 320px to 374px */
@media (max-width: 374px) {
    .app-notification-bar {
        height: 40px;
    }
    
    .app-notification-content {
        gap: 6px;
        padding: 0 10px;
    }
    
    .app-notification-left {
        gap: 6px;
    }
    
    .app-icon-main {
        width: 20px;
        height: 20px;
    }
    
    .notification-message {
        font-size: 10px;
    }
    
    .app-name-highlight {
        font-size: 11px;
    }
    
    .google-play-badge {
        height: 28px;
    }
    
    .download-app-btn {
        padding: 5px 8px;
    }
    
    .download-icon {
        width: 12px;
        height: 12px;
    }
    
    .close-notification-btn {
        width: 24px;
        height: 24px;
        font-size: 16px;
    }
    
    body.notification-active header {
        top: 40px;
    }
    
    body.notification-active main {
        padding-top: 115px;
    }
}





































