/* ========================================
   🎤 Bangla Voice Typing — Voice-Typing.css
   ======================================== */

/* Hero Section */
.vt-hero {
    text-align: center;
    padding: 40px 20px 30px;
}

.vt-hero .hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.3px;
}

.vt-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #e0e7ff, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    line-height: 1.3;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.dark-mode .vt-hero h1 {
    background: linear-gradient(135deg, #90caf9, #64b5f6, #42a5f5);
    -webkit-background-clip: text;
    background-clip: text;
}

.vt-hero .hero-sub {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.05rem;
    margin-bottom: 8px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.dark-mode .vt-hero .hero-sub {
    color: #94a3b8;
}

.vt-hero .hero-sub-small {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.75);
}

.dark-mode .vt-hero .hero-sub-small {
    color: #64748b;
}

/* Browser Support Warning */
.vt-unsupported {
    display: none;
    max-width: 700px;
    margin: 0 auto 30px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #f59e0b;
    border-radius: 16px;
    text-align: center;
    color: #92400e;
    font-weight: 600;
}

.dark-mode .vt-unsupported {
    background: linear-gradient(135deg, #451a03, #78350f);
    border-color: #b45309;
    color: #fbbf24;
}

/* Main Tool Container — Wider to match header */
.vt-tool-container {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

/* ========== Unified Card — 2 Column Layout ========== */
.vt-unified-card {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 0;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    overflow: hidden;
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.12),
        0 1px 0 rgba(255, 255, 255, 0.1) inset;
    margin-bottom: 28px;
}

.dark-mode .vt-unified-card {
    background: rgba(15, 15, 30, 0.7);
    border-color: rgba(139, 92, 246, 0.2);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

/* ========== Left: Input Panel ========== */
.vt-input-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 32px 24px;
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.08) 0%, rgba(124, 58, 237, 0.02) 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.dark-mode .vt-input-panel {
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.12) 0%, rgba(124, 58, 237, 0.04) 100%);
    border-right-color: rgba(139, 92, 246, 0.15);
}

/* Status Badge (replaces full-width status bar) */
.vt-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(124, 58, 237, 0.12);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.88rem;
    color: #1e1b4b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.dark-mode .vt-status-badge {
    background: rgba(22, 22, 38, 0.9);
    border-color: rgba(139, 92, 246, 0.25);
    color: #e2e8f0;
}

/* Listening state badge */
.vt-status-badge.listening {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #dc2626;
}

.dark-mode .vt-status-badge.listening {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.vt-status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.92rem;
    color: #ffffff;
}

.dark-mode .vt-status-indicator {
    color: #e2e8f0;
}

.vt-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #9ca3af;
    transition: all 0.3s;
}

.vt-status-dot.listening {
    background: #10b981;
    animation: pulse-dot 1.2s ease-in-out infinite;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
}

.vt-status-dot.error {
    background: #ef4444;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.5);
}

@keyframes pulse-dot {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.4);
        opacity: 0.7;
    }
}

.vt-lang-select {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.vt-lang-select label {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

.dark-mode .vt-lang-select label {
    color: #a78bfa;
}

.vt-lang-select select {
    width: 100%;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(124, 58, 237, 0.2);
    background: rgba(255, 255, 255, 0.85);
    color: #1e1b4b;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
    text-align: center;
}

.dark-mode .vt-lang-select select {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.25);
    color: #e2e8f0;
}

.vt-lang-select select:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

/* Mic Button Area */
.vt-mic-area {
    text-align: center;
    margin-bottom: 0;
    padding: 5px 0;
}

/* Mic Wrapper — contains rings + button */
.vt-mic-wrapper {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Concentric Rings */
.vt-mic-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.vt-ring-outer {
    width: 160px;
    height: 160px;
    border-color: rgba(88, 56, 163, 0.15);
    animation: ring-breathe 4s ease-in-out infinite;
}

.vt-ring-middle {
    width: 136px;
    height: 136px;
    border-color: rgba(88, 56, 163, 0.25);
    animation: ring-breathe 4s ease-in-out infinite 0.5s;
}

.vt-ring-inner {
    width: 116px;
    height: 116px;
    border-color: rgba(88, 56, 163, 0.4);
    animation: ring-breathe 4s ease-in-out infinite 1s;
}

@keyframes ring-breathe {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.06);
        opacity: 0.6;
    }
}

