/* === GLOBAL DESIGN SYSTEM & THEME VARIABLES === */
:root {
    --primary: #00f2ff;
    --primary-glow: rgba(0, 242, 255, 0.5);
    --secondary: #9d50bb;
    --secondary-glow: rgba(157, 80, 187, 0.5);
    --accent: #00ff7a;
    --bg-dark: #05070a;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-glass: rgba(15, 15, 30, 0.7);
    --border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-muted: #a0a0b8;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Mode Overrides */
body.light-mode {
    --bg-dark: #f8f9fa;
    --bg-card: rgba(0, 0, 0, 0.02);
    --bg-glass: rgba(255, 255, 255, 0.8);
    --border: rgba(0, 0, 0, 0.1);
    --text-main: #1a1a2e;
    --text-muted: #5e5e7a;
}

/* === CUSTOM TOOLTIP SYSTEM === */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: rgba(10, 10, 30, 0.95);
    color: #e0e0ff;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: all 0.25s ease;
    z-index: 9999;
    border: 1px solid rgba(0, 242, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 10px rgba(0, 242, 255, 0.1);
    max-width: 260px;
    white-space: normal;
    text-align: center;
    line-height: 1.4;
}

[data-tooltip]::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(10, 10, 30, 0.95);
    pointer-events: none;
    opacity: 0;
    transition: all 0.25s ease;
    z-index: 9999;
}

[data-tooltip]:hover::after,
[data-tooltip]:hover::before,
[data-tooltip]:focus-visible::after,
[data-tooltip]:focus-visible::before {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.smart-tooltip {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10050;
    max-width: min(280px, calc(100vw - 24px));
    padding: 8px 14px;
    border-radius: 12px;
    border: 1px solid rgba(0, 242, 255, 0.3);
    background: rgba(10, 10, 30, 0.96);
    color: #e0e0ff;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    transform: translateY(6px) scale(0.96);
    transition: opacity 0.18s ease, transform 0.18s ease;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 14px rgba(0, 242, 255, 0.12);
}

.smart-tooltip::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
}

.smart-tooltip[data-show="true"] {
    opacity: 1;
}

.smart-tooltip[data-position="top"] {
    transform: translateY(0) scale(1);
}

.smart-tooltip[data-position="top"]::after {
    top: 100%;
    border-top-color: rgba(10, 10, 30, 0.96);
}

.smart-tooltip[data-position="bottom"] {
    transform: translateY(0) scale(1);
}

.smart-tooltip[data-position="bottom"]::after {
    bottom: 100%;
    border-bottom-color: rgba(10, 10, 30, 0.96);
}

body.smart-tooltips-ready [data-tooltip]::after,
body.smart-tooltips-ready [data-tooltip]::before {
    display: none !important;
}

@media (hover: none),
(pointer: coarse) {

    [data-tooltip]::after,
    [data-tooltip]::before {
        display: none !important;
    }
}

/* === MIC & CAMERA TOGGLE ACTIVE STATES === */
#toggle-mic.active {
    background: rgba(255, 0, 122, 0.25) !important;
    border-color: #ff007a !important;
    color: #ff007a !important;
    box-shadow: 0 0 15px rgba(255, 0, 122, 0.3);
}

#toggle-video.active {
    background: rgba(255, 0, 122, 0.25) !important;
    border-color: #ff007a !important;
    color: #ff007a !important;
    box-shadow: 0 0 15px rgba(255, 0, 122, 0.3);
}

/* === SENTIMENT BADGE CONTRAST FIX === */
#sentiment-badge {
    color: #aaa !important;
    border-color: #555 !important;
}

/* App Overlay */
.app-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    z-index: 2000;
    display: none;
    /* Triggered by JS */
    opacity: 0;
    transition: 0.5s;
}

.app-overlay.active {
    display: block;
    opacity: 1;
}

.close-app {
    position: absolute;
    top: 20px;
    right: 40px;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 2100;
    transition: 0.3s;
}

