/* Noor Consult — app styling (amber). Loaded on top of core/app.css.
   Scoped under .theme-consult so the local color vars don't leak to other apps. */
.theme-consult {
  --grad-green: linear-gradient(135deg, #f59e0b, #92400e);
  --green: #b45309;
  --green-dark: #92400e;
  --tint-green: #fbe6cf;
  --card: #fff;
  --line: #eee3d6;
  --muted: #6b5b48;
}

/* ── Hero ─────────────────────────────────────────────────────────── */
.cs-hero { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center;
  padding: clamp(30px, 5vw, 56px); margin: 10px 0 6px; border-radius: var(--radius-lg, 26px); color: #fff;
  background: var(--grad-green); box-shadow: 0 22px 48px rgba(146, 64, 14, 0.22); }
.cs-hero-mark { width: 88px; height: 88px; display: grid; place-items: center; border-radius: 24px;
  background: rgba(255,255,255,0.16); font-size: 46px; }
.cs-hero h1 { margin: 0; font-size: clamp(2.2rem, 4.5vw, 3.2rem); line-height: 1.03; letter-spacing: -.022em; color: #fff; }
.cs-hero p { margin: 7px 0 0; max-width: 68ch; color: rgba(255,255,255,0.93); line-height: 1.55; }
.cs-hero-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.cs-hero-btn { font-size: 15px; font-weight: 700; padding: 11px 18px; border-radius: 14px; }
.cs-hero-btn-ghost { background: rgba(255,255,255,0.16); color: #fff; border: 1px solid rgba(255,255,255,0.5); }
.cs-hero-btn-ghost:hover { background: rgba(255,255,255,0.26); }

/* ── How it works ─────────────────────────────────────────────────── */
.cs-steps { list-style: none; margin: 6px 0; padding: 0; display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.cs-step { display: flex; align-items: flex-start; gap: 12px; padding: 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.cs-step-n { flex: 0 0 auto; width: 26px; height: 26px; display: grid; place-items: center;
  border-radius: 50%; background: var(--grad-green); color: #fff; font-weight: 800; font-size: 14px; }
.cs-step-ic { font-size: 22px; line-height: 1; flex: 0 0 auto; }
.cs-step div { display: flex; flex-direction: column; gap: 3px; }
.cs-step strong { color: #2a1e12; font-size: 15px; }
.cs-step span:last-child { font-size: 13px; color: var(--muted); line-height: 1.45; }

/* ── Trust banner ─────────────────────────────────────────────────── */
.cs-trust { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 16px 0 6px; padding: 18px 20px; border-radius: 18px;
  background: var(--tint-green); border: 1px solid #f0cfa3; }
.cs-trust-head { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; }
.cs-trust-head h2 { margin: 0; font-size: 1.15rem; color: var(--green-dark); }
.cs-trust-item { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: #4a3524; }
.cs-trust-item .ic { font-size: 20px; line-height: 1; flex: 0 0 auto; }
.cs-trust-item strong { color: #3a2a1a; }

/* ── Stats ────────────────────────────────────────────────────────── */
.cs-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0 6px; }
.cs-stat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; text-align: center; }
.cs-stat .n { font-size: 1.7rem; font-weight: 800; color: var(--green-dark); line-height: 1; }
.cs-stat .l { font-size: 12.5px; color: var(--muted); margin-top: 5px; font-weight: 600; }

/* ── Category chips ───────────────────────────────────────────────── */
.cs-cats { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.cs-cat { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 14px;
  text-decoration: none; color: #3a2a1a; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.cs-cat:hover { border-color: #e3b884; box-shadow: 0 6px 16px rgba(146,64,14,.08); }
.cs-cat.active { background: var(--grad-green); color: #fff; border-color: transparent; }
.cs-cat .ic { font-size: 18px; }

/* ── Filters ──────────────────────────────────────────────────────── */
.cs-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; text-decoration: none; color: #3a2a1a; background: #f7ede1; border: 1px solid transparent; }
.chip:hover { background: #f0e1d0; }
.chip.active { background: var(--grad-green); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── Consultant grid + cards ──────────────────────────────────────── */
.cs-grid { display: grid; gap: 16px; margin-top: 14px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.cs-card { display: flex; flex-direction: column; gap: 10px; padding: 18px; background: var(--card);
  border: 1px solid var(--line); border-radius: 18px; text-decoration: none; color: inherit;
  transition: box-shadow .15s ease, transform .15s ease; }
.cs-card:hover { box-shadow: 0 14px 32px rgba(146,64,14,.14); transform: translateY(-3px); }
.cs-card-top { display: flex; gap: 13px; align-items: center; }
.cs-avatar { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; flex: 0 0 auto;
  background: var(--tint-green); display: grid; place-items: center; font-weight: 800; color: var(--green-dark); font-size: 22px; }
.cs-name { font-weight: 800; font-size: 17px; color: #2a1e12; }
.cs-headline { font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.cs-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.cs-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cs-tag { font-size: 11.5px; font-weight: 600; color: #6b5b48; background: #f7ede1; border-radius: 999px; padding: 3px 10px; }
.cs-rating { font-size: 13px; color: #6b5b48; }
.cs-rating b { color: #b45309; }
.cs-card-cta { margin-top: 2px; font-size: 13px; font-weight: 700; color: var(--green); }
.cs-card:hover .cs-card-cta { text-decoration: underline; }

/* ── Badges + pills ───────────────────────────────────────────────── */
.cs-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 3px 9px; }
.cs-badge.verified { background: #e8f5ee; color: #137a4b; }
.cs-badge.id { background: #eaf0fb; color: #2a4fb0; }
.cs-badge.vouched { background: var(--tint-green); color: #92400e; }
.cs-badge.est { background: #f3e9fb; color: #7c3aed; }
.cs-price { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 11px; background: var(--tint-green); color: #92400e; }
.cs-price.free { background: #e8f5ee; color: #137a4b; }
.pill-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700;
  border-radius: 999px; padding: 3px 10px; background: #f1f0ea; color: #6b5b48; }
.pill-tag.green { background: #e8f5ee; color: #137a4b; }
.pill-tag.amber { background: var(--tint-green); color: #92400e; }
.pill-tag.red { background: #fbeae8; color: #b3261e; }

.cs-empty { text-align: center; color: var(--muted); margin: 30px 0; padding: 24px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.cs-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 26px 0 4px; flex-wrap: wrap; }
.cs-section-head h2 { margin: 0; font-size: 1.25rem; }
.cs-back { font-size: 13.5px; font-weight: 700; color: var(--green); text-decoration: none; display: inline-block; }
.cs-back:hover { text-decoration: underline; }
.cs-cta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 10px; padding: 16px 18px;
  border-radius: 14px; background: var(--tint-green); border: 1px solid #f0cfa3; }
.cs-cta-note { font-size: 13px; color: #6b5b48; flex: 1; min-width: 200px; }

/* ── Profile page ─────────────────────────────────────────────────── */
.cs-prof-hero { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; padding: 24px; border-radius: 20px;
  background: var(--grad-green); color: #fff; margin: 12px 0 16px; }
.cs-prof-hero .cs-avatar { width: 84px; height: 84px; font-size: 30px; background: rgba(255,255,255,.2); color: #fff; }
.cs-prof-hero h1 { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); color: #fff; }
.cs-prof-hero .cs-headline { color: rgba(255,255,255,.92); font-size: 1.05rem; margin-top: 4px; }
.cs-prof-hero .cs-badges .cs-badge { background: rgba(255,255,255,.2); color: #fff; }
.cs-prof-section { margin: 22px 0; }
.cs-prof-section > h2 { font-size: 1.25rem; margin: 0 0 12px; }
.cs-bio { line-height: 1.7; color: #33261a; max-width: 74ch; }

/* ── Service cards ────────────────────────────────────────────────── */
.cs-services { display: grid; gap: 12px; }
.cs-service { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: var(--card); }
.cs-svc-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.cs-svc-title { font-weight: 800; color: #2a1e12; }
.cs-svc-meta { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.cs-svc-desc { font-size: 14px; color: #4a3524; margin-top: 8px; line-height: 1.55; }

.cs-reviews { display: grid; gap: 10px; }
.cs-review { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; }
.cs-rev-top { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.cs-stars { color: #d97706; }

/* ── Forms ────────────────────────────────────────────────────────── */
.field-label { display: grid; gap: 4px; }
.field-label .meta, .meta { font-size: 12.5px; color: var(--muted); }
.city-input { width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; font-size: 14px; font-family: inherit; }
.city-input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(217,119,6,.18); }
.icon-btn { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; border-radius: 9px;
  border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 15px; text-decoration: none; }
.icon-btn:hover { background: var(--tint-green); }
.icon-btn.danger:hover { background: #fbeae8; border-color: #e6b4ad; }
.icon-btn.go:hover { background: #e8f5ee; }

/* ── Admin ────────────────────────────────────────────────────────── */
.nc-admin-note { background: #f7f3ec; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 14px; font-size: 13.5px; color: #4a3524; margin: 10px 0; }
.admin-subnav { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 18px;
  padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.admin-subnav .home-link { font-weight: 700; color: var(--green); margin-right: 8px; text-decoration: none; }
.admin-subnav .tab { padding: 6px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  color: #4a3524; text-decoration: none; }
.admin-subnav .tab:hover { background: var(--tint-green); }
.admin-subnav .tab.active { background: var(--grad-green); color: #fff; }

.admin-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.admin-card { display: flex; gap: 12px; align-items: center; padding: 16px; background: var(--card);
  border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: inherit; }
.admin-card:hover { box-shadow: 0 10px 24px rgba(146,64,14,.10); }
.admin-card .ic { font-size: 26px; flex: 0 0 auto; }
.admin-card .body { flex: 1; }
.admin-card .t { font-weight: 800; color: #2a1e12; }
.admin-card .d { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.badge-count { min-width: 24px; height: 24px; padding: 0 7px; display: inline-grid; place-items: center;
  border-radius: 999px; background: var(--green); color: #fff; font-weight: 800; font-size: 12.5px; }
.badge-count.zero { background: #e7e0d4; color: #8a7f5c; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; margin: 12px 0; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 560px; }
.admin-table th, .admin-table td { text-align: start; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table thead th { background: #f7f3ec; font-weight: 700; color: #4a3524; white-space: nowrap; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table .primary-cell { font-weight: 700; color: #2a1e12; }
.admin-table .num { text-align: end; white-space: nowrap; }
.admin-table .lbl { display: block; font-size: 11.5px; color: var(--muted); }

/* ── Areas CRUD ───────────────────────────────────────────────────── */
.crud-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.crud-title-wrap { display: flex; align-items: center; gap: 10px; }
.crud-count { background: var(--tint-green); color: var(--green-dark); font-weight: 800; font-size: 13px;
  border-radius: 999px; padding: 2px 10px; }
.edit-panel { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin: 12px 0; }
.edit-panel.editing { border-color: var(--green); box-shadow: 0 0 0 3px rgba(217,119,6,.12); }
.crud-edit { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-top: 10px; }
.crud-edit .lbl { display: grid; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 600; }
.crud-list { display: grid; gap: 8px; margin-top: 12px; }
.crud-row { display: flex; gap: 12px; align-items: center; padding: 12px 14px; background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; }
.crud-row.editing { border-color: var(--green); }
.crud-ic { font-size: 22px; flex: 0 0 auto; }
.crud-main { flex: 1; }
.crud-name { font-weight: 700; color: #2a1e12; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.crud-sub { font-size: 12px; color: var(--muted); display: flex; gap: 10px; margin-top: 3px; flex-wrap: wrap; }
.crud-actions { display: flex; gap: 6px; align-items: center; }
.crud-empty { text-align: center; color: var(--muted); padding: 30px; }
.crud-empty .ic { font-size: 34px; }

.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); }
