:root {
  --bg: #07120e;
  --surface: #0e1f19;
  --surface-2: #142c23;
  --border: #204235;
  --text: #ecfdf5;
  --muted: #94b8a8;
  --accent: #10b981;
  --accent-hover: #34d399;
  --halal: #10b981;
  --mushbooh: #f59e0b;
  --haram: #ef4444;
  --radius: 12px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 18px; }

header.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(7, 18, 14, 0.95);
  position: sticky;
  top: 0;
  z-index: 20;
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  flex-wrap: wrap;
}
.brand { font-weight: 800; font-size: 1.15rem; color: var(--text); }
.brand span { color: var(--accent); }
.nav-links { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.92rem; }
.nav-links a { color: var(--muted); font-weight: 600; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

.hero { padding: 22px 0 10px; }
.hero h1 { margin: 0 0 6px; font-size: clamp(1.55rem, 3vw, 2.2rem); line-height: 1.2; }
.hero p { margin: 0; color: var(--muted); font-size: 0.98rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin: 18px 0;
}
.card h2, .card h3 { margin-top: 0; line-height: 1.3; }

.search-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.search-bar input {
  flex: 1 1 260px;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 1.05rem;
  font-weight: 600;
}
.search-bar input:focus { outline: 2px solid var(--accent); border-color: transparent; }

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  align-items: center;
}
button.pill {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}
button.pill.active, button.pill:hover { border-color: var(--accent); color: var(--accent); }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-halal { background: rgba(16, 185, 129, 0.16); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }
.badge-mushbooh { background: rgba(245, 158, 11, 0.16); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.4); }
.badge-haram { background: rgba(239, 68, 68, 0.16); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.4); }

.e-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.e-table th, .e-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.e-table th { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; }
.e-code { font-weight: 900; font-size: 1rem; white-space: nowrap; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}
.chip:hover { border-color: var(--accent); text-decoration: none; }

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

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 22px 0 36px;
  margin-top: 32px;
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 640px) {
  .e-table th:nth-child(4), .e-table td:nth-child(4) { display: none; }
}
