/* HADAFIN homepage — polished marketplace */
.home-mp {
  --ink: #0f172a;
  --muted: #475569;
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  background: rgba(255,255,255,0.96);
  border-radius: 1.25rem;
  box-shadow: 0 28px 70px rgba(2,6,23,0.18);
  overflow: hidden;
}
body.home-marketplace {
  background:
    linear-gradient(180deg, rgba(8,20,40,0.58), rgba(8,20,40,0.78)),
    url("https://images.unsplash.com/photo-1524661135-423995f22d0b?auto=format&fit=crop&w=1800&q=75") center/cover fixed !important;
}
body.home-marketplace .hadafin-main-area {
  max-width: 1240px !important;
  padding-top: 0.85rem !important;
  padding-bottom: 2rem !important;
}
body.home-marketplace .header-shell {
  max-width: 1240px;
  margin: 0.65rem auto 0;
  border-radius: 1rem 1rem 0 0;
  /* Phase 29g — must be visible so 12 Modules / More dropdowns are not clipped under hero */
  overflow: visible;
  box-shadow: 0 10px 30px rgba(2,6,23,0.18);
  background: #fff;
  z-index: 80;
}
body.home-marketplace .header-top-bar {
  border-radius: 1rem 1rem 0 0;
  overflow: hidden;
}
body.home-marketplace .header-second-bar {
  overflow: visible;
  z-index: 90;
  position: relative;
}
body.home-marketplace .header-top-bar {
  background: #fff !important;
  color: #0f172a !important;
  border-bottom: 1px solid #e2e8f0;
}
/* Top utility bar — stronger contrast on white */
body.home-marketplace .header-top-bar a,
body.home-marketplace .header-top-bar .header-quick-chip {
  color: #1e293b !important;
  font-weight: 600;
}
body.home-marketplace .header-top-bar a:hover {
  color: #0f766e !important;
}
/* Top utility search stays hidden on home; second-bar ID search is the modern bar */
body.home-marketplace .header-search-wrap { display: none !important; }
body.home-marketplace .header-id-search {
  display: flex !important;
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  max-width: 380px;
  flex: 1 1 200px;
}
body.home-marketplace .header-id-search__input { color: #0f172a !important; }
body.home-marketplace .header-id-search__input::placeholder { color: #64748b !important; }
body.home-marketplace .header-id-search__icon { color: #64748b !important; }
body.home-marketplace .header-id-search:focus-within {
  border-color: #0d9488 !important;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2) !important;
  background: #fff !important;
}
body.home-marketplace .header-second-inner {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
}
@media (max-width: 900px) {
  body.home-marketplace .header-id-search { max-width: 220px; }
}
@media (max-width: 640px) {
  body.home-marketplace .header-second-inner { flex-wrap: wrap; }
  body.home-marketplace .header-id-search {
    order: 3; flex: 1 1 100%; max-width: none; margin: 0.15rem 0 0;
  }
}
body.home-marketplace .header-theme-select {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}
/* Light theme header is white — dark ink (fixes near-invisible logo/nav/mega) */
body.home-marketplace .header-second-bar {
  background: #fff !important;
  border-bottom: 1px solid #e2e8f0 !important;
}
body.home-marketplace .header-second-bar .nav-link,
body.home-marketplace .header-second-bar > .header-second-inner > nav > a {
  color: #0f172a !important;
}
body.home-marketplace .header-second-bar .nav-link:hover,
body.home-marketplace .header-second-bar > .header-second-inner > nav > a:hover {
  color: #0f766e !important;
  background: #f0fdfa !important;
}
body.home-marketplace .header-second-bar .hf-mega__btn {
  color: #0f766e !important;
  background: transparent !important;
}
/* Mega panel must not inherit pale header link color */
body.home-marketplace .header-second-bar .hf-mega__panel a,
body.home-marketplace .header-second-bar .hf-mega__panel strong {
  color: #0f172a !important;
}
body.home-marketplace .header-second-bar .hf-mega__panel em {
  color: #475569 !important;
}
body.home-marketplace .header-second-bar .hf-mega__subs a {
  color: #0f172a !important;
  background: #e2e8f0 !important;
  font-weight: 700 !important;
}
body.home-marketplace .header-second-bar .hf-mega__subs a:hover {
  color: #115e59 !important;
  background: #ccfbf1 !important;
}
body.home-marketplace .header-second-bar .hf-mega__head a {
  color: #0f766e !important;
}
/* Keep animated logo visible; only hide property-sidebar hamburger on home */
body.home-marketplace .header-second-inner > .flex:first-child {
  display: flex !important;
  align-items: center;
  flex-shrink: 0;
}
body.home-marketplace .header-second-inner > .flex:first-child #hadafin-prop-sidebar-open {
  display: none !important;
}
body.home-marketplace .header-second-inner nav {
  display: flex !important;
  flex: 1;
  align-items: center;
  gap: 0.2rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
/* Phase 29g — compact home nav from first paint (no late JS wipe CLS) */
body.home-marketplace .header-second-inner > nav > a.nav-link {
  display: none !important;
}
body.home-marketplace .header-second-inner > nav > a.nav-link[href="/properties/"],
body.home-marketplace .header-second-inner > nav > a.nav-link[href="/vehicles/"],
body.home-marketplace .header-second-inner > nav > a.nav-link[href="/crm/"],
body.home-marketplace .header-second-inner > nav > a.nav-link[href^="/deal-room"],
body.home-marketplace .header-second-inner > nav > a.home-post-ad,
body.home-marketplace .header-second-inner > nav > a.home-mp-nav-keep {
  display: inline-flex !important;
  align-items: center;
}
body.home-marketplace .home-more-wrap { position: relative; }
body.home-marketplace .home-more-btn {
  border: 0; background: transparent; color: #0f172a;
  font-size: 11px; font-weight: 700; padding: 0.35rem 0.7rem; border-radius: 0.45rem; cursor: pointer;
}
body.home-marketplace .home-more-menu {
  position: absolute; left: 0; top: calc(100% + 6px); min-width: 230px;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 0.85rem;
  box-shadow: 0 16px 40px rgba(15,23,42,0.2); padding: 0.4rem; z-index: 200;
}
body.home-marketplace .header-second-inner nav > a.home-mp-nav-hide {
  display: none !important;
}
body.home-marketplace .header-second-inner nav > a.home-mp-nav-keep {
  display: inline-flex !important;
  align-items: center;
}
body.home-marketplace .home-more-menu a {
  display: flex; gap: 0.5rem; align-items: center; padding: 0.55rem 0.7rem;
  border-radius: 0.5rem; color: #0f172a !important; text-decoration: none; font-size: 0.82rem; font-weight: 650;
}
body.home-marketplace .home-more-menu a .ti { font-size: 1rem; color: #64748b; flex-shrink: 0; }
body.home-marketplace .home-more-menu a:hover { background: #f1f5f9; }
body.home-marketplace .home-post-ad {
  margin-left: auto; background: #2563eb; color: #fff !important;
  font-size: 0.78rem; font-weight: 800; padding: 0.45rem 0.95rem;
  border-radius: 0.55rem; text-decoration: none;
  box-shadow: 0 6px 16px rgba(37,99,235,0.35);
}
/* Homepage: only one chat FAB — hide Feedback / AI Core / old assistant clutter */
body.home-marketplace.theater-chat-on .hadafin-ai-fab-host,
body.home-marketplace.theater-chat-on #ai-assistant-panel,
body.home-marketplace.theater-chat-on #live-chat-panel,
body.home-marketplace.theater-chat-on #feedback-dock,
body.home-marketplace.theater-chat-on #floating-ai-core {
  display: none !important;
}
body.home-marketplace .hadafin-footer { background: transparent !important; }
body.home-marketplace .hadafin-footer-inner {
  max-width: 1180px; margin: 0 auto; background: #fff; border-radius: 1rem;
  padding: 1.1rem 1.4rem !important; box-shadow: 0 10px 28px rgba(2,6,23,0.12);
}
body.home-marketplace .hadafin-footer-brand,
body.home-marketplace .hadafin-footer a,
body.home-marketplace .hadafin-footer p { color: #334155 !important; }

/* Pakistan map layer behind category grid (Google Maps–style feel) */
.home-mp-map-bg {
  position: absolute;
  inset: 36% 0 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.42;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.72) 28%, rgba(241,245,249,0.55) 100%),
    url("https://upload.wikimedia.org/wikipedia/commons/thumb/e/ea/Pakistan_location_map.svg/1280px-Pakistan_location_map.svg.png") center 12%/min(920px,92%) no-repeat;
  filter: saturate(1.25) contrast(1.05);
}
.home-mp-map-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(56,189,248,0.08), transparent 55%),
    repeating-linear-gradient(0deg, transparent 0 28px, rgba(15,23,42,0.03) 28px 29px),
    repeating-linear-gradient(90deg, transparent 0 28px, rgba(15,23,42,0.03) 28px 29px);
  opacity: 0.7;
}
.home-mp > * { position: relative; z-index: 1; }

/* Hero with rotating slides */
.home-mp-hero {
  position: relative;
  min-height: 280px;
  color: #fff;
  overflow: hidden;
}
.home-mp-hero-slide {
  position: absolute; inset: 0;
  background: center/cover no-repeat;
  opacity: 0; transition: opacity 1.1s ease;
  /* Phase 29g — no scale transform (was a CLS contributor) */
  transform: none;
}
.home-mp-hero-slide.is-active { opacity: 1; transform: none; }
.home-mp-hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6,16,31,0.72), rgba(11,31,58,0.78)),
    radial-gradient(ellipse at 20% 0%, rgba(34,197,94,0.22), transparent 45%);
}
.home-mp-hero-inner {
  position: relative; z-index: 2;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  padding: 2.6rem 1.25rem 2.1rem;
}
.home-mp-hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  font-weight: 900; letter-spacing: -0.02em; line-height: 1.15;
}
.home-mp-hero h1 .accent { color: #4ade80; }
.home-mp-hero .tagline {
  margin-top: 0.7rem; color: rgba(241,245,249,0.95); font-size: 0.95rem;
}
.home-mp-search-row {
  margin-top: 1.35rem; display: flex; flex-wrap: wrap; gap: 0.55rem;
  justify-content: center; align-items: center;
}
.home-mp-search {
  display: flex; align-items: center; flex: 1 1 280px; max-width: 520px;
  background: #fff; border-radius: 999px; padding: 0.3rem 0.3rem 0.3rem 1rem;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}
.home-mp-search input {
  flex: 1; border: 0; outline: none; min-width: 0;
  font-size: 0.875rem; color: #0f172a; background: transparent;
}
.home-mp-search button {
  border: 0; border-radius: 999px; background: #16a34a; color: #fff;
  font-weight: 800; font-size: 0.8rem; padding: 0.55rem 1.1rem; cursor: pointer;
}
.home-mp-pill {
  display: inline-flex; align-items: center; border-radius: 999px;
  padding: 0.55rem 1rem; font-size: 0.75rem; font-weight: 800;
  text-decoration: none; border: 1px solid #cbd5e1; background: #fff; color: #0f172a;
  box-shadow: 0 4px 12px rgba(15,23,42,0.12);
}
.home-mp-pill.rose { background: #ffe4e6; color: #9f1239; border-color: #fda4af; }
button.home-mp-pill { cursor: pointer; font-family: inherit; }

.home-mp-section { padding: 1.35rem 1.1rem 0.4rem; }
@media (min-width: 640px) { .home-mp-section { padding-left: 1.4rem; padding-right: 1.4rem; } }
.home-mp-section h2 {
  font-size: 1.15rem; font-weight: 900; color: #0f172a; margin-bottom: 0.85rem;
}

.home-mp-rail-wrap { position: relative; }
.home-mp-rail {
  display: flex; gap: 0.85rem; overflow-x: auto; padding: 0.25rem 0.1rem 0.9rem;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.home-mp-rail-next {
  position: absolute; right: 0.2rem; top: 40%; z-index: 3;
  width: 2.1rem; height: 2.1rem; border-radius: 999px; border: 1px solid #e2e8f0;
  background: #fff; box-shadow: 0 8px 18px rgba(15,23,42,0.14);
  display: grid; place-items: center; cursor: pointer; font-weight: 900;
}

/* Compact listing cards — same row height as tiles */
.home-mp-card {
  flex: 0 0 158px; scroll-snap-align: start; border-radius: 1rem; overflow: hidden;
  background: #fff; border: 1px solid #e2e8f0; text-decoration: none; color: #0f172a;
  height: 148px; min-height: 148px; max-height: 148px; display: flex; flex-direction: column;
  box-shadow: 0 12px 26px rgba(15,23,42,0.1);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.home-mp-card:hover { transform: translateY(-3px); box-shadow: 0 18px 34px rgba(15,23,42,0.14); }
.home-mp-card .thumb { position: relative; height: 78px; flex-shrink: 0; background: #e2e8f0 center/cover no-repeat; }
.home-mp-card .live {
  position: absolute; top: 7px; left: 7px; background: #15803d; color: #fff;
  font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 999px;
}
.home-mp-card .body { padding: 0.55rem 0.65rem 0.65rem; }
.home-mp-card .title { font-size: 0.76rem; font-weight: 800; line-height: 1.25; color: #0f172a; }
.home-mp-card .meta { margin-top: 0.2rem; font-size: 0.68rem; color: #475569; font-weight: 650; display: flex; align-items: center; gap: 0.2rem; }
.home-mp-card .meta .ti { font-size: 0.72rem; opacity: 0.85; }

/* Module shortcuts — compact secondary rail */
.home-mp-section--shortcuts { padding-top: 0.5rem; }
.home-mp-section--shortcuts h2 { font-size: 0.95rem; margin-bottom: 0.55rem; color: #334155; }
.home-mp-module-rail { padding-bottom: 0.55rem; }
.home-mp-module-rail .home-mp-tile {
  flex: 0 0 118px; height: 82px; min-height: 82px; max-height: 82px;
  padding: 0.5rem 0.55rem;
}
.home-mp-module-rail .home-mp-tile .ico { width: 1.45rem; height: 1.45rem; font-size: 0.8rem; }
.home-mp-module-rail .home-mp-tile .t { font-size: 0.72rem; }
.home-mp-module-rail .home-mp-tile .s { font-size: 0.58rem; }

/* Compact colorful tiles — shorter, aligned */
.home-mp-tile {
  flex: 0 0 140px; height: 96px; min-height: 96px; max-height: 96px;
  border-radius: 1rem; padding: 0.65rem 0.7rem;
  display: flex; flex-direction: column; justify-content: space-between;
  text-decoration: none; font-weight: 800; position: relative; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 12px 24px rgba(15,23,42,0.14);
  transition: transform 0.18s ease;
  scroll-snap-align: start;
}
.home-mp-tile:hover { transform: translateY(-2px) scale(1.02); }
/* Waves disabled for performance */
.home-mp-tile .wave { display: none !important; }
.home-mp-tile .ico {
  width: 1.7rem; height: 1.7rem; border-radius: 999px; display: grid; place-items: center;
  background: rgba(255,255,255,0.78); font-size: 0.9rem;
  box-shadow: 0 3px 8px rgba(15,23,42,0.12); position: relative; z-index: 1;
}
.home-mp-tile .ico .ti { font-size: 0.95rem; line-height: 1; }
.home-mp-tile .t { font-size: 0.78rem; position: relative; z-index: 1; line-height: 1.15; }
.home-mp-tile .s { font-size: 0.62rem; font-weight: 700; opacity: 0.92; position: relative; z-index: 1; }
.home-mp-tile.orange { background: linear-gradient(135deg,#ffd08a 0%,#ff9f1a 40%,#f97316 70%,#ea580c); color: #431407; }
.home-mp-tile.blue { background: linear-gradient(135deg,#a5f3fc 0%,#38bdf8 40%,#0ea5e9 70%,#0284c7); color: #082f49; }
.home-mp-tile.mint { background: linear-gradient(135deg,#bbf7d0 0%,#34d399 40%,#10b981 70%,#059669); color: #022c22; }
.home-mp-tile.pink { background: linear-gradient(135deg,#fbcfe8 0%,#f472b6 40%,#ec4899 70%,#db2777); color: #500724; }
.home-mp-tile.violet { background: linear-gradient(135deg,#ddd6fe 0%,#a78bfa 40%,#8b5cf6 70%,#7c3aed); color: #2e1065; }
.home-mp-tile.slate { background: linear-gradient(135deg,#e2e8f0 0%,#94a3b8 45%,#64748b 75%,#475569); color: #0f172a; }
.home-mp-tile.indigo { background: linear-gradient(135deg,#c7d2fe 0%,#818cf8 40%,#6366f1 70%,#4f46e5); color: #1e1b4b; }
.home-mp-tile.cyan { background: linear-gradient(135deg,#a5f3fc 0%,#22d3ee 40%,#06b6d4 70%,#0891b2); color: #083344; }

/* Category grid — shorter, aligned, photo + color waves */
.home-mp-cats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 0.7rem;
  align-items: stretch;
}
@media (min-width: 768px) { .home-mp-cats { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width: 1100px) { .home-mp-cats { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0.8rem; } }

.home-mp-cat {
  position: relative;
  height: 104px;
  min-height: 104px;
  max-height: 104px;
  border-radius: 1rem;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.55rem 0.7rem 0.6rem;
  border: 1px solid rgba(255,255,255,0.45);
  box-shadow: 0 12px 26px rgba(15,23,42,0.13);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.home-mp-cat:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(15,23,42,0.18);
}
.home-mp-cat .photo {
  position: absolute; inset: 0;
  background: center/cover no-repeat;
  transform: scale(1.02);
  transition: transform 0.35s ease;
  filter: saturate(1.15) contrast(1.05);
}
.home-mp-cat:hover .photo { transform: scale(1.08); }
.home-mp-cat .shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(15,23,42,0.08) 0%, rgba(15,23,42,0.42) 42%, rgba(15,23,42,0.88) 100%),
    radial-gradient(circle at 85% 15%, rgba(255,255,255,0.35), transparent 42%);
}
/* Multi-color wave overlays removed — they slowed the page */
.home-mp-cat .wave { display: none !important; }
.home-mp-cat .label {
  position: relative; z-index: 2;
  font-size: 0.86rem; font-weight: 900; color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.55);
  line-height: 1.15;
}
.home-mp-cat .sub {
  position: relative; z-index: 2;
  margin-top: 0.1rem; font-size: 0.62rem; font-weight: 650;
  color: rgba(255,255,255,0.95); text-shadow: 0 1px 2px rgba(0,0,0,0.45);
  line-height: 1.2; max-width: 96%;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.home-mp-cat .badge {
  position: relative; z-index: 2; align-self: flex-start; margin-top: 0.28rem;
  font-size: 0.58rem; font-weight: 800; color: #0f172a;
  background: rgba(255,255,255,0.94); padding: 0.14rem 0.5rem; border-radius: 999px;
}
.home-mp-map {
  height: 104px; min-height: 104px; max-height: 104px;
  border-radius: 1rem; overflow: hidden;
  display: block; position: relative; text-decoration: none;
  border: 1px solid #e2e8f0; box-shadow: 0 12px 26px rgba(15,23,42,0.12);
  background:
    linear-gradient(135deg, rgba(14,165,233,0.12), rgba(15,23,42,0.28)),
    url("https://upload.wikimedia.org/wikipedia/commons/thumb/e/ea/Pakistan_location_map.svg/1280px-Pakistan_location_map.svg.png") center/cover;
}
.home-mp-map .pin {
  position: absolute; left: 52%; top: 42%; width: 16px; height: 16px;
  background: #ef4444; border: 2px solid #fff; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg) translate(-50%,-50%);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.home-mp-map .cap {
  position: absolute; left: 8px; bottom: 8px;
  background: rgba(255,255,255,0.95); color: #0f172a;
  font-size: 0.68rem; font-weight: 800; padding: 0.3rem 0.55rem; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 0.25rem;
}
.home-mp-map .cap .ti { font-size: 0.75rem; }
.home-mp-trust {
  margin: 1.1rem 1.1rem 1rem; display: flex; flex-wrap: wrap; gap: 0.7rem 1rem;
  padding: 0.8rem 1rem; border-radius: 0.9rem; background: #ecfdf5; border: 1px solid #a7f3d0;
  color: #14532d; font-size: 0.78rem; font-weight: 750;
}
.home-mp-trust span { display: inline-flex; align-items: center; gap: 0.35rem; }
.home-mp-trust .ti { font-size: 0.9rem; opacity: 0.9; }
@media (min-width: 640px) { .home-mp-trust { margin-left: 1.4rem; margin-right: 1.4rem; } }
.home-mp-os {
  display: grid; grid-template-columns: 1fr; gap: 0.65rem; padding: 0 1.1rem 1.2rem;
}
@media (min-width: 640px) {
  .home-mp-os { grid-template-columns: repeat(2,1fr); padding-left: 1.4rem; padding-right: 1.4rem; }
}
@media (min-width: 1024px) { .home-mp-os { grid-template-columns: repeat(4,1fr); } }
.home-mp-os a {
  border-radius: 0.9rem; border: 1px solid #e2e8f0; background: #fff; padding: 0.85rem;
  text-decoration: none; color: inherit; box-shadow: 0 6px 16px rgba(15,23,42,0.06);
}
.home-mp-os .k { font-size: 0.65rem; font-weight: 800; text-transform: uppercase; color: #64748b; }
.home-mp-os .t { margin-top: 0.2rem; font-size: 0.9rem; font-weight: 800; color: #0f172a; }
.home-mp-os .d { margin-top: 0.2rem; font-size: 0.7rem; color: #475569; font-weight: 600; }

/* ========== Part 1 redesign (v2) ========== */
.home-mp--v2 {
  --hf-navy: #0b1f3a;
  --hf-emerald: #059669;
  --hf-gold: #c9a227;
  --hf-ink: #0f172a;
  --hf-muted: #475569;
  font-family: "DM Sans", system-ui, sans-serif;
}
.home-mp--v2 h1,
.home-mp--v2 h2,
.home-mp--v2 h3,
.home-mp--v2 .home-mp-brand-mark,
.home-mp--v2 .home-mp-footer-logo {
  font-family: "Plus Jakarta Sans", "DM Sans", system-ui, sans-serif;
}

/* Split hero — brand-first; Phase 29g: trim excess vertical length (was 78vh/560) */
.home-mp-hero--split {
  min-height: min(48vh, 420px);
  max-height: 480px;
}
.home-mp-hero-grid {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 1.6rem;
  text-align: left;
}
@media (min-width: 900px) {
  .home-mp-hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    padding: 2.1rem 1.6rem 1.9rem;
    gap: 1.75rem;
  }
}
.home-mp-brand-mark {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fbbf24;
  margin: 0 0 0.55rem;
  text-transform: uppercase;
  animation: homeMpBrandIn 0.7s ease both;
}
.home-mp-hero--split h1 {
  font-size: clamp(1.65rem, 4.2vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: #fff;
  margin: 0;
  max-width: 18ch;
  animation: homeMpRise 0.75s 0.08s ease both;
}
.home-mp-hero--split .tagline {
  margin-top: 0.85rem;
  color: rgba(226, 232, 240, 0.95);
  font-size: 0.98rem;
  line-height: 1.45;
  max-width: 36rem;
  animation: homeMpRise 0.75s 0.16s ease both;
}
.home-mp-cta-row {
  margin-top: 1.45rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  animation: homeMpRise 0.75s 0.24s ease both;
}
.home-mp-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.62rem 1.05rem;
  border-radius: 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.12);
  color: #f8fafc;
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.home-mp-cta:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.55);
  transform: translateY(-1px);
}
.home-mp-cta--primary {
  background: #059669;
  border-color: #047857;
  color: #fff;
  box-shadow: 0 8px 22px rgba(5, 150, 105, 0.35);
}
.home-mp-cta--primary:hover { background: #047857; }
/* Phase 29g+ polish — high-contrast hero CTAs (no faint outlines on photo) */
.home-mp-cta--solid {
  background: rgba(15, 23, 42, 0.88);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.35);
}
.home-mp-cta--solid:hover {
  background: #0f172a;
  border-color: #fff;
}
.home-mp-cta--ghost {
  background: rgba(255, 255, 255, 0.16);
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
.home-mp-cta--ghost:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: #fff;
}
.home-mp-cta--rose {
  background: rgba(190, 24, 93, 0.85);
  border-color: #fb7185;
  color: #fff;
}
.home-mp-cta--mint {
  background: rgba(4, 120, 87, 0.85);
  border-color: #34d399;
  color: #fff;
}

/* AI avatar preview (right) */
.home-mp-hero-ai {
  display: flex;
  justify-content: center;
  animation: homeMpFloatIn 0.9s 0.2s ease both;
}
@media (min-width: 900px) {
  .home-mp-hero-ai { justify-content: flex-end; }
}
.home-mp-ai-bubble {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  max-width: 340px;
  padding: 1rem 1.1rem;
  border-radius: 1.1rem;
  background: rgba(255,255,255,0.96);
  color: var(--hf-ink);
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.35);
  border: 1px solid rgba(255,255,255,0.7);
}
.home-mp-ai-avatar {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #0b1f3a, #134e4a);
  color: #fbbf24;
  font-size: 1.35rem;
  box-shadow: 0 6px 16px rgba(11, 31, 58, 0.35);
}
.home-mp-ai-name {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0b1f3a;
}
.home-mp-ai-msg {
  margin: 0.35rem 0 0.7rem;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #334155;
}
.home-mp-ai-ask {
  border: 0;
  border-radius: 0.45rem;
  background: #0b1f3a;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  font-family: inherit;
}
.home-mp-ai-ask:hover { background: #134e4a; }

@keyframes homeMpBrandIn {
  from { opacity: 0; letter-spacing: 0.2em; transform: translateY(8px); }
  to { opacity: 1; letter-spacing: 0.08em; transform: none; }
}
@keyframes homeMpRise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes homeMpFloatIn {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

.home-mp-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.home-mp-section-head h2 { margin-bottom: 0; }
.home-mp-see-all {
  font-size: 0.78rem;
  font-weight: 700;
  color: #0b1f3a;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}
.home-mp-see-all:hover { color: #059669; }

/* Top categories row */
.home-mp-topcats {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding: 0.2rem 0.1rem 0.85rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.home-mp-topcat {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.home-mp-topcat .ti {
  font-size: 1.05rem;
  color: #059669;
}
.home-mp-topcat:hover {
  border-color: #86efac;
  box-shadow: 0 10px 22px rgba(5, 150, 105, 0.12);
  transform: translateY(-1px);
}

/* Trust metrics bar */
.home-mp-metrics {
  margin: 0.35rem 1.1rem 0.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  padding: 1rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #0b1f3a 0%, #134e4a 100%);
  color: #f8fafc;
  box-shadow: 0 14px 36px rgba(11, 31, 58, 0.28);
}
@media (min-width: 640px) {
  .home-mp-metrics {
    margin-left: 1.4rem;
    margin-right: 1.4rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.home-mp-metric {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}
.home-mp-metric-ico {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.7rem;
  display: grid;
  place-items: center;
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.home-mp-metric strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  font-family: "Plus Jakarta Sans", "DM Sans", sans-serif;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.home-mp-metric span {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.88);
  margin-top: 0.12rem;
}

/* Featured badges */
.home-mp-card--featured { flex: 0 0 168px; height: 158px; min-height: 158px; max-height: 158px; }
.home-mp-card--featured .thumb { height: 88px; }
.badge-status {
  position: absolute;
  top: 7px;
  left: 7px;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  color: #fff;
}
.badge-status--featured { background: #0b1f3a; }
.badge-status--hot { background: #dc2626; }

/* Why Choose */
.home-mp-why h2 { margin-bottom: 1rem; }
.home-mp-why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  padding-bottom: 0.5rem;
}
@media (min-width: 640px) { .home-mp-why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .home-mp-why-grid { grid-template-columns: repeat(4, 1fr); } }
.home-mp-why-item {
  padding: 1rem 0.95rem;
  border-radius: 0.95rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}
.home-mp-why-ico {
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.7rem;
  background: #ecfdf5;
  color: #059669;
  font-size: 1.2rem;
  margin-bottom: 0.55rem;
}
.home-mp-why-item h3 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f172a;
}
.home-mp-why-item p {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #475569;
  font-weight: 500;
}

/* Newsletter strip */
.home-mp-newsletter {
  margin: 0.5rem 0 0;
  padding: 0;
  background: linear-gradient(90deg, #0b1f3a, #0f766e 55%, #0b1f3a);
}
.home-mp-newsletter-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.25rem 1.5rem;
  max-width: 1080px;
  margin: 0 auto;
  color: #f8fafc;
}
.home-mp-newsletter h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
}
.home-mp-newsletter p {
  margin: 0.3rem 0 0;
  font-size: 0.82rem;
  color: rgba(226, 232, 240, 0.9);
}
.home-mp-newsletter-form {
  display: flex;
  flex: 1 1 260px;
  max-width: 420px;
  gap: 0.4rem;
  background: #fff;
  border-radius: 0.65rem;
  padding: 0.3rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}
.home-mp-newsletter-form input {
  flex: 1;
  border: 0;
  outline: none;
  min-width: 0;
  padding: 0.55rem 0.75rem;
  font-size: 0.85rem;
  color: #0f172a;
  background: transparent;
  font-family: inherit;
}
.home-mp-newsletter-form button {
  border: 0;
  border-radius: 0.5rem;
  background: #c9a227;
  color: #0b1f3a;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 0.55rem 1rem;
  cursor: pointer;
  font-family: inherit;
}
.home-mp-newsletter-form button:hover { background: #e0b93a; }
.home-mp-newsletter-msg {
  flex: 1 1 100%;
  margin: 0;
  font-size: 0.78rem;
  font-weight: 650;
}
.home-mp-newsletter-msg.is-ok { color: #bbf7d0; }
.home-mp-newsletter-msg.is-err { color: #fecaca; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Homepage footer override */
body.home-marketplace .hadafin-footer.home-mp-footer {
  background: transparent !important;
  margin-top: 0.5rem;
}
body.home-marketplace .home-mp-footer-inner {
  max-width: 1180px;
  margin: 0 auto 1.25rem;
  background: #0b1f3a;
  color: #e2e8f0;
  border-radius: 1.1rem;
  padding: 1.75rem 1.4rem 1.1rem !important;
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.25);
}
body.home-marketplace .home-mp-footer a,
body.home-marketplace .home-mp-footer p,
body.home-marketplace .home-mp-footer li,
body.home-marketplace .home-mp-footer-logo {
  color: #e2e8f0 !important;
}
.home-mp-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}
@media (min-width: 768px) {
  .home-mp-footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
}
.home-mp-footer-logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fbbf24 !important;
  margin: 0 0 0.5rem;
}
.home-mp-footer-blurb,
.home-mp-footer-office {
  font-size: 0.78rem;
  line-height: 1.5;
  color: #94a3b8 !important;
  margin: 0 0 0.55rem;
}
.home-mp-footer-h {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #f8fafc !important;
  margin: 0 0 0.55rem;
}
.home-mp-footer-h--apps { margin-top: 1rem; }
.home-mp-footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.home-mp-footer-list li { margin: 0.28rem 0; }
.home-mp-footer-list a {
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  color: #cbd5e1 !important;
}
.home-mp-footer-list a:hover { color: #fbbf24 !important; }
.home-mp-footer-chat {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: #34d399 !important;
  cursor: pointer;
  text-align: left;
}
.home-mp-footer-chat:hover { color: #fbbf24 !important; }
.home-mp-footer-social {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.75rem;
}
.home-mp-footer-social a {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.08);
  color: #f8fafc !important;
  text-decoration: none;
  font-size: 1rem;
}
.home-mp-footer-social a:hover { background: rgba(251, 191, 36, 0.25); color: #fbbf24 !important; }
.home-mp-store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.35rem;
}
.home-mp-store-badge { display: inline-block; line-height: 0; opacity: 0.95; }
.home-mp-store-badge:hover { opacity: 1; }
.home-mp-footer-copy {
  margin-top: 1.35rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  text-align: center;
}
.home-mp-footer-copy p {
  margin: 0;
  font-size: 0.72rem;
  color: #94a3b8 !important;
}

@media (max-width: 640px) {
  .home-mp-cta-row { gap: 0.4rem; }
  .home-mp-cta {
    flex: 1 1 calc(50% - 0.4rem);
    justify-content: center;
    padding: 0.58rem 0.7rem;
    font-size: 0.72rem;
  }
  .home-mp-hero--split { min-height: auto; }
}
