.dashboard-grid { display:grid; grid-template-columns:1fr 280px; gap:14px; margin-top:14px; }
.analytics-header { display:flex; justify-content:space-between; align-items:center; padding:16px 16px 0; flex-wrap:wrap; gap:8px; }
.analytics-title  { font-size:14px; font-weight:600; }
.analytics-badge  { background:rgba(22,163,74,0.14); color:var(--green); font-size:11px; padding:3px 8px; border-radius:20px; font-weight:600; }
.tf-tabs { display:flex; gap:3px; background:var(--card2); border-radius:8px; padding:3px; }
.tf-tab  { background:none; border:none; font-size:11.5px; font-weight:600; color:var(--muted); padding:4px 9px; border-radius:6px; cursor:pointer; transition:color 150ms, background 150ms; }
.tf-tab:hover { color:var(--text); }
.tf-tab-active { background:#fff; color:var(--primary); box-shadow:0 1px 4px rgba(37,99,200,0.15); }
.activity-list { padding:14px 16px; display:flex; flex-direction:column; gap:10px; }
.activity-item { display:flex; align-items:flex-start; gap:10px; font-size:12.5px; color:var(--muted); padding-bottom:10px; border-bottom:1px solid var(--border); }
.activity-item:last-child { border-bottom:none; padding-bottom:0; }
.activity-dot  { width:7px; height:7px; border-radius:50%; margin-top:4px; flex-shrink:0; }
.activity-text { flex:1; line-height:1.4; }
.activity-time { font-size:11px; color:var(--muted); margin-top:2px; }
.bottom-bar { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:14px; }
.bottom-stat { padding:16px 20px; display:flex; align-items:center; gap:14px; }
.bottom-stat-icon { font-size:22px; }
.bottom-stat-val  { font-size:22px; font-weight:700; }
.bottom-stat-lbl  { font-size:11px; color:var(--muted); }
.rl-header { display:flex; justify-content:space-between; align-items:center; padding:14px 18px; border-bottom:1px solid var(--border); }
.rl-title  { font-size:14px; font-weight:600; }
.rl-link   { font-size:12px; color:var(--primary2); cursor:pointer; }
.rl-item   { display:flex; align-items:center; gap:14px; padding:12px 18px; border-bottom:1px solid var(--border); cursor:pointer; transition:background 150ms; }
.rl-item:last-child { border-bottom:none; }
.rl-item:hover { background:rgba(37,99,200,0.04); }
.rl-img    { width:42px; height:42px; border-radius:8px; background:var(--card2); display:flex; align-items:center; justify-content:center; font-size:20px; flex-shrink:0; }
.rl-name   { font-size:13px; font-weight:500; }
.rl-meta   { font-size:11px; color:var(--muted); margin-top:2px; }
.rl-price  { font-size:14px; font-weight:700; color:var(--primary2); margin-left:auto; }

/* ── Stats row ── */
.home-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.home-stat-card {
  background: #fff;
  border: 1px solid rgba(37,99,235,0.18);
  border-radius: 10px;
  padding: 14px 16px;
}
.home-stat-val {
  font-size: 24px;
  font-weight: 600;
  color: #18181b;
  line-height: 1.1;
  margin-bottom: 4px;
}
.home-stat-label {
  font-size: 11px;
  font-weight: 500;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ── Hero CTA ── */
.cta-widget {
  background: #fff;
  border: 1px solid rgba(37,99,235,0.18);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 16px;
  display: flex;
  gap: 24px;
  align-items: center;
}
.cta-left { flex: 1; min-width: 0; }
.cta-left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.cta-camera-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 12px;
}
.cta-title { font-size: 15px; font-weight: 600; color: #18181b; margin-bottom: 6px; }
.cta-desc  { font-size: 13px; color: #52525b; line-height: 1.5; margin-bottom: 14px; }
.cta-steps { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.cta-step  { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #52525b; }
.cta-step-num {
  width: 18px; height: 18px; border-radius: 50%;
  background: #2563eb;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.cta-analyze-btn {
  align-self: flex-start;
  height: 40px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  transition: background 150ms, border-color 150ms;
}

/* ── Hero right: photo strip ── */
.cta-right { display: flex; align-items: center; justify-content: center; }
.cta-photo-strip {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}
.cta-photo-thumb {
  width: 100%;
  height: 68px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e4e4e7;
  display: block;
}

/* ── Account button ── */
.home-account-btn {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; padding: 8px 14px; height: 36px;
  transition: background 150ms, border-color 150ms;
}

/* ── Tips card ── */
.home-tips-card {
  background: #fff;
  border: 1px solid rgba(37,99,235,0.18);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 16px;
}
.home-tips-title {
  font-size: 11px; font-weight: 600; color: #71717a;
  text-transform: uppercase; letter-spacing: .05em;
  margin-bottom: 12px;
}
.home-tips-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}
.home-tip-item { display: flex; gap: 8px; align-items: flex-start; }
.home-tip-check {
  width: 18px; height: 18px; border-radius: 50%;
  background: #f0fdf4; border: 1px solid #bbf7d0;
  display: flex; align-items: center; justify-content: center;
  color: #16a34a; flex-shrink: 0; margin-top: 1px;
}
.home-tip-text { font-size: 13px; color: #52525b; line-height: 1.5; }

/* ── Section wrapper ── */
.home-section { margin-bottom: 32px; }
.home-section-label {
  font-size: 11px; font-weight: 600; color: #71717a;
  text-transform: uppercase; letter-spacing: .07em;
  margin-bottom: 8px;
}

/* ── Recent Activity ── */
.home-activity-list {
  background: #fff;
  border: 1px solid rgba(37,99,235,0.18);
  border-radius: 10px;
  overflow: hidden;
}
.home-activity-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid #f4f4f5;
  cursor: pointer;
  transition: background 150ms;
}
.home-activity-row:last-child { border-bottom: none; }
.home-activity-row:hover { background: #fafafa; }
.home-activity-thumb { flex-shrink: 0; }
.home-activity-img {
  width: 40px; height: 40px; border-radius: 6px;
  object-fit: cover; border: 1px solid #e4e4e7; display: block;
}
.home-activity-img-placeholder {
  width: 40px; height: 40px; border-radius: 6px;
  background: #f4f4f5; border: 1px solid #e4e4e7;
  display: flex; align-items: center; justify-content: center;
  color: #a1a1aa;
}
.home-activity-meta { flex: 1; min-width: 0; }
.home-activity-name { font-size: 13px; font-weight: 500; color: #18181b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-activity-sub  { font-size: 11px; color: #71717a; margin-top: 1px; }
.home-demand-pill   { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 20px; flex-shrink: 0; }
.home-activity-price { font-size: 13px; font-weight: 600; color: #18181b; flex-shrink: 0; min-width: 36px; text-align: right; }
.home-activity-time  { font-size: 11px; color: #a1a1aa; flex-shrink: 0; min-width: 56px; text-align: right; }

/* ── Empty state ── */
.home-empty-state {
  background: #fff;
  border: 1px solid rgba(37,99,235,0.18);
  border-radius: 10px;
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #a1a1aa;
  text-align: center;
}
.home-empty-title { font-size: 14px; font-weight: 600; color: #52525b; margin-top: 4px; }
.home-empty-sub   { font-size: 13px; color: #a1a1aa; line-height: 1.5; }
.home-empty-cta   { margin-top: 12px; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; padding: 8px 16px; height: 36px; transition: background 150ms, border-color 150ms; }

/* ── Tools ── */
.home-tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.home-tool-card {
  background: #fff;
  border: 1px solid rgba(37,99,235,0.18);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  transition: background 150ms, border-color 150ms, box-shadow 150ms;
}
.home-tool-card:hover  { background: #fafafa; border-color: #d4d4d8; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.home-tool-card:active { background: #f4f4f5; box-shadow: none; }
.home-tool-ico {
  width: 30px; height: 30px; border-radius: 6px;
  background: #eff6ff; border: 1px solid #dbeafe;
  display: flex; align-items: center; justify-content: center;
  color: #2563eb; flex-shrink: 0;
}
.home-tool-body { flex: 1; min-width: 0; }
.home-tool-title { font-size: 13px; font-weight: 600; color: #18181b; margin-bottom: 2px; }
.home-tool-desc  { font-size: 11.5px; color: #71717a; line-height: 1.4; }
.home-tool-chevron { color: #a1a1aa; flex-shrink: 0; display: flex; align-items: center; }

/* ── How It Works ── */
.hiw-card {
  background: #fff;
  border: 1px solid rgba(37,99,235,0.18);
  border-radius: 12px;
  display: flex;
  align-items: stretch;
}
.hiw-step {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hiw-step-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
}
.hiw-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hiw-ico {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  flex-shrink: 0;
}
.hiw-title { font-size: 15px; font-weight: 600; color: #18181b; }
.hiw-body  { font-size: 14px; color: #52525b; line-height: 1.5; }
.hiw-divider {
  width: 1px;
  background: #e4e4e7;
  flex-shrink: 0;
  margin: 16px 0;
}

.home-open-tools-btn {
  font-size: 13px; padding: 8px 16px; height: 36px;
  display: inline-flex; align-items: center;
  transition: background 150ms, border-color 150ms;
}

@media (max-width: 640px) {
  .cta-widget { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; }
  .home-tips-grid { grid-template-columns: 1fr !important; gap: 8px; }
  .home-tools-grid { grid-template-columns: 1fr !important; gap: 8px; }
  .home-tool-card { min-height: 44px; }
  .home-activity-row { min-height: 44px; }
  .hiw-card { flex-direction: column !important; }
  .hiw-divider { width: auto !important; height: 1px !important; margin: 0 16px !important; }
  /* Stats row: 2 columns on mobile to avoid tiny 4-col layout */
  .home-stats-row { grid-template-columns: 1fr 1fr !important; gap: 8px; }
  .home-stat-val { font-size: 20px; }
  /* CTA right photo strip: hide on very small screens to save space */
  .cta-right { display: none; }
  /* Open tools button: full width */
  .home-open-tools-btn { width: 100%; justify-content: center; }
}
