:root {
    --primary: #0b2b4f;
    --primary-light: #164679;
    --primary-dark: #071b32;
    --accent: #c9a84c;
    --accent-light: #e4c46f;
    --accent-dark: #9e7f2b;
    --bg-main: #0c1523;
    --bg-surface: #142236;
    --bg-card: #1b2d47;
    --bg-card-hover: #213757;
    --border-color: #263e61;
    --text-main: #f0f4f9;
    --text-muted: #9bb1cb;
    --danger: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;
    --info: #3b82f6;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    direction: rtl;
    line-height: 1.6;
    overflow-x: hidden;
}

.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ===== TOP NAV ===== */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 100%);
    border-bottom: 2px solid var(--accent);
    padding: 10px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 100;
    flex-wrap: wrap;
    gap: 10px;
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 18px;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.brand-logo {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-size: 20px;
    box-shadow: 0 2px 8px rgba(201, 168, 76, 0.4);
    flex-shrink: 0;
}

.brand-title h1 {
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.brand-title span {
    font-size: 11px;
    color: var(--accent-light);
    display: block;
}

.top-status-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-live-voice-quick {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--primary-dark);
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 10px rgba(201, 168, 76, 0.4);
    transition: all 0.2s;
    animation: pulseBorder 2s infinite;
}

.btn-live-voice-quick:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(201, 168, 76, 0.6);
}

@keyframes pulseBorder {
    0%, 100% { outline: 2px solid transparent; }
    50% { outline: 2px solid var(--accent-light); }
}

.status-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    color: var(--text-main);
    white-space: nowrap;
}

.status-pill .dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
}

.status-pill .dot.pulse {
    animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
}

.btn-emergency-stop {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.btn-emergency-stop:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.6);
}

/* ===== MAIN TABS ===== */
.main-tabs {
    display: flex;
    background: var(--bg-surface);
    padding: 4px 20px;
    border-bottom: 1px solid var(--border-color);
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
    color: var(--accent-light);
    border-bottom-color: var(--accent);
    background: rgba(201, 168, 76, 0.08);
}

/* ===== CONTENT PANES ===== */
.tab-content-container {
    flex: 1;
    position: relative;
    padding: 16px 20px;
    overflow-y: auto;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.25s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== TAB 1: OPERATIONS GRID ===== */
.operations-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 16px;
    height: calc(100vh - 150px);
    min-height: 520px;
}

.chat-container {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: rgba(11, 43, 79, 0.6);
    border-bottom: 1px solid var(--border-color);
}

.agent-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.agent-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--info) 0%, #1d4ed8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.agent-info h3 {
    font-size: 13.5px;
    font-weight: 700;
}

.agent-status-label {
    font-size: 11px;
    color: var(--text-muted);
}

.chat-actions {
    display: flex;
    gap: 8px;
}

.btn-sm {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    font-size: 11.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-sm:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-sm.btn-accent {
    background: rgba(201, 168, 76, 0.15);
    border-color: var(--accent);
    color: var(--accent-light);
    font-weight: 700;
}

.btn-sm.btn-accent:hover {
    background: var(--accent);
    color: var(--primary-dark);
}

/* Chat Messages */
.chat-messages {
    flex: 1;
    padding: 14px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message-bubble {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 12.5px;
    position: relative;
    line-height: 1.6;
    word-break: break-word;
}

.message-bubble.agent {
    align-self: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-top-right-radius: 2px;
}

.message-bubble.user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--primary-light) 0%, #1e40af 100%);
    border: 1px solid #3b82f6;
    border-top-left-radius: 2px;
    color: #fff;
}

.message-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 10.5px;
    color: var(--text-muted);
    margin-bottom: 5px;
    gap: 10px;
}

.message-meta .badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
}

.badge-p1 { background: rgba(239, 68, 68, 0.2); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-p2 { background: rgba(201, 168, 76, 0.2); color: #fbbf24; border: 1px solid rgba(201, 168, 76, 0.3); }
.badge-p3 { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }

/* Chat Input Area */
.chat-input-area {
    padding: 10px 14px;
    background: rgba(11, 43, 79, 0.4);
    border-top: 1px solid var(--border-color);
}

.speech-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-sm);
    color: #f87171;
    font-size: 11.5px;
    margin-bottom: 8px;
}

