/* ========================================
   CSS Variables & Design Tokens — Pastel Orange Theme
   ======================================== */
:root {
    --bg-primary: #f5e6d5;
    --bg-secondary: #f0dcc8;
    --bg-card: rgba(250, 238, 224, 0.92);
    --bg-card-hover: rgba(245, 230, 212, 0.98);
    --bg-sidebar: rgba(248, 235, 220, 0.97);

    --text-primary: #3d2c1e;
    --text-secondary: #7a6455;
    --text-muted: #b09a88;

    --border-color: rgba(230, 170, 120, 0.2);
    --border-glow: rgba(245, 158, 80, 0.3);

    --accent-primary: #f4945e;
    --accent-secondary: #f7b386;
    --accent-tertiary: #fcd5b8;
    --accent-warm: #e8734a;
    --accent-peach: #ffcba4;
    --accent-coral: #ff8a6b;
    --accent-sand: #f5d5b0;
    --accent-brown: #c47a4a;

    --accent-purple: #c8a2d6;
    --accent-blue: #8bbde0;
    --accent-green: #7dc9a0;
    --accent-orange: #f4945e;
    --accent-pink: #e8a0b4;
    --accent-cyan: #7dc4c9;
    --accent-red: #e88080;
    --accent-yellow: #ebc86e;
    --accent-indigo: #a0aae0;

    --gradient-primary: linear-gradient(135deg, #f4945e, #f7b386);
    --gradient-warm: linear-gradient(135deg, #f4945e, #ffcba4);
    --gradient-peach: linear-gradient(135deg, #ffcba4, #fcd5b8);
    --gradient-coral: linear-gradient(135deg, #ff8a6b, #f4945e);
    --gradient-sunset: linear-gradient(135deg, #e8734a, #f7b386);

    --sidebar-width: 260px;
    --header-height: 60px;

    --font-thai: 'IBM Plex Sans Thai', 'Segoe UI', sans-serif;
    --font-en: 'Inter', 'Segoe UI', sans-serif;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    --shadow-sm: 0 2px 8px rgba(200, 150, 100, 0.1);
    --shadow-md: 0 4px 16px rgba(200, 150, 100, 0.12);
    --shadow-lg: 0 8px 32px rgba(200, 150, 100, 0.15);
    --shadow-glow: 0 0 24px rgba(244, 148, 94, 0.12);

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ========================================
   Reset & Base
   ======================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-thai);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ========================================
   Animated Background
   ======================================== */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(244, 148, 94, 0.07) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(255, 203, 164, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(247, 179, 134, 0.05) 0%, transparent 50%),
        var(--bg-primary);
}

.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(244, 148, 94, 0.35);
    border-radius: 50%;
    animation: float-particle linear infinite;
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-10vh) scale(1);
        opacity: 0;
    }
}

/* ========================================
   Sidebar Navigation
   ======================================== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-sidebar);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform var(--transition-normal);
    box-shadow: 2px 0 20px rgba(200, 150, 100, 0.06);
}

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

.logo {
    flex-shrink: 0;
}

.sidebar-title {
    display: flex;
    flex-direction: column;
}

.title-main {
    font-family: var(--font-en);
    font-size: 18px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.title-sub {
    font-family: var(--font-en);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-links {
    list-style: none;
    padding: 16px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 0 4px 4px 0;
    transform: scaleY(0);
    transition: transform var(--transition-fast);
}

.nav-link:hover {
    background: rgba(244, 148, 94, 0.08);
    color: var(--text-primary);
}

.nav-link.active {
    background: rgba(244, 148, 94, 0.12);
    color: var(--text-primary);
}

.nav-link.active::before {
    transform: scaleY(1);
}

.nav-link svg {
    flex-shrink: 0;
    opacity: 0.6;
}

.nav-link.active svg,
.nav-link:hover svg {
    opacity: 1;
    color: var(--accent-primary);
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

/* ========================================
   Mobile Header
   ======================================== */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--bg-sidebar);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    align-items: center;
    padding: 0 16px;
    gap: 12px;
    z-index: 999;
}

.menu-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.menu-toggle:hover {
    background: rgba(244, 148, 94, 0.1);
}

.mobile-title {
    font-family: var(--font-en);
    font-size: 16px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   Main Content
   ======================================== */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 32px;
    min-height: 100vh;
}

/* ========================================
   Section Styling
   ======================================== */
.section {
    display: none;
    animation: fadeInUp 0.5s ease forwards;
}

.section.active {
    display: block;
}

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

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

.section-title {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #3d2c1e, #7a6455);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.section-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 500px;
}

