/* ===== مختلف front-end layer ===== */
:root {
  --mh-dark: #34383d;
  --mh-dark-2: #2b2f33;
  --mh-amber: var(--mh-accent);
  --mh-amber-dark: #e09b06;
  --mh-green: #52b035;
  --mh-body: #f8f8f8;
  --mh-text: #222222;
  --mh-muted: #6d6d6d;
  --mh-border: #e6e6e6;
  --mh-radius: 4px;
}

html, body { background: var(--mh-body); }
body {
  font-family: "Noto Kufi Arabic", "Open Sans", "Helvetica Neue", Arial, sans-serif;
  color: var(--mh-text);
  direction: rtl;
  text-align: right;
}
a { text-decoration: none; }
img { max-width: 100%; }

/* ---------- header ---------- */
.site-header {
  background: var(--mh-dark);
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.site-header .header-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 60px;
}
.hdr-burger {
  background: none;
  border: 0;
  padding: 6px;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}
.hdr-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}
.hdr-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-family: "Noto Kufi Arabic", sans-serif;
  font-weight: 700;
  font-size: 25px;
  color: #fff;
  line-height: 1;
  letter-spacing: -.5px;
}
.hdr-logo .logo-mark {
  color: var(--mh-amber);
  font-size: 27px;
  transform: translateY(1px);
}
.hdr-logo:hover { color: #fff; }
.hdr-cats {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  padding: 6px 4px;
}
.hdr-cats svg { width: 15px; height: 15px; fill: #fff; opacity: .85; }
.hdr-cats:hover { color: var(--mh-amber); }
.hdr-cats:hover svg { fill: var(--mh-amber); }
.hdr-cats-menu {
  display: none;
  position: absolute;
  top: 46px;
  right: 0;
  background: #fff;
  min-width: 250px;
  border-radius: var(--mh-radius);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  padding: 8px 0;
  z-index: 1100;
  text-align: right;
}
.hdr-cats:hover .hdr-cats-menu,
.hdr-cats:focus-within .hdr-cats-menu { display: block; }
.hdr-cats-menu a {
  display: block;
  padding: 9px 16px;
  color: var(--mh-text);
  font-size: 14px;
}
.hdr-cats-menu a:hover { background: var(--mh-body); color: var(--mh-amber-dark); }
.hdr-actions {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hdr-icon {
  color: #fff;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  position: relative;
}
.hdr-icon:hover { color: var(--mh-amber); }
.hdr-icon svg { width: 19px; height: 19px; fill: currentColor; }
.hdr-icon .dot {
  position: absolute;
  top: 2px;
  left: 2px;
  background: var(--mh-amber);
  color: #222;
  font-size: 10px;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  padding: 0 3px;
}
.hdr-btn {
  border: 1px solid rgba(255,255,255,.55);
  color: #fff;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: var(--mh-radius);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-family: "Noto Kufi Arabic", sans-serif;
}
.hdr-btn:hover { background: #fff; color: var(--mh-dark); }
.hdr-btn svg { width: 15px; height: 15px; fill: currentColor; }
.hdr-btn--solid { background: var(--mh-amber); border-color: var(--mh-amber); color: #222; }
.hdr-btn--solid:hover { background: var(--mh-amber-dark); border-color: var(--mh-amber-dark); color: #222; }
.hdr-avatar img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.5); }

.hdr-mobile-search { display: none; background: var(--mh-dark); padding: 0 0 10px; }
.hdr-mobile-search form { display: flex; }
.hdr-mobile-search input {
  flex: 1;
  height: 38px;
  border: 0;
  border-radius: 0 var(--mh-radius) var(--mh-radius) 0;
  padding: 0 12px;
  font-size: 14px;
  font-family: inherit;
}
.hdr-mobile-search button {
  background: var(--mh-amber);
  border: 0;
  width: 44px;
  border-radius: var(--mh-radius) 0 0 var(--mh-radius);
  color: #222;
}
.hdr-mobile-search button svg { width: 17px; height: 17px; fill: currentColor; }

/* ---------- hero ---------- */
.mh-hero {
  height: 550px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(circle at 18% 22%, rgba(124, 58, 237,.30), transparent 42%),
    radial-gradient(circle at 82% 78%, rgba(82,176,53,.22), transparent 45%),
    linear-gradient(135deg, #2b2f33 0%, #3d434a 55%, #2b2f33 100%);
  overflow: hidden;
}
.mh-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .5;
}
.mh-hero .hero-inner { position: relative; z-index: 2; width: 100%; }
.mh-hero h1 {
  font-size: 36px;
  line-height: 60px;
  margin-bottom: 25px;
  color: #fff;
  font-weight: 700;
}
.mh-hero .hero-sub {
  font-size: 18px;
  line-height: 30px;
  color: #fff;
  margin: 0 auto 25px;
  opacity: .95;
}
.hero-form { position: relative; width: 80%; max-width: 720px; margin: 40px auto 0; }
.hero-form form { position: relative; display: block; }
.hero-form input {
  height: 50px;
  width: 100%;
  border: 0;
  border-radius: var(--mh-radius);
  padding: 0 18px 0 130px;
  font-size: 16px;
  font-family: "Noto Naskh Arabic", sans-serif;
  color: #222;
}
.hero-form form > button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 8px;
  background: var(--mh-dark);
  color: #fff;
  border: 0;
  height: 38px;
  padding: 0 26px;
  border-radius: var(--mh-radius);
  font-family: "Noto Kufi Arabic", sans-serif;
  font-size: 14px;
}
.hero-form form > button:hover { background: var(--mh-amber); color: #222; }
.hero-tags {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.hero-tags li { margin: 0; }
.hero-tags .tag-label { color: #fff; font-size: 13px; opacity: .9; }
.hero-tags a {
  display: inline-block;
  background: rgba(255,255,255,.92);
  color: #464646;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: var(--mh-radius);
  line-height: 1.8;
}
.hero-tags a:hover { background: #464646; color: #d5d5d5; }

/* ---------- sections ---------- */
.mh-section { padding: 55px 0; }
.mh-section--white { background: #fff; }
.mh-section--gray { background: var(--mh-body); }
.mh-title {
  font-size: 28px;
  line-height: 44px;
  text-align: center;
  margin-bottom: 25px;
  color: #000;
  font-weight: 700;
}
.mh-sub { text-align: center; color: var(--mh-muted); margin: -10px 0 30px; font-size: 15px; }

/* category tiles */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.cat-tile {
  position: relative;
  padding-top: 57.65%;
  border-radius: 2px;
  overflow: hidden;
  display: block;
  color: #fff;
}
.cat-tile .tile-bg { position: absolute; inset: 0; }
.cat-tile .tile-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.42));
}
.cat-tile span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 700;
  font-family: "Noto Kufi Arabic", sans-serif;
  text-shadow: 0 1px 6px rgba(0,0,0,.35);
  z-index: 2;
}
.cat-tile:hover span { color: var(--mh-amber); }

/* popular category chips */
.pop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 30px; }
.pop-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: var(--mh-radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px;
  color: var(--mh-text);
  min-height: 74px;
}
.pop-card h3 { font-size: 15px; margin: 0; font-weight: 600; }
.pop-card svg { width: 34px; height: 34px; fill: var(--mh-muted); flex: 0 0 auto; }
.pop-card:hover { border-color: var(--mh-amber); color: var(--mh-amber-dark); }
.pop-card:hover svg { fill: var(--mh-amber); }

/* how it works */
.how-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.how-media {
  border-radius: 4px;
  min-height: 320px;
  background: linear-gradient(135deg, #2f3439, #474d54);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 30px;
}
.how-media .play-badge {
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--mh-amber);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.how-media .play-badge svg { width: 26px; height: 26px; fill: #222; margin-inline-start: 4px; }
.how-media strong { display: block; font-size: 20px; line-height: 1.9; }
.how-step { margin-bottom: 26px; }
.how-step h3 {
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.how-step h3 svg { width: 18px; height: 18px; fill: var(--mh-amber); }
.how-step p { color: var(--mh-muted); font-size: 14px; line-height: 1.9; margin: 0; }

/* why us */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 50px; }
.why-item { display: flex; gap: 16px; align-items: flex-start; }
.why-item .why-icon {
  width: 46px; height: 46px; flex: 0 0 auto;
  border-radius: 50%;
  background: #fff4dd;
  display: flex; align-items: center; justify-content: center;
}
.why-item .why-icon svg { width: 22px; height: 22px; fill: var(--mh-amber); }
.why-item h3 { font-size: 16px; font-weight: 700; margin: 2px 0 6px; }
.why-item p { font-size: 14px; color: var(--mh-muted); line-height: 1.9; margin: 0; }

/* business solutions */
.sol-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.sol-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: var(--mh-radius);
  padding: 22px 18px;
  text-align: center;
  color: var(--mh-text);
  font-size: 15px;
  font-weight: 600;
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sol-card:hover { border-color: var(--mh-amber); color: var(--mh-amber-dark); }

/* faq */
.mh-faq .accordion-item { border: 0; border-bottom: 1px solid var(--mh-border); background: transparent; }
.mh-faq .accordion-button {
  background: transparent;
  font-family: "Noto Kufi Arabic", sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--mh-text);
  padding: 18px 0;
  box-shadow: none;
}
.mh-faq .accordion-button:not(.collapsed) { color: var(--mh-amber-dark); }
.mh-faq .accordion-body { padding: 0 0 18px; color: var(--mh-muted); font-size: 14px; line-height: 2; }

/* cta band */
.mh-cta {
  background: var(--mh-dark);
  color: #fff;
  padding: 45px 0;
  text-align: center;
}
.mh-cta h2 { font-size: 26px; margin-bottom: 18px; color: #fff; }
.mh-cta .btn-mh {
  background: var(--mh-amber);
  color: #222;
  border-radius: var(--mh-radius);
  padding: 12px 40px;
  font-family: "Noto Kufi Arabic", sans-serif;
  font-weight: 700;
  display: inline-block;
}
.mh-cta .btn-mh:hover { background: var(--mh-amber-dark); }

/* ---------- footer ---------- */
.site-footer { background: #fff; padding: 45px 0 0; margin-top: 0; border-top: 1px solid var(--mh-border); }
.footer-cols { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 30px; }
.footer-col h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 18px;
  font-family: "Noto Kufi Arabic", sans-serif;
  color: #222;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a {
  color: #222;
  font-size: 14px;
  font-family: "Noto Naskh Arabic", sans-serif;
}
.footer-col a:hover { color: var(--mh-amber-dark); }
.footer-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.footer-brand .hdr-logo { color: #222; font-size: 22px; }
.hdr-logo .logo-dot { width: 9px; height: 9px; border-radius: 2px; background: var(--mh-amber); display: inline-block; margin-inline-end: 4px; }
.footer-brand .hdr-logo .logo-dot { background: var(--mh-amber); }
.footer-about { color: var(--mh-muted); font-size: 13px; line-height: 2; }
.footer-social { display: flex; gap: 8px; margin-top: 14px; }
.footer-social a {
  width: 35px; height: 35px; border-radius: 50%;
  background: #ededed;
  display: inline-flex; align-items: center; justify-content: center;
}
.footer-social svg { width: 16px; height: 16px; fill: #6d6d6d; }
.footer-pay { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.footer-pay span {
  border: 1px solid var(--mh-border);
  border-radius: 3px;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--mh-muted);
  background: #fff;
}
.middle-footer { background: var(--mh-body); padding: 18px 0; margin-top: 35px; }
.middle-footer .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.middle-footer ul { list-style: none; display: flex; gap: 16px; margin: 0; padding: 0; }
.middle-footer a, .middle-footer .copy { color: #464646; font-size: 12px; font-family: "Noto Naskh Arabic", sans-serif; }

/* ---------- product card ---------- */
.product {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 30px;
  position: relative;
  transition: box-shadow .18s ease;
}
.product:hover { box-shadow: 0 6px 18px rgba(0,0,0,.09); }
.product .product-img-wrap { position: relative; }
.product .product-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  display: block;
  background: #f2f2f2;
}
.product .product-user {
  position: absolute;
  bottom: -18px;
  right: 12px;
  z-index: 3;
}
.product .product-user img {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid #fff;
  object-fit: cover;
  background: #eee;
}
.product .product-body { padding: 26px 14px 14px; }
.product .product-title { font-size: 14px; line-height: 1.9; margin: 0 0 6px; font-weight: 600; }
.product .product-title a { color: var(--mh-text); }
.product .product-title a:hover { color: var(--mh-amber-dark); }
.product .product-category { font-size: 12px; color: var(--mh-muted); margin-bottom: 8px; }
.product .product-category a { color: var(--mh-muted); }
.product .product-category a:hover { color: var(--mh-amber-dark); }
.product .product-rate { font-size: 12px; color: var(--mh-muted); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.product .product-rate .stars { color: var(--mh-amber); letter-spacing: 1px; font-size: 12px; }
.product .product-price {
  border-top: 1px solid #f1f1f1;
  padding-top: 10px;
  font-size: 13px;
  color: var(--mh-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.product .product-price b { color: var(--mh-text); font-size: 15px; }
.product .badge-featured {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--mh-amber);
  color: #222;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 3px;
  z-index: 3;
  font-weight: 700;
}

/* listing toolbar */
.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.list-toolbar h1 { font-size: 20px; margin: 0; font-weight: 700; }
.list-toolbar .sort { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--mh-muted); }
.list-toolbar select {
  border: 1px solid var(--mh-border);
  border-radius: var(--mh-radius);
  padding: 6px 10px;
  font-family: inherit;
  font-size: 13px;
  background: #fff;
  color: var(--mh-text);
}

/* sidebar filters */
.filter-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: var(--mh-radius);
  margin-bottom: 18px;
  overflow: hidden;
}
.filter-card h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  padding: 14px 16px;
  border-bottom: 1px solid #f1f1f1;
}
.filter-card .filter-body { padding: 12px 16px; }
.filter-card a.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 0;
  font-size: 13px;
  color: var(--mh-text);
}
.filter-card a.filter-row:hover { color: var(--mh-amber-dark); }
.filter-card a.filter-row.active { color: var(--mh-amber-dark); font-weight: 700; }
.filter-card .count {
  background: #f4f4f4;
  color: var(--mh-muted);
  border-radius: 10px;
  font-size: 11px;
  padding: 1px 7px;
}
.filter-card .filter-sub { padding-inline-start: 12px; }

/* breadcrumb */
.mh-breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: var(--mh-muted);
  padding: 14px 0;
  flex-wrap: wrap;
}
.mh-breadcrumb a { color: var(--mh-muted); }
.mh-breadcrumb a:hover { color: var(--mh-amber-dark); }
.mh-breadcrumb .sep { opacity: .6; }

/* service page */
.svc-head { background: #fff; border-bottom: 1px solid var(--mh-border); padding: 18px 0; margin-bottom: 26px; }
.svc-head h1 { font-size: 22px; line-height: 1.7; margin: 0; font-weight: 700; }
.svc-cover img { width: 100%; border-radius: 4px; display: block; background: #f2f2f2; }
.svc-block {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 20px;
}
.svc-block h2 { font-size: 17px; font-weight: 700; margin-bottom: 14px; }
.svc-desc { font-size: 15px; line-height: 2.1; color: #333; }
.svc-desc p { margin-bottom: 12px; }
.svc-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.svc-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 3px; background: #f2f2f2; }

.order-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 4px;
  margin-bottom: 18px;
  overflow: hidden;
}
.order-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  padding: 14px 16px;
  border-bottom: 1px solid #f1f1f1;
}
.order-card .oc-body { padding: 14px 16px; }
.oc-row { display: flex; align-items: center; justify-content: space-between; font-size: 14px; margin-bottom: 8px; }
.oc-row b { font-size: 18px; }
.oc-extra {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-top: 1px dashed #eee;
  font-size: 13px;
}
.oc-extra input[type="checkbox"] { margin-top: 3px; accent-color: var(--mh-amber); }
.oc-extra .ex-title { line-height: 1.7; }
.oc-extra .ex-meta { color: var(--mh-muted); font-size: 12px; margin-top: 3px; }
.btn-order {
  display: block;
  width: 100%;
  background: var(--mh-amber);
  color: #222;
  border: 0;
  border-radius: var(--mh-radius);
  padding: 12px 0;
  font-family: "Noto Kufi Arabic", sans-serif;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  margin-top: 12px;
}
.btn-order:hover { background: var(--mh-amber-dark); color: #222; }
.btn-outline-mh {
  display: block;
  width: 100%;
  background: #fff;
  color: var(--mh-text);
  border: 1px solid #d5d5d5;
  border-radius: var(--mh-radius);
  padding: 10px 0;
  text-align: center;
  font-size: 14px;
  margin-top: 10px;
}
.btn-outline-mh:hover { border-color: var(--mh-amber); color: var(--mh-amber-dark); }

.seller-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 4px;
  padding: 18px;
  margin-bottom: 18px;
  text-align: center;
}
.seller-card img.avatar { width: 74px; height: 74px; border-radius: 50%; object-fit: cover; margin-bottom: 10px; }
.seller-card .name { font-weight: 700; font-size: 15px; }
.seller-card .lvl { font-size: 12px; color: var(--mh-amber-dark); margin-top: 3px; }
.seller-stats { display: flex; justify-content: space-around; margin-top: 14px; font-size: 12px; color: var(--mh-muted); }
.seller-stats b { display: block; color: var(--mh-text); font-size: 15px; }

/* reviews */
.rev-summary { display: grid; grid-template-columns: 140px 1fr; gap: 24px; align-items: center; }
.rev-score { text-align: center; }
.rev-score .num { font-size: 40px; font-weight: 700; line-height: 1; }
.rev-score .stars { color: var(--mh-amber); font-size: 15px; }
.rev-bar-row { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--mh-muted); margin-bottom: 6px; }
.rev-bar { flex: 1; height: 8px; background: #f0f0f0; border-radius: 4px; overflow: hidden; }
.rev-bar i { display: block; height: 100%; background: var(--mh-amber); }
.review-item { border-top: 1px solid #f1f1f1; padding: 16px 0; }
.review-item:first-child { border-top: 0; }
.review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.review-head img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.review-head .who { font-weight: 700; font-size: 13px; }
.review-head .when { font-size: 11px; color: var(--mh-muted); }
.review-head .stars { color: var(--mh-amber); font-size: 12px; margin-inline-start: auto; }
.review-text { font-size: 14px; line-height: 1.9; color: #333; }
.review-reply {
  background: #fafafa;
  border-inline-start: 3px solid var(--mh-amber);
  padding: 10px 12px;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.9;
}

/* profile page */
.profile-head {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 4px;
  padding: 26px;
  margin-bottom: 24px;
  display: flex;
  gap: 22px;
  align-items: center;
}
.profile-head img.avatar { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; }
.profile-head h1 { font-size: 22px; margin: 0 0 6px; font-weight: 700; }
.profile-head .meta { color: var(--mh-muted); font-size: 13px; }

/* auth */
.auth-wrap { max-width: 460px; margin: 60px auto; }
.auth-card { background: #fff; border: 1px solid #eee; border-radius: 4px; padding: 28px; }
.auth-card h1 { font-size: 22px; margin-bottom: 6px; font-weight: 700; text-align: center; }
.auth-card .sub { text-align: center; color: var(--mh-muted); font-size: 13px; margin-bottom: 22px; }
.form-label { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-control, .form-select {
  font-family: inherit;
  font-size: 14px;
  border: 1px solid #dcdcdc;
  border-radius: var(--mh-radius);
  padding: 9px 12px;
  height: auto;
}
.form-control:focus, .form-select:focus { border-color: var(--mh-amber); box-shadow: 0 0 0 3px rgba(124, 58, 237,.15); }
.btn-mh-primary {
  background: var(--mh-amber);
  border: 0;
  color: #222;
  font-family: "Noto Kufi Arabic", sans-serif;
  font-weight: 700;
  border-radius: var(--mh-radius);
  padding: 11px 18px;
  width: 100%;
}
.btn-mh-primary:hover { background: var(--mh-amber-dark); color: #222; }
.auth-alt { text-align: center; font-size: 13px; color: var(--mh-muted); margin-top: 16px; }
.auth-alt a { color: var(--mh-amber-dark); font-weight: 700; }

/* alerts */
.mh-alert {
  border-radius: var(--mh-radius);
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 16px;
  border: 1px solid transparent;
}
.mh-alert--ok { background: #eef8ea; border-color: #cfe9c4; color: #2f6b1e; }
.mh-alert--err { background: #fdeceb; border-color: #f6cdca; color: #a3120c; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--mh-muted); }
.empty-state h3 { font-size: 18px; color: var(--mh-text); margin-bottom: 8px; }

/* pagination */
.mh-pagination { display: flex; justify-content: center; margin: 10px 0 40px; }
.mh-pagination .pagination { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; }
.mh-pagination a, .mh-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--mh-border);
  border-radius: var(--mh-radius);
  color: var(--mh-text);
  font-size: 13px;
  background: #fff;
}
.mh-pagination .active span { background: var(--mh-dark); border-color: var(--mh-dark); color: #fff; }
.mh-pagination a:hover { border-color: var(--mh-amber); color: var(--mh-amber-dark); }

/* responsive */
@media (max-width: 1199px) {
  .cat-grid, .pop-grid, .sol-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 991px) {
  .mh-hero { height: auto; min-height: 440px; padding: 70px 0 55px; }
  .mh-hero h1 { font-size: 27px; line-height: 44px; }
  .hero-form { width: 100%; }
  .how-wrap, .why-grid, .footer-cols { grid-template-columns: 1fr; }
  .cat-grid, .pop-grid, .sol-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .hdr-mobile-search { display: block; }
  .hdr-cats { display: none; }
  .profile-head { flex-direction: column; text-align: center; }
  .rev-summary { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
  .mh-hero { height: auto; min-height: 0; padding: 55px 0 40px; }
  .hero-form input { height: 46px; padding: 0 14px 0 100px; font-size: 15px; }
  .hero-form form > button { height: 34px; padding: 0 16px; font-size: 13px; left: 6px; }
  .hero-tags { margin-top: 18px; }
  .hero-form { margin-top: 26px; }
  .mh-hero h1 { font-size: 23px; line-height: 38px; margin-bottom: 14px; }
  .mh-hero .hero-sub { font-size: 14px; line-height: 26px; }
  .mh-title { font-size: 21px; line-height: 34px; }
  .mh-section { padding: 34px 0; }
  .cat-tile span { font-size: 15px; }
  .hdr-btn { padding: 7px 10px; font-size: 12px; }
  .hdr-icon[title="بحث"] { display: none; }
  .hdr-btn--solid { display: none; }
  .hero-form form > button { padding: 0 16px; }
  .product .product-title { font-size: 13px; }
}

.pf-card{ background:#fff; border:1px solid var(--mh-line); border-radius:6px; margin-bottom:14px; overflow:hidden; }
.pf-card-h{ padding:13px 16px; font-size:13.5px; font-weight:700; color:var(--mh-ink); border-bottom:1px solid #f0f0f2; }
.pf-card-b{ padding:14px 16px; font-size:13px; color:#55555c; line-height:1.9; }
.pf-two{ padding:6px 16px; }
.pf-row{ display:flex; align-items:center; justify-content:space-between; gap:10px; padding:7px 0; font-size:13px; color:#5c5c64; }
.pf-row+.pf-row{ border-top:1px solid #f4f4f6; }
.pf-two .pf-row{ padding:10px 0; }
.pf-val{ color:#26262c; font-weight:600; display:flex; align-items:center; gap:6px; }
.pf-muted{ color:#9a9aa2; font-weight:400; font-size:12.5px; }
.pf-stars{ color:var(--mh-accent); letter-spacing:1px; }
.pf-pill{ display:inline-block; background:#e9f8ee; color:#2f8a4d; font-size:12px; font-weight:700; padding:2px 9px; border-radius:20px; }
.pf-badge{ display:inline-flex; align-items:center; gap:6px; background:var(--mh-accent-soft); color:var(--mh-accent); font-size:12px; font-weight:700; padding:3px 10px; border-radius:6px; }
.pf-check{ color:#2f8a4d; font-weight:700; }
.pf-mini-list{ padding:8px 10px; }
.pf-mini{ display:flex; align-items:center; gap:9px; padding:7px 6px; text-decoration:none; color:#3a3a42; font-size:12.5px; line-height:1.6; }
.pf-mini+.pf-mini{ border-top:1px solid #f4f4f6; }
.pf-mini img{ width:46px; height:30px; object-fit:cover; border-radius:4px; flex:0 0 46px; background:var(--mh-accent-soft); }
.pf-mini:hover{ color:var(--mh-accent); }

.cl-head{ display:flex; align-items:center; justify-content:space-between; margin:6px 0 18px; }
.cl-head h1{ font-size:26px; font-weight:700; margin:0; color:var(--mh-ink); }
.cl-new{ display:inline-flex; align-items:center; gap:8px; background:#1e1e20; color:#fff; border:0; border-radius:6px; padding:11px 16px; font-size:13.5px; font-family:inherit; cursor:pointer; }
.cl-new svg{ width:13px; height:13px; fill:currentColor; }
.cl-new:hover{ background:#000; }
.cl-form{ display:none; background:#fff; border:1px solid var(--mh-line); border-radius:6px; padding:18px; margin-bottom:16px; }
.cl-form.is-open{ display:block; }
.cl-lbl{ display:block; font-size:13px; font-weight:700; margin-bottom:7px; color:#2c2c31; }
.cl-lbl .req{ color:#d9534f; }
.cl-input{ width:100%; border:1px solid #dadada; border-radius:6px; padding:11px 12px; font-size:13.5px; font-family:inherit; margin-bottom:10px; background:#fff; }
.cl-radios{ display:flex; gap:20px; font-size:13px; color:#4a4a52; margin:2px 0 14px; }
.cl-radios label{ display:flex; align-items:center; gap:7px; cursor:pointer; }
.cl-form-actions{ display:flex; gap:10px; }
.cl-save{ background:var(--mh-accent); color:#fff; border:0; border-radius:6px; padding:10px 16px; font-size:13px; font-family:inherit; cursor:pointer; }
.cl-cancel{ background:#f4f4f6; color:#3a3a42; border:0; border-radius:6px; padding:10px 16px; font-size:13px; font-family:inherit; cursor:pointer; }
.cl-err{ color:#c0392b; font-size:12.5px; margin-bottom:8px; }
.cl-flash{ background:#e9f8ee; color:#2f8a4d; border-radius:6px; padding:11px 14px; font-size:13px; margin-bottom:14px; }
.cl-card{ position:relative; background:#fff; border:1px solid var(--mh-line); border-radius:6px; padding:20px 22px; margin-bottom:14px; }
.cl-name{ font-size:15px; font-weight:700; color:var(--mh-ink); margin-bottom:10px; }
.cl-meta{ display:flex; flex-wrap:wrap; gap:22px; font-size:12.5px; color:#8b8b93; }
.cl-m{ display:inline-flex; align-items:center; gap:6px; }
.cl-m svg{ width:13px; height:13px; fill:currentColor; opacity:.85; }
.cl-opts{ position:absolute; left:14px; top:14px; }
.cl-opts summary{ display:inline-flex; align-items:center; gap:7px; list-style:none; border:1px solid #dadada; border-radius:6px; padding:7px 11px; font-size:12.5px; color:#3a3a42; cursor:pointer; background:#fff; }
.cl-opts summary::-webkit-details-marker{ display:none; }
.cl-opts summary svg{ width:13px; height:13px; fill:#5b5b66; }
.cl-menu{ position:absolute; left:0; top:40px; width:260px; background:#fff; border:1px solid var(--mh-line); border-radius:8px; box-shadow:0 12px 28px rgba(10,15,40,.14); padding:12px; z-index:40; }
.cl-del{ background:none; border:0; color:#c0392b; font-size:12.5px; font-family:inherit; cursor:pointer; padding:4px 0; }


/* ---------- auth card on the shared chrome ---------- */
.auth-wrap{ display:flex; justify-content:center; padding:14px 0 30px; }
.auth-card{ width:100%; max-width:460px; background:#fff; border:1px solid #e6e6ea; border-radius:14px; padding:26px 26px 24px; }
.auth-card h1{ font-size:22px; color:var(--mh-dark); margin:0 0 6px; }
.auth-card .lead{ color:#6b6b78; font-size:13.5px; margin:0 0 18px; }
.auth-card .field{ margin-bottom:14px; }
.auth-card .lbl{ display:block; font-size:12.5px; font-weight:700; color:#3a3a42; margin-bottom:6px; }
.auth-card input[type=text],.auth-card input[type=email],.auth-card input[type=password]{ width:100%; height:42px; border:1px solid #dcdce4; border-radius:8px; padding:0 12px; font-family:inherit; font-size:14px; background:#fff; }
.auth-card input:focus{ outline:2px solid #e4dcff; border-color:var(--mh-accent); }
.auth-card .btn{ width:100%; height:44px; border-radius:8px; background:var(--mh-dark); color:#fff; border:0; font-weight:700; font-family:inherit; font-size:14px; cursor:pointer; }
.auth-card .btn:hover{ background:#1b2a55; }
.auth-card .or{ text-align:center; color:#9a9aa6; font-size:12px; margin:15px 0; }
.auth-card .alt{ font-size:13px; text-align:center; margin:0; }
.auth-card .alt a{ color:var(--mh-accent); font-weight:700; }
.auth-card .err{ background:#fdeaea; color:#b3261e; border-radius:8px; padding:9px 12px; font-size:13px; margin-bottom:14px; }
.auth-card .check{ display:flex; gap:8px; align-items:center; font-size:13px; margin:4px 0 16px; }

/* ---------- notifications ---------- */
.nt-page{ min-height:calc(100vh - 430px); }
.nt-head{ display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:16px; }
.nt-head h1{ font-size:23px; color:var(--mh-dark); margin:0; }
.nt-head .nt-sub{ font-size:12.5px; color:#8a8a95; margin-top:3px; }
.nt-list{ background:#fff; border:1px solid #e6e6ea; border-radius:12px; overflow:hidden; }
.nt-row{ display:flex; gap:12px; align-items:flex-start; padding:15px 18px; border-bottom:1px solid #f1f0f6; text-decoration:none; color:inherit; }
.nt-row:last-child{ border-bottom:0; }
.nt-row:hover{ background:#fcfbff; }
.nt-row.is-new{ background:#faf8ff; }
.nt-ic{ width:38px; height:38px; flex:0 0 auto; border-radius:11px; background:var(--mh-accent-soft); color:var(--mh-accent); display:grid; place-items:center; }
.nt-txt{ flex:1 1 auto; min-width:0; }
.nt-title{ font-size:13.5px; font-weight:700; color:#20202a; }
.nt-body{ font-size:12.5px; color:#74747f; margin-top:2px; }
.nt-time{ font-size:11.5px; color:#9a9aa6; white-space:nowrap; display:flex; align-items:center; gap:5px; }
.nt-note{ margin-top:16px; background:#fff; border:1px solid #ecebf3; border-radius:12px; padding:16px 18px; }
.nt-note h3{ font-size:14px; margin:0 0 6px; color:var(--mh-dark); }
.nt-note p{ font-size:12.5px; color:#74747f; margin:0 0 10px; }
.nt-note .nt-links{ display:flex; gap:8px; flex-wrap:wrap; }
.nt-note .nt-links a{ font-size:12.5px; font-weight:700; color:var(--mh-accent); background:var(--mh-accent-soft); border-radius:7px; padding:7px 12px; }
.nt-empty{ background:#fff; border:1px solid #e6e6ea; border-radius:12px; padding:48px 20px; text-align:center; }
.nt-empty .ic{ width:64px; height:64px; margin:0 auto 14px; border-radius:18px; background:var(--mh-accent-soft); color:var(--mh-accent); display:grid; place-items:center; }
.nt-empty h2{ font-size:17px; margin:0 0 6px; color:var(--mh-dark); }
.nt-empty p{ font-size:13px; color:#7b7b88; margin:0 0 16px; }
.nt-empty .cta{ display:inline-flex; gap:8px; }
.nt-empty .cta a{ font-size:13px; font-weight:700; border-radius:8px; padding:9px 16px; text-decoration:none; }
.nt-empty .cta .pri{ background:var(--mh-dark); color:#fff; }
.nt-empty .cta .ghost{ border:1px solid #dcdce4; color:#33333c; }


/* ---------- shared components used across inner pages ---------- */
.badge{ display:inline-flex; align-items:center; gap:5px; font-size:11.5px; font-weight:700; border-radius:20px; padding:3px 9px; line-height:1.7; white-space:nowrap; }
.badge-green{ background:#e7f8ef; color:#127a4b; }
.badge-amber{ background:#fdf3e2; color:#9a6208; }
.badge-red{ background:#fdeaea; color:#b3261e; }
.badge-blue{ background:#e8f1ff; color:#1d4ed8; }
.badge-gray{ background:#f0f0f4; color:#5f5f6b; }
.badge-brand{ background:var(--mh-accent-soft); color:var(--mh-accent); }
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:7px; height:var(--mh-btn-h); padding:0 30px; border-radius:var(--mh-radius); border:1px solid var(--mh-dark); background:var(--mh-dark); color:#fff; font-family:inherit; font-size:var(--mh-btn-fs); font-weight:var(--mh-btn-fw); cursor:pointer; text-decoration:none; transition:background .15s,color .15s; }
.btn:hover{ background:#1b2a55; color:#fff; }
.btn-block{ width:100%; }
.btn-sm{ height:var(--mh-btn-sm-h); padding:0 10px; font-size:var(--mh-btn-sm-fs); }
.btn-ghost{ background:transparent; border-color:var(--mh-dark); color:var(--mh-dark); }
.btn-ghost:hover{ background:rgba(16,26,60,.06); color:var(--mh-dark); }
.btn-green{ background:#127a4b; }
.btn-green:hover{ background:#0f6740; }
.chip{ display:inline-flex; align-items:center; gap:6px; height:var(--mh-chip-h); background:#fff; border:0; border-radius:var(--mh-chip-radius); padding:0 10px; font-size:var(--mh-chip-fs); font-weight:400; color:#333; text-decoration:none; }
.chip:hover{ color:var(--mh-accent); }
.field{ margin-bottom:14px; }
.field label,.field .lbl{ display:block; font-size:12.5px; font-weight:700; color:#3a3a42; margin-bottom:6px; }
.field input[type=text],.field input[type=email],.field input[type=password],.field input[type=number],.field select,.field textarea{ width:100%; border:1px solid #dcdce4; border-radius:8px; padding:9px 12px; font-family:inherit; font-size:13.5px; background:#fff; color:#2b2b35; }
.field textarea{ min-height:100px; resize:vertical; }
.field .hint{ font-size:11.5px; color:#8a8a95; margin-top:5px; }

/* ================= admin panel ================= */
.ad-wrap{ display:grid; grid-template-columns:238px minmax(0,1fr); gap:24px; align-items:start; max-width:1172px; margin:0 auto; padding:24px 16px 48px; }
.ad-side{ background:#fff; border:1px solid #e8e8ea; border-radius:6px; padding:14px 10px; position:sticky; top:76px; }
.ad-side-user{ display:flex; align-items:center; gap:10px; padding:6px 8px 14px; border-bottom:1px solid #f0f0f2; margin-bottom:10px; }
.ad-side-user img{ width:38px; height:38px; border-radius:50%; object-fit:cover; background:#eee; flex:0 0 auto; }
.ad-side-user b{ display:block; font-size:14px; font-weight:600; color:#222; line-height:1.4; }
.ad-side-user span{ display:block; font-size:12px; color:#8a8a92; }
.ad-side h5{ margin:14px 8px 6px; font-size:11px; font-weight:600; color:#9a9aa2; letter-spacing:.02em; }
.ad-side a{ display:flex; align-items:center; gap:9px; padding:8px 10px; border-radius:4px; color:#3a3a42; font-size:14px; text-decoration:none; line-height:1.4; white-space:nowrap; flex-wrap:nowrap; }
.ad-side a svg{ flex:0 0 auto; opacity:.75; }
.ad-side a:hover{ background:#f6f6f8; color:#222; }
.ad-side a.is-on{ background:var(--mh-accent-soft); color:var(--mh-accent); font-weight:600; }
.ad-side a.is-on svg{ opacity:1; }
.ad-cnt{ margin-inline-start:auto; min-width:20px; height:19px; padding:0 6px; border-radius:10px; background:var(--mh-accent); color:#fff; font-size:11px; font-weight:700; display:inline-flex; align-items:center; justify-content:center; }

.ad-main{ min-width:0; }
.ad-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:18px; }
.ad-head h1{ font-size:22px; font-weight:600; color:#1d1d22; margin:0; line-height:1.4; }
.ad-head p{ margin:4px 0 0; font-size:13px; color:#82828a; }
.ad-row{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }

.ad-cards{ display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:14px; margin-bottom:18px; }
.ad-card{ background:#fff; border:1px solid #e8e8ea; border-radius:6px; padding:16px 16px 14px; }
.ad-card span{ display:block; font-size:12px; color:#8a8a92; margin-bottom:6px; }
.ad-card b{ display:block; font-size:22px; font-weight:600; color:#1d1d22; line-height:1.3; }
.ad-card small{ display:block; margin-top:4px; font-size:12px; color:#9a9aa2; }

.ad-box{ background:#fff; border:1px solid #e8e8ea; border-radius:6px; margin-bottom:18px; overflow:hidden; }
.ad-box-h{ display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; padding:13px 16px; border-bottom:1px solid #f0f0f2; }
.ad-box-h h3{ margin:0; font-size:15px; font-weight:600; color:#222; }
.ad-box-h h3 small{ font-weight:400; color:#9a9aa2; font-size:12px; margin-right:6px; }
.ad-box-b{ padding:16px; }
.ad-box-b.p0{ padding:0; }

.ad-filters{ display:flex; align-items:flex-end; gap:10px; flex-wrap:wrap; padding:12px 16px; border-bottom:1px solid #f0f0f2; background:#fcfcfd; }
.ad-filters form{ display:flex; align-items:flex-end; gap:10px; flex-wrap:wrap; margin:0; }
.ad-lbl{ display:block; font-size:12px; color:#82828a; margin-bottom:5px; }
.ad-in,.ad-sel{ height:34px; padding:0 10px; border:1px solid #dcdce0; border-radius:4px; font-size:13px; font-family:inherit; color:#2a2a30; background:#fff; min-width:0; }
.ad-in:focus,.ad-sel:focus{ outline:0; border-color:var(--mh-accent); box-shadow:0 0 0 3px rgba(124,58,237,.12); }
.ad-in.w100{ width:100%; }
textarea.ad-in{ height:auto; padding:9px 10px; line-height:1.6; resize:vertical; }

.ad-btn{ display:inline-flex; align-items:center; justify-content:center; gap:6px; height:34px; padding:0 14px; border-radius:4px; border:1px solid transparent; background:var(--mh-accent); color:#fff; font-size:13px; font-family:inherit; font-weight:500; cursor:pointer; text-decoration:none; white-space:nowrap; }
.ad-btn:hover{ background:var(--mh-accent-hover); color:#fff; }
.ad-btn.ghost{ background:#fff; border-color:#dcdce0; color:#3a3a42; }
.ad-btn.ghost:hover{ background:#f6f6f8; color:#222; }
.ad-btn.danger{ background:#fff; border-color:#f0c8c8; color:#c0392b; }
.ad-btn.danger:hover{ background:#fdf2f2; }
.ad-btn.sm{ height:28px; padding:0 10px; font-size:12px; }
.ad-btn[disabled]{ opacity:.55; cursor:default; }

.ad-tbl{ width:100%; border-collapse:collapse; font-size:13px; }
.ad-tbl th{ text-align:right; font-size:11px; font-weight:600; color:#8a8a92; padding:10px 12px; background:#fafafb; border-bottom:1px solid #eeeef1; white-space:nowrap; }
.ad-tbl td{ padding:11px 12px; border-bottom:1px solid #f2f2f4; color:#33333a; vertical-align:middle; }
.ad-tbl tr:last-child td{ border-bottom:0; }
.ad-tbl tbody tr:hover{ background:#fbfbfd; }
.ad-tbl td.num{ font-variant-numeric:tabular-nums; white-space:nowrap; }
.ad-tbl td.act{ text-align:left; white-space:nowrap; }
.ad-tbl a{ color:var(--mh-accent); text-decoration:none; }
.ad-tbl a:hover{ text-decoration:underline; }
.ad-tbl .muted{ color:#9a9aa2; }

.ad-b{ display:inline-flex; align-items:center; height:21px; padding:0 8px; border-radius:11px; font-size:11px; font-weight:600; background:#f1f1f4; color:#5a5a62; white-space:nowrap; }
.ad-b.ok{ background:#e8f7ef; color:#1a7f4b; }
.ad-b.wait{ background:#fff4e5; color:#a5620a; }
.ad-b.bad{ background:#fdeaea; color:#b3352b; }
.ad-b.info{ background:var(--mh-accent-soft); color:var(--mh-accent); }

.ad-kv{ display:grid; grid-template-columns:150px minmax(0,1fr); gap:0; font-size:13px; margin:0; }
.ad-kv dt{ padding:9px 0; color:#8a8a92; border-bottom:1px solid #f2f2f4; }
.ad-kv dd{ padding:9px 0; margin:0; color:#2a2a30; border-bottom:1px solid #f2f2f4; word-break:break-word; }
.ad-kv dt:last-of-type,.ad-kv dd:last-of-type{ border-bottom:0; }

.ad-tabs{ display:flex; gap:4px; border-bottom:1px solid #eeeef1; padding:0 16px; background:#fff; }
.ad-tabs a{ padding:11px 12px; font-size:13px; color:#6a6a72; text-decoration:none; border-bottom:2px solid transparent; margin-bottom:-1px; }
.ad-tabs a.is-on{ color:var(--mh-accent); border-bottom-color:var(--mh-accent); font-weight:600; }

.ad-grid2{ display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); gap:18px; align-items:start; }
.ad-grid3{ display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); gap:14px; }
.ad-det{ display:grid; grid-template-columns:minmax(0,1fr) 260px; gap:18px; align-items:start; }
.ad-detmenu{ background:#fff; border:1px solid #e8e8ea; border-radius:6px; padding:10px; position:sticky; top:76px; }
.ad-detmenu a{ display:block; padding:8px 10px; border-radius:4px; font-size:13px; color:#3a3a42; text-decoration:none; }
.ad-detmenu a:hover{ background:#f6f6f8; }
.ad-scroll{ overflow-x:auto; }
.ad-empty{ padding:38px 16px; text-align:center; color:#8a8a92; font-size:13px; }
.ad-empty b{ display:block; color:#3a3a42; font-size:15px; font-weight:600; margin-bottom:6px; }
.ad-mono{ font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:12px; color:#55555e; white-space:nowrap; }
.ad-tbl td .ad-mono,.ad-tbl td a{ white-space:nowrap; }
.ad-side a .ad-cnt{ flex:0 0 auto; }
.ad-chart{ padding:8px 0 0; }
.ad-chart svg{ display:block; width:100%; height:auto; }

@media (max-width:900px){
  .ad-wrap{ grid-template-columns:minmax(0,1fr); gap:14px; padding:14px 0 36px; }
  .ad-side{ position:static; }
  .ad-side h5{ margin-top:10px; }
  .ad-det{ grid-template-columns:minmax(0,1fr); }
  .ad-kv{ grid-template-columns:120px minmax(0,1fr); }
}
/* ===== public browse pages ===== */
.mh-empty{ background:#fff; border:1px solid #e8e8ea; border-radius:6px; padding:44px 20px; text-align:center; }
.mh-empty b{ display:block; font-size:17px; color:#2a2a30; margin-bottom:8px; }
.mh-empty p{ color:#82828a; font-size:14px; margin:0 0 16px; }
.seller-card{ display:flex; flex-direction:column; align-items:center; gap:6px; background:#fff; border:1px solid #e8e8ea; border-radius:6px; padding:18px 12px; text-decoration:none; color:var(--mh-dark); height:100%; text-align:center; }
.seller-card:hover{ border-color:var(--mh-accent); }
.seller-card-img{ width:64px; height:64px; border-radius:50%; object-fit:cover; background:#eee; margin-bottom:4px; }
.seller-card b{ font-size:14px; font-weight:600; }
.seller-card-rating{ font-size:13px; color:#464646; }
.seller-card-rating .star{ color:#f5a623; }
.seller-card-meta{ font-size:12px; color:#8a8a92; }
.rev-list{ display:flex; flex-direction:column; gap:12px; max-width:880px; }
.rev-row{ background:#fff; border:1px solid #e8e8ea; border-radius:6px; padding:16px; color:#2a2a30; display:block; }
.rev-row .rev-head,.rev-row .rev-svc,.rev-row .rev-body,.rev-row .rev-reply{ width:100%; max-width:none; }
.rev-head{ display:flex; align-items:center; justify-content:space-between; gap:12px; font-size:14px; color:#2a2a30; }
.rev-who{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.rev-head b{ color:#2a2a30; font-weight:600; }
.rev-row .muted{ color:#8a8a92; }
.rev-stars span{ color:#d8d8dc; font-size:14px; }
.rev-stars span.on{ color:#f5a623; }
.rev-svc{ display:block; margin-top:8px; font-size:13px; color:var(--mh-accent); text-decoration:none; }
.rev-body{ margin:8px 0 0; font-size:14px; color:#33333a; line-height:1.7; }
.rev-reply{ margin-top:10px; padding:10px 12px; background:#fafafb; border-right:3px solid var(--mh-accent); font-size:13px; color:#464646; border-radius:4px; }
.page-title{ font-size:26px; font-weight:600; color:var(--mh-dark); margin:0 0 10px; }
.contact-form{ display:flex; flex-direction:column; gap:14px; margin-top:18px; }
.contact-form .field{ display:flex; flex-direction:column; gap:6px; }
.contact-form label span{ font-size:13px; color:#6a6a72; }
.contact-form input,.contact-form textarea{ height:40px; border:1px solid #d5d5d5; border-radius:4px; padding:0 10px; font-family:inherit; font-size:14px; background:#fff; }
.contact-form textarea{ height:auto; padding:10px; line-height:1.7; }
.contact-form .err{ color:#c0392b; font-size:12px; }
.contact-side{ background:#fff; border:1px solid #e8e8ea; border-radius:6px; padding:18px; }
.contact-side h3{ font-size:15px; font-weight:600; margin:0 0 10px; color:#2a2a30; }
.contact-side ul{ list-style:none; margin:0; padding:0; }
.contact-side li{ border-bottom:1px solid #f2f2f4; }
.contact-side li:last-child{ border-bottom:0; }
.contact-side a{ display:block; padding:9px 0; font-size:14px; color:#464646; text-decoration:none; }
.contact-side a:hover{ color:var(--mh-accent); }

/* ---------- service card: geometry matched to the live reference ---------- */
.service-block{min-height:0}
.product{background:#fff;border:1px solid #ececef;border-radius:0;overflow:hidden;margin:0 0 30px;position:relative;min-height:0}
.product:hover{box-shadow:none}
.product .product-img-wrap{position:relative;display:block;line-height:0;margin:0}
.product .product-img{width:100%;aspect-ratio:286/165;height:auto;object-fit:cover;object-position:center;display:block;background:#f2f2f2;margin:0;border-radius:0}
.product .product-user{position:absolute;bottom:8px;inset-inline-start:8px;inset-inline-end:auto;z-index:3;margin:0;padding:0;width:36px;height:36px}
.product .product-user img{width:36px;height:36px;border-radius:50%;border:1px solid rgba(0,0,0,.06);object-fit:cover;background:#fff;display:block;margin:0}
.product .product-body{padding:0 12px 12px;margin:0}
.product .product-title{font-size:14px;line-height:21px;font-weight:500;color:var(--mh-ink);margin:11px 0 0;min-height:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.product .product-title a{font-size:14px;line-height:21px;font-weight:500;color:var(--mh-ink);text-decoration:none}
.product .product-title a:hover{color:var(--mh-amber-dark)}
.product .product-category{font-size:12px;line-height:24px;color:#6d6d6d;margin:3px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.product .product-category a{font-size:12px;color:#6d6d6d;text-decoration:none}
.product .product-category a:hover{color:var(--mh-amber-dark)}
.product .product-category span{color:#6d6d6d}
.product .product-rate{font-size:12px;line-height:24px;color:#6d6d6d;margin:0;display:flex;align-items:center;gap:4px}
.product .product-rate .stars{color:var(--mh-amber);font-size:12px;letter-spacing:1px;line-height:24px}
.product .product-rate .ct{font-size:12px;color:#6d6d6d}
.product .product-price{font-size:14px;line-height:24px;color:#6d6d6d;margin:0;padding:0;border:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;min-height:0}
.product .product-price span{font-size:14px;font-weight:400;color:#6d6d6d}
.product .product-price b{font-size:14px;font-weight:700;color:var(--mh-ink)}
@media(max-width:991px){
  .product .product-title{font-size:13.5px;line-height:20px}
  .product .product-category,.product .product-rate,.product .product-rate .ct{font-size:11.5px}
}