.speech-indicator .wave {
    width: 4px;
    height: 14px;
    background: #ef4444;
    border-radius: 2px;
    animation: waveBounce 0.8s infinite ease-in-out;
}

.speech-indicator .wave:nth-child(2) { animation-delay: 0.2s; }
.speech-indicator .wave:nth-child(3) { animation-delay: 0.4s; }

@keyframes waveBounce {
    0%, 100% { height: 6px; }
    50% { height: 18px; }
}

.input-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.12);
}

.btn-mic.recording {
    background: #ef4444 !important;
    color: #fff;
    animation: pulseMic 1s infinite;
}

@keyframes pulseMic {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    50% { transform: scale(1.08); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

#chat-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    padding: 8px 12px;
    font-size: 12.5px;
    resize: none;
    outline: none;
    min-height: 38px;
    max-height: 90px;
}

#chat-input:focus {
    border-color: var(--accent);
}

.btn-send {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    border: none;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--primary-dark);
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-send:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(201, 168, 76, 0.4);
}

/* Right Dashboard Side Panel */
.dashboard-side-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
}

.map-card, .case-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(11, 43, 79, 0.6);
    border-bottom: 1px solid var(--border-color);
}

.panel-header h4 {
    font-size: 12.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-element {
    height: 240px;
    width: 100%;
}

.map-footer {
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--border-color);
    font-size: 11px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.loc-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.case-details-grid {
    padding: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.detail-field {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 10px;
    border-radius: var(--radius-sm);
}

.detail-field label {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.detail-field span {
    font-size: 11.5px;
    font-weight: 600;
}

.badge-gold {
    background: rgba(201, 168, 76, 0.2);
    color: var(--accent-light);
    border: 1px solid var(--accent);
}

/* ===== 3-PHASE AGENT WORKFLOW PANEL ===== */
.workflow-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-top: 14px;
}

.workflow-pipeline-container {
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(8, 20, 36, 0.5);
}

.wf-phase-group {
    background: rgba(14, 28, 48, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    padding: 10px;
    transition: all 0.3s ease;
}

.wf-phase-group.active-group {
    border-color: var(--accent);
    background: rgba(201, 168, 76, 0.08);
    box-shadow: 0 0 15px rgba(201, 168, 76, 0.15);
}

.wf-phase-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-bottom: 5px;
}

.phase-tag {
    font-size: 9.5px;
    padding: 2px 7px;
    border-radius: 10px;
    font-weight: 800;
}

.phase-tag.p1 { background: rgba(59, 130, 246, 0.25); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.5); }
.phase-tag.p2 { background: rgba(245, 158, 11, 0.25); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.5); }
.phase-tag.p3 { background: rgba(16, 185, 129, 0.25); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.5); }

.wf-nodes-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.wf-node {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 7px 4px;
    text-align: center;
    transition: all 0.25s ease;
    cursor: default;
    position: relative;
}

.wf-node .node-icon {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 3px;
    transition: all 0.25s ease;
}

.wf-node .node-code {
    font-size: 10.5px;
    font-weight: 800;
    color: var(--text-primary);
    font-family: monospace;
}

.wf-node .node-name {
    font-size: 9px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}

.wf-node .node-status {
    font-size: 8.5px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Node States: Active & Done */
.wf-node.active {
    border-color: #38bdf8;
    background: rgba(14, 165, 233, 0.2);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.45);
    transform: translateY(-2px);
}

.wf-node.active .node-icon {
    color: #38bdf8;
    animation: pulseIcon 1s infinite alternate;
}

.wf-node.active .node-status {
    color: #38bdf8;
    font-weight: 700;
}

.wf-node.done {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.12);
}

.wf-node.done .node-icon {
    color: #10b981;
}

.wf-node.done .node-status {
    color: #10b981;
}

.wf-arrow {
    color: var(--text-muted);
    font-size: 10px;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.wf-arrow.active {
    color: #38bdf8;
    opacity: 1;
    animation: flowPulse 0.8s infinite;
}

/* Interphase Connector */
.wf-interphase-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 3px 0;
}

.inter-line {
    position: absolute;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    top: 50%;
    z-index: 1;
}