.close-app:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.megaverse-app-standalone {
    height: 100vh;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.megaverse-app-standalone .app-container {
    width: 100%;
    max-width: 1600px;
    height: 90vh;
    /* Premium large view */
    box-shadow: 0 0 100px rgba(0, 242, 255, 0.1);
}

.secondary-outline {
    border: 2px solid var(--secondary);
    color: var(--secondary);
    padding: 14px 34px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.5s;
    text-transform: uppercase;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.secondary-outline:hover {
    background: var(--secondary);
    color: white;
    box-shadow: var(--neon-purple);
}

/* Hide original section if needed */
.megaverse-app {
    display: none;
}

:root {
    --bg-dark: #050510;
    --bg-card: rgba(16, 18, 42, 0.6);
    --primary: #00f2ff;
    --secondary: #7000ff;
    --accent: #ff007a;
    --text-white: #ffffff;
    --text-gray: #a0a0b8;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-bright: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.1);
    --neon-blue: 0 0 15px rgba(0, 242, 255, 0.5);
    --neon-purple: 0 0 20px rgba(112, 0, 255, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Navigation - Ultra Sleek */
nav {
    height: 80px;
    display: flex;
    align-items: center;
    background: rgba(5, 5, 16, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav .container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--text-white);
    text-shadow: var(--neon-blue);
}

.logo span {
    color: var(--primary);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-links a:hover {
    color: var(--primary);
    text-shadow: var(--neon-blue);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 100px 0;
    background: radial-gradient(circle at 10% 20%, rgba(0, 242, 255, 0.05), transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(112, 0, 255, 0.08), transparent 40%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
}

.hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 64px;
    line-height: 1.1;
    margin-bottom: 30px;
    letter-spacing: -1px;
    color: white;
}

.hero h1 span {
    background: linear-gradient(90deg, #00f2ff, #7000ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    animation: glow-text 3s ease infinite alternate;
}

@keyframes glow-text {
    0% {
        filter: drop-shadow(0 0 5px rgba(0, 242, 255, 0.4));
    }

    100% {
        filter: drop-shadow(0 0 20px rgba(112, 0, 255, 0.6));
    }
}

.hero p {
    font-size: 20px;
    color: var(--text-gray);
    margin-bottom: 50px;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 25px;
}

/* Premium Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 16px 36px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.5s;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}


.btn-primary:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 242, 255, 0.4);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 14px 34px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.5s;
    text-transform: uppercase;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: var(--neon-blue);
}

/* Visualization */
.hero-visual {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    transition: 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.hero-visual:hover {
    border-color: var(--primary);
    transform: perspective(1000px) rotateY(-5deg);
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: 0.5s;
}

.hero-visual:hover .hero-img {
    opacity: 1;
    transform: scale(1.05);
}

/* Dashboard / App Section */
.megaverse-app {
    padding: 40px 0;
    background: #020208;
}

.app-container {
    height: 100vh;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 0;
    display: grid;
    grid-template-columns: minmax(220px, 300px) 1fr minmax(220px, 300px);
    gap: 1px;
    overflow: hidden;
    backdrop-filter: blur(30px);
}

.sidebar {
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: hidden;
    /* Prevent the entire sidebar from scrolling */
    overflow-x: hidden;
    min-width: 0;
}

.panel-header {
    padding: clamp(10px, 2vw, 25px);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.panel-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(10px, 1.2vw, 14px);
    letter-spacing: 2px;
    color: var(--primary);
    white-space: nowrap;
}

.messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
    display: flex;
    flex-direction: column;
}

/* Coach Tips - Cyberpunk Style */
.coach-tip {
    background: linear-gradient(90deg, rgba(0, 255, 122, 0.1), transparent);
    border-left: 4px solid #00ff7a;
    padding: 20px;
    border-radius: 0 15px 15px 0;
    position: relative;
    animation: slideInLeft 0.5s forwards;
    margin-right: 30px;
    align-self: flex-start;
}

.coach-msg-user {
    background: rgba(0, 255, 122, 0.1);
    border-right: 4px solid #00ff7a;
    padding: 12px 16px;
    border-radius: 12px;
    align-self: flex-end;
    margin-left: 30px;
    margin-bottom: 15px;
    color: #00ff7a;
    animation: slideInRight 0.5s forwards;
    position: relative;
}

.coach-tip::before {
    content: 'STRATEGY';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 10px;
    background: var(--secondary);
    padding: 2px 8px;
    border-radius: 4px;
    color: white;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(20px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Main Stage - Video System */
.main-stage {
    padding: clamp(10px, 2vw, 25px);
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 1.5vw, 25px);
    background: radial-gradient(circle at center, rgba(0, 242, 255, 0.05), transparent);
    overflow-y: auto;
    min-width: 0;
    min-height: 0;
}

.video-grid {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.video-wrapper {
    background: var(--bg-glass);
    border-radius: 40px;
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    max-height: min(44vh, 520px);
    border: 1px solid var(--primary-glow);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 0 40px rgba(0, 242, 255, 0.05);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(40px);
}

.video-wrapper:hover {
    border-color: var(--primary);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8), 0 0 40px var(--primary-glow);
    transform: translateY(-8px) scale(1.02);
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: screen;
    /* Optional: makes it feel more integrated with UI */
}

#my-video-label,
#remote-video-label,
[id^="label-"] {
    position: absolute;
    top: 25px;
    left: 25px;
    background: rgba(10, 10, 20, 0.8);
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 13px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 255, 122, 0.3);
    color: #00ff7a !important;
    font-weight: bold;
    text-shadow: 0 0 15px rgba(0, 255, 122, 0.6);
    z-index: 1000;
    pointer-events: none;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* For flag and name */
}

.mtac-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    padding: 18px 26px;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    font-size: 18px;
    line-height: 1.6;
    font-weight: 600;
    color: var(--primary);
    text-align: center;
    font-style: italic;
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Controls */
.app-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(8px, 1.5vw, 25px) clamp(10px, 2vw, 40px);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    margin-top: auto;
    flex-shrink: 0;
    flex-wrap: wrap;
    gap: 8px;
}

.app-controls>div {
    display: flex;
    gap: clamp(4px, 0.5vw, 10px);
    align-items: center;
    flex-wrap: wrap;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-gray);
}

.icon-vu-container {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 28px;
    height: 36px;
    margin-right: 5px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 2px;
}

.icon-vu-container .icon {
    font-size: 16px;
    z-index: 2;
    transition: transform 0.2s;
    opacity: 0.9;
}

.icon-vu-container .vu-meter {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    gap: 1.5px;
    align-items: flex-end;
    padding: 4px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.9;
}

.icon-vu-container .vu-meter span {
    flex: 1;
    height: 35%;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 1px;
    transition: height 0.05s ease, background 0.1s;
}

.icon-vu-container.active .icon {
    transform: scale(1.1);
    opacity: 1;
}

.control-btn {
    width: clamp(36px, 4vw, 60px);
    height: clamp(36px, 4vw, 60px);
    border-radius: 12px;
    background: var(--glass-bright);
    border: 1px solid var(--glass-border);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(14px, 1.8vw, 24px);
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex-shrink: 0;
    padding: 4px;
}

.control-btn:hover {
    background: var(--primary);
    color: var(--bg-dark);
    transform: scale(1.1) translateY(-3px);
    box-shadow: var(--neon-blue);
}

.control-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(255, 0, 122, 0.4);
}

/* Chat UI */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-bubble {
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 14px;
    max-width: 85%;
}

.chat-bubble.me {
    background: var(--secondary);
    align-self: flex-end;
    border-bottom-right-radius: 0;
}

.chat-bubble.them {
    background: var(--glass-bright);
    align-self: flex-start;
    border-bottom-left-radius: 0;
}

.chat-footer {
    padding: 15px 25px 25px 25px;
    /* Restored normal padding */
    display: flex;
    gap: 12px;
    background: var(--bg-card);
    flex-shrink: 0;
    /* Prevent flexbox from squishing the footer */
    border-top: 1px solid var(--glass-border);
}

.chat-input {
    flex: 1;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 18px 20px;
    color: white;
    font-size: 18px;
    line-height: 1.65;
    outline: none;
    transition: 0.3s;
}

:root {
    --mtac-transcript-font-size: 20px;
}

#transcript-bar {
    margin-top: 4px;
    align-items: stretch !important;
}

#transcript-bar .chat-input {
    min-height: 220px;
    color: #eefcff;
}

#transcript {
    min-height: 220px;
    font-size: var(--mtac-transcript-font-size);
    line-height: 1.75;
    font-weight: 600;
    padding: 18px 22px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    overflow-y: auto;
    white-space: pre-wrap;
}

