:root {
	--bg: #f3efe7;
	--panel: rgba(255, 252, 247, 0.84);
	--panel-strong: #fffaf1;
	--ink: #1f2933;
	--muted: #5d6b75;
	--line: rgba(31, 41, 51, 0.12);
	--accent: #0f766e;
	--accent-soft: rgba(15, 118, 110, 0.14);
	--accent-2: #d97706;
	--accent-3: #334155;
	--danger: #b91c1c;
	--shadow: 0 22px 45px rgba(35, 44, 54, 0.12);
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: "IBM Plex Sans", sans-serif;
	color: var(--ink);
	background:
		radial-gradient(circle at top left, rgba(15, 118, 110, 0.16), transparent 32%),
		radial-gradient(circle at top right, rgba(217, 119, 6, 0.18), transparent 28%),
		linear-gradient(180deg, #f7f1e7 0%, #efe7da 48%, #ede9df 100%);
	min-height: 100vh;
}

.page-shell {
	max-width: 1500px;
	margin: 0 auto;
	padding: 32px 24px 48px;
}

.hero {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	align-items: flex-start;
	margin-bottom: 24px;
	padding: 28px 30px;
	border: 1px solid rgba(255, 255, 255, 0.45);
	background: linear-gradient(145deg, rgba(255, 250, 241, 0.9), rgba(255, 247, 237, 0.72));
	backdrop-filter: blur(18px);
	border-radius: 28px;
	box-shadow: var(--shadow);
	animation: rise 520ms ease-out;
}

.eyebrow {
	margin: 0 0 10px;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--accent);
}

.hero h1,
.panel h2 {
	font-family: "Space Grotesk", sans-serif;
	margin: 0;
	letter-spacing: -0.04em;
}

.hero h1 {
	font-size: clamp(2rem, 5vw, 3.8rem);
	max-width: 760px;
	line-height: 0.96;
}

.subtitle {
	margin: 14px 0 0;
	max-width: 760px;
	color: var(--muted);
	font-size: 1rem;
	line-height: 1.6;
}

.hero-meta {
	display: grid;
	grid-template-columns: repeat(2, minmax(140px, 1fr));
	gap: 12px;
	min-width: min(360px, 100%);
}

.meta-card,
.stat-card,
.detail-card,
.narrative-card {
	border-radius: 20px;
	padding: 16px 18px;
	background: var(--panel-strong);
	border: 1px solid rgba(15, 23, 42, 0.07);
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.meta-card .meta-value,
.stat-card .stat-value {
	display: block;
	font-family: "Space Grotesk", sans-serif;
	font-size: 1.4rem;
	font-weight: 700;
	margin-top: 8px;
}

.meta-card .meta-label,
.stat-card .stat-label,
.mini-label {
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--muted);
}

.controls-panel,
.panel {
	background: var(--panel);
	backdrop-filter: blur(18px);
	border: 1px solid rgba(255, 255, 255, 0.42);
	box-shadow: var(--shadow);
}

.app-status {
	display: none;
	margin-bottom: 20px;
	padding: 14px 16px;
	border-radius: 18px;
	background: rgba(255, 250, 241, 0.88);
	border: 1px solid rgba(15, 23, 42, 0.08);
	color: var(--muted);
	line-height: 1.5;
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.app-status--visible {
	display: block;
}

.app-status--error {
	background: rgba(185, 28, 28, 0.1);
	border-color: rgba(185, 28, 28, 0.22);
	color: #7f1d1d;
}

.controls-panel {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 16px;
	padding: 18px;
	border-radius: 24px;
	margin-bottom: 20px;
	animation: rise 620ms ease-out;
}

.control-group {
	display: flex;
	flex-direction: column;
	gap: 10px;
	grid-column: span 2;
}

.control-group--wide {
	grid-column: span 4;
}

.control-group--reset {
	grid-column: span 2;
	justify-content: flex-end;
}

label {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--muted);
}

select {
	appearance: none;
	border: 1px solid rgba(15, 23, 42, 0.1);
	border-radius: 14px;
	padding: 12px 14px;
	background: rgba(255, 255, 255, 0.9);
	font: inherit;
	color: var(--ink);
}