.inter-badge {
    position: relative;
    z-index: 2;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 9.5px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.wf-interphase-connector.active .inter-line {
    background: var(--accent);
}

.wf-interphase-connector.active .inter-badge {
    border-color: var(--accent);
    color: var(--accent-light);
    box-shadow: 0 0 10px rgba(201, 168, 76, 0.3);
}

/* Workflow Live Inspector */
.workflow-active-inspector {
    padding: 9px 12px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--border-color);
}

.inspector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10.5px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.inspector-timestamp {
    font-family: monospace;
    font-size: 10px;
    color: var(--accent);
}

.inspector-body {
    font-size: 11px;
    line-height: 1.5;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 6px 9px;
    border-radius: 4px;
}

@keyframes pulseIcon {
    from { transform: scale(1); filter: drop-shadow(0 0 2px rgba(56, 189, 248, 0.5)); }
    to { transform: scale(1.2); filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.9)); }
}

@keyframes flowPulse {
    0% { transform: translateX(0); opacity: 0.5; }
    50% { transform: translateX(-3px); opacity: 1; }
    100% { transform: translateX(0); opacity: 0.5; }
}

/* ===== TAB 2: SCENARIOS ===== */
.scenario-runner-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Featured Live Voice Card */
.featured-live-card {
    background: linear-gradient(135deg, rgba(20, 34, 54, 0.95) 0%, rgba(11, 43, 79, 0.95) 100%);
    border: 2px solid var(--accent);
    border-radius: var(--radius-md);
    padding: 18px 24px;
    box-shadow: 0 6px 20px rgba(201, 168, 76, 0.25);
    position: relative;
    overflow: hidden;
}

.featured-live-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--accent);
}

.live-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(201, 168, 76, 0.2);
    border: 1px solid var(--accent);
    color: var(--accent-light);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 10px;
}

.live-card-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.live-card-content h3 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 6px;
}

.live-card-content p {
    font-size: 12.5px;
    color: var(--text-muted);
    max-width: 820px;
    line-height: 1.7;
}

.btn-live-launch {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--primary-dark);
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 13.5px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(201, 168, 76, 0.4);
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-live-launch:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(201, 168, 76, 0.6);
}

.scenario-intro h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.scenario-intro p {
    font-size: 12.5px;
    color: var(--text-muted);
}

.scenarios-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.scenario-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    box-shadow: var(--shadow);
    transition: all 0.2s;
}

.scenario-card:hover {
    transform: translateY(-2px);
    border-color: rgba(201, 168, 76, 0.4);
}

.card-badge {
    align-self: flex-start;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10.5px;
    font-weight: 700;
}

.card-phase-1 .card-badge { background: rgba(239, 68, 68, 0.2); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.4); }
.card-phase-2 .card-badge { background: rgba(201, 168, 76, 0.2); color: #fbbf24; border: 1px solid rgba(201, 168, 76, 0.4); }
.card-phase-3 .card-badge { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }

.scenario-card h4 {
    font-size: 13.5px;
    font-weight: 700;
}

.scenario-card p {
    font-size: 12px;
    color: var(--text-muted);
    flex: 1;
    line-height: 1.6;
}

.scenario-features {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 6px 0;
    font-size: 11px;
    color: var(--text-main);
}

.scenario-features i {
    color: var(--success);
    margin-left: 4px;
}

.btn-run-scenario {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-run-scenario:hover {
    background: var(--accent);
    color: var(--primary-dark);
    border-color: var(--accent);
}

/* ===== TAB 3: SETTINGS ===== */
.settings-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.settings-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.settings-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow);
}

.box-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.box-title h4 {
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    font-size: 11.5px;
    margin-bottom: 4px;
    color: var(--text-main);
}

.ltr-input {
    direction: ltr;
    text-align: left;
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    padding: 7px 10px;
    font-size: 12px;
}

.text-muted {
    font-size: 10.5px;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
}

.radio-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.radio-card {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.radio-card input {
    margin-top: 3px;
}

.radio-body strong {
    display: block;
    font-size: 12px;
}

.radio-body span {
    font-size: 10.5px;
    color: var(--text-muted);
}

.toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.toggle-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.kill-switch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
}

.kill-switch-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
}

.settings-save-bar {
    display: flex;
    justify-content: flex-end;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--primary-dark);
    border: none;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(201, 168, 76, 0.3);
}

