/* Equipment Market public site. Bootstrap 4 base + these tokens.
   Light/dark via [data-theme] on <html>; "system" follows the OS. */
:root {
  --accent: #0d7377;
  --coral: #ff6b4a;
  --coral-50: #fff0ec;
  --brand-mark-bg: #0d7377;
  --accent-600: #095a5d;
  --accent-50: #e7f4f4;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --border: #e2e8f0;
  --nav-bg: #0f2f36;
  --nav-ink: #e2e8f0;
  --success: #16a34a;
  --wa: #25d366;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15,23,42,.06), 0 4px 16px rgba(15,23,42,.06);
}
html[data-theme="dark"] {
  --accent: #2bb3a8; --accent-600: #5cc9c0; --brand-mark-bg: #1a8f87;
  --ink: #e5e7eb; --ink-2: #cbd5e1; --muted: #94a3b8; --bg: #0b1020; --surface: #121a2b;
  --surface-2: #1a2336; --border: #243049; --accent-50: #0f2e2e; --shadow: 0 1px 2px rgba(0,0,0,.4);
}
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] {
    --accent: #2bb3a8; --accent-600: #5cc9c0; --brand-mark-bg: #1a8f87;
    --ink: #e5e7eb; --ink-2: #cbd5e1; --muted: #94a3b8; --bg: #0b1020; --surface: #121a2b;
    --surface-2: #1a2336; --border: #243049; --accent-50: #0f2e2e; --shadow: 0 1px 2px rgba(0,0,0,.4);
  }
}