.inline-note {
	min-height: 48px;
	padding: 12px 14px;
	border-radius: 14px;
	background: var(--accent-soft);
	color: var(--ink);
	line-height: 1.45;
	font-size: 0.92rem;
}

.story-button {
	border: 0;
	border-radius: 14px;
	padding: 12px 14px;
	font: inherit;
	font-weight: 600;
	color: white;
	background: linear-gradient(135deg, #0f766e, #115e59);
	box-shadow: 0 10px 24px rgba(15, 118, 110, 0.22);
	cursor: pointer;
	transition: transform 120ms ease-out, box-shadow 120ms ease-out, opacity 120ms ease-out;
}

.story-button:hover {
	transform: translateY(-1px);
	box-shadow: 0 12px 28px rgba(15, 118, 110, 0.26);
}

.story-button:active {
	transform: translateY(0);
}

.control-group--reset .story-button {
	width: 100%;
	min-height: 48px;
}

.stat-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin-bottom: 20px;
	animation: rise 700ms ease-out;
}

.dashboard-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	animation: rise 780ms ease-out;
}

.panel {
	padding: 20px;
	border-radius: 24px;
	min-height: 320px;
}

.panel--wide {
	grid-column: span 2;
	min-height: 360px;
}

.panel-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 16px;
}

.panel-header p {
	margin: 8px 0 0;
	color: var(--muted);
	line-height: 1.5;
	max-width: 64ch;
}