.transcript-font-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}

/* Prevent the fixed Home button from overlapping the coach header. */
#app-view #sidebar-left {
    padding-top: 54px;
}

@media (max-width: 640px) {

    #transcript-bar .chat-input,
    #transcript {
        min-height: 180px;
    }

    #app-view #sidebar-left {
        padding-top: 58px;
    }
}

.meeting-timer-corner {
    position: absolute;
    top: 16px;
    right: 18px;
    z-index: 1200;
    padding: 8px 14px;
    border-radius: 14px;
    border: 1px solid rgba(0, 255, 122, 0.45);
    background: rgba(0, 20, 10, 0.86);
    color: #00ff7a;
    box-shadow: 0 0 20px rgba(0, 255, 122, 0.2);
    font-family: 'Orbitron', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
}

.ai-state-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 25;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(0, 255, 122, 0.16);
    border: 1px solid rgba(0, 255, 122, 0.45);
    color: #00ff7a;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 0 18px rgba(0, 255, 122, 0.16);
}

.video-wrapper.screen-share-active video,
.video-wrapper.video-screen-fit video {
    object-fit: contain !important;
    object-position: center center !important;
    background: #05070d;
}

.screen-share-active {
    object-fit: contain !important;
    background: #000;
}

.meeting-extension-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    background: rgba(2, 8, 20, 0.7);
    backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.meeting-extension-panel {
    width: min(520px, 92vw);
    background: rgba(8, 14, 28, 0.94);
    border: 1px solid rgba(0, 242, 255, 0.18);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    padding: 28px;
    text-align: center;
}

.meeting-extension-panel h3 {
    font-size: 28px;
    margin: 0 0 12px;
    color: #f6fbff;
}

.meeting-extension-panel p {
    margin: 0 0 20px;
    color: #b8d1e9;
    font-size: 16px;
    line-height: 1.6;
}

.meeting-extension-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.chat-input:focus {
    border-color: var(--primary);
    background: var(--glass-bright);
}

/* Glow Effects */
.glow-primary {
    filter: drop-shadow(0 0 10px var(--primary));
}

@media (max-width: 1400px) {
    .app-container {
        grid-template-columns: 320px 1fr 320px;
    }
}

