/* ==========================================================================
   BestMart Theme — design foundation
   Colours come from Admin → Website Setup → Appearance (CSS variables are
   printed in layouts/app.blade.php). Everything here reads those variables.
   ========================================================================== */

:root {
  --bm-primary: #006CFD;
  --bm-primary-hover: #0057d1;
  --bm-primary-soft: rgba(0, 108, 253, .10);
  --bm-primary-ring: rgba(0, 108, 253, .18);
  --bm-accent: #FF5E18;
  --bm-accent-hover: #e94f0d;
  --bm-accent-soft: rgba(255, 94, 24, .10);
  --bm-ink: #0A2552;
  --bm-ink-soft: rgba(10, 37, 82, .06);
  --bm-sky: #00AFFE;
  --bm-text: #33415A;
  --bm-muted: #5B6B84;
  --bm-subtle: #8A97AB;
  --bm-line: #E6EBF2;
  --bm-line-soft: #EEF1F6;
  --bm-bg: #ffffff;
  --bm-bg-soft: #F7F9FC;
  --bm-success: #1F9D55;
  --bm-success-ink: #137A43;
  --bm-success-soft: #E8F8EF;
  --bm-danger: #E5484D;
  --bm-danger-ink: #C5282E;
  --bm-danger-soft: #FDECEC;
  --bm-warning: #F59E0B;
  --bm-warning-ink: #8A5300;
  --bm-warning-soft: #FFF4E0;
  --bm-info-soft: #EAF2FF;
  --bm-radius: 12px;
  --bm-radius-lg: 20px;
  --bm-radius-xl: 28px;
  --bm-shadow-sm: 0 1px 2px rgba(10, 37, 82, .05), 0 1px 3px rgba(10, 37, 82, .04);
  --bm-shadow: 0 10px 30px -12px rgba(10, 37, 82, .18);
  --bm-shadow-lg: 0 30px 60px -28px rgba(10, 37, 82, .35);
  --bm-font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --bm-ease: cubic-bezier(.22, 1, .36, 1);
  --bm-spring: cubic-bezier(.34, 1.56, .64, 1);
  --bm-header-h: 76px;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
  font-family: var(--bm-font) !important;
  color: var(--bm-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-family: var(--bm-font); color: var(--bm-ink); }
::selection { background: var(--bm-primary-soft); color: var(--bm-ink); }
:focus-visible { outline: 3px solid var(--bm-primary-ring); outline-offset: 2px; }
img { max-width: 100%; }

.bmd-container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 992px) { .bmd-container { padding: 0 24px; } }
.bmd-section { padding: 72px 0; }
@media (min-width: 992px) { .bmd-section { padding: 96px 0; } }
.bmd-sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

