:root {
    --primary-blue: #1a73e8;
    --primary-blue-hover: #174ea6;
    --score-red: #ff4e42;
    --score-orange: #ffa400;
    --score-green: #0cce6b;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-primary: #202124;
    --text-secondary: #5f6368;
    --border-color: #dadce0;
    --font-family: 'Google Sans', 'Roboto', sans-serif;
    --pass-bg: #e6f4ea;
    --pass-text: #137333;
    --fail-bg: #fce8e6;
    --fail-text: #c5221f;
    --warning-bg: #fef7e0;
    --warning-text: #b06000;
}

body {
    margin: 0;
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
}

/* Header */
.app-header {
    background-color: var(--card-bg);
    padding: 0 24px;
    height: 64px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 32px;
}

.header-nav {
    display: flex;
    gap: 24px;
}

.header-nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 20px;
    color: var(--text-secondary);
    font-weight: 500;
}

.header-actions {
    display: flex;
    gap: 8px;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
}

.icon-btn:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

/* Background Illustration */
.background-illustration {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    height: 400px;
    background-image: url('bg.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.1;
    z-index: -1;
    pointer-events: none;
}

/* Hero Section */
.hero {
    padding: 64px 24px;
    text-align: center;
    background: transparent;
}

.hero h1 {
    font-size: 36px;
    font-weight: 400;
    margin: 0 0 16px 0;
}

.hero p {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0 0 32px 0;
}

.search-form {
    display: flex;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
    border-radius: 24px;
    background: white;
}

#url-input {
    flex-grow: 1;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 24px 0 0 24px;
    outline: none;
}

#analyze-btn {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 500;
    font-family: var(--font-family);
    border-radius: 0 24px 24px 0;
    cursor: pointer;
    transition: background-color 0.2s;
}

#analyze-btn:hover {
    background-color: var(--primary-blue-hover);
}

#analyze-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* States */
.hidden {
    display: none !important;
}

#loading-state,
#error-state {
    text-align: center;
    padding: 64px 24px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-blue);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.error-message {
    color: var(--score-red);
    font-size: 18px;
    background: #fce8e6;
    padding: 16px;
    border-radius: 8px;
    display: inline-block;
}

/* Results Content */
#results-container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 24px;
}

.url-header {
    text-align: center;
    margin-bottom: 24px;
    font-size: 18px;
}

.url-header a {
    color: var(--primary-blue);
    text-decoration: none;
}

.url-header a:hover {
    text-decoration: underline;
}

/* Tabs */
.tabs {
    display: flex;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    font-family: var(--font-family);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid transparent;
}

.tab-btn:hover {
    color: var(--primary-blue);
    background-color: rgba(26, 115, 232, 0.04);
}

.tab-btn.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Cards */
.section-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
}

.section-card h2 {
    font-size: 20px;
    font-weight: 400;
    margin: 0 0 8px 0;
}

.subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 0;
    margin-bottom: 24px;
}

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

.badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge::before {
    font-family: 'Material Icons';
    font-size: 18px;
}

.badge-pass {
    background: #e6f4ea;
    color: #137333;
}

.badge-pass::before {
    content: 'check_circle';
}

.badge-fail {
    background: #fce8e6;
    color: #c5221f;
}

.badge-fail::before {
    content: 'warning';
}

.badge-warning {
    background: #fef7e0;
    color: #b06000;
}

