/* =====================================================================
   Equipment Market 2.0 design layer. Loaded after site.css and overrides it.
   Glass surfaces, soft mesh background, photo category tiles, app-style
   bottom navigation on phones. Light/dark via the same tokens as site.css.
   ===================================================================== */
:root {
  --teal: #0d7377; --teal-d: #095a5d; --teal-l: #14a39b; --coral: #ff6b4a; --coral-l: #ff9478;
  --ink: #0f2f36; --ink-2: #3b5459; --muted: #6b8186;
  --bg: #f3f7f7; --surface: #ffffff; --surface-2: #eef4f4; --border: #e1eaeb;
  --glass: rgba(255,255,255,.68); --glass-b: rgba(255,255,255,.75); --glass-strong: rgba(255,255,255,.86);
  --r-lg: 22px; --r-md: 16px; --r-sm: 12px;
  --sh-1: 0 1px 2px rgba(15,47,54,.05), 0 8px 24px -10px rgba(15,47,54,.18);
  --sh-2: 0 2px 4px rgba(15,47,54,.06), 0 22px 44px -18px rgba(15,47,54,.35);
  --grad: linear-gradient(135deg, #0d7377 0%, #14a39b 100%);
  --grad-cta: linear-gradient(135deg, #ff6b4a 0%, #ff8f5a 100%);
  --font: "Plus Jakarta Sans", Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
html[data-theme="dark"] {
  --ink: #e6f0f0; --ink-2: #b9cccd; --muted: #8aa1a4; --bg: #071518; --surface: #0e2226; --surface-2: #133035; --border: #1d3a40;
  --glass: rgba(14,34,38,.62); --glass-b: rgba(255,255,255,.08); --glass-strong: rgba(14,34,38,.86);
  --sh-1: 0 1px 2px rgba(0,0,0,.35), 0 10px 26px -12px rgba(0,0,0,.6); --sh-2: 0 24px 50px -20px rgba(0,0,0,.75);
}
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] {
    --ink: #e6f0f0; --ink-2: #b9cccd; --muted: #8aa1a4; --bg: #071518; --surface: #0e2226; --surface-2: #133035; --border: #1d3a40;
    --glass: rgba(14,34,38,.62); --glass-b: rgba(255,255,255,.08); --glass-strong: rgba(14,34,38,.86);
    --sh-1: 0 1px 2px rgba(0,0,0,.35), 0 10px 26px -12px rgba(0,0,0,.6); --sh-2: 0 24px 50px -20px rgba(0,0,0,.75);
  }
}

/* ---- Base */
body { font-family: var(--font); background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
body.rtl { font-family: Cairo, var(--font); }
body::before { /* soft mesh behind everything */
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40vw 40vw at 100% 0%, rgba(20,163,155,.10), transparent 60%),
    radial-gradient(35vw 35vw at 0% 30%, rgba(255,107,74,.07), transparent 60%),
    radial-gradient(45vw 45vw at 60% 100%, rgba(13,115,119,.08), transparent 60%);
}
h1, h2, h3, h4, h5, h6 { font-weight: 800; letter-spacing: -.025em; color: var(--ink); }
.btn { border-radius: 12px; font-weight: 700; transition: transform .15s ease, box-shadow .2s ease, background .2s ease; }
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--grad); border: 0; color: #fff; box-shadow: 0 8px 18px -8px rgba(13,115,119,.7); }
.btn-accent:hover { color: #fff; box-shadow: 0 12px 24px -8px rgba(13,115,119,.75); transform: translateY(-1px); }
.btn-soft { background: var(--surface-2); border: 1px solid var(--border); color: var(--ink); }
.btn-soft:hover { background: var(--surface); color: var(--teal); border-color: var(--teal); }
.form-control, .custom-select { border-radius: 12px; min-height: 44px; border-color: var(--border); background-color: var(--surface); color: var(--ink); }
.form-control:focus, .custom-select:focus { border-color: var(--teal-l); box-shadow: 0 0 0 4px rgba(20,163,155,.15); }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.alert { border-radius: var(--r-md); border: 0; box-shadow: var(--sh-1); }
.modal-content { border-radius: var(--r-lg); border: 1px solid var(--glass-b); background: var(--glass-strong); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%); box-shadow: var(--sh-2); }
.modal-backdrop.show { opacity: .35; }
.dropdown-menu { border-radius: var(--r-md); border: 1px solid var(--glass-b); background: var(--glass-strong); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%); box-shadow: var(--sh-2); padding: 8px; }
.dropdown-item { border-radius: 10px; padding: 8px 12px; font-weight: 500; }
.glass { background: var(--glass); border: 1px solid var(--glass-b); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); }
.glass-dark { background: rgba(8,30,34,.42); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); color: #fff; }

/* ---- Header (old bars are gone; hide leftovers if any) */
.topbar, .main-nav { display: none !important; }
.em-header { position: sticky; top: 0; z-index: 1030; padding: 12px 0 0; }
.em-bar { display: flex; align-items: center; gap: 14px; padding: 8px 10px 8px 16px; border-radius: 20px;
  background: var(--glass-strong); border: 1px solid var(--glass-b); box-shadow: var(--sh-1);
  backdrop-filter: blur(22px) saturate(170%); -webkit-backdrop-filter: blur(22px) saturate(170%); transition: box-shadow .25s ease; }
