/* ================================================================
   BrandSafway Pursuit Intelligence - World-Class UI
   ================================================================ */

:root {
    --bs-body-font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --sidebar-width: 260px;
    --topbar-height: 60px;
    --brand-primary: #0d6efd;
    --brand-accent: #6610f2;
    --brand-gradient: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
    --brand-gradient-warm: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --glass-bg: rgba(255,255,255,0.03);
    --glass-border: rgba(255,255,255,0.08);
    --card-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --card-shadow-hover: 0 10px 30px rgba(0,0,0,0.25);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-bs-theme="light"] {
    --glass-bg: rgba(0,0,0,0.02);
    --glass-border: rgba(0,0,0,0.08);
    --card-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --card-shadow-hover: 0 10px 30px rgba(0,0,0,0.12);
}

* { box-sizing: border-box; }

body {
    font-family: var(--bs-body-font-family);
    overflow-x: hidden;
    min-height: 100vh;
}

/* ---- Sidebar ---- */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bs-body-bg);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    z-index: 1040;
    transition: var(--transition-smooth);
    overflow-y: auto;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--glass-border);
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: var(--brand-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    flex-shrink: 0;
}

.brand-name {
    font-weight: 800;
    font-size: 1rem;
    display: block;
    letter-spacing: -0.02em;
}

.brand-sub {
    font-size: 0.7rem;
    color: var(--bs-secondary-color);
    display: block;
}

.sidebar-nav {
    flex: 1;
    padding: 8px 12px;
}

.nav-section-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--bs-secondary-color);
    padding: 16px 12px 6px;
    text-transform: uppercase;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--bs-body-color);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-smooth);
    margin-bottom: 2px;
}

.sidebar-nav .nav-link:hover {
    background: var(--glass-bg);
    color: var(--brand-primary);
    transform: translateX(2px);
}

.sidebar-nav .nav-link.active {
    background: var(--brand-gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(13,110,253,0.3);
}

.sidebar-nav .nav-link.active .badge {
    background: rgba(255,255,255,0.25) !important;
}

.sidebar-nav .nav-link i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 16px 8px;
    border-top: 1px solid var(--glass-border);
}

.avatar-sm {
    width: 32px;
    height: 32px;
    background: var(--brand-gradient);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

/* ---- Main Content ---- */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: var(--transition-smooth);
}

.topbar {
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    padding: 0 24px;
    border-bottom: 1px solid var(--glass-border);
    gap: 16px;
    position: sticky;
    top: 0;
    background: var(--bs-body-bg);
    z-index: 1020;
    backdrop-filter: blur(10px);
}

.topbar-breadcrumb {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 500;
}

.page-content {
    padding: 24px;
    max-width: 1600px;
}

/* ---- Page Header ---- */
.page-header {
    margin-bottom: 28px;
}

.page-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 4px;
}

.page-header .lead {
    color: var(--bs-secondary-color);
    font-size: 0.9rem;
}

/* ---- Cards ---- */
.card {
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--card-shadow-hover);
}

.card-header {
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: -0.01em;
    border-bottom: 1px solid var(--glass-border);
    padding: 16px 20px;
}

.card-body {
    padding: 20px;
}