/* Listening state — rings turn red and pulse faster */
.vt-mic-area.listening .vt-ring-outer {
    border-color: rgba(239, 68, 68, 0.2);
    width: 180px;
    height: 180px;
    animation: ring-pulse-red 1.5s ease-in-out infinite;
}

.vt-mic-area.listening .vt-ring-middle {
    border-color: rgba(239, 68, 68, 0.35);
    width: 150px;
    height: 150px;
    animation: ring-pulse-red 1.5s ease-in-out infinite 0.3s;
}

.vt-mic-area.listening .vt-ring-inner {
    border-color: rgba(239, 68, 68, 0.5);
    width: 126px;
    height: 126px;
    animation: ring-pulse-red 1.5s ease-in-out infinite 0.6s;
}

@keyframes ring-pulse-red {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.15);
        opacity: 0.4;
    }
}

/* Mic Button */
.vt-mic-btn {
    position: relative;
    z-index: 2;
    width: 96px;
    height: 96px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(145deg, #5b21b6, #7c3aed, #6d28d9);
    color: #fff;
    font-size: 2.2rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 8px 32px rgba(91, 33, 182, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.vt-mic-btn:hover {
    transform: scale(1.1);
    box-shadow:
        0 14px 44px rgba(91, 33, 182, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.vt-mic-btn:active {
    transform: scale(0.95);
}

/* Listening state button */
.vt-mic-btn.listening {
    background: linear-gradient(145deg, #dc2626, #ef4444, #f87171);
    box-shadow:
        0 8px 32px rgba(239, 68, 68, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    animation: mic-glow-red 1.5s ease-in-out infinite;
}

@keyframes mic-glow-red {

    0%,
    100% {
        box-shadow: 0 8px 32px rgba(239, 68, 68, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }

    50% {
        box-shadow: 0 8px 56px rgba(239, 68, 68, 0.7), 0 0 100px rgba(239, 68, 68, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }
}

/* Ripple rings on listening */
.vt-mic-btn.listening::before,
.vt-mic-btn.listening::after {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    border: 2px solid rgba(239, 68, 68, 0.5);
    border-radius: 50%;
    animation: mic-ripple 2s ease-out infinite;
}

.vt-mic-btn.listening::after {
    animation-delay: 0.6s;
}

@keyframes mic-ripple {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

.vt-mic-label {
    display: block;
    margin-top: 16px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.dark-mode .vt-mic-label {
    color: #a0aec0;
}

.vt-mic-area.listening .vt-mic-label {
    color: #ef4444;
    animation: label-blink 1.5s ease-in-out infinite;
}

@keyframes label-blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Waveform Visualizer */
.vt-waveform {
    display: none;
    justify-content: center;
    align-items: flex-end;
    gap: 3px;
    height: 48px;
    margin-top: 18px;
    padding: 10px 0;
}

.vt-waveform.active {
    display: flex;
}

.vt-wave-bar {
    width: 4px;
    background: linear-gradient(to top, #7c3aed, #a78bfa);
    border-radius: 4px;
    transition: height 0.05s linear;
    min-height: 4px;
}

.vt-mic-area.listening .vt-wave-bar {
    background: linear-gradient(to top, #ef4444, #fca5a5);
}

.dark-mode .vt-wave-bar {
    background: linear-gradient(to top, #8b5cf6, #c4b5fd);
}

.dark-mode .vt-mic-area.listening .vt-wave-bar {
    background: linear-gradient(to top, #f87171, #fecaca);
}

/* Output Panel — Right side of unified card */
.vt-output-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.92);
    overflow: hidden;
}

.dark-mode .vt-output-panel {
    background: rgba(22, 22, 38, 0.95);
}

.vt-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    flex-wrap: wrap;
    gap: 10px;
    background: rgba(124, 58, 237, 0.03);
}

.dark-mode .vt-panel-header {
    border-bottom-color: rgba(255, 255, 255, 0.06);
    background: rgba(124, 58, 237, 0.06);
}

.vt-panel-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1e1b4b;
    margin: 0;
}

.dark-mode .vt-panel-header h3 {
    color: #e8edf5;
}

.vt-panel-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.vt-action-btn {
    padding: 8px 16px;
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 10px;
    background: rgba(124, 58, 237, 0.05);
    color: #4c1d95;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.dark-mode .vt-action-btn {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.25);
    color: #c4b5fd;
}

.vt-action-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
}

.vt-action-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.vt-action-btn.copied {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: #fff !important;
    border-color: transparent !important;
}

/* Textarea */
.vt-textarea {
    width: 100%;
    min-height: 220px;
    padding: 22px;
    border: none;
    outline: none;
    resize: vertical;
    font-size: 1.08rem;
    font-family: 'Noto Sans Bengali', 'Hind Siliguri', sans-serif;
    line-height: 1.85;
    color: #1e1b4b;
    background: transparent;
    box-sizing: border-box;
}

.dark-mode .vt-textarea {
    color: #e2e8f0;
}

.vt-textarea::placeholder {
    color: #9ca3af;
    font-size: 0.95rem;
}

.dark-mode .vt-textarea::placeholder {
    color: #4b5563;
}

/* Interim Text (live preview) */
.vt-interim {
    padding: 0 22px 10px;
    font-size: 0.95rem;
    color: #8b5cf6;
    font-style: italic;
    min-height: 24px;
}

.dark-mode .vt-interim {
    color: #a78bfa;
}

/* Stats Bar */
.vt-stats {
    display: flex;
    gap: 20px;
    padding: 12px 22px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.82rem;
    color: #6b7280;
    flex-wrap: wrap;
    background: rgba(124, 58, 237, 0.02);
}

.dark-mode .vt-stats {
    border-top-color: rgba(255, 255, 255, 0.06);
    color: #64748b;
    background: rgba(124, 58, 237, 0.04);
}

/* Features Section */
.vt-features {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.vt-features h2 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 24px;
}

.dark-mode .vt-features h2 {
    color: #f0f4ff;
}

.vt-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.vt-feature-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s;
}

.dark-mode .vt-feature-card {
    background: rgba(30, 30, 46, 0.8);
    border-color: #333350;
}

.vt-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.dark-mode .vt-feature-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.vt-feature-card .feature-icon {
    font-size: 2.2rem;
    display: block;
    margin-bottom: 12px;
}

.vt-feature-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.dark-mode .vt-feature-card h4 {
    color: #f0f4ff;
}

.vt-feature-card p {
    font-size: 0.88rem;
    color: #374151;
    line-height: 1.6;
}

.dark-mode .vt-feature-card p {
    color: #94a3b8;
}

/* How To Section */
.vt-howto {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.vt-howto h2 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 24px;
}

.dark-mode .vt-howto h2 {
    color: #f0f4ff;
}

.vt-howto-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.vt-step-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    position: relative;
}

.dark-mode .vt-step-card {
    background: rgba(30, 30, 46, 0.8);
    border-color: #333350;
}

.vt-step-card .step-num {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    line-height: 28px;
    background: linear-gradient(135deg, #1565c0, #1976d2);
    color: #fff;
    border-radius: 50%;
    font-size: 0.82rem;
    font-weight: 700;
}

.vt-step-card .step-icon {
    font-size: 2rem;
    display: block;
    margin: 8px 0 10px;
}

.vt-step-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 6px;
}

.dark-mode .vt-step-card h4 {
    color: #f0f4ff;
}

.vt-step-card p {
    font-size: 0.85rem;
    color: #374151;
    line-height: 1.5;
}

.dark-mode .vt-step-card p {
    color: #94a3b8;
}

/* SEO Content Section */
.vt-seo-section {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.vt-seo-section h2 {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.4;
}

.dark-mode .vt-seo-section h2 {
    color: #e8edf5;
}

.vt-seo-content {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px;
}

.dark-mode .vt-seo-content {
    background: rgba(30, 30, 46, 0.7);
    border-color: #333350;
}

.vt-seo-content p {
    color: #374151;
    line-height: 1.85;
    font-size: 0.95rem;
    margin-bottom: 14px;
}

.vt-seo-content p:last-child {
    margin-bottom: 0;
}

.dark-mode .vt-seo-content p {
    color: #c8cdd5;
}

.vt-seo-content strong {
    color: #1f2937;
    font-weight: 600;
}

.dark-mode .vt-seo-content strong {
    color: #e2e8f0;
}

.vt-inline-link {
    color: #1565c0;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s;
}

.dark-mode .vt-inline-link {
    color: #90caf9;
}

.vt-inline-link:hover {
    border-bottom-color: #1565c0;
}

.dark-mode .vt-inline-link:hover {
    border-bottom-color: #90caf9;
}

/* Related Links */
.vt-related {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.vt-related h3 {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
}

.dark-mode .vt-related h3 {
    color: #f0f4ff;
}

.vt-link-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.vt-link-pills a {
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #e5e7eb;
    border-radius: 50px;
    color: #1565c0;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.dark-mode .vt-link-pills a {
    background: rgba(30, 30, 46, 0.8);
    border-color: #333350;
    color: #90caf9;
}

.vt-link-pills a:hover {
    background: #1565c0;
    color: #fff;
    border-color: #1565c0;
    transform: translateY(-2px);
}

/* FAQ Section */
.vt-faq {
    max-width: 1100px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.vt-faq h2 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 24px;
}

.dark-mode .vt-faq h2 {
    color: #f0f4ff;
}

/* FAQ Grid — 2 columns on desktop */
.vt-faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 768px) {
    .vt-faq-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }
}

.vt-faq details {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid #d1d5db;
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s;
}

.vt-faq details:hover {
    border-color: #93c5fd;
    box-shadow: 0 4px 16px rgba(21, 101, 192, 0.08);
}

.dark-mode .vt-faq details {
    background: rgba(30, 30, 46, 0.85);
    border-color: #333350;
}

.dark-mode .vt-faq details:hover {
    border-color: #404080;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.vt-faq summary {
    padding: 16px 20px;
    font-weight: 700;
    color: #111827;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.95rem;
    gap: 8px;
    transition: color 0.2s;
}

.vt-faq summary:hover {
    color: #1565c0;
}

.dark-mode .vt-faq summary {
    color: #e8edf5;
}

.dark-mode .vt-faq summary:hover {
    color: #90caf9;
}

.vt-faq summary::after {
    content: '▸';
    transition: transform 0.3s;
    flex-shrink: 0;
    color: #6b7280;
}

.dark-mode .vt-faq summary::after {
    color: #64748b;
}

.vt-faq details[open] summary::after {
    transform: rotate(90deg);
}

.vt-faq details p {
    padding: 0 20px 16px;
    color: #374151;
    font-size: 0.9rem;
    line-height: 1.75;
    margin: 0;
}

.dark-mode .vt-faq details p {
    color: #b0b8c8;
}

/* Responsive */
/* Converter Panel */
.vt-converter-panel {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    margin-bottom: 24px;
}

.dark-mode .vt-converter-panel {
    background: rgba(22, 22, 38, 0.95);
    border-color: rgba(124, 58, 237, 0.25);
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.35);
}

.vt-converter-header {
    padding: 20px 24px 12px;
    text-align: center;
}

.vt-converter-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e1b4b;
    margin: 0 0 6px;
}

.dark-mode .vt-converter-header h3 {
    color: #e8edf5;
}

.vt-converter-header p {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0;
}

.dark-mode .vt-converter-header p {
    color: #94a3b8;
}

.vt-converter-actions {
    display: flex;
    gap: 12px;
    padding: 12px 24px 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.vt-convert-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}

.vt-convert-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.45);
}

.vt-convert-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
}

.vt-convert-btn.vt-convert-secondary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.vt-convert-btn.vt-convert-secondary:hover:not(:disabled) {
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.45);
}

.vt-convert-icon {
    font-size: 1.1rem;
}

.vt-converter-output {
    padding: 0 24px 20px;
}

.vt-converter-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0 8px;
    font-weight: 700;
    color: #059669;
    font-size: 0.9rem;
}

.dark-mode .vt-converter-result-header {
    color: #34d399;
}

.vt-conv-copy-btn {
    font-size: 0.8rem !important;
    padding: 6px 12px !important;
}

.vt-converter-textarea {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: 12px;
    background: rgba(124, 58, 237, 0.04);
    font-size: 1rem;
    font-family: 'SutonnyMJ', 'Kalpurush', 'Noto Sans Bengali', sans-serif;
    line-height: 1.8;
    color: #1e1b4b;
    resize: vertical;
    outline: none;
    box-sizing: border-box;
}

.dark-mode .vt-converter-textarea {
    background: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.2);
    color: #e2e8f0;
}