.badge-warning::before {
    content: 'info';
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.metric-item {
    padding: 12px;
    border: none;
    border-radius: 0;
    transition: background 0.2s;
}

.lighthouse-diagnose .metric-item {
    border-right: 1px solid #f1f3f4;
}

.lighthouse-diagnose .metric-item:last-child {
    border-right: none;
}

.metric-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.metric-icon {
    font-size: 16px;
}

.metric-icon.pass {
    color: var(--score-green);
}

.metric-icon.fail {
    color: var(--score-red);
}

.metric-icon.warning {
    color: var(--score-orange);
}

.metric-value-large {
    font-size: 28px;
    font-weight: 500;
    color: var(--text-primary);
    font-family: 'Google Sans', 'Roboto', sans-serif;
}

/* Score Rings */
.scores-container {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.score-ring-wrapper {
    text-align: center;
    width: 120px;
}

.score-title {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.circular-chart {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 250px;
}

.circle-bg {
    fill: none;
    stroke: #eee;
    stroke-width: 8;
}

.circle {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    animation: progress 1s ease-out forwards;
}

@keyframes progress {
    0% {
        stroke-dasharray: 0, 264;
    }
}

.percentage {
    font-family: var(--font-family);
    font-size: 32px;
    font-weight: 500;
}

/* Pass/Fail Score classes */
.score-red .circle {
    stroke: var(--score-red);
}

.score-red .circle-bg {
    stroke: #ffe8e6;
}

.score-red .percentage {
    fill: var(--score-red);
}

.score-orange .circle {
    stroke: var(--score-orange);
}

.score-orange .circle-bg {
    stroke: #fff6e5;
}

.score-orange .percentage {
    fill: var(--score-orange);
}

.score-green .circle {
    stroke: var(--score-green);
}

.score-green .circle-bg {
    stroke: #e5faef;
}

.score-green .percentage {
    fill: var(--score-green);
}

/* Audits List */
.audit-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.audit-item {
    border-top: 1px solid var(--border-color);
    padding: 0;
}

.audit-header {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    padding: 8px 0;
}

.audit-icon {
    font-size: 14px;
    margin-right: 12px;
    color: var(--text-secondary);
}

.audit-icon.pass {
    color: var(--score-green);
}

.audit-icon.fail {
    color: var(--score-red);
}

.audit-icon.warning {
    color: var(--score-orange);
}

.audit-title {
    flex-grow: 1;
}

.audit-savings {
    color: var(--text-secondary);
    font-weight: 400;
}

.audit-description {
    display: none;
    margin-top: 4px;
    margin-left: 30px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.audit-item.expanded .audit-description {
    display: block;
}

.audit-content {
    display: none;
    padding-left: 30px;
    padding-bottom: 12px;
}

.audit-item.expanded .audit-content {
    display: block;
}

.passed-audits-details {
    margin-top: 16px;
    border-top: 1px solid var(--border-color);
    padding-top: 8px;
}

.passed-audits-details summary {
    cursor: pointer;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.passed-audits-details summary::-webkit-details-marker {
    display: none;
}

.passed-audits-details summary::before {
    content: 'expand_more';
    font-family: 'Material Icons';
    transition: transform 0.2s;
}

.passed-audits-details[open] summary::before {
    transform: rotate(180deg);
}

.passed-audits-details h3 {
    display: inline;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

/* Category Sections */
.category-section {
    margin-top: 32px;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
}

.category-section h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 12px;
}

.category-header-big {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 48px;
}

.category-header-big h2 {
    font-size: 28px;
    font-weight: 400;
    margin: 16px 0 8px 0;
}

.category-header-big .subtitle {
    max-width: 700px;
    margin-bottom: 0;
}

.score-big-wrapper {
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.score-big-wrapper .circular-chart {
    width: 120px;
    height: 120px;
}

.score-big-wrapper .percentage {
    font-size: 32px;
}

/* Core Web Vitals Enhanced UI */
.metric-value-large {
    font-size: 28px;
    font-weight: 700;
    margin: 8px 0;
    line-height: 1;
}

.metric-bar-container {
    margin: 12px 0;
    height: 8px;
    /* Thicker bars */
    width: 100%;
}

.metric-dist-bar {
    display: flex;
    height: 100%;
    width: 100%;
    border-radius: 4px;
    overflow: visible;
    position: relative;
}

.dist-segment {
    height: 100%;
    transition: width 0.3s ease;
}

.dist-pass {
    background-color: #0cce6b;
    border-radius: 2px 0 0 2px;
}

.dist-average {
    background-color: #ffa400;
}

.dist-fail {
    background-color: #ff4e42;
    border-radius: 0 2px 2px 0;
}

.dist-pointer {
    position: absolute;
    top: -4px;
    bottom: -4px;
    width: 1px;
    background: #5f6368;
    z-index: 10;
}

.dist-pointer::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -4px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #5f6368;
}

.metric-value-small {
    font-size: 11px;
    color: #5f6368;
    margin-top: 2px;
}

.metric-item {
    padding: 16px;
    border: none;
    /* Remove border for a cleaner look */
    border-radius: 0;
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid transparent;
}

.core-web-vitals .metric-item {
    border-bottom: 1px solid #f1f3f4;
}

.core-web-vitals .metric-item:last-child {
    border-bottom: none;
}

/* Audit Badge Styling */
.audit-badge-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
    align-items: center;
}

.audit-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
    text-transform: capitalize;
}

.audit-badge.party-1st {
    color: #1a73e8;
    background: #e8f0fe;
}

.audit-badge.party-3rd {
    color: #d93025;
    background: #fce8e6;
}

.audit-badge.category {
    color: #5f6368;
    background: #f1f3f4;
}

.audit-entity-label {
    font-weight: 600;
    font-size: 12px;
    color: var(--text-primary);
}

.attribution-container {
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 4px;
}

.audit-link {
    color: var(--primary-color);
    text-decoration: none;
    word-break: break-all;
    font-size: 12px;
}

.audit-link:hover {
    text-decoration: underline;
}

/* Audit Item Enhancements */
.audit-header {
    display: flex;
    align-items: center;
    padding: 12px 0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.audit-header:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.audit-title {
    flex-grow: 1;
    font-size: 14px;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.audit-savings {
    font-size: 14px;
    color: var(--score-red);
    margin-right: 12px;
    font-weight: 400;
}

.audit-icon {
    margin-right: 14px;
    font-size: 18px !important;
}

.expand-icon {
    color: var(--text-secondary);
    transition: transform 0.2s;
    font-size: 20px !important;
}

.audit-item.expanded .expand-icon {
    transform: rotate(180deg);
}

.audit-content {
    display: none;
    padding-left: 32px;
    padding-bottom: 16px;
}

.audit-item.expanded .audit-content {
    display: block;
}

.audit-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.audit-description a {
    color: var(--primary-blue);
    text-decoration: none;
}

.audit-sub-title {
    font-size: 14px;
    font-weight: 600;
    margin: 16px 0 8px 0;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 4px;
}

/* Audit Tables */
.audit-details-table-wrapper {
    overflow-x: auto;
    margin-top: 8px;
}

.audit-details-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    color: var(--text-primary);
}

.audit-details-table th {
    text-align: left;
    background-color: #f8f9fa;
    padding: 8px;
    border-bottom: 2px solid var(--border-color);
    font-weight: 500;
    color: var(--text-secondary);
}

.audit-details-table td {
    padding: 6px 8px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.audit-details-table tr:last-child td {
    border-bottom: none;
}

/* Layout Shift Culprits Specifics */
.audit-table-layout-shift-culprits tr.total-row {
    font-weight: 500;
    background-color: #fafafa;
}

.audit-table-layout-shift-culprits tr.total-row td {
    border-bottom: 2px solid var(--border-color);
}

.audit-table-layout-shift-culprits tr.has-impact td:first-child {
    position: relative;
    padding-left: 24px;
}

.audit-table-layout-shift-culprits tr.has-impact td:first-child::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 8px;
    bottom: 8px;
    width: 3px;
    background-color: #ffa400;
    /* Yellow impact bar */
    border-radius: 2px;
}

.audit-table-layout-shift-culprits .audit-badge-text {
    font-size: 11px;
    color: #5f6368;
    background: #f1f3f4;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    font-weight: 500;
}

.audit-table-layout-shift-culprits .thumbnail {
    width: 48px;
    height: 48px;
    min-width: 48px;
}

.audit-table-layout-shift-culprits .resource-size-cell {
    font-weight: 500;
    color: var(--text-primary);
}

.audit-details-table .thumbnail,
.audit-list-details .thumbnail {
    width: 64px;
    height: 64px;
    min-width: 64px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    margin-right: 12px;
}

.audit-details-table .cell-url-container,
.audit-list-details .cell-url-container {
    display: flex;
    align-items: flex-start;
    width: 100%;
}

.audit-details-table .url-and-snippet,
.audit-list-details .url-and-snippet {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.audit-details-table .snippet,
.audit-list-details .snippet {
    font-family: 'Roboto Mono', monospace;
    font-size: 11px;
    color: #424242;
    /* darker color for legibility */
    background: #f8f9fa;
    /* slightly lighter grey background */
    padding: 6px 10px;
    border-radius: 4px;
    white-space: pre-wrap;
    word-break: break-all;
    /* Critical to prevent overflow */
    max-width: 100%;
}

.audit-details-table .resource-size-cell {
    white-space: nowrap;
    text-align: right;
}

/* Footer Section */
.audit-group-container {
    margin-bottom: 32px;
}

.audit-group-header {
    margin-bottom: 12px;
}

.group-title {
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 4px 0;
}

.group-description {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

/* Footer */
.app-footer {
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
    padding: 24px;
    margin-top: 48px;
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-content {
    max-width: 1024px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content a {
    color: var(--primary-blue);
    text-decoration: none;
}

.footer-content a:hover {
    text-decoration: underline;
}

.footer-links {
    display: flex;
    gap: 24px;
}

/* Visuals Container */
.visuals-container {
    margin-bottom: 24px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 16px;
}

.visuals-container.hidden {
    display: none;
}

.visuals-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
}

.final-screenshot img {
    max-width: 250px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filmstrip-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 16px;
    overflow: hidden;
}

.filmstrip {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 8px;
}

.filmstrip img {
    height: 100px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.btn-treemap {
    align-self: flex-start;
    padding: 8px 16px;
    background: #f1f3f4;
    color: #1a73e8;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}

.btn-treemap:hover {
    background: #e8f0fe;
}

/* Critical Request Chains (Network Dependency Tree) */
.crc-container {
    margin-top: 16px;
    font-family: 'Roboto Mono', monospace;
    font-size: 13px;
    color: var(--text-primary);
}

.crc-summary {
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--text-secondary);
}

.crc-summary strong {
    color: var(--text-primary);
}

.crc-tree {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    overflow-x: auto;
}

.crc-initial-nav {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-blue);
}

.crc-node-list {
    list-style: none;
    padding-left: 20px;
    margin: 0;
}

.crc-node-item {
    position: relative;
    padding-left: 20px;
    margin-top: 8px;
}

/* Vertical line */
.crc-node-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: -8px;
    bottom: 0;
    width: 2px;
    background: #dadce0;
}

/* Last item's vertical line should end at the horizontal line */
.crc-node-item:last-child::before {
    height: 14px;
}

/* Horizontal line */
.crc-node-item::after {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 15px;
    height: 2px;
    background: #dadce0;
}

.crc-node {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.crc-node-url {
    color: #c5221f;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 600px;
}

.crc-node-stats {
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .visuals-row {
        flex-direction: column;
        align-items: center;
    }

    .final-screenshot img {
        max-width: 100%;
    }
}
/* ===== Instructions & FAQ Sections ===== */
.info-section {
    max-width: 900px;
    margin: 0 auto 40px;
    padding: 0 24px;
}

.info-container {
    background: var(--surface-color, #fff);
    border-radius: 16px;
    padding: 36px 40px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.info-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a73e8;
    margin: 0 0 28px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e8f0fe;
}

.info-title .material-icons {
    font-size: 28px;
    color: #1a73e8;
}

/* Instructions list */
.instructions-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.instructions-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #f8f9ff;
    border-radius: 10px;
    padding: 14px 18px;
    border-left: 4px solid #1a73e8;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
}

.step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    background: #1a73e8;
    color: #fff;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.instructions-list li code {
    background: #e8f0fe;
    color: #1a73e8;
    border-radius: 4px;
    padding: 1px 5px;
    font-size: 0.88em;
}

/* Score legend */
.score-legend {
    background: #f8f9ff;
    border-radius: 10px;
    padding: 18px 22px;
}

.score-legend h3 {
    margin: 0 0 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #444;
}

.legend-items {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    align-items: center;
    font-size: 0.88rem;
    color: #555;
}

.legend-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot-good    { background: #0cce6b; }
.dot-average { background: #ffa400; }
.dot-poor    { background: #ff4e42; }

/* FAQ */
.faq-section { margin-top: 0; }

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    border: 1px solid #e0e7ff;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.faq-item:hover {
    box-shadow: 0 2px 8px rgba(26,115,232,0.12);
}

.faq-item summary {
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: #1a1a2e;
    user-select: none;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9ff;
    transition: background 0.2s;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    font-size: 1.3rem;
    color: #1a73e8;
    font-weight: 400;
    line-height: 1;
    transition: transform 0.2s;
}

.faq-item[open] summary {
    background: #e8f0fe;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    margin: 0;
    padding: 16px 20px;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #444;
    border-top: 1px solid #e0e7ff;
}

.faq-item p code {
    background: #e8f0fe;
    color: #1a73e8;
    border-radius: 4px;
    padding: 1px 5px;
    font-size: 0.88em;
}

@media (max-width: 600px) {
    .info-container { padding: 24px 20px; }
    .legend-items { gap: 12px; }
}