.chart {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.chart-stage {
	width: 100%;
	height: 350px;
	position: relative;
	flex: 0 0 auto;
}

.chart--bars .chart-stage,
.chart--scatter .chart-stage {
	height: 390px;
}

.chart-copy {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid rgba(31, 41, 51, 0.08);
	font-size: 0.86rem;
	line-height: 1.55;
	color: var(--muted);
}

.detail-panel {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.detail-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.detail-card h3,
.narrative-card h4 {
	font-family: "Space Grotesk", sans-serif;
	margin: 0 0 8px;
	font-size: 1rem;
}

.detail-card p,
.narrative-card p,
.empty-state {
	margin: 0;
	color: var(--muted);
	line-height: 1.6;
}

.narrative-stack {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.narrative-meta {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	font-size: 0.82rem;
	color: var(--muted);
	margin-bottom: 8px;
}

.tooltip {
	position: absolute;
	pointer-events: none;
	padding: 10px 12px;
	border-radius: 14px;
	background: rgba(17, 24, 39, 0.92);
	color: white;
	font-size: 0.84rem;
	line-height: 1.45;
	box-shadow: 0 12px 30px rgba(15, 23, 42, 0.22);
	transform: translate(-50%, -120%);
	opacity: 0;
	transition: opacity 120ms ease-out;
	max-width: 280px;
	z-index: 10;
}

.axis text,
.axis path,
.axis line {
	color: var(--muted);
	stroke: rgba(31, 41, 51, 0.12);
	font-family: "IBM Plex Sans", sans-serif;
}

.grid line {
	stroke: rgba(31, 41, 51, 0.08);
}

.legend {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 10px;
	font-size: 0.84rem;
	color: var(--muted);
}

.legend-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 10px;
	border-radius: 999px;
	border: 1px solid rgba(15, 23, 42, 0.08);
	background: rgba(255, 255, 255, 0.66);
	color: var(--ink);
	font: inherit;
	cursor: pointer;
	transition: transform 120ms ease-out, opacity 120ms ease-out, background 120ms ease-out, border-color 120ms ease-out;
}

.legend-item:hover {
	transform: translateY(-1px);
}

.legend-item--active {
	background: rgba(255, 255, 255, 0.94);
	border-color: rgba(15, 118, 110, 0.28);
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.legend-item--inactive {
	opacity: 0.48;
}

.legend-item--locked {
	cursor: default;
}

.legend-swatch {
	width: 10px;
	height: 10px;
	border-radius: 50%;
}

.annotation {
	margin-top: 10px;
	font-size: 0.82rem;
	color: var(--muted);
}

.axis-label {
	fill: var(--muted);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

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

@media (max-width: 1120px) {
	.controls-panel,
	.stat-grid,
	.dashboard-grid,
	.detail-grid,
	.hero {
		grid-template-columns: 1fr;
		flex-direction: column;
	}

	.panel--wide {
		grid-column: span 1;
	}

	.hero-meta {
		min-width: 0;
		width: 100%;
	}

	.control-group,
	.control-group--wide,
	.control-group--reset {
		grid-column: span 1;
	}
}

@media (max-width: 720px) {
	.page-shell {
		padding: 18px 14px 28px;
	}

	.hero,
	.controls-panel,
	.panel {
		padding: 18px;
		border-radius: 20px;
	}

	.chart-stage,
	.chart--bars .chart-stage,
	.chart--scatter .chart-stage {
		height: 300px;
	}
}

/* Add to dashboard/styles.css */

.summary-box {
    background: #ecf9ff;
    border-left: 4px solid #3498db;
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.summary-box h3 {
    margin: 0 0 10px 0;
    color: #2980b9;
}

.summary-box p {
    margin: 8px 0;
    color: #2c3e50;
    line-height: 1.6;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.metric-card {
    border: 1px solid #ecf0f1;
    border-radius: 6px;
    padding: 20px;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
}

.metric-card h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chart {
    width: 100%;
    height: 220px;
    min-height: 180px;
}

.metric-description {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin-top: 10px;
    line-height: 1.4;
}


.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.comparison-table th {
    background: #34495e;
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comparison-table td {
    padding: 12px;
    border-bottom: 1px solid #ecf0f1;
}

.comparison-table tr:hover {
    background: #f8f9fa;
}

.comparison-table tr:nth-child(even) {
    background: #f9f9f9;
}

.lda-row {
    background: #e8f4ff;
}

.bertopic-row {
    background: #ffe8f4;
}

.fraud-topics-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.fraud-section {
    border: 1px solid #ecf0f1;
    border-radius: 6px;
    padding: 20px;
    background: #f8f9fa;
}

.fraud-section h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.fraud-topic-item {
    background: white;
    padding: 12px;
    margin-bottom: 10px;
    border-left: 3px solid #3498db;
    border-radius: 3px;
}

.fraud-topic-item strong {
    color: #2c3e50;
    display: block;
    margin-bottom: 5px;
}

.fraud-topic-item .words {
    font-size: 12px;
    color: #666;
    font-family: monospace;
}

.fraud-topic-item .count {
    font-size: 11px;
    color: #999;
    margin-top: 5px;
    font-weight: 500;
}

.insights {
    background: #ecf9ff;
    border-left: 4px solid #3498db;
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
}

.insights h4 {
    margin: 0 0 10px 0;
    color: #2980b9;
    font-size: 13px;
    text-transform: uppercase;
}

.insights p {
    margin: 8px 0;
    color: #2c3e50;
    line-height: 1.6;
    font-size: 14px;
}

.error-message {
    background: #ffe8e8;
    border-left: 4px solid #e74c3c;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
    color: #c0392b;
}

.lda-color {
    fill: #2E86AB;
}

.bertopic-color {
    fill: #A23B72;
}

@media (max-width: 1100px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .fraud-topics-container {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   METHOD COMPARISON TAB STYLING
   ============================================ */

/* Main comparison container - match BERTopic tab styling */
.comparison-container {
    padding: 20px;
    background: var(--panel);
    border-radius: 24px;
    margin: 20px 0;
}

/* Comparison tab content headings */
#method-comparison h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 14px;
    color: #2c3e50;
    margin: 30px 0 20px 0;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    letter-spacing: -0.02em;
    font-weight: 600;
}

#method-comparison h2:first-of-type {
    margin-top: 0;
}

/* Summary box styling */
.summary-box {
    background: linear-gradient(135deg, #ecf9ff 0%, #f0fbff 100%);
    border-left: 4px solid #3498db;
    padding: 20px;
    margin: 0 0 30px 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.1);
}

.summary-box h3 {
    margin: 0 0 12px 0;
    color: #2980b9;
    font-size: 16px;
    font-weight: 600;
    font-family: "IBM Plex Sans", sans-serif;
}

.summary-box p {
    margin: 8px 0;
    color: #2c3e50;
    line-height: 1.6;
    font-size: 14px;
}

/* Metrics Grid - 3 columns */
.metrics-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    margin: 30px 0 !important;
    width: 100% !important;
}

/* Metric cards */
.metric-card {
    border: 1px solid #ecf0f1;
    border-radius: 8px;
    padding: 20px;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.metric-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #3498db;
}

.metric-card h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: "IBM Plex Sans", sans-serif;
}

/* Metric chart container */
.comparison-metric-chart {
    width: 100%;
    height: 280px;
    display: block;
    margin: 0 auto;
    flex-grow: 1;
}

.comparison-metric-chart svg {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.metric-description {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin-top: 12px;
    line-height: 1.5;
    font-family: "IBM Plex Sans", sans-serif;
}

.metric-description strong {
    color: #2c3e50;
    font-weight: 600;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

.comparison-table th {
    background: #34495e;
    color: white;
    padding: 14px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: "IBM Plex Sans", sans-serif;
}

.comparison-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #ecf0f1;
    font-size: 14px;
}

.comparison-table tr:hover {
    background: #f0f7ff;
}

.comparison-table tr:nth-child(even) {
    background: #f9f9f9;
}

.lda-row {
    background: #e8f4ff;
}

.lda-row:hover {
    background: #dceef8;
}

.bertopic-row {
    background: #ffe8f4;
}

.bertopic-row:hover {
    background: #ffd9ed;
}

.comparison-table code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: "Courier New", monospace;
    font-size: 12px;
    color: #c7254e;
}

/* Fraud Topics Container */
.fraud-topics-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.fraud-section {
    border: 1px solid #ecf0f1;
    border-radius: 8px;
    padding: 20px;
    background: #f8f9fa;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.fraud-section h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    font-size: 15px;
    font-weight: 600;
    font-family: "IBM Plex Sans", sans-serif;
}

.fraud-topic-item {
    background: white;
    padding: 12px;
    margin-bottom: 10px;
    border-left: 3px solid #3498db;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.fraud-topic-item:hover {
    box-shadow: 0 2px 8px rgba(52, 73, 94, 0.1);
    border-left-color: #2980b9;
    background: #f9fafb;
}

.fraud-topic-item strong {
    color: #2c3e50;
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 600;
}

.fraud-topic-item .words {
    font-size: 14px;
    color: #555;
    font-family: "Courier New", monospace;
    line-height: 1.4;
}

.fraud-topic-item .count {
    font-size: 13px;
    color: #999;
    margin-top: 5px;
    font-weight: 500;
}

/* Insights boxes */
.insights {
    background: #ecf9ff;
    border-left: 4px solid #3498db;
    padding: 16px;
    margin: 15px 0;
    border-radius: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(52, 152, 219, 0.1);
}

.insights:hover {
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.15);
}

.insights h4 {
    margin: 0 0 10px 0;
    color: #2980b9;
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-family: "IBM Plex Sans", sans-serif;
}

.insights p {
    margin: 8px 0;
    color: #2c3e50;
    line-height: 1.6;
    font-size: 14px;
}

.insights p:last-child {
    margin-bottom: 0;
}

/* Error message */
.error-message {
    background: #ffe8e8;
    border-left: 4px solid #e74c3c;
    padding: 15px;
    margin: 20px 0;
    border-radius: 6px;
    color: #c0392b;
    font-size: 14px;
}

.error-message small {
    display: block;
    margin-top: 8px;
    opacity: 0.9;
}

.error-message code {
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 4px;
    border-radius: 2px;
    font-family: monospace;
}

/* Loading state */
#loading {
    text-align: center;
    padding: 40px 20px;
    color: #2c3e50;
    font-size: 16px;
    background: var(--panel);
    border-radius: 24px;
    margin: 20px 0;
}

/* Colors */
.lda-color {
    fill: #2E86AB;
    stroke: #2E86AB;
}

.bertopic-color {
    fill: #A23B72;
    stroke: #A23B72;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .metrics-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 1024px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    #method-comparison h2 {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .metrics-grid {
        grid-template-columns: 1fr !important;
    }

    .fraud-topics-container {
        grid-template-columns: 1fr;
    }

    .comparison-container {
        padding: 15px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 10px;
        font-size: 12px;
    }

    .metric-card {
        padding: 15px;
    }

    .fraud-section {
        padding: 15px;
    }

    #method-comparison h2 {
        font-size: 1.15rem;
        margin: 25px 0 15px 0;
    }

    .comparison-metric-chart {
        height: 220px;
    }
}

/* ============================================
   MODEL VALIDATION TAB STYLING
   ============================================ */

#model-validation h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.5rem;
    color: #2c3e50;
    margin: 30px 0 20px 0;
    border-bottom: 2px solid #27AE60;
    padding-bottom: 10px;
    letter-spacing: -0.02em;
    font-weight: 600;
}

