/* Dashboard styles — matches Vestia dark luxury theme */

:root {
  --bg: #0f1629;
  --surface: #16203a;
  --fg: #f0ede8;
  --fg-muted: #8a8a9b;
  --accent: #c9a84c;
  --accent-dim: rgba(201, 168, 76, 0.15);
  --border: rgba(240, 237, 232, 0.08);
  --green: #4ade80;
  --red: #f87171;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Mock banner */
.mock-banner {
  background: rgba(201, 168, 76, 0.12);
  border-bottom: 1px solid rgba(201, 168, 76, 0.25);
  padding: 10px 48px;
  font-size: 13px;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.02em;
}

.mock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Nav */
.dash-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 48px;
  border-bottom: 1px solid var(--border);
}

.dash-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  color: var(--accent);
  letter-spacing: 0.03em;
}

.dash-nav-links {
  display: flex;
  gap: 32px;
}

.dash-nav-link {
  font-size: 14px;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.dash-nav-link:hover, .dash-nav-link.active {
  color: var(--fg);
}

.dash-nav-link.active {
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}

.dash-nav-right { display: flex; align-items: center; gap: 12px; }

.dash-plan {
  font-size: 12px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(201, 168, 76, 0.25);
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.05em;
}

/* Main */
.dash-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ROI Banner */
.roi-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 40px;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.roi-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.roi-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
}

.roi-value {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  font-weight: 400;
}

.roi-value.accent { color: var(--accent); }
.roi-value.muted { color: var(--fg-muted); }
.roi-value.green { color: var(--green); }
.roi-value.red { color: var(--red); }

.roi-divider {
  width: 1px;
  height: 50px;
  background: var(--border);
  flex-shrink: 0;
}

.roi-badge {
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 20px;
}

.roi-badge.positive {
  background: rgba(74, 222, 128, 0.12);
  color: var(--green);
  border: 1px solid rgba(74, 222, 128, 0.2);
}

.roi-badge.negative {
  background: rgba(248, 113, 113, 0.10);
  color: var(--red);
  border: 1px solid rgba(248, 113, 113, 0.2);
}

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
}

.stat-primary {
  font-family: 'DM Serif Display', serif;
  font-size: 32px;
  color: var(--fg);
  line-height: 1;
  margin-top: 4px;
}

.stat-sub {
  font-size: 13px;
  color: var(--fg-muted);
}

/* Dashboard panels */
.dash-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
}

.dash-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
}

.panel-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
}

.panel-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
}

.panel-sub {
  font-size: 12px;
  color: var(--fg-muted);
}

/* Chart */
.chart-area {
  height: 160px;
}

/* Breakdown */
.breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.breakdown-row {
  display: grid;
  grid-template-columns: 140px 1fr 100px;
  align-items: center;
  gap: 12px;
}

.breakdown-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--fg);
}

.breakdown-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.breakdown-bar-wrap {
  background: rgba(240, 237, 232, 0.06);
  border-radius: 4px;
  height: 8px;
  overflow: hidden;
}

.breakdown-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
}

.breakdown-amount {
  font-size: 13px;
  color: var(--fg);
  text-align: right;
}

.breakdown-pct {
  color: var(--fg-muted);
  font-size: 12px;
}

/* Daily table */
.daily-table {
  width: 100%;
  border-collapse: collapse;
}

.daily-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  text-align: left;
  padding: 0 12px 12px;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}

.daily-table td {
  font-size: 14px;
  color: var(--fg-muted);
  padding: 12px 12px;
  border-bottom: 1px solid rgba(240, 237, 232, 0.04);
}

.daily-table td.total-col {
  color: var(--accent);
  font-weight: 500;
}

.daily-table tr:last-child td { border-bottom: none; }
.daily-table tr:hover td { background: rgba(240, 237, 232, 0.03); }

/* Responsive */
@media (max-width: 900px) {
  .dash-nav { padding: 0 24px; }
  .dash-main { padding: 24px; }
  .mock-banner { padding: 10px 24px; }
  .stats-row { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .roi-banner { padding: 20px; gap: 20px; }
  .roi-divider { display: none; }
  .roi-badge { margin-left: 0; }
}

@media (max-width: 600px) {
  .dash-nav-links { display: none; }
  .stat-primary { font-size: 26px; }
}