/* ==========================================================================
   BMC Club UI — design tokens and components (prefix: bmc-)
   Uses logical properties so the same rules serve RTL and LTR.
   ========================================================================== */

:root {
    --bmc-primary: #5830E0;
    --bmc-primary-700: #3f1fb3;
    --bmc-primary-600: #4a25cc;
    --bmc-primary-100: #e7e0fc;
    --bmc-primary-50: #f4f1fe;
    --bmc-accent: #ffb020;

    --bmc-ink: #1b1834;
    --bmc-ink-2: #3c3956;
    --bmc-muted: #6c6987;
    --bmc-faint: #9a97b0;
    --bmc-line: #e8e5f2;
    --bmc-line-2: #f0eef7;
    --bmc-surface: #ffffff;
    --bmc-bg: #f7f6fb;

    --bmc-success: #12935a;
    --bmc-success-bg: #e7f7ef;
    --bmc-warning: #b86e00;
    --bmc-warning-bg: #fff4e0;
    --bmc-danger: #d93036;
    --bmc-danger-bg: #fdecec;
    --bmc-info: #1f6fe0;
    --bmc-info-bg: #e9f1fe;
    --bmc-whatsapp: #1ea952;

    --bmc-radius-sm: 8px;
    --bmc-radius: 12px;
    --bmc-radius-lg: 18px;
    --bmc-radius-pill: 999px;

    --bmc-shadow-xs: 0 1px 2px rgba(27, 24, 52, .06);
    --bmc-shadow-sm: 0 2px 8px rgba(27, 24, 52, .06);
    --bmc-shadow: 0 8px 24px rgba(27, 24, 52, .08);
    --bmc-shadow-lg: 0 18px 48px rgba(27, 24, 52, .16);
    --bmc-ring: 0 0 0 3px rgba(88, 48, 224, .22);

    --bmc-font: 'Tajawal', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --bmc-header-h: 64px;
    --bmc-ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Base helpers ---------- */
.bmc-scope, .bmc-scope * { box-sizing: border-box; }
.bmc-scope { font-family: var(--bmc-font); color: var(--bmc-ink); }
.bmc-page-bg { background: var(--bmc-bg); }
.bmc-visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.bmc-skip-link {
    position: absolute; inset-inline-start: 12px; top: -48px; z-index: 10001;
    background: var(--bmc-primary); color: #fff; padding: 10px 16px; border-radius: var(--bmc-radius-sm);
    font-weight: 700; transition: top .2s;
}
.bmc-skip-link:focus { top: 12px; color: #fff; }
.bmc-ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.bmc-num { font-variant-numeric: tabular-nums; }
html.bmc-scroll-lock, html.bmc-scroll-lock body { overflow: hidden !important; }
:where(.bmc-scope) :focus-visible { outline: none; box-shadow: var(--bmc-ring); }

/* ---------- Layout ---------- */
.bmc-section { padding-block: 28px 56px; }
.bmc-container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 16px; }
.bmc-container--narrow { max-width: 880px; }
.bmc-grid { display: grid; gap: 20px; }
.bmc-grid--sidebar { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
.bmc-scope [hidden], .bmc-scope[hidden] { display: none !important; }
.bmc-stack { display: flex; flex-direction: column; gap: 16px; }
.bmc-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bmc-row--between { justify-content: space-between; }
.bmc-sticky { position: sticky; top: calc(var(--bmc-header-h) + 16px); }
@media (max-width: 991.98px) {
    .bmc-grid--sidebar { grid-template-columns: minmax(0, 1fr); }
    .bmc-sticky { position: static; }
}

/* ---------- Page header ---------- */
.bmc-page-head { padding-block: 28px 8px; }
.bmc-eyebrow {
    display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700;
    color: var(--bmc-primary); background: var(--bmc-primary-50); padding: 5px 12px;
    border-radius: var(--bmc-radius-pill); margin-bottom: 10px;
}
.bmc-title { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; line-height: 1.3; margin: 0 0 6px; color: var(--bmc-ink); }
.bmc-subtitle { font-size: 15px; color: var(--bmc-muted); margin: 0; line-height: 1.7; max-width: 680px; }
.bmc-h2 { font-size: 18px; font-weight: 800; margin: 0; color: var(--bmc-ink); }
.bmc-h3 { font-size: 15px; font-weight: 800; margin: 0; color: var(--bmc-ink); }
.bmc-muted { color: var(--bmc-muted); }
.bmc-small { font-size: 13px; }
.bmc-breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 14px; font-size: 13px; color: var(--bmc-muted); }
.bmc-breadcrumb a { color: var(--bmc-muted); text-decoration: none; }
.bmc-breadcrumb a:hover { color: var(--bmc-primary); }
.bmc-breadcrumb li + li::before { content: '/'; margin-inline-end: 6px; color: var(--bmc-faint); }

/* ---------- Buttons ---------- */
.bmc-btn {
    --_bg: var(--bmc-surface); --_fg: var(--bmc-ink); --_bd: var(--bmc-line);
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 10px 18px; border-radius: var(--bmc-radius);
    background: var(--_bg); color: var(--_fg); border: 1px solid var(--_bd);
    font-family: inherit; font-size: 15px; font-weight: 700; line-height: 1.2; text-decoration: none;
    cursor: pointer; transition: background-color .18s, border-color .18s, color .18s, box-shadow .18s, transform .18s;
    white-space: nowrap; position: relative; user-select: none;
}
.bmc-btn:hover { color: var(--_fg); border-color: var(--bmc-primary-100); background: var(--bmc-primary-50); text-decoration: none; }
.bmc-btn:active { transform: translateY(1px); }
.bmc-btn:focus-visible { outline: none; box-shadow: var(--bmc-ring); }
.bmc-btn[disabled], .bmc-btn.is-disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }
.bmc-btn i { font-size: 1.1em; line-height: 1; }
.bmc-btn--primary { --_bg: var(--bmc-primary); --_fg: #fff; --_bd: var(--bmc-primary); box-shadow: 0 6px 16px rgba(88, 48, 224, .25); }
.bmc-btn--primary:hover { background: var(--bmc-primary-600); border-color: var(--bmc-primary-600); color: #fff; }
.bmc-btn--soft { --_bg: var(--bmc-primary-50); --_fg: var(--bmc-primary); --_bd: transparent; }
.bmc-btn--soft:hover { background: var(--bmc-primary-100); color: var(--bmc-primary-700); border-color: transparent; }
.bmc-btn--ghost { --_bg: transparent; --_bd: transparent; --_fg: var(--bmc-ink-2); }
.bmc-btn--ghost:hover { background: var(--bmc-line-2); border-color: transparent; }
.bmc-btn--success { --_bg: var(--bmc-success); --_fg: #fff; --_bd: var(--bmc-success); }
.bmc-btn--success:hover { background: #0e7a4a; border-color: #0e7a4a; color: #fff; }
.bmc-btn--danger { --_bg: var(--bmc-surface); --_fg: var(--bmc-danger); --_bd: #f5c2c4; }
.bmc-btn--danger:hover { background: var(--bmc-danger-bg); border-color: var(--bmc-danger); color: var(--bmc-danger); }
.bmc-btn--danger-solid { --_bg: var(--bmc-danger); --_fg: #fff; --_bd: var(--bmc-danger); }
.bmc-btn--danger-solid:hover { background: #b9242a; border-color: #b9242a; color: #fff; }
.bmc-btn--whatsapp { --_bg: var(--bmc-whatsapp); --_fg: #fff; --_bd: var(--bmc-whatsapp); }
.bmc-btn--whatsapp:hover { background: #178a42; border-color: #178a42; color: #fff; }
.bmc-btn--sm { min-height: 36px; padding: 7px 12px; font-size: 14px; border-radius: 10px; }
.bmc-btn--lg { min-height: 52px; padding: 13px 24px; font-size: 16px; }
.bmc-btn--block { width: 100%; }
.bmc-btn--icon { width: 44px; padding: 0; }
.bmc-btn--icon.bmc-btn--sm { width: 36px; }
.bmc-btn.is-loading { color: transparent !important; pointer-events: none; }
.bmc-btn.is-loading > * { visibility: hidden; }
.bmc-btn.is-loading::after {
    content: ''; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px;
    border: 2px solid currentColor; border-color: var(--_fg) var(--_fg) var(--_fg) transparent;
    border-radius: 50%; animation: bmc-spin .7s linear infinite;
}
@keyframes bmc-spin { to { transform: rotate(360deg); } }

/* ---------- Cards ---------- */
.bmc-card { background: var(--bmc-surface); border: 1px solid var(--bmc-line); border-radius: var(--bmc-radius-lg); box-shadow: var(--bmc-shadow-xs); }
.bmc-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--bmc-line-2); }
.bmc-card__body { padding: 20px; }
.bmc-card__foot { padding: 14px 20px; border-top: 1px solid var(--bmc-line-2); background: #fcfbfe; border-radius: 0 0 var(--bmc-radius-lg) var(--bmc-radius-lg); }
.bmc-card--hover { transition: box-shadow .2s, transform .2s, border-color .2s; }
.bmc-card--hover:hover { box-shadow: var(--bmc-shadow); border-color: var(--bmc-primary-100); transform: translateY(-2px); }
.bmc-card--accent { border-color: var(--bmc-primary-100); background: linear-gradient(180deg, var(--bmc-primary-50), #fff 70%); }

/* ---------- Forms ---------- */
.bmc-form { display: flex; flex-direction: column; gap: 16px; }
.bmc-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bmc-form-grid > .is-full { grid-column: 1 / -1; }
@media (max-width: 575.98px) { .bmc-form-grid { grid-template-columns: minmax(0, 1fr); } }
.bmc-fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.bmc-fieldset__title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; color: var(--bmc-ink); margin: 0; }
.bmc-fieldset__title i { color: var(--bmc-primary); }
.bmc-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bmc-label { font-size: 14px; font-weight: 700; color: var(--bmc-ink-2); margin: 0; }
.bmc-label .is-required { color: var(--bmc-danger); margin-inline-start: 2px; }
.bmc-label .is-optional { color: var(--bmc-faint); font-weight: 500; font-size: 12px; margin-inline-start: 4px; }
.bmc-input, .bmc-select, .bmc-textarea {
    width: 100%; min-height: 46px; padding: 10px 14px; border-radius: var(--bmc-radius);
    background: var(--bmc-surface); border: 1px solid #dcd8ea; color: var(--bmc-ink);
    font-family: inherit; font-size: 15px; line-height: 1.5; transition: border-color .15s, box-shadow .15s, background-color .15s;
    appearance: none; -webkit-appearance: none;
}
.bmc-textarea { min-height: 96px; resize: vertical; }
.bmc-select {
    padding-inline-end: 40px; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%236c6987' stroke-width='1.8' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
}
[dir="rtl"] .bmc-select { background-position: left 14px center; }
.bmc-input::placeholder, .bmc-textarea::placeholder { color: var(--bmc-faint); }
.bmc-input:hover, .bmc-select:hover, .bmc-textarea:hover { border-color: #c6c0dd; }

/* ---------- Club joining terms page ---------- */
.join-terms-page { padding-bottom: 48px; }
.join-terms-hero { padding-block: 28px 16px; }
.join-terms-hero__panel {
    position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 190px; align-items: center;
    gap: 24px; overflow: hidden; min-height: 260px; padding: clamp(24px, 5vw, 52px);
    border: 1px solid var(--bmc-primary-100); border-radius: 24px;
    background: radial-gradient(ellipse at 10% 100%, rgba(255,176,32,.13), transparent 34%), linear-gradient(115deg, #fff 12%, #f4f1fe 100%);
    box-shadow: var(--bmc-shadow-sm);
}
.join-terms-hero__copy { position: relative; z-index: 1; max-width: 780px; }
.join-terms-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 6px 12px; border: 1px solid var(--bmc-primary-100); border-radius: var(--bmc-radius-pill); background: rgba(255,255,255,.82); color: var(--bmc-primary-700); font-size: 13px; font-weight: 800; }
.join-terms-eyebrow i { font-size: 16px; }
.join-terms-hero h1 { margin: 0 0 10px; color: var(--bmc-ink); font-size: clamp(28px, 4vw, 42px); font-weight: 900; line-height: 1.3; }
.join-terms-hero__description { max-width: 720px; color: var(--bmc-muted); font-size: 16px; line-height: 1.9; }
.join-terms-hero__description p { margin: 0; }
.join-terms-hero__art { position: relative; display: grid; place-items: center; min-height: 170px; }
.join-terms-hero__ring { position: absolute; width: 164px; aspect-ratio: 1; border: 1px solid rgba(88,48,224,.17); border-radius: 50%; box-shadow: 0 0 0 18px rgba(88,48,224,.035), 0 0 0 36px rgba(88,48,224,.025); }
.join-terms-hero__document { position: relative; z-index: 1; display: grid; place-items: center; width: 100px; height: 116px; border: 1px solid var(--bmc-primary-100); border-radius: 20px; background: #fff; box-shadow: 0 16px 36px rgba(54,37,117,.13); color: var(--bmc-primary); font-size: 44px; transform: rotate(4deg); }
.join-terms-hero__check { position: absolute; z-index: 2; inset-block-end: 15px; inset-inline-end: 18px; display: grid; place-items: center; width: 42px; height: 42px; border: 4px solid #fff; border-radius: 50%; background: var(--bmc-success); color: #fff; font-size: 18px; }
.join-terms-content { padding-block: 16px 12px; }
.join-terms-card { overflow: hidden; border: 1px solid var(--bmc-line); border-radius: 22px; background: #fff; box-shadow: var(--bmc-shadow); }
.join-terms-card__head { display: flex; align-items: center; gap: 14px; padding: 24px clamp(18px, 4vw, 34px); border-bottom: 1px solid var(--bmc-line-2); background: linear-gradient(180deg, #fff, #fcfbff); }
.join-terms-card__mark { display: grid; flex: 0 0 48px; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: var(--bmc-primary-50); color: var(--bmc-primary); font-size: 21px; }
.join-terms-card__eyebrow { display: block; margin-bottom: 2px; color: var(--bmc-muted); font-size: 12px; font-weight: 700; }
.join-terms-card__head h2 { margin: 0; color: var(--bmc-ink); font-size: clamp(20px, 2.5vw, 26px); font-weight: 900; line-height: 1.4; }
.join-terms-list { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 8px clamp(18px, 4vw, 34px); list-style: none; }
.join-terms-item { display: flex; align-items: flex-start; gap: 16px; padding-block: 20px; }
.join-terms-item + .join-terms-item { border-top: 1px solid var(--bmc-line-2); }
.join-terms-item__number { display: grid; flex: 0 0 38px; place-items: center; width: 38px; height: 38px; border: 1px solid var(--bmc-primary-100); border-radius: 12px; background: var(--bmc-primary-50); color: var(--bmc-primary-700); font-size: 13px; font-weight: 900; font-variant-numeric: tabular-nums; }
.join-terms-item p { min-width: 0; margin: 3px 0 0; color: var(--bmc-ink-2); font-size: 16px; line-height: 1.85; overflow-wrap: anywhere; }
.join-terms-item strong { color: var(--bmc-primary-700); font-weight: 900; }
.join-terms-item__separator { margin-inline: 3px; color: var(--bmc-faint); }
@media (max-width: 640px) {
    .join-terms-page { padding-bottom: 28px; }
    .join-terms-hero { padding-block: 16px 10px; }
    .join-terms-hero__panel { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 0; padding: 24px 20px; border-radius: 18px; }
    .join-terms-hero__art { display: none; }
    .join-terms-hero h1 { font-size: clamp(25px, 7vw, 32px); }
    .join-terms-hero__description { font-size: 15px; }
    .join-terms-content { padding-block: 10px; }
    .join-terms-card { border-radius: 18px; }
    .join-terms-card__head { padding: 18px; }
    .join-terms-list { padding-inline: 18px; }
    .join-terms-item { gap: 11px; padding-block: 16px; }
    .join-terms-item__number { flex-basis: 34px; width: 34px; height: 34px; border-radius: 10px; }
    .join-terms-item p { margin-top: 1px; font-size: 15px; line-height: 1.8; }
}
.bmc-input:focus, .bmc-select:focus, .bmc-textarea:focus { outline: none; border-color: var(--bmc-primary); box-shadow: var(--bmc-ring); }
.bmc-input:disabled, .bmc-select:disabled, .bmc-textarea:disabled { background-color: var(--bmc-line-2); color: var(--bmc-faint); cursor: not-allowed; }
.bmc-input.is-invalid, .bmc-select.is-invalid, .bmc-textarea.is-invalid, .is-invalid > .bmc-combobox__button { border-color: var(--bmc-danger); background-color: #fffafa; }
.bmc-help { font-size: 12.5px; color: var(--bmc-muted); margin: 0; line-height: 1.6; }
.bmc-error { font-size: 13px; color: var(--bmc-danger); font-weight: 600; margin: 0; display: flex; align-items: center; gap: 5px; }
.bmc-error:empty { display: none; }
.bmc-input-group { display: flex; align-items: stretch; direction: ltr; }
.bmc-input-group__addon {
    display: inline-flex; align-items: center; padding: 0 12px; background: var(--bmc-line-2);
    border: 1px solid #dcd8ea; border-inline-end: 0; border-radius: var(--bmc-radius) 0 0 var(--bmc-radius);
    color: var(--bmc-ink-2); font-weight: 700; font-size: 14px; white-space: nowrap;
}
.bmc-input-group__addon:empty { display: none; }
.bmc-input-group__addon:not(:empty) + .bmc-input { border-start-start-radius: 0; border-end-start-radius: 0; }
.bmc-input-group .bmc-input { direction: ltr; text-align: left; }

/* Switch */
.bmc-switch { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.bmc-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bmc-switch__track {
    flex: 0 0 auto; width: 46px; height: 26px; border-radius: 999px; background: #d4d0e2; position: relative;
    transition: background-color .2s; margin-top: 1px;
}
.bmc-switch__track::after {
    content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%;
    background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s var(--bmc-ease);
}
.bmc-switch input:checked + .bmc-switch__track { background: var(--bmc-primary); }
.bmc-switch input:checked + .bmc-switch__track::after { transform: translateX(20px); }
[dir="rtl"] .bmc-switch input:checked + .bmc-switch__track::after { transform: translateX(-20px); }
.bmc-switch input:focus-visible + .bmc-switch__track { box-shadow: var(--bmc-ring); }
.bmc-switch input:disabled + .bmc-switch__track { opacity: .5; }
.bmc-switch__text { display: flex; flex-direction: column; gap: 2px; }
.bmc-switch__title { font-weight: 700; font-size: 14.5px; color: var(--bmc-ink); }
.bmc-switch__desc { font-size: 13px; color: var(--bmc-muted); line-height: 1.6; }

/* Segmented radio (vehicle / payment pickers) */
.bmc-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.bmc-choice { position: relative; }
.bmc-choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.bmc-choice__box {
    display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--bmc-radius);
    border: 1.5px solid var(--bmc-line); background: #fff; font-weight: 700; font-size: 14px; color: var(--bmc-ink-2);
    transition: border-color .15s, background-color .15s, color .15s; height: 100%;
}
.bmc-choice__box i { font-size: 20px; color: var(--bmc-muted); }
.bmc-choice__box small { display: block; font-weight: 500; color: var(--bmc-muted); font-size: 12px; }
.bmc-choice input:checked + .bmc-choice__box { border-color: var(--bmc-primary); background: var(--bmc-primary-50); color: var(--bmc-primary-700); }
.bmc-choice input:checked + .bmc-choice__box i { color: var(--bmc-primary); }
.bmc-choice input:focus-visible + .bmc-choice__box { box-shadow: var(--bmc-ring); }

/* Quantity stepper */
.bmc-qty { display: inline-flex; align-items: center; border: 1px solid #dcd8ea; border-radius: var(--bmc-radius); overflow: hidden; background: #fff; }
.bmc-qty button { width: 42px; height: 44px; border: 0; background: transparent; font-size: 18px; color: var(--bmc-ink-2); cursor: pointer; }
.bmc-qty button:hover { background: var(--bmc-primary-50); color: var(--bmc-primary); }
.bmc-qty button:disabled { color: var(--bmc-faint); cursor: not-allowed; background: transparent; }
.bmc-qty input { width: 56px; height: 44px; border: 0; text-align: center; font-weight: 800; font-size: 16px; font-family: inherit; -moz-appearance: textfield; }
.bmc-qty input::-webkit-outer-spin-button, .bmc-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.bmc-qty input:focus { outline: none; }

/* ---------- Searchable select (combobox) ---------- */
.bmc-combobox { position: relative; width: 100%; }
.bmc-combobox > select { position: absolute !important; opacity: 0; pointer-events: none; width: 1px; height: 1px; inset-inline-start: 0; bottom: 0; }
.bmc-combobox__button {
    width: 100%; min-height: 46px; padding: 10px 14px; padding-inline-end: 40px; border-radius: var(--bmc-radius);
    border: 1px solid #dcd8ea; background: #fff; color: var(--bmc-ink); font-family: inherit; font-size: 15px;
    text-align: start; cursor: pointer; position: relative; display: flex; align-items: center; gap: 8px;
    transition: border-color .15s, box-shadow .15s;
}
.bmc-combobox__button::after {
    content: ''; position: absolute; inset-inline-end: 14px; top: 50%; width: 12px; height: 8px; margin-top: -4px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%236c6987' stroke-width='1.8' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat center;
    transition: transform .2s;
}
.bmc-combobox.is-open .bmc-combobox__button::after { transform: rotate(180deg); }
.bmc-combobox__button:hover { border-color: #c6c0dd; }
.bmc-combobox__button:focus-visible, .bmc-combobox.is-open .bmc-combobox__button { outline: none; border-color: var(--bmc-primary); box-shadow: var(--bmc-ring); }
.bmc-combobox__button:disabled { background: var(--bmc-line-2); color: var(--bmc-faint); cursor: not-allowed; }
.bmc-combobox__value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bmc-combobox__value.is-placeholder { color: var(--bmc-faint); }
.bmc-combobox.is-loading .bmc-combobox__button::before {
    content: ''; width: 14px; height: 14px; border: 2px solid var(--bmc-primary-100); border-top-color: var(--bmc-primary);
    border-radius: 50%; animation: bmc-spin .7s linear infinite; flex: 0 0 auto;
}
.bmc-combobox__panel {
    position: absolute; z-index: 60; inset-inline: 0; top: calc(100% + 6px); background: #fff;
    border: 1px solid var(--bmc-line); border-radius: var(--bmc-radius); box-shadow: var(--bmc-shadow-lg);
    display: none; overflow: hidden;
}
.bmc-combobox.is-open .bmc-combobox__panel { display: block; animation: bmc-pop .14s var(--bmc-ease); }
.bmc-combobox.is-upward .bmc-combobox__panel { top: auto; bottom: calc(100% + 6px); }
.bmc-combobox__search { padding: 8px; border-bottom: 1px solid var(--bmc-line-2); }
.bmc-combobox__search input {
    width: 100%; min-height: 40px; border: 1px solid var(--bmc-line); border-radius: 10px; padding: 8px 12px;
    font-family: inherit; font-size: 14px;
}
.bmc-combobox__search input:focus { outline: none; border-color: var(--bmc-primary); box-shadow: var(--bmc-ring); }
.bmc-combobox__list { list-style: none; margin: 0; padding: 6px; max-height: 260px; overflow-y: auto; overscroll-behavior: contain; }
.bmc-combobox__option {
    padding: 9px 12px; border-radius: 8px; cursor: pointer; font-size: 14.5px; color: var(--bmc-ink-2);
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.bmc-combobox__option[aria-selected="true"] { color: var(--bmc-primary-700); font-weight: 700; background: var(--bmc-primary-50); }
.bmc-combobox__option[aria-selected="true"]::after { content: '✓'; color: var(--bmc-primary); }
.bmc-combobox__option.is-active { background: var(--bmc-line-2); }
.bmc-combobox__option[aria-selected="true"].is-active { background: var(--bmc-primary-100); }
.bmc-combobox__empty { padding: 14px; text-align: center; color: var(--bmc-muted); font-size: 14px; }
@keyframes bmc-pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.bmc-field-status { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--bmc-danger); }
.bmc-field-status[hidden] { display: none; }
.bmc-link-btn { background: none; border: 0; padding: 0; color: var(--bmc-primary); font-weight: 700; cursor: pointer; font-family: inherit; font-size: inherit; text-decoration: underline; }

/* ---------- Badges ---------- */
.bmc-badge {
    --_bg: var(--bmc-line-2); --_fg: var(--bmc-ink-2);
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--bmc-radius-pill);
    background: var(--_bg); color: var(--_fg); font-size: 12.5px; font-weight: 700; line-height: 1.4; white-space: nowrap;
}
.bmc-badge--dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.bmc-badge--pending { --_bg: var(--bmc-warning-bg); --_fg: var(--bmc-warning); }
.bmc-badge--accepted { --_bg: var(--bmc-primary-50); --_fg: var(--bmc-primary-700); }
.bmc-badge--out_for_delivery { --_bg: var(--bmc-info-bg); --_fg: var(--bmc-info); }
.bmc-badge--delivered { --_bg: var(--bmc-success-bg); --_fg: var(--bmc-success); }
.bmc-badge--cancelled { --_bg: var(--bmc-danger-bg); --_fg: var(--bmc-danger); }
.bmc-badge--active, .bmc-badge--available { --_bg: var(--bmc-success-bg); --_fg: var(--bmc-success); }
.bmc-badge--suspended { --_bg: var(--bmc-danger-bg); --_fg: var(--bmc-danger); }
.bmc-badge--offline { --_bg: var(--bmc-line-2); --_fg: var(--bmc-muted); }
.bmc-badge--primary { --_bg: var(--bmc-primary); --_fg: #fff; }
.bmc-badge--soft { --_bg: var(--bmc-primary-50); --_fg: var(--bmc-primary); }

/* ---------- Alerts ---------- */
.bmc-alert {
    --_bg: var(--bmc-info-bg); --_fg: var(--bmc-info); --_bd: #cfe0fb;
    display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--bmc-radius);
    background: var(--_bg); border: 1px solid var(--_bd); color: var(--bmc-ink-2); font-size: 14px; line-height: 1.7;
}
.bmc-alert > i { color: var(--_fg); font-size: 20px; margin-top: 1px; flex: 0 0 auto; }
.bmc-alert__title { font-weight: 800; color: var(--bmc-ink); margin: 0 0 2px; font-size: 14.5px; }
.bmc-alert__close { margin-inline-start: auto; background: none; border: 0; color: var(--bmc-muted); cursor: pointer; font-size: 16px; padding: 2px; }
.bmc-alert--success { --_bg: var(--bmc-success-bg); --_fg: var(--bmc-success); --_bd: #c5ebd7; }
.bmc-alert--warning { --_bg: var(--bmc-warning-bg); --_fg: var(--bmc-warning); --_bd: #fbe0b0; }
.bmc-alert--danger { --_bg: var(--bmc-danger-bg); --_fg: var(--bmc-danger); --_bd: #f7c9cb; }
.bmc-alert--neutral { --_bg: #faf9fd; --_fg: var(--bmc-muted); --_bd: var(--bmc-line); }
.bmc-flash { margin-top: 16px; }

/* ---------- Tabs ---------- */
.bmc-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 4px; background: #fff; border: 1px solid var(--bmc-line); border-radius: var(--bmc-radius-pill); }
.bmc-tabs::-webkit-scrollbar { display: none; }
.bmc-tab {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: var(--bmc-radius-pill);
    color: var(--bmc-ink-2); font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; transition: background-color .15s, color .15s;
}
.bmc-tab:hover { background: var(--bmc-line-2); color: var(--bmc-ink); text-decoration: none; }
.bmc-tab.is-active { background: var(--bmc-primary); color: #fff; }
.bmc-tab__count { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: rgba(27, 24, 52, .07); font-size: 12px; text-align: center; }
.bmc-tab.is-active .bmc-tab__count { background: rgba(255, 255, 255, .22); }
.bmc-segmented { display: inline-flex; gap: 4px; padding: 4px; background: var(--bmc-line-2); border-radius: var(--bmc-radius); }
.bmc-segmented a { padding: 8px 16px; border-radius: 9px; font-weight: 700; font-size: 14px; color: var(--bmc-muted); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.bmc-segmented a.is-active { background: #fff; color: var(--bmc-ink); box-shadow: var(--bmc-shadow-xs); }

/* ---------- Empty state & skeleton ---------- */
.bmc-empty { text-align: center; padding: 48px 20px; }
.bmc-empty__icon {
    width: 72px; height: 72px; border-radius: 22px; margin: 0 auto 16px; display: grid; place-items: center;
    background: var(--bmc-primary-50); color: var(--bmc-primary); font-size: 32px;
}
.bmc-empty__title { font-size: 17px; font-weight: 800; margin: 0 0 6px; color: var(--bmc-ink); }
.bmc-empty__text { color: var(--bmc-muted); margin: 0 auto 18px; max-width: 420px; line-height: 1.7; font-size: 14.5px; }
.bmc-skeleton { position: relative; overflow: hidden; background: var(--bmc-line-2); border-radius: 8px; }
.bmc-skeleton::after {
    content: ''; position: absolute; inset: 0; transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent); animation: bmc-shimmer 1.3s infinite;
}
@keyframes bmc-shimmer { to { transform: translateX(100%); } }

/* ---------- Definition list / meta ---------- */
.bmc-dl { display: grid; grid-template-columns: minmax(110px, auto) 1fr; gap: 10px 16px; margin: 0; font-size: 14.5px; }
.bmc-dl dt { color: var(--bmc-muted); font-weight: 600; }
.bmc-dl dd { margin: 0; color: var(--bmc-ink); font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.bmc-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--bmc-muted); font-size: 13.5px; }
.bmc-meta span { display: inline-flex; align-items: center; gap: 5px; }
.bmc-divider { height: 1px; background: var(--bmc-line-2); margin: 16px 0; border: 0; }

/* ---------- Stats ---------- */
.bmc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.bmc-stat { background: #fff; border: 1px solid var(--bmc-line); border-radius: var(--bmc-radius-lg); padding: 16px; display: flex; gap: 12px; align-items: center; }
.bmc-stat__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--bmc-primary-50); color: var(--bmc-primary); font-size: 20px; flex: 0 0 auto; }
.bmc-stat__value { font-size: 20px; font-weight: 800; color: var(--bmc-ink); line-height: 1.2; }
.bmc-stat__label { font-size: 13px; color: var(--bmc-muted); }

/* ---------- Avatar ---------- */
.bmc-avatar {
    width: 44px; height: 44px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center; overflow: hidden;
    background: var(--bmc-primary-50); color: var(--bmc-primary); font-weight: 800; font-size: 17px;
}
.bmc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bmc-avatar--lg { width: 56px; height: 56px; font-size: 21px; }
.bmc-avatar--sm { width: 34px; height: 34px; font-size: 14px; }

/* ---------- Chips ---------- */
.bmc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bmc-chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: var(--bmc-radius-pill);
    border: 1px solid var(--bmc-line); background: #fff; color: var(--bmc-ink-2); font-size: 13.5px; font-weight: 600;
    cursor: pointer; transition: border-color .15s, background-color .15s, color .15s; font-family: inherit; line-height: 1.3;
}
.bmc-chip:hover { border-color: var(--bmc-primary-100); background: var(--bmc-primary-50); }
.bmc-chip[aria-pressed="true"], .bmc-chip.is-selected { background: var(--bmc-primary); border-color: var(--bmc-primary); color: #fff; }
.bmc-chip--static { cursor: default; }
.bmc-chip--static:hover { background: #fff; border-color: var(--bmc-line); }
.bmc-chip__remove { background: none; border: 0; padding: 0; color: inherit; opacity: .7; cursor: pointer; font-size: 12px; line-height: 1; }
.bmc-chip__remove:hover { opacity: 1; }

/* ---------- Timeline ---------- */
.bmc-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.bmc-timeline__item { position: relative; padding-inline-start: 34px; padding-bottom: 18px; }
.bmc-timeline__item:last-child { padding-bottom: 0; }
.bmc-timeline__item::before {
    content: ''; position: absolute; inset-inline-start: 11px; top: 26px; bottom: 0; width: 2px; background: var(--bmc-line);
}
.bmc-timeline__item:last-child::before { display: none; }
.bmc-timeline__dot {
    position: absolute; inset-inline-start: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%;
    display: grid; place-items: center; background: var(--bmc-primary-50); color: var(--bmc-primary); font-size: 12px; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--bmc-primary-100);
}
.bmc-timeline__dot--delivered { background: var(--bmc-success-bg); color: var(--bmc-success); box-shadow: 0 0 0 1px #c5ebd7; }
.bmc-timeline__dot--cancelled { background: var(--bmc-danger-bg); color: var(--bmc-danger); box-shadow: 0 0 0 1px #f7c9cb; }
.bmc-timeline__title { font-weight: 700; font-size: 14.5px; color: var(--bmc-ink); }
.bmc-timeline__meta { font-size: 12.5px; color: var(--bmc-muted); margin-top: 2px; }
.bmc-timeline__note { margin-top: 6px; padding: 8px 12px; background: var(--bmc-line-2); border-radius: 10px; font-size: 13.5px; color: var(--bmc-ink-2); }

/* ---------- Progress stepper ---------- */
.bmc-stepper { display: flex; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.bmc-stepper__step { flex: 1; position: relative; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--bmc-faint); padding-top: 38px; }
.bmc-stepper__step::before {
    content: ''; position: absolute; top: 14px; inset-inline-start: 50%; width: 100%; height: 3px; background: var(--bmc-line);
}
.bmc-stepper__step:last-child::before { display: none; }
.bmc-stepper__dot {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 30px; height: 30px; border-radius: 50%;
    display: grid; place-items: center; background: #fff; border: 2px solid var(--bmc-line); color: var(--bmc-faint); font-size: 14px; z-index: 1;
}
.bmc-stepper__step.is-done { color: var(--bmc-ink-2); }
.bmc-stepper__step.is-done::before { background: var(--bmc-primary); }
.bmc-stepper__step.is-done .bmc-stepper__dot { background: var(--bmc-primary); border-color: var(--bmc-primary); color: #fff; }
.bmc-stepper__step.is-current { color: var(--bmc-primary-700); }
.bmc-stepper__step.is-current .bmc-stepper__dot { border-color: var(--bmc-primary); color: var(--bmc-primary); box-shadow: 0 0 0 5px var(--bmc-primary-50); }
.bmc-stepper.is-cancelled .bmc-stepper__step { color: var(--bmc-faint); }
@media (max-width: 480px) { .bmc-stepper__step { font-size: 11px; } }

/* ---------- Modal / bottom sheet / drawer ---------- */
.bmc-modal { position: fixed; inset: 0; z-index: 10050; display: none; }
.bmc-modal.is-open { display: block; }
.bmc-modal__backdrop { position: absolute; inset: 0; background: rgba(20, 16, 44, .55); backdrop-filter: blur(2px); opacity: 0; transition: opacity .22s; }
.bmc-modal.is-visible .bmc-modal__backdrop { opacity: 1; }
.bmc-modal__panel {
    position: absolute; left: 50%; top: 50%; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px);
    transform: translate(-50%, -46%) scale(.98); opacity: 0; transition: transform .26s var(--bmc-ease), opacity .2s;
    background: #fff; border-radius: 20px; box-shadow: var(--bmc-shadow-lg); display: flex; flex-direction: column; overflow: hidden;
}
.bmc-modal--wide .bmc-modal__panel { width: min(720px, calc(100vw - 32px)); }
.bmc-modal--sm .bmc-modal__panel { width: min(440px, calc(100vw - 32px)); }
.bmc-modal.is-visible .bmc-modal__panel { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.bmc-modal__head { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px 14px; border-bottom: 1px solid var(--bmc-line-2); }
.bmc-modal__title { font-size: 18px; font-weight: 800; margin: 0; color: var(--bmc-ink); line-height: 1.35; }
.bmc-modal__subtitle { font-size: 13.5px; color: var(--bmc-muted); margin: 4px 0 0; line-height: 1.6; }
.bmc-modal__close {
    margin-inline-start: auto; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--bmc-line-2);
    color: var(--bmc-ink-2); display: grid; place-items: center; cursor: pointer; flex: 0 0 auto; font-size: 14px;
}
.bmc-modal__close:hover { background: var(--bmc-primary-50); color: var(--bmc-primary); }
.bmc-modal__body { padding: 18px 20px; overflow-y: auto; overscroll-behavior: contain; flex: 1 1 auto; }
.bmc-modal__foot { padding: 14px 20px; border-top: 1px solid var(--bmc-line-2); background: #fff; display: flex; gap: 10px; flex-wrap: wrap; }
.bmc-modal__handle { display: none; }

@media (max-width: 767.98px) {
    .bmc-modal--sheet .bmc-modal__panel {
        left: 0; right: 0; top: auto; bottom: 0; width: 100%; max-height: 92vh; border-radius: 22px 22px 0 0;
        transform: translateY(100%); opacity: 1;
    }
    .bmc-modal--sheet.is-visible .bmc-modal__panel { transform: translateY(0); }
    .bmc-modal--sheet .bmc-modal__handle { display: block; width: 44px; height: 5px; border-radius: 99px; background: #d9d5e8; margin: 8px auto 0; }
    .bmc-modal__foot { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
}

.bmc-modal--drawer .bmc-modal__panel {
    left: auto; right: auto; top: 0; bottom: 0; inset-inline-start: 0; width: min(340px, 88vw); max-height: none; height: 100%;
    border-radius: 0; transform: translateX(-100%); opacity: 1;
}
[dir="rtl"] .bmc-modal--drawer .bmc-modal__panel { transform: translateX(100%); }
.bmc-modal--drawer.is-visible .bmc-modal__panel, [dir="rtl"] .bmc-modal--drawer.is-visible .bmc-modal__panel { transform: translateX(0); }

@media (prefers-reduced-motion: reduce) {
    .bmc-modal__panel, .bmc-modal__backdrop, .bmc-btn, .bmc-card--hover { transition: none !important; }
}

.bmc-modal__view { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; }
.bmc-modal__view[hidden] { display: none; }

/* ---------- Direct order sheet ---------- */
.bmc-order-item { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--bmc-line); border-radius: var(--bmc-radius); background: var(--bmc-bg); flex-wrap: wrap; }
.bmc-order-item__img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: #fff; flex: 0 0 auto; }
.bmc-order-item__body { flex: 1 1 160px; min-width: 0; }
.bmc-order-item__title { font-weight: 800; color: var(--bmc-ink); line-height: 1.45; margin-bottom: 2px; overflow-wrap: anywhere; }
.bmc-success-mark {
    width: 72px; height: 72px; border-radius: 50%; margin: 4px auto 14px; display: grid; place-items: center; font-size: 32px;
    color: #fff; background: var(--bmc-success); box-shadow: 0 0 0 10px var(--bmc-success-bg);
}
.bmc-order-receipt { text-align: start; margin: 18px auto 0; max-width: 440px; border: 1px solid var(--bmc-line); border-radius: var(--bmc-radius); padding: 14px; }
.bmc-modal [data-order-success-title]:focus { outline: none; }

/* ---------- Courier coverage picker ---------- */
.bmc-coverage__box { border: 1px solid var(--bmc-line); border-radius: var(--bmc-radius); padding: 12px; background: #fff; display: flex; flex-direction: column; gap: 12px; }
.bmc-coverage__options { max-height: 240px; overflow-y: auto; overscroll-behavior: contain; padding: 2px; }
.bmc-coverage__selected { padding: 12px; border-radius: var(--bmc-radius); background: var(--bmc-primary-50); }

/* ---------- Data table ---------- */
.bmc-table-wrap { position: relative; overflow-x: auto; }
.bmc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.bmc-table th { text-align: start; font-size: 12.5px; font-weight: 800; color: var(--bmc-muted); padding: 12px 14px; background: #fbfaff; border-bottom: 1px solid var(--bmc-line); white-space: nowrap; }
.bmc-table td { padding: 12px 14px; border-bottom: 1px solid var(--bmc-line-2); vertical-align: middle; color: var(--bmc-ink-2); }
.bmc-table tbody tr:hover { background: #fcfbff; }
.bmc-table tbody tr:last-child td { border-bottom: 0; }
.bmc-filterbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.bmc-filterbar .bmc-input, .bmc-filterbar .bmc-select { width: auto; min-width: 160px; flex: 0 1 auto; }
.bmc-filterbar .bmc-input[type="search"] { flex: 1 1 260px; }

/* ---------- Courier directory ---------- */
.bmc-directory { grid-template-columns: 300px minmax(0, 1fr); }
@media (max-width: 991.98px) { .bmc-directory { grid-template-columns: minmax(0, 1fr); } }
.bmc-courier-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.bmc-courier-card { padding: 18px; display: flex; flex-direction: column; gap: 16px; border-radius: 18px; box-shadow: 0 8px 24px rgba(35,24,74,.07); }
.bmc-courier-card--member { border-color: #eae6f3; }
.bmc-courier-card--member:hover { box-shadow: 0 14px 32px rgba(43,31,89,.13); }
.bmc-courier-card__avatar {
    width: 58px; height: 58px; flex: 0 0 58px; display: grid; place-items: center; overflow: hidden; border-radius: 17px;
    border: 2px solid #fff; outline: 1px solid #e7e0fb; background: linear-gradient(140deg,#ede8ff,#f8f6ff); color: var(--bmc-primary);
    font-size: 23px; font-weight: 800; box-shadow: 0 5px 14px rgba(54,37,111,.1);
}
.bmc-courier-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.bmc-courier-card--member .bmc-h3 { margin: 2px 0 0; font-size: 17px; line-height: 1.45; }
.bmc-courier-card--member .bmc-meta { flex-wrap: wrap; gap: 6px 12px; }
.bmc-courier-card--member .bmc-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.bmc-courier-card--member .bmc-badge { flex: 0 0 auto; white-space: nowrap; }
.bmc-courier-card--member > div:nth-child(2) { padding: 12px; border-radius: 13px; background: #faf9fd; border: 1px solid #f0edf6; }
.bmc-courier-card--member > div:nth-child(2) > .bmc-small { font-weight: 700; }
.bmc-courier-card--member .bmc-chip { border-radius: 999px; }
.bmc-courier-card__actions { display: flex; flex-wrap: wrap; align-items: stretch; }
.bmc-courier-card__actions > .bmc-btn { min-width: 110px; }
.bmc-courier-card__actions > .bmc-courier-card__profile { flex-basis: 100%; min-height: 42px; box-shadow: 0 6px 16px rgba(88,48,224,.17); }

/* Refined member search banner and cards shared by the homepage and directory. */
.bmc-home-search, html body .hero-area .bmc-home-search {
    position: relative; padding: 14px; border: 1px solid rgba(255,255,255,.42); border-radius: 20px;
    background: rgba(255,255,255,.97); box-shadow: 0 18px 48px rgba(25,17,65,.2); text-align: start;
}
.bmc-home-search .row { --bs-gutter-x: 8px; --bs-gutter-y: 8px; margin: 0; }
.bmc-home-search .row > [class*="col-"] { padding: 0 !important; }
.bmc-home-search .search-input { height: 100%; }
.bmc-home-search input, .bmc-home-search select,
html body .bmc-home-search .search-input input, html body .bmc-home-search .search-input select {
    width: 100%; min-width: 0; height: 52px; padding: 0 14px; border: 1px solid #e7e4f0; border-radius: 12px;
    background-color: #fff; color: #28243b; font: inherit; font-size: 15px; box-shadow: none; transition: border-color .18s, box-shadow .18s, background-color .18s;
}
html body .bmc-home-search input:focus, html body .bmc-home-search select:focus { outline: 0 !important; border-color: #7654e8; box-shadow: 0 0 0 3px rgba(88,48,224,.13); }
html body .bmc-home-search input::placeholder { color: #858196; opacity: 1; }
.bmc-home-search .search-btn { height: 100%; }
.bmc-home-search .search-btn .btn {
    width: 100%; min-height: 52px; padding: 10px 18px; border: 0; border-radius: 12px; background: linear-gradient(135deg,#5830e0,#7858e9);
    color: #fff; font-weight: 800; box-shadow: 0 8px 18px rgba(88,48,224,.22); transition: transform .18s, box-shadow .18s;
}
.bmc-home-search .search-btn .btn:hover { transform: translateY(-1px); box-shadow: 0 11px 24px rgba(88,48,224,.28); }
.bmc-home-search .suggestions-dropdown { inset-inline: 0; border-color: #e7e4f0; border-radius: 12px; text-align: start; }
html body .bmc-member-card {
    height: 100%; min-width: 0; padding: 20px; border: 1px solid #eeebf5; border-radius: 20px; background: #fff;
    box-shadow: 0 6px 20px rgba(34,24,75,.07); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
html body .bmc-member-card:hover { transform: translateY(-4px); border-color: #ded5fb; box-shadow: 0 14px 30px rgba(50,35,105,.13); }
html body .bmc-member-card .member-avatar { border-radius: 16px; overflow: hidden; }
html body .bmc-member-card .member-content { min-width: 0; }
html body .bmc-member-card .member-name { overflow-wrap: anywhere; line-height: 1.4; }
html body .bmc-member-card .member-description { overflow-wrap: anywhere; }
html body .bmc-member-card .member-meta { flex-wrap: wrap; align-items: center; }
html body .bmc-member-card .meta-item { min-width: 0; overflow-wrap: anywhere; }
html body .bmc-member-card .member-actions { gap: 8px; }
html body .bmc-member-card .btn-action { border-radius: 12px; }
@media (max-width: 767.98px) {
    html body .hero-area .bmc-home-search { margin-top: 30px; padding: 10px; border-radius: 16px; }
    .bmc-home-search input, .bmc-home-search select, .bmc-home-search .search-btn .btn,
    html body .bmc-home-search .search-input input, html body .bmc-home-search .search-input select { height: 48px; min-height: 48px; }
    .bmc-courier-card__actions > .bmc-btn { flex: 1 1 calc(50% - 8px) !important; }
    .bmc-courier-card__actions > .bmc-courier-card__profile { flex-basis: 100%; }
}
@media (max-width: 359.98px) {
    .bmc-courier-card__actions > .bmc-btn { flex-basis: 100% !important; }
}

/* ---------- Order rows (lists) ---------- */
.bmc-order-row { position: relative; display: flex; align-items: center; gap: 16px; padding: 14px 16px; }
.bmc-order-row__img { width: 76px; height: 76px; border-radius: 14px; object-fit: cover; background: var(--bmc-bg); flex: 0 0 auto; }
.bmc-order-row__main { flex: 1 1 auto; min-width: 0; }
.bmc-order-row__title a { color: var(--bmc-ink); text-decoration: none; }
.bmc-order-row__title a:hover { color: var(--bmc-primary); }
.bmc-order-row__side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: 0 0 auto; }
.bmc-order-row__total { font-size: 17px; color: var(--bmc-ink); }
.bmc-stretched::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
@media (max-width: 575.98px) {
    .bmc-order-row { flex-wrap: wrap; align-items: flex-start; }
    .bmc-order-row__img { width: 60px; height: 60px; }
    .bmc-order-row__main { flex-basis: calc(100% - 80px); }
    .bmc-order-row__side { flex-direction: row; width: 100%; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px solid var(--bmc-line-2); }
}

.bmc-sticky-cta { display: none; }
@media (max-width: 767.98px) {
    .bmc-sticky-cta {
        position: fixed; z-index: 1030; inset-inline: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--bmc-line);
        box-shadow: 0 -8px 24px rgba(20, 16, 44, .08);
        transition: transform .25s var(--bmc-ease), visibility .25s;
    }
    .bmc-sticky-cta.is-tucked { transform: translateY(110%); visibility: hidden; }
    body:has(.bmc-sticky-cta) { padding-bottom: 76px; }
    body:has(.bmc-sticky-cta) .bmc-scroll-top { bottom: 92px; }
}

/* ---------- Toasts ---------- */
.bmc-toasts { position: fixed; z-index: 10100; inset-inline-end: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 10px; max-width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.bmc-toast {
    pointer-events: auto; display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--bmc-ink);
    color: #fff; box-shadow: var(--bmc-shadow-lg); font-size: 14px; line-height: 1.6; animation: bmc-toast-in .25s var(--bmc-ease);
}
.bmc-toast i { font-size: 18px; margin-top: 1px; }
.bmc-toast--success i { color: #5ee29d; }
.bmc-toast--error i { color: #ff8a8e; }
.bmc-toast.is-leaving { opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; }
@keyframes bmc-toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 575.98px) { .bmc-toasts { inset-inline: 16px; max-width: none; } }

/* ---------- Pagination (Laravel default markup) ---------- */
.bmc-pagination { margin-top: 24px; display: flex; justify-content: center; }
.bmc-pagination nav > div:first-child { display: none; }
.bmc-pagination .pagination { display: flex; list-style: none; padding: 0; gap: 6px; flex-wrap: wrap; margin: 0; }
.bmc-pagination nav p { display: none; }
.bmc-pagination .page-link { display: block; padding: 7px 12px; background: #fff; text-decoration: none; line-height: 1.4; }
.bmc-pagination .page-item.disabled .page-link { opacity: .5; pointer-events: none; }
.bmc-pagination a.page-link:hover { border-color: var(--bmc-primary-100); color: var(--bmc-primary); }
.bmc-pagination .page-link { border-radius: 10px !important; border: 1px solid var(--bmc-line); color: var(--bmc-ink-2); min-width: 40px; text-align: center; font-weight: 700; }
.bmc-pagination .page-item.active .page-link { background: var(--bmc-primary); border-color: var(--bmc-primary); color: #fff; }

/* ==========================================================================
   Site header
   ========================================================================== */
.bmc-header { position: sticky; top: 0; z-index: 1030; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--bmc-line); font-family: var(--bmc-font); }
.bmc-header__bar { display: flex; align-items: center; gap: 16px; height: var(--bmc-header-h); }
.bmc-brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.bmc-brand img { height: 44px; width: auto; display: block; }
.bmc-header__search { flex: 1 1 auto; max-width: 560px; position: relative; }
.bmc-header__search input {
    width: 100%; height: 44px; border-radius: var(--bmc-radius-pill); border: 1px solid var(--bmc-line); background: var(--bmc-bg);
    padding-inline: 46px 16px; font-family: inherit; font-size: 14.5px; color: var(--bmc-ink); transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.bmc-header__search input:focus { outline: none; background: #fff; border-color: var(--bmc-primary); box-shadow: var(--bmc-ring); }
.bmc-header__search button {
    position: absolute; inset-inline-start: 4px; top: 4px; width: 36px; height: 36px; border-radius: 50%; border: 0;
    background: transparent; color: var(--bmc-muted); display: grid; place-items: center; cursor: pointer; font-size: 17px;
}
.bmc-header__search button:hover { color: var(--bmc-primary); background: var(--bmc-primary-50); }
.bmc-header__actions { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.bmc-iconbtn {
    position: relative; width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; color: var(--bmc-ink-2);
    display: inline-grid; place-items: center; font-size: 20px; cursor: pointer; text-decoration: none; transition: background-color .15s, color .15s;
}
.bmc-iconbtn:hover, .bmc-iconbtn[aria-expanded="true"] { background: var(--bmc-primary-50); color: var(--bmc-primary); }
.bmc-iconbtn__badge {
    position: absolute; top: 3px; inset-inline-end: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px;
    background: var(--bmc-danger); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; line-height: 1;
}
.bmc-header__lang { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: var(--bmc-radius-pill); color: var(--bmc-ink-2); font-weight: 700; font-size: 14px; text-decoration: none; }
.bmc-header__lang:hover { background: var(--bmc-line-2); color: var(--bmc-ink); }
.bmc-header__cta { margin-inline-start: 6px; }
.bmc-account-btn { display: inline-flex; align-items: center; gap: 8px; padding: 3px; padding-inline-end: 10px; border-radius: var(--bmc-radius-pill); border: 1px solid var(--bmc-line); background: #fff; cursor: pointer; font-family: inherit; color: var(--bmc-ink); }
.bmc-account-btn:hover, .bmc-account-btn[aria-expanded="true"] { border-color: var(--bmc-primary-100); background: var(--bmc-primary-50); }
.bmc-account-btn .bmc-avatar { width: 34px; height: 34px; font-size: 14px; }
.bmc-account-btn i { font-size: 12px; color: var(--bmc-muted); }

.bmc-catbar { border-top: 1px solid var(--bmc-line-2); }
.bmc-catbar__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 6px 0; overflow-x: auto; scrollbar-width: none; }
.bmc-catbar__list::-webkit-scrollbar { display: none; }
.bmc-catbar__link {
    display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: var(--bmc-radius-pill); white-space: nowrap;
    color: var(--bmc-ink-2); font-weight: 600; font-size: 14px; text-decoration: none; transition: background-color .15s, color .15s;
}
.bmc-catbar__link:hover, .bmc-catbar__link.is-active { background: var(--bmc-primary-50); color: var(--bmc-primary); text-decoration: none; }
.bmc-catbar__link--highlight { color: var(--bmc-primary); }

/* Dropdown panels */
.bmc-dropdown { position: relative; }
.bmc-dropdown__panel {
    position: absolute; top: calc(100% + 10px); inset-inline-end: 0; z-index: 1040; width: 300px; background: #fff;
    border: 1px solid var(--bmc-line); border-radius: 16px; box-shadow: var(--bmc-shadow-lg); display: none; overflow: hidden;
}
.bmc-dropdown.is-open .bmc-dropdown__panel { display: block; animation: bmc-pop .15s var(--bmc-ease); }
.bmc-dropdown__panel--wide { width: 360px; }
.bmc-dropdown__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--bmc-line-2); }
.bmc-dropdown__user { display: flex; align-items: center; gap: 12px; padding: 16px; border-bottom: 1px solid var(--bmc-line-2); text-decoration: none; color: var(--bmc-ink); }
.bmc-dropdown__user:hover { background: var(--bmc-bg); color: var(--bmc-ink); }
.bmc-dropdown__user strong { display: block; font-size: 15px; }
.bmc-dropdown__user small { color: var(--bmc-primary); font-weight: 600; }
.bmc-dropdown__group { padding: 6px; border-bottom: 1px solid var(--bmc-line-2); }
.bmc-dropdown__group:last-child { border-bottom: 0; }
.bmc-dropdown__label { padding: 8px 10px 4px; font-size: 11.5px; font-weight: 800; letter-spacing: .3px; color: var(--bmc-faint); text-transform: uppercase; }
.bmc-menu-item {
    display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border-radius: 10px; border: 0; background: transparent;
    color: var(--bmc-ink-2); font-family: inherit; font-size: 14.5px; font-weight: 600; text-decoration: none; text-align: start; cursor: pointer;
}
.bmc-menu-item:hover { background: var(--bmc-primary-50); color: var(--bmc-primary-700); text-decoration: none; }
.bmc-menu-item i { width: 22px; text-align: center; font-size: 18px; color: var(--bmc-muted); }
.bmc-menu-item:hover i { color: var(--bmc-primary); }
.bmc-menu-item--danger, .bmc-menu-item--danger i { color: var(--bmc-danger); }
.bmc-menu-item--danger:hover { background: var(--bmc-danger-bg); color: var(--bmc-danger); }
.bmc-menu-item__end { margin-inline-start: auto; }

.bmc-notif-list { max-height: 380px; overflow-y: auto; margin: 0; padding: 6px; list-style: none; }
.bmc-notif { display: flex; gap: 12px; padding: 10px; border-radius: 12px; text-decoration: none; color: var(--bmc-ink-2); position: relative; }
.bmc-notif:hover { background: var(--bmc-bg); color: var(--bmc-ink); text-decoration: none; }
.bmc-notif__icon { width: 36px; height: 36px; border-radius: 10px; flex: 0 0 auto; display: grid; place-items: center; background: var(--bmc-primary-50); color: var(--bmc-primary); font-size: 16px; }
.bmc-notif__text { font-size: 13.5px; line-height: 1.6; margin: 0; }
.bmc-notif__time { font-size: 12px; color: var(--bmc-faint); }
.bmc-notif.is-unread .bmc-notif__text { font-weight: 700; color: var(--bmc-ink); }
.bmc-notif.is-unread::after { content: ''; position: absolute; inset-inline-end: 10px; top: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--bmc-primary); }

/* Mobile drawer contents */
.bmc-drawer-user { display: flex; align-items: center; gap: 12px; padding: 18px 16px; text-decoration: none; color: var(--bmc-ink); background: linear-gradient(135deg, var(--bmc-primary-50), #fff); border-bottom: 1px solid var(--bmc-line-2); }
.bmc-drawer-user strong { display: block; font-size: 15.5px; }
.bmc-drawer-user small { color: var(--bmc-muted); font-size: 13px; }
.bmc-drawer-nav { padding: 8px; overflow-y: auto; flex: 1 1 auto; }

.bmc-alert-bar { background: var(--bmc-warning-bg); border-bottom: 1px solid #fbe0b0; color: var(--bmc-ink-2); font-size: 14px; }
.bmc-alert-bar .bmc-container { display: flex; align-items: center; justify-content: center; gap: 10px; padding-block: 8px; flex-wrap: wrap; text-align: center; }
.bmc-alert-bar a { color: var(--bmc-warning); font-weight: 800; }

@media (max-width: 991.98px) {
    :root { --bmc-header-h: 58px; }
    .bmc-header__bar { gap: 8px; }
    .bmc-brand img { height: 36px; }
    .bmc-header__search, .bmc-header__lang, .bmc-header__cta, .bmc-account-btn, .bmc-hide-mobile { display: none !important; }
    .bmc-header__mobile-search { display: block; padding-bottom: 10px; }
    .bmc-header__mobile-search .bmc-header__search { display: block !important; max-width: none; }
    .bmc-dropdown__panel { position: fixed; top: calc(var(--bmc-header-h) + 6px); inset-inline: 12px; width: auto; }
}
@media (min-width: 992px) {
    .bmc-header__mobile-search, .bmc-show-mobile { display: none !important; }
}

/* ==========================================================================
   Site footer
   ========================================================================== */
.bmc-footer { background: #15122b; color: #b9b6cc; font-family: var(--bmc-font); margin-top: 0; }
.bmc-footer a { color: #d9d6ea; text-decoration: none; }
.bmc-footer a:hover { color: #fff; }
.bmc-footer__top { padding-block: 48px 32px; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.bmc-footer__brand img { max-width: 160px; margin-bottom: 14px; }
.bmc-footer__brand p { font-size: 14px; line-height: 1.8; margin: 0; }
.bmc-footer h3 { color: #fff; font-size: 15px; font-weight: 800; margin: 0 0 14px; }
.bmc-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.bmc-footer__courier {
    background: linear-gradient(135deg, rgba(88, 48, 224, .35), rgba(88, 48, 224, .12)); border: 1px solid rgba(160, 136, 255, .3);
    border-radius: 16px; padding: 18px;
}
.bmc-footer__courier p { font-size: 13.5px; line-height: 1.7; margin: 0 0 12px; }
.bmc-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding-block: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.bmc-footer__social { display: flex; gap: 8px; }
.bmc-footer__social a { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .06); }
.bmc-footer__social a:hover { background: var(--bmc-primary); }
@media (max-width: 991.98px) { .bmc-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .bmc-footer__top { grid-template-columns: minmax(0, 1fr); } .bmc-footer__bottom { justify-content: center; text-align: center; } }

.bmc-scroll-top {
    position: fixed; inset-inline-end: 16px; bottom: 16px; z-index: 1020; width: 44px; height: 44px; border-radius: 50%;
    background: var(--bmc-primary); color: #fff; display: none; place-items: center; box-shadow: var(--bmc-shadow); font-size: 18px; border: 0; cursor: pointer;
}
.bmc-scroll-top.is-visible { display: grid; }
.bmc-scroll-top:hover { background: var(--bmc-primary-600); color: #fff; }
body.has-sticky-cta .bmc-scroll-top { bottom: 92px; }
