.dashboard-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 30px 0 72px;
}

.dashboard-back-link {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--gold);
  font-size: 14px;
  text-decoration: none;
}

.dashboard-back-link:hover {
  text-decoration: underline;
}

.dashboard-intro {
  max-width: 780px;
  margin-bottom: 28px;
}

.dashboard-eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dashboard-intro h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.dashboard-intro > p:last-child,
.dashboard-state-card p,
.dashboard-muted {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.dashboard-state-card,
.dashboard-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.theme-light .dashboard-state-card,
.theme-light .dashboard-card {
  border-color: rgba(0, 0, 0, 0.1);
  background: rgba(0, 0, 0, 0.025);
}

.dashboard-state-card {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  padding: 20px 22px;
}

.dashboard-state-card h2 {
  margin: 0 0 6px;
  font-size: 19px;
}

.dashboard-state-card p {
  margin: 0;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.dashboard-card {
  padding: 22px;
}

.dashboard-card-wide {
  grid-column: span 2;
}

.dashboard-card-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.dashboard-card-head h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.25;
}

.dashboard-card-link {
  flex: 0 0 auto;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.dashboard-card-link:hover {
  text-decoration: underline;
}

.dashboard-metric-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.dashboard-metric-row > div {
  padding: 16px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 14px;
  background: rgba(212, 175, 55, 0.07);
}

.dashboard-metric-row span,
.dashboard-detail-list dt {
  display: block;
  color: var(--muted2);
  font-size: 12px;
  font-weight: 700;
}

.dashboard-metric-row strong {
  display: block;
  margin-top: 4px;
  font-size: 24px;
}

.dashboard-detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  margin: 0;
}

.dashboard-detail-list div {
  min-width: 0;
}

.dashboard-detail-list dd {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.dashboard-action-list,
.dashboard-list ul,
.dashboard-insight-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.dashboard-empty {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.dashboard-consent-row {
  display: grid;
  gap: 4px;
  padding: 13px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.theme-light .dashboard-consent-row {
  border-top-color: rgba(0, 0, 0, 0.08);
}

.dashboard-consent-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.dashboard-consent-row span {
  color: var(--muted);
  font-size: 13px;
}

.dashboard-insights {
  display: grid;
  gap: 14px;
}

.dashboard-insight-card {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.theme-light .dashboard-insight-card {
  border-color: rgba(0, 0, 0, 0.09);
  background: rgba(0, 0, 0, 0.025);
}

.dashboard-insight-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.dashboard-insight-card p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.dashboard-insight-card .dashboard-next-step {
  margin: 10px 0 0;
  color: var(--text);
  font-weight: 700;
}

.dashboard-muted {
  margin: 0;
}

.dashboard-saved-listings-summary {
  display: inline-flex;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
}

.dashboard-saved-listings-summary strong {
  color: var(--gold);
  font-size: 28px;
  line-height: 1;
}

.dashboard-saved-listings {
  display: grid;
  gap: 12px;
}

.dashboard-saved-listing-card {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(212, 175, 55, 0.055), transparent 42%),
    rgba(255, 255, 255, 0.025);
}

.theme-light .dashboard-saved-listing-card {
  border-color: rgba(0, 0, 0, 0.09);
  background: rgba(0, 0, 0, 0.025);
}

.dashboard-saved-listing-top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
}

.dashboard-saved-listing-card h3,
.dashboard-saved-listing-card p {
  margin: 0;
}

.dashboard-saved-listing-card h3 {
  font-size: 16px;
  line-height: 1.35;
}

.dashboard-saved-listing-top strong {
  flex: 0 0 auto;
  color: var(--gold);
  font-size: 16px;
  text-align: right;
}

.dashboard-saved-listing-top p,
.dashboard-saved-listing-specs,
.dashboard-saved-listing-provider,
.dashboard-saved-listing-date,
.dashboard-saved-listings-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.dashboard-saved-listing-specs,
.dashboard-saved-listing-provider,
.dashboard-saved-listing-date {
  margin-top: 8px !important;
}

.dashboard-saved-listing-provider {
  display: inline-flex;
  width: fit-content;
  padding: 5px 9px;
  border: 1px solid rgba(212, 175, 55, 0.24);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(212, 175, 55, 0.07);
  font-weight: 800;
}

.dashboard-saved-listing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.dashboard-saved-listing-actions .btn {
  padding: 9px 12px;
  font-size: 13px;
}

.dashboard-saved-remove {
  color: #fca5a5;
}

.dashboard-saved-listings-note {
  margin-top: 14px;
}

.dashboard-decision-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.dashboard-decision-grid section {
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 14px;
  background: rgba(212, 175, 55, 0.06);
}

.dashboard-decision-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted2);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-decision-grid strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.dashboard-saved-insight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 8px 0 10px;
}

.dashboard-saved-ai-result {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 16px;
  background: rgba(212, 175, 55, 0.07);
}

.dashboard-ai-report-kicker {
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dashboard-ai-report-summary {
  max-width: 780px;
}

.dashboard-ai-best-fit-card,
.dashboard-ai-report-section {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.theme-light .dashboard-ai-best-fit-card,
.theme-light .dashboard-ai-report-section {
  border-color: rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.68);
}

.dashboard-ai-best-fit-card span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted2);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-ai-best-fit-card strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
}