/* ===== TAB 4: AUDIT TABLE ===== */
.audit-container {
    max-width: 1280px;
    margin: 0 auto;
}

.audit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.table-responsive {
    overflow-x: auto;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
}

.enterprise-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11.5px;
    text-align: right;
}

.enterprise-table th {
    background: rgba(11, 43, 79, 0.8);
    color: var(--accent-light);
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 700;
    white-space: nowrap;
}

.enterprise-table td {
    padding: 9px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.enterprise-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* ===== MODAL & LIVE VOICE EXPERIENCE ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 760px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
    animation: scaleUp 0.25s ease;
}

@keyframes scaleUp {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: rgba(11, 43, 79, 0.8);
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-size: 14.5px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.btn-modal-close:hover {
    color: #fff;
}

.modal-body {
    padding: 18px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.step-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid var(--info);
    color: #60a5fa;
    margin-bottom: 10px;
}

.step-badge-confirm {
    background: rgba(16, 185, 129, 0.2);
    border-color: var(--success);
    color: #34d399;
}

.step-badge-exec {
    background: rgba(201, 168, 76, 0.2);
    border-color: var(--accent);
    color: var(--accent-light);
}

.voice-recorder-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    gap: 12px;
}

.btn-big-record {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.5);
    transition: all 0.2s;
}

.btn-big-record:hover {
    transform: scale(1.06);
}

.btn-big-record.recording {
    animation: pulseBigMic 1.2s infinite;
}

@keyframes pulseBigMic {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    50% { transform: scale(1.1); box-shadow: 0 0 0 16px rgba(239, 68, 68, 0); }
}

.record-status-label {
    font-size: 13px;
    color: var(--text-main);
    font-weight: 600;
}

.audio-wave-anim {
    display: flex;
    gap: 4px;
    height: 24px;
    align-items: center;
}

.audio-wave-anim span {
    width: 4px;
    background: var(--accent);
    border-radius: 2px;
    animation: waveBar 0.9s infinite ease-in-out;
}

.audio-wave-anim span:nth-child(2) { animation-delay: 0.15s; }
.audio-wave-anim span:nth-child(3) { animation-delay: 0.3s; }
.audio-wave-anim span:nth-child(4) { animation-delay: 0.45s; }
.audio-wave-anim span:nth-child(5) { animation-delay: 0.6s; }

@keyframes waveBar {
    0%, 100% { height: 6px; }
    50% { height: 24px; }
}

.quick-samples-divider {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    margin: 6px 0;
}

.quick-samples-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.sample-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
}

.sample-chip:hover {
    background: rgba(201, 168, 76, 0.15);
    color: var(--accent-light);
    border-color: var(--accent);
}

/* Customer Confirmation Box */
.confirmation-box {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.confirm-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #34d399;
}

.transcript-editor {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    padding: 10px;
    font-size: 13px;
    line-height: 1.6;
    outline: none;
    resize: vertical;
}

.transcript-editor:focus {
    border-color: var(--success);
}

.confirm-details-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.meta-tag {
    font-size: 11.5px;
    background: rgba(255, 255, 255, 0.06);
    padding: 6px 12px;
    border-radius: 14px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.meta-tag strong {
    color: var(--text-main);
    font-weight: 700;
}

.confirm-buttons-row {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-confirm-execute {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    transition: all 0.2s;
}

.btn-confirm-execute:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.6);
}

/* Stepper */
.e2e-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 6px;
    gap: 8px;
}

.stepper-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    text-align: center;
}

.stepper-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-muted);
    transition: all 0.3s;
}

.stepper-item.active .stepper-icon {
    background: var(--accent);
    border-color: var(--accent-light);
    color: var(--primary-dark);
    box-shadow: 0 0 12px rgba(201, 168, 76, 0.5);
}

.stepper-item.done .stepper-icon {
    background: var(--success);
    border-color: #34d399;
    color: #fff;
}

.stepper-label {
    font-size: 10.5px;
    color: var(--text-muted);
    font-weight: 600;
}

.stepper-line {
    flex: 0.5;
    height: 2px;
    background: var(--border-color);
    transition: all 0.3s;
}

.stepper-line.active {
    background: var(--accent);
}