/* Stat cards */
.stat-card {
    position: relative;
    overflow: hidden;
    border: none;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.stat-card.gradient-1::before { background: linear-gradient(90deg, #0d6efd, #6610f2); }
.stat-card.gradient-2::before { background: linear-gradient(90deg, #198754, #20c997); }
.stat-card.gradient-3::before { background: linear-gradient(90deg, #fd7e14, #ffc107); }
.stat-card.gradient-4::before { background: linear-gradient(90deg, #dc3545, #f093fb); }

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

.stat-card .stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--bs-secondary-color);
}

/* ---- Glass Card ---- */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: rgba(13,110,253,0.3);
    box-shadow: 0 8px 32px rgba(13,110,253,0.1);
}

/* ---- Pipeline / Steps ---- */
.step-pipeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

.step-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    position: relative;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--brand-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: #fff;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(13,110,253,0.3);
}

.step-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 23px;
    top: 68px;
    bottom: 0;
    width: 2px;
    background: var(--glass-border);
    z-index: 1;
}

.step-content {
    flex: 1;
    padding-top: 4px;
}

.step-content h5 {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 4px;
}

.step-content .step-subtitle {
    font-size: 0.8rem;
    color: var(--brand-primary);
    font-weight: 600;
    margin-bottom: 8px;
}

.step-content p, .step-content ul {
    font-size: 0.85rem;
    color: var(--bs-secondary-color);
}

/* ---- Value Chain Timeline ---- */
.vc-timeline {
    position: relative;
    padding: 20px 0;
}

.vc-stage {
    display: flex;
    gap: 24px;
    margin-bottom: 0;
    padding: 24px;
    border-radius: 16px;
    transition: var(--transition-smooth);
    cursor: default;
    border: 1px solid transparent;
}

.vc-stage:hover {
    background: var(--glass-bg);
    border-color: var(--glass-border);
    transform: translateX(4px);
}

.vc-stage-num {
    width: 56px;
    height: 56px;
    background: var(--brand-gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(13,110,253,0.25);
}

.vc-stage-content {
    flex: 1;
}

.vc-stage-content h4 {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 12px;
}

.vc-help-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.vc-help-list li {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.vc-help-list li:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

/* ---- Chat Interface ---- */
.chat-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--topbar-height) - 48px);
    max-height: 800px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    background: var(--bs-body-bg);
    position: relative;
}

.chat-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-header .agent-avatar {
    width: 40px;
    height: 40px;
    background: var(--brand-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-message {
    display: flex;
    gap: 12px;
    max-width: 85%;
    animation: messageIn 0.3s ease-out;
}

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

.chat-message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-message .msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.chat-message.assistant .msg-avatar {
    background: var(--brand-gradient);
    color: #fff;
}

.chat-message.user .msg-avatar {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.chat-message .msg-bubble {
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.88rem;
    line-height: 1.6;
}

.chat-message.assistant .msg-bubble {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-top-left-radius: 4px;
}

.chat-message.user .msg-bubble {
    background: var(--brand-gradient);
    color: #fff;
    border-top-right-radius: 4px;
}

.chat-message .msg-bubble p:last-child { margin-bottom: 0; }
.chat-message .msg-bubble ul, .chat-message .msg-bubble ol { padding-left: 20px; }
.chat-message .msg-bubble strong { font-weight: 700; }

/* ---- AI Generated Content (modals, coach panel, inline results) ---- */
.ai-result-content {
    color: #e8e8e8;
    font-size: 0.9rem;
    line-height: 1.8;
    overflow-x: auto;
    padding: 8px 0;
}

/* ------- HEADINGS ------- */
.ai-result-content h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin: 28px 0 14px;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(13,110,253,0.15) 0%, rgba(102,16,242,0.10) 100%);
    border-left: 4px solid #0d6efd;
    border-radius: 0 8px 8px 0;
    letter-spacing: -0.02em;
}

.ai-result-content h1:first-child { margin-top: 0; }

.ai-result-content h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin: 24px 0 12px;
    padding: 8px 14px;
    background: rgba(255,255,255,0.04);
    border-left: 3px solid #6610f2;
    border-radius: 0 6px 6px 0;
}

.ai-result-content h2:first-child { margin-top: 0; }

.ai-result-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #e0e0ff;
    margin: 20px 0 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(102,16,242,0.25);
}

.ai-result-content h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #d0d0e8;
    margin: 16px 0 6px;
}

/* ------- PARAGRAPHS ------- */
.ai-result-content p {
    margin-bottom: 10px;
    color: #e0e0e0;
    line-height: 1.75;
}

/* ------- LISTS ------- */
.ai-result-content ul,
.ai-result-content ol {
    padding-left: 1.6em;
    margin-bottom: 12px;
}

.ai-result-content li {
    margin-bottom: 6px;
    color: #ddd;
    line-height: 1.65;
}

.ai-result-content li strong {
    color: #fff;
}

/* ------- INLINE ------- */
.ai-result-content strong {
    font-weight: 700;
    color: #fff;
}

.ai-result-content em {
    color: #b8b8d0;
    font-style: italic;
}

/* ------- HORIZONTAL RULES ------- */
.ai-result-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, rgba(13,110,253,0.4), rgba(102,16,242,0.4), transparent);
    margin: 20px 0;
    border-radius: 1px;
}

/* ------- TABLES ------- */
.ai-result-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 16px 0;
    font-size: 0.85rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.12);
}

.ai-result-content table th {
    background: linear-gradient(135deg, rgba(13,110,253,0.2), rgba(102,16,242,0.15));
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 10px 14px;
    color: #fff;
    border-bottom: 2px solid rgba(13,110,253,0.3);
    text-align: left;
}

