/* ACCON Sales Assistant v8 — Manual AI + Categorized Questions */

:root {
    --primary-indigo: #0B1F3A;
    --primary-blue: #0055B8;
    --accent-blue: #2D5BFF;
    --accent-gold: #D4AF37;
    --light-gray: #F5F5F7;
    --mid-gray: #8492A6;
    --dark-gray: #1A1A1F;
    --white: #FFFFFF;
    --success: #00BD7E;
    --danger: #E53E3E;
    --warning: #F6AD55;
    --info: #4299E1;
    --bg: #F0F2F5;
    --bg-card: var(--white);
    --text: var(--dark-gray);
    --text-muted: var(--mid-gray);
    --border: #E2E8F0;
    --shadow-sm: 0 1px 3px rgba(11,31,58,0.06);
    --shadow-md: 0 4px 12px rgba(11,31,58,0.08);
    --radius: 10px;
    --radius-sm: 6px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: var(--bg); color: var(--text); line-height: 1.5; }
body.in-call { overflow: hidden; }

/* ===== HEADER ===== */
.header { background: var(--primary-indigo); color: white; padding: 8px 20px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 100; height: 42px; }
.header-left { display: flex; align-items: center; gap: 12px; }
.header-right { display: flex; align-items: center; gap: 8px; }
.header h1 { font-size: 14px; font-weight: 700; }
.header .badge { background: rgba(255,255,255,0.15); padding: 2px 10px; border-radius: 20px; font-size: 11px; font-weight: 500; }
.header .badge-vertical { background: rgba(45,91,255,0.4); }
.header .lead-info { font-size: 12px; opacity: 0.75; }
.btn-close-session { background: rgba(229,62,62,0.85); color: white; border: none; padding: 5px 14px; border-radius: var(--radius-sm); cursor: pointer; font-size: 12px; font-weight: 600; }

