:root {
    --cred-bg: #FFFFFF;
    --cred-text-main: #0F172A;
    --cred-text-secondary: #475569;
    --cred-border: #E2E8F0;
    --cred-shadow-glass: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.ai-credibility-block-section {
    padding: 120px 0;
    background-color: var(--cred-bg);
}

.credibility-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 70px;
    align-items: center;
}

.credibility-content-left {
    padding-right: 20px;
}

.content-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 24px;
    color: var(--cred-text-main);
    letter-spacing: -1px;
}

.text-primary-dark {
    color: var(--cred-primary);
    background: linear-gradient(135deg, #111827 0%, var(--cred-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.content-subtitle {
    font-size: 1.15rem;
    color: var(--cred-text-secondary);
    margin-bottom: 35px;
    line-height: 1.6;
}

.btn-primary-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--cred-primary);
    color: #fff;
    font-weight: 700;
    padding: 16px 36px;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 10px 20px -10px var(--cred-primary);
    transition: all 0.2s ease;
}

.btn-primary-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -10px rgba(17, 24, 39, 0.5);
    color: #fff;
    background: #111827;
}

.metrics-grid {
    display: flex;
    gap: 50px;
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--cred-border);
}

.metric-value {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--cred-text-main);
    display: block;
    margin-bottom: 5px;
}

.metric-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--cred-text-secondary);
}

.credibility-chat-mockup {
    position: relative;
    padding: 20px;
}

.chat-window-glass {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 20px;
    box-shadow: var(--cred-shadow-glass);
    height: 580px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-window-tabs {
    display: flex;
    align-items: center;
    background: #F8FAFC;
    padding: 12px 20px 0 20px;
    border-bottom: 1px solid var(--cred-border);
    flex-shrink: 0;
}

.chat-tab {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--cred-text-secondary);
    border-bottom: 3px solid transparent;
    cursor: pointer;
    margin-right: 10px;
    background: #fff;
    border-radius: 10px 10px 0 0;
    border: 1px solid transparent;
    border-bottom: none;
}

.chat-tab i { margin-right: 10px; color: var(--cred-text-secondary); }

.chat-tab.active {
    color: var(--cred-primary);
    border-color: var(--cred-border);
    border-bottom: 3px solid var(--cred-primary);
    position: relative;
    z-index: 2;
    margin-bottom: -1px;
}
.chat-tab.active i { color: var(--cred-primary); }
.chat-tab .close-icon { margin-left: 12px; font-size: 0.75rem; 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: 30px;
    overflow-y: auto;
    background: #FFFFFF;
}

.chat-message-group {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: flex-start;
}

.avatar-sm {
    width: 36px; height: 36px;
    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: 1.1rem;
    border-radius: 10px;
}

.chat-bubble {
    padding: 16px 20px;
    max-width: 85%;
    font-size: 0.95rem;
    line-height: 1.6;
}

.user-bubble {
    background: var(--cred-primary-light);
    color: #0F172A;
    border-radius: 16px 16px 16px 0;
    font-weight: 500;
}

.ai-bubble {
    background: #fff;
    color: var(--cred-text-main);
    border-radius: 0 16px 16px 16px;
    border: 1px solid var(--cred-border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.ai-status-and-tag {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.ai-status-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--cred-primary);
    margin-right: 10px;
    background: var(--cred-primary-light);
    padding: 4px 10px;
    border-radius: 6px;
}

.ai-thinking-dots span {
    display: inline-block;
    width: 5px; height: 5px;
    background: var(--cred-primary);
    border-radius: 50%;
    margin-right: 3px;
    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-text-main); font-weight: 800; }
#ai-typing-output p { margin-bottom: 10px; }
#ai-typing-output p:last-child { margin-bottom: 0; }

.cursor-blink {
    display: inline-block;
    color: var(--cred-primary);
    animation: blink 1s infinite;
    font-weight: 300;
}

@media (max-width: 992px) {
    .credibility-layout-grid { grid-template-columns: 1fr; gap: 50px; }
    .credibility-content-left { padding-right: 0; text-align: center; }
    .content-title { font-size: 2.8rem; }
    .metrics-grid { justify-content: center; gap: 30px; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(-4px); opacity: 0.5; }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}