/* ═══════════════════════════════════════════════════════════════════════════
   MENTOR IA — PREMIUM CALL & EXECUTIVE MESSAGING SUITE (v2026.10)
   Full-screen mobile native takeover + Desktop luxury communication terminal
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Modal Backdrop & Shell ── */
.vm-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 12, 22, 0.68);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 16px;
    animation: vmBackdropFadeIn 0.25s ease-out;
}

@keyframes vmBackdropFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.vm-modal-shell {
    position: relative;
    width: 100%;
    max-width: 470px;
    height: min(88dvh, 760px);
    background: #FAF9F6;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow:
        0 32px 80px -12px rgba(7, 10, 22, 0.55),
        0 0 0 1px rgba(124, 92, 252, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: background 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.45s ease,
                box-shadow 0.45s ease;
    animation: vmShellSlideUp 0.36s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes vmShellSlideUp {
    from { opacity: 0; transform: translateY(28px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Dark Immersive Call Mode (when dialing or in active voice call) */
.vm-modal-shell.vm-call-mode {
    background:
        radial-gradient(circle at 50% 22%, rgba(124, 92, 252, 0.26) 0%, transparent 55%),
        radial-gradient(circle at 85% 85%, rgba(16, 185, 129, 0.14) 0%, transparent 50%),
        linear-gradient(175deg, #070A14 0%, #0E1528 52%, #13112C 100%);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow:
        0 35px 90px -10px rgba(0, 0, 0, 0.85),
        0 0 60px rgba(124, 92, 252, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    color: #FFFFFF;
}

/* ── Top Header Bar ── */
.vm-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(28, 25, 23, 0.08);
    z-index: 10;
    flex-shrink: 0;
    transition: all 0.35s ease;
}

.vm-modal-shell.vm-call-mode .vm-modal-header {
    background: rgba(15, 23, 42, 0.55);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.vm-header-left {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    flex: 1;
}

.vm-header-back-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(28, 25, 23, 0.1);
    background: rgba(255, 255, 255, 0.9);
    color: #1C1917;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.vm-header-back-btn:hover {
    background: #F5F5F4;
    transform: translateX(-1px);
}

.vm-modal-shell.vm-call-mode .vm-header-back-btn {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.16);
    color: #FFFFFF;
}

.vm-header-avatar-wrap {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 6px 16px -4px rgba(124, 92, 252, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.45);
}

.vm-header-online-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #10B981;
    border: 2.5px solid #FFFFFF;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
}

.vm-modal-shell.vm-call-mode .vm-header-online-dot {
    border-color: #0F172A;
}

.vm-header-info {
    min-width: 0;
    flex: 1;
}

.vm-header-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vm-header-title {
    font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
    font-weight: 800;
    font-size: 14.5px;
    color: #1C1917;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
}

.vm-modal-shell.vm-call-mode .vm-header-title {
    color: #FFFFFF;
}

.vm-header-verified {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7C5CFC, #4F33C4);
    color: #FFFFFF;
    font-size: 9px;
    font-weight: 900;
    flex-shrink: 0;
}

.vm-header-status {
    font-size: 11.5px;
    font-weight: 600;
    color: #059669;
    margin: 1px 0 0 0;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vm-modal-shell.vm-call-mode .vm-header-status {
    color: #34D399;
}

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

/* Quick Call Button in Chat Header (WhatsApp style) */
.vm-header-call-btn {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    border-radius: 999px;
    border: 1px solid rgba(16, 185, 129, 0.35);
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.vm-header-call-btn:hover {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45);
}

.vm-header-close-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(28, 25, 23, 0.08);
    background: rgba(28, 25, 23, 0.04);
    color: #57534E;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vm-header-close-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #DC2626;
    border-color: rgba(239, 68, 68, 0.2);
}

.vm-modal-shell.vm-call-mode .vm-header-close-btn {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.8);
}

.vm-modal-shell.vm-call-mode .vm-header-close-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #FFFFFF;
}

/* Modal Body */
.vm-modal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SCREEN 1: EXECUTIVE COMMUNICATION HUB (renderMentorChoice)
   ═══════════════════════════════════════════════════════════════════════════ */

.vm-hub-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px 20px 20px;
    gap: 16px;
    min-height: 100%;
    background:
        radial-gradient(circle at 50% 0%, rgba(124, 92, 252, 0.08) 0%, transparent 60%),
        #FAF9F6;
}

/* Hero Profile Stage */
.vm-hub-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px 16px 6px;
}