.bmd-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--bm-accent); }
.bmd-h1 { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.05; letter-spacing: -.035em; font-weight: 800; color: var(--bm-ink); margin: 0; }
.bmd-h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; letter-spacing: -.03em; font-weight: 800; color: var(--bm-ink); margin: 0; }
.bmd-h3 { font-size: 20px; line-height: 1.3; letter-spacing: -.01em; font-weight: 800; color: var(--bm-ink); margin: 0; }
.bmd-lead { font-size: 18px; line-height: 1.65; color: var(--bm-muted); margin: 0; }
.bmd-text-muted { color: var(--bm-muted) !important; }
.bmd-gradient-text { background: linear-gradient(110deg, var(--bm-primary), var(--bm-sky)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.bmd-btn {
  --_bg: var(--bm-primary); --_fg: #fff; --_bd: transparent; --_bgh: var(--bm-primary-hover);
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: var(--bm-radius);
  border: 1px solid var(--_bd); background: var(--_bg); color: var(--_fg) !important;
  font: 700 15px/1 var(--bm-font); letter-spacing: -.005em; white-space: nowrap;
  text-decoration: none !important; cursor: pointer; user-select: none;
  transition: transform .25s var(--bm-ease), box-shadow .25s var(--bm-ease), background-color .2s, border-color .2s, color .2s;
}
.bmd-btn:hover { background: var(--_bgh); transform: translateY(-2px); box-shadow: 0 12px 24px -12px var(--_shadow, rgba(0, 108, 253, .55)); }
.bmd-btn:active { transform: translateY(0) scale(.98); }
.bmd-btn[disabled], .bmd-btn.is-loading { pointer-events: none; opacity: .75; }
.bmd-btn svg { flex: none; }
.bmd-btn--accent { --_bg: var(--bm-accent); --_bgh: var(--bm-accent-hover); --_shadow: rgba(255, 94, 24, .55); }
.bmd-btn--dark { --_bg: var(--bm-ink); --_bgh: #071a3b; --_shadow: rgba(10, 37, 82, .5); }
.bmd-btn--light { --_bg: #fff; --_fg: var(--bm-ink); --_bgh: #fff; --_shadow: rgba(10, 37, 82, .25); }
.bmd-btn--ghost { --_bg: transparent; --_fg: var(--bm-ink); --_bgh: var(--bm-ink-soft); --_shadow: transparent; }
.bmd-btn--outline { --_bg: #fff; --_fg: var(--bm-ink); --_bd: var(--bm-line); --_bgh: #fff; --_shadow: rgba(10, 37, 82, .18); }
.bmd-btn--outline:hover { border-color: var(--bm-primary); color: var(--bm-primary) !important; }
.bmd-btn--success { --_bg: var(--bm-success-ink); --_bgh: #0f6838; --_shadow: rgba(19, 122, 67, .5); }
.bmd-btn--sm { height: 40px; padding: 0 16px; font-size: 14px; }
.bmd-btn--lg { height: 56px; padding: 0 28px; font-size: 16px; }
.bmd-btn--block { width: 100%; }
.bmd-btn--icon { width: 44px; padding: 0; }
.bmd-btn.is-loading::after {
  content: ''; width: 16px; height: 16px; border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: currentColor;
  animation: bmd-spin .7s linear infinite;
}
.bmd-ripple {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: -1;
  background: currentColor; opacity: .25; transform: scale(0);
  animation: bmd-ripple .6s var(--bm-ease) forwards;
}

/* ---------- Links ---------- */
.bmd-link { color: var(--bm-primary); font-weight: 700; text-decoration: none !important; display: inline-flex; align-items: center; gap: 6px; }
.bmd-link svg { transition: transform .25s var(--bm-ease); }
.bmd-link:hover { color: var(--bm-primary-hover); }
.bmd-link:hover svg { transform: translateX(4px); }

/* ---------- Forms ---------- */
.bmd-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.bmd-label { font-size: 13px; font-weight: 700; color: var(--bm-ink); margin: 0; }
.bmd-label .req { color: var(--bm-danger); margin-left: 2px; }
.bmd-input-wrap { position: relative; display: flex; align-items: center; }
.bmd-input-wrap > .bmd-input-icon { position: absolute; left: 14px; color: var(--bm-subtle); pointer-events: none; transition: color .2s; display: flex; }
.bmd-input-wrap > .bmd-input-icon + .bmd-input { padding-left: 44px; }
.bmd-input-wrap > .bmd-input-prefix { position: absolute; left: 14px; font-weight: 700; color: var(--bm-ink); font-size: 15px; pointer-events: none; }
.bmd-input-wrap > .bmd-input-prefix + .bmd-input { padding-left: 52px; }
.bmd-input-wrap > .bmd-input-action { position: absolute; right: 6px; }
.bmd-input {
  width: 100%; height: 50px; padding: 0 16px;
  border: 1.5px solid var(--bm-line); border-radius: var(--bm-radius);
  background: #fff; color: var(--bm-ink); font: 500 15px var(--bm-font);
  outline: none; -webkit-appearance: none; appearance: none;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
textarea.bmd-input { height: auto; min-height: 110px; padding: 14px 16px; resize: vertical; line-height: 1.55; }
select.bmd-input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235B6B84' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.bmd-input::placeholder { color: #A3AEC0; font-weight: 400; }
.bmd-input:hover { border-color: #CDD6E3; }
.bmd-input:focus { border-color: var(--bm-primary); box-shadow: 0 0 0 4px var(--bm-primary-ring); }
.bmd-input-wrap:focus-within > .bmd-input-icon { color: var(--bm-primary); }
.bmd-hint { font-size: 12.5px; font-weight: 500; color: var(--bm-subtle); display: flex; align-items: center; gap: 6px; min-height: 0; }
.bmd-hint svg { flex: none; }
.bmd-field.is-invalid .bmd-input, .bmd-input.is-invalid { border-color: var(--bm-danger); box-shadow: 0 0 0 4px rgba(229, 72, 77, .12); }
.bmd-field.is-invalid .bmd-hint, .bmd-hint.is-error { color: var(--bm-danger-ink); font-weight: 600; animation: bmd-fade-down .25s var(--bm-ease); }
.bmd-field.is-valid .bmd-input, .bmd-input.is-valid { border-color: var(--bm-success); }
.bmd-field.is-valid .bmd-hint { color: var(--bm-success-ink); font-weight: 600; }
.bmd-field.is-invalid .bmd-input { animation: bmd-shake .4s var(--bm-ease); }
.bmd-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--bm-text); cursor: pointer; }
.bmd-check input { width: 18px; height: 18px; accent-color: var(--bm-primary); margin-top: 2px; flex: none; }

/* Gentle upgrade of legacy Bootstrap inputs on public pages */
.bmd-ui .form-control:focus { border-color: var(--bm-primary); box-shadow: 0 0 0 4px var(--bm-primary-ring); }
.bmd-ui .form-control.is-invalid, .bmd-ui .was-validated .form-control:invalid { border-color: var(--bm-danger); }

/* Password strength */
.bmd-strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 4px; }
.bmd-strength span { height: 4px; border-radius: 4px; background: var(--bm-line); transition: background-color .3s; }
.bmd-strength[data-level="1"] span:nth-child(-n+1) { background: var(--bm-danger); }
.bmd-strength[data-level="2"] span:nth-child(-n+2) { background: var(--bm-warning); }
.bmd-strength[data-level="3"] span:nth-child(-n+3) { background: #22B573; }
.bmd-strength[data-level="4"] span { background: var(--bm-success-ink); }

/* OTP boxes */
.bmd-otp { display: flex; gap: 10px; justify-content: center; }
.bmd-otp input {
  width: 52px; height: 58px; text-align: center; font: 800 22px var(--bm-font); color: var(--bm-ink);
  border: 1.5px solid var(--bm-line); border-radius: 14px; outline: none; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.bmd-otp input:focus { border-color: var(--bm-primary); box-shadow: 0 0 0 4px var(--bm-primary-ring); transform: translateY(-2px); }
.bmd-otp input.is-filled { border-color: var(--bm-primary); background: var(--bm-primary-soft); }

/* ---------- Cards & chips ---------- */
.bmd-card {
  background: #fff; border: 1px solid var(--bm-line-soft); border-radius: var(--bm-radius-lg);
  box-shadow: var(--bm-shadow-sm);
  transition: transform .35s var(--bm-ease), box-shadow .35s var(--bm-ease), border-color .35s;
}
.bmd-card--hover:hover { transform: translateY(-6px); box-shadow: var(--bm-shadow-lg); border-color: transparent; }
.bmd-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--bm-line); background: #fff;
  color: var(--bm-ink) !important; font: 600 14px var(--bm-font); text-decoration: none !important; cursor: pointer;
  transition: all .25s var(--bm-ease);
}
.bmd-chip:hover { border-color: var(--bm-primary); color: var(--bm-primary) !important; transform: translateY(-2px); }
.bmd-chip.is-active { background: var(--bm-ink); border-color: var(--bm-ink); color: #fff !important; }
.bmd-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 7px; font: 700 12px var(--bm-font); }
.bmd-badge--primary { background: var(--bm-primary-soft); color: var(--bm-primary); }
.bmd-badge--accent { background: var(--bm-accent-soft); color: var(--bm-accent); }
.bmd-badge--success { background: var(--bm-success-soft); color: var(--bm-success-ink); }
.bmd-badge--danger { background: var(--bm-danger-soft); color: var(--bm-danger-ink); }
.bmd-badge--rating { background: var(--bm-success-ink); color: #fff; }
.bmd-icon-tile { width: 52px; height: 52px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; flex: none; background: var(--bm-primary-soft); color: var(--bm-primary); transition: transform .4s var(--bm-spring); }
.bmd-icon-tile--accent { background: var(--bm-accent-soft); color: var(--bm-accent); }
.bmd-card--hover:hover .bmd-icon-tile { transform: scale(1.08) rotate(-4deg); }

/* ---------- Alerts ---------- */
.bmd-alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; font-size: 14px; line-height: 1.55; }
.bmd-alert--success { background: var(--bm-success-soft); color: #0F5132; }
.bmd-alert--error { background: var(--bm-danger-soft); color: #8A1C21; }
.bmd-alert--warning { background: var(--bm-warning-soft); color: #7A4A00; }
.bmd-alert--info { background: var(--bm-info-soft); color: #0A3C8C; }

/* ---------- Toasts ---------- */
.bmd-toasts {
  position: fixed; z-index: 100000; right: 20px; bottom: 20px;
  display: flex; flex-direction: column-reverse; gap: 10px; width: min(380px, calc(100vw - 32px)); pointer-events: none;
}
@media (max-width: 991px) { .bmd-toasts { left: 50%; right: auto; transform: translateX(-50%); bottom: auto; top: 16px; flex-direction: column; } }
.bmd-toast {
  pointer-events: auto; position: relative; overflow: hidden;
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 14px 14px 16px;
  background: #fff; border: 1px solid var(--bm-line-soft); border-radius: 16px;
  box-shadow: 0 24px 48px -16px rgba(10, 37, 82, .35);
  font-family: var(--bm-font); animation: bmd-toast-in .5s var(--bm-spring) both;
}
.bmd-toast.is-leaving { animation: bmd-toast-out .3s var(--bm-ease) forwards; }
.bmd-toast__icon { width: 32px; height: 32px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; }
.bmd-toast__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding-top: 1px; }
.bmd-toast__title { font-weight: 800; font-size: 14.5px; color: var(--bm-ink); }
.bmd-toast__msg { font-size: 13.5px; color: var(--bm-muted); line-height: 1.5; word-wrap: break-word; }
.bmd-toast__close { width: 28px; height: 28px; border: 0; background: transparent; color: var(--bm-subtle); border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex: none; }
.bmd-toast__close:hover { background: var(--bm-bg-soft); color: var(--bm-ink); }
.bmd-toast__bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; transform-origin: left; animation: bmd-toast-bar linear forwards; }
.bmd-toast--success .bmd-toast__icon { background: var(--bm-success-soft); color: var(--bm-success-ink); }
.bmd-toast--success .bmd-toast__bar { background: var(--bm-success); }
.bmd-toast--error .bmd-toast__icon { background: var(--bm-danger-soft); color: var(--bm-danger-ink); }
.bmd-toast--error .bmd-toast__bar { background: var(--bm-danger); }
.bmd-toast--warning .bmd-toast__icon { background: var(--bm-warning-soft); color: var(--bm-warning-ink); }
.bmd-toast--warning .bmd-toast__bar { background: var(--bm-warning); }
.bmd-toast--info .bmd-toast__icon { background: var(--bm-info-soft); color: var(--bm-primary); }
.bmd-toast--info .bmd-toast__bar { background: var(--bm-primary); }
.bmd-toast__icon svg path.bmd-draw { stroke-dasharray: 30; stroke-dashoffset: 30; animation: bmd-draw .5s .25s var(--bm-ease) forwards; }

/* ---------- Top progress bar (replaces blocking loader) ---------- */
#bmd-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 100001; background: linear-gradient(90deg, var(--bm-primary), var(--bm-sky), var(--bm-accent)); box-shadow: 0 0 10px var(--bm-primary-ring); transition: width .4s var(--bm-ease), opacity .4s; pointer-events: none; }
#bmd-progress.is-done { width: 100% !important; opacity: 0; }

/* ---------- Skeleton ---------- */
.bmd-skel { position: relative; overflow: hidden; background: #EEF1F6; border-radius: 10px; }
.bmd-skel::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent); animation: bmd-shimmer 1.4s infinite; }

/* ---------- Reveal animations ---------- */
.bmd-js [data-reveal] { opacity: 0; transition: opacity .8s var(--bm-ease), transform .8s var(--bm-ease); transition-delay: var(--d, 0ms); will-change: opacity, transform; }
.bmd-js [data-reveal="up"], .bmd-js [data-reveal=""] { transform: translateY(28px); }
.bmd-js [data-reveal="down"] { transform: translateY(-20px); }
.bmd-js [data-reveal="left"] { transform: translateX(-36px); }
.bmd-js [data-reveal="right"] { transform: translateX(36px); }
.bmd-js [data-reveal="zoom"] { transform: scale(.92); }
.bmd-js [data-reveal="fade"] { transform: none; }
.bmd-js [data-reveal].is-in { opacity: 1; transform: none; will-change: auto; }
/* Opacity-only: a transform here would trap position:fixed popups inside the page */
.bmd-page-enter { animation: bmd-fade .6s var(--bm-ease) backwards; }
.bmd-float { animation: bmd-float 6s ease-in-out infinite; }
.bmd-float--slow { animation-duration: 8s; animation-delay: -2s; }
.bmd-pulse-ring { position: relative; }
.bmd-pulse-ring::before { content: ''; position: absolute; inset: -6px; border-radius: inherit; border: 2px solid currentColor; opacity: 0; animation: bmd-pulse 2.2s var(--bm-ease) infinite; }

/* ==========================================================================
   Header
   ========================================================================== */
.bmd-topbar { background: var(--bm-ink); color: #C7D3E6; font-size: 13px; position: relative; z-index: 1036; }
.bmd-topbar a { color: #C7D3E6; text-decoration: none; transition: color .2s; }
.bmd-topbar a:hover { color: #fff; }
.bmd-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; min-height: 40px; flex-wrap: wrap; }
.bmd-topbar__left, .bmd-topbar__right { display: flex; align-items: center; gap: 8px 22px; flex-wrap: wrap; }
.bmd-topbar__help { color: #fff !important; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.bmd-topbar .dropdown-menu { font-size: 14px; border-radius: 12px; border: 1px solid var(--bm-line); box-shadow: var(--bm-shadow); }
.bmd-topbar .dropdown-menu a { color: var(--bm-ink); }

.bmd-header { position: sticky; top: 0; z-index: 1030; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--bm-line-soft); transition: box-shadow .3s var(--bm-ease), background-color .3s; }
.bmd-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(10, 37, 82, .35); background: rgba(255, 255, 255, .97); }
.bmd-header__inner { display: flex; align-items: center; gap: 14px 20px; min-height: var(--bm-header-h); transition: min-height .3s var(--bm-ease); }
.bmd-header.is-scrolled .bmd-header__inner { min-height: 64px; }
.bmd-logo { display: inline-flex; align-items: center; flex: none; text-decoration: none !important; }
.bmd-logo img { height: 40px; width: auto; display: block; transition: height .3s var(--bm-ease), transform .4s var(--bm-spring); }
.bmd-header.is-scrolled .bmd-logo img { height: 34px; }
.bmd-logo:hover img { transform: scale(1.04); }
.bmd-burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 12px; color: var(--bm-ink); align-items: center; justify-content: center; margin-left: -8px; cursor: pointer; }
.bmd-burger:hover { background: var(--bm-bg-soft); }

.bmd-loc-btn {
  display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px 0 8px; flex: none;
  border: 1px solid var(--bm-line); border-radius: 14px; background: #fff; cursor: pointer; text-align: left;
  font-family: var(--bm-font); transition: border-color .25s, box-shadow .25s, transform .25s var(--bm-ease);
}
.bmd-loc-btn:hover { border-color: var(--bm-accent); box-shadow: 0 8px 20px -12px rgba(255, 94, 24, .6); transform: translateY(-1px); }
.bmd-loc-btn__pin { width: 34px; height: 34px; border-radius: 10px; background: var(--bm-accent-soft); color: var(--bm-accent); display: flex; align-items: center; justify-content: center; }
.bmd-loc-btn:hover .bmd-loc-btn__pin svg { animation: bmd-pin-bounce .7s var(--bm-spring); }
.bmd-loc-btn__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.bmd-loc-btn__label { font-size: 11px; font-weight: 600; color: var(--bm-subtle); text-transform: uppercase; letter-spacing: .6px; }
.bmd-loc-btn__city { font-size: 14px; font-weight: 800; color: var(--bm-ink); max-width: 150px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 4px; }

.bmd-search { position: relative; flex: 1 1 auto; min-width: 0; }
.bmd-search__form { display: flex; align-items: center; height: 50px; border: 1.5px solid var(--bm-line); border-radius: 14px; background: var(--bm-bg-soft); padding: 4px 4px 4px 14px; gap: 10px; transition: border-color .25s, box-shadow .25s, background-color .25s; }
.bmd-search__form:focus-within { border-color: var(--bm-primary); background: #fff; box-shadow: 0 0 0 4px var(--bm-primary-ring); }
.bmd-search__form > svg { color: var(--bm-subtle); flex: none; }
.bmd-search__input { flex: 1; min-width: 0; border: 0 !important; outline: 0 !important; background: transparent !important; box-shadow: none !important; font: 500 15px var(--bm-font) !important; color: var(--bm-ink) !important; height: 100% !important; padding: 0 !important; }
.bmd-search__btn { height: 40px; padding: 0 18px; border: 0; border-radius: 10px; background: var(--bm-primary); color: #fff; font: 700 14px var(--bm-font); cursor: pointer; transition: background-color .2s, transform .2s var(--bm-ease); }
.bmd-search__btn:hover { background: var(--bm-primary-hover); transform: scale(1.03); }
.bmd-search .typed-search-box { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff; border: 1px solid var(--bm-line); border-radius: 16px; box-shadow: var(--bm-shadow-lg); z-index: 1040; max-height: 70vh; overflow: auto; animation: bmd-fade-down .25s var(--bm-ease); }
.bmd-search .search-nothing { color: var(--bm-muted); font-size: 14px !important; }

.bmd-header__actions { display: flex; align-items: center; gap: 8px; flex: none; }
.bmd-header__icon-btn { position: relative; width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: var(--bm-ink) !important; background: transparent; border: 0; text-decoration: none !important; transition: background-color .2s; }
.bmd-header__icon-btn:hover { background: var(--bm-bg-soft); }
.bmd-header__icon-btn .bmd-dot { position: absolute; top: 9px; right: 10px; min-width: 8px; height: 8px; border-radius: 8px; background: var(--bm-accent); box-shadow: 0 0 0 2px #fff; }

.bmd-user-menu { position: relative; }
.bmd-user-menu__btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 10px 0 4px; border-radius: 999px; border: 1px solid var(--bm-line); background: #fff; cursor: pointer; font: 700 14px var(--bm-font); color: var(--bm-ink); }
.bmd-user-menu__avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--bm-primary-soft); color: var(--bm-primary); display: flex; align-items: center; justify-content: center; font-weight: 800; overflow: hidden; }
.bmd-user-menu__avatar img { width: 100%; height: 100%; object-fit: cover; }
.bmd-user-menu .dropdown-menu { min-width: 230px; padding: 8px; border-radius: 16px; border: 1px solid var(--bm-line); box-shadow: var(--bm-shadow-lg); margin-top: 8px; animation: bmd-fade-down .25s var(--bm-ease); }
.bmd-user-menu .dropdown-item { border-radius: 10px; padding: 10px 12px; font-weight: 600; font-size: 14px; color: var(--bm-ink); display: flex; align-items: center; gap: 10px; }
.bmd-user-menu .dropdown-item:hover { background: var(--bm-bg-soft); color: var(--bm-primary); }
.bmd-user-menu .dropdown-item.text-danger:hover { color: var(--bm-danger-ink); background: var(--bm-danger-soft); }

@media (max-width: 991px) {
  .bmd-topbar { display: none; }
  .bmd-burger { display: inline-flex; }
  .bmd-header__inner { flex-wrap: wrap; min-height: 0; padding-top: 10px; padding-bottom: 12px; gap: 10px 12px; }
  .bmd-header.is-scrolled .bmd-header__inner { min-height: 0; }
  .bmd-logo img { height: 32px; }
  .bmd-header.is-scrolled .bmd-logo img { height: 30px; }
  .bmd-loc-btn { margin-left: auto; height: 40px; padding: 0 10px 0 6px; border-radius: 12px; }
  .bmd-loc-btn__pin { width: 28px; height: 28px; border-radius: 8px; }
  .bmd-loc-btn__label { display: none; }
  .bmd-loc-btn__city { font-size: 13px; max-width: 110px; }
  .bmd-search { order: 10; flex: 1 1 100%; }
  .bmd-search__form { height: 46px; }
  .bmd-header__actions .bmd-hide-sm { display: none !important; }
}

/* Mobile drawer */
.bmd-drawer-backdrop { position: fixed; inset: 0; background: rgba(10, 37, 82, .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); z-index: 1060; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.bmd-drawer-backdrop.show { opacity: 1; visibility: visible; }
.bmd-drawer { position: fixed; top: 0; bottom: 0; left: 0; width: min(330px, 86vw); background: #fff; z-index: 1061; transform: translateX(-102%); transition: transform .45s var(--bm-ease); display: flex; flex-direction: column; box-shadow: 30px 0 60px -30px rgba(10, 37, 82, .4); }
.bmd-drawer.open { transform: none; }
.bmd-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--bm-line-soft); }
.bmd-drawer__body { flex: 1; overflow-y: auto; padding: 12px; }
.bmd-drawer__item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; color: var(--bm-ink) !important; font: 600 15px var(--bm-font); text-decoration: none !important; opacity: 0; transform: translateX(-16px); transition: background-color .2s, opacity .4s var(--bm-ease), transform .4s var(--bm-ease); }
.bmd-drawer.open .bmd-drawer__item { opacity: 1; transform: none; }
.bmd-drawer__item:hover { background: var(--bm-bg-soft); }
.bmd-drawer__item svg { color: var(--bm-primary); flex: none; }
.bmd-drawer__item.is-danger, .bmd-drawer__item.is-danger svg { color: var(--bm-danger-ink) !important; }
.bmd-drawer__sep { height: 1px; background: var(--bm-line-soft); margin: 8px 12px; }
.bmd-drawer__foot { padding: 16px; border-top: 1px solid var(--bm-line-soft); }

/* ==========================================================================
   Location modal
   ========================================================================== */
#bmLocationModal .modal-dialog { max-width: 880px; margin: 1.5rem auto; padding: 0 12px; }
#bmLocationModal.fade .modal-dialog { transform: translateY(24px) scale(.97); transition: transform .45s var(--bm-spring), opacity .3s; }
#bmLocationModal.show .modal-dialog { transform: none; }
.bmloc-card { border: 0 !important; border-radius: 28px !important; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(10, 37, 82, .55) !important; font-family: var(--bm-font); }
.bmloc-grid { display: grid; grid-template-columns: 340px 1fr; min-height: 470px; }
.bmloc-hero { position: relative; overflow: hidden; padding: 32px 28px; color: #fff; background: radial-gradient(120% 90% at 0% 0%, #1a5cff 0%, var(--bm-ink) 62%); display: flex; flex-direction: column; gap: 18px; }
.bmloc-hero__map { position: absolute; inset: 0; opacity: .18; background-image: radial-gradient(rgba(255, 255, 255, .7) 1px, transparent 1px); background-size: 16px 16px; mask-image: radial-gradient(80% 60% at 50% 60%, #000, transparent); -webkit-mask-image: radial-gradient(80% 60% at 50% 60%, #000, transparent); }
.bmloc-hero__pin { position: relative; width: 74px; height: 74px; border-radius: 22px; background: rgba(255, 255, 255, .12); display: flex; align-items: center; justify-content: center; color: #FF8A57; animation: bmd-float 5s ease-in-out infinite; }
.bmloc-hero__pin::after { content: ''; position: absolute; bottom: -14px; left: 50%; width: 34px; height: 8px; margin-left: -17px; border-radius: 50%; background: rgba(0, 0, 0, .25); filter: blur(3px); animation: bmd-shadow-pulse 5s ease-in-out infinite; }
.bmloc-hero__pin svg { animation: bmd-pin-drop .9s var(--bm-spring) both; }
.bmloc-title { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin: 6px 0 0; color: #fff; }
.bmloc-subtitle { font-size: 14px; line-height: 1.6; color: #C7D3E6; margin: 0; }
.bmloc-current { position: relative; margin-top: auto; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); display: flex; gap: 12px; align-items: center; }
.bmloc-current__dot { width: 10px; height: 10px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .25); flex: none; animation: bmd-pulse-dot 2s infinite; }
.bmloc-current__label { font-size: 11px; text-transform: uppercase; letter-spacing: .8px; color: #9FB2CF; font-weight: 700; }
.bmloc-current__city { font-size: 15px; font-weight: 800; color: #fff; }
.bmloc-privacy { position: relative; font-size: 12px; color: #9FB2CF; display: flex; gap: 8px; align-items: flex-start; line-height: 1.5; }

.bmloc-body { padding: 28px; display: flex; flex-direction: column; gap: 18px; background: #fff; max-height: 82vh; overflow-y: auto; }
.bmloc-close-absolute { position: absolute; top: 16px; right: 16px; z-index: 5; width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--bm-bg-soft); color: var(--bm-ink); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform .3s var(--bm-spring), background-color .2s; }
.bmloc-close-absolute:hover { transform: rotate(90deg); background: var(--bm-line-soft); }
.bmloc-search-area { position: relative; }
.bmloc-search-box { display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 12px 0 16px; border: 1.5px solid var(--bm-line); border-radius: 16px; background: var(--bm-bg-soft); transition: border-color .25s, box-shadow .25s, background-color .25s; margin-right: 44px; }
.bmloc-search-box:focus-within { border-color: var(--bm-primary); background: #fff; box-shadow: 0 0 0 4px var(--bm-primary-ring); }
.bmloc-search-icon { color: var(--bm-subtle); flex: none; }
.bmloc-search-input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 600 15px var(--bm-font); color: var(--bm-ink); }
.bmloc-search-input::placeholder { color: #A3AEC0; font-weight: 500; }
.bmloc-clear-search { width: 30px; height: 30px; border-radius: 8px; border: 0; background: var(--bm-line-soft); color: var(--bm-muted); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.bmloc-search-results { position: absolute; left: 0; right: 44px; top: calc(100% + 8px); background: #fff; border: 1px solid var(--bm-line); border-radius: 16px; box-shadow: var(--bm-shadow-lg); z-index: 10; max-height: 300px; overflow-y: auto; padding: 6px; animation: bmd-fade-down .25s var(--bm-ease); }
.bmloc-search-result-item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; background: transparent; border-radius: 12px; text-align: left; cursor: pointer; font-family: var(--bm-font); transition: background-color .15s; }
.bmloc-search-result-item:hover, .bmloc-search-result-item:focus { background: var(--bm-bg-soft); outline: none; }
.bmloc-result-city { font-weight: 700; font-size: 14.5px; color: var(--bm-ink); }
.bmloc-result-pin { font-size: 12.5px; color: var(--bm-subtle); }
.bmloc-no-result { padding: 16px; text-align: center; color: var(--bm-muted); font-size: 14px; }
.bmloc-gps-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border: 1.5px dashed rgba(255, 94, 24, .45); border-radius: 16px; background: var(--bm-accent-soft); cursor: pointer; text-align: left; font-family: var(--bm-font); transition: transform .25s var(--bm-ease), box-shadow .25s, border-color .25s; }
.bmloc-gps-row:hover { transform: translateY(-2px); border-style: solid; box-shadow: 0 14px 28px -18px rgba(255, 94, 24, .8); }
.bmloc-gps-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--bm-accent); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.bmloc-gps-row.bmloc-loading .bmloc-gps-icon svg { animation: bmd-spin 1.1s linear infinite; }
.bmloc-gps-content { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.bmloc-gps-title { font-weight: 800; font-size: 15px; color: var(--bm-ink); }
.bmloc-gps-hint { font-size: 13px; color: var(--bm-muted); }
.bmloc-gps-arrow { color: var(--bm-accent); transition: transform .25s var(--bm-ease); }
.bmloc-gps-row:hover .bmloc-gps-arrow { transform: translateX(4px); }
.bmloc-status-msg { padding: 10px 14px; border-radius: 12px; font-size: 13.5px; font-weight: 600; animation: bmd-fade-down .25s var(--bm-ease); }
.bmloc-status-msg.success { background: var(--bm-success-soft); color: var(--bm-success-ink); }
.bmloc-status-msg.error { background: var(--bm-danger-soft); color: var(--bm-danger-ink); }
.bmloc-section-title { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--bm-subtle); margin-bottom: 12px; }
.bmloc-city-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.bmloc-city-btn { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px; border: 1px solid var(--bm-line-soft); border-radius: 16px; background: #fff; cursor: pointer; font: 700 13.5px var(--bm-font); color: var(--bm-ink); transition: transform .3s var(--bm-ease), box-shadow .3s, border-color .3s; animation: bmd-pop-in .45s var(--bm-spring) both; animation-delay: var(--d, 0ms); }
.bmloc-city-btn:hover { transform: translateY(-4px); border-color: transparent; box-shadow: var(--bm-shadow); color: var(--bm-primary); }
.bmloc-city-btn__icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--bm-primary-soft); color: var(--bm-primary); transition: transform .4s var(--bm-spring); }
.bmloc-city-btn:nth-child(even) .bmloc-city-btn__icon { background: var(--bm-accent-soft); color: var(--bm-accent); }
.bmloc-city-btn:hover .bmloc-city-btn__icon { transform: scale(1.1) rotate(-6deg); }
.bmloc-tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.bmloc-tag { height: 36px; padding: 0 14px; border: 1px solid var(--bm-line); border-radius: 999px; background: #fff; font: 600 13.5px var(--bm-font); color: var(--bm-text); cursor: pointer; transition: all .25s var(--bm-ease); animation: bmd-pop-in .4s var(--bm-spring) both; animation-delay: var(--d, 0ms); display: inline-flex; align-items: center; gap: 6px; }
.bmloc-tag:hover { border-color: var(--bm-primary); color: var(--bm-primary); transform: translateY(-2px); }
.bmloc-tag--recent { background: var(--bm-bg-soft); }
.bmloc-show-more { margin-top: 10px; border: 0; background: transparent; color: var(--bm-primary); font: 700 13.5px var(--bm-font); cursor: pointer; padding: 6px 0; }
.bmloc-save-overlay { position: absolute; inset: 0; z-index: 20; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; font-family: var(--bm-font); font-weight: 800; color: var(--bm-ink); animation: bmd-fade .3s; }
.bmloc-save-overlay small { color: var(--bm-muted); font-weight: 600; font-size: 14px; }
.bmloc-spinner { width: 46px; height: 46px; border-radius: 50%; border: 4px solid var(--bm-primary-soft); border-top-color: var(--bm-primary); animation: bmd-spin .8s linear infinite; }
@media (max-width: 767px) {
  #bmLocationModal .modal-dialog { margin: 0; max-width: none; min-height: 100%; display: flex; align-items: flex-end; padding: 0; }
  #bmLocationModal.fade .modal-dialog { transform: translateY(100%); }
  #bmLocationModal.show .modal-dialog { transform: none; }
  .bmloc-card { border-radius: 28px 28px 0 0 !important; width: 100%; }
  .bmloc-grid { grid-template-columns: 1fr; min-height: 0; }
  .bmloc-hero { padding: 22px 20px 18px; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 12px 16px; }
  .bmloc-hero__pin { width: 52px; height: 52px; border-radius: 16px; }
  .bmloc-hero__pin svg { width: 26px; height: 26px; }
  .bmloc-hero__copy { flex: 1; min-width: 0; }
  .bmloc-title { font-size: 20px; margin: 0; }
  .bmloc-subtitle, .bmloc-privacy { display: none; }
  .bmloc-current { margin-top: 0; flex: 1 1 100%; padding: 10px 14px; }
  .bmloc-body { padding: 20px; max-height: 66vh; }
  .bmloc-city-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bmloc-close-absolute { background: rgba(255, 255, 255, .15); color: #fff; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.bmd-prefooter { padding: 0 0 72px; }
.bmd-cta-band { position: relative; overflow: hidden; border-radius: var(--bm-radius-xl); padding: 44px; background: linear-gradient(115deg, var(--bm-primary) 0%, var(--bm-sky) 100%); color: #fff; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.bmd-cta-band::before, .bmd-cta-band::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.bmd-cta-band::before { width: 260px; height: 260px; right: -60px; top: -120px; animation: bmd-float 9s ease-in-out infinite; }
.bmd-cta-band::after { width: 160px; height: 160px; left: 30%; bottom: -100px; animation: bmd-float 7s ease-in-out infinite reverse; }
.bmd-cta-band h2 { color: #fff; font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; letter-spacing: -.02em; margin: 0 0 6px; }
.bmd-cta-band p { margin: 0; color: #E6F1FF; font-size: 15.5px; }
.bmd-cta-band > * { position: relative; z-index: 1; }
.bmd-store-btn { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 18px; border-radius: 14px; background: var(--bm-ink); color: #fff !important; text-decoration: none !important; transition: transform .3s var(--bm-ease), box-shadow .3s; }
.bmd-store-btn:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -16px rgba(0, 0, 0, .6); }
.bmd-store-btn small { display: block; font-size: 10.5px; opacity: .75; font-weight: 600; letter-spacing: .3px; }
.bmd-store-btn strong { display: block; font-size: 15px; font-weight: 800; line-height: 1.1; }

.bmd-footer { background: var(--bm-ink); color: #A9B8D0; font-family: var(--bm-font); position: relative; overflow: hidden; }
.bmd-footer::before { content: ''; position: absolute; width: 520px; height: 520px; right: -200px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(0, 108, 253, .35), transparent 70%); pointer-events: none; }
.bmd-footer a { color: #A9B8D0; text-decoration: none; transition: color .2s, transform .2s; }
.bmd-footer a:hover { color: #fff; }
.bmd-footer__grid { position: relative; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding: 72px 0 48px; }
@media (max-width: 991px) { .bmd-footer__grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; padding: 56px 0 36px; } .bmd-footer__brand { grid-column: 1 / -1; } }
.bmd-footer__brand p { font-size: 14.5px; line-height: 1.7; margin: 16px 0 20px; max-width: 360px; }
.bmd-footer__logo { height: 40px; width: auto; display: block; }
.bmd-footer__logo-text { font-size: 28px; font-weight: 800; color: #fff; letter-spacing: -.03em; }
.bmd-footer__title { color: #fff; font-size: 15px; font-weight: 800; margin: 0 0 16px; }
.bmd-footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; font-size: 14.5px; }
.bmd-footer__list a { display: inline-flex; align-items: center; gap: 8px; }
.bmd-footer__list a:hover { transform: translateX(4px); }
.bmd-footer__contact li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.6; }
.bmd-footer__contact svg { flex: none; margin-top: 3px; color: #FF8A57; }
.bmd-social { display: flex; gap: 10px; flex-wrap: wrap; }
.bmd-social a { width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .07); color: #fff; display: flex; align-items: center; justify-content: center; transition: transform .3s var(--bm-spring), background-color .2s; }
.bmd-social a:hover { background: var(--bm-accent); transform: translateY(-4px) rotate(-6deg); }
.bmd-newsletter { display: flex; gap: 6px; padding: 5px; border-radius: 14px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); max-width: 380px; }
.bmd-newsletter input { flex: 1; min-width: 0; height: 42px; border: 0; outline: 0; background: transparent; color: #fff; padding: 0 12px; font: 500 14px var(--bm-font); }
.bmd-newsletter input::placeholder { color: #8698B6; }
.bmd-footer__bottom { position: relative; border-top: 1px solid rgba(255, 255, 255, .08); padding: 22px 0 26px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; font-size: 13.5px; }
.bmd-footer__bottom-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
@media (max-width: 991px) { .bmd-footer__bottom { padding-bottom: 110px; } }

/* Back to top */
.bmd-totop { position: fixed; right: 20px; bottom: 24px; z-index: 1029; width: 46px; height: 46px; border-radius: 14px; border: 0; background: var(--bm-ink); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: var(--bm-shadow); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(16px); transition: all .35s var(--bm-ease); }
.bmd-totop.show { opacity: 1; visibility: visible; transform: none; }
.bmd-totop:hover { background: var(--bm-primary); transform: translateY(-3px); }
@media (max-width: 1199px) { .bmd-totop { bottom: 100px; right: auto; left: 14px; width: 42px; height: 42px; } }

/* Offline bar */
.bmd-offline { position: fixed; left: 50%; top: 16px; z-index: 100002; transform: translate(-50%, -150%); background: var(--bm-ink); color: #fff; padding: 10px 18px; border-radius: 999px; font: 700 13.5px var(--bm-font); display: flex; align-items: center; gap: 8px; box-shadow: var(--bm-shadow-lg); transition: transform .5s var(--bm-spring); }
.bmd-offline.show { transform: translate(-50%, 0); }
.bmd-offline::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--bm-danger); }

/* ==========================================================================
   Mobile bottom navigation (existing markup, new look)
   ========================================================================== */
.aiz-mobile-bottom-nav-glass { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1035; padding: 0 12px calc(10px + env(safe-area-inset-bottom)); pointer-events: none; transition: transform .4s var(--bm-ease) !important; }
.aiz-mobile-bottom-nav-glass.hide-on-scroll { transform: translateY(130%) !important; }
@media (min-width: 1200px) { .aiz-mobile-bottom-nav-glass { display: none !important; } }
.aiz-glass-pill { pointer-events: auto; max-width: 520px; margin: 0 auto; height: 66px; display: flex; align-items: center; justify-content: space-around; padding: 0 6px; border-radius: 22px; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); border: 1px solid rgba(10, 37, 82, .06); box-shadow: 0 18px 40px -16px rgba(10, 37, 82, .35); font-family: var(--bm-font); }
.glass-nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--bm-subtle) !important; text-decoration: none !important; padding: 6px 0; position: relative; transition: color .25s; }
.glass-nav-item svg { width: 22px; height: 22px; stroke: currentColor; transition: transform .35s var(--bm-spring); }
.glass-nav-item:active svg { transform: scale(.85); }
.glass-nav-item.active-nav { color: var(--bm-primary) !important; }
.glass-nav-item.active-nav svg { transform: translateY(-2px); }
.glass-nav-item.active-nav::after { content: ''; position: absolute; bottom: -2px; width: 5px; height: 5px; border-radius: 50%; background: var(--bm-primary); animation: bmd-pop-in .4s var(--bm-spring); }
.glass-nav-label { font-size: 10.5px; font-weight: 700; letter-spacing: .1px; }
.glass-nav-center { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none !important; margin-top: -30px; }
.glass-fab-btn { width: 54px; height: 54px; border-radius: 18px; background: linear-gradient(135deg, var(--bm-accent), #FF8A57); display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 24px -8px rgba(255, 94, 24, .7), 0 0 0 5px #fff; transition: transform .35s var(--bm-spring); }
.glass-fab-btn svg { width: 24px; height: 24px; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; }
.glass-nav-center:active .glass-fab-btn { transform: scale(.9) rotate(-8deg); }
.glass-fab-label { font-size: 10px; font-weight: 800; color: var(--bm-ink); text-align: center; line-height: 1.15; }
.glass-notif-wrap { position: relative; display: flex; }
.glass-badge { position: absolute; top: -1px; right: -2px; width: 9px; height: 9px; border-radius: 50%; background: var(--bm-accent); box-shadow: 0 0 0 2px #fff; animation: bmd-pulse-dot 2s infinite; }

/* ==========================================================================
   Generic modal polish (Bootstrap modals on public pages)
   ========================================================================== */
.bmd-ui .modal.fade .modal-dialog { transform: translateY(20px) scale(.97); transition: transform .4s var(--bm-spring), opacity .3s; }
.bmd-ui .modal.show .modal-dialog { transform: none; }
.bmd-ui .modal-backdrop.show { opacity: .5; }
.bmd-modal .modal-content { border: 0; border-radius: 24px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(10, 37, 82, .55); font-family: var(--bm-font); }
.bmd-modal__head { display: flex; align-items: flex-start; gap: 14px; padding: 26px 26px 6px; }
.bmd-modal__title { margin: 0; font-size: 20px; font-weight: 800; color: var(--bm-ink); letter-spacing: -.01em; }
.bmd-modal__sub { margin: 4px 0 0; font-size: 14px; color: var(--bm-muted); line-height: 1.55; }
.bmd-modal__close { margin-left: auto; width: 38px; height: 38px; border-radius: 12px; border: 0; background: var(--bm-bg-soft); color: var(--bm-ink); display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none; transition: transform .3s var(--bm-spring); }
.bmd-modal__close:hover { transform: rotate(90deg); }
.bmd-modal__body { padding: 18px 26px 26px; }
.bmd-modal__foot { padding: 16px 26px; border-top: 1px solid var(--bm-line-soft); background: var(--bm-bg-soft); text-align: center; font-size: 14px; color: var(--bm-muted); }

/* Success tick */
.bmd-success-tick { width: 72px; height: 72px; border-radius: 50%; background: var(--bm-success-soft); color: var(--bm-success-ink); display: flex; align-items: center; justify-content: center; margin: 0 auto; animation: bmd-pop-in .5s var(--bm-spring); }
.bmd-success-tick path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: bmd-draw .6s .25s var(--bm-ease) forwards; }

/* Confetti */
.bmd-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 100003; overflow: hidden; }
.bmd-confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: bmd-confetti linear forwards; }

/* ==========================================================================
   Keyframes
   ========================================================================== */
@keyframes bmd-spin { to { transform: rotate(360deg); } }
@keyframes bmd-ripple { to { transform: scale(2.6); opacity: 0; } }
@keyframes bmd-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bmd-fade-down { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes bmd-page-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes bmd-pop-in { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes bmd-shake { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(3px); } 30%, 50%, 70% { transform: translateX(-5px); } 40%, 60% { transform: translateX(5px); } }
@keyframes bmd-toast-in { from { opacity: 0; transform: translateY(16px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes bmd-toast-out { to { opacity: 0; transform: translateX(30px) scale(.96); } }
@keyframes bmd-toast-bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes bmd-draw { to { stroke-dashoffset: 0; } }
@keyframes bmd-shimmer { to { transform: translateX(100%); } }
@keyframes bmd-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes bmd-shadow-pulse { 0%, 100% { transform: scale(1); opacity: .5; } 50% { transform: scale(.7); opacity: .25; } }
@keyframes bmd-pulse { 0% { opacity: .6; transform: scale(.95); } 100% { opacity: 0; transform: scale(1.3); } }
@keyframes bmd-pulse-dot { 0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .45); } 50% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); } }
@keyframes bmd-pin-bounce { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-5px); } 70% { transform: translateY(1px); } }
@keyframes bmd-pin-drop { 0% { opacity: 0; transform: translateY(-30px); } 60% { opacity: 1; transform: translateY(4px); } 100% { transform: none; } }
@keyframes bmd-confetti { to { transform: translate3d(var(--x, 0), 105vh, 0) rotate(var(--r, 540deg)); } }

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .bmd-js [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ---------- Header: legacy widgets (notification bell, messages) ---------- */
.bmd-header__actions .bm-msg-btn { width: 44px; height: 44px; border-radius: 12px; background: transparent; border: 0; color: var(--bm-ink); }
.bmd-header__actions .bm-msg-btn:hover { background: var(--bm-bg-soft); color: var(--bm-primary); }
.bmd-header__actions .nbell-btn { width: 44px; height: 44px; border-radius: 12px; color: var(--bm-ink); }
.bmd-header__actions .nbell-btn:hover { background: var(--bm-bg-soft); }
.bmd-header__actions .nbell-badge { background: var(--bm-accent); }
.bmd-header .hover-category-menu { top: 100%; }
#search-content .list-group-item, #search-content li { font-family: var(--bm-font); }
.bmd-topbar .dropdown-toggle::after { vertical-align: .15em; }

/* ---------- Polish ---------- */
.bmd-user-menu .dropdown-item:focus, .bmd-user-menu .dropdown-item:active, .bmd-user-menu .dropdown-item.active { background: var(--bm-bg-soft); color: var(--bm-primary); }
.bmd-user-menu .dropdown-item.text-danger:focus, .bmd-user-menu .dropdown-item.text-danger:active { color: var(--bm-danger-ink) !important; background: var(--bm-danger-soft); }
/* ==========================================================================
   Chat widget skin (partials/chat_widget). Public site only — scoped to body.bmd-ui,
   so the seller dashboard keeps its own look. Markup and Firebase logic are untouched.
   ========================================================================== */
body.bmd-ui #bmcwRoot, body.bmd-ui #bmcwWindows { --bmcw-g1: var(--bm-primary); --bmcw-g2: var(--bm-sky); font-family: var(--bm-font); }
/* Launcher */
body.bmd-ui #bmcwFab { width: 60px; height: 60px; border-radius: 20px; background: linear-gradient(140deg, var(--bm-primary), var(--bm-sky)); box-shadow: 0 16px 32px -12px rgba(0, 108, 253, .65), 0 2px 6px rgba(10, 37, 82, .15); transition: transform .4s var(--bm-spring), border-radius .4s var(--bm-ease), opacity .25s, bottom .45s var(--bm-ease); }
body.bmd-ui #bmcwFab:hover { transform: translateY(-3px) scale(1.04); }
body.bmd-ui #bmcwFab:active { transform: scale(.94); }
body.bmd-ui #bmcwRoot.bmcw-is-open #bmcwFab, body.bmd-ui #bmcwFab[aria-expanded="true"] { border-radius: 50%; }
body.bmd-ui #bmcwFabRing { inset: -5px; border-radius: 24px; border-color: rgba(0, 108, 253, .35); }
body.bmd-ui #bmcwFabIconChat { animation: bmcw-nudge 6s var(--bm-ease) 3s infinite; }
body.bmd-ui #bmcwFabBadge { top: -6px; right: -6px; background: var(--bm-accent); font-family: var(--bm-font); animation: bmd-pop .4s var(--bm-spring); box-shadow: 0 4px 10px -2px rgba(255, 94, 24, .6); }
@keyframes bmcw-nudge { 0%, 88%, 100% { transform: rotate(0); } 91% { transform: rotate(-12deg) scale(1.08); } 94% { transform: rotate(10deg) scale(1.08); } 97% { transform: rotate(-6deg); } }

/* Panel */
body.bmd-ui #bmcwPanel { width: 370px; height: 540px; border-radius: 26px; border: 1px solid var(--bm-line-soft); box-shadow: 0 40px 80px -30px rgba(10, 37, 82, .55), 0 8px 24px -8px rgba(10, 37, 82, .18); transform: translateY(24px) scale(.94); transition: opacity .35s var(--bm-ease), transform .45s var(--bm-spring); }
body.bmd-ui #bmcwPanel.bmcw-open { transform: none; }
body.bmd-ui #bmcwHead { position: relative; overflow: hidden; padding: 18px 16px 18px 18px; gap: 12px; background: radial-gradient(120% 140% at 100% 0%, rgba(0, 175, 254, .55), transparent 55%), linear-gradient(135deg, var(--bm-ink), #0B3A86); }
body.bmd-ui #bmcwHead::after { content: ''; position: absolute; width: 160px; height: 160px; right: -60px; bottom: -110px; border-radius: 50%; background: var(--bm-accent); opacity: .22; filter: blur(8px); pointer-events: none; }
body.bmd-ui #bmcwHeadAvatar { width: 42px; height: 42px; border-radius: 14px; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
body.bmd-ui #bmcwHeadTitle { font-size: 16.5px; font-weight: 800; letter-spacing: -.01em; }
body.bmd-ui #bmcwHeadSub { font-size: 12.5px; opacity: .85; margin-top: 2px; }
body.bmd-ui #bmcwOnlineDot { background: #4ADE80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .7); animation: bmcw-live 2s infinite; }
@keyframes bmcw-live { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .7); } 70% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
body.bmd-ui #bmcwSupportIconBtn, body.bmd-ui #bmcwCloseBtn { position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 12px; background: rgba(255, 255, 255, .12); transition: background-color .2s, transform .3s var(--bm-spring); }
body.bmd-ui #bmcwCloseBtn:hover { transform: rotate(90deg); }
body.bmd-ui #bmcwBody { background: var(--bm-bg-soft); }

/* Sign-in gate */
body.bmd-ui #bmcwGate { padding: 26px 22px; }
body.bmd-ui .bmcw-gate-step { animation: bmd-fade-down .35s var(--bm-ease); }
body.bmd-ui .bmcw-gate-icon { width: 66px; height: 66px; border-radius: 20px; background: linear-gradient(135deg, var(--bm-primary-soft), var(--bm-accent-soft)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6); animation: bmd-float 6s ease-in-out infinite; }
body.bmd-ui .bmcw-gate-step h3 { font-size: 19px; font-weight: 800; color: var(--bm-ink); letter-spacing: -.01em; }
body.bmd-ui .bmcw-gate-sub { font-size: 13.5px; color: var(--bm-muted); line-height: 1.55; }
body.bmd-ui .bmcw-field { height: 50px; border-radius: 14px; border: 1.5px solid var(--bm-line); padding: 0 6px; transition: border-color .2s, box-shadow .2s; }
body.bmd-ui .bmcw-field:focus-within { border-color: var(--bm-primary); box-shadow: 0 0 0 4px var(--bm-primary-ring); }
body.bmd-ui .bmcw-field-prefix { color: var(--bm-ink); font-weight: 800; }
body.bmd-ui .bmcw-field input { font: 600 15px var(--bm-font); color: var(--bm-ink); padding: 0 10px; height: 100%; }
body.bmd-ui #bmcwOtpInput:not(:placeholder-shown) { letter-spacing: .5em; text-align: center; font-weight: 800; }
body.bmd-ui .bmcw-btn-primary { height: 50px; padding: 0 16px; border-radius: 14px; font: 800 15px var(--bm-font); background: linear-gradient(135deg, var(--bm-primary), var(--bm-sky)); box-shadow: 0 14px 26px -14px rgba(0, 108, 253, .8); transition: transform .3s var(--bm-spring), box-shadow .3s; }
body.bmd-ui .bmcw-btn-primary:hover { transform: translateY(-2px); }
body.bmd-ui .bmcw-gate-error { color: var(--bm-danger-ink); font-weight: 600; }
body.bmd-ui .bmcw-gate-error:not(:empty) { animation: bmd-shake .4s var(--bm-ease); }

/* Conversation list */
body.bmd-ui #bmcwListView { padding: 14px; }
body.bmd-ui .bmcw-support-pin { border-radius: 18px; padding: 14px 16px; background: linear-gradient(135deg, var(--bm-accent), #FF8A3D); box-shadow: 0 14px 26px -16px rgba(255, 94, 24, .9); transition: transform .3s var(--bm-spring); }
body.bmd-ui .bmcw-support-pin:hover { transform: translateY(-2px); }
body.bmd-ui .bmcw-support-pin-icon { border-radius: 13px; }
body.bmd-ui .bmcw-support-pin-title { font-weight: 800; font-size: 14.5px; }
body.bmd-ui .bmcw-support-pin .bmcw-chevron path { stroke: #fff; }
body.bmd-ui .bmcw-chat-item { padding: 12px; border-radius: 16px; background: #fff; border: 1px solid var(--bm-line-soft); margin-bottom: 8px; transition: transform .3s var(--bm-ease), box-shadow .3s, border-color .2s; animation: bmd-fade-down .35s var(--bm-ease) backwards; }
body.bmd-ui .bmcw-chat-item:hover { background: #fff; transform: translateY(-2px); box-shadow: var(--bm-shadow); border-color: transparent; }
body.bmd-ui .bmcw-chat-avatar { width: 46px; height: 46px; border-radius: 15px; background: linear-gradient(135deg, var(--bm-primary-soft), var(--bm-accent-soft)); color: var(--bm-primary); font-weight: 800; overflow: hidden; }
body.bmd-ui .bmcw-chat-avatar img { border-radius: 15px !important; }
body.bmd-ui .bmcw-chat-name { font-size: 14.5px; font-weight: 800; color: var(--bm-ink); }
body.bmd-ui .bmcw-chat-last { font-size: 12.5px; color: var(--bm-subtle); font-weight: 500; }
body.bmd-ui .bmcw-chat-badge { background: var(--bm-accent); min-width: 22px; height: 22px; border-radius: 11px; font-size: 11.5px; }
body.bmd-ui .bmcw-chat-item-open { border-color: rgba(31, 157, 85, .4); background: #F3FBF6; }
body.bmd-ui .bmcw-chat-item-open .bmcw-chat-avatar { box-shadow: 0 0 0 2px var(--bm-success); }
body.bmd-ui .bmcw-chat-item-open .bmcw-chat-last { color: var(--bm-success-ink); }
body.bmd-ui .bmcw-list-empty { color: var(--bm-muted); font-weight: 600; padding: 36px 0; }
body.bmd-ui .bmcw-list-empty::before { content: ''; display: block; width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 20px; background: var(--bm-primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23006CFD' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E") center / 28px no-repeat; animation: bmd-float 5s ease-in-out infinite; }

/* Chat windows */
body.bmd-ui .bmcw-win { width: 320px; border-radius: 20px 20px 0 0; border: 1px solid var(--bm-line-soft); box-shadow: 0 -10px 40px -18px rgba(10, 37, 82, .45); animation: bmcw-win-in .45s var(--bm-spring); }
@keyframes bmcw-win-in { from { opacity: 0; transform: translateY(40px) scale(.96); } to { opacity: 1; transform: none; } }
body.bmd-ui .bmcw-win-header { padding: 12px 12px 12px 14px; gap: 10px; background: linear-gradient(135deg, var(--bm-ink), #0B3A86); filter: none; opacity: .92; }
body.bmd-ui .bmcw-win.bmcw-win-active .bmcw-win-header { opacity: 1; background: linear-gradient(135deg, var(--bm-primary), var(--bm-sky)); }
body.bmd-ui .bmcw-win-avatar { width: 32px; height: 32px; border-radius: 11px; font-size: 13px; font-weight: 800; }
body.bmd-ui .bmcw-win-title { font-size: 14px; font-weight: 800; }
body.bmd-ui .bmcw-win-actions { gap: 6px; }
body.bmd-ui .bmcw-win-actions button { width: 26px; height: 26px; border-radius: 8px; }
body.bmd-ui .bmcw-win-body { height: 420px; }
body.bmd-ui .bmcw-win-messages { padding: 14px 12px; gap: 8px; background: var(--bm-bg-soft) radial-gradient(rgba(10, 37, 82, .045) 1px, transparent 1px) 0 0 / 18px 18px; }
body.bmd-ui .bmcw-msg { font-size: 14px; line-height: 1.5; padding: 9px 13px; border-radius: 18px; max-width: 82%; animation: bmcw-msg-in .35s var(--bm-spring); }
@keyframes bmcw-msg-in { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
body.bmd-ui .bmcw-msg-in { color: var(--bm-ink); border-bottom-left-radius: 6px; box-shadow: 0 1px 2px rgba(10, 37, 82, .08); }
body.bmd-ui .bmcw-msg-out { background: linear-gradient(135deg, var(--bm-primary), #1E86FF); border-bottom-right-radius: 6px; box-shadow: 0 8px 16px -10px rgba(0, 108, 253, .8); }
body.bmd-ui .bmcw-msg-out a { color: #fff; }
body.bmd-ui .bmcw-msg-sys { background: #fff; color: var(--bm-muted); border: 1px solid var(--bm-line-soft); font-weight: 600; font-size: 12px; }
body.bmd-ui .bmcw-msg-time { font-size: 10px; }
body.bmd-ui .bmcw-tick-read { color: #9EE8FF; }
body.bmd-ui .bmcw-msg-in .bmcw-tick-read { color: var(--bm-sky); }
body.bmd-ui .bmcw-typing span { background: var(--bm-primary); opacity: .6; }
body.bmd-ui .bmcw-win-empty { color: var(--bm-muted); font-weight: 600; font-size: 13px; }
body.bmd-ui .bmcw-win-emoji { border-top-color: var(--bm-line-soft); }
body.bmd-ui .bmcw-win-input { padding: 10px; gap: 6px; border-top-color: var(--bm-line-soft); align-items: center; }
body.bmd-ui .bmcw-win-input button.bmcw-icon-btn { width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 12px; color: var(--bm-muted); }
body.bmd-ui .bmcw-win-input button.bmcw-icon-btn:hover { background: var(--bm-primary-soft); color: var(--bm-primary); }
body.bmd-ui .bmcw-win-textarea { border-radius: 14px; border: 1.5px solid var(--bm-line); padding: 9px 12px; font: 500 14px var(--bm-font); color: var(--bm-ink); background: var(--bm-bg-soft); transition: border-color .2s, box-shadow .2s, background-color .2s; }
body.bmd-ui .bmcw-win-textarea:focus { border-color: var(--bm-primary); background: #fff; box-shadow: 0 0 0 4px var(--bm-primary-ring); }
body.bmd-ui .bmcw-win-send { width: 40px; height: 40px; border-radius: 13px; background: linear-gradient(135deg, var(--bm-accent), #FF8A3D); box-shadow: 0 10px 18px -10px rgba(255, 94, 24, .9); transition: transform .3s var(--bm-spring); }
body.bmd-ui .bmcw-win-send:hover { transform: scale(1.08) rotate(-8deg); }

/* Hide the chat bubble while a popup is open; lift it above the mobile bottom bar */
body.modal-open #bmcwFab, body.modal-open #bmcwPanel { opacity: 0 !important; pointer-events: none !important; }
@media (max-width: 1199px) {
  #bmcwFab { bottom: 96px !important; right: 16px !important; width: 54px !important; height: 54px !important; }
  #bmcwPanel { bottom: 162px !important; }
  /* Business page: action bar replaces the bottom menu, keep the bubble just above it */
  body.bms-bar-on #bmcwFab { bottom: 92px !important; }
}
@media (max-width: 480px) {
  body.bmd-ui #bmcwPanel { left: 10px !important; right: 10px !important; width: auto !important; height: calc(100vh - 190px) !important; height: calc(100dvh - 190px) !important; border-radius: 24px; }
  body.bmd-ui .bmcw-win { width: 100%; border-radius: 20px; }
  body.bmd-ui .bmcw-win-body { height: 56vh; }
}
@media (prefers-reduced-motion: reduce) {
  body.bmd-ui #bmcwFabIconChat, body.bmd-ui #bmcwOnlineDot, body.bmd-ui .bmcw-gate-icon, body.bmd-ui .bmcw-list-empty::before { animation: none !important; }
}
@media (max-width: 767px) { .bmloc-search-box { margin-right: 0; } .bmloc-search-results { right: 0; } }
/* Safety net: nothing inside the page may push it wider than the screen */
#bmd-main { overflow-x: clip; }

/* Legacy custom-style.css sets html/body { overflow-x: hidden } on phones, which turns <body> into a
   scroll container and silently breaks every position:sticky element (header, filter bars).
   overflow-x: clip still hides sideways spill but keeps sticky working. */
@media (max-width: 991px) {
  html.bmd-js { overflow-x: visible !important; overflow-y: visible !important; }
  html.bmd-js body:not(.modal-open):not([style*="overflow"]) { overflow-x: visible !important; overflow-y: visible !important; }
  @supports (overflow-x: clip) { html.bmd-js body:not(.modal-open):not([style*="overflow"]) { overflow-x: clip !important; } }
}

/* ==========================================================================
   Shared modals: share + enquiry (partials/bmd-share-modal, bmd-enquiry-modal)
   ========================================================================== */
.bmd-modal .min-w-0 { min-width: 0; flex: 1; }
.bmd-ellipsis { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
/* ---------- Share modal ---------- */
.bmd-share { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 10px; }
.bmd-share__btn { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px; border-radius: 16px; border: 1px solid var(--bm-line-soft); background: var(--bm-bg-soft); font: 700 12.5px var(--bm-font); color: var(--bm-ink); cursor: pointer; transition: transform .3s var(--bm-spring), box-shadow .3s, background-color .2s; }
.bmd-share__btn[hidden] { display: none; }
.bmd-share__btn > span { width: 46px; height: 46px; border-radius: 50%; background: var(--c); color: #fff; display: flex; align-items: center; justify-content: center; transition: transform .4s var(--bm-spring); }
.bmd-share__btn:hover { transform: translateY(-3px); background: #fff; box-shadow: var(--bm-shadow); }
.bmd-share__btn:hover > span { transform: scale(1.1) rotate(-6deg); }
.bmd-copy { display: flex; align-items: center; gap: 6px; padding: 5px 5px 5px 14px; border-radius: 14px; border: 1.5px solid var(--bm-line); background: var(--bm-bg-soft); }
.bmd-copy input { flex: 1; min-width: 0; border: 0; background: transparent; font: 500 13px var(--bm-font); color: var(--bm-muted); outline: none; }
.bmd-copy .bmd-btn { flex: none; height: 38px; }
.bmd-copy .bmd-btn.is-copied { --_bg: var(--bm-success-ink); --_bgh: var(--bm-success-ink); }

/* ---------- Enquiry modal ---------- */
.bmd-loc { display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 12px; border-radius: 14px; background: var(--bm-bg-soft); border: 1px solid var(--bm-line-soft); margin-bottom: 14px; }
.bmd-loc__icon { color: var(--bm-accent); display: flex; flex: none; }
.bmd-loc__text { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; color: var(--bm-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bmd-loc__btn { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 10px; border-radius: 10px; border: 1.5px solid var(--bm-line); background: #fff; font: 700 12.5px var(--bm-font); color: var(--bm-ink); cursor: pointer; transition: all .2s; }
.bmd-loc__btn:hover { border-color: var(--bm-primary); color: var(--bm-primary); }
.bmd-loc__btn--ghost { border-color: transparent; background: transparent; color: var(--bm-primary); }
.bmd-loc__btn.is-loading svg { animation: bmd-spin 1s linear infinite; }
.bmd-loc-manual { margin: -4px 0 14px; animation: bmd-fade-down .3s var(--bm-ease); }
.bmd-city-dd { margin-top: 6px; border: 1px solid var(--bm-line); border-radius: 12px; background: #fff; max-height: 220px; overflow-y: auto; box-shadow: var(--bm-shadow); }
.bmd-city-dd__item { display: block; width: 100%; text-align: left; padding: 10px 14px; border: 0; border-bottom: 1px solid var(--bm-line-soft); background: #fff; font: 500 13.5px var(--bm-font); color: var(--bm-ink); cursor: pointer; }
.bmd-city-dd__item:last-child { border-bottom: 0; }
.bmd-city-dd__item:hover, .bmd-city-dd__item:focus { background: var(--bm-primary-soft); color: var(--bm-primary); outline: none; }
.bmd-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.bmd-quick__chip { border: 1.5px dashed var(--bm-line); background: #fff; border-radius: 999px; padding: 5px 11px; font: 600 12.5px var(--bm-font); color: var(--bm-text); cursor: pointer; transition: all .2s; }
.bmd-quick__chip:hover { border-color: var(--bm-primary); color: var(--bm-primary); }
.bmd-quick__chip.active { border-style: solid; border-color: var(--bm-primary); background: var(--bm-primary-soft); color: var(--bm-primary); }
.bmd-textarea { height: auto; min-height: 92px; padding-top: 12px; padding-bottom: 12px; resize: vertical; line-height: 1.5; }
.bmd-privacy { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 12px 0 0; font-size: 12.5px; color: var(--bm-subtle); }
.bmd-sent { text-align: center; padding: 18px 0 6px; }
.bmd-sent[hidden] { display: none; }
.bmd-sent__check { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 16px; background: var(--bm-success-soft); color: var(--bm-success-ink); display: flex; align-items: center; justify-content: center; animation: bmd-pop .6s var(--bm-spring); }
.bmd-sent .bmd-draw { stroke-dasharray: 30; stroke-dashoffset: 30; animation: bmd-draw .6s .25s var(--bm-ease) forwards; }
.bmd-sent p { margin: 6px 0 20px; }

@keyframes bmd-pop { 0% { transform: scale(.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes bmd-spin { to { transform: rotate(360deg); } }