.em-header.scrolled .em-bar { box-shadow: var(--sh-2); }
.em-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); flex-shrink: 0; }
.em-brand:hover { color: var(--ink); }
.em-brand .brand-text { display: flex; flex-direction: column; line-height: 1; font-size: 18px; letter-spacing: -.02em; }
.em-brand .brand-text strong { font-weight: 800; color: var(--ink); }
.em-brand .brand-text span { font-weight: 700; color: var(--teal-l); }
.em-nav { align-items: center; gap: 2px; margin-left: 10px; }
.em-link { display: inline-flex; align-items: center; gap: 6px; padding: 9px 13px; border-radius: 12px; color: var(--ink-2); font-weight: 600; font-size: 14.5px; }
.em-link:hover, .em-link.active, .show > .em-link { color: var(--teal); background: rgba(13,115,119,.08); }
.em-link.dropdown-toggle::after { border: 0; content: "\f107"; font-family: "Font Awesome 5 Free"; font-weight: 900; font-size: 11px; vertical-align: 0; margin-left: 2px; opacity: .6; }
.live-dot, .pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); display: inline-block; position: relative; flex-shrink: 0; }
.live-dot::after, .pulse-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--coral); opacity: 0; animation: em-ping 1.8s ease-out infinite; }
@keyframes em-ping { 0% { transform: scale(.5); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
.em-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.em-icon { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--ink-2);
  display: inline-flex; align-items: center; justify-content: center; position: relative; transition: all .2s ease; font-size: 16px; padding: 0; }
.em-icon:hover { color: var(--teal); border-color: var(--teal-l); transform: translateY(-1px); }
.em-pref { width: auto; padding: 0 10px; gap: 6px; font-weight: 700; font-size: 13px; }
.em-pref .flag { background: var(--grad); color: #fff; border-radius: 6px; padding: 2px 6px; font-size: 11px; }
.em-badge { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--coral); color: #fff; font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; padding: 0 4px; box-shadow: 0 0 0 2px var(--surface); }
.em-avatar { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--grad); color: #fff; font-weight: 800; font-size: 16px; box-shadow: 0 6px 14px -6px rgba(13,115,119,.7); }
.em-login { height: 42px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); font-weight: 700; align-items: center; }
.em-login:hover { border-color: var(--teal-l); color: var(--teal); }
.em-cta { background: var(--grad-cta); color: #fff !important; border: 0; height: 42px; padding: 0 18px; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 10px 22px -10px rgba(255,107,74,.9); }
.em-cta:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -10px rgba(255,107,74,.95); }
.em-ghost { height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: #fff !important; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08); }
.em-ghost:hover { background: rgba(255,255,255,.18); }
.em-menu { min-width: 240px; }
.em-menu .mi { width: 30px; height: 30px; border-radius: 9px; background: var(--surface-2); color: var(--teal); display: inline-flex; align-items: center; justify-content: center; margin-right: 10px; font-size: 13px; }
.em-menu-user { padding: 8px 12px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.em-menu-user strong, .em-menu-user small { display: block; } .em-menu-user small { color: var(--muted); }
.em-menu-label { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 10px 4px 6px; }
.em-pref-menu { width: 300px; padding: 10px 12px 14px; }
.em-market-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.em-market-grid a { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 10px; color: var(--ink); font-size: 13px; font-weight: 600; border: 1px solid transparent; }
.em-market-grid a:hover { background: var(--surface-2); }
.em-market-grid a.on { border-color: var(--teal-l); background: rgba(20,163,155,.08); }
.em-market-grid .flag { background: var(--surface-2); color: var(--teal); border-radius: 6px; padding: 1px 5px; font-size: 10px; font-weight: 800; }
.em-seg { display: flex; padding: 4px; border-radius: 12px; background: var(--surface-2); gap: 4px; }
.em-seg a, .em-seg button { flex: 1; text-align: center; border: 0; background: transparent; padding: 7px; border-radius: 9px; font-weight: 700; font-size: 13px; color: var(--ink-2); }
.em-seg a.on, .em-seg button.on { background: var(--surface); color: var(--teal); box-shadow: var(--sh-1); }
.em-mega { position: static; }
.em-mega-menu { width: min(900px, 92vw); padding: 20px; margin-top: 10px !important; }
.em-mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 24px; }
.em-mega-head { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.em-mega-head .ico { width: 34px; height: 34px; border-radius: 10px; background: var(--grad); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.em-mega-link { display: block; padding: 4px 0 4px 44px; color: var(--ink-2); font-size: 14px; }
.em-mega-link:hover { color: var(--teal); padding-left: 48px; transition: padding .15s ease; }
.em-mega-all { display: inline-flex; gap: 8px; align-items: center; margin-top: 16px; padding: 9px 14px; border-radius: 12px; background: var(--surface-2); font-weight: 700; color: var(--teal); }
.em-mobile-menu { margin-top: 8px; padding: 14px; border-radius: 20px; background: var(--glass-strong); border: 1px solid var(--glass-b); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); box-shadow: var(--sh-2); }
.em-mm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.em-mm-grid a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); color: var(--ink); font-size: 12.5px; font-weight: 600; text-align: center; }
.em-mm-grid a i { font-size: 18px; color: var(--teal); }
.em-mm-wa { display: block; margin-top: 10px; text-align: center; color: #128c4b; font-weight: 700; }

/* ---- Hero */
.page-home .em-header { position: fixed; left: 0; right: 0; }
.em-hero { position: relative; color: #fff; padding: 130px 0 56px; overflow: hidden; border-radius: 0 0 36px 36px; isolation: isolate; }
.em-hero-bg { position: absolute; inset: 0; z-index: -1; background:
    linear-gradient(100deg, rgba(5,36,40,.94) 0%, rgba(8,56,60,.86) 38%, rgba(9,70,74,.35) 70%, rgba(9,70,74,.15) 100%),
    var(--hero-img, url("../img/hero-loader.jpg")) center right / cover no-repeat; }
@media (max-width: 767.98px) { .em-hero-bg { background: linear-gradient(180deg, rgba(5,36,40,.82) 0%, rgba(8,56,60,.92) 55%, #082f33 100%), var(--hero-img-sm, url("../img/hero-loader-sm.jpg")) center top / cover no-repeat; } }
.em-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(90deg, #000 0%, transparent 65%); -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 65%); }
.em-eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; margin-bottom: 18px; }
.em-hero-title { color: #fff; font-size: clamp(32px, 5.2vw, 58px); line-height: 1.04; letter-spacing: -.035em; margin-bottom: 14px; max-width: 14ch; }
.em-hero-sub { color: rgba(255,255,255,.82); font-size: clamp(15px, 1.6vw, 18px); max-width: 52ch; margin-bottom: 26px; }
.em-hero .search-box { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); border-radius: 22px; padding: 10px; backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.em-hero .search-tabs .btn { color: rgba(255,255,255,.85); border-radius: 10px; font-weight: 700; padding: 6px 12px; background: transparent; border: 0; }
.em-hero .search-tabs .btn.active { background: #fff; color: var(--teal); }
.em-hero .search-box > .d-flex.position-relative { background: #fff; border-radius: 16px; padding: 6px; }
.em-hero .search-box .form-control { border: 0; box-shadow: none; min-height: 46px; font-size: 16px; background: transparent; color: #0f2f36; }
.em-hero .search-box .btn-accent { background: var(--grad-cta); border-radius: 12px; min-height: 46px; box-shadow: 0 10px 20px -10px rgba(255,107,74,.9); }
.em-hero .search-box .fa-search { color: #6b8186 !important; }
.em-popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; font-size: 13px; }
.em-popular span { color: rgba(255,255,255,.7); font-weight: 600; }
.em-popular a { color: #fff; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); font-weight: 600; transition: background .2s ease; }
.em-popular a:hover { background: rgba(255,255,255,.22); color: #fff; }
.em-live { border-radius: var(--r-lg); padding: 18px; }
.em-live-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.em-live-head strong { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.em-live-head a { color: #ffb4a1; font-size: 13px; font-weight: 700; }
.em-live-item { display: flex; gap: 10px; align-items: flex-start; padding: 11px 10px; margin: 0 -10px; border-radius: 14px; color: #fff; transition: background .2s ease; }
.em-live-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.em-live-item .t { font-weight: 600; font-size: 14px; line-height: 1.35; }
.em-live-item small { display: block; color: rgba(255,255,255,.6); font-weight: 500; margin-top: 3px; }
.em-live-item .urgent { color: #ffb4a1; }
.em-pill { flex-shrink: 0; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 8px; margin-top: 1px; }
.em-pill.rent { background: rgba(20,163,155,.35); color: #b9fff6; } .em-pill.buy { background: rgba(255,107,74,.3); color: #ffd9cf; }
.em-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 34px; max-width: 760px; }
.em-stats > div { padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.em-stats strong { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.em-stats span { color: rgba(255,255,255,.72); font-size: 13px; }
.em-hero-credit { position: absolute; right: 18px; bottom: 10px; font-size: 10px; color: rgba(255,255,255,.45); }
.em-hero-credit:hover { color: #fff; }

/* ---- Sections */
.em-section { padding: 64px 0; }
.em-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.em-head h2 { font-size: clamp(24px, 3vw, 34px); margin: 0; }
.em-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--coral); margin-bottom: 6px; }
.em-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--teal); padding: 8px 14px; border-radius: 12px; background: rgba(13,115,119,.08); }
.em-more:hover { background: rgba(13,115,119,.14); color: var(--teal); }
.em-more i { transition: transform .2s ease; } .em-more:hover i { transform: translateX(3px); }

/* ---- Category tabs + photo tiles */
.em-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 14px; margin-bottom: 8px; scrollbar-width: none; }
.em-tabs::-webkit-scrollbar { display: none; }
.em-tabs button { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--ink-2); border-radius: 999px; padding: 9px 16px; font-weight: 700; font-size: 14px; transition: all .2s ease; }
.em-tabs button i { color: var(--teal-l); }
.em-tabs button:hover { border-color: var(--teal-l); color: var(--teal); }
.em-tabs button.on { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 10px 20px -10px rgba(13,115,119,.8); }
.em-tabs button.on i { color: #fff; }
.em-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.em-cat { position: relative; display: block; aspect-ratio: 4 / 3.2; border-radius: var(--r-lg); overflow: hidden; color: #fff; background: #0b3a3e; box-shadow: var(--sh-1); isolation: isolate; transition: transform .3s ease, box-shadow .3s ease; }
.em-cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.em-cat::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4,26,29,0) 30%, rgba(4,26,29,.55) 62%, rgba(4,26,29,.92) 100%); }
.em-cat:hover { transform: translateY(-4px); box-shadow: var(--sh-2); color: #fff; }
.em-cat:hover img { transform: scale(1.08); }
.em-cat-fallback { position: absolute; inset: 0; z-index: -2; display: flex; align-items: center; justify-content: center; font-size: 64px; color: rgba(255,255,255,.35); background: var(--grad); }
.em-cat-ico { position: absolute; top: 12px; left: 12px; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 16px;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.em-cat-body { position: absolute; left: 16px; right: 56px; bottom: 14px; }
.em-cat-body strong { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; text-shadow: 0 1px 8px rgba(0,0,0,.3); }
.em-cat-body small { display: inline-block; margin-top: 6px; padding: 2px 9px; border-radius: 999px; background: rgba(255,255,255,.18); font-weight: 700; font-size: 12px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.em-cat-go { position: absolute; right: 14px; bottom: 14px; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--teal); display: flex; align-items: center; justify-content: center; font-size: 13px; transform: translateX(-6px); opacity: 0; transition: all .25s ease; }
.em-cat:hover .em-cat-go { opacity: 1; transform: none; }
@media (max-width: 575.98px) {
  .em-cat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .em-cat { border-radius: 18px; } .em-cat-body { left: 12px; right: 12px; bottom: 10px; } .em-cat-body strong { font-size: 15px; } .em-cat-go { display: none; }
  .em-cat-ico { width: 34px; height: 34px; top: 10px; left: 10px; font-size: 14px; }
}

/* ---- How it works */
.em-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.em-step { position: relative; padding: 26px 24px; border-radius: var(--r-lg); background: var(--glass); border: 1px solid var(--glass-b); box-shadow: var(--sh-1); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); overflow: hidden; }
.em-step-n { position: absolute; right: 18px; top: 8px; font-size: 64px; font-weight: 800; color: var(--teal); opacity: .08; line-height: 1; }
.em-step-ico { width: 52px; height: 52px; border-radius: 16px; background: var(--grad); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 14px; box-shadow: 0 12px 24px -12px rgba(13,115,119,.9); }
.em-step:nth-child(2) .em-step-ico { background: var(--grad-cta); box-shadow: 0 12px 24px -12px rgba(255,107,74,.9); }
.em-step h3 { font-size: 18px; margin-bottom: 6px; } .em-step p { color: var(--muted); margin: 0; }
@media (max-width: 767.98px) { .em-steps { grid-template-columns: 1fr; } }

/* ---- Listing cards */
.l-card { position: relative; display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-1); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.l-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: transparent; }
.l-card.featured { border: 1px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, #ff6b4a, #14a39b) border-box; }
.l-card .thumb { position: relative; display: block; aspect-ratio: 16 / 11; overflow: hidden; background: var(--surface-2); margin: 0; border-radius: 0; }
.l-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.l-card:hover .thumb img { transform: scale(1.06); }
.l-card .thumb::after { content: ""; position: absolute; inset: auto 0 0 0; height: 55%; background: linear-gradient(180deg, transparent, rgba(4,26,29,.55)); pointer-events: none; }
.l-card .tag, .l-card .feat { position: absolute; top: 12px; z-index: 1; border-radius: 999px; padding: 4px 10px; font-size: 11.5px; font-weight: 800; }
.l-card .tag { left: 12px; background: rgba(255,255,255,.85); color: var(--teal-d); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.l-card .tag.sale { background: rgba(15,47,54,.75); color: #fff; }
.l-card .feat { left: auto; right: 56px; background: var(--grad-cta); color: #fff; box-shadow: 0 6px 14px -6px rgba(255,107,74,.9); }
.l-card .price-chip { position: absolute; left: 12px; bottom: 12px; z-index: 1; padding: 6px 12px; border-radius: 12px; font-weight: 800; font-size: 15.5px; color: #0f2f36;
  background: rgba(255,255,255,.88); backdrop-filter: blur(10px) saturate(160%); -webkit-backdrop-filter: blur(10px) saturate(160%); box-shadow: 0 8px 20px -10px rgba(0,0,0,.5); }
.l-card .price-chip small { font-weight: 600; color: #5b7277; font-size: 12px; }
.l-card .fav-btn { position: absolute; top: 10px; right: 10px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); background: rgba(255,255,255,.75); color: #0f2f36;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; transition: transform .2s ease; }
.l-card .fav-btn:hover { transform: scale(1.1); }
.l-card .fav-btn.on { color: var(--coral); background: #fff; }
.l-card .body { padding: 14px 16px 6px; flex: 1; }
.l-card h3 { font-size: 16px; font-weight: 700; letter-spacing: -.01em; line-height: 1.35; margin: 0 0 10px; }
.l-card h3 a { color: var(--ink); } .l-card h3 a:hover { color: var(--teal); }
.l-card h3 a::before { content: ""; position: absolute; inset: 0; z-index: 0; } /* whole card clickable */
.l-card .specs { display: flex; flex-wrap: wrap; gap: 6px; }
.l-card .specs span { font-size: 12px; font-weight: 600; color: var(--ink-2); background: var(--surface-2); border-radius: 8px; padding: 4px 8px; }
.l-card .specs i { color: var(--teal-l); margin-right: 3px; }
.l-card .sub-price { margin-top: 8px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.l-card .avail { margin-top: 8px; font-size: 12.5px; font-weight: 700; color: #16a34a; }
.l-card .foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px 12px 16px; border-top: 1px solid var(--border); margin-top: 8px; }
.l-card .seller { display: flex; align-items: center; gap: 8px; min-width: 0; }
.l-card .seller .av { width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0; background: var(--surface-2); color: var(--teal); font-weight: 800; font-size: 11px; display: flex; align-items: center; justify-content: center; }
.l-card .seller .who { min-width: 0; line-height: 1.2; }
.l-card .seller .n { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.l-card .seller small { color: var(--muted); font-size: 11.5px; }
.l-card .actions { display: flex; gap: 6px; position: relative; z-index: 1; border: 0; padding: 0; margin: 0; }
.l-card .actions .btn { width: 40px; height: 40px; padding: 0; flex: 0 0 auto; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; }
.l-card .fav-btn, .l-card .actions { z-index: 2; }
/* List view on search pages */
#results.list-view .l-card { flex-direction: row; flex-wrap: wrap; }
#results.list-view .l-card .thumb { width: 300px; max-width: 40%; aspect-ratio: auto; min-height: 200px; }
#results.list-view .l-card .body { flex: 1; min-width: 200px; }
#results.list-view .l-card .foot { width: 100%; }
/* Phones: card rows on the home page scroll sideways */
@media (max-width: 575.98px) {
  .em-snap { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -15px; padding: 4px 15px 12px; scrollbar-width: none; }
  .em-snap::-webkit-scrollbar { display: none; }
  .em-snap > div { flex: 0 0 82%; max-width: 82%; scroll-snap-align: start; padding: 0 6px; margin-bottom: 0 !important; }
}

/* ---- Free listing / CTA band */
.em-band { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; padding: 44px; border-radius: 30px; overflow: hidden; color: #fff; isolation: isolate;
  background: radial-gradient(600px 300px at 100% 0%, rgba(255,107,74,.45), transparent 60%), radial-gradient(500px 300px at 0% 100%, rgba(20,163,155,.6), transparent 60%), linear-gradient(135deg, #083a3e, #0d5357); }
.em-band::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35; background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px); background-size: 20px 20px; }
.em-band h2 { color: #fff; font-size: clamp(24px, 3vw, 36px); }
.em-band p { color: rgba(255,255,255,.8); }
.em-band-points { display: grid; gap: 10px; }
.em-band-points > div { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px; font-weight: 700; }
.em-band-points i { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.15); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
@media (max-width: 767.98px) { .em-band { grid-template-columns: 1fr; padding: 28px 22px; border-radius: 24px; } }

/* ---- Brands */
.em-brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.em-brand-chip { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); color: var(--ink); transition: all .2s ease; }
.em-brand-chip:hover { border-color: var(--teal-l); transform: translateY(-2px); box-shadow: var(--sh-1); color: var(--ink); }
.em-brand-chip img { max-height: 32px; max-width: 64px; }
.em-brand-chip .mono { width: 40px; height: 40px; border-radius: 12px; background: var(--grad); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.em-brand-chip strong, .em-brand-chip small { display: block; } .em-brand-chip small { color: var(--muted); }

/* ---- Footer */
.site-footer { display: none; }
.em-footer { margin-top: 40px; padding: 0 0 30px; color: rgba(255,255,255,.75); background: linear-gradient(180deg, #082d31, #051c1f); border-radius: 36px 36px 0 0; }
.em-footer-cta { position: relative; top: -40px; margin-bottom: -10px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 26px 30px; border-radius: 24px;
  background: var(--grad); box-shadow: 0 30px 60px -30px rgba(13,115,119,.9); color: #fff; }
.em-footer-cta h3 { color: #fff; margin: 0 0 4px; font-size: 22px; } .em-footer-cta p { margin: 0; color: rgba(255,255,255,.85); }
.em-footer .em-brand .brand-text strong { color: #fff; }
.em-footer-about { color: rgba(255,255,255,.6); max-width: 34ch; margin-top: 12px; }
.em-footer h6 { color: #fff; font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.em-footer a:not(.btn):not(.em-brand) { display: block; color: rgba(255,255,255,.65); padding: 4px 0; font-size: 14px; }
.em-footer a:not(.btn):not(.em-brand):hover { color: #fff; }
.em-social { display: flex; gap: 8px; } .em-footer .em-social a { display: inline-flex !important; width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.08); align-items: center; justify-content: center; font-size: 16px; padding: 0 !important; }
.em-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 20px; margin-top: 10px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; color: rgba(255,255,255,.5); }
.em-footer .em-footer-bottom a { display: inline !important; color: rgba(255,255,255,.7); }

/* ---- Bottom nav (phones) */
.em-bottom-nav { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 1035; display: flex; align-items: center; justify-content: space-around; height: 64px; padding: 0 6px; border-radius: 22px;
  background: var(--glass-strong); border: 1px solid var(--glass-b); box-shadow: var(--sh-2); backdrop-filter: blur(22px) saturate(170%); -webkit-backdrop-filter: blur(22px) saturate(170%); }
.em-bottom-nav a { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--muted); font-size: 10.5px; font-weight: 700; padding: 6px 0; }
.em-bottom-nav a i { font-size: 18px; }
.em-bottom-nav a.on { color: var(--teal); }
.em-bottom-nav a.on::after { content: ""; position: absolute; bottom: -2px; width: 18px; height: 3px; border-radius: 3px; background: var(--teal); }
.em-bottom-nav .em-bn-add { flex: 0 0 auto; width: 54px; height: 54px; margin-top: -26px; border-radius: 18px; background: var(--grad-cta); color: #fff; justify-content: center; box-shadow: 0 14px 26px -10px rgba(255,107,74,.95); border: 4px solid var(--bg); }
.em-bottom-nav .em-bn-add i { font-size: 20px; }
.em-bn-dot { position: absolute; top: 4px; right: calc(50% - 14px); width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
@media (max-width: 991.98px) {
  body { padding-bottom: 92px; }
  .fab-whatsapp { display: none !important; }
  .fab-chat { bottom: 92px !important; width: 46px; height: 46px; font-size: 20px; }
  .loop-prompt { bottom: 92px !important; }
  body:has(.mobile-contact) .em-bottom-nav { display: none; }
  body:has(.mobile-contact) { padding-bottom: 76px; }
  body:has(.mobile-contact) .fab-chat { bottom: 84px !important; }
  .em-hero { padding-top: 104px; border-radius: 0 0 28px 28px; }
  .em-stats { grid-template-columns: 1fr 1fr; }
  .em-section { padding: 44px 0; }
}
@media (max-width: 575.98px) {
  .em-header { padding-top: 8px; }
  .em-bar { padding: 6px 6px 6px 12px; border-radius: 18px; gap: 6px; }
  .em-brand .brand-text { font-size: 16px; }
  .em-brand svg { width: 34px; height: 34px; }
  .em-icon, .em-avatar { width: 38px; height: 38px; }
  .em-hero-title { max-width: none; }
  .em-hero .search-tabs .btn { padding: 5px 9px; font-size: 13px; }
  .em-footer-cta { padding: 22px; top: -30px; }
  .em-hero-credit { right: 10px; bottom: 6px; }
}

/* ---- Inner pages pick up the new look */
.page-inner main { padding-top: 6px; }
.filters-bar { background: var(--glass-strong); border: 1px solid var(--glass-b); border-radius: var(--r-lg); box-shadow: var(--sh-1); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.page-inner .board-hero { margin-top: -6px; padding-top: 40px !important; border-radius: 28px; margin-left: 15px; margin-right: 15px; }
.inq-card { border-radius: var(--r-lg) !important; transition: transform .25s ease, box-shadow .25s ease; }
.inq-card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.chip { border-radius: 999px; }

/* ---- Scroll reveal (respects reduced motion) */
.js-reveal .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease var(--d, 0s), transform .6s cubic-bezier(.2,.7,.2,1) var(--d, 0s); }
.js-reveal .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
  .live-dot::after, .pulse-dot::after { animation: none; }
  .l-card, .em-cat, .em-cat img, .l-card .thumb img { transition: none; }
}

/* ---- RTL */
.rtl .em-nav { margin-left: 0; margin-right: 10px; }
.rtl .em-actions { margin-left: 0; margin-right: auto; }
.rtl .em-menu .mi { margin-right: 0; margin-left: 10px; }
.rtl .em-mega-link { padding: 4px 44px 4px 0; } .rtl .em-mega-link:hover { padding-right: 48px; padding-left: 0; }
.rtl .em-cat-ico { left: auto; right: 12px; } .rtl .em-cat-body { left: 56px; right: 16px; } .rtl .em-cat-go { right: auto; left: 14px; }
.rtl .em-cat-go i, .rtl .em-more i, .rtl .em-mega-all .fa-arrow-right, .rtl .em-live-head i { transform: scaleX(-1); }
.rtl .l-card .tag { left: auto; right: 12px; } .rtl .l-card .fav-btn { right: auto; left: 10px; } .rtl .l-card .feat { right: auto; left: 56px; }
.rtl .l-card .price-chip { left: auto; right: 12px; }
.rtl .em-step-n { right: auto; left: 18px; }
.rtl .em-hero-bg { transform: scaleX(-1); }
.rtl .em-badge { right: auto; left: -5px; }

/* Dropdown layering: menus always above the hero, cards and sticky bars. */
.em-header .dropdown-menu { z-index: 1060; }
.em-bar { position: relative; }
.em-mega-menu { position: absolute; top: calc(100% + 6px) !important; left: 50% !important; transform: translateX(-50%) !important; right: auto !important; margin-top: 0 !important; }
.em-mega-menu.show { animation: em-drop .18s ease-out; }
.em-header .dropdown-menu.show { animation: em-drop .16s ease-out; }
@keyframes em-drop { from { opacity: 0; margin-top: -6px; } to { opacity: 1; margin-top: 0; } }
/* Chrome cannot blur inside an already-blurred bar, so header menus are solid. */
.em-header .dropdown-menu { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; border: 1px solid var(--border); }
.em-mobile-menu { background: var(--surface); }
.em-hero-title { max-width: 17ch; }
.em-icon:focus, .em-avatar:focus, .em-login:focus, .em-link:focus, .em-tabs button:focus { outline: none; }
.em-icon:focus-visible, .em-avatar:focus-visible, .em-login:focus-visible, .em-link:focus-visible, .em-tabs button:focus-visible { outline: 3px solid rgba(20,163,155,.45); outline-offset: 2px; }
/* Header fits from 992px up: no wrapping, fewer labels on mid-size screens. */
.em-link, .em-cta, .em-login, .em-pref { white-space: nowrap; }
@media (max-width: 1199.98px) {
  .em-nav { margin-left: 4px; }
  .em-nav .em-link { padding: 9px 10px; font-size: 14px; }
  .em-nav .em-brands-link { display: none; }
  .em-header .em-cta .lbl { display: none; }
  .em-header .em-cta { width: 42px; padding: 0; }
}
@media (max-width: 767.98px) { .em-header .em-cta .lbl { display: inline; } }

/* =====================================================================
   Inner pages
   ===================================================================== */
/* Buttons: icon + text always centred, on any page */
.em-cta, .em-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; line-height: 1.1; white-space: nowrap; vertical-align: middle; }
.em-cta.d-none { display: none !important; }
@media (min-width: 768px) { .em-cta.d-md-inline-flex { display: inline-flex !important; } }
@media (min-width: 992px) { .em-cta.d-lg-flex { display: flex !important; } }
.btn-block.em-cta { display: flex; width: 100%; }

/* Page header band */
.em-page-head { position: relative; margin: 14px 0 24px; padding: 34px 36px; border-radius: 28px; overflow: hidden; color: #fff; isolation: isolate;
  background: radial-gradient(520px 260px at 0% 0%, rgba(20,163,155,.45), transparent 60%), radial-gradient(420px 260px at 100% 100%, rgba(255,107,74,.25), transparent 60%), linear-gradient(135deg, #072b2f, #0b4549); box-shadow: var(--sh-2); }
.em-page-head::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .4; background-image: radial-gradient(rgba(255,255,255,.1) 1px, transparent 1px); background-size: 20px 20px; -webkit-mask-image: linear-gradient(90deg, #000, transparent 70%); mask-image: linear-gradient(90deg, #000, transparent 70%); }
.em-ph-photo { position: absolute; top: 0; right: 0; bottom: 0; width: 46%; z-index: -2; background-size: cover; background-position: center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%); mask-image: linear-gradient(90deg, transparent 0%, #000 55%); opacity: .75; }
.em-ph-inner { position: relative; max-width: 720px; }
.em-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 14px; }
.em-crumbs a, .em-crumbs span { color: rgba(255,255,255,.75); }
.em-crumbs a:hover { color: #fff; }
.em-crumbs .sep { font-size: 9px; color: rgba(255,255,255,.4); }
.em-ph-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px; }
.em-page-head h1 { color: #fff; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.1; margin: 0 0 8px; }
.em-page-head p { color: rgba(255,255,255,.82); margin: 0; font-size: 15.5px; }
.em-page-head p small { font-size: 13px; color: rgba(255,255,255,.65); }
.em-ph-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; }
.em-ph-stat { padding: 8px 16px; border-radius: 14px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.em-ph-stat strong { font-size: 22px; font-weight: 800; margin-right: 6px; }
.em-ph-stat span { color: rgba(255,255,255,.75); font-size: 13px; }
.em-ph-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.em-page-head.compact { padding: 24px 30px; }
.em-page-head.compact h1 { font-size: clamp(22px, 3vw, 30px); margin: 0; }
@media (max-width: 767.98px) {
  .em-page-head { padding: 24px 20px; border-radius: 22px; margin-top: 10px; }
  .em-ph-photo { width: 100%; opacity: .25; -webkit-mask-image: none; mask-image: none; }
  .em-ph-actions { width: 100%; }
  .em-ph-actions .btn { flex: 1; }
}
/* Older dark bands (operators, calculators, about) get the same look */
.page-inner .board-hero { max-width: 1110px; margin: 14px auto 24px; padding: 34px 36px !important; border-radius: 28px; box-shadow: var(--sh-2); position: relative; overflow: hidden;
  background: radial-gradient(520px 260px at 0% 0%, rgba(20,163,155,.45), transparent 60%), radial-gradient(420px 260px at 100% 100%, rgba(255,107,74,.25), transparent 60%), linear-gradient(135deg, #072b2f, #0b4549); }
.page-inner .board-hero > .container { max-width: none; padding: 0; }
.page-inner .board-hero .btn-accent { background: var(--grad-cta); box-shadow: 0 10px 22px -10px rgba(255,107,74,.9); display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 1199.98px) { .page-inner .board-hero { margin-left: 15px; margin-right: 15px; } }
@media (max-width: 767.98px) { .page-inner .board-hero { padding: 24px 20px !important; border-radius: 22px; } }

/* Breadcrumbs on detail pages */
.breadcrumb { background: transparent; padding: 14px 0 6px; margin: 0; font-size: 13px; }
.breadcrumb-item a { color: var(--muted); }
.breadcrumb-item.active { color: var(--ink-2); }

/* Search results */
.em-filter-float .filters-bar { padding: 16px; }
.type-toggle .btn, .view-toggle .btn { border-radius: 10px !important; margin-right: 4px; }
.type-toggle .btn.active, .view-toggle .btn.active { background: var(--grad); border-color: transparent; color: #fff; }
.em-results-bar { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 14px; color: var(--muted); }
.em-results-bar strong { color: var(--ink); font-weight: 700; }
.chip { background: var(--surface); border: 1px solid var(--border); padding: 5px 12px; font-size: 13px; }

/* Listing detail */
.em-detail-head { margin: 6px 0 18px; }
.em-detail-head h1 { font-size: clamp(24px, 3.4vw, 38px); line-height: 1.12; margin: 10px 0; }
.em-dh-tags, .em-dh-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.em-dh-meta span { color: var(--muted); font-size: 13.5px; font-weight: 500; margin-right: 10px; }
.em-dh-meta i { color: var(--teal-l); margin-right: 4px; }
.em-tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 800; }
.em-tag.rent { background: rgba(20,163,155,.14); color: var(--teal); }
.em-tag.sale { background: #0f2f36; color: #fff; }
.em-tag.soft { background: var(--surface-2); color: var(--ink-2); }
.em-tag.hot { background: var(--grad-cta); color: #fff; }
.em-tag.ok { background: rgba(22,163,74,.12); color: #15803d; }
.gallery-main { border-radius: 24px; overflow: hidden; box-shadow: var(--sh-2); background: #0b2a2e; }
.gallery-main img { border-radius: 0; }
.g-nav { background: rgba(255,255,255,.78) !important; color: #0f2f36 !important; border-radius: 50% !important; width: 44px !important; height: 44px !important; border: 0 !important; }
.g-tools .btn { background: rgba(255,255,255,.85); border: 0; border-radius: 999px; padding: 6px 14px; }
.gallery-thumbs { gap: 10px; margin-top: 12px; }
.gallery-thumbs img { border-radius: 14px; border: 2px solid transparent; transition: all .2s ease; opacity: .75; }
.gallery-thumbs img.on, .gallery-thumbs img:hover { border-color: var(--teal-l); opacity: 1; }
.em-sub-h { display: flex; align-items: center; gap: 10px; font-size: 20px; margin: 28px 0 14px; }
.em-sub-h .ic { width: 36px; height: 36px; border-radius: 11px; background: var(--grad); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }
.em-spec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.em-spec { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.em-spec .ic { width: 40px; height: 40px; border-radius: 12px; background: rgba(20,163,155,.1); color: var(--teal); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.em-spec small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.em-spec strong { display: block; font-size: 15px; font-weight: 700; color: var(--ink); }
.em-desc { font-size: 15.5px; line-height: 1.7; color: var(--ink-2); }
.price-box { background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, rgba(20,163,155,.6), rgba(255,107,74,.5)) border-box !important; border: 1px solid transparent !important; border-radius: 24px !important; padding: 22px !important; box-shadow: var(--sh-2) !important; }
.price-box .big { font-size: 32px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.rate-grid > div { border-radius: 12px; }
.sticky-side { top: 96px !important; }
.sticky-side .panel { border-radius: 22px; }

/* Buyer requests */
.inq-card { background: var(--surface); border: 1px solid var(--border) !important; box-shadow: var(--sh-1); padding: 18px 20px !important; }

/* Account */
.acc-side { position: sticky; top: 96px; }
.acc-me { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 22px; color: #fff; margin-bottom: 10px;
  background: radial-gradient(300px 140px at 0% 0%, rgba(20,163,155,.6), transparent 70%), linear-gradient(135deg, #072b2f, #0b4549); box-shadow: var(--sh-1); }
.acc-me img, .acc-initial { width: 52px; height: 52px; border-radius: 16px; object-fit: cover; flex-shrink: 0; }
.acc-initial { background: var(--grad-cta); color: #fff; font-weight: 800; font-size: 22px; display: flex; align-items: center; justify-content: center; }
.acc-me small { color: rgba(255,255,255,.7); }
.acc-nav { padding: 8px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--sh-1); }
.acc-nav a { display: flex !important; align-items: center; gap: 12px; padding: 9px 10px !important; border-radius: 14px !important; color: var(--ink-2) !important; font-weight: 600; background: transparent !important; }
.acc-nav .ai { width: 34px; height: 34px; border-radius: 11px; background: var(--surface-2); color: var(--teal); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; transition: all .2s ease; }
.acc-nav a:hover { background: var(--surface-2) !important; color: var(--ink) !important; }
.acc-nav a.active { background: rgba(20,163,155,.1) !important; color: var(--teal) !important; }
.acc-nav a.active .ai { background: var(--grad); color: #fff; box-shadow: 0 8px 16px -8px rgba(13,115,119,.8); }
.acc-count { margin-left: auto; min-width: 22px; height: 22px; border-radius: 11px; background: var(--coral); color: #fff; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.acc-out .ai { color: #b4533e; }
@media (max-width: 991.98px) {
  .acc-side { position: static; }
  .acc-me { padding: 12px 14px; border-radius: 18px; }
  .acc-nav { display: flex; overflow-x: auto; gap: 6px; padding: 6px; border-radius: 18px; scrollbar-width: none; }
  .acc-nav::-webkit-scrollbar { display: none; }
  .acc-nav a { flex-shrink: 0; padding: 7px 12px 7px 7px !important; white-space: nowrap; }
  .acc-nav .ai { width: 28px; height: 28px; border-radius: 9px; font-size: 12px; }
  .acc-count { margin-left: 4px; }
}
.page-account main > .container { padding-top: 20px !important; }
.stat-box { border-radius: 20px !important; padding: 18px !important; border: 1px solid var(--border); box-shadow: var(--sh-1); transition: transform .2s ease; }
.stat-box:hover { transform: translateY(-2px); }
.stat-box > i { width: 40px; height: 40px; border-radius: 12px; background: rgba(20,163,155,.12); color: var(--teal); display: inline-flex !important; align-items: center; justify-content: center; font-size: 16px; margin-bottom: 10px; }
.stat-box .n { font-size: 28px !important; letter-spacing: -.02em; }
.page-account h1 { font-size: clamp(22px, 3vw, 30px); }

/* Sign-in pages: photo panel + form */
@media (min-width: 992px) {
  .page-auth main { display: flex; align-items: stretch; min-height: calc(100vh - 90px); }
  .page-auth main::before { content: ""; flex: 0 0 42%; margin: 14px 0 14px 14px; border-radius: 30px; box-shadow: var(--sh-2);
    background: linear-gradient(160deg, rgba(7,43,47,.25), rgba(7,43,47,.85)), var(--hero-img, url("../img/hero-loader.jpg")) 70% center / cover no-repeat; }
  .page-auth main > .container { flex: 1; display: flex; flex-direction: column; justify-content: center; }
  .rtl.page-auth main::before { margin: 14px 14px 14px 0; }
}
.page-auth .panel { border-radius: 26px; padding: 30px !important; box-shadow: var(--sh-2); }
.page-auth .panel h1 { font-size: 26px; }
.page-auth .btn-accent { min-height: 46px; }

/* Forms */
.custom-control-input:checked ~ .custom-control-label::before { background: var(--teal); border-color: var(--teal); }

/* Dark mode / RTL for the new pieces */
html[data-theme="dark"] .em-tag.sale { background: #e6f0f0; color: #0f2f36; }
html[data-theme="dark"] .g-tools .btn, html[data-theme="dark"] .g-nav { background: rgba(14,34,38,.85) !important; color: #e6f0f0 !important; }
.rtl .em-ph-photo { right: auto; left: 0; -webkit-mask-image: linear-gradient(270deg, transparent 0%, #000 55%); mask-image: linear-gradient(270deg, transparent 0%, #000 55%); }
.rtl .em-crumbs .sep { transform: scaleX(-1); }
.rtl .acc-count { margin-left: 0; margin-right: auto; }
.rtl .em-ph-stat strong { margin-right: 0; margin-left: 6px; }
/* Flash messages on sign-in pages float over the form side instead of splitting the layout. */
@media (min-width: 992px) { .page-auth main { position: relative; } .page-auth main > .container.mt-3 { position: absolute; left: 44%; right: 0; top: 8px; z-index: 5; } .rtl.page-auth main > .container.mt-3 { left: 0; right: 44%; } }

/* Maintenance: service type picker */
.maint-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.maint-type { position: relative; display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-weight: 600; transition: all .2s ease; }
.maint-type input { position: absolute; opacity: 0; pointer-events: none; }
.maint-type i { width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2); color: var(--teal); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.maint-type:hover { border-color: var(--teal-l); }
.maint-type.on { border-color: var(--teal-l); background: rgba(20,163,155,.08); color: var(--teal); }
.maint-type.on i { background: var(--grad); color: #fff; }
/* Write with AI */
.ai-write-btn { background: linear-gradient(135deg, rgba(20,163,155,.12), rgba(255,107,74,.12)); border: 1px solid rgba(20,163,155,.35); color: var(--teal); border-radius: 999px; font-weight: 700; }
.ai-write-btn:hover { background: var(--grad); color: #fff; border-color: transparent; }
.ai-write-box { padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px dashed rgba(20,163,155,.4); }

/* Pages written in admin */
.cms-body { font-size: 15.5px; line-height: 1.75; color: var(--ink-2); }
.cms-body h2 { font-size: 22px; margin: 1.6em 0 .5em; color: var(--ink); }
.cms-body h3 { font-size: 18px; margin: 1.3em 0 .4em; color: var(--ink); }
.cms-body h2:first-child, .cms-body h3:first-child { margin-top: 0; }
.cms-body ul, .cms-body ol { padding-inline-start: 1.3em; }
.cms-body li { margin-bottom: .35em; }
.cms-body blockquote { border-inline-start: 4px solid var(--teal-l); padding: .4em 1em; background: var(--surface-2); border-radius: 0 12px 12px 0; }
.cms-body table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.cms-body th, .cms-body td { border: 1px solid var(--border); padding: 8px 10px; }
.cms-body a { font-weight: 600; }
