/* Plus Jakarta Sans (SIL OFL 1.1, see /fonts/OFL.txt) — self-hosted brand typeface */
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/jakarta-400.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/jakarta-500.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/jakarta-600.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/jakarta-700.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/jakarta-800.woff2') format('woff2'); }
/* ==========================================================================
   Mashhur design system — clean white surfaces, near-black navy, Mashhur purple
   used strategically. Mobile-first; breakpoints 768 / 1024 / 1440.
   ========================================================================== */
:root {
  --ink: #0f172a;
  --navy: #0f172a;
  --navy-2: #1e1b4b;
  --purple: #7c3aed;
  --purple-600: #5b21b6;
  --purple-50: #f5f0ff;
  --purple-100: #ede4ff;
  --text: #1e293b;
  --muted: #5b6577;
  --subtle: #7a8296;
  --line: #e7e3ee;
  --line-2: #d8d1e3;
  --bg: #f8f7fc;
  --surface: #f3f1f8;
  --surface-2: #ebe7f3;
  --green: #0f8a5f;
  --green-50: #e8f6f0;
  --amber: #b45309;
  --amber-50: #fef5e7;
  --red: #c8283b;
  --red-50: #fdecee;
  --star: #f59e0b;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 22, 58, .06);
  --shadow: 0 1px 2px rgba(16, 22, 58, .05), 0 8px 24px -12px rgba(16, 22, 58, .18);
  --shadow-lg: 0 20px 48px -20px rgba(16, 22, 58, .35);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --display: 'Plus Jakarta Sans', system-ui, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--purple); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(28px, 4.2vw, 46px); font-weight: 800; }
h2 { font-size: clamp(21px, 2.4vw, 28px); font-weight: 750; }
h3 { font-size: 17px; font-weight: 700; }
h4 { font-size: 15px; font-weight: 700; }
p { margin: 0 0 1em; }
.i { width: 18px; height: 18px; flex: none; }
.i-sm { width: 15px; height: 15px; flex: none; }
.i-lg { width: 24px; height: 24px; flex: none; }
.muted { color: var(--muted); }
.subtle { color: var(--subtle); font-size: 13px; }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.strong { font-weight: 600; color: var(--ink); }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip:focus { left: 8px; }

