/* ===== DASHBOARD CHROME ===== */
.dash-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.01em;
}

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

.nav-badge {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 4px 12px;
  border-radius: 100px;
}

.nav-date {
  font-size: 0.85rem;
  color: var(--fg-muted);
}

.dash-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 80px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ===== STAT STRIP ===== */
.stat-strip {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.stat-tile {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 24px 28px;
  flex: 1;
  min-width: 130px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-tile.accent {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.st-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.st-label {
  font-size: 0.8rem;
  color: var(--fg-muted);
  font-weight: 500;
}

/* ===== GRID ===== */
.dash-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: start;
}

.dash-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ===== CARD BASE ===== */
.dash-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--card-border);
  gap: 12px;
  flex-wrap: wrap;
}

.card-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.01em;
}

/* ===== FILTER TABS ===== */
.filter-tabs {
  display: flex;
  gap: 4px;
}

.ftab {
  background: none;
  border: 1px solid var(--card-border);
  color: var(--fg-muted);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.15s;
}

.ftab:hover {
  border-color: var(--accent);
  color: var(--fg);
}

.ftab.active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== LEADS LIST ===== */
.leads-list {
  display: flex;
  flex-direction: column;
}

.lead-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--card-border);
  gap: 16px;
  transition: background 0.1s;
}

.lead-row:last-child {
  border-bottom: none;
}

.lead-row:hover {
  background: rgba(255,255,255,0.02);
}

.lead-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.lead-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lead-meta {
  display: flex;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--fg-muted);
  flex-wrap: wrap;
}

.lead-source {
  font-size: 0.72rem;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 1px 8px;
  border-radius: 100px;
}

.lead-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.lead-date {
  font-size: 0.75rem;
  color: var(--fg-muted);
  white-space: nowrap;
}

/* Status badges */
.status-badge {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
}

.status-new      { background: rgba(100,100,255,0.12); color: #8888ff; }
.status-contacted { background: rgba(255,200,0,0.12); color: #ffcc44; }
.status-booked   { background: var(--accent-dim); color: var(--accent); }

/* Action buttons */
.status-actions {
  display: flex;
  gap: 6px;
}

.sa-btn {
  background: none;
  border: 1px solid var(--card-border);
  color: var(--fg-muted);
  font-family: var(--font-body);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.sa-btn:hover {
  border-color: var(--fg-muted);
  color: var(--fg);
}

.sa-btn.accent-btn {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.sa-btn.accent-btn:hover {
  background: rgba(0, 230, 118, 0.22);
}

/* ===== EMPTY STATE ===== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 48px 24px;
  color: var(--fg-muted);
  font-size: 0.9rem;
  text-align: center;
}

.empty-state.small {
  padding: 24px;
}

.empty-icon {
  font-size: 2rem;
}

/* ===== CALENDAR ===== */
.cal-nav {
  display: flex;
  gap: 4px;
}

.cal-arrow {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 1.3rem;
  line-height: 1;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.15s;
  border: 1px solid var(--card-border);
}

.cal-arrow:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  padding: 16px;
}

.cal-dow {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--fg-muted);
  font-family: var(--font-display);
  padding: 6px 0;
}

.cal-cell {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  border-radius: 8px;
  cursor: default;
  position: relative;
  gap: 2px;
  transition: background 0.1s;
}

.cal-cell:hover {
  background: rgba(255,255,255,0.04);
}

.cal-cell.empty {
  pointer-events: none;
}

.cal-cell.today {
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 700;
}

.cal-cell.has-appt {
  font-weight: 600;
  color: var(--fg);
}

.cal-dot {
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  display: block;
}

/* ===== UPCOMING ===== */
.upcoming-list {
  display: flex;
  flex-direction: column;
}

.upcoming-row {
  display: flex;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--card-border);
  align-items: flex-start;
}

.upcoming-row:last-child {
  border-bottom: none;
}

.upcoming-date-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 52px;
}

.upd-day {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.upd-time {
  font-size: 0.72rem;
  color: var(--fg-muted);
  white-space: nowrap;
}

.upcoming-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.upd-name {
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--font-display);
}

.upd-notes {
  font-size: 0.78rem;
  color: var(--fg-muted);
}

/* ===== TREND BARS ===== */
.trend-section {
  /* full-width row */
}

.trend-bars {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding: 24px 24px 8px;
  height: 160px;
  box-sizing: content-box;
}

.trend-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
}

.trend-bar-wrap {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
}

.tbar-bg {
  width: 100%;
  background: rgba(255,255,255,0.07);
  border-radius: 6px 6px 0 0;
  position: relative;
  min-height: 4px;
  transition: height 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.tbar-booked {
  width: 100%;
  background: var(--accent);
  border-radius: 6px 6px 0 0;
  min-height: 0;
  transition: height 0.3s;
}

.tbar-count {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--fg-muted);
}

.tbar-label {
  font-size: 0.72rem;
  color: var(--fg-muted);
}

.trend-legend {
  display: flex;
  gap: 20px;
  padding: 8px 24px 20px;
}

.tleg {
  font-size: 0.75rem;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.tleg::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
}

.tleg-total::before  { background: rgba(255,255,255,0.15); }
.tleg-booked::before { background: var(--accent); }

/* ===== MOBILE ===== */
@media (max-width: 900px) {
  .dash-grid {
    grid-template-columns: 1fr;
  }

  .stat-strip {
    gap: 10px;
  }

  .stat-tile {
    min-width: 100px;
    padding: 18px 16px;
  }

  .st-number {
    font-size: 1.6rem;
  }

  .filter-tabs {
    flex-wrap: wrap;
  }

  .lead-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .lead-right {
    flex-wrap: wrap;
  }
}