.ai-result-content table td {
    padding: 9px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: #e0e0e0;
}

.ai-result-content table tr:last-child td {
    border-bottom: none;
}

.ai-result-content table tr:hover td {
    background: rgba(255,255,255,0.03);
}

/* ------- BLOCKQUOTES ------- */
.ai-result-content blockquote {
    border-left: 4px solid #6610f2;
    padding: 12px 16px;
    margin: 14px 0;
    background: rgba(102,16,242,0.06);
    border-radius: 0 8px 8px 0;
    color: #c8c8e0;
    font-style: italic;
}

/* ------- CODE ------- */
.ai-result-content code {
    background: rgba(255,255,255,0.1);
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.85em;
    color: #e8e8ff;
    font-family: 'Consolas', 'Monaco', monospace;
}

.ai-result-content pre {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 14px 16px;
    overflow-x: auto;
    margin: 12px 0;
}

.ai-result-content pre code {
    background: none;
    padding: 0;
    border-radius: 0;
}

/* Modal specific overrides for AI content */
.modal-body .ai-result-content {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 8px;
}

.chat-input-area {
    padding: 12px 20px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.chat-input-wrapper {
    flex: 1;
    position: relative;
}

.chat-input-area textarea {
    width: 100%;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px 16px;
    padding-bottom: 28px;
    font-size: 0.88rem;
    background: var(--glass-bg);
    color: var(--bs-body-color);
    transition: var(--transition-smooth);
    resize: none;
    min-height: 48px;
    max-height: 200px;
    font-family: inherit;
    line-height: 1.5;
}

.chat-input-area textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(13,110,253,0.15);
}

.chat-input-area textarea:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chat-input-hint {
    position: absolute;
    bottom: 6px;
    left: 16px;
    font-size: 0.65rem;
    color: rgba(255,255,255,0.2);
    pointer-events: none;
}

.chat-input-hint kbd {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 3px;
    padding: 0 4px;
    font-size: 0.6rem;
    font-family: inherit;
}

.chat-input-area .btn-send {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--brand-gradient);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.chat-input-area .btn-send:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(13,110,253,0.4);
}

.chat-input-area .btn-send:disabled {
    opacity: 0.5;
    transform: none;
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 8px 0;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--bs-secondary-color);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-8px); opacity: 1; }
}

/* ---- Quick Actions / Suggestion Chips ---- */
.suggestion-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 20px;
    border-top: 1px solid var(--glass-border);
}

.suggestion-chip {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--bs-body-color);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.suggestion-chip:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    background: rgba(13,110,253,0.05);
}

/* ---- Tables ---- */
.table {
    font-size: 0.85rem;
    color: #fff;
}

.table thead th {
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom-width: 2px;
    color: #fff;
}

.table td,
.table th {
    color: #fff;
}

/* ---- Badges ---- */
.badge-gradient {
    background: var(--brand-gradient);
    color: #fff;
    font-weight: 600;
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 6px;
}

.badge-glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--bs-body-color);
    font-weight: 500;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 6px;
}

/* ---- Project Cards ---- */
.project-card {
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    transition: var(--transition-smooth);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    border-color: rgba(13,110,253,0.3);
    box-shadow: 0 8px 32px rgba(13,110,253,0.1);
    transform: translateY(-2px);
}

.project-card .project-type {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-primary);
    margin-bottom: 8px;
}

.project-card h5 {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 6px;
}

.project-card .project-location {
    font-size: 0.8rem;
    color: var(--bs-secondary-color);
    margin-bottom: 12px;
}

.project-card .project-desc {
    font-size: 0.83rem;
    color: var(--bs-secondary-color);
    flex: 1;
}

.project-card .project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
}

.project-card .project-tags span {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

/* ---- Operating Model ---- */
.model-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    height: 100%;
    transition: var(--transition-smooth);
}

.model-card:hover {
    border-color: rgba(13,110,253,0.3);
}