@media (max-width: 1100px) {
    .app-container {
        grid-template-columns: 300px 1fr;
    }

    .sidebar:last-of-type {
        display: none;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
        width: 100%;
        max-width: 100% !important;
    }


    /* index.html fixes */
    nav {
        height: auto;
        padding: 15px 0;
    }

    nav .container {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links li:not(.lang-switcher) {
        display: none;
        /* Simplify mobile nav */
    }

    .hero {
        padding: 60px 0;
        text-align: center;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero p {
        font-size: 16px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-btns {
        flex-direction: column;
        align-items: stretch;
    }

    /* feature-grid */
    .feature-grid {
        grid-template-columns: 1fr !important;
    }

    /* app.html fixes */
    .app-container {
        display: flex !important;
        flex-direction: column !important;
        height: 100vh !important;
        overflow: hidden !important;
    }

    .sidebar {
        display: none !important;
        /* Hide both sidebars on mobile, used via toggle or later */
        height: 40vh !important;
    }

    .sidebar.active-mobile {
        display: flex !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh !important;
        z-index: 3000;
        background: var(--bg-dark);
    }

    .main-stage {
        flex: 1;
        padding: 10px;
        overflow-y: auto;
    }

    .video-grid {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }

    .video-wrapper {
        aspect-ratio: 4/3;
        max-height: min(34vh, 320px);
    }

    .app-controls {
        padding: 10px;
        background: rgba(10, 10, 20, 0.95);
        border-top: 1px solid var(--glass-border);
        justify-content: space-around;
        gap: 5px;
    }

    .control-btn {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .status-indicator {
        width: 100%;
        justify-content: center;
        margin-bottom: 5px;
    }

    .video-grid {
        grid-template-columns: none !important;
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        gap: 12px !important;
        padding-bottom: 8px !important;
        height: min-content !important;
    }

    .video-grid .video-card {
        flex: 0 0 85% !important;
        scroll-snap-align: center !important;
        height: min(34vh, 320px) !important;
    }

    .mtac-overlay {
        font-size: 16px;
        line-height: 1.6;
        min-height: 84px;
        padding: 16px 18px;
    }

    .chat-input {
        font-size: 16px;
        line-height: 1.6;
        padding: 16px 18px;
    }

    #transcript-bar .chat-input {
        min-height: 88px;
    }

    /* login overlay */
    .login-container {
        width: 90% !important;
        margin: 50px auto !important;
        padding: 20px !important;
    }

    .megaverse-app-standalone {
        padding: 0 !important;
        height: 100vh !important;
    }

    .megaverse-app-standalone .app-container {
        height: 100vh !important;
        border-radius: 0 !important;
    }

    .mobile-only-btn {
        display: flex !important;
    }
}

@media (max-width: 480px) {
    .slide-content {
        padding: 20px !important;
    }

    .slide-title {
        font-size: 28px !important;
    }

    .slide-text {
        font-size: 16px !important;
    }
}

/* === AI COACH: force neon green text (put at file end to win cascade) === */
body #coach-messages,
body #coach-messages p,
body #coach-messages span,
body #coach-messages div {
    color: #00ff7a !important;
    text-shadow: 0 0 10px rgba(0, 255, 122, 0.55), 0 0 22px rgba(0, 255, 122, 0.35) !important;
    font-weight: 600;
    letter-spacing: 0.2px;
}

/* === FUTURISTIC UI HELPERS === */
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glow-primary {
    color: var(--primary) !important;
    text-shadow: 0 0 10px var(--primary-glow);
}

.glow-secondary {
    color: var(--secondary) !important;
    text-shadow: 0 0 10px var(--secondary-glow);
}

.glow-accent {
    color: var(--accent) !important;
    text-shadow: 0 0 10px rgba(0, 255, 122, 0.5);
}

/* Responsive Containers & Grids */
@media (max-width: 992px) {
    .container {
        padding: 0 30px;
    }

    .hero .container {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 40px !important;
    }

    .hero-btns {
        justify-content: center;
    }

    .solution-section .container {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    .solution-section:nth-child(even) .solution-visual {
        order: -1;
    }
}

@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr !important;
    }

    .hero h1 {
        font-size: 40px !important;
    }

    .nav-links {
        display: none;
        /* Mobile menu needed */
    }

    .video-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Theme Transition Smoothness */
* {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

/* Fix for investor slides overlap */
.slide-content {
    max-height: 90vh;
    overflow-y: auto;
    width: 90% !important;
    margin: 0 auto;
}

/* === PROFESSIONAL ICON BUTTONS === */
.pro-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e0e0ff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    position: relative;
}

.mobile-only-btn {
    display: none;
}

.pro-icon-btn:hover {
    background: rgba(0, 242, 255, 0.18);
    border-color: rgba(0, 242, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 242, 255, 0.25);
}

.pro-icon-btn.active,
#toggle-mic.active.pro-icon-btn,
#toggle-video.active.pro-icon-btn {
    background: rgba(255, 0, 122, 0.25) !important;
    border-color: #ff007a !important;
    box-shadow: 0 0 12px rgba(255, 0, 122, 0.4);
}

.pro-icon-btn.pro-blue {
    border-color: rgba(0, 242, 255, 0.4);
    color: #00f2ff;
}

.pro-icon-btn.pro-red {
    color: #ff4444;
}

.pro-icon-btn.pro-gold {
    border-color: rgba(255, 204, 0, 0.4);
    color: #ffcc00;
}

/* === PROFESSIONAL TEXT BUTTONS === */
.pro-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e0e0ff;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

.pro-btn:hover {
    background: rgba(0, 242, 255, 0.15);
    border-color: rgba(0, 242, 255, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 242, 255, 0.2);
}

.pro-btn.pro-btn-green {
    background: linear-gradient(135deg, rgba(0, 255, 122, 0.2), rgba(0, 200, 90, 0.15));
    border-color: rgba(0, 255, 122, 0.5);
    color: #00ff7a;
}

.pro-btn.pro-btn-green:hover {
    background: rgba(0, 255, 122, 0.3);
    box-shadow: 0 4px 15px rgba(0, 255, 122, 0.3);
}

.pro-btn.pro-btn-red {
    background: rgba(255, 60, 60, 0.15);
    border-color: rgba(255, 60, 60, 0.5);
    color: #ff5555;
}

.pro-btn.pro-btn-red:hover {
    background: rgba(255, 60, 60, 0.3);
    box-shadow: 0 4px 15px rgba(255, 60, 60, 0.3);
}

.pro-btn.pro-btn-purple {
    background: rgba(112, 0, 255, 0.2);
    border-color: rgba(112, 0, 255, 0.5);
    color: #aa88ff;
}

.pro-btn.pro-btn-purple:hover {
    background: rgba(112, 0, 255, 0.35);
    box-shadow: 0 4px 15px rgba(112, 0, 255, 0.3);
}

.btn-divider {
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    margin: 0 2px;
}

/* === DARK DEVICE SELECT DROPDOWNS === */
.device-select {
    appearance: none;
    -webkit-appearance: none;
    background: rgba(0, 0, 0, 0.6) !important;
    border: 1px solid rgba(0, 255, 122, 0.4);
    border-radius: 10px;
    color: #eafff4 !important;
    padding: 6px 28px 6px 10px;
    font-size: 11px;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    outline: none;
    height: 36px;
    min-width: 100px;
    max-width: 180px;
    transition: border-color 0.2s;
    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='M0 0l5 6 5-6z' fill='%2300ff7a'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center !important;
}

.device-select:focus {
    border-color: #00ff7a;
    box-shadow: 0 0 0 2px rgba(0, 255, 122, 0.2);
}

.device-select option {
    background: #0a0a1a !important;
    color: #eafff4 !important;
    padding: 8px;
}

/* Override for language select (blue accent) */
#target-language.device-select {
    border-color: rgba(0, 242, 255, 0.4);
    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='M0 0l5 6 5-6z' fill='%2300f2ff'/%3E%3C/svg%3E") !important;
}

#target-language.device-select:focus {
    border-color: #00f2ff;
    box-shadow: 0 0 0 2px rgba(0, 242, 255, 0.2);
}

@keyframes toast-in {
    from {
        transform: translate(-50%, 20px);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

@keyframes toast-out {
    from {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    to {
        transform: translate(-50%, 20px);
        opacity: 0;
    }
}

/* Chat & Message Layout Improvements */
.messages-container {
    overflow-x: hidden !important;
    word-wrap: break-word;
}

.chat-bubble {
    max-width: 90%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: pre-wrap;
    padding: 8px 12px;
    border-radius: 12px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.chat-bubble.me {
    align-self: flex-end;
}

.chat-bubble.them {
    align-self: flex-start;
}

/* === PREMIUM LANDING PAGE (GLAMOUR REDESIGN) === */
.hero {
    background: linear-gradient(rgba(0, 0, (40 / 2), 0.7), rgba(0, 0, (60 / 2), 0.9)),
        url("/resim/meeting_vision_1772201740055.png") no-repeat center center/cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(transparent, #05070a);
}

.scenario-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    padding: 25px;
    transition: all 0.4s ease;
    backdrop-filter: blur(20px);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.scenario-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 242, 255, 0.15);
}

.scenario-card img {
    width: 100%;
    border-radius: 20px;
    margin-bottom: 20px;
    transition: transform 0.5s ease;
}

.scenario-card:hover img {
    transform: scale(1.05);
}

.scenario-card h3 {
    margin-bottom: 15px;
    color: white;
}

.scenario-card p {
    font-size: 14px;
    color: #aaa;
    line-height: 1.6;
}

/* === AI INTERPRETER MODE (REVISED HIGH-FIDELITY MOBILE UI) === */
body.interpreter-active {
    overflow: hidden;
}

.interpreter-view {
    display: none;
    flex-direction: column;
    height: var(--app-height, 100vh);
    min-height: 100dvh;
    background: #05070a;
    color: white;
    z-index: 1000;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    font-family: 'Inter', sans-serif;
    background: url('/interpreter_bg_mobile.png') no-repeat center center/cover !important;
    overflow: hidden;
}

.interpreter-main-container {
    flex: 1;
    max-width: 540px;
    /* Force mobile aspect ratio on desktop */
    width: 100%;
    margin: 0 auto;
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    gap: 12px;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
    position: relative;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.interpreter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.interpreter-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transition: 0.3s;
}

button.header-icon {
    border: 0;
    color: inherit;
    padding: 0;
}

.header-icon:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
}

.header-icon.is-active {
    background: rgba(0, 242, 255, 0.16);
    box-shadow: 0 0 0 1px rgba(0, 242, 255, 0.25);
}

/* Waveform Box (Mockup Style) */
.waveform-container-box {
    margin: 0;
    height: 118px;
    min-height: 118px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 20px rgba(0, 242, 255, 0.05);
    backdrop-filter: blur(40px);
    flex-shrink: 0;
}

.voice-wave-container {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 64px;
}

.voice-bar {
    width: 3px;
    height: 18px;
    background: #00f2ff;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.6);
    transition: height 0.1s ease;
}

/* Chat Bubbles (Mockup Style) */
.interpreter-bubbles-scroll {
    min-height: 0;
    overflow-y: auto;
    padding: 14px 10px 18px 4px;
    margin: 0 -4px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 242, 255, 0.5) transparent;
}

.interpreter-bubbles-scroll::-webkit-scrollbar {
    width: 6px;
}

.interpreter-bubbles-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.interpreter-bubbles-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 242, 255, 0.35);
    border-radius: 999px;
}

