:root {
    --cred-bg: #F8FAFC;
    --cred-text-main: #0F172A;
    --cred-text-secondary: #475569;
    --cred-primary: #ea580c;
    --cred-primary-light: #ffedd5;
    --cred-border: #E5E7EB;
    --cred-shadow-glass: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.ai-credibility-block-section {
    padding: 100px 0;
    background-color: var(--cred-bg);
}

.credibility-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

/* --- Left Side: Content & Metrics --- */
.credibility-content-left {
    padding-right: 40px;
}

.content-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--cred-text-main);
}

.text-primary-dark {
    color: var(--cred-primary);
}

.content-subtitle {
    font-size: 1.1rem;
    color: var(--cred-text-secondary);
    margin-bottom: 30px;
}

.btn-primary-pill {
    display: inline-block;
    background: linear-gradient(90deg, #fb923c 0%, var(--cred-primary) 100%);
    color: #fff;
    font-weight: 700;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(234, 88, 12, 0.3);
    transition: all 0.3s ease;
}

.btn-primary-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(234, 88, 12, 0.4);
    color: #fff;
}

/* Metrics */
.metrics-grid {
    display: flex;
    gap: 40px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--cred-border);
}

.metric-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--cred-text-main);
    display: block;
}

.metric-label {
    font-size: 0.9rem;
    color: var(--cred-text-secondary);
}

/* --- Right Side: Chat Mockup --- */
.credibility-chat-mockup {
    position: relative;
    padding: 20px;
}

.chat-window-glass {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    box-shadow: var(--cred-shadow-glass);
    height: 550px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-window-tabs {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 10px 15px 0 15px;
    border-bottom: 1px solid var(--cred-border);
    flex-shrink: 0;
}

.chat-tab {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--cred-text-secondary);
    border-bottom: 3px solid transparent;
    cursor: pointer;
    margin-right: 15px;
}
.chat-tab i { margin-right: 8px; color: var(--cred-text-secondary); }

.chat-tab.active {
    color: var(--cred-primary);
    border-bottom: 3px solid var(--cred-primary);
    margin-bottom: -1px;
}
.chat-tab.active i { color: var(--cred-primary); }

.chat-tab .close-icon { margin-left: 10px; font-size: 0.8rem; color: var(--cred-text-secondary); }

.tab-controls {
    margin-left: auto;
    color: var(--cred-text-secondary);
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    cursor: pointer;
}

.chat-window-body {
    flex-grow: 1;
    padding: 20px 25px;
    overflow-y: auto;
    background: #FDFDFD;
}

.chat-message-group {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.avatar-sm {
    width: 30px; height: 30px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}
.avatar-sm img { width: 100%; height: 100%; object-fit: cover; }

.ai-avatar {
    background: var(--cred-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    border-radius: 8px;
}

.chat-bubble {
    padding: 12px 18px;
    border-radius: 12px;
    max-width: 85%;
    font-size: 0.9rem;
    line-height: 1.5;
}

.user-bubble {
    background: var(--cred-primary-light);
    color: #9a3412; /* Darker orange for readability */
    border-radius: 12px 12px 12px 0;
}

.ai-bubble {
    background: #fff;
    color: var(--cred-text-main);
    border-radius: 0 12px 12px 12px;
    border: 1px solid var(--cred-border);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.ai-status-and-tag {
    display: inline-flex;
    align-items: center;
    margin-bottom: 10px;
}

.ai-status-tag {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--cred-primary);
    margin-right: 10px;
}

.ai-thinking-dots span {
    display: inline-block;
    width: 4px; height: 4px;
    background: var(--cred-primary);
    border-radius: 50%;
    margin-right: 2px;
    animation: bounce 1s infinite;
}
.ai-thinking-dots span:nth-child(2) { animation-delay: 0.2s; }
.ai-thinking-dots span:nth-child(3) { animation-delay: 0.4s; }

#ai-typing-output strong {
    color: var(--cred-primary);
}

.cursor-blink {
    display: inline-block;
    color: var(--cred-primary);
    animation: blink 1s infinite;
}

@media (max-width: 992px) {
    .credibility-layout-grid { grid-template-columns: 1fr; gap: 40px; }
    .credibility-content-left { padding-right: 0; text-align: center; }
    .content-title { font-size: 2.5rem; }
    .metrics-grid { justify-content: center; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(-3px); opacity: 0.5; }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}