.execution-log-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 160px;
    overflow-y: auto;
}

.spinner-line {
    color: var(--accent-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Chat In-line Cards */
.invoice-card {
    background: #0f1d2e;
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-top: 8px;
    font-size: 11.5px;
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    color: var(--accent-light);
    border-bottom: 1px solid rgba(201, 168, 76, 0.3);
    padding-bottom: 6px;
    margin-bottom: 8px;
}

.invoice-item {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    color: var(--text-muted);
}

.invoice-item.highlight {
    color: var(--text-main);
    font-weight: 600;
}

.invoice-total {
    border-top: 1px dashed rgba(255, 255, 255, 0.2);
    margin-top: 6px;
    padding-top: 6px;
    display: flex;
    justify-content: space-between;
    font-weight: 800;
    color: var(--accent-light);
}

.btn-confirm-invoice {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #fff;
    border: none;
    width: 100%;
    padding: 8px;
    border-radius: 4px;
    margin-top: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-confirm-invoice:hover {
    background: #10b981;
}

.survey-box {
    background: #13243a;
    border: 1px solid var(--info);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-top: 8px;
}

.star-rating {
    display: flex;
    gap: 8px;
    margin: 8px 0;
    font-size: 20px;
    cursor: pointer;
    color: var(--accent);
}

/* ===== RESPONSIVE BREAKPOINTS (Mobile & Tablet) ===== */
@media (max-width: 1024px) {
    .operations-grid {
        grid-template-columns: 1fr;
        height: auto;
    }
    .chat-container {
        height: 480px;
    }
    .scenarios-cards-grid {
        grid-template-columns: 1fr 1fr;
    }
    .settings-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .btn-menu-toggle {
        display: flex;
    }
    .top-status-bar {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding-top: 4px;
    }
    .main-tabs {
        padding: 4px 10px;
    }
    .tab-btn span {
        font-size: 11.5px;
    }
    .scenarios-cards-grid {
        grid-template-columns: 1fr;
    }
    .live-card-content {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-live-launch {
        justify-content: center;
    }
    .case-details-grid {
        grid-template-columns: 1fr;
    }
    .confirm-buttons-row {
        flex-direction: column;
    }
    .btn-confirm-execute, .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    .e2e-stepper {
        flex-direction: column;
        gap: 12px;
    }
    .stepper-line {
        width: 2px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .top-nav {
        padding: 8px 12px;
    }
    .brand-title h1 {
        font-size: 13.5px;
    }
    .brand-title span {
        display: none;
    }
    .tab-content-container {
        padding: 10px;
    }
    .chat-container {
        height: 420px;
    }
    .map-element {
        height: 180px;
    }
}


/* Mobile Drawer & Backdrop */
.mobile-drawer-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 90;
}

.mobile-drawer-backdrop.active {
    display: block;
}

@media (max-width: 768px) {
    .main-tabs.mobile-open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 60px;
        right: 0;
        width: 260px;
        height: calc(100vh - 60px);
        background: var(--bg-surface);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.6);
        z-index: 95;
        padding: 16px 12px;
        gap: 8px;
        border-left: 1px solid var(--border-color);
        animation: slideInRight 0.25s ease;
    }
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}


/* ================= INTERACTIVE VOICE SURVEY & DELIGHTING STYLES ================= */
.survey-modal-card {
    background: #0B1120;
    color: #F8FAFC;
    border-radius: 14px;
}

.survey-star-group .star-btn {
    transition: transform 0.15s ease, color 0.15s ease;
}

.survey-star-group .star-btn:hover {
    transform: scale(1.25);
    color: #F59E0B !important;
}

.choice-chip {
    transition: all 0.2s ease;
}

.choice-chip:hover {
    border-color: #8B5CF6 !important;
    color: #F8FAFC !important;
}

.choice-chip.active {
    background: #4F46E5 !important;
    border-color: #6366F1 !important;
    color: #FFFFFF !important;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

.featured-scenario-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.featured-scenario-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(139, 92, 246, 0.25);
}

.customer-live-inputs-row input:focus {
    outline: none;
    border-color: #8B5CF6 !important;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.3);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}


/* Equalizer Bars for Audio Speaking Animation */
.equalizer-bars span {
    animation: eqBounce 1.2s ease-in-out infinite alternate;
}
.equalizer-bars span:nth-child(1) { animation-duration: 0.7s; }
.equalizer-bars span:nth-child(2) { animation-duration: 1.1s; animation-delay: 0.2s; }
.equalizer-bars span:nth-child(3) { animation-duration: 0.6s; animation-delay: 0.4s; }
.equalizer-bars span:nth-child(4) { animation-duration: 1.3s; animation-delay: 0.1s; }
.equalizer-bars span:nth-child(5) { animation-duration: 0.9s; animation-delay: 0.3s; }
.equalizer-bars span:nth-child(6) { animation-duration: 1.0s; animation-delay: 0.5s; }

@keyframes eqBounce {
    0% { height: 20%; opacity: 0.6; }
    50% { height: 100%; opacity: 1; }
    100% { height: 30%; opacity: 0.7; }
}

/* Specialist Avatar Glow Animation */
.specialist-avatar-wrapper img,
.specialist-avatar-wrapper video {
    animation: avatarPulse 3s ease-in-out infinite;
}

@keyframes avatarPulse {
    0% { box-shadow: 0 0 12px rgba(139, 92, 246, 0.5); }
    50% { box-shadow: 0 0 25px rgba(139, 92, 246, 0.85), 0 0 40px rgba(99, 102, 241, 0.35); }
    100% { box-shadow: 0 0 12px rgba(139, 92, 246, 0.5); }
}

/* ================= 3D AVATAR SUPPORT DOCK ================= */
.chat-avatar-dock {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96) 0%, rgba(30, 27, 75, 0.92) 100%);
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.chat-avatar-dock::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.6), transparent);
}