.dashboard-saved-ai-result h3 {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 18px;
}

.dashboard-saved-ai-result h4 {
  margin: 0 0 7px;
  color: var(--text);
  font-size: 13px;
}

.dashboard-saved-ai-result p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.dashboard-saved-ai-result ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.dashboard-lead-request-form {
  display: grid;
  gap: 14px;
}

.dashboard-lead-request-summary {
  display: grid;
  gap: 4px;
  padding: 13px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
}

.theme-light .dashboard-lead-request-summary {
  background: rgba(0, 0, 0, 0.045);
}

.dashboard-lead-request-summary span,
.dashboard-lead-request-summary small {
  color: var(--muted);
}

.dashboard-lead-request-field,
.dashboard-lead-request-consent {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.dashboard-lead-request-field textarea {
  width: 100%;
  min-height: 84px;
  resize: vertical;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.16);
  color: var(--text);
  padding: 12px;
  font: inherit;
}

.theme-light .dashboard-lead-request-field textarea {
  border-color: rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.72);
}

.dashboard-lead-request-consent {
  grid-template-columns: auto 1fr;
  align-items: flex-start;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.5;
}

.dashboard-lead-request-consent input {
  margin-top: 3px;
}

.dashboard-calculator-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 10px;
}

.dashboard-calculator-status {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.dashboard-calculator-status.is-error {
  color: #fca5a5;
}

.dashboard-calculator-status.is-success {
  color: #86efac;
}

.theme-light .dashboard-calculator-status.is-error {
  color: #b42318;
}

.theme-light .dashboard-calculator-status.is-success {
  color: #166534;
}

.dashboard-calculator-result {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 16px;
  background: rgba(212, 175, 55, 0.07);
}

.dashboard-calculator-result h3 {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 18px;
}

.dashboard-calculator-result p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.dashboard-calculator-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 16px;
}

.dashboard-calculator-metrics div {
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
}

.dashboard-calculator-metrics span {
  display: block;
  color: var(--muted2);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dashboard-calculator-metrics strong {
  display: block;
  margin-top: 4px;
  font-size: 15px;
}

.dashboard-calculator-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 16px;
}

.dashboard-calculator-sections section {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
  padding: 12px;
}

.dashboard-calculator-sections h4,
.dashboard-calculator-sections p {
  margin: 0;
}

.dashboard-calculator-sections h4 {
  margin-bottom: 6px;
  color: var(--text);
  font-size: 12px;
}

@media (max-width: 820px) {
  .dashboard-state-card,
  .dashboard-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-grid,
  .dashboard-detail-list,
  .dashboard-calculator-metrics,
  .dashboard-decision-grid,
  .dashboard-calculator-sections {
    grid-template-columns: 1fr;
  }

  .dashboard-card-wide {
    grid-column: span 1;
  }
}