.date-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(244, 148, 94, 0.1);
    border: 1px solid rgba(244, 148, 94, 0.2);
    border-radius: var(--radius-lg);
    font-size: 13px;
    color: var(--accent-warm);
    font-weight: 500;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-lg);
    font-size: 13px;
    color: #fff;
    font-weight: 600;
    font-family: var(--font-thai);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 8px rgba(244, 148, 94, 0.25);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(244, 148, 94, 0.35);
    filter: brightness(1.05);
}

.download-btn:active {
    transform: translateY(0);
}

/* ========================================
   Stat Cards
   ======================================== */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
}

.stat-card:hover::before {
    opacity: 1;
}

#statCard1::before { background: var(--gradient-primary); }
#statCard2::before { background: var(--gradient-warm); }
#statCard3::before { background: var(--gradient-peach); }
#statCard4::before { background: var(--gradient-coral); }

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon.purple { background: rgba(244, 148, 94, 0.12); color: var(--accent-primary); }
.stat-icon.blue { background: rgba(255, 203, 164, 0.25); color: var(--accent-warm); }
.stat-icon.green { background: rgba(125, 201, 160, 0.15); color: var(--accent-green); }
.stat-icon.orange { background: rgba(244, 148, 94, 0.15); color: var(--accent-coral); }

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-value {
    font-family: var(--font-en);
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ========================================
   Chart Cards
   ======================================== */
.chart-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.chart-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.chart-card:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
}

.chart-card.full-width {
    grid-column: 1 / -1;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 8px;
}

.chart-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.chart-badge {
    padding: 4px 12px;
    background: rgba(244, 148, 94, 0.1);
    border: 1px solid rgba(244, 148, 94, 0.2);
    border-radius: 20px;
    font-size: 11px;
    font-family: var(--font-en);
    color: var(--accent-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chart-badge.purple-badge {
    background: rgba(244, 148, 94, 0.1);
    border-color: rgba(244, 148, 94, 0.2);
    color: var(--accent-primary);
}

.chart-badge.blue-badge {
    background: rgba(255, 203, 164, 0.2);
    border-color: rgba(255, 203, 164, 0.3);
    color: var(--accent-warm);
}

.chart-container {
    position: relative;
    height: 320px;
}

.chart-container.chart-sm {
    height: 280px;
}

.chart-container.chart-lg {
    height: 400px;
}

/* ========================================
   Sub-sections
   ======================================== */
.sub-section {
    margin-bottom: 32px;
}

.sub-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.sub-icon {
    font-size: 24px;
}

/* ========================================
   Score Table (Heatmap)
   ======================================== */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
}

.score-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.score-table th {
    background: rgba(244, 148, 94, 0.08);
    padding: 12px 16px;
    text-align: center;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.score-table th:first-child {
    text-align: left;
    min-width: 200px;
}

.score-table td {
    padding: 10px 16px;
    text-align: center;
    border-bottom: 1px solid rgba(230, 170, 120, 0.08);
    transition: background var(--transition-fast);
}

.score-table td:first-child {
    text-align: left;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 13px;
}

.score-table tbody tr:hover {
    background: rgba(244, 148, 94, 0.05);
}

.score-table .heat-cell {
    font-family: var(--font-en);
    font-weight: 600;
    border-radius: 6px;
    min-width: 40px;
}

.score-table .avg-cell {
    font-family: var(--font-en);
    font-weight: 700;
    color: var(--accent-warm);
    font-size: 15px;
}

/* ========================================
   Summary Content
   ======================================== */
.summary-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(244, 148, 94, 0.04);
    border-radius: var(--radius-md);
    border: 1px solid rgba(230, 170, 120, 0.1);
    transition: all var(--transition-fast);
}

.summary-item:hover {
    background: rgba(244, 148, 94, 0.08);
    border-color: rgba(230, 170, 120, 0.2);
    transform: translateX(4px);
}

.summary-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}

.summary-icon.green { background: rgba(125, 201, 160, 0.15); color: var(--accent-green); }
.summary-icon.blue { background: rgba(139, 189, 224, 0.15); color: var(--accent-blue); }
.summary-icon.purple { background: rgba(244, 148, 94, 0.12); color: var(--accent-primary); }
.summary-icon.orange { background: rgba(255, 138, 107, 0.15); color: var(--accent-coral); }
.summary-icon.yellow { background: rgba(235, 200, 110, 0.2); color: var(--accent-yellow); }

.summary-text strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.summary-text p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ========================================
   Scrollbar
   ======================================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(244, 148, 94, 0.25);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(244, 148, 94, 0.45);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .mobile-header {
        display: flex;
    }

    .main-content {
        margin-left: 0;
        padding: 80px 16px 32px;
    }

    .chart-grid-2 {
        grid-template-columns: 1fr;
    }

    .stat-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title {
        font-size: 22px;
    }
}

