/* Shared styles for /stats/, /stats/chatgpt/, /stats/gemini/ (#2336). */
:root { --purple: #7C3AED; --purple-light: #EDE9FE; --bg: #0f0f1a; --card: #1a1a2e; --border: #2d2d44; --text: #e2e8f0; --muted: #94a3b8; }
* { margin: 0; box-sizing: border-box; }
body { background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; min-height: 100vh; }
.container { max-width: 1100px; margin: 0 auto; padding: 40px 24px 60px; }
.header { text-align: center; margin-bottom: 48px; }
.header h1 { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.header h1 span { color: var(--purple); }
.header p { color: var(--muted); font-size: 16px; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 32px; }
.kpi { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 20px; text-align: center; }
.kpi-val { font-size: 28px; font-weight: 800; color: var(--purple); }
.kpi-label { font-size: 13px; color: var(--muted); margin-top: 4px; }
.charts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 32px; }
.chart-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 20px; position: relative; min-width: 0; overflow: hidden; }
.chart-card h3 { font-size: 15px; color: var(--text); margin-bottom: 2px; font-weight: 600; padding-right: 52px; }
.chart-actions { position: absolute; top: 18px; right: 16px; display: flex; gap: 4px; }
.chart-actions button { background: none; border: none; cursor: pointer; color: var(--muted); padding: 3px; border-radius: 4px; transition: color .15s, background .15s; line-height: 0; }
.chart-actions button:hover { color: var(--text); background: rgba(255,255,255,.08); }
.chart-actions button svg { width: 15px; height: 15px; display: block; }
.chart-actions button.ok { color: #10B981; }
.chart-desc { font-size: 11px; color: var(--muted); margin-bottom: 10px; line-height: 1.4; }
.chart-wrap { width: 100%; height: 280px; }
.findings { max-width: 860px; margin: 0 auto 32px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 20px 24px; }
.findings:empty { display: none; }
.findings h2 { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.findings .findings-meta { color: var(--muted); font-size: 12px; margin-bottom: 12px; }
.findings ul { padding-left: 20px; }
.findings li { font-size: 14px; line-height: 1.7; margin-bottom: 4px; }
.findings details { margin-top: 12px; }
.findings summary { cursor: pointer; color: var(--purple); font-size: 13px; font-weight: 600; }
.findings table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 13px; }
.findings caption { text-align: left; color: var(--muted); font-size: 12px; padding-bottom: 6px; }
.findings th, .findings td { border-bottom: 1px solid var(--border); padding: 6px 8px; text-align: right; }
.findings th[scope="row"], .findings thead th:first-child { text-align: left; }
.findings thead th { color: var(--muted); font-weight: 600; }
.header-intro { color: var(--muted); font-size: 14px; line-height: 1.7; max-width: 720px; margin: 16px auto 0; text-align: center; }
.faq { max-width: 760px; margin: 40px auto 0; }
.faq h2 { font-size: 22px; font-weight: 800; margin-bottom: 16px; text-align: center; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; margin-bottom: 10px; }
.faq-item h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.faq-item p { color: var(--muted); font-size: 14px; line-height: 1.7; }
.cta-section { text-align: center; background: linear-gradient(135deg, #1e1b4b, #312e81); border-radius: 20px; padding: 48px 32px; margin-top: 40px; }
.cta-section h2 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.cta-section p { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.cta-btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; border-radius: 12px; background: linear-gradient(135deg, #7C3AED, #6D28D9); color: white; text-decoration: none; font-weight: 700; font-size: 16px; box-shadow: 0 4px 20px rgba(124,58,237,.35); transition: transform .15s, box-shadow .15s; }
.cta-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 28px rgba(124,58,237,.5); }
.cta-btn svg { width: 20px; height: 20px; }
.cta-sub { color: var(--muted); font-size: 13px; margin-top: 12px; }
.footer { text-align: center; margin-top: 48px; }
.footer a { color: var(--purple); text-decoration: none; font-weight: 600; }
.share-bar { display: flex; justify-content: center; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.share-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--border); background: var(--card); color: var(--text); text-decoration: none; font-size: 13px; font-weight: 500; cursor: pointer; transition: background .15s, border-color .15s; }
.share-btn:hover { background: #252540; border-color: #3d3d5c; }
.share-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.share-btn.copied { border-color: #10B981; color: #10B981; }
.updated { text-align: center; color: var(--muted); font-size: 12px; margin-top: 12px; }
.stats-nav { position: sticky; top: 0; z-index: 50; background: rgba(15,15,26,.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); padding: 0 24px; }
.stats-nav .nav-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 52px; }
.stats-nav .nav-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 15px; }
.stats-nav .nav-logo svg { width: 28px; height: 28px; }
.stats-nav .nav-links { display: flex; align-items: center; gap: 20px; }
.stats-nav .nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .15s; }
.stats-nav .nav-links a:hover { color: var(--text); }
.stats-nav .nav-links a.active { color: var(--purple); }
@media (max-width: 640px) { .charts { grid-template-columns: 1fr; } .kpi-grid { grid-template-columns: repeat(2, 1fr); } .header h1 { font-size: 24px; } .stats-nav .nav-links { gap: 12px; } .stats-nav .nav-links a { font-size: 13px; } }

.svc-tabs { display: flex; justify-content: center; gap: 8px; margin: -24px 0 32px; flex-wrap: wrap; }
.svc-tabs a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.svc-tabs a:hover { color: var(--text); }
.svc-tabs a.active { color: #fff; background: var(--purple); border-color: var(--purple); }
.findings .findings-links { margin-top: 12px; font-size: 14px; }
.findings a { color: var(--purple); }
.chart-empty { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; }
