:root{
  --eg-bg:#0b0f14;
  --eg-surface:#121821;
  --eg-surface-2:#192230;
  --eg-card:#111827;
  --eg-text:#f3f4f6;
  --eg-muted:#9ca3af;
  --eg-line:rgba(255,255,255,0.08);
  --eg-primary:#7c3aed;
  --eg-primary-2:#a78bfa;
  --eg-success:#10b981;
  --eg-warning:#f59e0b;
  --eg-danger:#ef4444;
  --eg-radius:18px;
  --eg-radius-sm:12px;
  --eg-shadow:0 10px 30px rgba(0,0,0,0.18);
  --eg-max:1280px;
}

.eg-shell{
  max-width:var(--eg-max);
  margin:0 auto;
  padding:24px;
}

.eg-page-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:20px;
  margin-bottom:24px;
  flex-wrap:wrap;
}

.eg-title{
  font-size:clamp(1.75rem,2vw,2.5rem);
  line-height:1.1;
  font-weight:800;
  margin:0 0 8px;
  color:var(--eg-text);
}

.eg-subtitle{
  color:var(--eg-muted);
  margin:0;
  max-width:720px;
}

.eg-toolbar{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
  margin-bottom:20px;
}

.eg-input,
.eg-select,
.eg-button{
  border-radius:14px;
  border:1px solid var(--eg-line);
  background:#fff;
  padding:12px 14px;
  font-size:14px;
}

.eg-button{
  background:var(--eg-primary);
  color:#fff;
  border:none;
  font-weight:700;
  cursor:pointer;
  transition:.2s ease;
}

.eg-button:hover{
  transform:translateY(-1px);
  opacity:.95;
}

.eg-button-secondary{
  background:#fff;
  color:#111827;
  border:1px solid #e5e7eb;
}

.eg-grid{
  display:grid;
  gap:20px;
}

.eg-grid-4{
  grid-template-columns:repeat(4,minmax(0,1fr));
}

.eg-grid-3{
  grid-template-columns:repeat(3,minmax(0,1fr));
}

.eg-grid-sidebar{
  grid-template-columns:300px minmax(0,1fr);
  align-items:start;
}

.eg-card{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:22px;
  overflow:hidden;
  box-shadow:0 10px 25px rgba(17,24,39,0.06);
}

.eg-card-body{
  padding:18px;
}

.eg-card-title{
  font-size:1.05rem;
  font-weight:800;
  margin:0 0 6px;
  color:#111827;
}

.eg-card-meta{
  color:#6b7280;
  font-size:14px;
  margin-bottom:12px;
}

.eg-price{
  font-size:1.15rem;
  font-weight:800;
  color:#111827;
}

.eg-badges{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:12px 0;
}

.eg-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  border-radius:999px;
  padding:7px 10px;
  font-size:12px;
  font-weight:700;
  background:#f3f4f6;
  color:#111827;
}

.eg-badge-verified{
  background:#ecfdf5;
  color:#047857;
}

.eg-badge-featured{
  background:#f5f3ff;
  color:#6d28d9;
}

.eg-filter-panel{
  position:sticky;
  top:24px;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:22px;
  padding:18px;
  box-shadow:0 10px 25px rgba(17,24,39,0.06);
}

.eg-filter-group{
  margin-bottom:18px;
}

.eg-filter-group h4{
  margin:0 0 10px;
  font-size:14px;
  color:#111827;
}

.eg-chip-row{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.eg-chip{
  border:1px solid #e5e7eb;
  border-radius:999px;
  padding:8px 12px;
  font-size:13px;
  background:#fff;
  cursor:pointer;
}

.eg-results-bar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom:18px;
}

.eg-empty{
  background:#fff;
  border:1px dashed #d1d5db;
  border-radius:22px;
  padding:34px 20px;
  text-align:center;
  color:#6b7280;
}

.eg-stat-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
}

.eg-stat{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:22px;
  padding:18px;
}

.eg-stat-label{
  font-size:13px;
  color:#6b7280;
  margin-bottom:10px;
}

.eg-stat-value{
  font-size:1.5rem;
  font-weight:800;
  color:#111827;
}

@media (max-width: 1024px){
  .eg-grid-4,
  .eg-grid-3{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .eg-grid-sidebar{
    grid-template-columns:1fr;
  }

  .eg-filter-panel{
    position:relative;
    top:auto;
  }

  .eg-stat-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width: 640px){
  .eg-shell{
    padding:16px;
  }

  .eg-grid-4,
  .eg-grid-3,
  .eg-stat-grid{
    grid-template-columns:1fr;
  }
  
  .eg-progress{
  width:100%;
  height:12px;
  background:#e5e7eb;
  border-radius:999px;
  overflow:hidden;
  margin-top:10px;
}

.eg-progress-bar{
  height:100%;
  background:linear-gradient(90deg, var(--eg-primary), var(--eg-primary-2));
  border-radius:999px;
  transition:width .3s ease;
}

.eg-trend-list{
  display:grid;
  gap:10px;
}

.eg-trend-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:10px 12px;
  border:1px solid #e5e7eb;
  border-radius:14px;
}

.eg-kpi-note{
  font-size:13px;
  color:#6b7280;
  margin-top:8px;
}

.eg-favorite-toggle.is-favorited{
  border-color: #c4b5fd;
  background:#f5f3ff;
  color:#5b21b6;
}
  .eg-page-header{
    align-items:flex-start;
  }
}