@media (max-width: 640px) {
    .stat-cards {
        grid-template-columns: 1fr;
    }

    .stat-value {
        font-size: 26px;
    }

    .chart-container {
        height: 260px;
    }

    .chart-container.chart-lg {
        height: 320px;
    }

    .score-table th:first-child,
    .score-table td:first-child {
        min-width: 140px;
        font-size: 12px;
    }
}

/* ========================================
   Overlay for mobile sidebar
   ======================================== */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(60, 40, 20, 0.3);
    z-index: 999;
    backdrop-filter: blur(4px);
}

.sidebar-overlay.active {
    display: block;
}

/* ========================================
   Quality Badges
   ======================================== */
.quality-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.quality-badge.quality-highest {
    background: rgba(125, 201, 160, 0.18);
    color: #2d8a5e;
    border: 1px solid rgba(125, 201, 160, 0.3);
}

.quality-badge.quality-high {
    background: rgba(139, 189, 224, 0.18);
    color: #3b7aab;
    border: 1px solid rgba(139, 189, 224, 0.3);
}

.quality-text {
    font-size: 22px !important;
    font-weight: 700 !important;
    font-family: var(--font-thai) !important;
    color: var(--accent-warm) !important;
}

.summary-row td {
    background: rgba(244, 148, 94, 0.06) !important;
    border-top: 2px solid rgba(244, 148, 94, 0.2);
}

#statCard5::before { background: var(--gradient-primary); }
#statCard6::before { background: var(--gradient-warm); }
#statCard7::before { background: var(--gradient-peach); }
#statCard8::before { background: var(--gradient-coral); }

/* ========================================
   T-Test Cards
   ======================================== */
.ttest-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ttest-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.ttest-card:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
}

.ttest-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
}

.ttest-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-en);
    font-weight: 800;
    font-size: 16px;
    flex-shrink: 0;
}

.ttest-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.ttest-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ttest-pair {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.ttest-val {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 18px 28px;
    border-radius: var(--radius-md);
    flex: 1;
    min-width: 180px;
}

.ttest-val.general {
    background: rgba(244, 148, 94, 0.06);
    border: 1px solid rgba(244, 148, 94, 0.15);
}

.ttest-val.developed {
    background: rgba(125, 201, 160, 0.06);
    border: 1px solid rgba(125, 201, 160, 0.15);
}

.ttest-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

.ttest-mean {
    font-family: var(--font-en);
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
}

.ttest-sd {
    font-family: var(--font-en);
    font-size: 13px;
    color: var(--text-secondary);
}

.ttest-vs {
    font-family: var(--font-en);
    font-weight: 800;
    font-size: 18px;
    color: var(--text-muted);
    padding: 8px 14px;
    background: rgba(244, 148, 94, 0.08);
    border-radius: var(--radius-sm);
}

.ttest-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

.ttest-stat {
    font-family: var(--font-en);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 4px 12px;
    background: rgba(244, 148, 94, 0.06);
    border-radius: 8px;
}

.ttest-stat.sig {
    color: var(--accent-warm);
    background: rgba(244, 148, 94, 0.12);
}

.significance-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 14px;
    background: rgba(125, 201, 160, 0.15);
    border: 1px solid rgba(125, 201, 160, 0.3);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #2d8a5e;
}

/* ========================================
   Research Findings
   ======================================== */
.research-findings {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.finding-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.finding-card:hover {
    border-color: var(--border-glow);
    transform: translateX(6px);
    box-shadow: var(--shadow-sm);
}

.finding-icon {
    font-size: 22px;
    flex-shrink: 0;
    margin-top: 1px;
}

.finding-card p {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.7;
}

/* ========================================
   Recommendations
   ======================================== */
.recommendations-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recommendation-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    background: rgba(244, 148, 94, 0.04);
    border: 1px solid rgba(230, 170, 120, 0.12);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.recommendation-card:hover {
    background: rgba(244, 148, 94, 0.08);
    border-color: rgba(230, 170, 120, 0.25);
    transform: translateX(6px);
}

.rec-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gradient-warm);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-en);
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

.recommendation-card p {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.7;
}

/* ========================================
   Research Credit
   ======================================== */
.research-credit {
    margin-top: 24px;
}

.credit-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.credit-advisor,
.credit-researchers {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.credit-role {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.credit-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    padding: 6px 0;
}

.credit-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.credit-date {
    font-size: 13px;
    color: var(--text-muted);
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

@media (max-width: 640px) {
    .ttest-pair {
        flex-direction: column;
        gap: 12px;
    }
    .ttest-val {
        min-width: 100%;
    }
    .ttest-stats {
        flex-direction: column;
        gap: 8px;
    }
}
