@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root { --ink: #17202a; --muted: #687481; --purple: #6b2f80; --mint: #12a889; --gold: #f0a33a; --paper: #f5f7f8; }
body.statistics-page { background: var(--paper); color: var(--ink); font-family: 'DM Sans', sans-serif; padding-bottom: 84px; }
.statistics-shell { max-width: 1440px; margin: 0 auto; padding: 32px 24px 40px; }
.statistics-hero { background: linear-gradient(120deg, #251733 0%, #5d2d76 58%, #c76c4a 145%); border-radius: 24px; color: #fff; padding: 32px; position: relative; overflow: hidden; box-shadow: 0 18px 40px rgba(47, 27, 61, .2); }
.statistics-hero:after { content: ''; position: absolute; width: 240px; height: 240px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; right: -42px; top: -86px; box-shadow: 0 0 0 22px rgba(255,255,255,.06), 0 0 0 44px rgba(255,255,255,.04); }
.statistics-kicker { letter-spacing: .14em; text-transform: uppercase; font-size: 11px; font-weight: 700; opacity: .7; }
.statistics-hero h1 { font: 700 clamp(28px, 4vw, 46px)/1.05 'Space Grotesk', sans-serif; margin: 10px 0 8px; }
.statistics-hero p { margin: 0; color: rgba(255,255,255,.78); }
.refresh-button { position: relative; z-index: 1; margin-top: 22px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.13); color: #fff; border-radius: 999px; padding: 10px 16px; cursor: pointer; font-weight: 700; }
.refresh-button:hover { background: rgba(255,255,255,.24); }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 20px 0; }
.kpi-card, .dashboard-card { background: #fff; border: 1px solid #e6eaed; border-radius: 18px; box-shadow: 0 8px 24px rgba(38, 49, 57, .05); }
.kpi-card { padding: 20px; min-height: 112px; }
.kpi-label { color: var(--muted); font-size: 13px; font-weight: 600; }
.kpi-value { font: 700 29px 'Space Grotesk', sans-serif; margin: 12px 0 3px; }
.kpi-meta { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dashboard-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 20px; margin-bottom: 20px; }
.dashboard-card { padding: 22px; min-width: 0; }
.dashboard-card.wide { grid-column: 1 / -1; }
.card-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.card-heading h2 { font: 700 19px 'Space Grotesk', sans-serif; margin: 0; }
.card-heading p { color: var(--muted); font-size: 12px; margin: 5px 0 0; }
.chart-wrap { height: 330px; position: relative; }
.chart-wrap.guide-chart { height: 380px; }
.table-wrap { overflow-x: auto; }
.statistics-table { width: 100% !important; border-collapse: collapse; font-size: 13px; }
.statistics-table thead th { color: var(--muted); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; border-bottom: 1px solid #e8ecef; padding: 11px 10px; white-space: nowrap; }
.statistics-table tbody td { padding: 12px 10px; border-bottom: 1px solid #f0f2f3; vertical-align: middle; }
.statistics-table tbody tr:hover { background: #fafbfb; }
.review-count { color: var(--purple); font-weight: 700; }
.date-filter { border: 1px solid #d9dfe3; border-radius: 8px; padding: 7px 9px; color: var(--muted); font: inherit; }
.dataTables_wrapper .dataTables_filter input { border: 1px solid #d9dfe3; border-radius: 8px; padding: 7px 9px; margin-left: 6px; }
.dataTables_wrapper .dataTables_length select { border: 1px solid #d9dfe3; border-radius: 7px; padding: 5px; }
.dataTables_wrapper .dataTables_info, .dataTables_wrapper .dataTables_paginate { color: var(--muted) !important; font-size: 12px; margin-top: 14px; }
.dataTables_wrapper .dataTables_paginate .paginate_button.current { background: var(--purple) !important; color: #fff !important; border-color: var(--purple) !important; border-radius: 7px; }
.api-error { background: #fff0f0; border: 1px solid #f2b8b8; border-radius: 12px; color: #a43737; padding: 16px; margin-top: 18px; }
@media (max-width: 900px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } .dashboard-grid { grid-template-columns: 1fr; } .dashboard-card.wide { grid-column: auto; } }
@media (max-width: 520px) { .statistics-shell { padding: 18px 12px 28px; } .statistics-hero { padding: 24px 20px; border-radius: 18px; } .kpi-grid { gap: 10px; } .kpi-card { padding: 15px; } .kpi-value { font-size: 23px; } .dashboard-card { padding: 15px; border-radius: 14px; } .card-heading { display: block; } .date-filter { margin-top: 12px; } }