.interpreter-bubbles-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 242, 255, 0.6);
}

.translation-bubble {
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.55;
    max-width: calc(100% - 12px);
    backdrop-filter: blur(20px);
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    word-break: break-word;
}

.translation-bubble.source {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.translation-bubble.target {
    background: rgba(0, 242, 255, 0.15);
    border: 1px solid rgba(0, 242, 255, 0.3);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.bubble-label {
    font-size: 10px;
    font-weight: 700;
    margin-bottom: 4px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.source .bubble-label {
    color: #00f2ff;
}

.target .bubble-label {
    color: #00ff7a;
}

/* Bottom Action Area */
.interpreter-bottom-area {
    position: relative;
    z-index: 2;
    padding: 8px 0 calc(12px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 0;
    background: linear-gradient(180deg, rgba(5, 7, 10, 0), rgba(5, 7, 10, 0.64) 18%, rgba(5, 7, 10, 0.94) 100%);
    flex-shrink: 0;
}

.mic-wrapper {
    position: relative;
    width: 84px;
    height: 84px;
}

.mic-action-btn {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, #00cbff 0%, #0076ff 100%);
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    box-shadow: 0 0 30px rgba(0, 150, 255, 0.5);
    transition: 0.3s;
    position: relative;
    z-index: 2;
}

.mic-action-btn:active {
    transform: scale(0.95);
    background: radial-gradient(circle, #00f2ff 0%, #00cbff 100%);
}

.mic-action-btn .btn-text {
    font-size: 7px;
    font-weight: 700;
    margin-top: 3px;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.15;
}

.mic-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    border-radius: 50%;
    border: 1px solid rgba(0, 242, 255, 0.3);
    animation: micPulse 2s infinite;
}

@keyframes micPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.95);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 0;
    }
}

.lang-selector-pills {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: space-between;
    flex-shrink: 0;
}

.lang-pill-action {
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.lang-pill-action:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(0, 242, 255, 0.28);
    transform: translateY(-1px);
}

.lang-pill {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.lang-pill .flag-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}

.lang-pill .lang-code {
    font-weight: 700;
    font-size: 15px;
    color: #ddd;
}

.lang-pill .lang-name {
    font-size: 9px;
    color: #888;
    margin-top: -2px;
}

.swap-languages-btn {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
}

.swap-languages-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: rotate(180deg);
}

.interpreter-settings-toggle {
    width: 100%;
    height: 34px;
    border: 1px solid rgba(0, 242, 255, 0.18);
    border-radius: 999px;
    background: rgba(9, 15, 27, 0.72);
    color: #dffaff;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.interpreter-settings-toggle:hover,
.interpreter-settings-toggle.is-active {
    background: rgba(0, 242, 255, 0.12);
    border-color: rgba(0, 242, 255, 0.34);
}

.interpreter-settings-toggle:active {
    transform: scale(0.99);
}

.interpreter-settings-panel {
    width: 100%;
    display: none;
    padding: 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(10, 16, 28, 0.92), rgba(5, 8, 14, 0.86));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.interpreter-settings-panel.is-open {
    display: block;
}

.interpreter-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
}

.interpreter-setting {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.interpreter-setting-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(223, 250, 255, 0.72);
}

.interpreter-device-select {
    width: 100%;
    max-width: none;
    min-width: 0;
    height: 40px;
    border-radius: 12px;
    border-color: rgba(255, 255, 255, 0.12);
    background-color: rgba(3, 8, 16, 0.82) !important;
    color: #f5fdff !important;
}

.interpreter-target-select {
    border-color: rgba(0, 242, 255, 0.28);
}

/* Light Mode Overrides for Interpreter */
body.light-mode .interpreter-main-container {
    background: rgba(255, 255, 255, 0.6);
}

body.light-mode .interpreter-bubbles-scroll {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(15, 23, 42, 0.08);
}

body.light-mode .interpreter-settings-panel {
    background: rgba(255, 255, 255, 0.84);
    border-color: rgba(15, 23, 42, 0.08);
}

body.light-mode .interpreter-setting-label {
    color: rgba(15, 23, 42, 0.62);
}

body.light-mode .interpreter-settings-toggle {
    background: rgba(255, 255, 255, 0.78);
    color: #0f172a;
}

body.light-mode .translation-bubble.source {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
}

body.light-mode .waveform-container-box {
    background: rgba(255, 255, 255, 0.4);
}

@media (max-height: 760px) {
    .interpreter-main-container {
        gap: 10px;
        padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    }

    .interpreter-header {
        padding: 10px 0;
    }

    .waveform-container-box {
        height: 94px;
        min-height: 94px;
        border-radius: 24px;
    }

    .interpreter-bottom-area {
        gap: 10px;
        padding-bottom: calc(10px + env(safe-area-inset-bottom));
    }
}