.model-card h5 {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.model-card h5 i {
    color: var(--brand-primary);
}

.model-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.model-card ul li {
    padding: 6px 0;
    font-size: 0.83rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.model-card ul li:last-child {
    border-bottom: none;
}

.model-card ul li::before {
    content: '\F231';
    font-family: 'bootstrap-icons';
    font-size: 0.6rem;
    color: var(--brand-primary);
}

/* ---- Innovation Grid ---- */
.inno-card {
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: var(--transition-smooth);
}

.inno-card:hover {
    border-color: var(--brand-primary);
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}

.inno-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    background: var(--brand-gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
}

.inno-card h6 {
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.inno-card .inno-stage {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.inno-card .inno-stage.solutions { color: #198754; }
.inno-card .inno-stage.incubation { color: #fd7e14; }

/* ---- North Star Banner ---- */
.north-star {
    background: var(--brand-gradient);
    border-radius: 16px;
    padding: 32px;
    color: #fff;
    position: relative;
    overflow: hidden;
    margin-bottom: 28px;
}

.north-star::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.north-star h2 {
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 12px;
    position: relative;
}

.north-star p {
    font-size: 0.9rem;
    opacity: 0.9;
    max-width: 700px;
    position: relative;
    margin-bottom: 0;
}

.north-star .star-icon {
    position: absolute;
    top: 24px;
    right: 32px;
    font-size: 3rem;
    opacity: 0.15;
}

/* ---- Modals ---- */
.modal-content {
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

.modal-header {
    border-bottom: 1px solid var(--glass-border);
    padding: 20px 24px;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    border-top: 1px solid var(--glass-border);
    padding: 16px 24px;
}

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.show {
        transform: translateX(0);
        box-shadow: 0 0 40px rgba(0,0,0,0.3);
    }
    .main-content {
        margin-left: 0;
    }
}

/* ---- Animations ---- */
.fade-in {
    animation: fadeIn 0.5s ease-out;
}

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

.fade-in-delay-1 { animation-delay: 0.1s; animation-fill-mode: backwards; }
.fade-in-delay-2 { animation-delay: 0.2s; animation-fill-mode: backwards; }
.fade-in-delay-3 { animation-delay: 0.3s; animation-fill-mode: backwards; }
.fade-in-delay-4 { animation-delay: 0.4s; animation-fill-mode: backwards; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--bs-secondary-color); }

/* ---- Capability Grid ---- */
.cap-card {
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 20px;
    height: 100%;
    transition: var(--transition-smooth);
}

.cap-card:hover {
    border-color: var(--brand-primary);
    box-shadow: 0 4px 20px rgba(13,110,253,0.1);
}

.cap-card h6 {
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.cap-card .cap-title {
    font-size: 0.75rem;
    color: var(--brand-primary);
    font-weight: 600;
    margin-bottom: 12px;
}

.cap-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cap-card ul li {
    font-size: 0.8rem;
    padding: 4px 0;
    color: var(--bs-secondary-color);
}

.cap-card ul li::before {
    content: '\F272';
    font-family: 'bootstrap-icons';
    margin-right: 6px;
    font-size: 0.6rem;
    color: var(--brand-primary);
}

/* ---- Empty State ---- */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 3rem;
    color: var(--bs-secondary-color);
    margin-bottom: 16px;
}

.empty-state h5 {
    font-weight: 700;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--bs-secondary-color);
    font-size: 0.88rem;
}

/* ---- Pipeline Kanban ---- */
.pipeline-kanban {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 16px;
    min-height: 400px;
}

.pipeline-column {
    min-width: 260px;
    max-width: 300px;
    flex: 1;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
}

.pipeline-column-header {
    padding: 16px;
    border-bottom: 1px solid var(--glass-border);
    text-align: center;
}

.pipeline-column-header h6 {
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.pipeline-column-header .pipeline-stats {
    font-size: 0.72rem;
    color: var(--bs-secondary-color);
}

.pipeline-column-body {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
}

.pipeline-card {
    background: var(--bs-body-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 14px;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    color: var(--bs-body-color);
    display: block;
}

.pipeline-card:hover {
    border-color: var(--brand-primary);
    box-shadow: 0 4px 16px rgba(13,110,253,0.15);
    transform: translateY(-2px);
    color: var(--bs-body-color);
}

.pipeline-card h6 {
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.pipeline-card .pipeline-customer {
    font-size: 0.75rem;
    color: var(--bs-secondary-color);
    margin-bottom: 8px;
}

.pipeline-card .pipeline-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
}

.pipeline-card .pipeline-value {
    font-weight: 700;
    color: var(--brand-primary);
}

.pipeline-card .pipeline-prob {
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.68rem;
}

.pipeline-card .pipeline-prob.high { background: rgba(25,135,84,0.15); color: #198754; }
.pipeline-card .pipeline-prob.medium { background: rgba(255,193,7,0.15); color: #ffc107; }
.pipeline-card .pipeline-prob.low { background: rgba(220,53,69,0.15); color: #dc3545; }

/* ---- Activity Timeline ---- */
.activity-timeline {
    position: relative;
    padding-left: 24px;
}

.activity-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--glass-border);
}

.activity-item {
    position: relative;
    padding: 12px 0;
    padding-left: 16px;
}

.activity-item::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 18px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--brand-primary);
    border: 2px solid var(--bs-body-bg);
}

.activity-item.note::before { background: #0d6efd; }
.activity-item.stage_change::before { background: #6610f2; }
.activity-item.action_completed::before { background: #198754; }
.activity-item.ai_generation::before { background: #fd7e14; }
.activity-item.action_created::before { background: #20c997; }
.activity-item.readiness_update::before { background: #0dcaf0; }
.activity-item.pursuit_closed::before { background: #dc3545; }

.activity-item .activity-desc {
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.activity-item .activity-meta {
    font-size: 0.72rem;
    color: var(--bs-secondary-color);
}

/* ---- Toast Notifications ---- */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast-item {
    background: var(--bs-body-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 14px 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toastIn 0.3s ease-out;
    min-width: 280px;
    font-size: 0.85rem;
}

.toast-item.success { border-left: 4px solid #198754; }
.toast-item.error { border-left: 4px solid #dc3545; }
.toast-item.info { border-left: 4px solid #0d6efd; }

@keyframes toastIn {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(40px); }
}

/* ---- Loading Overlay ---- */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    backdrop-filter: blur(4px);
}

.loading-content {
    background: var(--bs-body-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 16px 64px rgba(0,0,0,0.3);
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--glass-border);
    border-top-color: var(--brand-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

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

.loading-content p {
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
    color: var(--bs-secondary-color);
}

/* ---- AI Agent Glow Effects ---- */
@keyframes agentGlow {
    0%, 100% { box-shadow: 0 0 8px rgba(102,16,242,0.15); }
    50% { box-shadow: 0 0 20px rgba(102,16,242,0.3), 0 0 40px rgba(13,110,253,0.1); }
}

@keyframes agentGlowRed {
    0%, 100% { box-shadow: 0 0 8px rgba(220,53,69,0.12); }
    50% { box-shadow: 0 0 20px rgba(220,53,69,0.25), 0 0 40px rgba(240,147,251,0.08); }
}

.agent-hero-card {
    animation: agentGlow 3s ease-in-out infinite;
    transition: transform 0.2s, box-shadow 0.2s;
}

/* ---- ChatGPT-style Streaming UX (Enhanced) ---- */

/* Message slide-in animation */
@keyframes msgSlideIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.msg-animate-in {
    animation: msgSlideIn 0.3s ease-out;
}

/* Role label above messages (like ChatGPT) */
.msg-content-wrap {
    flex: 1;
    min-width: 0;
}
.msg-role-label {
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--bs-secondary-color);
    letter-spacing: 0.02em;
}
.chat-message.user .msg-role-label {
    text-align: right;
}

/* Thinking indicator with shimmer — ChatGPT style */
.thinking-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
}
.thinking-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: var(--brand-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.7rem;
    animation: thinkPulse 2s ease-in-out infinite;
}
.thinking-text {
    display: flex;
    align-items: baseline;
    gap: 0;
    font-size: 0.88rem;
    font-weight: 500;
}
.shimmer-text {
    background: linear-gradient(90deg, #aaa 0%, #fff 50%, #aaa 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 2s ease-in-out infinite;
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.thinking-ellipsis {
    display: inline-flex;
    gap: 0;
}
.thinking-ellipsis span {
    animation: dotPulse 1.4s ease-in-out infinite;
    font-weight: 700;
}
.thinking-ellipsis span:nth-child(2) { animation-delay: 0.2s; }
.thinking-ellipsis span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotPulse {
    0%, 80%, 100% { opacity: 0.2; }
    40% { opacity: 1; }
}
@keyframes thinkPulse {
    0%, 100% { opacity: 0.6; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1.05); }
}

/* Streaming cursor — blinking caret */
.stream-cursor-line {
    display: inline;
}
.stream-cursor {
    display: inline-block;
    width: 2.5px;
    height: 1.1em;
    background: var(--brand-primary);
    margin-left: 2px;
    vertical-align: text-bottom;
    border-radius: 1px;
    animation: cursorBlink 0.8s step-end infinite;
}
@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Stream content — full markdown styling */
.stream-content {
    line-height: 1.7;
}
.stream-content h1, .stream-content h2, .stream-content h3,
.stream-content h4, .stream-content h5 {
    margin-top: 16px;
    margin-bottom: 8px;
    font-weight: 700;
}
.stream-content h1 { font-size: 1.2rem; }
.stream-content h2 { font-size: 1.1rem; }
.stream-content h3 { font-size: 1.0rem; color: #0d6efd; }
.stream-content h4 { font-size: 0.95rem; color: #6610f2; }
.stream-content ul, .stream-content ol {
    margin: 6px 0;
    padding-left: 20px;
}
.stream-content li { margin: 3px 0; }
.stream-content table {
    width: 100%;
    margin: 10px 0;
    font-size: 0.85rem;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
}
.stream-content table th,
.stream-content table td {
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,0.1);
    text-align: left;
}
.stream-content table th {
    background: rgba(102,16,242,0.12);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.stream-content table tr:nth-child(even) {
    background: rgba(255,255,255,0.02);
}
.stream-content table tr:hover td {
    background: rgba(255,255,255,0.04);
}
.stream-content hr {
    margin: 14px 0;
    opacity: 0.15;
}
.stream-content p {
    margin: 6px 0;
}
.stream-content strong {
    color: inherit;
    font-weight: 700;
}
.stream-content code {
    background: rgba(102,16,242,0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85em;
    font-family: 'Consolas', 'Monaco', monospace;
}
.stream-content pre {
    background: rgba(0,0,0,0.35);
    padding: 14px 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 10px 0;
    border: 1px solid rgba(255,255,255,0.08);
}
.stream-content pre code {
    background: none;
    padding: 0;
    border-radius: 0;
}
.stream-content blockquote {
    border-left: 3px solid #6610f2;
    padding-left: 14px;
    margin: 10px 0;
    color: rgba(255,255,255,0.7);
    font-style: italic;
}

/* Code block wrapper with copy button */
.code-block-wrapper {
    position: relative;
    margin: 10px 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
}
.code-block-wrapper pre {
    margin: 0;
    border: none;
    border-radius: 0;
}
.code-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 12px;
    background: rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 0.72rem;
}
.code-lang {
    color: var(--bs-secondary-color);
    font-weight: 600;
    text-transform: uppercase;
}
.code-copy-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.6);
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 0.72rem;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 4px;
}
.code-copy-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: rgba(255,255,255,0.3);
}

/* Stop generating button — centered below chat like ChatGPT */
.stream-stop-wrapper {
    display: flex;
    justify-content: center;
    padding: 8px 0;
}
.stream-stop-btn {
    font-size: 0.82rem;
    padding: 6px 20px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.15);
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}
.stream-stop-btn:hover {
    background: #dc3545;
    color: #fff;
    border-color: #dc3545;
    box-shadow: 0 2px 12px rgba(220,53,69,0.3);
}

/* ChatGPT-style action bar below messages */
.msg-actions {
    display: flex;
    gap: 2px;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid rgba(255,255,255,0.06);
    opacity: 0;
    transition: opacity 0.2s;
    align-items: center;
}
.chat-message:hover .msg-actions {
    opacity: 1;
}
.msg-action-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.15s;
}
.msg-action-btn:hover {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.9);
}
.msg-action-btn.feedback-active {
    color: var(--brand-primary);
}
.msg-elapsed {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.25);
    margin-left: auto;
    font-weight: 500;
}

/* Scroll-to-bottom floating button */
.scroll-to-bottom-fab {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
    transition: all 0.2s;
    z-index: 10;
    opacity: 0;
}
.scroll-to-bottom-fab.visible,
.chat-container .scroll-to-bottom-fab {
    transform: translateX(-50%) scale(1);
    opacity: 1;
}
.scroll-to-bottom-fab:hover {
    background: var(--brand-primary);
    color: #fff;
    border-color: var(--brand-primary);
}

.agent-hero-card:hover {
    transform: translateY(-3px) !important;
    animation: none;
    box-shadow: 0 12px 35px rgba(102,16,242,0.3) !important;
}

.agent-hero-card-red {
    animation: agentGlowRed 3s ease-in-out infinite;
    animation-delay: 1.5s;
    transition: transform 0.2s, box-shadow 0.2s;
}

.agent-hero-card-red:hover {
    transform: translateY(-3px) !important;
    animation: none;
    box-shadow: 0 12px 35px rgba(220,53,69,0.25) !important;
}

/* AI activity bar */
.ai-activity-bar {
    background: linear-gradient(135deg, rgba(102,16,242,0.06), rgba(13,110,253,0.04));
    border: 1px solid rgba(102,16,242,0.15);
    border-radius: 12px;
    padding: 10px 20px;
}

.ai-activity-metric {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
}

.ai-activity-metric .metric-value {
    font-weight: 800;
    font-size: 1rem;
    color: #fff;
}

.ai-activity-metric .metric-label {
    color: var(--bs-secondary-color);
    font-size: 0.68rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.03em;
}

/* ---- AI Quick Actions Bar ---- */
.ai-actions-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.ai-actions-bar .btn {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ---- Progress Bar (Readiness) ---- */
.readiness-progress {
    height: 8px;
    border-radius: 4px;
    background: var(--glass-border);
    overflow: hidden;
    margin-bottom: 12px;
}

.readiness-progress-bar {
    height: 100%;
    border-radius: 4px;
    background: var(--brand-gradient);
    transition: width 0.5s ease;
}

.readiness-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.readiness-item:last-child {
    border-bottom: none;
}

.readiness-item:hover {
    background: var(--glass-bg);
    padding-left: 8px;
    padding-right: 8px;
    border-radius: 8px;
}

.readiness-item .form-check-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.readiness-item.completed {
    text-decoration: line-through;
    color: var(--bs-secondary-color);
}

/* ---- KPI Cards (Dashboard) ---- */
.kpi-card {
    position: relative;
    overflow: hidden;
    border: none;
    border-radius: 14px;
}

.kpi-card .kpi-value {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

.kpi-card .kpi-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--bs-secondary-color);
    margin-top: 4px;
}

/* ---- Alert Banner ---- */
.alert-banner {
    border-radius: 12px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.alert-banner.alert-danger {
    background: rgba(220,53,69,0.1);
    border: 1px solid rgba(220,53,69,0.3);
    color: #dc3545;
}

/* ---- Pipeline Stage Bar (Dashboard) ---- */
.stage-bar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.85rem;
}

.stage-bar-item:last-child {
    border-bottom: none;
}

.stage-bar-label {
    min-width: 80px;
    font-weight: 600;
    font-size: 0.8rem;
}

.stage-bar-track {
    flex: 1;
    height: 24px;
    background: var(--glass-bg);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.stage-bar-fill {
    height: 100%;
    border-radius: 6px;
    background: var(--brand-gradient);
    transition: width 0.6s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    min-width: fit-content;
}

.stage-bar-count {
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 60px;
    text-align: right;
}

/* ---- Overdue Badge ---- */
.nav-badge-overdue {
    background: #dc3545;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: auto;
    min-width: 18px;
    text-align: center;
}

/* ---- KPI Why Button (Phase 3) ---- */
.kpi-why-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 5;
    padding: 0;
}
.kpi-why-btn:hover {
    background: rgba(102,16,242,0.15);
    color: #6610f2;
    border-color: rgba(102,16,242,0.3);
    transform: scale(1.1);
}

/* ---- Proof Point Links (Phase 5) ---- */
.proof-point-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(25,135,84,0.12);
    border: 1px solid rgba(25,135,84,0.25);
    color: #198754 !important;
    text-decoration: none !important;
    transition: all 0.2s;
    white-space: nowrap;
}
.proof-point-link:hover {
    background: rgba(25,135,84,0.2);
    border-color: rgba(25,135,84,0.4);
    transform: translateY(-1px);
}
.proof-point-link i {
    font-size: 0.7rem;
}
.proof-point-unverified {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 500;
    background: rgba(108,117,125,0.1);
    border: 1px solid rgba(108,117,125,0.2);
    color: var(--bs-secondary-color);
}

/* ---- KPI Modal Styles ---- */
#kpiExplainModal .nav-tabs {
    border-bottom-color: var(--glass-border);
}
#kpiExplainModal .nav-tabs .nav-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--bs-secondary-color);
    border: none;
    padding: 8px 16px;
}
#kpiExplainModal .nav-tabs .nav-link.active {
    color: #6610f2;
    border-bottom: 2px solid #6610f2;
    background: transparent;
}