body { font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--ink); font-size: 15px; }
body.rtl { font-family: Cairo, Inter, system-ui, sans-serif; text-align: right; }
a { color: var(--accent-600); }
a:hover { color: var(--accent); text-decoration: none; }
h1,h2,h3,h4,h5,h6 { color: var(--ink); font-weight: 700; letter-spacing: -.01em; }
.text-muted, .text-muted-2 { color: var(--muted) !important; }
hr { border-color: var(--border); }
.form-control, .custom-select { background-color: var(--surface); color: var(--ink); border-color: var(--border); border-radius: 10px; }
.form-control:focus, .custom-select:focus { background-color: var(--surface); color: var(--ink); border-color: var(--accent); box-shadow: 0 0 0 .2rem rgba(13,115,119,.2); }
.form-control::placeholder { color: var(--muted); }
.input-group-text { background: var(--surface-2); border-color: var(--border); color: var(--muted); }
.modal-content, .dropdown-menu, .card, .list-group-item { background: var(--surface); color: var(--ink); border-color: var(--border); }
.dropdown-item { color: var(--ink); }
.dropdown-item:hover, .dropdown-item:focus { background: var(--surface-2); color: var(--ink); }
.dropdown-item.active { background: var(--accent); color: #fff; }
.close { color: var(--ink); }
.table { color: var(--ink); }
.table td, .table th { border-color: var(--border); }
.page-link { background: var(--surface); border-color: var(--border); color: var(--ink); }
.page-item.active .page-link { background: var(--accent); border-color: var(--accent); color: #fff; }
.page-item.disabled .page-link { background: var(--surface-2); border-color: var(--border); }

/* Buttons */
.btn { border-radius: 10px; font-weight: 600; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover, .btn-accent:focus { background: var(--accent-600); border-color: var(--accent-600); color: #fff; }
.btn-outline-accent { border: 1px solid var(--accent); color: var(--accent-600); background: transparent; }
.btn-outline-accent:hover { background: var(--accent); color: #fff; }
.btn-dark-ink { background: var(--nav-bg); color: #fff; border-color: var(--nav-bg); }
.btn-dark-ink:hover { color: #fff; opacity: .9; }
.btn-whatsapp { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn-whatsapp:hover { color: #fff; filter: brightness(.95); }
.btn-soft { background: var(--surface-2); border: 1px solid var(--border); color: var(--ink); }
.btn-soft:hover { color: var(--ink); border-color: var(--accent); }
.badge-accent { background: var(--accent); color: #fff; }

/* Top bar */
.topbar { background: var(--surface); border-bottom: 1px solid var(--border); font-size: 13px; padding: 6px 0; }
.topbar-link { color: var(--ink-2); font-size: 13px; }
.topbar-link:hover { color: var(--accent-600); }
.flag { display: inline-block; font-size: 10px; font-weight: 800; background: var(--surface-2); border: 1px solid var(--border); border-radius: 4px; padding: 0 4px; color: var(--ink-2); }
.theme-switch { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.theme-switch button { background: transparent; border: 0; color: var(--muted); padding: 2px 8px; font-size: 12px; }
.theme-switch button.on { background: var(--accent); color: #fff; }
.notif-count { position: absolute; top: -8px; right: -10px; font-size: 10px; }

/* Main nav */
.main-nav { background: var(--nav-bg); padding: 10px 0; }
.main-nav .nav-link { color: var(--nav-ink) !important; font-weight: 600; padding: 8px 12px !important; }
.main-nav .nav-link.active, .main-nav .nav-link:hover { color: var(--accent) !important; }
.main-nav .nav-pill { border: 1px solid var(--accent); border-radius: 10px; color: var(--accent) !important; margin: 0 6px; }
.main-nav .navbar-toggler { color: #fff; border-color: rgba(255,255,255,.2); }
.brand { display: inline-flex; align-items: center; color: #fff; }
.brand:hover { color: #fff; }
.brand-mark { width: 38px; height: 38px; border-radius: 10px; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; margin-right: 10px; }
.rtl .brand-mark { margin-right: 0; margin-left: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; font-size: 18px; }
.brand-text strong { color: #fff; letter-spacing: .02em; }
.brand-text span { color: var(--accent); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; margin-top: 3px; }
.site-footer .brand-text strong { color: var(--ink); }
.brand-market { border-left: 1px solid rgba(255,255,255,.2); margin-left: 14px; padding-left: 14px; color: #fff; font-size: 13px; font-weight: 600; line-height: 1.1; }
.brand-market small { display: block; color: #94a3b8; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.btn-post { padding: 8px 16px; }
.mega { position: static; }
.mega-menu { width: 100%; max-width: 900px; padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow); }
@media (min-width: 992px) { .mega-menu { left: 50%; transform: translateX(-50%); } }
.mega-head { display: block; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.mega-head i { color: var(--accent); width: 20px; }
.mega-link { display: block; color: var(--muted); font-size: 14px; padding: 2px 0 2px 24px; }
.mega-link:hover { color: var(--accent-600); }

/* Hero */
.hero { background: radial-gradient(1200px 400px at 10% -10%, rgba(13,115,119,.25), transparent), linear-gradient(135deg, #0f2f36, #134950); color: #fff; padding: 56px 0 72px; }
.hero h1 { color: #fff; font-size: 2.6rem; font-weight: 800; }
.hero p.lead { color: #cbd5e1; }
.hero .stat { font-size: 13px; color: #cbd5e1; }
.hero .stat strong { color: var(--accent); font-size: 18px; display: block; }
.search-box { background: var(--surface); border-radius: 18px; padding: 10px; box-shadow: 0 20px 40px rgba(0,0,0,.25); }
.search-tabs .btn { border-radius: 10px; background: transparent; color: var(--muted); border: 0; }
.search-tabs .btn.active { background: var(--nav-bg); color: #fff; }
.search-box .form-control { border: 0; background: transparent; font-size: 16px; height: 48px; }
.search-box .form-control:focus { box-shadow: none; }
.ai-switch { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); cursor: pointer; user-select: none; white-space: nowrap; }
.ai-switch .knob { width: 34px; height: 18px; border-radius: 999px; background: var(--border); position: relative; transition: .2s; }
.ai-switch .knob::after { content: ""; width: 14px; height: 14px; border-radius: 50%; background: #fff; position: absolute; top: 2px; left: 2px; transition: .2s; }
.ai-switch.on .knob { background: var(--accent); }
.ai-switch.on .knob::after { left: 18px; }
.ai-hint { font-size: 12px; color: var(--muted); padding: 6px 12px 0; }
.suggest-list { position: absolute; z-index: 30; left: 0; right: 0; top: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); margin-top: 4px; overflow: hidden; }
.suggest-list a { display: block; padding: 8px 14px; color: var(--ink); }
.suggest-list a:hover, .suggest-list a.hl { background: var(--surface-2); }

/* Sections and cards */
.section { padding: 48px 0; }
.section-title { display: flex; align-items: end; justify-content: space-between; margin-bottom: 20px; }
.section-title h2 { font-size: 1.6rem; margin: 0; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.cat-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 18px 10px; height: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--ink); transition: .15s; }
.cat-tile:hover { border-color: var(--accent); color: var(--ink); transform: translateY(-2px); }
.cat-tile i { font-size: 26px; color: var(--accent); margin-bottom: 8px; }
.cat-tile small { color: var(--muted); }

.l-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: .15s; position: relative; }
.l-card:hover { box-shadow: var(--shadow); border-color: #cbd5e1; }
.l-card.featured { border-color: var(--coral); box-shadow: 0 0 0 1px var(--coral); }
.l-card .thumb { position: relative; padding-top: 68%; background: var(--surface-2); overflow: hidden; }
.l-card .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.l-card .tag { position: absolute; top: 10px; left: 10px; background: #fff; color: #0f2f36; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.l-card .tag.sale { background: var(--nav-bg); color: #fff; }
.l-card .feat { position: absolute; top: 10px; right: 46px; background: var(--coral); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.fav-btn { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: #334155; z-index: 2; }
.fav-btn.on { color: #e11d48; }
.l-card .body { padding: 12px 14px; flex: 1; display: flex; flex-direction: column; }
.l-card .seller { font-size: 12px; color: var(--muted); display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.l-card .seller .av { width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); display: inline-flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; margin-right: 6px; color: var(--ink-2); }
.l-card h3 { font-size: 15px; margin: 0 0 6px; line-height: 1.35; }
.l-card h3 a { color: var(--ink); }
.l-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.l-card .price { color: var(--accent-600); font-weight: 800; font-size: 15px; }
.l-card .price small { color: var(--muted); font-weight: 500; }
.l-card .specs { font-size: 12px; color: var(--muted); margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.l-card .avail { font-size: 12px; color: var(--success); margin-top: 6px; }
.l-card .actions { display: flex; gap: 8px; padding: 0 14px 14px; position: relative; z-index: 2; }
.l-card .actions .btn { flex: 1; padding: 6px; }
.btn-call { background: #e7f4f4; color: #095a5d; border: 0; }
.btn-wa-soft { background: #dcfce7; color: #15803d; border: 0; }
html[data-theme="dark"] .btn-call { background: #0f3b3e; color: #a7e3e0; }
html[data-theme="dark"] .btn-wa-soft { background: #052e16; color: #86efac; }
.verified { color: #0ea5e9; }

/* Filters bar */
.filters-bar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; }
.filters-bar .custom-select, .filters-bar .form-control { height: 40px; font-size: 14px; }
.type-toggle .btn { border-radius: 10px; }
.type-toggle .btn.active { background: var(--nav-bg); color: #fff; border-color: var(--nav-bg); }
.view-toggle .btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.list-view .l-card { flex-direction: row; }
.list-view .l-card .thumb { width: 260px; padding-top: 0; min-height: 180px; flex-shrink: 0; }
.list-view .l-card .actions { flex-direction: column; justify-content: center; padding: 14px; }
@media (max-width: 575px) { .list-view .l-card { flex-direction: column; } .list-view .l-card .thumb { width: 100%; padding-top: 60%; } }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--accent-50); color: var(--ink); border: 1px solid var(--accent); border-radius: 999px; padding: 2px 10px; font-size: 12px; margin: 2px; }
.chip a { color: var(--ink); }

/* Detail */
.gallery-main { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; }
.gallery-main img { width: 100%; height: 460px; object-fit: contain; }
.gallery-main .g-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.45); color: #fff; border: 0; width: 40px; height: 40px; border-radius: 50%; }
.gallery-main .g-prev { left: 12px; } .gallery-main .g-next { right: 12px; }
.gallery-main .g-tools { position: absolute; top: 12px; right: 12px; display: flex; gap: 8px; }
.gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; margin-top: 8px; }
.gallery-thumbs img { width: 92px; height: 68px; object-fit: cover; border-radius: 8px; cursor: pointer; opacity: .65; border: 2px solid transparent; }
.gallery-thumbs img.on { opacity: 1; border-color: var(--accent); }
.spec-table td { padding: 10px 12px; }
.spec-table td:first-child { color: var(--muted); width: 40%; }
.price-box .big { font-size: 28px; font-weight: 800; }
.rate-grid { display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.rate-grid div { padding: 8px; text-align: center; font-size: 13px; border-right: 1px solid var(--border); }
.rate-grid div:last-child { border-right: 0; }
.rate-grid div.on { background: var(--accent-50); }
.rate-grid small { display: block; color: var(--muted); text-transform: uppercase; font-size: 10px; letter-spacing: .1em; }
.sticky-side { position: sticky; top: 90px; }
.breadcrumb { background: transparent; padding: 0; font-size: 13px; }
.breadcrumb-item.active { color: var(--muted); }

/* Inquiry ticker / board */
.inq-card { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; color: var(--ink); height: 100%; }
.inq-card:hover { border-color: var(--accent); color: var(--ink); }
.inq-card .type { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.inq-card .type.rent { color: #0369a1; } .inq-card .type.buy { color: #15803d; }
.badge-urgent { background: #fee2e2; color: #b91c1c; }

/* Plans */
.plan-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; height: 100%; display: flex; flex-direction: column; }
.plan-card.best { border: 2px solid var(--accent); }
.plan-card .p-price { font-size: 32px; font-weight: 800; }
.plan-card ul { padding-left: 18px; color: var(--ink-2); flex: 1; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 48px 0 20px; margin-top: 48px; }
.site-footer h6 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.site-footer a:not(.btn):not(.brand) { display: block; color: var(--ink-2); padding: 3px 0; font-size: 14px; }
.site-footer a:not(.btn):not(.brand):hover { color: var(--accent-600); }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 20px; padding-top: 16px; font-size: 13px; color: var(--muted); }

/* Floating buttons + loop prompt */
.fab-btn { position: fixed; right: 20px; width: 52px; height: 52px; border-radius: 50%; border: 0; display: flex; align-items: center; justify-content: center; font-size: 24px; color: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.2); z-index: 1040; }
.fab-whatsapp { bottom: 86px; background: var(--wa); }
.fab-whatsapp:hover { color: #fff; }
.fab-chat { bottom: 22px; background: var(--accent); color: #fff; }
.rtl .fab-btn { right: auto; left: 20px; }
.loop-prompt { position: fixed; left: 20px; bottom: 20px; width: 340px; max-width: calc(100% - 40px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 16px 40px rgba(0,0,0,.18); padding: 16px; z-index: 1041; }
.rtl .loop-prompt { left: auto; right: 20px; }
.loop-icon { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-50); color: var(--accent-600); display: inline-flex; align-items: center; justify-content: center; margin-right: 10px; flex-shrink: 0; }
.loop-chips label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; background: var(--accent-50); border: 1px solid var(--accent); border-radius: 999px; padding: 3px 10px; margin: 2px; cursor: pointer; }

/* Wizard */
.wizard-steps { display: flex; gap: 8px; margin-bottom: 24px; }
.wizard-steps .ws { flex: 1; border-top: 3px solid var(--border); padding-top: 8px; font-size: 13px; color: var(--muted); }
.wizard-steps .ws.on { border-color: var(--accent); color: var(--ink); font-weight: 600; }
.choice-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; min-height: 130px; padding: 18px; color: #fff; background: linear-gradient(135deg,#134950,#0f2f36); cursor: pointer; border: 2px solid transparent; }
.choice-card input { position: absolute; opacity: 0; }
.choice-card.on, .choice-card:hover { border-color: var(--accent); color: #fff; }
.choice-card strong { display: block; font-size: 18px; }

/* Account */
.acc-nav a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--ink-2); }
.acc-nav a.active, .acc-nav a:hover { background: var(--accent-50); color: var(--ink); }
.stat-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.stat-box .n { font-size: 26px; font-weight: 800; }
.status-badge { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; text-transform: uppercase; }
.st-active { background: #dcfce7; color: #166534; } .st-pending, .st-awaiting_review { background: #fef3c7; color: #92400e; }
.st-draft { background: #e2e8f0; color: #334155; } .st-rejected, .st-cancelled { background: #fee2e2; color: #991b1b; }
.st-sold { background: #dbeafe; color: #1e40af; } .st-expired, .st-closed { background: #f1f5f9; color: #64748b; }
.st-paid, .st-open { background: #dcfce7; color: #166534; }

/* RTL helpers for the bits Bootstrap 4 does not flip */
.rtl .dropdown-menu { text-align: right; }
.rtl .l-card .tag { left: auto; right: 10px; }
.rtl .fav-btn { right: auto; left: 8px; }
.rtl .l-card .feat { right: auto; left: 46px; }

@media (max-width: 767px) {
  .hero h1 { font-size: 1.8rem; }
  .gallery-main img { height: 280px; }
  .topbar { font-size: 12px; }
}
.topbar-link { white-space: nowrap; }
.rtl .brand-market { border-left: 0; border-right: 1px solid rgba(255,255,255,.2); margin-left: 0; margin-right: 14px; padding-left: 0; padding-right: 14px; }

/* ---- Equipment Market brand layer ---- */
.text-brand { color: var(--accent) !important; }
.text-coral { color: var(--coral) !important; }
.badge-coral { background: var(--coral); color: #fff; }
.em-logo { flex-shrink: 0; display: block; }
/* Light header instead of the dark bar */
.main-nav { background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: 0 1px 0 rgba(15,47,54,.04); }
.main-nav .nav-link { color: var(--ink-2) !important; }
.main-nav .nav-link.active, .main-nav .nav-link:hover { color: var(--accent) !important; }
.main-nav .nav-pill { border-color: var(--accent); color: var(--accent) !important; }
.main-nav .navbar-toggler { color: var(--ink); border-color: var(--border); }
.brand { gap: 10px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-text { flex-direction: column; font-size: 19px; letter-spacing: -.01em; }
.brand-text strong { color: var(--ink); font-weight: 800; }
.brand-text span { color: var(--accent); font-weight: 700; letter-spacing: .02em; text-transform: none; font-size: 19px; margin-top: 0; }
.brand-text.inline { flex-direction: row; gap: 4px; }
.brand-market { border-left-color: var(--border); color: var(--ink); }
.brand-market small { color: var(--muted); }
.rtl .brand-market { border-right-color: var(--border); }
.topbar { background: var(--accent); border-bottom: 0; }
.topbar .topbar-link, .topbar .btn-link { color: #e6f6f5; }
.topbar .topbar-link:hover { color: #fff; }
.topbar .flag { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.25); color: #fff; }
.topbar .theme-switch { border-color: rgba(255,255,255,.35); }
.topbar .theme-switch button { color: #d7efed; }
.topbar .theme-switch button.on { background: #fff; color: var(--accent); }
.topbar .btn-accent { background: #fff; border-color: #fff; color: #0d7377; }
.topbar .btn-accent:hover { background: #e7f4f4; color: #095a5d; }
.notif-count { background: var(--coral); color: #fff; }
/* Hero: teal field with a faint blueprint grid */
.hero { background:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(135deg, #0b3b40 0%, #0d7377 60%, #13958f 100%); }
.hero .stat strong { color: #ffd2c6; }
.hero .search-tabs .btn.active { background: var(--accent); }
.badge-urgent, .badge-danger { background: var(--coral); color: #fff; }
.choice-card { background: linear-gradient(135deg, #134950, #0f2f36); }
.fab-chat { background: var(--coral); color: #fff; }
.loop-icon { background: var(--coral-50); color: var(--coral); }
/* Phones: let the top bar wrap instead of pushing the page sideways */
@media (max-width: 575px) {
  .topbar .container { flex-wrap: wrap; row-gap: 6px; }
  .topbar .container > div { flex-wrap: wrap; row-gap: 6px; }
  .topbar .mr-3 { margin-right: .6rem !important; }
  .rtl .topbar .mr-3 { margin-right: 0 !important; margin-left: .6rem !important; }
  .topbar .dropdown-toggle { max-width: 170px; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
}

/* ---- Sign-in alternatives, OTP inputs (Nov 2026) ---- */
.auth-alt { margin-top: 14px; }
.auth-or { display: flex; align-items: center; color: var(--muted, #6b7f84); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; margin: 4px 0 12px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--border, #dde6e7); }
.auth-or span { padding: 0 10px; }
.btn-social { display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--border, #dde6e7); background: var(--surface, #fff); color: var(--ink, #0f2f36); font-weight: 600; padding: .55rem 1rem; }
.btn-social:hover { border-color: #0d7377; color: #0d7377; background: var(--surface, #fff); }
.btn-social + .btn-social { margin-top: 8px; }
.otp-input { font-size: 24px; letter-spacing: 10px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.notif-prefs .custom-switch .custom-control-label::before { cursor: pointer; }

/* Light coral that stays readable on the dark teal hero. */
.hero .hero-accent { color: #ffb4a1; }
.hero a.hero-accent:hover { color: #fff; }

/* Post-ad type cards: readable icon, clear selected state. */
.choice-card i, .choice-card .text-brand { color: #ffb4a1; }
.choice-card.on { border-color: #ff6b4a; box-shadow: 0 0 0 3px rgba(255,107,74,.25); }

/* Listing detail on phones: sticky price + contact bar. */
.mobile-contact { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; display: flex; align-items: center; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--surface, #fff); border-top: 1px solid var(--border, #dde6e7); box-shadow: 0 -6px 20px rgba(15,47,54,.08); }
.mobile-contact .mc-price { flex: 1; font-weight: 800; font-size: 17px; color: var(--ink, #0f2f36); line-height: 1.1; min-width: 0; }
.mobile-contact .mc-price small { font-weight: 500; color: var(--muted, #6b7f84); }
@media (max-width: 991.98px) {
  body:has(.mobile-contact) { padding-bottom: 72px; }
  body:has(.mobile-contact) .fab-whatsapp { display: none; } /* the bar already has WhatsApp */
  body:has(.mobile-contact) .fab-chat { bottom: 84px; }
}
