[hidden] { display: none !important; }
.panel { padding-top: 28px; padding-bottom: 60px; min-height: 70vh; }
.who { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--dim); }
.btn.small { padding: 8px 14px; font-size: 14px; border-radius: 12px; }

/* Giriş */
.login { display: grid; place-items: center; min-height: 60vh; }
.login-card { max-width: 420px; width: 100%; text-align: center; }
.login-card h1 { font-size: 44px; margin-bottom: 12px; }
.login-card p { color: var(--dim); margin-bottom: 26px; }
.btn.signin { width: 100%; justify-content: center; margin-bottom: 12px; background: #fff; color: #000; height: 52px; }
.btn.signin.apple span::before { content: ""; font-size: 20px; }
.btn.signin.google b { color: #4285f4; font-size: 20px; }
.login .err { color: #ff453a; font-size: 14px; margin-top: 6px; }
.login .fine { font-size: 13px; color: var(--faint); margin-top: 18px; }

.loading { display: grid; place-items: center; min-height: 50vh; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--surface2); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Başlık ve filtreler */
.dash-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.dash-head h1 { font-size: 40px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
select { background: var(--surface2); color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; font-size: 14px; font-family: inherit; }

/* KPI */
.kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; animation: up .6s cubic-bezier(.2,.8,.2,1) both; }
.kpi small { color: var(--dim); font-size: 13px; }
.kpi b { display: block; font-family: "Archivo", sans-serif; font-stretch: 125%; font-weight: 900; font-size: 30px; margin-top: 6px; }
.kpi b.ok { color: var(--ok); }
.kpi b.acc { color: var(--accent); }
@keyframes up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.cards2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.chart-card { animation: up .7s cubic-bezier(.2,.8,.2,1) both; }
.ch-head { display: flex; justify-content: space-between; align-items: start; margin-bottom: 14px; }
.ch-head h3 { font-size: 17px; }
.ch-head small { color: var(--dim); font-size: 13px; }
.ch-head b { font-family: "Archivo", sans-serif; font-stretch: 125%; font-weight: 800; font-size: 18px; }

/* Trend */
#trend { width: 100%; height: 220px; overflow: visible; }
#trend .grid { stroke: var(--line); stroke-dasharray: 2 3; }
#trend .lbl { fill: var(--dim); font-size: 10px; }
#trend .line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
#trend .avg { fill: none; stroke: var(--text); stroke-opacity: .5; stroke-width: 1.2; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
#trend .draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 1.4s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
#trend .area { opacity: 0; animation: fade 1s .6s ease-out forwards; }
@keyframes fade { to { opacity: 1; } }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--dim); margin-top: 8px; }
.legend i { display: inline-block; margin-right: 6px; vertical-align: middle; }
.legend .dot { width: 8px; height: 8px; border-radius: 50%; }
.legend .dot.acc { background: var(--accent); } .legend .dot.ok { background: var(--ok); }
.legend .dash { width: 14px; height: 0; border-top: 1.5px dashed var(--dim); }

/* Histogram ve barlar */
.hist, .bars { display: flex; align-items: end; gap: 4px; height: 190px; }
.hist div, .bars div { flex: 1; border-radius: 5px 5px 2px 2px; transform-origin: bottom; animation: grow .9s cubic-bezier(.2,.8,.2,1) both;
  background: linear-gradient(to top, color-mix(in srgb, var(--text) 18%, transparent), color-mix(in srgb, var(--text) 62%, transparent)); position: relative; }
.hist div.peak, .bars div.now { background: linear-gradient(to top, color-mix(in srgb, var(--accent) 35%, transparent), var(--accent)); }
.hist div.med::after { content: ""; position: absolute; left: 50%; top: -10px; bottom: 0; border-left: 1.5px dashed var(--ok); }
.bars div span { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font-size: 10px; color: var(--faint); white-space: nowrap; }
.bars { margin-bottom: 22px; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.hist-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--dim); margin-top: 6px; font-variant-numeric: tabular-nums; }

/* Rekorlar */
.rec { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.rec:first-child { border-top: 0; }
.rec small { color: var(--dim); display: block; font-size: 12px; }
.rec b { font-family: "Archivo", sans-serif; font-stretch: 125%; font-weight: 800; color: var(--ok); }
.rec svg { width: 90px; height: 28px; margin: 0 14px; }
.rec svg path { fill: none; stroke: var(--accent); stroke-width: 1.8; vector-effect: non-scaling-stroke; }

/* Tablo */
.table .row { display: grid; grid-template-columns: 1.3fr 1.4fr .7fr .8fr .8fr .8fr; gap: 10px; padding: 12px 6px; border-top: 1px solid var(--line); align-items: center; cursor: pointer; font-variant-numeric: tabular-nums; }
.table .row:hover { background: color-mix(in srgb, var(--text) 4%, transparent); }
.table .row.head { cursor: default; color: var(--faint); font-size: 12px; border-top: 0; }
.table .row.head:hover { background: none; }
.table .row b { font-family: "Archivo", sans-serif; font-stretch: 125%; font-weight: 800; }
.table .row small { color: var(--dim); }
.table .detail { padding: 6px 6px 18px; border-top: 1px dashed var(--line); animation: up .35s ease both; }
.table .shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; margin-top: 10px; }
.table .shots span { background: var(--surface2); border-radius: 10px; padding: 6px 10px; font-size: 13px; }
.table .shots span.rl { color: var(--amber); }
.table .shots span.best { color: var(--ok); }
.table .meta2 { color: var(--dim); font-size: 13px; display: flex; gap: 18px; flex-wrap: wrap; }
.empty { text-align: center; padding: 40px; }
.empty p { color: var(--dim); margin-top: 8px; }

@media (max-width: 900px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .cards2 { grid-template-columns: 1fr; }
  .table .row { grid-template-columns: 1.2fr 1fr .8fr .8fr; }
  .table .row .hide-m { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .kpi, .chart-card, .hist div, .bars div, #trend .draw, #trend .area { animation: none; opacity: 1; stroke-dashoffset: 0; }
}