#validation-summary {
    background: linear-gradient(135deg, #e8f8f5 0%, #f0fef8 100%);
    border-left: 4px solid #27AE60;
    padding: 20px;
    margin: 0 0 30px 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(39, 174, 96, 0.1);
}

#validation-summary h3 {
    margin: 0 0 12px 0;
    color: #1E8449;
    font-size: 16px;
    font-weight: 600;
}

#validation-summary p {
    margin: 8px 0;
    color: #2c3e50;
    line-height: 1.6;
    font-size: 14px;
}

/* Correspondence Table */
.validation-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

.validation-table th {
    background: #27AE60;
    color: white;
    padding: 14px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.validation-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #ecf0f1;
    font-size: 14px;
}

.validation-table tr:hover {
    background: #f0fff0;
}

.correspondence-strong {
    background: #e8f8f5;
    border-left: 3px solid #27AE60;
}

.correspondence-strong:hover {
    background: #d5f4e6;
}

.correspondence-moderate {
    background: #fff8e8;
    border-left: 3px solid #F39C12;
}

.correspondence-moderate:hover {
    background: #ffe8c1;
}

.correspondence-weak {
    background: #ffe8e8;
    border-left: 3px solid #E74C3C;
}

.correspondence-weak:hover {
    background: #ffd9d9;
}