@media (max-width: 420px) {
    .interpreter-main-container {
        padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
    }

    .interpreter-header h2,
    #interpreter-title {
        font-size: 16px !important;
    }

    .header-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .waveform-container-box {
        height: 88px;
        min-height: 88px;
        border-radius: 22px;
    }

    .voice-wave-container {
        height: 48px;
    }

    .interpreter-bubbles-scroll {
        padding: 12px 8px 18px 2px;
        border-radius: 20px;
    }

    .translation-bubble {
        font-size: 13px;
        padding: 11px 13px;
    }

    .mic-wrapper {
        width: 76px;
        height: 76px;
    }

    .lang-selector-pills {
        gap: 8px;
    }

    .lang-pill {
        padding: 8px 10px;
        min-width: 0;
    }

    .lang-pill .lang-code {
        font-size: 14px;
    }

    .lang-pill .lang-name {
        font-size: 8px;
    }

    .swap-languages-btn {
        width: 36px;
        height: 36px;
    }

    .interpreter-settings-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* === FUTURISTIC UI (SECOND DESIGN) === */
.futurist-btn {
    background: transparent;
    border: 1px solid rgba(0, 242, 255, 0.5);
    color: var(--primary);
    padding: 10px 25px;
    border-radius: 25px;
    font-family: 'Orbitron', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.futurist-btn:hover {
    background: rgba(0, 242, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.3);
    transform: translateY(-2px);
}

.futurist-btn.btn-danger {
    border-color: #ff007a;
    color: #ff007a;
}

.futurist-btn.btn-danger:hover {
    background: rgba(255, 0, 122, 0.1);
    box-shadow: 0 0 20px rgba(255, 0, 122, 0.3);
}

@media (max-width: 768px) {
    .glass-menu {
        padding: 8px 15px;
        gap: 8px;
    }

    .futurist-btn {
        padding: 8px 15px;
        font-size: 11px;
    }
}

/* === MEETING V2 (MODERN / SADE) === */
.v2-viewport {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    z-index: 9000;
    display: flex;
    justify-content: center;
    align-items: stretch;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.v2-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/resim/meeting_vision_1772201740055.png') no-repeat center center/cover;
    filter: blur(50px) brightness(0.4);
    transform: scale(1.1);
    z-index: -1;
}

.v2-container {
    width: 100%;
    max-width: 1600px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 15px;
    gap: 12px;
    overflow: hidden;
    /* Prevent body scroll */
}

.vid-v2-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    /* Important for flex child overflow */
    justify-content: center;
}


.v2-header {
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    padding: 10px 5px;
}

.v2-header-left {
    display: flex;
    gap: 30px;
    align-items: center;
}

.v2-header-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.v2-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 2px;
}

.v2-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 13px;
    color: #fff;
    font-weight: 700;
}

.v2-sep {
    opacity: 0.3;
}

.v2-top-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 25px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}


.v2-icon-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.v2-icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.v2-icon-btn.v2-danger {
    background: #ff3b30;
}

.v2-icon-btn.v2-danger:hover {
    background: #ff453a;
    box-shadow: 0 0 15px rgba(255, 59, 48, 0.5);
}

.v2-video-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    align-items: center;
    overflow-y: auto;
    padding: 10px;
}

@media (max-width: 1200px) {
    .v2-video-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}


.v2-video-card.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.v2-video-el {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #111;
}

.v2-meta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.v2-meta-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.v2-flag {
    width: 36px;
    height: 24px;
    border-radius: 4px;
    object-fit: cover;
}

.v2-user-info h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    margin: 0;
    color: white;
    letter-spacing: 1px;
}

.v2-user-info p {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    margin: 2px 0 0 0;
    font-weight: 600;
}

.v2-user-info .v2-loc {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
    margin-top: 5px;
}

.v2-wave-mini {
    display: flex;
    gap: 4px;
    height: 18px;
    align-items: center;
    padding: 0 5px;
}

.v2-wave-mini span {
    width: 2px;
    background: #00ff7a;
    border-radius: 2px;
}

.v2-footer {
    flex-shrink: 0;
    padding-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.v2-market-label {
    font-size: 10px;
    font-family: 'Orbitron', sans-serif;
    color: rgba(255, 255, 255, 0.3);
    min-width: 150px;
}

.v2-transcript-bar {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px 40px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
    backdrop-filter: blur(20px);
}

#v2-transcript-target {
    font-size: 18px;
    color: #00ff7a;
    font-weight: 600;
}

#v2-transcript-source {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

/* === V2 SCREEN SHARE AREA === */
.v2-screen-share-area {
    position: relative;
    width: 100%;
    height: 60vh;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 242, 255, 0.3);
    background: #000;
}

.v2-screen-video-el {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.v2-screen-meta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 25px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.v2-screen-badge {
    background: #00f2ff;
    color: #000;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: bold;
    font-family: 'Orbitron', sans-serif;
}

.v2-screen-sharer {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}


/* Animations */
.v2-wave-mini span:nth-child(1) {
    animation: v2wave 0.6s infinite alternate;
}

.v2-wave-mini span:nth-child(2) {
    animation: v2wave 0.8s infinite alternate;
}

.v2-wave-mini span:nth-child(3) {
    animation: v2wave 0.5s infinite alternate;
}

@keyframes v2wave {
    from {
        height: 4px;
    }

    to {
        height: 15px;
    }
}

@media (max-width: 992px) {
    .v2-video-grid {
        grid-template-columns: 1fr;
    }

    .v2-video-card {
        aspect-ratio: 1.7;
    }

    .v2-header-left,
    .v2-header-right {
        display: none;
    }
}

/* === V2 COMPACT MENU + TRANSCRIPT BAR ENHANCEMENTS === */
.v2-container {
    padding: 18px;
}

.v2-header {
    margin-bottom: 18px;
}

.v2-footer {
    padding-top: 25px;
}

.v2-stage-panel {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    padding: 15px;
    border-radius: 20px;
    margin-bottom: 15px;
    background: rgba(0, 255, 122, 0.05);
    border: 1px solid rgba(0, 255, 122, 0.15);
}

.v2-stage-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.v2-stage-item span {
    font-size: 11px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.v2-transcript-bar {
    padding: 12px 16px;
}

.v2-transcript-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.v2-transcript-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.55);
    white-space: nowrap;
}