/* AI Generate Button */
.btn-ai-generate {
    display: flex; align-items: center; gap: 6px;
    background: linear-gradient(135deg, #2D5BFF, #7C3AED);
    color: white; border: none; padding: 6px 16px;
    border-radius: 20px; cursor: pointer;
    font-size: 12px; font-weight: 700;
    box-shadow: 0 2px 8px rgba(45,91,255,0.35);
    transition: all 0.2s;
    white-space: nowrap;
}
.btn-ai-generate:hover { box-shadow: 0 4px 16px rgba(45,91,255,0.5); transform: translateY(-1px); }
.btn-ai-generate:disabled { opacity: 0.6; cursor: default; transform: none; box-shadow: none; }
.btn-ai-generate svg { flex-shrink: 0; }
@keyframes spinAi { to { transform: rotate(360deg); } }
.btn-ai-generate .spin { animation: spinAi 1s linear infinite; }

/* ===== LOADING ===== */
.loading-screen { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 80vh; gap: 16px; }
.loading-screen p { color: var(--mid-gray); font-size: 14px; }
.spinner { width: 32px; height: 32px; border: 3px solid var(--border); border-top-color: var(--accent-blue); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== PRE-CALL ===== */
.pre-call { max-width: 760px; margin: 24px auto; padding: 0 20px; }
.pre-call .lead-card { background: var(--bg-card); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 22px; margin-bottom: 14px; border: 1px solid var(--border); }
.lead-card h2 { font-size: 1.4rem; margin-bottom: 12px; color: var(--primary-indigo); }
.lead-card .meta { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-size: 13px; }
.lead-card .meta div { color: var(--mid-gray); }
.lead-card .meta strong { color: var(--dark-gray); }

.cleverals-box { background: linear-gradient(135deg, #FFFBEB, #FEF3C7); border: 1px solid #F6E05E; border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.cleverals-box h3 { font-size: 13px; margin-bottom: 8px; color: #92400E; font-weight: 700; }
.cleverals-box ul { list-style: none; }
.cleverals-box li { padding: 3px 0; font-size: 12px; color: #78350F; }
.cleverals-box li strong { color: #92400E; }

.briefing-box { background: var(--bg-card); border: 1px solid var(--border); border-left: 4px solid var(--accent-blue); border-radius: var(--radius); padding: 20px; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.briefing-box h3 { font-size: 13px; margin-bottom: 12px; color: var(--accent-blue); font-weight: 700; }
.briefing-section { margin-bottom: 12px; }
.briefing-section h4 { font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--mid-gray); margin-bottom: 4px; font-weight: 600; }
.briefing-section p { font-size: 13px; line-height: 1.5; }
.briefing-section ul { list-style: none; }
.briefing-section li { padding: 3px 0 3px 16px; font-size: 13px; position: relative; }
.briefing-section li::before { content:''; position:absolute; left:0; top:10px; width:6px; height:6px; border-radius:50%; }
.explore-list li::before { background: var(--accent-blue); }
.alert-list li::before { background: var(--warning); }
.known-list li::before { background: var(--success); }
.briefing-loading { display:flex; align-items:center; gap:10px; padding:14px; color:var(--mid-gray); font-size:13px; }

.sector-selector { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 13px; font-weight: 600; color: var(--primary-indigo); }
.sector-selector select { padding: 8px 10px; border: 2px solid var(--primary-blue); border-radius: var(--radius-sm); font-size: 13px; background: white; min-width: 220px; }
.sector-auto-badge { background:var(--success); color:white; padding:2px 8px; border-radius:10px; font-size:10px; font-weight:600; }

.btn-start-call { display: block; width: 100%; padding: 14px; background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue)); color: white; border: none; border-radius: var(--radius-sm); font-size: 15px; font-weight: 700; cursor: pointer; box-shadow: 0 4px 12px rgba(45,91,255,0.25); }
.btn-start-call:hover { box-shadow: 0 6px 20px rgba(45,91,255,0.35); transform: translateY(-1px); }

/* ====================================================
   CALL SCREEN — Timeline + Main Content
   ==================================================== */
.call-screen {
    display: grid;
    grid-template-columns: 180px 1fr;
    grid-template-rows: 1fr 52px;
    height: calc(100vh - 42px);
}

/* ---------- TIMELINE SIDEBAR ---------- */
.timeline-sidebar {
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    display: flex; flex-direction: column;
    overflow: hidden;
}
.timeline { padding: 20px 16px; flex: 1; }

.tl-step {
    display: flex; align-items: flex-start; gap: 12px;
    cursor: pointer; position: relative;
    padding: 8px 8px; border-radius: var(--radius-sm);
    margin-bottom: 4px; transition: all 0.15s;
}
.tl-step:hover { background: #F7FAFC; }
.tl-step.active { background: #EBF5FF; }

.tl-dot {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--border); color: var(--mid-gray);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; flex-shrink: 0;
    transition: all 0.15s;
}
.tl-step.active .tl-dot { background: var(--accent-blue); color: white; }
.tl-step:not(.active):hover .tl-dot { background: #CBD5E0; }

.tl-label { font-size: 13px; font-weight: 600; color: var(--mid-gray); padding-top: 4px; }
.tl-step.active .tl-label { color: var(--primary-blue); }

.tl-line {
    position: absolute; left: 21px; top: 38px;
    width: 2px; height: 16px; background: var(--border);
}

.notes-section { border-top: 1px solid var(--border); padding: 10px 14px; flex-shrink: 0; }
.notes-section h4 { font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--mid-gray); margin-bottom: 4px; font-weight: 700; }
.notes-area { width: 100%; min-height: 60px; max-height: 120px; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px 8px; font-size: 12px; font-family: inherit; resize: vertical; }
.notes-area:focus { outline: none; border-color: var(--accent-blue); }
.btn-manual-profundizar { display: block; width: 100%; margin-top: 6px; padding: 6px; background: linear-gradient(135deg, #FB923C, #F97316); color: white; border: none; border-radius: var(--radius-sm); font-size: 11px; font-weight: 700; cursor: pointer; transition: all 0.15s; }
.btn-manual-profundizar:hover { box-shadow: 0 2px 8px rgba(249,115,22,0.35); }
.btn-manual-profundizar:disabled { opacity: 0.6; cursor: default; }

/* ---------- MAIN CONTENT ---------- */
.main-content {
    overflow-y: auto; padding: 0;
    background: var(--bg);
}

/* Phase: Full width layouts (Intro, Precio, Cierre) */
.phase-full { max-width: 700px; margin: 0 auto; padding: 24px 20px; }
.phase-full h3 { font-size: 16px; font-weight: 700; color: var(--primary-indigo); margin-bottom: 16px; }

.phase-script {
    background: linear-gradient(135deg, #FFFBEB, #FEF9E7);
    border: 1px solid #F6E05E; border-radius: var(--radius-sm);
    padding: 16px; margin-bottom: 16px; font-size: 14px;
    line-height: 1.7; color: #78350F;
}

.tips-box { background: #F8FAFC; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; margin-bottom: 12px; }
.tips-box.focus-box { background: #EBF5FF; border-color: #90CDF4; }
.tips-box p { font-size: 13px; }
.tip-title { font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--primary-blue); letter-spacing: 0.5px; margin-bottom: 6px; }
.tips-list { list-style: none; }
.tips-list li { padding: 5px 0 5px 14px; font-size: 12px; color: var(--mid-gray); position: relative; border-bottom: 1px solid #F0F0F3; }
.tips-list li::before { content:''; position:absolute; left:0; top:11px; width:5px; height:5px; border-radius:50%; background:var(--warning); }

/* ===== PHASE: PREGUNTAS ===== */
.phase-questions { display: flex; flex-direction: column; height: 100%; }
.q-header { padding: 14px 20px 0; flex-shrink: 0; }
.q-header h3 { font-size: 14px; font-weight: 700; color: var(--primary-indigo); margin-bottom: 10px; }

.q-tabs { display: flex; gap: 4px; flex-wrap: wrap; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.q-tab { padding: 5px 12px; border: 1px solid var(--border); border-radius: 14px; background: white; font-size: 11px; font-weight: 500; color: var(--mid-gray); cursor: pointer; transition: all 0.15s; white-space: nowrap; }
.q-tab:hover { border-color: var(--accent-blue); color: var(--accent-blue); }
.q-tab.active { background: var(--accent-blue); color: white; border-color: var(--accent-blue); }
.q-tab-ai { border-color: var(--info); color: var(--info); }
.q-tab-ai.active { background: var(--info); color: white; border-color: var(--info); }
.tab-count { display: inline-block; background: rgba(0,0,0,0.1); padding: 0 5px; border-radius: 8px; font-size: 10px; margin-left: 3px; }
.q-tab.active .tab-count { background: rgba(255,255,255,0.3); }

.v-tabs { display: flex; gap: 4px; flex-wrap: wrap; padding-bottom: 10px; }
.v-tab { padding: 4px 10px; border: 1px solid var(--border); border-radius: 14px; background: white; font-size: 11px; font-weight: 500; color: var(--mid-gray); cursor: pointer; }
.v-tab.active { background: var(--success); color: white; border-color: var(--success); }

.questions-list { flex: 1; overflow-y: auto; padding: 12px 20px; }

.q-card { background: var(--bg-card); border: 1px solid var(--border); border-left: 3px solid var(--accent-blue); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 10px; animation: fadeIn 0.3s ease-out; }
.q-card.from-ai { border-left-color: var(--info); background: linear-gradient(135deg, #EBF8FF, #FAFFFF); }
.q-card.from-briefing { border-left-color: var(--mid-gray); }

.q-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.q-card-cat { font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; color: var(--mid-gray); }
.q-card-text { font-size: 13px; font-weight: 500; color: var(--primary-indigo); line-height: 1.5; }
.q-card-purpose { display: none; } /* Replaced by .q-card-example */

.btn-profundizar { padding: 3px 10px; border: 1px solid var(--accent-blue); border-radius: 12px; background: white; color: var(--accent-blue); font-size: 10px; font-weight: 600; cursor: pointer; transition: all 0.15s; }
.btn-profundizar:hover { background: var(--accent-blue); color: white; }
.btn-profundizar:disabled { opacity: 0.5; cursor: default; }

.follow-ups { margin-top: 8px; padding-top: 6px; border-top: 1px dashed var(--border); }
.follow-up { font-size: 11px; color: #4A5568; padding: 2px 0; }
.fu-trigger { font-weight: 600; color: var(--accent-blue); }

.sub-questions { margin-top: 8px; padding: 8px; background: #F7FAFC; border-radius: var(--radius-sm); }
.sub-q { padding: 6px 0; border-bottom: 1px solid #EDF2F7; }
.sub-q:last-child { border-bottom: none; }
.sub-q-text { font-size: 12px; color: var(--primary-indigo); font-weight: 500; }
.sub-q-purpose { display: none; } /* Replaced by .sub-q-example */

.q-empty { text-align: center; padding: 40px 20px; color: var(--mid-gray); font-size: 13px; }

/* Profundizar loading states */
.btn-profundizar.loading { background: var(--warning); color: white; border-color: var(--warning); animation: pulse 1.5s infinite; }
.sub-q-loading { display: flex; align-items: center; gap: 8px; padding: 10px; color: var(--mid-gray); font-size: 12px; }
.sub-q-empty { padding: 8px; color: var(--mid-gray); font-size: 11px; font-style: italic; }
.sub-q-error { padding: 8px; color: var(--danger); font-size: 11px; }
.spinner-small { width: 16px; height: 16px; border: 2px solid var(--border); border-top-color: var(--accent-blue); border-radius: 50%; animation: spin 0.7s linear infinite; }
.sub-q-appear { animation: fadeSlideIn 0.3s ease-out; }
@keyframes fadeSlideIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Commercial tab styling */
.q-tab-commercial { color: #9A3412; }
.q-tab-commercial.active { background: #FB923C; color: white; border-color: #FB923C; }

/* Sub-question examples */
.sub-q-example { font-size: 11px; color: #047857; margin-top: 2px; font-style: italic; }
.sub-q-example::before { content: 'Ej: '; font-weight: 600; }

/* Question card examples (replaces purpose) */
.q-card-example { font-size: 11px; color: #047857; margin-top: 4px; }

/* Profundizar done state */
.btn-profundizar.done { background: var(--success); color: white; border-color: var(--success); }

/* Briefing questions in Intro phase */
.briefing-questions { margin-top: 16px; }
.briefing-questions h4 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent-blue); font-weight: 700; margin-bottom: 8px; }
.briefing-q-list { display: flex; flex-direction: column; gap: 6px; }
.briefing-q-card { background: var(--bg-card); border: 1px solid var(--border); border-left: 3px solid var(--mid-gray); border-radius: var(--radius-sm); padding: 10px 12px; }
.briefing-q-card .q-card-text { font-size: 13px; color: var(--primary-indigo); }

@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* AI Module Chips & Groups */
.ai-module-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; padding: 8px 0; }
.ai-chip { padding: 4px 12px; border: 1.5px solid var(--border); border-radius: 14px; background: white; font-size: 11px; font-weight: 600; cursor: pointer; transition: all 0.15s; }
.ai-chip:hover { opacity: 0.85; }
.ai-chip.active { box-shadow: 0 2px 6px rgba(0,0,0,0.12); }
.ai-module-group { margin-bottom: 16px; animation: fadeIn 0.3s ease-out; }
.ai-module-header { padding: 8px 12px; border-radius: var(--radius-sm); margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; }
.ai-module-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.ai-module-count { font-size: 10px; opacity: 0.7; }

/* Transcript counter in speech bar */
.transcript-counter { font-size: 10px; background: rgba(255,255,255,0.15); padding: 3px 10px; border-radius: 10px; white-space: nowrap; color: rgba(255,255,255,0.7); }

/* ===== PHASE: VALOR ===== */
.phase-valor { display: flex; flex-direction: column; height: 100%; }
.v-header { padding: 14px 20px 0; flex-shrink: 0; }
.v-header h3 { font-size: 14px; font-weight: 700; color: var(--primary-indigo); margin-bottom: 10px; }
.valor-list { flex: 1; overflow-y: auto; padding: 12px 20px; }
.valor-section { margin-bottom: 16px; }
.valor-section h4 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--mid-gray); font-weight: 700; margin-bottom: 8px; }

.valor-card { background: var(--bg-card); border: 1px solid var(--border); border-left: 3px solid var(--success); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 8px; }
.valor-card.solution-card { background: linear-gradient(135deg, #F0FFF4, #FAFFFD); }
.valor-card.ai-card { border-left-color: var(--info); background: linear-gradient(135deg, #EBF8FF, #FAFFFF); }
.valor-pain { font-size: 11px; font-weight: 700; color: var(--danger); margin-bottom: 2px; }
.valor-solution { font-size: 12px; color: var(--dark-gray); }
.valor-pitch { font-size: 11px; color: #047857; margin-top: 4px; font-weight: 500; }
.valor-cat { font-size: 10px; text-transform: uppercase; color: var(--info); font-weight: 600; }
.valor-title { font-size: 13px; font-weight: 600; color: var(--primary-indigo); }
.valor-text { font-size: 12px; color: var(--dark-gray); line-height: 1.5; }

/* ===== PHASE: PRECIO ===== */
.pricing-estimate { background: var(--bg-card); border: 2px solid var(--accent-blue); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; box-shadow: var(--shadow-md); }
.pricing-estimate h4 { font-size: 13px; font-weight: 700; color: var(--accent-blue); margin-bottom: 14px; }
.estimate-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.estimate-item { background: #F8FAFC; border-radius: var(--radius-sm); padding: 12px; text-align: center; }
.estimate-item.highlight { background: #EBF5FF; border: 1px solid #90CDF4; }
.est-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--mid-gray); font-weight: 600; margin-bottom: 4px; }
.est-value { font-size: 18px; font-weight: 700; color: var(--primary-indigo); }
.est-value.big { font-size: 24px; color: var(--accent-blue); }
.est-sub { font-size: 11px; color: var(--mid-gray); }

.modules-breakdown { border-top: 1px solid var(--border); padding-top: 10px; }
.modules-breakdown h5 { font-size: 11px; font-weight: 700; color: var(--mid-gray); margin-bottom: 6px; }
.mod-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 12px; border-bottom: 1px solid #F0F0F3; }
.mod-row span:first-child { font-weight: 500; color: var(--primary-indigo); }
.mod-row span:last-child { color: var(--mid-gray); }

.pricing-tiers { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.tier { display: flex; gap: 14px; border-radius: var(--radius-sm); padding: 14px; border: 1px solid var(--border); }
.tier-basic { background: #F7FAFC; }
.tier-standard { background: #EBF5FF; border-color: #90CDF4; border-width: 2px; }
.tier-custom { background: #FFF5F5; border-color: #FED7D7; }
.tier-num { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; flex-shrink: 0; }
.tier-basic .tier-num { background: #E2E8F0; color: var(--mid-gray); }
.tier-standard .tier-num { background: var(--accent-blue); color: white; }
.tier-custom .tier-num { background: var(--danger); color: white; }
.tier-name { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.tier-basic .tier-name { color: var(--mid-gray); }
.tier-standard .tier-name { color: var(--primary-blue); }
.tier-custom .tier-name { color: var(--danger); }
.tier-price { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.tier-desc { font-size: 12px; color: #4A5568; line-height: 1.5; }
.speech-intro { font-size: 13px; color: var(--primary-blue); font-weight: 600; }

/* ===== PHASE: CIERRE ===== */
.closing-script { font-size: 14px; line-height: 1.8; }
.btn-schedule { display: block; width: 100%; padding: 14px; background: linear-gradient(135deg, var(--success), #059669); color: white; border: none; border-radius: var(--radius-sm); font-size: 15px; font-weight: 700; cursor: pointer; margin-bottom: 16px; box-shadow: 0 4px 12px rgba(0,189,126,0.25); }
.btn-schedule:hover { box-shadow: 0 6px 20px rgba(0,189,126,0.35); transform: translateY(-1px); }

/* ===== SPEECH BAR ===== */
.speech-bar { grid-column: 1 / -1; background: var(--primary-indigo); color: white; padding: 8px 20px; display: flex; align-items: center; gap: 12px; }
.mic-btn { width: 38px; height: 38px; border-radius: 50%; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; flex-shrink: 0; }
.mic-btn.on { background: var(--danger); color: white; animation: pulse 1.5s infinite; }
.mic-btn.off { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.7); }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(229,62,62,0.4); } 50% { box-shadow: 0 0 0 8px rgba(229,62,62,0); } }

.speaker-toggle { display: flex; gap: 0; border-radius: 16px; overflow: hidden; border: 1px solid rgba(255,255,255,0.2); flex-shrink: 0; }
.spk-btn { padding: 4px 12px; border: none; font-size: 11px; font-weight: 600; cursor: pointer; transition: all 0.15s; background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.5); }
.spk-btn.active { background: var(--accent-blue); color: white; }
.spk-btn:first-child { border-radius: 16px 0 0 16px; }
.spk-btn:last-child { border-radius: 0 16px 16px 0; }

.speech-info { flex: 1; min-width: 0; }
.speech-transcript { display: block; font-size: 12px; opacity: 0.65; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ai-status { font-size: 11px; display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.ai-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.ai-dot.thinking { background: var(--warning); animation: pulse 1s infinite; }
.ai-dot.ok { background: var(--success); }
.ai-dot.error { background: var(--danger); }

.btn-end-call { background: rgba(229,62,62,0.85); color: white; border: none; padding: 7px 16px; border-radius: var(--radius-sm); cursor: pointer; font-size: 12px; font-weight: 600; white-space: nowrap; flex-shrink: 0; }
.btn-end-call:hover { background: var(--danger); }

/* ===== MODAL ===== */
.modal-overlay { position: fixed; top:0; left:0; right:0; bottom:0; background: rgba(11,31,58,0.5); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 200; }
.modal { background: white; border-radius: var(--radius); padding: 28px; max-width: 520px; width: 90%; max-height: 80vh; overflow-y: auto; box-shadow: 0 12px 24px rgba(11,31,58,0.12); }
.modal h2 { margin-bottom: 16px; color: var(--primary-indigo); font-size: 1.3rem; }
.modal .summary-section { margin-bottom: 14px; }
.modal .summary-section h4 { font-size: 10px; text-transform: uppercase; letter-spacing:0.05em; color: var(--mid-gray); margin-bottom: 3px; font-weight: 700; }
.modal .summary-section p { font-size: 13px; }
.modal .btn-row { display: flex; gap: 8px; margin-top: 20px; }
.btn-primary { flex:1; padding:10px; background: var(--primary-indigo); color:white; border:none; border-radius: var(--radius-sm); font-size:12px; font-weight:600; cursor:pointer; }
.btn-primary:hover { background: var(--primary-blue); }
.btn-primary.accent { background: var(--accent-blue); }
.btn-secondary { flex:1; padding:10px; background:white; color: var(--primary-blue); border:2px solid var(--primary-blue); border-radius: var(--radius-sm); font-size:12px; font-weight:600; cursor:pointer; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .call-screen { grid-template-columns: 140px 1fr; }
    .estimate-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .call-screen { grid-template-columns: 1fr; grid-template-rows: auto 1fr 52px; }
    .timeline-sidebar { flex-direction: row; border-right: none; border-bottom: 1px solid var(--border); }
    .timeline { display: flex; padding: 8px; gap: 4px; }
    .tl-step { flex-direction: column; align-items: center; margin: 0; padding: 4px; }
    .tl-line { display: none; }
    .notes-section { display: none; }
}
