/* === DASHBOARD SPECIFIC === */

/* Homeowner Dashboard */
.project-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1rem; }
.project-card { cursor: pointer; }
.project-card .project-thumb {
  height: 140px;
  background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; position: relative;
}
.project-card .project-info { padding: 1rem; }
.project-card .project-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.25rem; }
.project-card .project-meta { font-size: 0.78rem; color: var(--text-muted); display: flex; gap: 1rem; flex-wrap: wrap; }

/* Pro Cards */
.pro-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.pro-card-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--fire-600), var(--amber-500));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 700; color: white; flex-shrink: 0;
}
.pro-card-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.75rem; }
.pro-card-name { font-weight: 700; font-size: 1rem; }
.pro-card-company { font-size: 0.78rem; color: var(--text-muted); }
.pro-card-specialties { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.75rem 0; }
.pro-card-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; text-align: center; padding-top: 0.75rem; border-top: 1px solid var(--border); }
.pro-card-stat-label { font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; }
.pro-card-stat-value { font-size: 1rem; font-weight: 700; }

/* Contractor Lead Cards */
.lead-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1rem; }
.lead-card { position: relative; }
.lead-card .lead-urgency {
  position: absolute; top: 0; right: 1rem;
  padding: 0.2rem 0.6rem;
  font-size: 0.65rem; font-weight: 700;
  border-radius: 0 0 6px 6px;
  text-transform: uppercase;
}
.lead-card .lead-urgency.hot { background: var(--red-500); color: white; }
.lead-card .lead-urgency.warm { background: var(--fire-500); color: white; }
.lead-card .lead-urgency.cool { background: var(--blue-500); color: white; }
.lead-header-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.lead-type { font-weight: 700; font-size: 0.95rem; }
.lead-cost { font-size: 0.85rem; color: var(--fire-400); font-weight: 700; }
.lead-details { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 0.75rem; display: flex; flex-direction: column; gap: 0.3rem; }
.lead-detail-item { display: flex; align-items: center; gap: 0.5rem; }
.lead-detail-item .detail-icon { width: 16px; text-align: center; }
.lead-actions { display: flex; gap: 0.5rem; }

/* Contractor Profile */
.profile-header {
  display: flex; align-items: center; gap: 1.5rem;
  padding: 1.5rem; margin-bottom: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.profile-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--fire-600), var(--amber-500));
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 700; color: white; flex-shrink: 0;
}
.profile-name { font-size: 1.3rem; font-weight: 800; }
.profile-company { font-size: 0.9rem; color: var(--text-muted); }

/* Performance Chart (CSS-only bar chart) */
.chart-bars {
  display: flex; align-items: flex-end; gap: 0.5rem;
  height: 160px; padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.chart-bar {
  flex: 1;
  background: linear-gradient(to top, var(--fire-600), var(--fire-400));
  border-radius: 4px 4px 0 0;
  min-height: 8px;
  position: relative;
  transition: height 0.5s ease;
}
.chart-bar-label {
  position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%);
  font-size: 0.6rem; color: var(--text-muted); white-space: nowrap;
}
.chart-bar-value {
  position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  font-size: 0.65rem; color: var(--text-secondary); font-weight: 600;
}

/* Invoice Table */
.invoice-status { display: inline-flex; align-items: center; gap: 0.35rem; }
.invoice-dot { width: 6px; height: 6px; border-radius: 50%; }
.invoice-dot.paid { background: var(--green-500); }
.invoice-dot.pending { background: var(--amber-500); }
.invoice-dot.overdue { background: var(--red-500); }

/* Admin Charts */
.admin-chart-placeholder {
  height: 200px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 0.85rem;
  position: relative; overflow: hidden;
}
.mini-bars {
  display: flex; align-items: flex-end; gap: 3px;
  height: 100%; padding: 1.5rem 1rem 2.5rem;
  width: 100%;
}
.mini-bar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  min-height: 4px;
}

/* === AUTH PAGES === */
.auth-page {
  min-height: 100vh;
  display: flex;
}
.auth-left {
  flex: 1;
  background: linear-gradient(135deg, #1a0a00 0%, #2d1200 40%, #0f0f0f 100%);
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  padding: 3rem;
  position: relative; overflow: hidden;
}
.auth-left::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 70%, rgba(249,115,22,.12) 0%, transparent 60%),
              radial-gradient(circle at 70% 30%, rgba(245,158,11,.08) 0%, transparent 50%);
}
.auth-brand {
  position: relative; z-index: 1; text-align: center;
}
.auth-brand .brand-icon-lg { font-size: 4rem; margin-bottom: 1rem; display: block; }
.auth-brand h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.auth-brand p { color: var(--text-secondary); font-size: 1rem; max-width: 360px; }
.auth-features {
  position: relative; z-index: 1;
  margin-top: 2.5rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.auth-feature {
  display: flex; align-items: center; gap: 0.75rem;
  color: var(--text-secondary); font-size: 0.9rem;
}
.auth-feature .feat-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(249,115,22,.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.auth-right {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  background: var(--bg-primary);
}
.auth-form-wrapper {
  width: 100%; max-width: 400px;
}
.auth-form-wrapper h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.35rem; }
.auth-form-wrapper .auth-subtitle { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.75rem; }
.auth-form-wrapper .form-group { margin-bottom: 1.15rem; }
.auth-divider {
  display: flex; align-items: center; gap: 1rem;
  margin: 1.25rem 0;
  color: var(--text-muted); font-size: 0.8rem;
}
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-switch { text-align: center; margin-top: 1.5rem; font-size: 0.85rem; color: var(--text-secondary); }
.auth-switch a { font-weight: 600; }
.role-selector { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-bottom: 1.25rem; }
.role-option {
  padding: 0.85rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--bg-input);
}
.role-option:hover { border-color: var(--border-light); }
.role-option.selected { border-color: var(--fire-500); background: rgba(249,115,22,.08); }
.role-option .role-icon { font-size: 1.5rem; display: block; margin-bottom: 0.3rem; }
.role-option .role-name { font-size: 0.78rem; font-weight: 600; }

/* === LANDING PAGE === */
.landing-hero {
  min-height: 80vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 2rem;
  position: relative;
  background: radial-gradient(ellipse at 50% 80%, rgba(249,115,22,.08) 0%, transparent 60%);
}
.landing-hero h1 {
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 1rem;
  max-width: 700px;
}
.landing-hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 2rem;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

.landing-section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  font-size: 1rem;
}
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: all var(--transition);
}
.feature-card:hover { border-color: var(--fire-700); box-shadow: var(--shadow-glow); transform: translateY(-2px); }
.feature-card .feat-icon-lg {
  font-size: 2rem; margin-bottom: 1rem;
}
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }

.landing-cta {
  text-align: center; padding: 4rem 2rem;
  background: linear-gradient(135deg, rgba(249,115,22,.06), rgba(245,158,11,.04));
  border-top: 1px solid var(--border);
}
.landing-cta h2 { font-family: var(--font-display); font-size: 2rem; margin-bottom: 0.75rem; }
.landing-cta p { color: var(--text-secondary); margin-bottom: 1.5rem; }

.landing-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
  background: rgba(15,15,15,.9);
  backdrop-filter: blur(12px);
}
.landing-nav-links { display: flex; align-items: center; gap: 1.5rem; }
.landing-nav-links a { color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; }
.landing-nav-links a:hover { color: var(--text-primary); }