.v2-transcript-lines {
    margin-top: 8px;
    max-height: 140px;
    overflow-y: auto;
    text-align: left;
    font-size: 12px;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.78);
    padding-right: 6px;
}

.v2-transcript-lines .v2-line {
    padding: 6px 8px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.25);
    margin-bottom: 6px;
    word-break: break-word;
}

.v2-transcript-lines .v2-line .v2-ts {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    margin-right: 8px;
}

.v2-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9100;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
}

.v2-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(400px, 100vw);
    z-index: 9200;
    display: none;
    flex-direction: column;
    padding: 20px;
    background: rgba(10, 15, 25, 0.95);
    backdrop-filter: blur(25px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.v2-icon {
    font-family: inherit;
    font-size: 20px;
}

.v2-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 4px 12px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.v2-menu-title {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
}

.v2-menu-close {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: white;
    cursor: pointer;
}

.v2-menu-close:hover {
    background: rgba(255, 255, 255, 0.12);
}

.v2-menu-body {
    overflow-y: auto;
    padding: 12px 4px 6px 4px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.v2-menu-section {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.18);
}

.v2-menu-section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 10px;
}

.v2-menu-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.v2-menu-row-wrap {
    flex-wrap: wrap;
}

.v2-input {
    flex: 1;
    min-width: 160px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(0, 255, 122, 0.25);
    border-radius: 12px;
    padding: 10px 12px;
    color: #eafff4;
    outline: none;
    font-size: 12px;
}

.v2-input:focus {
    border-color: rgba(0, 255, 122, 0.55);
    box-shadow: 0 0 0 2px rgba(0, 255, 122, 0.12);
}

@media (max-width: 992px) {
    .v2-container {
        padding: 12px;
    }

    .v2-header {
        margin-bottom: 12px;
    }

    .v2-footer {
        padding-top: 12px;
    }

    .v2-transcript-lines {
        max-height: 170px;
    }
}

/* === V2 PRACTICAL MULTI-PARTICIPANT OVERRIDES === */
.v2-container {
    gap: 16px;
}

.v2-header {
    margin-bottom: 0;
}

.v2-market-trend {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(0, 242, 255, 0.18);
    background: rgba(0, 242, 255, 0.08);
    color: rgba(255, 255, 255, 0.78);
}

.v2-welcome-bar {
    flex-shrink: 0;
    display: flex;
    /* Switch to flex for better height control */
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 10px 20px;
    border-radius: 20px;
    border: 1px solid rgba(0, 242, 255, 0.15);
    background: rgba(10, 15, 25, 0.85);
    backdrop-filter: blur(20px);
    margin-bottom: 5px;
    min-height: 60px;
}

.v2-welcome-copy {
    max-width: 40%;
}

.v2-welcome-text {
    font-size: 11px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.v2-welcome-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 768px) {
    .v2-welcome-bar {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .v2-welcome-text {
        display: none;
    }
}


.v2-welcome-bar.is-compact .v2-welcome-text {
    display: none;
}

.v2-welcome-copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}

.v2-welcome-eyebrow {
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    letter-spacing: 1.3px;
    color: rgba(0, 242, 255, 0.78);
}

.v2-welcome-title {
    margin: 0;
    font-size: clamp(20px, 2.3vw, 30px);
    line-height: 1.1;
    color: #fff;
    letter-spacing: -0.02em;
}

.v2-welcome-text {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    line-height: 1.55;
    max-width: 62ch;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
}

.v2-welcome-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-content: center;
}

.v2-quick-setting {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.v2-quick-setting span {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.v2-quick-setting .device-select {
    max-width: none;
    width: 100%;
}

.v2-quick-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    grid-column: 1 / -1;
}

.v2-inline-note {
    flex: 1;
    min-width: 160px;
    padding: 11px 12px;
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.58);
    font-size: 11px;
    line-height: 1.45;
}

.v2-stage-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 24px;
    border: 1px solid rgba(0, 255, 122, 0.14);
    background:
        linear-gradient(135deg, rgba(0, 255, 122, 0.08), rgba(0, 0, 0, 0.12)),
        rgba(4, 8, 20, 0.82);
    margin-top: 2px;
    order: 4;
}

.v2-stage-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.v2-stage-panel-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}

.v2-stage-panel-copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.v2-stage-panel-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    letter-spacing: 1.2px;
    color: rgba(0, 255, 122, 0.82);
}

.v2-stage-panel-subtitle {
    color: rgba(255, 255, 255, 0.68);
    font-size: 12px;
    line-height: 1.5;
    max-width: 52ch;
}

.v2-stage-panel-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    align-self: stretch;
}

.v2-stage-metric {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    min-height: 82px;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.v2-stage-metric span {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.56);
}

.v2-stage-metric strong {
    font-size: 26px;
    line-height: 1;
    color: #fff;
}

.v2-stage-slot-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 14px;
}

.v2-stage-slot-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.v2-stage-group-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.56);
}

.v2-stage-slot-row,
.v2-seat-row {
    display: grid;
    gap: 10px;
}

.v2-stage-slot-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.v2-seat-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.v2-stage-slot,
.v2-seat-pill {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    min-height: 74px;
    padding: 12px;
    border-radius: 16px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
}

.v2-stage-slot.is-filled,
.v2-seat-pill.is-filled {
    border-style: solid;
    border-color: rgba(0, 242, 255, 0.22);
    background: rgba(0, 242, 255, 0.08);
}

.v2-stage-slot-role,
.v2-seat-pill span {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.56);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.v2-stage-slot strong,
.v2-seat-pill strong {
    font-size: 12px;
    color: #fff;
    word-break: break-word;
    line-height: 1.35;
}

.v2-status-badge {
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    animation: v2-badge-pulse 2s infinite ease-in-out;
}

@keyframes v2-badge-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }

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

.v2-flag {
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}


.v2-host-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.v2-seat-chip {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(0, 255, 122, 0.22);
    background: rgba(0, 255, 122, 0.08);
    color: #c9ffe7;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.v2-quick-setting .v2-input[readonly] {
    cursor: text;
    color: #fff;
    border-color: rgba(0, 242, 255, 0.22);
}