.vm-hub-avatar-stage {
    position: relative;
    width: 86px;
    height: 86px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.vm-hub-avatar-ring {
    position: absolute;
    inset: -5px;
    border-radius: 28px;
    background: conic-gradient(from 0deg, #7C5CFC, #10B981, #F59E0B, #7C5CFC);
    opacity: 0.35;
    filter: blur(6px);
    animation: vmSlowSpin 8s linear infinite;
}

@keyframes vmSlowSpin {
    to { transform: rotate(360deg); }
}

.vm-hub-avatar-core {
    position: relative;
    width: 78px;
    height: 78px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 14px 28px -6px rgba(15, 23, 42, 0.35),
        inset 0 2px 2px rgba(255, 255, 255, 0.45);
    border: 2px solid rgba(255, 255, 255, 0.85);
    z-index: 2;
}

.vm-hub-live-pill {
    position: absolute;
    bottom: -6px;
    z-index: 3;
    background: #0F172A;
    color: #FFFFFF;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1.5px solid rgba(255, 255, 255, 0.9);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.vm-hub-title {
    font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
    font-size: 19px;
    font-weight: 800;
    color: #1C1917;
    margin: 4px 0 4px;
    letter-spacing: -0.02em;
}

.vm-hub-subtitle {
    font-size: 12.5px;
    color: #57534E;
    margin: 0;
    max-width: 330px;
    line-height: 1.45;
}

/* Primary Flagship Card: Live Voice Call */
.vm-card-voice-hero {
    position: relative;
    width: 100%;
    text-align: left;
    padding: 20px;
    border-radius: 24px;
    border: 1.5px solid rgba(124, 92, 252, 0.45);
    background:
        radial-gradient(circle at 90% 15%, rgba(16, 185, 129, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 10% 90%, rgba(124, 92, 252, 0.32) 0%, transparent 55%),
        linear-gradient(145deg, #090D16 0%, #131B2E 52%, #1E1B4B 100%);
    color: #FFFFFF;
    cursor: pointer;
    box-shadow:
        0 18px 38px -10px rgba(15, 23, 42, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.vm-card-voice-hero:hover {
    transform: translateY(-3px);
    border-color: rgba(52, 211, 153, 0.65);
    box-shadow:
        0 24px 48px -10px rgba(15, 23, 42, 0.65),
        0 0 28px rgba(16, 185, 129, 0.22);
}

.vm-card-voice-hero:active {
    transform: translateY(0) scale(0.99);
}

.vm-voice-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.vm-voice-badge-vip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(52, 211, 153, 0.4);
    color: #6EE7B7;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.vm-voice-badge-hd {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.08);
    padding: 3px 8px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.vm-voice-hero-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.vm-voice-hero-text h3 {
    font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
    font-size: 17px;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0 0 4px 0;
    letter-spacing: -0.01em;
}

.vm-voice-hero-text p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.72);
    margin: 0;
    line-height: 1.45;
}

.vm-voice-call-cta {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(145deg, #34D399 0%, #10B981 55%, #059669 100%);
    box-shadow:
        0 8px 22px rgba(16, 185, 129, 0.5),
        0 0 0 4px rgba(16, 185, 129, 0.18),
        inset 0 2px 2px rgba(255, 255, 255, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #FFFFFF;
    animation: vmCallBtnPulse 2.2s infinite ease-in-out;
}

@keyframes vmCallBtnPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 22px rgba(16, 185, 129, 0.45), 0 0 0 4px rgba(16, 185, 129, 0.16), inset 0 2px 2px rgba(255, 255, 255, 0.55);
    }
    50% {
        transform: scale(1.06);
        box-shadow: 0 12px 28px rgba(16, 185, 129, 0.68), 0 0 0 8px rgba(16, 185, 129, 0.24), inset 0 2px 2px rgba(255, 255, 255, 0.7);
    }
}

/* Secondary Action Card: WhatsApp-style Executive Chat */
.vm-card-chat-hero {
    width: 100%;
    text-align: left;
    padding: 16px 18px;
    border-radius: 22px;
    border: 1.5px solid rgba(28, 25, 23, 0.1);
    background: #FFFFFF;
    cursor: pointer;
    box-shadow:
        0 8px 24px -8px rgba(28, 25, 23, 0.08),
        inset 0 1px 0 #FFFFFF;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 14px;
}

.vm-card-chat-hero:hover {
    transform: translateY(-2px);
    border-color: rgba(124, 92, 252, 0.45);
    box-shadow: 0 14px 30px -8px rgba(124, 92, 252, 0.16);
}

.vm-chat-icon-3d {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(145deg, #F3E8FF 0%, #EDE9FE 100%);
    border: 1px solid rgba(124, 92, 252, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #6D28D9;
    box-shadow: 0 6px 14px -4px rgba(124, 92, 252, 0.2), inset 0 1px 1px #FFFFFF;
}

.vm-chat-hero-text {
    flex: 1;
    min-width: 0;
}

.vm-chat-hero-text h3 {
    font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
    font-size: 15px;
    font-weight: 800;
    color: #1C1917;
    margin: 0 0 2px 0;
}

.vm-chat-hero-text p {
    font-size: 12px;
    color: #57534E;
    margin: 0;
    line-height: 1.4;
}

.vm-chat-cta-pill {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(124, 92, 252, 0.1);
    color: #6D28D9;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.vm-card-chat-hero:hover .vm-chat-cta-pill {
    background: #7C5CFC;
    color: #FFFFFF;
}

/* Voice Quota Telemetry Bar */
.vm-quota-card {
    width: 100%;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(28, 25, 23, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SCREEN 2: FULL-SCREEN REALISTIC PHONE CALL (Dialing & Active Call)
   ═══════════════════════════════════════════════════════════════════════════ */

.vm-call-stage {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 28px;
    min-height: 100%;
    position: relative;
    overflow: hidden;
    user-select: none;
}

/* Top Call Telemetry Pill */
.vm-call-top-bar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    z-index: 5;
}

.vm-call-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.16);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #FCA5A5;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.vm-call-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #EF4444;
    box-shadow: 0 0 8px #EF4444;
    animation: vm-pulse 1s infinite;
}

.vm-call-timer-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    color: #FFFFFF;
    font-family: var(--font-display, monospace);
    font-size: 13.5px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

/* Caller Identity Section */
.vm-caller-identity {
    text-align: center;
    z-index: 5;
    margin-top: 4px;
}

.vm-caller-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 4px 0;
}

.vm-caller-name {
    font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
    font-size: 24px;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0 0 6px 0;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.vm-caller-persona-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
}

/* Centerpiece Orb & 3D Sphere Stage */
.vm-center-visualizer {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 8px 0;
    z-index: 4;
}

.vm-sphere-orbital-ring {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    animation: vmSlowSpin 24s linear infinite;
    pointer-events: none;
}

.vm-sphere-orbital-ring.r2 {
    width: 290px;
    height: 290px;
    border: 1px solid rgba(124, 92, 252, 0.12);
    animation-direction: reverse;
    animation-duration: 32s;
}

/* Dialing Sonar Waves */
.vm-dialing-orb-wrap {
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 24px 0;
}

.vm-sonar-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(16, 185, 129, 0.45);
    animation: vmSonarExpand 2.4s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.vm-sonar-ring.d2 { animation-delay: 0.8s; }
.vm-sonar-ring.d3 { animation-delay: 1.6s; }

@keyframes vmSonarExpand {
    0%   { transform: scale(0.85); opacity: 0.85; }
    100% { transform: scale(1.85); opacity: 0; }
}

.vm-dialing-core {
    position: relative;
    width: 112px;
    height: 112px;
    border-radius: 36px;
    background: linear-gradient(145deg, #10B981 0%, #059669 55%, #047857 100%);
    box-shadow:
        0 18px 40px rgba(16, 185, 129, 0.45),
        inset 0 2px 3px rgba(255, 255, 255, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    animation: vmCallingCoreFloat 2s ease-in-out infinite;
}

@keyframes vmCallingCoreFloat {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.05); }
}

/* Live Soundwave Equalizer Indicator */
.vm-live-caption-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 5;
    min-height: 44px;
}

.vm-eq-bars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 18px;
}

.vm-eq-bar {
    width: 3.5px;
    height: 6px;
    border-radius: 999px;
    background: #34D399;
    animation: vmEqBounce 1.1s ease-in-out infinite;
}

.vm-eq-bar:nth-child(1) { animation-delay: 0.0s; }
.vm-eq-bar:nth-child(2) { animation-delay: 0.2s; height: 12px; }
.vm-eq-bar:nth-child(3) { animation-delay: 0.4s; height: 16px; }
.vm-eq-bar:nth-child(4) { animation-delay: 0.15s; height: 10px; }
.vm-eq-bar:nth-child(5) { animation-delay: 0.35s; height: 7px; }

@keyframes vmEqBounce {
    0%, 100% { transform: scaleY(0.45); opacity: 0.6; }
    50%      { transform: scaleY(1.25); opacity: 1; }
}

.vm-voice-state-text {
    font-size: 12.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    text-align: center;
}

/* Bottom Call Control Dock (iOS FaceTime / WhatsApp Call Dock) */
.vm-call-dock {
    width: 100%;
    max-width: 340px;
    padding: 16px 24px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 16px;
    z-index: 6;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.vm-dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.vm-dock-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.vm-dock-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
}

.vm-dock-btn.is-muted {
    background: #FFFFFF;
    color: #0F172A;
    border-color: #FFFFFF;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.vm-dock-btn-hangup {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(145deg, #FF453A 0%, #DC2626 60%, #B91C1C 100%);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow:
        0 10px 28px rgba(239, 68, 68, 0.55),
        0 0 0 4px rgba(239, 68, 68, 0.2),
        inset 0 2px 2px rgba(255, 255, 255, 0.45);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.vm-dock-btn-hangup:hover {
    transform: scale(1.07);
    box-shadow: 0 14px 34px rgba(239, 68, 68, 0.75), 0 0 0 6px rgba(239, 68, 68, 0.28);
}

.vm-dock-btn-hangup:active {
    transform: scale(0.96);
}

.vm-dock-label {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.78);
    letter-spacing: 0.01em;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SCREEN 3: WHATSAPP / IMESSAGE EXECUTIVE CHAT EXPERIENCE
   ═══════════════════════════════════════════════════════════════════════════ */

.dm-chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 1;
    min-height: 0;
    background-color: #F4F1EA;
    background-image:
        radial-gradient(rgba(124, 92, 252, 0.06) 1px, transparent 1px),
        radial-gradient(rgba(28, 25, 23, 0.04) 1px, #F4F1EA 1px);
    background-size: 24px 24px;
    background-position: 0 0, 12px 12px;
}

.dm-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scroll-behavior: smooth;
}

/* Top Encrypted / Expediente Sync Banner (WhatsApp style) */
.dm-chat-encryption-pill {
    align-self: center;
    max-width: 92%;
    background: rgba(254, 243, 199, 0.85);
    border: 1px solid rgba(217, 119, 6, 0.22);
    color: #78350F;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    padding: 7px 14px;
    border-radius: 12px;
    margin-bottom: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

/* Mentor Bubble */
.dm-chat-bubble-mentor {
    position: relative;
    background: #FFFFFF;
    border: 1px solid rgba(28, 25, 23, 0.07);
    border-radius: 4px 18px 18px 18px;
    padding: 12px 15px 10px;
    font-size: 13.5px;
    line-height: 1.58;
    color: #1C1917;
    max-width: 86%;
    align-self: flex-start;
    box-shadow: 0 3px 10px rgba(28, 25, 23, 0.06);
    animation: vmBubblePop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* User Bubble */
.dm-chat-bubble-user {
    position: relative;
    background: linear-gradient(135deg, #7C5CFC 0%, #5B3FD4 100%);
    color: #FFFFFF;
    border-radius: 18px 4px 18px 18px;
    padding: 10px 15px 8px;
    font-size: 13.5px;
    line-height: 1.52;
    max-width: 82%;
    align-self: flex-end;
    box-shadow: 0 4px 14px rgba(124, 92, 252, 0.28);
    animation: vmBubblePop 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes vmBubblePop {
    from { opacity: 0; transform: translateY(8px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.dm-chat-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    margin-top: 4px;
    font-size: 10px;
    font-weight: 600;
    opacity: 0.72;
    user-select: none;
}

.dm-chat-bubble-mentor .dm-chat-meta {
    color: #78716C;
}

.dm-chat-bubble-user .dm-chat-meta {
    color: rgba(255, 255, 255, 0.88);
}

/* Quick-Reply Suggestion Chips (2x2 clean grid — never clipped) */
.dm-chat-chips-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    overflow: visible;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(28, 25, 23, 0.08);
    flex-shrink: 0;
}

.dm-chat-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid rgba(124, 92, 252, 0.28);
    background: #FFFFFF;
    color: #5B3FD4;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(124, 92, 252, 0.08);
}

.dm-chat-chip:hover {
    background: #7C5CFC;
    color: #FFFFFF;
    transform: translateY(-1px);
}

/* Chat Bottom Input Bar */
.dm-chat-input-area {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px calc(12px + env(safe-area-inset-bottom, 0px));
    background: #FFFFFF;
    border-top: 1px solid rgba(28, 25, 23, 0.08);
    flex-shrink: 0;
}

.dm-chat-input {
    flex: 1;
    min-width: 0;
    padding: 11px 16px;
    border: 1.5px solid rgba(28, 25, 23, 0.12);
    border-radius: 999px;
    background: #F5F5F4;
    color: #1C1917;
    font-size: 14px;
    font-family: var(--font-sans, sans-serif);
    outline: none;
    transition: all 0.2s ease;
}

@media (max-width: 768px) {
    .dm-chat-input {
        font-size: 16px !important; /* Prevents iOS Safari auto-zoom on mobile */
    }
}

.dm-chat-input:focus {
    background: #FFFFFF;
    border-color: #7C5CFC;
    box-shadow: 0 0 0 3px rgba(124, 92, 252, 0.14);
}

.dm-chat-send-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #7C5CFC 0%, #5B3FD4 100%);
    color: #FFFFFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(124, 92, 252, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.4);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dm-chat-send-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 8px 20px rgba(124, 92, 252, 0.48);
}

.dm-chat-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Typing Indicator Dots */
.dm-typing-bubble {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #FFFFFF;
    border: 1px solid rgba(28, 25, 23, 0.08);
    border-radius: 4px 18px 18px 18px;
    padding: 12px 16px;
    align-self: flex-start;
    box-shadow: 0 3px 10px rgba(28, 25, 23, 0.06);
}

.dm-typing-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #7C5CFC;
    animation: vmTypingBounce 1.3s infinite ease-in-out;
}

.dm-typing-dot:nth-child(2) { animation-delay: 0.18s; }
.dm-typing-dot:nth-child(3) { animation-delay: 0.36s; }

@keyframes vmTypingBounce {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
    40%           { transform: translateY(-5px); opacity: 1; }
}

/* Legacy Orb Utility Classes (Preserved) */
.vm-orb {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes vm-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.35; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE NATIVE FULL-SCREEN TAKEOVER (@media max-width: 640px)
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
    .vm-modal-backdrop {
        padding: 0;
        background: #070A14;
    }

    .vm-modal-shell {
        width: 100vw;
        max-width: 100vw;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
        border: none;
        box-shadow: none;
    }

    .vm-modal-header {
        padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px;
    }

    .vm-call-stage {
        padding: 16px 20px calc(24px + env(safe-area-inset-bottom, 0px));
    }

    .vm-caller-name {
        font-size: 26px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PROACTIVE INCOMING CALL NOTIFICATION BANNER (Non-Invasive · iOS/Android Style)
   ═══════════════════════════════════════════════════════════════════════════ */
.vm-incoming-banner-wrap {
    position: fixed;
    top: calc(12px + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    z-index: 99990;
    display: flex;
    justify-content: center;
    padding: 0 12px;
    pointer-events: none;
    animation: vmIncomingSlideDown 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.vm-incoming-banner-wrap.is-leaving {
    animation: vmIncomingSlideUp 0.26s ease-in forwards;
}

@keyframes vmIncomingSlideDown {
    from { opacity: 0; transform: translateY(-28px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes vmIncomingSlideUp {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to   { opacity: 0; transform: translateY(-24px) scale(0.96); }
}

.vm-incoming-banner-card {
    pointer-events: auto;
    width: 100%;
    max-width: 430px;
    background: rgba(11, 16, 30, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 24px;
    padding: 13px 15px 10px;
    color: #FFFFFF;
    box-shadow:
        0 22px 48px -8px rgba(4, 7, 18, 0.68),
        0 0 0 1px rgba(16, 185, 129, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
    overflow: hidden;
    position: relative;
}

.vm-incoming-main-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vm-incoming-avatar-wrap {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vm-incoming-avatar {
    position: relative;
    z-index: 2;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.vm-incoming-sonar {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1.5px solid rgba(52, 211, 153, 0.65);
    animation: vmIncomingSonar 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.vm-incoming-sonar.d2 {
    animation-delay: 0.9s;
}

@keyframes vmIncomingSonar {
    0%   { transform: scale(0.92); opacity: 0.85; }
    100% { transform: scale(1.38); opacity: 0; }
}

.vm-incoming-info {
    flex: 1;
    min-width: 0;
}

.vm-incoming-eyebrow {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #6EE7B7;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vm-incoming-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34D399;
    box-shadow: 0 0 8px #34D399;
    animation: vm-pulse 1.1s infinite;
    flex-shrink: 0;
}

.vm-incoming-caller {
    font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
    font-size: 14.5px;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vm-incoming-sub {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.72);
    margin: 1px 0 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vm-incoming-actions {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
}

.vm-inc-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.vm-inc-btn:hover {
    transform: scale(1.07);
}

.vm-inc-btn:active {
    transform: scale(0.95);
}

.vm-inc-btn-decline {
    background: linear-gradient(145deg, #EF4444, #DC2626);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.38);
}

.vm-inc-btn-answer {
    background: linear-gradient(145deg, #10B981, #059669);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.48);
    animation: vmAnswerGentleRing 1.6s ease-in-out infinite;
}

@keyframes vmAnswerGentleRing {
    0%, 100% { transform: rotate(0deg) scale(1); }
    10%      { transform: rotate(-10deg) scale(1.04); }
    20%      { transform: rotate(10deg) scale(1.04); }
    30%      { transform: rotate(-6deg) scale(1.02); }
    40%      { transform: rotate(6deg) scale(1.02); }
    50%      { transform: rotate(0deg) scale(1); }
}

.vm-incoming-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.vm-incoming-hint {
    font-size: 10.5px;
    color: rgba(255, 255, 255, 0.55);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vm-incoming-mute-link {
    background: none;
    border: none;
    padding: 0;
    font-size: 10.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.62);
    text-decoration: underline;
    cursor: pointer;
    flex-shrink: 0;
}

.vm-incoming-mute-link:hover {
    color: #FCA5A5;
}

.vm-incoming-progress-track {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2.5px;
    background: rgba(255, 255, 255, 0.08);
}

.vm-incoming-progress-bar {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #10B981, #34D399);
    transform-origin: left center;
    animation-name: vmIncomingCountdown;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

@keyframes vmIncomingCountdown {
    from { transform: scaleX(1); }
    to   { transform: scaleX(0); }
}

/* ── Hub Toggle Row for Proactive Calls ── */
.vm-proactive-pref-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 13px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(28, 25, 23, 0.08);
}

.vm-proactive-switch {
    position: relative;
    width: 40px;
    height: 22px;
    border-radius: 999px;
    border: none;
    background: #D6D3D1;
    cursor: pointer;
    padding: 2px;
    transition: background 0.22s ease;
}

.vm-proactive-switch.is-on {
    background: #10B981;
}

.vm-proactive-switch-knob {
    display: block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #FFFFFF;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.vm-proactive-switch.is-on .vm-proactive-switch-knob {
    transform: translateX(18px);
}

.vm-proactive-test-btn {
    padding: 4px 9px;
    border-radius: 8px;
    border: 1px solid rgba(124, 92, 252, 0.3);
    background: rgba(124, 92, 252, 0.1);
    color: #6D28D9;
    font-size: 10.5px;
    font-weight: 800;
    cursor: pointer;
}

.vm-proactive-test-btn:hover {
    background: rgba(124, 92, 252, 0.18);
}