/* Layout */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.container-narrow { max-width: 860px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }
.section { padding-top: 40px; padding-bottom: 40px; }
@media (min-width: 1024px) { .section { padding: 64px 0; } }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 4px 0 0; color: var(--muted); }
.link-arrow { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--purple); font-size: 14px; white-space: nowrap; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3, .grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.stack > * + * { margin-top: 12px; }
.row { display: flex; align-items: center; gap: 8px; }
.row-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
@media (max-width: 1023.98px) { .hide-mobile { display: none !important; } }
@media (min-width: 1024px) { .hide-desktop { display: none !important; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent; font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; transition: background .15s var(--ease), border-color .15s var(--ease), transform .15s var(--ease); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--purple-600); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--navy-2); color: #fff; }
.btn-outline { background: #fff; border-color: var(--line-2); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-whatsapp { background: #1fa855; color: #fff; }
.btn-whatsapp:hover { background: #168a45; color: #fff; }
.btn-danger { background: #fff; border-color: #f2c4ca; color: var(--red); }
.btn-danger:hover { background: var(--red-50); color: var(--red); }
.btn-success { background: var(--green); color: #fff; }
.btn-success:hover { background: #0b6f4c; color: #fff; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-lg { height: 50px; padding: 0 24px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-icon { width: 42px; padding: 0; }
.btn-sm.btn-icon { width: 34px; }
.btn[disabled], .btn.is-disabled { opacity: .55; pointer-events: none; }
.btn.is-saved { color: var(--purple); border-color: var(--purple); background: var(--purple-50); }

/* Badges, chips */
.badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.badge .i-sm { width: 13px; height: 13px; }
.badge-verified { background: var(--purple-50); color: var(--purple); }
.badge-green { background: var(--green-50); color: var(--green); }
.badge-amber { background: var(--amber-50); color: var(--amber); }
.badge-red { background: var(--red-50); color: var(--red); }
.badge-dark { background: var(--ink); color: #fff; }
.badge-demo { background: #fff7ed; color: #9a3412; border: 1px dashed #fdba74; }
.badge-sponsored { background: #fff; border: 1px solid var(--line-2); color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-size: 14px; font-weight: 500; color: var(--text); cursor: pointer; white-space: nowrap; transition: border-color .15s, background .15s; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip-dark { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); color: #e6e7f5; }
.chip-dark:hover { border-color: #fff; color: #fff; }
.match { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px 0 7px; border-radius: 999px; background: linear-gradient(90deg, #f3edff, #ece4ff); color: var(--purple-600); font-size: 12px; font-weight: 700; }
.match .i-sm { width: 13px; height: 13px; }
.stars { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--ink); font-size: 14px; }
.stars .i-sm { color: var(--star); fill: var(--star); }
.stars .count { font-weight: 500; color: var(--muted); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--subtle); display: inline-block; }
.dot-green { background: #16a34a; }
.dot-red { background: var(--red); }
.status-open { color: var(--green); font-weight: 600; }
.status-closed { color: var(--red); font-weight: 600; }

/* Cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.card-pad { padding: 20px; }
.card-hover { transition: box-shadow .2s var(--ease), transform .2s var(--ease), border-color .2s; }
.card-hover:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.card h3 { margin-bottom: 6px; }
.panel { background: var(--surface); border-radius: var(--radius); padding: 20px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.site-header .bar { height: var(--header-h); display: flex; align-items: center; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 800; font-size: 21px; color: var(--ink); letter-spacing: -.03em; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--ink); display: grid; place-items: center; color: #fff; }
.logo-mark svg { width: 17px; height: 17px; }
.logo span em { font-style: normal; color: var(--purple); }
.logo:hover { color: var(--ink); }
.nav { display: none; align-items: center; gap: 2px; margin-left: 12px; }
.nav a { padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--muted); }
.nav a:hover, .nav a.is-active { color: var(--ink); background: var(--surface-2); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.header-search { display: none; flex: 1; max-width: 360px; margin-left: 8px; }
.header-search form { position: relative; }
.header-search input { width: 100%; height: 40px; border: 1px solid var(--line-2); background: var(--surface); border-radius: 10px; padding: 0 12px 0 36px; font-size: 14px; }
.header-search .i { position: absolute; left: 11px; top: 11px; color: var(--subtle); }
@media (min-width: 1024px) { .nav { display: flex; } .menu-toggle { display: none; } }
@media (min-width: 1240px) { .header-search.on-inner { display: block; } }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; }
.avatar-lg { width: 56px; height: 56px; font-size: 18px; }

/* Drawer (mobile menu) */
.drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(11, 16, 32, .45); opacity: 0; transition: opacity .2s; }
.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer-panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(86vw, 340px); background: #fff; padding: 16px; overflow-y: auto; transform: translateX(-100%); transition: transform .25s var(--ease); }
.drawer.is-open .drawer-panel { transform: none; }
.drawer-panel nav a { display: flex; align-items: center; gap: 12px; padding: 12px 10px; border-radius: 10px; font-weight: 500; }
.drawer-panel nav a:hover { background: var(--surface); }

/* Mobile bottom nav */
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 55; display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 7px; font-size: 11px; font-weight: 600; color: var(--subtle); }
.bottom-nav a.is-active { color: var(--purple); }
.bottom-nav .i { width: 21px; height: 21px; }
body.has-bottom-nav { padding-bottom: 64px; }
@media (min-width: 1024px) { .bottom-nav { display: none; } body.has-bottom-nav { padding-bottom: 0; } }

/* Hero */
.hero { position: relative; background: var(--navy); color: #e7e8f6; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 420px at 85% -10%, rgba(124, 58, 237, .45), transparent 60%), radial-gradient(700px 360px at -10% 110%, rgba(56, 189, 248, .14), transparent 60%); }
.hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(180deg, #000 30%, transparent); }
.hero .container { position: relative; z-index: 1; padding-top: 48px; padding-bottom: 48px; }
@media (min-width: 1024px) { .hero .container { padding-top: 88px; padding-bottom: 80px; } }
.hero h1 { color: #fff; max-width: 820px; }
.hero h1 .accent { background: linear-gradient(90deg, #c4b5fd, #a78bfa 40%, #f0abfc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(15px, 1.6vw, 18px); color: #b9bcd6; max-width: 620px; margin-bottom: 28px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #c9c2ff; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.searchbox { background: #fff; border-radius: 16px; padding: 8px; display: grid; gap: 8px; box-shadow: var(--shadow-lg); max-width: 900px; }
.searchbox .field-what, .searchbox .field-where { position: relative; display: flex; align-items: center; }
.searchbox .field-what .i, .searchbox .field-where .i { position: absolute; left: 14px; color: var(--subtle); pointer-events: none; }
.searchbox input, .searchbox select { width: 100%; height: 52px; border: 0; border-radius: 10px; background: var(--surface); padding: 0 14px 0 42px; font-size: 15px; color: var(--ink); appearance: none; }
.searchbox input:focus, .searchbox select:focus { outline: 2px solid var(--purple-100); background: #fff; }
.searchbox .btn { height: 52px; }
@media (min-width: 768px) { .searchbox { grid-template-columns: 1.6fr 1fr auto; } .searchbox input, .searchbox select { background: transparent; } .searchbox .field-where { border-left: 1px solid var(--line); } }
.quick { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 32px; font-size: 13px; color: #9fa3c4; }
.hero-stats strong { display: block; font-family: var(--display); font-size: 22px; color: #fff; }

/* Autocomplete */
.ac { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; display: none; max-height: 380px; overflow-y: auto; }
.ac.is-open { display: block; }
.ac-group { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--subtle); padding: 8px 10px 4px; }
.ac a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; font-size: 14px; color: var(--text); }
.ac a:hover, .ac a.is-active { background: var(--surface); color: var(--ink); }
.ac a .i { color: var(--subtle); }

/* Category tiles */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
.cat-tile { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .15s, box-shadow .2s; min-width: 0; }
.cat-tile:hover { border-color: var(--line-2); box-shadow: var(--shadow); color: inherit; }
.cat-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--purple-50); color: var(--purple); display: grid; place-items: center; flex: none; }
.cat-icon .i { width: 21px; height: 21px; }
.cat-tile strong { display: block; font-size: 14.5px; color: var(--ink); line-height: 1.3; }
.cat-tile small { display: block; color: var(--subtle); font-size: 12.5px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Business card */
.biz-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s var(--ease), border-color .2s; min-width: 0; }
.biz-card:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.biz-card .media { position: relative; aspect-ratio: 16 / 8; background: var(--surface-2); overflow: hidden; }
.biz-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.biz-card:hover .media img { transform: scale(1.03); }
.biz-card .media .tags { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.biz-card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.biz-card .head { display: flex; gap: 12px; align-items: flex-start; }
.biz-card .logo-sm { width: 44px; height: 44px; border-radius: 11px; border: 1px solid var(--line); background: #fff; object-fit: cover; flex: none; margin-top: -32px; position: relative; box-shadow: var(--shadow-sm); }
.biz-card h3 { font-size: 16px; margin: 0; line-height: 1.3; }
.biz-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.biz-card .meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--muted); align-items: center; }
.biz-card .meta span { display: inline-flex; align-items: center; gap: 4px; }
.biz-card .actions { display: flex; gap: 8px; margin-top: auto; padding-top: 10px; position: relative; z-index: 2; }
.biz-card .actions .btn { flex: 1; }
.biz-card .save { position: absolute; top: 10px; right: 10px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .95); border: 0; display: grid; place-items: center; cursor: pointer; color: var(--ink); box-shadow: var(--shadow-sm); }
.biz-card .save.is-saved { color: var(--purple); }
.biz-card .save.is-saved .i { fill: var(--purple); }

/* Result row (search list) */
.result { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); position: relative; transition: border-color .15s, box-shadow .2s; }
.result:hover, .result.is-hl { border-color: var(--line-2); box-shadow: var(--shadow); }
.result .thumb { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; background: var(--surface-2); }
@media (min-width: 768px) { .result { grid-template-columns: 168px 1fr; padding: 16px; } .result .thumb { width: 168px; height: 128px; } }
.result h3 { font-size: 17px; margin: 0 0 4px; }
.result h3 a::after { content: ""; position: absolute; inset: 0; }
.result .meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--muted); align-items: center; }
.result .meta span { display: inline-flex; align-items: center; gap: 4px; }
.result .why { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.result .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; position: relative; z-index: 2; }
.result .save { position: absolute; top: 14px; right: 14px; z-index: 3; }
.result-head { padding-right: 44px; }

/* Search page */
.search-layout { display: grid; gap: 20px; padding: 20px 0 40px; }
@media (min-width: 1024px) { .search-layout { grid-template-columns: 260px minmax(0, 1fr); } .search-layout.with-map { grid-template-columns: 250px minmax(0, 1fr) minmax(0, .85fr); } }
.filters { display: none; }
@media (min-width: 1024px) { .filters { display: block; position: sticky; top: calc(var(--header-h) + 16px); align-self: start; max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; } }
.filter-group { padding: 16px 0; border-bottom: 1px solid var(--line); }
.filter-group:first-child { padding-top: 0; }
.filter-group h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--subtle); margin-bottom: 10px; }
.check { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--purple); flex: none; }
.check .count { margin-left: auto; color: var(--subtle); font-size: 12px; }
.map-col { display: none; }
@media (min-width: 1024px) { .map-col { display: block; position: sticky; top: calc(var(--header-h) + 16px); align-self: start; height: calc(100vh - var(--header-h) - 32px); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); } }
.map { width: 100%; height: 100%; min-height: 300px; background: var(--surface-2); }
.map-mobile { height: 70vh; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .count { font-weight: 600; color: var(--ink); }
.intent { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 10px 12px; background: var(--purple-50); border: 1px solid var(--purple-100); border-radius: 12px; font-size: 13px; color: var(--purple-600); margin-bottom: 14px; }
.leaflet-container { font-family: var(--font); }
.map-pin { background: var(--ink); color: #fff; border-radius: 999px; padding: 3px 8px; font-size: 12px; font-weight: 700; white-space: nowrap; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); border: 2px solid #fff; transform: translate(-50%, -100%); position: absolute; }
.map-pin.is-hl { background: var(--purple); z-index: 1000 !important; }
.map-pin-wrap { background: none; border: 0; }

/* Bottom sheet */
.sheet { position: fixed; inset: 0; z-index: 110; visibility: hidden; }
.sheet.is-open { visibility: visible; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(11, 16, 32, .45); opacity: 0; transition: opacity .2s; }
.sheet.is-open .sheet-backdrop { opacity: 1; }
.sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 88vh; overflow-y: auto; background: #fff; border-radius: 20px 20px 0 0; padding: 8px 20px 20px; transform: translateY(100%); transition: transform .25s var(--ease); }
.sheet.is-open .sheet-panel { transform: none; }
.sheet-grip { width: 40px; height: 4px; background: var(--line-2); border-radius: 4px; margin: 4px auto 12px; }
.sheet-foot { position: sticky; bottom: -20px; background: #fff; padding: 12px 0 0; display: flex; gap: 8px; }

/* Profile page */
.profile-cover { position: relative; height: 200px; background: var(--navy); overflow: hidden; }
.profile-cover img { width: 100%; height: 100%; object-fit: cover; }
.profile-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 16, 32, 0) 40%, rgba(11, 16, 32, .55)); }
@media (min-width: 1024px) { .profile-cover { height: 300px; } }
.profile-head { position: relative; margin-top: -48px; display: grid; gap: 16px; }
@media (min-width: 1024px) { .profile-head { grid-template-columns: auto 1fr auto; align-items: end; margin-top: -56px; } }
.profile-logo { width: 96px; height: 96px; border-radius: 22px; border: 4px solid #fff; background: #fff; object-fit: cover; box-shadow: var(--shadow); position: relative; z-index: 2; }
.profile-title h1 { font-size: clamp(24px, 3vw, 34px); margin: 0 0 6px; }
.profile-cta { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-body { display: grid; gap: 24px; padding: 24px 0 48px; }
@media (min-width: 1024px) { .profile-body { grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; } }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; position: sticky; top: var(--header-h); background: #fff; z-index: 20; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button { padding: 12px 14px; font-weight: 600; font-size: 14px; color: var(--muted); border: 0; background: none; border-bottom: 2px solid transparent; white-space: nowrap; cursor: pointer; }
.tabs a:hover, .tabs button:hover { color: var(--ink); }
.tabs a.is-active, .tabs button.is-active { color: var(--ink); border-color: var(--purple); }
.block { padding: 28px 0; border-bottom: 1px solid var(--line); }
.block:last-child { border-bottom: 0; }
.ai-summary { border: 1px solid var(--purple-100); background: linear-gradient(180deg, #faf8ff, #fff); border-radius: var(--radius); padding: 18px; }
.ai-summary .label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--purple); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 8px 12px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.hours-table { width: 100%; font-size: 14px; border-collapse: collapse; }
.hours-table td { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.hours-table tr.today td { font-weight: 700; color: var(--ink); }
.hours-table td:last-child { text-align: right; }
.svc { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.svc:last-child { border-bottom: 0; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 768px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.review { padding: 18px 0; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: 0; }
.review .reply { margin-top: 10px; padding: 12px 14px; background: var(--surface); border-radius: 12px; font-size: 14px; }
.rating-big { font-family: var(--display); font-size: 44px; font-weight: 800; color: var(--ink); line-height: 1; }
.bar-row { display: grid; grid-template-columns: 110px 1fr 32px; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.meter { height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--ink); border-radius: 6px; }
.side-card { position: sticky; top: calc(var(--header-h) + 64px); }
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 56; background: #fff; border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 8px; }
@media (min-width: 1024px) { .sticky-cta { display: none; } }
body.has-sticky-cta { padding-bottom: 76px; }
@media (min-width: 1024px) { body.has-sticky-cta { padding-bottom: 0; } }
.claim-banner { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 14px 16px; border: 1px dashed var(--line-2); border-radius: var(--radius); background: var(--surface); }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; min-width: 0; }
.label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.label .req { color: var(--red); margin-left: 2px; }
.hint { font-size: 12.5px; color: var(--subtle); }
.input, .select, .textarea { width: 100%; height: 44px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; padding: 0 12px; font-size: 15px; transition: border-color .15s, box-shadow .15s; }
.textarea { height: auto; min-height: 110px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235b6175' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px var(--purple-100); }
.input.is-invalid, .select.is-invalid, .textarea.is-invalid { border-color: var(--red); }
.error { font-size: 12.5px; color: var(--red); }
.form-grid { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .span-2 { grid-column: span 2; } }
.form-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; padding-top: 8px; }
.radio-cards { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.radio-card { position: relative; }
.radio-card input { position: absolute; opacity: 0; }
.radio-card > span { display: flex; align-items: center; justify-content: center; text-align: center; gap: 6px; min-height: 48px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 10px; font-size: 14px; font-weight: 500; cursor: pointer; }
.radio-card > input:checked + span { border-color: var(--purple); background: var(--purple-50); color: var(--purple-600); font-weight: 600; }
.radio-card input:focus-visible + span { outline: 2px solid var(--purple); }
.switch { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; padding: 6px 0; }
.switch input { width: 40px; height: 22px; appearance: none; background: var(--line-2); border-radius: 22px; position: relative; cursor: pointer; transition: background .15s; flex: none; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked { background: var(--purple); }
.switch input:checked::after { transform: translateX(18px); }
.steps { display: flex; gap: 6px; margin-bottom: 20px; }
.steps span { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.steps span.done { background: var(--purple); }
.wizard-step { display: none; }
.wizard-step.is-active { display: block; }
.rating-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rating-input input { position: absolute; opacity: 0; }
.rating-input label { cursor: pointer; color: var(--line-2); }
.rating-input label .i { width: 30px; height: 30px; }
.rating-input input:checked ~ label, .rating-input label:hover, .rating-input label:hover ~ label { color: var(--star); }
.rating-input input:checked ~ label .i, .rating-input label:hover .i, .rating-input label:hover ~ label .i { fill: var(--star); }
.rating-input input:focus-visible + label { outline: 2px solid var(--purple); border-radius: 6px; }

/* Alerts & toasts */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 14px; border: 1px solid; margin-bottom: 16px; }
.alert .i { margin-top: 2px; }
.alert-success { background: var(--green-50); border-color: #bfe6d5; color: #0b5e41; }
.alert-error { background: var(--red-50); border-color: #f4c7cd; color: #8f1c2b; }
.alert-info { background: var(--purple-50); border-color: var(--purple-100); color: var(--purple-600); }
.alert-warn { background: var(--amber-50); border-color: #f6dcae; color: #7c3d07; }
.demo-note { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: #9a3412; background: #fff7ed; border: 1px dashed #fdba74; padding: 8px 12px; border-radius: 10px; }
.toast { position: fixed; z-index: 300; left: 50%; bottom: 84px; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg); transition: opacity .2s, transform .2s; pointer-events: none; max-width: calc(100vw - 32px); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 1024px) { .toast { bottom: 28px; } }

/* Empty, skeleton */
.empty { text-align: center; padding: 48px 20px; border: 1px dashed var(--line-2); border-radius: var(--radius); background: #fff; }
.empty .icon { width: 52px; height: 52px; border-radius: 16px; background: var(--surface-2); color: var(--muted); display: grid; place-items: center; margin: 0 auto 14px; }
.empty h3 { margin-bottom: 6px; }
.empty p { color: var(--muted); max-width: 440px; margin: 0 auto 16px; }
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, #e9eaf1 37%, var(--surface-2) 63%); background-size: 400% 100%; animation: sk 1.3s ease infinite; border-radius: 8px; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* Tables */
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--subtle); padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--surface); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: #fbfbfd; }
.table .actions { display: flex; gap: 6px; justify-content: flex-end; }
@media (max-width: 767px) {
  .table-cards thead { display: none; }
  .table-cards, .table-cards tbody, .table-cards tr, .table-cards td { display: block; width: 100%; }
  .table-cards tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .table-cards td { padding: 3px 0; border: 0; }
  .table-cards td[data-label]::before { content: attr(data-label); display: inline-block; min-width: 96px; color: var(--subtle); font-size: 12px; }
  .table-cards .actions { justify-content: flex-start; padding-top: 8px; }
}

/* Pagination */
.pagination { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 24px 0 0; }
.pagination a, .pagination span { min-width: 38px; height: 38px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; font-weight: 500; background: #fff; }
.pagination .is-current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination .is-disabled { color: var(--subtle); }

/* Portal (account / business / admin) layout */
.portal { display: grid; min-height: calc(100vh - var(--header-h)); }
@media (min-width: 1024px) { .portal { grid-template-columns: 252px minmax(0, 1fr); } }
.sidenav { display: none; border-right: 1px solid var(--line); background: #fff; padding: 20px 12px; }
@media (min-width: 1024px) { .sidenav { display: block; position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); overflow-y: auto; } }
.sidenav .group { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--subtle); padding: 14px 10px 6px; }
.sidenav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--muted); }
.sidenav a:hover { background: var(--surface); color: var(--ink); }
.sidenav a.is-active { background: var(--purple-50); color: var(--purple-600); font-weight: 600; }
.sidenav a .pill { margin-left: auto; font-size: 11px; font-weight: 700; background: var(--purple); color: #fff; border-radius: 999px; padding: 1px 7px; }
.portal-main { padding: 20px 16px 48px; min-width: 0; background: var(--surface); }
@media (min-width: 1024px) { .portal-main { padding: 28px 32px 56px; } }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { font-size: clamp(22px, 2.6vw, 28px); margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 768px) { .kpis { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .kpis { grid-template-columns: repeat(5, 1fr); } }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; min-width: 0; }
.kpi .k { font-size: 12.5px; color: var(--muted); font-weight: 500; display: flex; align-items: center; gap: 6px; }
.kpi .v { font-family: var(--display); font-size: 26px; font-weight: 800; color: var(--ink); margin-top: 4px; letter-spacing: -.02em; }
.kpi .d { font-size: 12px; font-weight: 600; margin-top: 2px; }
.kpi .d.up { color: var(--green); }
.kpi .d.down { color: var(--red); }
.chart { width: 100%; height: 220px; }
.score-ring { --v: 0; width: 120px; height: 120px; border-radius: 50%; background: conic-gradient(var(--purple) calc(var(--v) * 1%), var(--surface-2) 0); display: grid; place-items: center; flex: none; }
.score-ring > div { width: 92px; height: 92px; border-radius: 50%; background: #fff; display: grid; place-items: center; text-align: center; font-family: var(--display); font-weight: 800; font-size: 26px; color: var(--ink); line-height: 1; }
.score-ring small { display: block; font-size: 11px; color: var(--subtle); font-weight: 600; font-family: var(--font); }
.todo { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.todo:last-child { border-bottom: 0; }
.todo .pts { font-weight: 700; color: var(--green); white-space: nowrap; }
.mobile-portal-nav { display: flex; gap: 6px; overflow-x: auto; padding: 10px 16px; border-bottom: 1px solid var(--line); background: #fff; scrollbar-width: none; position: sticky; top: var(--header-h); z-index: 30; }
.mobile-portal-nav::-webkit-scrollbar { display: none; }
.mobile-portal-nav a { flex: none; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.mobile-portal-nav a.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (min-width: 1024px) { .mobile-portal-nav { display: none; } }

/* Admin specifics */
.admin-body { background: var(--surface); }
.admin-header { background: var(--ink); border-bottom: 0; }
.admin-header .logo, .admin-header .logo:hover { color: #fff; }
.admin-header .logo-mark { background: var(--purple); }
.admin-header .btn-ghost { color: #d7d9ea; }
.admin-header .btn-ghost:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.cmdk { position: relative; flex: 1; max-width: 420px; }
.cmdk input { width: 100%; height: 38px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); color: #fff; padding: 0 12px 0 36px; font-size: 14px; }
.cmdk input::placeholder { color: #9396b4; }
.cmdk .i { position: absolute; left: 11px; top: 10px; color: #9396b4; }
.cmdk kbd { position: absolute; right: 8px; top: 8px; font-size: 11px; color: #9396b4; border: 1px solid rgba(255, 255, 255, .18); border-radius: 6px; padding: 1px 6px; }
.tree { list-style: none; padding: 0; margin: 0; }
.tree li { border-bottom: 1px solid var(--line); }
.tree .node { display: flex; align-items: center; gap: 10px; padding: 10px 14px; }
.tree .children { list-style: none; padding: 0 0 8px 48px; margin: 0; display: none; }
.tree li.is-open > .children { display: block; }
.tree .children .node { padding: 6px 8px; border-radius: 8px; }
.tree .children .node:hover { background: var(--surface); }
.drag { cursor: grab; color: var(--subtle); }
.icon-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; max-height: 240px; overflow-y: auto; padding: 8px; border: 1px solid var(--line); border-radius: 10px; }
.icon-picker button { height: 44px; border: 1px solid var(--line); border-radius: 8px; background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.icon-picker button.is-active { border-color: var(--purple); background: var(--purple-50); color: var(--purple); }
.progress { height: 10px; border-radius: 10px; background: var(--surface-2); overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--purple); transition: width .4s var(--ease); }
.diff { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; white-space: pre-wrap; word-break: break-word; }
.diff .old { color: var(--red); }
.diff .new { color: var(--green); }

/* Dialog */
dialog.modal { border: 0; border-radius: 18px; padding: 0; width: min(560px, calc(100vw - 32px)); box-shadow: var(--shadow-lg); }
dialog.modal::backdrop { background: rgba(11, 16, 32, .5); }
dialog.modal .modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
dialog.modal .modal-head h3 { margin: 0; }
dialog.modal .modal-body { padding: 20px; }
dialog.modal .modal-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }

/* Footer */
.site-footer { background: var(--ink); color: #a9acc6; padding: 48px 0 28px; font-size: 14px; }
.site-footer h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.site-footer a { color: #a9acc6; display: block; padding: 4px 0; }
.site-footer a:hover { color: #fff; }
.site-footer .logo { color: #fff; }
.site-footer .logo-mark { background: var(--purple); }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr repeat(4, 1fr); } }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 32px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; }

/* Misc sections */
.cta-band { background: var(--navy); color: #c9cbe3; border-radius: 22px; padding: 32px 24px; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 100% 0, rgba(124, 58, 237, .45), transparent 60%); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; }
@media (min-width: 1024px) { .cta-band { padding: 48px; display: flex; align-items: center; justify-content: space-between; gap: 32px; } }
.steps-row { display: grid; gap: 16px; }
@media (min-width: 768px) { .steps-row { grid-template-columns: repeat(3, 1fr); } }
.step-card { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.step-card .num { width: 32px; height: 32px; border-radius: 10px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.emirate-tile { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--navy); color: #fff; }
.emirate-tile .bg { position: absolute; inset: 0; background: linear-gradient(135deg, var(--navy), var(--navy-2)); }
.emirate-tile .bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(260px 160px at 90% 10%, rgba(167, 139, 250, .35), transparent 70%); }
.emirate-tile .txt { position: absolute; left: 16px; bottom: 14px; right: 16px; }
.emirate-tile strong { display: block; font-family: var(--display); font-size: 19px; }
.emirate-tile small { color: #b9bcd6; }
.emirate-tile .ar { position: absolute; right: 14px; top: 10px; font-size: 26px; opacity: .25; font-weight: 700; }
.emirate-tile:hover { color: #fff; }
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 82%); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.scroller > * { scroll-snap-align: start; }
@media (min-width: 768px) { .scroller { grid-auto-columns: minmax(280px, 1fr); grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); overflow: visible; } }
@media (min-width: 1024px) { .scroller { grid-template-columns: repeat(4, 1fr); } }
.offer-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; position: relative; }
.offer-card .media { aspect-ratio: 16 / 8; position: relative; }
.offer-card .media img { width: 100%; height: 100%; object-fit: cover; }
.offer-card .media .badge { position: absolute; top: 10px; left: 10px; background: #fff; color: var(--ink); }
.offer-card .body { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.offer-card h3 { font-size: 15.5px; margin: 0; }
.offer-card h3 a::after { content: ""; position: absolute; inset: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); padding: 14px 0; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .i-sm { width: 13px; height: 13px; color: var(--subtle); }
.page-hero { background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 0 28px; }
.prose { max-width: 720px; font-size: 16.5px; line-height: 1.75; }
.prose p { margin-bottom: 1.2em; }
.compare { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.compare .card.is-best { border-color: var(--purple); box-shadow: 0 0 0 1px var(--purple); }
.compare dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 14px; margin: 12px 0; }
.compare dt { color: var(--muted); }
.compare dd { margin: 0; text-align: right; font-weight: 600; color: var(--ink); }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 16px 22px; font-size: 14px; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--purple); }
.timeline li::after { content: ""; position: absolute; left: 7.5px; top: 17px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.msg { max-width: 80%; padding: 10px 14px; border-radius: 14px; font-size: 14px; margin-bottom: 8px; }
.msg.me { margin-left: auto; background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.msg.them { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.ask-thread { display: flex; flex-direction: column; gap: 14px; }
.ask-bubble { align-self: flex-end; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 16px 16px 4px 16px; max-width: 85%; }
.ask-answer { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
pre.json { background: var(--ink); color: #d6d8ff; padding: 14px; border-radius: 12px; font-size: 12.5px; overflow-x: auto; margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Brand refresh — matches Mashhur concept designs (warm light canvas, bold
   lowercase wordmark, photo-led cards, dark-navy portals)
   ========================================================================== */
.wordmark { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -.045em; color: var(--ink); line-height: 1; }
.wordmark:hover { color: var(--ink); }
.wordmark.is-purple, .wordmark.is-purple:hover { color: var(--purple); }
.wordmark.is-light, .wordmark.is-light:hover { color: #fff; }
.site-header { background: rgba(248, 247, 252, .92); border-bottom-color: transparent; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.nav a { color: var(--text); }
.nav a.is-active { color: var(--purple); background: transparent; }
.loc-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--text); padding: 6px 10px; border-radius: 999px; }
.loc-pill .i-sm { color: var(--purple); }
.btn-pill { border-radius: 999px; }
.btn-outline-ink { background: transparent; border: 1.5px solid var(--ink); color: var(--ink); border-radius: 999px; }
.btn-outline-ink:hover { background: var(--ink); color: #fff; }
.btn-soft { background: var(--purple-50); color: var(--purple-600); }
.btn-soft:hover { background: var(--purple-100); color: var(--purple-600); }
.btn-outline-purple { background: #fff; border: 1.5px solid var(--purple); color: var(--purple); }
.btn-outline-purple:hover { background: var(--purple-50); color: var(--purple-600); }
.card, .biz-card, .result, .kpi, .cat-tile, .offer-card, .step-card, .empty, .table-wrap { border-color: var(--line); }

/* Hero (light) */
.hero-light { position: relative; overflow: hidden; }
.hero-light .container { display: grid; gap: 28px; padding-top: 28px; padding-bottom: 40px; align-items: center; }
@media (min-width: 1024px) { .hero-light .container { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); padding-top: 48px; padding-bottom: 64px; } }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.display { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 6.4vw, 78px); line-height: .98; letter-spacing: -.055em; color: var(--ink); margin: 0 0 18px; }
.display .p { color: var(--purple); }
.hero-light .lead { font-size: clamp(16px, 1.7vw, 20px); color: var(--muted); max-width: 520px; margin-bottom: 26px; }
.searchbar { display: grid; gap: 6px; background: #fff; border: 1.5px solid var(--purple-100); border-radius: 18px; padding: 8px; box-shadow: 0 12px 40px -18px rgba(106, 46, 232, .35); max-width: 640px; }
@media (min-width: 768px) { .searchbar { grid-template-columns: 1fr 190px auto; align-items: center; } }
.searchbar .sf { position: relative; display: flex; align-items: center; }
.searchbar .sf > .i { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.searchbar input, .searchbar select { width: 100%; height: 50px; border: 0; background: transparent; padding: 0 12px 0 44px; font-size: 15.5px; color: var(--ink); appearance: none; border-radius: 12px; }
.searchbar input:focus, .searchbar select:focus { outline: none; background: var(--surface); }
@media (min-width: 768px) { .searchbar .sf-where { border-left: 1px solid var(--line); } }
.searchbar .btn { height: 50px; border-radius: 12px; padding: 0 22px; }
.quicklinks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; font-size: 14.5px; }
.quicklinks a { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 500; }
.quicklinks a .i { color: var(--purple); }
.quicklinks a:hover { color: var(--purple); }
.ask-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--purple); margin-top: 14px; }
.collage { position: relative; height: 380px; }
@media (min-width: 1024px) { .collage { height: 520px; } }
.collage .ph { position: absolute; border-radius: 22px; overflow: hidden; box-shadow: 0 24px 48px -24px rgba(18, 17, 39, .45); background: var(--surface-2); }
.collage .ph img { width: 100%; height: 100%; object-fit: cover; }
.collage .ph-a { left: 0; top: 6%; width: 58%; height: 62%; border-radius: 200px 200px 22px 22px; }
.collage .ph-b { right: 0; top: 0; width: 38%; height: 46%; }
.collage .ph-c { right: 4%; bottom: 0; width: 40%; height: 44%; }
.collage .ph-d { left: 8%; bottom: 0; width: 44%; height: 28%; }
.float-card { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 10px 14px; box-shadow: 0 14px 30px -14px rgba(18, 17, 39, .35); font-size: 13px; max-width: 240px; }
.float-card strong { display: block; color: var(--ink); font-size: 13.5px; }
.float-card small { color: var(--muted); }
.float-card .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--purple-50); color: var(--purple); flex: none; }
.float-1 { left: 32%; top: 58%; }
.float-2 { right: 30%; top: 8%; }
.pin-dot { position: absolute; width: 34px; height: 34px; border-radius: 50%; background: var(--purple); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 8px rgba(106, 46, 232, .15); z-index: 2; }

/* Category bubbles */
.bubbles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 10px; }
@media (min-width: 640px) { .bubbles { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .bubbles { grid-template-columns: repeat(8, 1fr); } }
.bubble { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font-size: 13.5px; font-weight: 500; color: var(--text); }
.bubble .b { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; transition: transform .2s var(--ease); }
.bubble .b .i { width: 26px; height: 26px; }
.bubble:hover .b { transform: translateY(-3px); }
.tone-0 { background: #fde9df; color: #d2551c; } .tone-1 { background: #e3eeff; color: #2f6fdb; } .tone-2 { background: #fde6f1; color: #c2367a; }
.tone-3 { background: #e2f5ea; color: #1f8f55; } .tone-4 { background: #ece6ff; color: #7c3aed; } .tone-5 { background: #fff2d9; color: #b7791f; }
.tone-6 { background: #e0f4f4; color: #138a8a; } .tone-7 { background: #f0ece6; color: #5b6175; }

/* Photo cards */
.pcard { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); transition: box-shadow .2s var(--ease), transform .2s var(--ease); min-width: 0; }
.pcard:hover { box-shadow: 0 18px 40px -22px rgba(18, 17, 39, .4); transform: translateY(-2px); }
.pcard .ph { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.pcard .ph img { width: 100%; height: 100%; object-fit: cover; }
.pcard .ph .tl { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 6px; }
.pcard .heart { position: absolute; right: 12px; top: 12px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .95); display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.pcard .heart.is-saved { color: var(--purple); }
.pcard .heart.is-saved .i { fill: var(--purple); }
.pcard .bd { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pcard .t { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.pcard h3 { font-size: 16.5px; margin: 0; }
.pcard h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pcard .sub { font-size: 13.5px; color: var(--muted); }
.pcard .feat { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--muted); margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.pcard .feat span { display: inline-flex; align-items: center; gap: 5px; }
.pill-open { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; background: #e8f7ee; color: #15803d; font-size: 12px; font-weight: 600; }
.pill-open::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #16a34a; }
.pill-closed { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; background: #fff; color: var(--muted); font-size: 12px; font-weight: 600; }
.rating { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.rating .i-sm { color: var(--star); fill: var(--star); }
.rating span { color: var(--muted); font-weight: 500; }

/* Everyday tiles */
.tiles { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1024px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { position: relative; display: block; background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.tile img { width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; }
.tile .cap { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; font-family: var(--display); font-weight: 700; font-size: 16.5px; color: var(--ink); }
.tile .cap .i { color: var(--purple); }
.tile:hover { color: inherit; }
.tile:hover img { transform: scale(1.03); }
.tile img { transition: transform .4s var(--ease); }

/* Dark band (Ask Mashhur) */
.band-dark { position: relative; background: var(--navy); color: #c9c7e3; overflow: hidden; }
.band-dark::before { content: ""; position: absolute; right: -120px; top: -80px; width: 520px; height: 520px; border-radius: 50%; border: 1px solid rgba(167, 139, 250, .25); }
.band-dark::after { content: ""; position: absolute; right: 40px; top: 40px; width: 300px; height: 300px; border-radius: 50%; border: 1px solid rgba(167, 139, 250, .18); }
.band-dark .container { position: relative; z-index: 1; }
.band-dark h2 { color: #fff; font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -.035em; }
.band-dark h2 .p { color: #a78bfa; }
.prompt-cards { display: grid; gap: 12px; margin-top: 22px; }
@media (min-width: 768px) { .prompt-cards { grid-template-columns: repeat(3, 1fr); } }
.prompt-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .03); color: #e8e6f8; font-size: 14.5px; }
.prompt-card:hover { border-color: #a78bfa; color: #fff; background: rgba(255, 255, 255, .06); }
.prompt-card .i { color: #c4b5fd; }
.prompt-card .go { margin-left: auto; }
.ask-input { display: flex; gap: 8px; background: #fff; border-radius: 14px; padding: 6px; max-width: 720px; margin-top: 18px; }
.ask-input input { flex: 1; border: 0; height: 46px; padding: 0 12px; font-size: 15px; background: transparent; color: var(--ink); }
.ask-input input:focus { outline: none; }

/* Offer row cards */
.ocard { position: relative; display: grid; grid-template-columns: 40% 1fr; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; min-height: 150px; }
.ocard img { width: 100%; height: 100%; object-fit: cover; }
.ocard .bd { padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.ocard .off { align-self: flex-start; background: var(--purple-50); color: var(--purple-600); font-weight: 700; font-size: 12px; padding: 3px 8px; border-radius: 6px; text-transform: uppercase; }
.ocard h3 { font-size: 16px; margin: 6px 0 0; }
.ocard h3 a::after { content: ""; position: absolute; inset: 0; }
.ocard .meta { font-size: 13px; color: var(--muted); }
.ocard .foot { margin-top: auto; display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); padding-top: 8px; }

/* Emirate photo tiles */
.emirates { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .emirates { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .emirates { grid-template-columns: repeat(7, 1fr); } }
.em { position: relative; display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 1 / 1.05; background: var(--navy); }
.em img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.em::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(18, 17, 39, .75)); }
.em span { position: absolute; left: 12px; bottom: 10px; z-index: 1; color: #fff; font-weight: 700; font-size: 14.5px; }
.em small { display: block; font-weight: 500; font-size: 12px; opacity: .8; }
.em:hover img { transform: scale(1.05); }

/* Guides */
.gcard { position: relative; display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.gcard img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }

/* Light CTA band */
.band-lavender { background: linear-gradient(90deg, #efe9ff, #f6f2ff); border-radius: 22px; padding: 28px; display: grid; gap: 20px; align-items: center; position: relative; overflow: hidden; }
@media (min-width: 1024px) { .band-lavender { grid-template-columns: 1fr auto; padding: 40px 48px; } }
.band-lavender h2 { font-size: clamp(24px, 3vw, 36px); letter-spacing: -.035em; margin: 0 0 6px; }
.save-strip { display: flex; gap: 16px; align-items: center; background: #f2edff; border-radius: 18px; padding: 20px 24px; flex-wrap: wrap; }
.save-strip .ic { width: 58px; height: 58px; border-radius: 50%; background: #e7defe; color: var(--purple); display: grid; place-items: center; }

/* Tabs underline (Discover / Ask) */
.utabs { display: flex; gap: 28px; justify-content: center; border-bottom: 1px solid var(--line); }
.utabs a { padding: 14px 4px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.utabs a.is-active { color: var(--purple); border-color: var(--purple); }

/* Search results (concept 01) */
.result { grid-template-columns: 112px 1fr; border-radius: 18px; }
@media (min-width: 768px) { .result { grid-template-columns: 150px minmax(0, 1fr) 210px; align-items: start; } .result .thumb { width: 150px; height: 120px; } }
.result.is-sponsored { background: #faf7ff; border-color: var(--purple-100); }
.why-box { grid-column: 1 / -1; background: #f6f2ff; border-radius: 12px; padding: 10px 12px; font-size: 13px; }
@media (min-width: 768px) { .why-box { grid-column: auto; } }
.why-box .m { color: #15803d; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.why-box details summary { color: var(--purple); cursor: pointer; font-weight: 600; margin-top: 2px; list-style: none; }
.why-box details summary::-webkit-details-marker { display: none; }
.why-box ul { margin: 6px 0 0; padding-left: 16px; color: var(--muted); }
.why-box .actions { flex-direction: column; margin-top: 10px; }
.why-box .actions .btn { width: 100%; }
.tagrow { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.map-count { width: 40px; height: 40px; border-radius: 50%; background: var(--purple); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; border: 3px solid #fff; box-shadow: 0 4px 12px rgba(106, 46, 232, .45); transform: translate(-50%, -50%); position: absolute; }
.map-pin { background: #fff; color: var(--ink); border: 2px solid var(--purple); }
.map-pin.is-hl { background: var(--purple); color: #fff; }

/* Business profile (concept 02) */
.profile-hero { position: relative; background: var(--navy); }
.profile-hero .cover { position: absolute; inset: 0; }
.profile-hero .cover img { width: 100%; height: 100%; object-fit: cover; }
.profile-hero .cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18, 17, 39, .82) 0%, rgba(18, 17, 39, .55) 45%, rgba(18, 17, 39, .15) 100%); }
.profile-hero .container { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-end; padding-top: 70px; padding-bottom: 26px; min-height: 260px; }
@media (min-width: 1024px) { .profile-hero .container { min-height: 320px; padding-bottom: 34px; } }
.profile-hero .lg { width: 104px; height: 104px; border-radius: 20px; background: #fff; padding: 6px; box-shadow: var(--shadow-lg); flex: none; }
.profile-hero .lg img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.profile-hero h1 { color: #fff; font-size: clamp(26px, 3.6vw, 40px); margin: 0 0 6px; }
.profile-hero .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: #dcdaf0; font-size: 14px; align-items: center; }
.profile-hero .meta .rating { color: #fff; }
.profile-hero .meta .rating span { color: #cfcde6; }
.profile-hero .hero-actions { margin-left: auto; display: flex; gap: 8px; }
.profile-hero .hero-actions .btn { background: rgba(255, 255, 255, .95); border: 0; color: var(--ink); }
.badge-verified-solid { background: #e8f7ee; color: #15803d; }
.contact-card .btn { height: 46px; }
.contact-card .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.svc-grid { display: grid; gap: 12px; }
@media (min-width: 768px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }
.svc-card { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.svc-card .price { color: var(--purple); font-weight: 700; margin-top: auto; padding-top: 6px; }
.ai-box { display: grid; gap: 16px; }
@media (min-width: 1024px) { .ai-box { grid-template-columns: 1.4fr 1fr; } }

/* Portals: dark sidebar (business & admin concepts) */
.portal-dark { display: grid; min-height: 100vh; background: var(--surface); }
@media (min-width: 1024px) { .portal-dark { grid-template-columns: 236px minmax(0, 1fr); } }
.dside { display: none; background: var(--navy); color: #b9b6d6; padding: 22px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; flex-direction: column; }
@media (min-width: 1024px) { .dside { display: flex; } }
.dside .wordmark { color: #fff; font-size: 25px; padding: 0 10px 18px; display: block; }
.dside .wordmark em { font-style: normal; color: #a78bfa; font-size: 12px; letter-spacing: 0; font-family: var(--font); font-weight: 600; margin-left: 6px; }
.dside nav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; color: #b9b6d6; margin-bottom: 2px; }
.dside nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.dside nav a.is-active { background: var(--purple); color: #fff; font-weight: 600; }
.dside nav a .pill { margin-left: auto; font-size: 11px; font-weight: 700; background: rgba(255, 255, 255, .14); color: #fff; border-radius: 999px; padding: 1px 7px; }
.dside nav a.is-active .pill { background: rgba(255, 255, 255, .25); }
.dside .grp { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #6e6a93; padding: 14px 12px 6px; }
.dside .acct { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, .05); color: #fff; font-size: 13px; }
.dside .acct small { display: block; color: #8f8bb3; font-size: 11.5px; }
.dtop { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
@media (min-width: 1024px) { .dtop { padding: 14px 32px; } }
.dmain { padding: 22px 16px 56px; min-width: 0; }
@media (min-width: 1024px) { .dmain { padding: 28px 32px 64px; } }
.dmobile { display: flex; gap: 6px; overflow-x: auto; padding: 10px 16px; background: var(--navy); scrollbar-width: none; }
.dmobile::-webkit-scrollbar { display: none; }
.dmobile a { flex: none; height: 32px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #b9b6d6; }
.dmobile a.is-active { background: var(--purple); color: #fff; }
@media (min-width: 1024px) { .dmobile { display: none; } }
.kpi .ic { width: 32px; height: 32px; border-radius: 10px; background: var(--purple-50); color: var(--purple); display: grid; place-items: center; }
.kpi .spark { height: 34px; margin-top: 8px; }
.action-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.action-item:last-child { border-bottom: 0; }
.action-item .ai-ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.status { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 8px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.st-new { background: #ece6ff; color: #5b21b6; } .st-accepted { background: #e3eeff; color: #2f6fdb; } .st-contacted { background: #fff2d9; color: #a16207; }
.st-quoted { background: #e0f4f4; color: #0f7676; } .st-won, .st-approved, .st-published, .st-active, .st-completed, .st-accepted-q { background: #e2f5ea; color: #15803d; }
.st-lost, .st-declined, .st-rejected, .st-removed, .st-cancelled, .st-suspended, .st-spam { background: #fdecee; color: #b42335; }
.st-pending, .st-submitted, .st-review, .st-flagged, .st-matching, .st-negotiating, .st-info_requested { background: #fff2d9; color: #a16207; }
.st-expired, .st-hidden, .st-archived, .st-draft { background: var(--surface-2); color: var(--muted); }
.st-responses_received, .st-sent { background: #e3eeff; color: #2f6fdb; }
.split { display: grid; gap: 16px; }
@media (min-width: 1280px) { .split { grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); align-items: start; } }
.slider-row { display: grid; grid-template-columns: 1fr 160px 48px; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.slider-row input[type=range] { width: 100%; accent-color: var(--purple); }
.checklist li { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 14px; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist .ok { color: #16a34a; }
.checklist .no { color: var(--line-2); }
.concept-tag { font-size: 12px; color: var(--subtle); }
.site-footer-light { background: var(--bg); color: var(--muted); border-top: 1px solid var(--line); }
.site-footer-light h4 { color: var(--ink); }
.site-footer-light a { color: var(--muted); }
.site-footer-light a:hover { color: var(--purple); }
.site-footer-light .wordmark { color: var(--ink); }
.site-footer-light .footer-bottom { border-top-color: var(--line); }
.display { font-size: clamp(38px, 5.2vw, 66px); }
.ocard { min-height: 0; height: 168px; }
.ocard img { height: 168px; }
.ocard .bd { overflow: hidden; }
.result .save { top: 10px; right: 10px; background: rgba(255,255,255,.9); }
@media (min-width: 768px) { .result .save { left: 128px; right: auto; top: 22px; } .result-head { padding-right: 0; } }
.result h3 a::after { z-index: 1; }
.why-box { position: relative; z-index: 2; }
.ask-layout { display: grid; gap: 20px; }
@media (min-width: 1024px) { .ask-layout { grid-template-columns: 220px minmax(0, 1fr) minmax(0, .8fr); } }
.ask-side { position: sticky; top: calc(var(--header-h) + 16px); align-self: start; }
.auth-wrap { display: grid; gap: 24px; max-width: 1080px; margin: 0 auto; padding: 32px 16px 56px; align-items: stretch; }
@media (min-width: 1024px) { .auth-wrap { grid-template-columns: 1fr 1fr; padding-top: 48px; } }
.auth-card { padding: 28px; }
@media (min-width: 768px) { .auth-card { padding: 40px; } }
.auth-art { position: relative; border-radius: 22px; overflow: hidden; min-height: 520px; }
.auth-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--subtle); font-size: 13px; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.acct-layout { display: grid; gap: 20px; }
@media (min-width: 1024px) { .acct-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 32px; } }
.acct-side { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; align-self: start; }
@media (min-width: 1024px) { .acct-side { position: sticky; top: calc(var(--header-h) + 16px); } }
@media (max-width: 1023px) { .acct-side nav { display: flex !important; overflow-x: auto; gap: 4px; } .acct-side nav a { flex: none; } .acct-side nav form { flex: none; } .acct-side h2, .acct-side > .row { display: none; } .acct-side { padding: 8px; } }
.req-card { display: grid; grid-template-columns: 72px 1fr; gap: 14px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; align-items: center; }
@media (min-width: 768px) { .req-card { grid-template-columns: 88px 1fr auto; } }
.req-card .ico { width: 72px; height: 72px; border-radius: 14px; background: var(--purple-50); color: var(--purple); display: grid; place-items: center; }
@media (min-width: 768px) { .req-card .ico { width: 88px; height: 72px; } }
svg.i, svg.i-sm, svg.i-lg { fill: none; }
.stars .i-sm, .rating .i-sm { fill: currentColor; }
/* Result rows: match box sits under the details unless there is room */
.result { grid-template-columns: 112px minmax(0, 1fr); }
.result .why-box { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.result .why-box .actions { flex-direction: row; margin: 0 0 0 auto; }
.result .why-box .actions .btn { width: auto; }
.result .why-box details { flex-basis: auto; }
@media (min-width: 768px) { .result { grid-template-columns: 150px minmax(0, 1fr); } .result .why-box { grid-column: 2; } }
/* result cards keep the 2-column layout inside the narrow results column (3-column variant removed: it overlapped at 1440px+) */
@media (min-width: 1024px) and (max-width: 1439px) { .search-layout.with-map { grid-template-columns: 230px minmax(0, 1fr) minmax(0, .7fr); } }
svg.i, svg.i-sm, svg.i-lg { display: inline-block; vertical-align: -3px; }
.ai-summary .small { display: flex; align-items: center; gap: 6px; }
@media (max-width: 767px) { .panel .form-grid { grid-template-columns: 1fr 1fr !important; } }

/* ── Business portal extras ─────────────────────────────── */
.searchbar.sb-single { grid-template-columns: 1fr auto; align-items: center; }
.meter { height: 8px; background: var(--surface-2, #efeaf7); border-radius: 99px; overflow: hidden; }
.meter > span { display: block; height: 100%; background: linear-gradient(90deg, var(--purple), #a78bfa); border-radius: 99px; }
.side-link { display: block; padding: 9px 12px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 14px; }
.side-link:hover { background: var(--surface); color: var(--ink); }
.side-link.is-active { background: var(--purple-50); color: var(--purple); }
.sep { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.locked { display: flex; gap: 8px; align-items: center; padding: 14px; border: 1px dashed var(--purple-100); border-radius: 12px; background: var(--purple-50); color: var(--purple-600); font-size: 14px; }
.alert-ok { background: var(--green-50); border-color: #bfe6d5; color: #0b5e41; }
.plans { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; }
.plan h3 { margin: 0 0 4px; }
.plan .price { font-size: 30px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.plan .price small { font-size: 14px; font-weight: 500; color: var(--muted); }
.plan form, .plan > .btn { margin-top: auto; }
.plan.is-popular { border: 2px solid var(--purple); box-shadow: 0 20px 50px -28px rgba(106, 46, 232, .55); }
.plan-flag { position: absolute; top: -12px; left: 22px; background: var(--purple); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; }
.hours-grid .row { flex-wrap: wrap; }

/* ── Admin portal ─────────────────────────────────────────── */
.dgroup { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6f6b96; padding: 14px 12px 6px; }
.cmdk { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 10px; height: 40px; width: min(440px, 40vw); color: var(--muted); }
.cmdk input { border: 0; background: transparent; flex: 1; height: 100%; font-size: 14px; color: var(--ink); min-width: 0; }
.cmdk input:focus { outline: none; }
.cmdk kbd { font-size: 11px; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--muted); font-family: var(--font); }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px -18px rgba(21, 19, 43, .35); min-width: 230px; padding: 6px; z-index: 60; }
.menu-pop a, .menu-pop button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 12px; border-radius: 9px; font-size: 14px; color: var(--ink); background: none; border: 0; cursor: pointer; text-align: left; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--surface); }
form.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
form.filters .input, form.filters .select { height: 40px; width: auto; min-width: 150px; }
.bulk-bar { position: sticky; bottom: 16px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 14px; margin-top: 12px; box-shadow: 0 18px 40px -16px rgba(21, 19, 43, .6); z-index: 20; }
.bulk-bar .select { height: 36px; width: auto; }
.queue-item { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.queue-item:last-child { border-bottom: 0; }
.diff { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 13px; }
.diff > div { padding: 8px 10px; border-radius: 10px; word-break: break-word; }
.diff .old { background: var(--red-50); color: #8f1c2b; text-decoration: line-through; }
.diff .new { background: var(--green-50); color: #0b5e41; }
.weight { display: grid; grid-template-columns: 180px 1fr 52px; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.weight input[type=range] { width: 100%; accent-color: var(--purple); }
.weight output { font-weight: 700; color: var(--ink); text-align: right; }
@media (max-width: 640px) { .weight { grid-template-columns: 1fr 52px; } .weight input[type=range] { grid-column: 1 / -1; } }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.progress { height: 10px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--purple), #a78bfa); transition: width .4s; }
.pill-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.pill-tabs a { padding: 7px 14px; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--muted); }
.pill-tabs a.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.pill-tabs a .badge { margin-left: 4px; }
.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; max-height: 220px; overflow-y: auto; padding: 4px; border: 1px solid var(--line); border-radius: 12px; }
.icon-grid button { height: 44px; border: 1px solid transparent; background: var(--surface); border-radius: 10px; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.icon-grid button.is-active { border-color: var(--purple); background: var(--purple-50); color: var(--purple); }
[hidden] { display: none !important; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 6px; background: var(--surface-2); color: var(--muted); vertical-align: 1px; line-height: 1.6; }
.stepper { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 18px; flex-wrap: wrap; counter-reset: s; }
.stepper li { display: flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; background: #fff; border: 1px solid var(--line); border-radius: 99px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.stepper li span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-size: 12px; }
.stepper li.current { border-color: var(--purple); color: var(--purple); }
.stepper li.current span { background: var(--purple); color: #fff; }
.stepper li.done { color: var(--ink); }
.stepper li.done span { background: var(--green); color: #fff; }
.st-uploaded, .st-mapping, .st-categories, .st-validated, .st-importing, .st-sent, .st-viewed { background: #ece6ff; color: #5b21b6; }
.st-rolled_back, .st-failed, .st-replaced, .st-inactive { background: var(--surface-2); color: var(--muted); }

/* Business profile hero on small screens */
@media (max-width: 767.98px) {
  .profile-hero .container { flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 40px; }
  .profile-hero .lg { width: 72px; height: 72px; border-radius: 16px; padding: 4px; }
  .profile-hero .container > div[style*="flex:1"] { width: 100%; }
  .profile-hero .breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; font-size: 12.5px; }
  .profile-hero .hero-actions { margin-left: 0; }
  .profile-hero .cover::after { background: linear-gradient(180deg, rgba(18, 17, 39, .55) 0%, rgba(18, 17, 39, .88) 100%); }
}

/* ── Bookings ─────────────────────────────────────────────── */
.book-h { display: flex; align-items: center; gap: 10px; font-size: 17px; margin: 0 0 14px; }
.book-h span { width: 26px; height: 26px; border-radius: 50%; background: var(--purple); color: #fff; display: grid; place-items: center; font-size: 13px; }
.day-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.day-strip .day { flex: none; width: 64px; padding: 10px 0; border-radius: 14px; border: 1px solid var(--line); background: #fff; display: grid; gap: 2px; text-align: center; cursor: pointer; scroll-snap-align: start; color: var(--ink); }
.day-strip .day small { font-size: 11.5px; color: var(--muted); }
.day-strip .day strong { font-size: 19px; }
.day-strip .day.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.day-strip .day.is-active small { color: #cfcde6; }
.day-strip .day.is-full { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.slot-grid button { height: 42px; border-radius: 10px; border: 1px solid var(--purple-100); background: #fff; color: var(--purple); font-weight: 600; cursor: pointer; }
.slot-grid button:hover { background: var(--purple-50); }
.slot-grid button.is-active { background: var(--purple); color: #fff; border-color: var(--purple); }
.cal-day { border-left: 3px solid var(--purple); padding: 10px 14px; border-radius: 10px; background: #fff; border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 86px 1fr auto; gap: 12px; align-items: center; }
.cal-day.st-b-pending { border-left-color: var(--amber); }
.cal-day.st-b-cancelled, .cal-day.st-b-no_show { border-left-color: var(--muted); opacity: .7; }
.cal-day.st-b-completed { border-left-color: var(--green); }
@media (max-width: 640px) { .cal-day { grid-template-columns: 1fr; } }
.st-confirmed, .st-paid, .st-succeeded { background: #e2f5ea; color: #15803d; }
.st-no_show, .st-unpaid, .st-partially_refunded, .st-refunded, .st-void { background: var(--surface-2); color: var(--muted); }
.date-chip { width: 58px; flex: none; border-radius: 14px; background: var(--purple-50); color: var(--purple); display: grid; text-align: center; padding: 8px 0; line-height: 1.15; }
.date-chip small { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.date-chip strong { font-size: 22px; color: var(--ink); }
.date-chip-lg { width: 72px; }

/* ── Sponsored (Mashhur Ads) — visibly different from organic results ── */
.sponsored-card { display: grid; grid-template-columns: 120px 1fr auto; gap: 14px; align-items: center; padding: 12px; border-radius: var(--radius); border: 1px dashed #d9cdfb; background: linear-gradient(0deg, #fbf9ff, #fbf9ff); }
.sponsored-card .sp-media img { width: 120px; height: 84px; object-fit: cover; border-radius: 12px; display: block; }
.sponsored-card .sp-tag { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #5b21b6; background: #ece6ff; padding: 2px 8px; border-radius: 6px; }
.sponsored-card .sp-name { font-size: 16px; margin: 4px 0 2px; }
.sponsored-card .sp-name a { color: var(--ink); }
.sponsored-card .sp-headline { margin: 0 0 2px; font-size: 14px; color: var(--ink); }
.sponsored-card.is-compact { grid-template-columns: 72px 1fr; }
.sponsored-card.is-compact .sp-media img { width: 72px; height: 72px; }
.sponsored-card.is-compact .sp-cta { display: none; }
@media (max-width: 640px) { .sponsored-card { grid-template-columns: 84px 1fr; } .sponsored-card .sp-media img { width: 84px; height: 84px; } .sponsored-card .sp-cta { grid-column: 1 / -1; } }
.sponsored-row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.faq-item { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq-item:last-child { border-bottom: 0; }
.faq-item summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--purple); font-weight: 700; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 8px 0 0; }
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.kan-col { background: var(--surface-2); border-radius: 14px; padding: 10px; min-height: 240px; display: flex; flex-direction: column; gap: 8px; }
.kan-col header { display: flex; flex-direction: column; gap: 2px; padding: 2px 4px 6px; }
.kan-col.is-over { outline: 2px dashed var(--purple); outline-offset: -4px; }
.kan-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: grid; gap: 3px; cursor: grab; }
.kan-card:active { cursor: grabbing; }
.radio-card > span span { display: inline; border: 0; padding: 0; min-height: 0; }
.split > * { min-width: 0; }

/* ---- Responsive hardening (device QA pass) ---- */
img, video, canvas { max-width: 100%; }
input, select, textarea { max-width: 100%; }
.acct-layout > *, .ask-layout > *, .biz-main, .admin-main { min-width: 0; }
.table-scroll { width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll > .table th { white-space: nowrap; }
.table-scroll > .table td.wrap { white-space: normal; }
/* Header: keep everything on one line between 1024px and 1439px */
@media (min-width: 1024px) and (max-width: 1279.98px) {
  .site-header .bar { gap: 10px; }
  .nav { margin-left: 4px; }
  .nav a { padding: 8px 8px; font-size: 13.5px; }
  .header-actions .loc-pill, .header-actions .btn-pill { display: none !important; }
}
@media (min-width: 1240px) and (max-width: 1439.98px) { .header-search.on-inner { display: none; } }
/* Two/three-column page splits collapse on small screens */
@media (min-width: 1024px) { .split.split-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .split.split-even { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }
@media (min-width: 768px) and (max-width: 1023.98px) { .split.split-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .split.split-aside { grid-template-columns: 300px minmax(0, 1fr); } }
/* Inline admin/biz form rows */
.fg-syn, .fg-3a, .fg-svc { grid-template-columns: 1fr; }
@media (min-width: 768px) { .fg-syn { grid-template-columns: 1fr 2fr 1fr auto; } .fg-3a { grid-template-columns: 1fr 1fr auto; } .fg-svc { grid-template-columns: 2fr 1fr 1fr 1fr auto; } }
@media (min-width: 560px) and (max-width: 767.98px) { .fg-svc { grid-template-columns: 1fr 1fr; } .fg-svc > :first-child { grid-column: 1 / -1; } }
/* Misc */
.ask-input input { min-width: 0; }
.ask-input .btn { flex: none; }
.date-nav-label { min-width: 0; flex: 1; text-align: center; font-size: 15px; }
@media (min-width: 640px) { .date-nav-label { min-width: 200px; } }
.sponsored-card { grid-template-columns: 120px minmax(0, 1fr) auto; }
.sponsored-card.is-compact { grid-template-columns: 72px minmax(0, 1fr); }
@media (max-width: 640px) { .sponsored-card { grid-template-columns: 84px minmax(0, 1fr); } }
.menu-pop { max-width: calc(100vw - 32px); }
.page-hero .select, .page-hero .input { max-width: 100%; }
@media (max-width: 767.98px) { .result .result-head { padding-right: 38px; } }
.save-strip > .grow { flex: 1 1 220px; min-width: 0; }
.save-strip > .btn { flex: none; }
@media (max-width: 560px) { .save-strip { padding: 18px; } .save-strip > .btn { width: 100%; justify-content: center; } .save-strip .ic { width: 48px; height: 48px; } }
.ocard .foot { flex-wrap: wrap; gap: 2px 10px; }
.bar-row > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row { grid-template-columns: minmax(0, 110px) minmax(0, 1fr) 32px; }
.tree .node { flex-wrap: wrap; }
.tree .node .grow { min-width: 0; flex: 1 1 180px; overflow-wrap: break-word; }
.todo .grow { min-width: 0; overflow-wrap: break-word; }
.table-cards td { overflow-wrap: break-word; }
.table td .tiny, .table td.tiny { overflow-wrap: break-word; }
.ocard { height: auto; min-height: 168px; }
.ocard img { height: 100%; min-height: 168px; }
.ocard .bd { overflow: visible; min-width: 0; }
.gallery > div { position: relative; }
.table-scroll td.small.subtle { max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.cell-clip { display: block; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 1280px) and (max-width: 1599.98px) { .cell-clip { max-width: 120px; } }
.result .result-head h3 { overflow-wrap: break-word; }
@media (max-width: 767.98px) { .result .result-head { padding-right: 44px; } }
@media (max-width: 640px) {
  .todo { flex-wrap: wrap; row-gap: 6px; }
  .todo > .grow { flex: 1 1 170px; }
  .todo > .status, .todo > .badge, .todo > .tag { margin-left: auto; }
}
@media (min-width: 768px) { .table-wide { min-width: 960px; } }
.result { grid-template-columns: 96px minmax(0, 1fr); }
@media (min-width: 768px) { .result { grid-template-columns: 150px minmax(0, 1fr); } }
.result > * { min-width: 0; }
.result h3 { overflow-wrap: anywhere; hyphens: auto; }
.result .meta { min-width: 0; }
.result .result-head > h3 { min-width: 0; max-width: 100%; }

/* ---- Official Mashhur logo + brand palette (developer kit v1.2) ---- */
.brand-logo { display: inline-flex; align-items: center; flex: none; line-height: 0; }
.brand-logo img { display: block; width: auto; max-width: none; }
.header-logo img { height: 28px !important; }
@media (min-width: 1024px) { .header-logo img { height: 30px !important; } }
.dside-brand { display: flex; align-items: center; gap: 10px; padding: 2px 10px 22px; }
.dside-brand .brand-logo img { height: 22px !important; }
.portal-tag { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #ddd6fe; background: rgba(167, 139, 250, .16); border: 1px solid rgba(167, 139, 250, .32); padding: 3px 8px; border-radius: 999px; line-height: 1.2; }
/* Footer: dark navy with the reverse logo */
.site-footer { background: #0f172a; color: #a3acbf; }
.site-footer h4 { color: #fff; font-family: var(--display); letter-spacing: .01em; }
.site-footer a { color: #b6bdcc; }
.site-footer a:hover { color: #c4b5fd; }
.site-footer p { color: #a3acbf; }
.site-footer .brand-logo img { height: 52px !important; }
.site-footer .footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); color: #8b93a7; }
.site-footer .footer-bottom a { display: inline; }
.site-footer { border-top: 3px solid transparent; border-image: linear-gradient(90deg, #5b21b6 0%, #7c3aed 45%, #a78bfa 100%) 1; }
@media (max-width: 560px) { .site-footer .brand-logo img { height: 44px !important; } }
/* Primary buttons follow brand: #7C3AED, hover #5B21B6 */
.btn-primary { background: #7c3aed; border-color: #7c3aed; }
.btn-primary:hover { background: #5b21b6; border-color: #5b21b6; }
.nav a { white-space: nowrap; }
.nav { flex: none; }
.header-actions { flex: none; }
.header-actions > * { flex: none; white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1439.98px) { .nav a { padding: 8px 9px; } }
@media (min-width: 1240px) and (max-width: 1599.98px) { .header-search.on-inner { display: none !important; } }
@media (min-width: 1600px) { .header-search.on-inner { display: block; } }
@media (max-width: 1023.98px) { .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (min-width: 640px) and (max-width: 1023.98px) { .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.photo-empty { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 18px; border: 1px dashed var(--line-2); border-radius: var(--radius); background: #fff; }
.photo-empty .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--purple-50); color: var(--purple); display: grid; place-items: center; flex: none; }
.photo-empty .grow { flex: 1 1 220px; min-width: 0; }
