/* Owner Dashboard Styles */
.owner-stats-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--sp-lg); margin-bottom: var(--sp-2xl); }
.owner-stat { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-xl); box-shadow: var(--shadow-sm); }
.owner-stat-value { font-family: var(--font-heading); font-size: 28px; font-weight: 900; color: var(--text-primary); line-height: 1; }
.owner-stat-label { font-size: 12px; color: var(--text-muted); font-family: var(--font-heading); font-weight: 600; text-transform: uppercase; letter-spacing: .6px; margin-top: 6px; }
.owner-stat-icon { font-size: 20px; margin-bottom: 8px; }
.base-row { display: flex; align-items: center; gap: var(--sp-lg); padding: var(--sp-lg); border-radius: var(--r-lg); background: var(--bg-card); border: 1px solid var(--border); margin-bottom: var(--sp-md); transition: box-shadow .2s; }
.base-row:hover { box-shadow: var(--shadow-md); }
.base-row-thumb { width: 72px; height: 56px; border-radius: var(--r-md); background: var(--bg-surface); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 24px; overflow: hidden; }
.base-row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.base-row-info { flex: 1; }
.base-row-name { font-family: var(--font-heading); font-size: 15px; font-weight: 700; color: var(--text-primary); }
.base-row-meta { font-size: 13px; color: var(--text-muted); margin-top: 3px; display: flex; gap: 12px; flex-wrap: wrap; }
.chart-placeholder { background: var(--bg-surface); border-radius: var(--r-md); height: 180px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 14px; margin-top: var(--sp-lg); }
.reply-form { background: var(--bg-surface); border-radius: var(--r-md); padding: var(--sp-md); margin-top: var(--sp-sm); display: none; }
.reply-form.open { display: block; }

/* ── Stats charts ────────────────────────────────────────── */
.stats-base-picker { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: var(--sp-lg); }
.stats-base-btn { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-md); padding: 6px 14px; font-size: 13px; color: var(--text-muted); cursor: pointer; transition: all .2s; }
.stats-base-btn.active { border-color: var(--primary); color: var(--primary); background: rgba(91,155,248,.06); font-weight: 600; }

.stats-period-row { display: flex; gap: 4px; background: var(--bg-card); border-radius: var(--r-lg); padding: 4px; margin-bottom: var(--sp-xl); border: 1px solid var(--border); }
.stats-period-btn { flex: 1; border: none; background: none; border-radius: var(--r-md); padding: 8px 6px; font-size: 13px; color: var(--text-muted); cursor: pointer; font-weight: 600; transition: all .2s; }
.stats-period-btn.active { background: var(--bg-surface); color: var(--primary); box-shadow: var(--shadow-sm); }

.stats-kpi-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--sp-md); margin-bottom: var(--sp-xl); }
.stats-kpi-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-lg); }
.stats-kpi-value { font-family: var(--font-heading); font-size: 26px; font-weight: 900; color: var(--text-primary); line-height: 1; }
.stats-kpi-label { font-size: 11px; color: var(--text-muted); font-family: var(--font-heading); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; margin-top: 6px; }
.stats-kpi-change { font-size: 11px; font-weight: 700; margin-top: 8px; border-radius: 6px; padding: 2px 8px; display: inline-block; }
.stats-kpi-change.up { color: #00C896; background: rgba(0,200,150,.1); }
.stats-kpi-change.down { color: #FF5252; background: rgba(255,82,82,.1); }

.stats-chart-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-xl); padding: var(--sp-xl); margin-bottom: var(--sp-xl); }
.stats-chart-title { font-family: var(--font-heading); font-size: 14px; font-weight: 700; color: var(--text-primary); margin-bottom: var(--sp-lg); }

/* Bar chart */
.stats-bar-chart { display: flex; align-items: flex-end; height: 180px; gap: 1px; }
.stats-bar-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.stats-bar { background: rgba(91,155,248,.35); border-radius: 3px 3px 0 0; min-height: 2px; width: 80%; transition: height .3s ease; }
.stats-bar[data-last="true"] { background: var(--primary); }
.stats-bar-label { font-size: 9px; color: var(--text-muted); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; text-align: center; }

/* Heatmap */
.stats-heatmap { display: flex; flex-wrap: wrap; gap: 4px; }
.stats-heat-cell { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; transition: background .3s; }
.stats-heat-hour { font-size: 10px; color: var(--text-muted); font-weight: 600; }

/* Average card */
.stats-avg-card { background: rgba(91,155,248,.06); border-radius: var(--r-lg); padding: var(--sp-lg); font-size: 13px; color: var(--text-secondary); margin-bottom: var(--sp-xl); }
.stats-avg-card strong { color: var(--primary); font-weight: 800; }

/* Top days */
.stats-top-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-xl); padding: var(--sp-xl); margin-bottom: var(--sp-xl); }
.stats-top-title { font-family: var(--font-heading); font-size: 14px; font-weight: 700; color: var(--text-primary); margin-bottom: var(--sp-lg); }
.stats-top-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.stats-top-rank { width: 26px; height: 26px; border-radius: 6px; background: rgba(91,155,248,.1); color: var(--primary); font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stats-top-label { color: var(--text-secondary); font-size: 12px; width: 70px; flex-shrink: 0; }
.stats-top-bar-wrap { flex: 1; height: 6px; background: rgba(91,155,248,.1); border-radius: 3px; overflow: hidden; }
.stats-top-bar { height: 100%; background: var(--primary); border-radius: 3px; transition: width .3s; }
.stats-top-val { color: var(--text-primary); font-size: 13px; font-weight: 700; width: 40px; text-align: right; flex-shrink: 0; }