.v2-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    align-content: stretch;
    align-items: stretch;
    min-height: 0;
    order: 2;
}

.v2-video-grid.v2-grid-compact {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.v2-video-grid.v2-grid-dense {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.v2-video-grid.v2-grid-collapsed {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}

.v2-video-card {
    min-height: 260px;
    aspect-ratio: auto;
    display: flex;
    align-items: stretch;
}

.v2-video-card-local {
    border-color: rgba(0, 242, 255, 0.22);
}

.v2-video-card-remote {
    border-color: rgba(0, 255, 122, 0.18);
}

.v2-video-card.v2-video-card-dynamic {
    border-color: rgba(255, 255, 255, 0.1);
}

.v2-video-card.v2-hidden-slot {
    display: none !important;
}

.v2-video-el {
    min-height: 260px;
    background:
        radial-gradient(circle at top, rgba(0, 242, 255, 0.08), transparent 48%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.42));
}

.v2-footer {
    padding-top: 0;
    order: 3;
}

.v2-transcript-bar {
    min-height: 146px;
}

.v2-icon-btn.is-active {
    background: rgba(255, 0, 122, 0.18);
    box-shadow: 0 0 0 1px rgba(255, 0, 122, 0.3), 0 0 16px rgba(255, 0, 122, 0.18);
}

.v2-icon-btn.is-live {
    background: rgba(0, 255, 122, 0.16);
    box-shadow: 0 0 0 1px rgba(0, 255, 122, 0.28), 0 0 14px rgba(0, 255, 122, 0.15);
}

.app-home-fab {
    border: 1px solid rgba(0, 242, 255, 0.25);
    border-radius: 999px;
    background: rgba(4, 12, 28, 0.88);
    color: #fff;
    padding: 10px 14px;
    font: 600 13px/1 'Inter', sans-serif;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
}

.app-home-fab:hover {
    border-color: rgba(0, 242, 255, 0.55);
    box-shadow: 0 16px 38px rgba(0, 242, 255, 0.15);
}

@media (max-width: 1200px) {
    .v2-welcome-bar {
        grid-template-columns: 1fr;
    }

    .v2-stage-panel-header {
        flex-direction: column;
    }

    .v2-stage-panel-tools {
        justify-content: stretch;
    }

    .v2-stage-panel-tools .pro-btn {
        width: 100%;
    }

    .v2-stage-slot-wrap {
        grid-template-columns: 1fr;
    }

    .v2-header {
        gap: 14px;
        align-items: flex-start;
    }

    .v2-header-left,
    .v2-header-right {
        display: flex;
        flex-wrap: wrap;
    }
}

@media (max-width: 992px) {
    .v2-viewport {
        overflow-y: auto;
        overflow-x: hidden;
        align-items: flex-start;
    }

    .v2-container {
        max-width: none;
        min-height: 100%;
        height: auto;
        padding: 16px 14px 22px;
    }

    .v2-header {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        text-align: center;
    }

    .v2-header-left {
        justify-content: center;
        order: 0;
        font-size: 10px;
    }

    .v2-header-center {
        order: 1;
        width: 100%;
    }

    .v2-header-right {
        display: flex;
        justify-content: center;
        order: 2;
    }

    .v2-top-controls {
        width: 100%;
        padding: 10px 12px;
        gap: 10px;
        border-radius: 24px;
    }

    .v2-welcome-title {
        font-size: clamp(18px, 4.5vw, 26px);
    }

    .v2-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .v2-market-label {
        min-width: 0;
        text-align: center !important;
    }

    .v2-transcript-toolbar {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .v2-viewport {
        position: fixed;
        inset: 0;
        align-items: flex-start;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .v2-container {
        padding: 14px 12px 18px;
        gap: 12px;
    }

    .v2-top-controls {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
        padding: 10px;
        border-radius: 22px;
    }

    .v2-welcome-bar {
        padding: 16px;
        border-radius: 22px;
    }

    .v2-welcome-actions {
        grid-template-columns: 1fr;
    }

    .v2-quick-buttons {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: stretch;
    }

    .v2-quick-buttons .pro-btn {
        width: 100%;
        justify-content: center;
    }

    .v2-icon-btn {
        width: 100%;
        height: 48px;
        border-radius: 16px;
        font-size: 17px;
    }

    .v2-stage-panel {
        padding: 14px;
        border-radius: 20px;
    }

    .v2-stage-panel-header {
        gap: 10px;
    }

    .v2-stage-panel-metrics,
    .v2-stage-slot-row,
    .v2-seat-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .v2-seat-chip {
        width: 100%;
        justify-content: center;
    }

    .v2-video-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .v2-video-grid.v2-grid-collapsed {
        grid-template-columns: 1fr;
    }

    .v2-video-card,
    .v2-video-el {
        min-height: clamp(200px, 52vw, 260px);
    }

    .v2-meta {
        padding: 18px;
    }

    .v2-user-info h3 {
        font-size: 14px;
    }

    .v2-user-info p,
    .v2-user-info .v2-loc {
        font-size: 10px;
    }

    .v2-transcript-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .v2-transcript-lines {
        max-height: 190px;
    }

    .v2-menu {
        top: 12px;
        right: 12px;
        bottom: 12px;
        width: calc(100vw - 24px);
        border-radius: 20px;
    }

    .v2-menu-row {
        flex-direction: column;
        align-items: stretch;
    }

    .v2-menu-row .device-select,
    .v2-menu-row .v2-input,
    .v2-menu-row .pro-btn {
        width: 100%;
        max-width: none !important;
    }

    #v2-coach-panel {
        left: 12px !important;
        right: 12px !important;
        top: 86px !important;
        bottom: 12px !important;
        width: auto !important;
    }

    .app-home-fab {
        padding: 10px 12px;
        font-size: 12px;
    }
}

@media (max-width: 560px) {
    .v2-header-left {
        gap: 8px;
        row-gap: 4px;
    }

    .v2-top-controls {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .v2-stage-panel-metrics,
    .v2-stage-slot-row,
    .v2-seat-row,
    .v2-quick-buttons {
        grid-template-columns: 1fr;
    }
}

/* Custom V1 Desktop Toggles */
@media (max-width: 900px) {
    .desktop-toggles {
        display: none !important;
    }
}