.avatar-video-wrapper {
    position: relative;
    width: 124px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #6366F1;
    box-shadow: 0 0 14px rgba(99, 102, 241, 0.35);
    background: #020617;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.avatar-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.avatar-live-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34D399;
    font-size: 9.5px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    pointer-events: none;
}

.avatar-live-dot {
    width: 6px;
    height: 6px;
    background: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 6px #10B981;
    animation: avatarPulse 1.8s infinite;
}

.avatar-dock-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.avatar-dock-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.avatar-dock-title {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.avatar-dock-title .avatar-name {
    font-size: 13px;
    font-weight: 800;
    color: #F8FAFC;
}

.avatar-dock-title .avatar-tag {
    font-size: 10px;
    color: #A78BFA;
    background: rgba(139, 92, 246, 0.18);
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: 6px;
    padding: 1px 7px;
    font-weight: 600;
}

.avatar-dock-actions {
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-avatar-tool {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #CBD5E1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.2s ease;
}

.btn-avatar-tool:hover {
    background: rgba(139, 92, 246, 0.3);
    color: #fff;
    border-color: #8B5CF6;
}

.btn-avatar-tool.active-audio {
    background: rgba(16, 185, 129, 0.25);
    color: #34D399;
    border-color: #10B981;
}

.avatar-dock-status {
    font-size: 11px;
    color: #94A3B8;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
}

.avatar-dock-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2px;
}

.avatar-ai-model {
    font-size: 10px;
    color: #64748B;
}

.btn-avatar-open-survey {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    color: #fff;
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 6px;
    padding: 3px 9px;
    font-size: 10.5px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s ease;
}

.btn-avatar-open-survey:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

/* Collapsed state */
.chat-avatar-dock.collapsed {
    padding: 6px 14px;
}

.chat-avatar-dock.collapsed .avatar-video-wrapper,
.chat-avatar-dock.collapsed .avatar-dock-status,
.chat-avatar-dock.collapsed .avatar-dock-footer {
    display: none;
}

@media (max-width: 768px) {
    .avatar-video-wrapper {
        width: 86px;
        height: 52px;
    }
    .avatar-ai-model {
        display: none;
    }
    .avatar-dock-title .avatar-tag {
        display: none;
    }
}


/* Scenario 4 Native Mobile Modal Frame */
.btn-close-mobile-modal:hover {
    background: rgba(239, 68, 68, 0.9) !important;
    color: #fff !important;
    transform: rotate(90deg);
}

@media (max-width: 640px) {
    .mobile-phone-frame-wrapper {
        border-radius: 0 !important;
        border: none !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
    }
}