.agreement-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.agreement-badge.strong {
    background: #27AE60;
    color: white;
}

.agreement-badge.moderate {
    background: #F39C12;
    color: white;
}

.agreement-badge.weak {
    background: #E74C3C;
    color: white;
}

/* Fraud Validation Container */
.fraud-validation-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.fraud-validation-card {
    border: 1px solid #ecf0f1;
    border-radius: 8px;
    padding: 20px;
    background: #f8faf9;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.fraud-validation-card h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    border-bottom: 2px solid #27AE60;
    padding-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
}

.fraud-validation-item {
    background: white;
    padding: 12px;
    margin-bottom: 10px;
    border-left: 3px solid #27AE60;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.fraud-validation-item:hover {
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.15);
    background: #f9fef8;
}

.fraud-validation-item strong {
    color: #2c3e50;
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    font-weight: 600;
}

.fraud-validation-item .words {
    font-size: 11px;
    color: #555;
    font-family: "Courier New", monospace;
    line-height: 1.3;
}

.fraud-validation-item .count {
    font-size: 10px;
    color: #999;
    margin-top: 5px;
    font-weight: 500;
}

#fraud-agreement-stats {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
}

#fraud-agreement-stats .stat-item {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 6px;
    border: 1px solid #ecf0f1;
}

#fraud-agreement-stats .stat-label {
    font-size: 11px;
    color: #999;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Responsive Fraud Validation */
@media (max-width: 1024px) {
    .fraud-validation-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .fraud-validation-container {
        grid-template-columns: 1fr;
    }
}