/* Responsive */
@media (max-width: 640px) {
    .vt-hero h1 {
        font-size: 1.5rem;
    }

    .vt-mic-btn {
        width: 80px;
        height: 80px;
        font-size: 1.8rem;
    }

    .vt-mic-wrapper {
        width: 130px;
        height: 130px;
    }

    .vt-ring-outer {
        width: 130px;
        height: 130px;
    }

    .vt-ring-middle {
        width: 110px;
        height: 110px;
    }

    .vt-ring-inner {
        width: 94px;
        height: 94px;
    }

    /* Unified card stacks vertically on mobile */
    .vt-unified-card {
        grid-template-columns: 1fr;
    }

    .vt-input-panel {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 24px 20px;
    }

    .vt-textarea {
        min-height: 160px;
        font-size: 1rem;
    }

    .vt-panel-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .vt-converter-actions {
        flex-direction: column;
    }

    .vt-convert-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (min-width: 641px) and (max-width: 900px) {

    /* Tablet: stack but with wider input panel */
    .vt-unified-card {
        grid-template-columns: 1fr;
    }

    .vt-input-panel {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 24px;
        padding: 28px;
    }

    .vt-status-badge {
        order: -1;
        width: 100%;
        justify-content: center;
    }

    .vt-lang-select {
        width: auto;
        flex-direction: row;
        gap: 8px;
    }
}

@media (min-width: 1024px) {
    .vt-hero h1 {
        font-size: 2.4rem;
    }

    .vt-textarea {
        min-height: 280px;
        flex: 1;
    }

    .vt-output-panel {
        min-height: 380px;
    }
}

/* ========================
   Theme Architecture Updates (Light/Dark Mode Fixes)
   ======================== */

/* Unified Card & Panels */
.vt-unified-card {
    background: var(--bg-card);
    border-color: var(--border-color);
    box-shadow: var(--shadow-color) 0px 4px 12px;
}
.vt-input-panel {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}
.vt-output-panel {
    background: var(--bg-card);
}
.vt-status-indicator {
    color: var(--text-dark);
}
.vt-lang-select label {
    color: var(--text-dark);
}
.vt-mic-label {
    color: var(--text-muted);
}
.vt-panel-header {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}
.vt-panel-header h3 {
    color: var(--text-dark);
}

/* Secondary Panels */
.vt-converter-panel {
    background: var(--bg-card);
    border-color: var(--border-color);
    box-shadow: var(--shadow-color) 0px 4px 12px;
}
.vt-converter-header h3 {
    color: var(--text-dark);
}
.vt-converter-header p {
    color: var(--text-muted);
}

/* Textarea inputs */
.vt-textarea, .vt-converter-textarea {
    color: var(--text-dark);
    background: var(--bg-card);
    border-color: var(--border-color);
}
.vt-textarea::placeholder, .vt-converter-textarea::placeholder {
    color: var(--text-muted);
}

/* Typography and Headings */
.vt-hero h1 {
    background: linear-gradient(135deg, var(--text-dark), var(--primary-color), var(--text-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.vt-hero .hero-sub, .vt-features h2, .vt-howto h2, .vt-seo-section h2, .vt-related h3, .vt-faq h2 {
    color: var(--text-dark);
}

.vt-hero .hero-sub-small {
    color: var(--text-muted);
}

/* Cards (Features, SEO, Steps, FAQ) */
.vt-feature-card, .vt-step-card, .vt-seo-content, .vt-faq details, .vt-link-pills a {
    background: var(--bg-card);
    border-color: var(--border-color);
    box-shadow: var(--shadow-color) 0px 2px 8px;
}
.vt-feature-card h4, .vt-step-card h4, .vt-faq summary {
    color: var(--text-dark);
}
.vt-feature-card p, .vt-step-card p, .vt-seo-content p, .vt-faq details p {
    color: var(--text-muted);
}
.vt-seo-content strong {
    color: var(--text-dark);
}

/* Buttons and Links */
.vt-link-pills a {
    color: var(--primary-color);
}
.vt-link-pills a:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.vt-action-btn {
    background: var(--bg-card);
    color: var(--primary-color);
    border-color: var(--border-color);
}
body.dark-mode .vt-action-btn {
    background: var(--bg-secondary);
}

/* Stats */
.vt-stats {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-muted);
}

/* Make sure text within unified card stays proper when mode changes */
body.dark-mode .vt-status-indicator, body.dark-mode .vt-panel-header h3 {
    color: var(--text-dark);
}