/* ========================================================
   Badminton Manager – global stylesheet
   CSS variables → layout → components → utilities → media
   ======================================================== */

/* ── 0. Variables ────────────────────────────────────────── */
:root {
    /* Brand */
    --bm-primary:        #0f766e;
    --bm-primary-dark:   #0c5f58;
    --bm-primary-light:  #e6f7f5;
    --bm-accent:         #2563eb;

    /* Neutrals */
    --bm-bg:             #f1f5f9;
    --bm-surface:        #ffffff;
    --bm-border:         #e2e8f0;
    --bm-border-strong:  #cbd5e1;

    /* Text */
    --bm-text:           #0f172a;
    --bm-text-muted:     #64748b;
    --bm-text-light:     #94a3b8;

    /* Shadows */
    --bm-shadow-xs: 0 1px 2px rgba(15, 23, 42, .05);
    --bm-shadow-sm: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
    --bm-shadow:    0 4px 6px -1px rgba(15, 23, 42, .08), 0 2px 4px -2px rgba(15, 23, 42, .05);

    /* Layout */
    --bm-sidebar-width:  256px;
    --bm-topbar-height:  64px;
    --bm-radius:         10px;
    --bm-radius-sm:       6px;
    --bm-radius-xs:       4px;

    /* Transitions */
    --bm-ease: 150ms ease;
}

/* ── 1. Base reset ───────────────────────────────────────── */
html {
    scrollbar-gutter: stable;
}

html, body { min-height: 100%; }

body {
    background: var(--bm-bg);
    color: var(--bm-text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    font-size: .9375rem;
}

a { text-decoration: none; }

/* ── 2. Auth page ────────────────────────────────────────── */
.bm-auth {
    position: relative;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px 16px;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 15% 20%, rgba(15, 118, 110, .16) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 80%, rgba(37, 99, 235, .1) 0%, transparent 50%),
        linear-gradient(180deg, #eef2f7 0%, var(--bm-bg) 100%);
    animation: bm-auth-bg-shift 18s ease-in-out infinite alternate;
}

.bm-auth-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.bm-auth-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(48px);
    opacity: .55;
    will-change: transform;
}

.bm-auth-orb--1 {
    top: 8%;
    left: -4%;
    width: 220px;
    height: 220px;
    background: rgba(15, 118, 110, .28);
    animation: bm-auth-float 14s ease-in-out infinite;
}

.bm-auth-orb--2 {
    right: -6%;
    bottom: 12%;
    width: 260px;
    height: 260px;
    background: rgba(37, 99, 235, .18);
    animation: bm-auth-float 18s ease-in-out infinite reverse;
    animation-delay: -4s;
}

.bm-auth-orb--3 {
    top: 42%;
    left: 38%;
    width: 140px;
    height: 140px;
    background: rgba(20, 184, 166, .2);
    animation: bm-auth-float 11s ease-in-out infinite;
    animation-delay: -2s;
}

.bm-auth-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(15, 118, 110, .35);
    box-shadow: 0 0 12px rgba(15, 118, 110, .25);
}

.bm-auth-particle--1 { top: 18%; left: 12%; animation: bm-auth-particle 9s ease-in-out infinite; }
.bm-auth-particle--2 { top: 72%; left: 8%;  animation: bm-auth-particle 11s ease-in-out infinite -2s; width: 4px; height: 4px; }
.bm-auth-particle--3 { top: 28%; right: 14%; animation: bm-auth-particle 10s ease-in-out infinite -4s; background: rgba(37, 99, 235, .3); }
.bm-auth-particle--4 { bottom: 22%; right: 20%; animation: bm-auth-particle 13s ease-in-out infinite -1s; width: 5px; height: 5px; }
.bm-auth-particle--5 { top: 55%; left: 22%; animation: bm-auth-particle 8s ease-in-out infinite -3s; width: 3px; height: 3px; opacity: .7; }
.bm-auth-particle--6 { top: 8%; right: 28%; animation: bm-auth-particle 12s ease-in-out infinite -5s; width: 4px; height: 4px; background: rgba(20, 184, 166, .4); }

.bm-auth-shell {
    position: relative;
    z-index: 1;
    width: min(960px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
    animation: bm-auth-shell-in 0.7s cubic-bezier(.22, 1, .36, 1) both;
    transition: box-shadow 0.4s ease;
}

.bm-auth-shell::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: calc(var(--bm-radius) + 7px);
    padding: 1px;
    background: linear-gradient(
        120deg,
        rgba(15, 118, 110, .35),
        rgba(37, 99, 235, .15),
        rgba(20, 184, 166, .35)
    );
    background-size: 200% 200%;
    animation: bm-auth-gradient-flow 8s ease infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.bm-auth-shell:hover::before {
    opacity: 1;
}

.bm-auth-brand {
    position: relative;
    overflow: hidden;
    padding: 32px 28px;
    border-radius: calc(var(--bm-radius) + 4px);
    color: #fff;
    background:
        linear-gradient(145deg, #0c5f58 0%, var(--bm-primary) 48%, #14b8a6 100%);
    background-size: 200% 200%;
    box-shadow: var(--bm-shadow);
    animation:
        bm-auth-brand-in 0.75s cubic-bezier(.22, 1, .36, 1) 0.08s both,
        bm-auth-gradient-flow 12s ease infinite;
}

.bm-auth-brand::before {
    content: '';
    position: absolute;
    inset: -40% auto auto -20%;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    pointer-events: none;
    animation: bm-auth-float 16s ease-in-out infinite;
}

.bm-auth-brand::after {
    content: '';
    position: absolute;
    right: -60px;
    bottom: -80px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    pointer-events: none;
    animation: bm-auth-float 20s ease-in-out infinite reverse;
}

.bm-auth-brand__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100%;
}

.bm-auth-brand__mesh {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, transparent 85%);
    pointer-events: none;
    animation: bm-auth-mesh-drift 24s linear infinite;
}

.bm-auth-accent {
    position: absolute;
    color: rgba(255, 255, 255, .12);
    pointer-events: none;
    z-index: 0;
}

.bm-auth-accent--1 {
    top: 14%;
    right: 12%;
    font-size: 3.5rem;
    animation: bm-auth-accent-float 7s ease-in-out infinite;
}

.bm-auth-accent--2 {
    bottom: 18%;
    right: 22%;
    font-size: 1.4rem;
    animation: bm-auth-accent-float 9s ease-in-out infinite reverse;
    animation-delay: -2s;
}

.bm-auth-brand__logo-wrap {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .14);
    backdrop-filter: blur(6px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2);
    animation: bm-auth-fade-up 0.6s cubic-bezier(.22, 1, .36, 1) 0.2s both,
               bm-auth-logo-float 4s ease-in-out 1s infinite;
}

.bm-auth-brand__logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(.22, 1, .36, 1);
}

.bm-auth-brand__logo-wrap:hover .bm-auth-brand__logo {
    transform: scale(1.06) rotate(-3deg);
}

.bm-auth-brand__eyebrow {
    margin: 0 0 6px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .72);
    animation: bm-auth-fade-up 0.55s cubic-bezier(.22, 1, .36, 1) 0.28s both;
}

.bm-auth-brand__title {
    margin: 0 0 10px;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.15;
    animation: bm-auth-fade-up 0.55s cubic-bezier(.22, 1, .36, 1) 0.36s both;
}

.bm-auth-brand__desc {
    margin: 0;
    max-width: 34ch;
    color: rgba(255, 255, 255, .82);
    font-size: .9rem;
    line-height: 1.55;
    animation: bm-auth-fade-up 0.55s cubic-bezier(.22, 1, .36, 1) 0.44s both;
}

.bm-auth-brand__features {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.bm-auth-brand__features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .84rem;
    color: rgba(255, 255, 255, .9);
    opacity: 0;
    animation: bm-auth-fade-up 0.5s cubic-bezier(.22, 1, .36, 1) forwards;
}

.bm-auth-brand__features li:nth-child(1) { animation-delay: 0.52s; }
.bm-auth-brand__features li:nth-child(2) { animation-delay: 0.62s; }
.bm-auth-brand__features li:nth-child(3) { animation-delay: 0.72s; }

.bm-auth-brand__features .bi {
    color: #bbf7d0;
    font-size: .95rem;
    transition: transform 0.25s ease;
}

.bm-auth-brand__features li:hover .bi {
    transform: scale(1.15);
}

.bm-auth-hotline {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    padding: 14px 16px;
    border-radius: 14px;
    color: #fff;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(8px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
    animation: bm-auth-fade-up 0.55s cubic-bezier(.22, 1, .36, 1) 0.82s both;
    overflow: hidden;
}

.bm-auth-hotline:hover {
    color: #fff;
    background: rgba(255, 255, 255, .16);
    border-color: rgba(255, 255, 255, .28);
    transform: translateY(-2px);
}

.bm-auth-hotline__pulse {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, .28);
    animation: bm-auth-hotline-pulse 2.4s ease-out infinite;
    pointer-events: none;
}

.bm-auth-hotline__icon {
    position: relative;
    z-index: 1;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    font-size: 1.05rem;
    animation: bm-auth-logo-float 3s ease-in-out infinite;
}

.bm-auth-hotline__text {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.bm-auth-hotline__text small {
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .72);
}

.bm-auth-hotline__text strong {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: .04em;
}

.bm-auth-hotline__arrow {
    position: relative;
    z-index: 1;
    margin-left: auto;
    font-size: 1.5rem;
    opacity: .65;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.bm-auth-hotline:hover .bm-auth-hotline__arrow {
    transform: translateX(3px);
    opacity: 1;
}

.bm-auth-card {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: calc(var(--bm-radius) + 4px);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(12px);
    box-shadow: var(--bm-shadow);
    animation: bm-auth-card-in 0.75s cubic-bezier(.22, 1, .36, 1) 0.15s both;
}

.bm-auth-card__header {
    padding: 28px 28px 0;
    text-align: center;
    animation: bm-auth-fade-up 0.5s cubic-bezier(.22, 1, .36, 1) 0.35s both;
}

.bm-auth-card__title {
    margin: 0 0 4px;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--bm-text);
}

.bm-auth-card__subtitle {
    margin: 0;
    color: var(--bm-text-muted);
    font-size: .875rem;
}

.bm-auth-card__body {
    padding: 24px 28px 28px;
}

.bm-auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid #fecaca;
    border-radius: var(--bm-radius-sm);
    background: #fef2f2;
    color: #991b1b;
    font-size: .84rem;
    line-height: 1.45;
    animation: bm-auth-shake 0.55s cubic-bezier(.36, .07, .19, .97) both;
}

.bm-auth-alert .bi {
    flex-shrink: 0;
    margin-top: 1px;
    font-size: 1rem;
}

.bm-auth-field {
    margin-bottom: 16px;
    opacity: 0;
    animation: bm-auth-fade-up 0.5s cubic-bezier(.22, 1, .36, 1) forwards;
}

form .bm-auth-field:nth-of-type(1) { animation-delay: 0.42s; }
form .bm-auth-field:nth-of-type(2) { animation-delay: 0.5s; }

.bm-auth-field label {
    display: block;
    margin-bottom: 6px;
    font-size: .8125rem;
    font-weight: 600;
    color: var(--bm-text);
}

.bm-auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.bm-auth-input-icon {
    position: absolute;
    left: 14px;
    color: var(--bm-text-light);
    font-size: 1rem;
    pointer-events: none;
    z-index: 1;
    transition: color 0.25s ease, transform 0.25s ease;
}

.bm-auth-input-wrap .form-control {
    padding-left: 42px;
    padding-right: 42px;
    min-height: 46px;
    border-color: var(--bm-border-strong);
    border-radius: var(--bm-radius-sm);
    background: #fff;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.bm-auth-input-wrap .form-control:focus {
    border-color: var(--bm-primary);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
    transform: translateY(-1px);
}

.bm-auth-input-wrap:focus-within .bm-auth-input-icon {
    color: var(--bm-primary);
    transform: scale(1.08);
}

.bm-auth-toggle-password {
    position: absolute;
    right: 4px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: var(--bm-radius-xs);
    background: transparent;
    color: var(--bm-text-muted);
    transition: color var(--bm-ease), background var(--bm-ease), transform 0.2s ease;
}

.bm-auth-toggle-password:hover {
    color: var(--bm-primary);
    background: var(--bm-primary-light);
    transform: scale(1.05);
}

.bm-auth-toggle-password:active {
    transform: scale(0.95);
}

.bm-auth-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 20px;
    opacity: 0;
    animation: bm-auth-fade-up 0.5s cubic-bezier(.22, 1, .36, 1) 0.58s forwards;
}

.bm-auth-options .form-check {
    margin: 0;
}

.bm-auth-options .form-check-label {
    font-size: .8125rem;
    color: var(--bm-text-muted);
    user-select: none;
}

.bm-auth-submit {
    position: relative;
    min-height: 48px;
    border: 0;
    border-radius: var(--bm-radius-sm);
    font-weight: 700;
    letter-spacing: .01em;
    background: linear-gradient(135deg, var(--bm-primary) 0%, #0d9488 100%);
    background-size: 200% 100%;
    box-shadow: 0 4px 14px rgba(15, 118, 110, .28);
    overflow: hidden;
    opacity: 0;
    animation: bm-auth-fade-up 0.5s cubic-bezier(.22, 1, .36, 1) 0.66s forwards;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease, background-position 0.4s ease;
}

.bm-auth-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 38%,
        rgba(255, 255, 255, .22) 50%,
        transparent 62%
    );
    transform: translateX(-120%);
    transition: transform 0.55s ease;
}

.bm-auth-submit:hover {
    filter: brightness(1.04);
    box-shadow: 0 6px 20px rgba(15, 118, 110, .36);
    transform: translateY(-2px);
    background-position: 100% 0;
}

.bm-auth-submit:hover::before {
    transform: translateX(120%);
}

.bm-auth-submit:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(15, 118, 110, .25);
}

.bm-auth-submit.is-loading {
    pointer-events: none;
    opacity: 1 !important;
}

.bm-auth-submit.is-loading > * {
    visibility: hidden;
}

.bm-auth-submit.is-loading::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    border: 2.5px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: bm-auth-spin 0.65s linear infinite;
}

.bm-auth-footer {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--bm-border);
    text-align: center;
    color: var(--bm-text-light);
    font-size: .75rem;
    opacity: 0;
    animation: bm-auth-fade-up 0.45s cubic-bezier(.22, 1, .36, 1) 0.74s forwards;
}

.bm-auth-footer-hotline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--bm-primary-dark);
    background: var(--bm-primary-light);
    font-size: .78rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.bm-auth-footer-hotline:hover {
    color: var(--bm-primary-dark);
    background: #d9f3ef;
    box-shadow: 0 4px 14px rgba(15, 118, 110, .15);
    transform: translateY(-1px);
}

.bm-auth-footer-hotline strong {
    font-weight: 800;
    letter-spacing: .03em;
}

.bm-auth-hotline-float {
    position: fixed;
    right: 16px;
    bottom: 20px;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px 12px 14px;
    border-radius: 999px;
    color: #fff;
    font-weight: 700;
    font-size: .875rem;
    letter-spacing: .02em;
    background: linear-gradient(135deg, var(--bm-primary) 0%, #0d9488 100%);
    box-shadow: 0 8px 24px rgba(15, 118, 110, .35);
    animation: bm-auth-hotline-float-in 0.6s cubic-bezier(.22, 1, .36, 1) 1s both,
               bm-auth-logo-float 4s ease-in-out 1.6s infinite;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.bm-auth-hotline-float:hover {
    color: #fff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 28px rgba(15, 118, 110, .4);
}

.bm-auth-hotline-float__pulse {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    animation: bm-auth-hotline-pulse 2.4s ease-out infinite;
    pointer-events: none;
}

.bm-auth-hotline-float .bi {
    font-size: 1rem;
}

@keyframes bm-auth-bg-shift {
    0% { background-position: 0% 0%, 100% 100%, 0% 0%; }
    100% { background-position: 100% 50%, 0% 50%, 0% 0%; }
}

@keyframes bm-auth-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(12px, -18px) scale(1.04); }
    66% { transform: translate(-10px, 10px) scale(0.96); }
}

@keyframes bm-auth-shell-in {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes bm-auth-brand-in {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bm-auth-card-in {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bm-auth-fade-up {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bm-auth-gradient-flow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes bm-auth-logo-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes bm-auth-shake {
    0%, 100% { transform: translateX(0); }
    15% { transform: translateX(-6px); }
    30% { transform: translateX(5px); }
    45% { transform: translateX(-4px); }
    60% { transform: translateX(3px); }
    75% { transform: translateX(-2px); }
}

@keyframes bm-auth-spin {
    to { transform: rotate(360deg); }
}

@keyframes bm-auth-particle {
    0%, 100% { transform: translate(0, 0); opacity: .55; }
    50% { transform: translate(8px, -16px); opacity: 1; }
}

@keyframes bm-auth-mesh-drift {
    from { background-position: 0 0, 0 0; }
    to { background-position: 26px 26px, 26px 26px; }
}

@keyframes bm-auth-accent-float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: .12; }
    50% { transform: translate(-6px, 8px) rotate(8deg); opacity: .2; }
}

@keyframes bm-auth-hotline-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .28); }
    70% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

@keyframes bm-auth-hotline-float-in {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.92);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .bm-auth,
    .bm-auth-shell,
    .bm-auth-brand,
    .bm-auth-brand::before,
    .bm-auth-brand::after,
    .bm-auth-brand__logo-wrap,
    .bm-auth-brand__eyebrow,
    .bm-auth-brand__title,
    .bm-auth-brand__desc,
    .bm-auth-brand__features li,
    .bm-auth-card,
    .bm-auth-card__header,
    .bm-auth-field,
    .bm-auth-options,
    .bm-auth-submit,
    .bm-auth-footer,
    .bm-auth-alert,
    .bm-auth-orb,
    .bm-auth-particle,
    .bm-auth-accent,
    .bm-auth-brand__mesh,
    .bm-auth-hotline,
    .bm-auth-hotline-float,
    .bm-auth-shell::before {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .bm-auth-input-wrap .form-control:focus {
        transform: none;
    }
}

@media (min-width: 768px) {
    .bm-auth {
        padding: 32px 24px;
    }

    .bm-auth-shell {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
        gap: 0;
        border-radius: calc(var(--bm-radius) + 6px);
        overflow: hidden;
        box-shadow: var(--bm-shadow);
    }

    .bm-auth-brand {
        border-radius: 0;
        min-height: 520px;
        padding: 40px 36px;
    }

    .bm-auth-hotline {
        margin-top: auto;
    }

    .bm-auth-card {
        border: none;
        border-radius: 0;
        box-shadow: none;
        backdrop-filter: none;
        background: #fff;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .bm-auth-card__header {
        text-align: left;
        padding: 36px 36px 0;
    }

    .bm-auth-card__body {
        padding: 24px 36px 36px;
    }
}

.bm-auth-card { width: min(420px, 100%); }

@media (max-width: 767.98px) {
    .bm-auth {
        padding-bottom: 88px;
    }

    .bm-auth-brand {
        animation-name: bm-auth-fade-up, bm-auth-gradient-flow;
    }

    .bm-auth-card {
        animation-name: bm-auth-fade-up;
    }

    .bm-auth-brand__features {
        display: none;
    }

    .bm-auth-brand {
        padding: 24px 22px;
        text-align: center;
    }

    .bm-auth-brand__logo-wrap {
        margin-left: auto;
        margin-right: auto;
    }

    .bm-auth-brand__desc {
        max-width: none;
    }
}

@media (min-width: 768px) {
    .bm-auth-shell .bm-auth-card {
        width: 100%;
    }
}

/* ── 3. App shell ────────────────────────────────────────── */
.bm-shell { min-height: 100vh; }

/* ── 4. Sidebar ──────────────────────────────────────────── */
.bm-sidebar {
    width: var(--bm-sidebar-width);
    max-width: min(var(--bm-sidebar-width), 88vw);
    background: var(--bm-primary-dark);
    color: #fff;
}

.bm-sidebar.offcanvas {
    border-right: 0;
    box-shadow: 4px 0 24px rgba(15, 23, 42, .18);
}

.bm-sidebar .offcanvas-body { overflow-y: auto; }

/* Brand / logo row */
.bm-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: .9375rem;
    font-weight: 700;
    letter-spacing: -.01em;
}

.bm-brand:hover { color: rgba(255, 255, 255, .9); }

.bm-brand-mark {
    width: 34px;
    height: 34px;
    border-radius: var(--bm-radius-sm);
    display: inline-grid;
    place-items: center;
    background: rgba(255, 255, 255, .18);
    font-size: 1rem;
    flex-shrink: 0;
}

/* Nav section label */
.bm-nav-label {
    padding: 14px 12px 5px;
    color: rgba(255, 255, 255, .38);
    font-size: .67rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

/* Nav links */
.bm-sidebar .nav-link {
    position: relative;
    color: rgba(255, 255, 255, .7);
    border-radius: var(--bm-radius-sm);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px 9px 15px;
    font-size: .875rem;
    transition: color var(--bm-ease), background var(--bm-ease);
    overflow: hidden;
}

/* Active left-bar indicator */
.bm-sidebar .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: rgba(255, 255, 255, .85);
    border-radius: 0 3px 3px 0;
    transition: height var(--bm-ease);
}

.bm-sidebar .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, .1);
}

.bm-sidebar .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, .16);
    font-weight: 600;
}

.bm-sidebar .nav-link.active::before { height: 55%; }

/* Sidebar footer */
.bm-sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.bm-sidebar-hotline {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    color: rgba(255, 255, 255, .88);
    font-size: .8125rem;
    font-weight: 600;
    text-decoration: none;
    background: rgba(255, 255, 255, .08);
    transition: background 0.2s ease, color 0.2s ease;
}

.bm-sidebar-hotline:hover {
    color: #fff;
    background: rgba(255, 255, 255, .14);
}

.bm-sidebar-hotline .bi {
    font-size: .95rem;
    color: #5eead4;
}

/* User avatar */
.bm-user-avatar {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    font-size: .85rem;
}

.bm-user-avatar-light {
    color: var(--bm-primary-dark);
    background: var(--bm-primary-light);
}

/* ── 5. Main area ────────────────────────────────────────── */
.bm-main { min-height: 100vh; }

.min-w-0 { min-width: 0; }

/* ── 6. Top bar ──────────────────────────────────────────── */
.bm-topbar {
    height: var(--bm-topbar-height);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 24px;
    background: var(--bm-surface);
    border-bottom: 1px solid var(--bm-border);
    box-shadow: var(--bm-shadow-xs);
    position: sticky;
    top: 0;
    z-index: 100;
}

.bm-topbar-title {
    font-weight: 700;
    font-size: .9375rem;
    line-height: 1.15;
}

.bm-topbar-subtitle,
.text-muted-2 { color: var(--bm-text-muted); }

/* Breadcrumb */
.bm-breadcrumb {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    margin-top: 2px;
    color: var(--bm-text-muted);
    font-size: .75rem;
    white-space: nowrap;
}

.bm-breadcrumb a {
    color: var(--bm-text-muted);
    transition: color var(--bm-ease);
}

.bm-breadcrumb a:hover { color: var(--bm-primary); }

.bm-breadcrumb .bi { font-size: .55rem; }

/* Icon & account buttons */
.bm-icon-button,
.bm-menu-button {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: var(--bm-radius-sm);
    flex-shrink: 0;
}

.bm-menu-button {
    display: inline-grid;
    place-items: center;
    font-size: 1.25rem;
    color: var(--bm-text);
    border-color: var(--bm-border);
    transition: border-color var(--bm-ease), background var(--bm-ease), color var(--bm-ease);
}

.bm-menu-button:hover,
.bm-menu-button:focus-visible {
    color: var(--bm-primary);
    border-color: #a7d8d3;
    background: var(--bm-primary-light);
}

.bm-account-button {
    max-width: 220px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    border-radius: var(--bm-radius-sm);
}

.bm-account-button::after { margin-left: 2px; }

/* Topbar app shell — hamburger mọi kích cỡ */
.bm-topbar-logo img {
    height: 30px;
    border-radius: 6px;
    object-fit: contain;
}

@media (max-width: 991.98px) {
    .bm-topbar--app {
        height: 56px;
        padding: 0 12px 0 14px;
        gap: 10px;
    }

    .bm-topbar--app .bm-account-button {
        width: 38px;
        height: 38px;
        max-width: 38px;
        padding: 0;
        justify-content: center;
    }

    .bm-topbar--app .bm-account-button::after {
        display: none;
    }

    .bm-topbar--app .bm-account-button .bm-user-avatar-light {
        margin: 0;
    }
}

@media (min-width: 992px) {
    .bm-topbar--app {
        gap: 14px;
    }

    .bm-topbar-logo img {
        height: 34px;
    }
}

/* ── 7. Content area ─────────────────────────────────────── */
.bm-content { padding: 24px; }

/* ── 8. Page header ──────────────────────────────────────── */
.bm-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.bm-page-title {
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.2;
    margin: 0;
}

/* ── 9. Cards ────────────────────────────────────────────── */
.bm-card {
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    box-shadow: var(--bm-shadow-xs);
}

/* Metric / summary card */
.bm-metric { min-height: 104px; }

.bm-metric .metric-label {
    color: var(--bm-text-muted);
    font-size: .8rem;
    font-weight: 500;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.bm-metric .metric-value {
    font-size: 1.625rem;
    font-weight: 750;
    letter-spacing: -.02em;
    line-height: 1.1;
}

.bm-metric .metric-subtext {
    font-size: .75rem;
    line-height: 1.35;
    margin-top: 6px;
}

.bm-metric--tall { min-height: 118px; }

/* Session overview — unified Tổng quan panel */
.bm-overview-panel .label { color: var(--bm-text-muted); }

.bm-overview-scope-chip {
    font-weight: 600;
    background: var(--bm-primary-light, #eff6ff);
    color: var(--bm-primary, #2563eb);
    border: 1px solid rgba(37, 99, 235, .15);
}

.bm-overview-kpi .bm-metric { height: 100%; }

.bm-overview-section {
    margin-top: 1rem;
    padding-top: .75rem;
    border-top: 1px solid var(--bm-border, #e5e7eb);
}

.bm-overview-section__title {
    font-size: .8rem;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--bm-text-muted);
    margin: 0 0 .5rem;
}

.bm-overview-section__toggle {
    color: inherit;
}

.bm-overview-filter-hint {
    border-left: 3px solid #f59e0b;
}

@media (min-width: 1200px) {
    .bm-overview-kpi > [class*="col-xl"] {
        flex: 1 1 0;
        max-width: 20%;
    }
}

/* Session detail: KPI metrics — uses shared collapsible panel */
@media (min-width: 992px) {
    .bm-session-collapsible-panel.bm-session-metrics-panel {
        display: flex !important;
        flex-wrap: wrap;
    }
}

/* Session detail: collapsible panels — collapsed on mobile by default */
@media (max-width: 991.98px) {
    .bm-session-collapsible-panel:not(.bm-session-collapsible-panel--open) {
        display: none;
    }
}

@media (min-width: 992px) {
    .bm-session-collapsible-toggle {
        display: none !important;
    }

    .bm-session-collapsible-panel {
        display: block !important;
    }

    .bm-session-collapsible-panel.bm-session-metrics-panel {
        display: flex !important;
        flex-wrap: wrap;
    }
}

.bm-session-collapsible-toggle--ops {
    font-weight: 650;
}

.bm-session-collapsible-toggle--ops.bm-session-collapsible-toggle--open {
    background: var(--bm-primary-light, #eff6ff);
    border-color: var(--bm-primary, #2563eb);
    color: var(--bm-primary, #2563eb);
}

.bm-session-mobile-ops {
    position: sticky;
    top: 0;
    z-index: 1015;
    background: var(--bm-bg, #f8fafc);
    padding: .25rem 0 .5rem;
}

.bm-session-quick-nav {
    display: flex;
    gap: .4rem;
    overflow-x: auto;
    padding-bottom: .15rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.bm-session-quick-nav::-webkit-scrollbar {
    display: none;
}

.bm-session-quick-nav__chip {
    flex: 0 0 auto;
    border: 1px solid var(--bm-border);
    border-radius: 999px;
    background: var(--bm-surface, #fff);
    color: var(--bm-text-muted);
    font-size: .72rem;
    font-weight: 650;
    padding: .35rem .7rem;
    white-space: nowrap;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.bm-session-quick-nav__chip:hover {
    border-color: var(--bm-primary);
    color: var(--bm-primary);
}

.bm-session-quick-nav__chip:focus-visible {
    outline: 2px solid var(--bm-primary);
    outline-offset: 2px;
}

#sessionCourtOpsBtn.active {
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35);
}

/* Metric icon pill */
.bm-metric-icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: var(--bm-radius);
    font-size: 1.15rem;
    align-self: center;
}

.bm-metric-icon.text-primary { background: #eff6ff; }
.bm-metric-icon.text-success  { background: #f0fdf4; }
.bm-metric-icon.text-warning  { background: #fefce8; }
.bm-metric-icon.text-danger   { background: #fef2f2; }
.bm-metric-icon.text-info     { background: #f0f9ff; }

/* ── 10. Mobile bottom nav (khớp tab mobile app) ─────────── */
.bm-mobile-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1020;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-height: 62px;
    padding: 0 2px env(safe-area-inset-bottom);
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--bm-border);
    box-shadow: 0 -4px 20px rgba(15, 23, 42, .08);
}

.bm-mobile-nav-link {
    position: relative;
    min-width: 0;
    min-height: 62px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 8px 2px 6px;
    border: 0;
    color: var(--bm-text-muted);
    background: transparent;
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .01em;
    text-decoration: none;
    transition: color var(--bm-ease);
}

.bm-mobile-nav-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: 18%;
    right: 18%;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: var(--bm-primary);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.bm-mobile-nav-link .bi {
    font-size: 1.22rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.bm-mobile-nav-link span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bm-mobile-nav-link:hover {
    color: var(--bm-primary-dark);
}

.bm-mobile-nav-link.active {
    color: var(--bm-primary);
}

.bm-mobile-nav-link.active::before {
    transform: scaleX(1);
}

.bm-mobile-nav-link.active .bi {
    transform: scale(1.06);
}

/* ── 11. Tables ──────────────────────────────────────────── */
.table > :not(caption) > * > * { vertical-align: middle; }

.table thead th {
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--bm-text-muted);
}

/* ── 12. Action buttons ──────────────────────────────────── */
.bm-actions {
    display: inline-flex;
    gap: 5px;
    justify-content: flex-end;
    white-space: nowrap;
}

/* ── 13. Form grid ───────────────────────────────────────── */
.bm-form-grid { display: grid; gap: 16px; }

/* ── 14. Profit / status colours ────────────────────────── */
.profit-pos { color: #16a34a; font-weight: 600; }
.profit-neg { color: #dc2626; font-weight: 600; }

.player-row.checked { background: #f0fdf4; }

/* ── 15. Summary / detail card ───────────────────────────── */
.summary-card .label { color: var(--bm-text-muted); }

/* ── 16. Status badges ───────────────────────────────────── */
.badge-soft {
    color: var(--bm-text);
    background: var(--bm-border);
}

.badge-soft-success {
    color: #166534;
    background: #dcfce7;
}

.badge-soft-warning {
    color: #854d0e;
    background: #fef3c7;
}

.badge-soft-danger {
    color: #991b1b;
    background: #fee2e2;
}

/* ── 17. Companion (bạn được dẫn) ───────────────────────── */
.bm-companion-row {
    background: #fafbfc;
}

.bm-companion-row td {
    border-top: none !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
}

.bm-companion-name {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.bm-companion-arrow {
    color: var(--bm-text-light);
    font-size: .85rem;
    flex-shrink: 0;
}

/* ── 18. Empty state ─────────────────────────────────────── */
.bm-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: var(--bm-border);
    color: var(--bm-text-light);
    font-size: 1.5rem;
}

/* ── 18. Sidebar offcanvas (mọi kích cỡ — không cố định desktop) ── */
.bm-sidebar .offcanvas-header {
    min-height: var(--bm-topbar-height);
    padding-left: 16px;
    padding-right: 16px;
}

/* ── 19. Tablet ──────────────────────────────────────────── */
@media (max-width: 767.98px) {
    .bm-topbar { padding: 0 14px; }

    .bm-content {
        padding: 16px 14px calc(74px + env(safe-area-inset-bottom));
    }

    .bm-page-header { flex-direction: column; }
}

/* ── 20. Phone ───────────────────────────────────────────── */
@media (max-width: 575.98px) {
    .bm-topbar {
        height: 60px;
        gap: 8px;
    }

    .bm-account-button {
        width: 38px;
        height: 38px;
        padding: 0;
        justify-content: center;
    }

    .bm-account-button::after { display: none; }

    .bm-breadcrumb { max-width: calc(100vw - 110px); }
}

/* ── 21. Activity log panel ──────────────────────────────── */
.bm-activity-log {
    max-height: min(52vh, 520px);
    overflow-y: auto;
    padding: 4px 0;
}

.bm-activity-log--modal {
    max-height: none;
    min-height: 50vh;
}

.bm-activity-log__header {
    position: sticky;
    top: 0;
    z-index: 2;
    border-bottom: 1px solid var(--bm-border);
}

.bm-activity-log__toolbar {
    width: 100%;
}

.bm-activity-log__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.bm-activity-chip {
    border-radius: 999px;
    padding: 2px 10px;
    font-size: .75rem;
    border: 1px solid var(--bm-border);
    background: #fff;
    color: #4b5563;
}

.bm-activity-chip.active {
    background: #1e40af;
    border-color: #1e40af;
    color: #fff;
}

.bm-activity-log__date {
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #9ca3af;
    padding: 10px 14px 4px;
    background: #f9fafb;
    position: sticky;
    top: 0;
    z-index: 1;
}

.bm-activity-entry {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 8px 14px;
    border-bottom: 1px solid var(--bm-border);
    transition: background .15s;
}

.bm-activity-entry--clickable {
    cursor: pointer;
}

.bm-activity-entry--clickable:hover,
.bm-activity-entry--clickable:focus-visible {
    background: #eff6ff;
    outline: none;
}

.bm-activity-entry:last-child { border-bottom: none; }
.bm-activity-entry:hover { background: #f8fafc; }

.bm-activity-entry__icon {
    flex-shrink: 0;
    font-size: .95rem;
    margin-top: 2px;
    width: 18px;
    text-align: center;
}

.bm-activity-entry__body { flex: 1; min-width: 0; }

.bm-activity-entry__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: .83rem;
    line-height: 1.4;
}

.bm-activity-entry__badge {
    display: inline-block;
    font-size: .7rem;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 4px;
    background: color-mix(in srgb, var(--bm-act-color, #6b7280) 12%, #fff);
    color: var(--bm-act-color, #6b7280);
    border: 1px solid color-mix(in srgb, var(--bm-act-color, #6b7280) 25%, #fff);
}

.bm-activity-entry__player {
    font-weight: 600;
    color: #1f2937;
}

.bm-activity-entry__text {
    font-size: .83rem;
    line-height: 1.4;
    flex-wrap: wrap;
    gap: 3px;
}

.bm-activity-entry__actor {
    font-weight: 600;
    color: #1f2937;
}

.bm-activity-entry__action {
    color: #6b7280;
    margin: 0 2px;
}

.bm-activity-entry__detail {
    font-size: .77rem;
    color: #6b7280;
    margin-top: 3px;
    line-height: 1.35;
}

.bm-activity-entry__meta {
    font-size: .73rem;
    color: #9ca3af;
    margin-top: 3px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.bm-activity-entry__meta strong {
    font-weight: 600;
    color: #6b7280;
}

.bm-activity-entry__meta-sep {
    opacity: .6;
}

.bm-activity-entry__rel {
    margin-left: auto;
    font-style: italic;
}

.bm-activity-entry__time {
    font-size: .73rem;
    color: #9ca3af;
    margin-top: 2px;
}

.bm-player-row--highlight {
    animation: bm-player-highlight 2.2s ease-out;
}

@keyframes bm-player-highlight {
    0%   { background-color: #fef08a; }
    70%  { background-color: #fef9c3; }
    100% { background-color: transparent; }
}

/* ── 22. Toast notification ──────────────────────────────── */
.bm-toast {
    min-width: 300px;
    max-width: 420px;
    border: none;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.14), 0 2px 6px rgba(0,0,0,.08);
    overflow: hidden;
    padding: 0;
    background: #fff;
}

.bm-toast__bar {
    height: 3px;
    width: 100%;
}

.bm-toast--success .bm-toast__bar  { background: #16a34a; }
.bm-toast--error   .bm-toast__bar  { background: #dc2626; }
.bm-toast--warning .bm-toast__bar  { background: #d97706; }
.bm-toast--info    .bm-toast__bar  { background: #2563eb; }

.bm-toast__body {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
}

.bm-toast__icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.bm-toast--success .bm-toast__icon { color: #16a34a; }
.bm-toast--error   .bm-toast__icon { color: #dc2626; }
.bm-toast--warning .bm-toast__icon { color: #d97706; }
.bm-toast--info    .bm-toast__icon { color: #2563eb; }

.bm-toast__content {
    flex: 1;
    min-width: 0;
}

.bm-toast__title {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #374151;
    line-height: 1.3;
}

.bm-toast__message {
    font-size: .875rem;
    color: #4b5563;
    margin-top: 2px;
    line-height: 1.45;
    word-break: break-word;
}

.bm-toast__close {
    flex-shrink: 0;
    margin-top: 1px;
    opacity: .45;
}

.bm-toast__close:hover { opacity: .75; }

@media (max-width: 575.98px) {
    #bm-toast-container {
        left: 12px !important;
        right: 12px !important;
        bottom: 80px !important; /* trên mobile nav */
    }
    .bm-toast { min-width: 0; max-width: 100%; }
}

/* ── Court image upload ──────────────────────────────────── */
.bm-img-slot {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.bm-img-slot-label {
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #64748b;
    margin-bottom: 8px;
}

.bm-img-preview {
    min-height: 120px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: flex-start;
}

.bm-img-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 7px 14px;
    border: 1.5px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    color: #64748b;
    font-size: .83rem;
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
    user-select: none;
}

.bm-img-upload-btn:hover {
    border-color: var(--bm-primary);
    background: #f0fdfa;
    color: var(--bm-primary);
}

.bm-img-thumb {
    position: relative;
    width: 90px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    border: 1.5px solid #e2e8f0;
    background: #f1f5f9;
    flex-shrink: 0;
}

.bm-img-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bm-img-thumb button {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: .65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity .15s;
    padding: 0;
}

.bm-img-thumb:hover button { opacity: 1; }

/* ── 22. Dashboard ───────────────────────────────────────── */
.bm-dashboard {
    animation: bm-dash-fade 0.45s ease both;
}

@keyframes bm-dash-fade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.bm-dashboard-top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px 24px;
    margin-bottom: 20px;
}

.bm-dashboard-top__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    color: var(--bm-primary);
    font-size: .78rem;
    font-weight: 650;
    letter-spacing: .02em;
}

.bm-dashboard-top__title {
    margin: 0 0 6px;
    font-size: clamp(1.35rem, 2.5vw, 1.65rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.15;
}

.bm-dashboard-top__desc {
    color: var(--bm-text-muted);
    font-size: .9rem;
    max-width: 560px;
}

.bm-dashboard-top__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--bm-radius-sm);
    font-weight: 650;
    box-shadow: 0 4px 14px rgba(15, 118, 110, .22);
}

.bm-dashboard-spotlight {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    padding: 14px 18px;
    border: 1px solid rgba(15, 118, 110, .28);
    border-radius: var(--bm-radius);
    color: inherit;
    background: linear-gradient(135deg, rgba(15, 118, 110, .12) 0%, rgba(20, 184, 166, .06) 100%);
    overflow: hidden;
    transition: border-color var(--bm-ease), box-shadow var(--bm-ease), transform var(--bm-ease);
}

.bm-dashboard-spotlight:hover {
    border-color: var(--bm-primary);
    box-shadow: var(--bm-shadow-sm);
    transform: translateY(-1px);
    color: inherit;
}

.bm-dashboard-spotlight__pulse {
    position: absolute;
    left: 18px;
    top: 50%;
    width: 8px;
    height: 8px;
    margin-top: -4px;
    border-radius: 50%;
    background: #14b8a6;
    box-shadow: 0 0 0 0 rgba(20, 184, 166, .5);
    animation: bm-dash-pulse 2s ease-out infinite;
}

.bm-dashboard-spotlight__icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    margin-left: 10px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--bm-primary);
    color: #fff;
    font-size: 1.1rem;
}

.bm-dashboard-spotlight__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.bm-dashboard-spotlight__body strong {
    font-size: .9rem;
}

.bm-dashboard-spotlight__body span {
    color: var(--bm-text-muted);
    font-size: .78rem;
}

.bm-dashboard-spotlight__link {
    flex-shrink: 0;
    color: var(--bm-primary);
    font-size: .82rem;
    font-weight: 700;
    white-space: nowrap;
}

.bm-dashboard-hero {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    padding: 20px 22px;
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    background: var(--bm-surface);
    box-shadow: var(--bm-shadow-xs);
    overflow: hidden;
}

.bm-dashboard-hero__glow {
    position: absolute;
    top: -40%;
    right: -5%;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15, 118, 110, .12) 0%, transparent 70%);
    pointer-events: none;
}

.bm-dashboard-hero__content {
    position: relative;
}

.bm-dashboard-hero__heading {
    margin: 0 0 4px;
    font-size: 1rem;
    font-weight: 750;
}

.bm-dashboard-hero__sub {
    color: var(--bm-text-muted);
    font-size: .84rem;
}

.bm-dashboard-hero__stats {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bm-dashboard-pill {
    min-width: 100px;
    padding: 12px 14px;
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius-sm);
    background: var(--bm-bg);
    text-align: center;
    transition: border-color var(--bm-ease), transform var(--bm-ease);
}

.bm-dashboard-pill:hover {
    transform: translateY(-1px);
}

.bm-dashboard-pill--warn {
    border-color: #fde68a;
    background: #fffbeb;
}

.bm-dashboard-pill--ok {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.bm-dashboard-pill__icon {
    display: block;
    margin-bottom: 4px;
    color: var(--bm-primary);
    font-size: .95rem;
    opacity: .85;
}

.bm-dashboard-pill--warn .bm-dashboard-pill__icon { color: #b45309; }
.bm-dashboard-pill--ok .bm-dashboard-pill__icon { color: #15803d; }

.bm-dashboard-pill__value {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--bm-text);
}

.bm-dashboard-pill--warn .bm-dashboard-pill__value { color: #b45309; }

.bm-dashboard-pill__label {
    display: block;
    margin-top: 3px;
    color: var(--bm-text-muted);
    font-size: .7rem;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.bm-dashboard-kpis .bm-dashboard-kpi {
    animation: bm-dash-fade 0.5s ease both;
}

.bm-dashboard-kpis .col-6:nth-child(1) .bm-dashboard-kpi { animation-delay: .05s; }
.bm-dashboard-kpis .col-6:nth-child(2) .bm-dashboard-kpi { animation-delay: .1s; }
.bm-dashboard-kpis .col-6:nth-child(3) .bm-dashboard-kpi { animation-delay: .15s; }
.bm-dashboard-kpis .col-6:nth-child(4) .bm-dashboard-kpi { animation-delay: .2s; }

.bm-dashboard-kpi {
    position: relative;
    height: 100%;
    padding: 16px 18px 14px;
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    background: var(--bm-surface);
    box-shadow: var(--bm-shadow-xs);
    overflow: hidden;
    transition: border-color var(--bm-ease), box-shadow var(--bm-ease), transform var(--bm-ease);
}

.bm-dashboard-kpi:hover {
    border-color: #a7d8d3;
    box-shadow: var(--bm-shadow-sm);
    transform: translateY(-2px);
}

.bm-dashboard-kpi__accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--bm-primary);
}

.bm-dashboard-kpi--sessions .bm-dashboard-kpi__accent { background: linear-gradient(90deg, #0f766e, #14b8a6); }
.bm-dashboard-kpi--revenue .bm-dashboard-kpi__accent { background: linear-gradient(90deg, #15803d, #22c55e); }
.bm-dashboard-kpi--profit .bm-dashboard-kpi__accent { background: linear-gradient(90deg, #2563eb, #3b82f6); }
.bm-dashboard-kpi--profit.is-negative .bm-dashboard-kpi__accent { background: linear-gradient(90deg, #dc2626, #ef4444); }
.bm-dashboard-kpi--unpaid .bm-dashboard-kpi__accent { background: linear-gradient(90deg, #d97706, #f59e0b); }

.bm-dashboard-kpi.is-alert {
    border-color: #fde68a;
    background: linear-gradient(180deg, #fffbeb 0%, #fff 45%);
}

.bm-dashboard-kpi__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.bm-dashboard-kpi__label {
    color: var(--bm-text-muted);
    font-size: .72rem;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.bm-dashboard-kpi__icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    font-size: 1rem;
}

.bm-dashboard-kpi--sessions .bm-dashboard-kpi__icon { background: #e6f7f5; color: var(--bm-primary); }
.bm-dashboard-kpi--revenue .bm-dashboard-kpi__icon { background: #f0fdf4; color: #15803d; }
.bm-dashboard-kpi--profit .bm-dashboard-kpi__icon { background: #eff6ff; color: #2563eb; }
.bm-dashboard-kpi--profit.is-negative .bm-dashboard-kpi__icon { background: #fef2f2; color: #dc2626; }
.bm-dashboard-kpi--unpaid .bm-dashboard-kpi__icon { background: #fefce8; color: #d97706; }

.bm-dashboard-kpi__value {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.1;
}

.bm-dashboard-kpi--profit.is-negative .bm-dashboard-kpi__value { color: #dc2626; }

.bm-dashboard-kpi__value small {
    margin-left: 2px;
    font-size: .85rem;
    font-weight: 700;
    opacity: .75;
}

.bm-dashboard-kpi__hint {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    color: var(--bm-text-muted);
    font-size: .74rem;
}

.bm-dashboard-trend {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    padding: 2px 6px;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 700;
}

.bm-dashboard-trend.is-up {
    color: #15803d;
    background: #dcfce7;
}

.bm-dashboard-trend.is-down {
    color: #b45309;
    background: #fef3c7;
}

.bm-dashboard-panel .card-header {
    border-bottom: 1px solid var(--bm-border);
    padding: 14px 18px;
}

.bm-dashboard-panel--alert .card-header {
    background: linear-gradient(180deg, #fffbeb 0%, #fff 100%) !important;
}

.bm-dashboard-panel__head {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.bm-dashboard-panel__icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    font-size: 1.05rem;
}

.bm-dashboard-panel__icon--chart { background: #eff6ff; color: #2563eb; }
.bm-dashboard-panel__icon--sessions { background: #e6f7f5; color: var(--bm-primary); }
.bm-dashboard-panel__icon--actions { background: #fef3c7; color: #b45309; }
.bm-dashboard-panel__icon--unpaid { background: #fef2f2; color: #dc2626; }
.bm-dashboard-panel__icon--rank { background: #fef9c3; color: #a16207; }

.bm-dashboard-panel__title {
    margin: 0;
    font-size: .95rem;
    font-weight: 750;
}

.bm-dashboard-panel__sub {
    color: var(--bm-text-muted);
    font-size: .76rem;
}

.bm-dashboard-panel__link {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.bm-dashboard-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    min-height: 120px;
}

.bm-dashboard-chart-wrap {
    position: relative;
    padding-top: 4px;
}

.bm-dashboard-chart-grid {
    position: absolute;
    inset: 0 4px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
}

.bm-dashboard-chart-grid span {
    display: block;
    border-top: 1px dashed #e2e8f0;
}

.bm-dashboard-chart {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: end;
    gap: 10px;
    min-height: 190px;
    padding: 8px 4px 0;
}

.bm-dashboard-chart__col {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 168px;
}

.bm-dashboard-chart__bar {
    width: 100%;
    max-width: 46px;
    border-radius: 8px 8px 3px 3px;
    background: linear-gradient(180deg, #2dd4bf 0%, var(--bm-primary) 100%);
    transform-origin: bottom;
    animation: bm-dash-bar-grow 0.65s cubic-bezier(.22, 1, .36, 1) both;
    animation-delay: var(--bm-bar-delay, 0ms);
    transition: transform var(--bm-ease), filter var(--bm-ease);
}

@keyframes bm-dash-bar-grow {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

@keyframes bm-dash-pulse {
    0% { box-shadow: 0 0 0 0 rgba(20, 184, 166, .45); }
    70% { box-shadow: 0 0 0 10px rgba(20, 184, 166, 0); }
    100% { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0); }
}

.bm-dashboard-chart__col.is-current .bm-dashboard-chart__bar {
    background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
    box-shadow: 0 6px 16px rgba(37, 99, 235, .28);
}

.bm-dashboard-chart__col:hover .bm-dashboard-chart__bar {
    filter: brightness(1.08);
}

.bm-dashboard-chart__tooltip {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 8px;
    color: var(--bm-text-muted);
    font-size: .66rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity var(--bm-ease);
}

.bm-dashboard-chart__tooltip strong {
    color: var(--bm-text);
    font-size: .72rem;
}

.bm-dashboard-chart__col:hover .bm-dashboard-chart__tooltip,
.bm-dashboard-chart__col.is-current .bm-dashboard-chart__tooltip { opacity: 1; }

.bm-dashboard-chart__label {
    margin-top: 10px;
    color: var(--bm-text-muted);
    font-size: .72rem;
    font-weight: 650;
    text-transform: capitalize;
}

.bm-dashboard-chart__col.is-current .bm-dashboard-chart__label {
    color: var(--bm-accent);
    font-weight: 750;
}

.bm-dashboard-sessions {
    display: grid;
    gap: 10px;
}

.bm-dashboard-session {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius-sm);
    color: inherit;
    background: #fff;
    transition: border-color var(--bm-ease), box-shadow var(--bm-ease), transform var(--bm-ease);
}

.bm-dashboard-session.is-today {
    border-color: rgba(15, 118, 110, .35);
    background: linear-gradient(135deg, #fff 0%, #f0fdfa 100%);
}

.bm-dashboard-session:hover {
    border-color: #a7d8d3;
    box-shadow: var(--bm-shadow-sm);
    transform: translateY(-1px);
    color: inherit;
}

.bm-dashboard-session__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-right: 12px;
    border-right: 1px solid var(--bm-border);
}

.bm-dashboard-session__today {
    margin-bottom: 4px;
    padding: 2px 6px;
    border-radius: 999px;
    background: var(--bm-primary);
    color: #fff;
    font-size: .58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.bm-dashboard-session__day {
    color: var(--bm-primary);
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
}

.bm-dashboard-session__month {
    margin-top: 2px;
    color: var(--bm-text-muted);
    font-size: .68rem;
    font-weight: 600;
}

.bm-dashboard-session__title {
    font-size: .9rem;
    font-weight: 700;
}

.bm-dashboard-session__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin-top: 4px;
    color: var(--bm-text-muted);
    font-size: .74rem;
}

.bm-dashboard-session__meta .bi { margin-right: 2px; }

.bm-dashboard-session__progress {
    margin-top: 8px;
    max-width: 280px;
}

.bm-dashboard-session__prog-row {
    display: flex;
    justify-content: space-between;
    color: var(--bm-text-light);
    font-size: .65rem;
    font-weight: 600;
}

.bm-dashboard-session__prog-bar {
    height: 5px;
    margin-top: 3px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.bm-dashboard-session__prog-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--bm-primary), #14b8a6);
    transition: width 0.4s ease;
}

.bm-dashboard-session__prog-bar--paid span {
    background: linear-gradient(90deg, #15803d, #22c55e);
}

.bm-dashboard-session__money {
    text-align: right;
    white-space: nowrap;
}

.bm-dashboard-session__collected {
    font-size: .88rem;
    font-weight: 700;
}

.bm-dashboard-session__money .profit-pos,
.bm-dashboard-session__money .profit-neg {
    font-size: .74rem;
    font-weight: 600;
}

.bm-dashboard-session__status {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bm-dashboard-actions {
    display: grid;
    gap: 8px;
}

.bm-dashboard-action {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius-sm);
    color: inherit;
    background: #fff;
    transition: border-color var(--bm-ease), background var(--bm-ease), transform var(--bm-ease);
}

.bm-dashboard-action:hover {
    border-color: #a7d8d3;
    background: var(--bm-primary-light);
    color: inherit;
    transform: translateX(3px);
}

.bm-dashboard-action--primary {
    border-color: rgba(15, 118, 110, .25);
    background: var(--bm-primary-light);
}

.bm-dashboard-action--primary:hover {
    border-color: var(--bm-primary);
    background: #d9f3ef;
}

.bm-dashboard-action__icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--bm-border);
    color: var(--bm-primary-dark);
    font-size: 1rem;
}

.bm-dashboard-action--primary .bm-dashboard-action__icon {
    background: var(--bm-primary);
    color: #fff;
}

.bm-dashboard-action__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.bm-dashboard-action__text strong {
    font-size: .875rem;
    line-height: 1.2;
}

.bm-dashboard-action__text small {
    color: var(--bm-text-muted);
    font-size: .72rem;
}

.bm-dashboard-action__chev {
    color: var(--bm-text-light);
    font-size: .85rem;
    transition: transform var(--bm-ease);
}

.bm-dashboard-action:hover .bm-dashboard-action__chev {
    transform: translateX(2px);
    color: var(--bm-primary);
}

.bm-dashboard-avatar {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--bm-primary-light);
    color: var(--bm-primary-dark);
    font-size: .82rem;
    font-weight: 700;
}

.bm-dashboard-unpaid__empty {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--bm-text-muted);
    font-size: .875rem;
}

.bm-dashboard-unpaid__ok {
    color: #16a34a;
    font-size: 1.1rem;
}

.bm-dashboard-unpaid__item {
    display: flex !important;
    align-items: center;
    gap: 12px;
}

.bm-dashboard-rank-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bm-dashboard-rank {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--bm-border);
    color: var(--bm-text-muted);
    font-size: .75rem;
    font-weight: 800;
}

.bm-dashboard-rank.is-gold {
    background: linear-gradient(135deg, #fde68a, #fbbf24);
    color: #78350f;
}

.bm-dashboard-rank.is-silver {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    color: #334155;
}

.bm-dashboard-rank.is-bronze {
    background: linear-gradient(135deg, #fed7aa, #fdba74);
    color: #7c2d12;
}

.bm-dashboard-rank-star {
    font-size: .85rem;
    opacity: 0;
}

.bm-dashboard-rank-star.is-gold { color: #ca8a04; opacity: 1; }
.bm-dashboard-rank-star.is-silver { color: #64748b; opacity: 1; }
.bm-dashboard-rank-star.is-bronze { color: #c2410c; opacity: 1; }

@media (max-width: 991.98px) {
    .bm-dashboard-session {
        grid-template-columns: 58px minmax(0, 1fr);
        grid-template-rows: auto auto;
    }

    .bm-dashboard-session__money,
    .bm-dashboard-session__status {
        grid-column: 2;
    }

    .bm-dashboard-session__money { text-align: left; }

    .bm-dashboard-session__status { justify-content: space-between; }

    .bm-dashboard-session__progress { max-width: none; }
}

@media (max-width: 575.98px) {
    .bm-dashboard-top__actions {
        width: 100%;
    }

    .bm-dashboard-top__cta {
        width: 100%;
        justify-content: center;
    }

    .bm-dashboard-spotlight {
        flex-wrap: wrap;
    }

    .bm-dashboard-spotlight__link {
        width: 100%;
        padding-left: 52px;
    }

    .bm-dashboard-hero {
        padding: 16px;
    }

    .bm-dashboard-hero__stats {
        width: 100%;
    }

    .bm-dashboard-pill {
        flex: 1;
        min-width: 0;
    }

    .bm-dashboard-chart {
        gap: 6px;
        min-height: 150px;
    }

    .bm-dashboard-chart__col { height: 130px; }
}

@media (prefers-reduced-motion: reduce) {
    .bm-dashboard,
    .bm-dashboard-kpi,
    .bm-dashboard-chart__bar,
    .bm-dashboard-spotlight__pulse {
        animation: none !important;
    }

    .bm-dashboard-session:hover,
    .bm-dashboard-kpi:hover,
    .bm-dashboard-action:hover {
        transform: none;
    }
}

.bm-ctv-pill {
    font-size: 0.75rem;
    line-height: 1.4;
    white-space: nowrap;
}

/* ── Sessions index (/Sessions) ─────────────────────────── */
.bm-sessions-metric {
    min-height: 94px;
    background: #fff;
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    box-shadow: var(--bm-shadow-xs);
}

.bm-sessions-metric__icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    border-radius: 10px;
    background: var(--bm-primary-light);
    color: var(--bm-primary);
    font-size: 1.05rem;
}

.bm-sessions-metric__label {
    color: var(--bm-text-muted);
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .035em;
}

.bm-sessions-metric__value {
    margin-top: 2px;
    color: var(--bm-text);
    font-size: 1.45rem;
    font-weight: 750;
    line-height: 1.1;
}

.bm-sessions-filter .form-label {
    margin-bottom: 4px;
    color: var(--bm-text-muted);
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.bm-sessions-filter-toggle {
    font-weight: 650;
    padding: .65rem .85rem;
}

.bm-sessions-filter-toggle__inner {
    display: grid;
    gap: 4px;
    width: 100%;
    text-align: left;
}

.bm-sessions-filter-toggle__lead {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bm-sessions-filter-toggle__title {
    font-weight: 700;
}

.bm-sessions-filter-toggle__summary {
    font-size: .78rem;
    font-weight: 500;
    color: var(--bm-text-muted);
    line-height: 1.35;
    padding-left: 1.35rem;
}

.bm-sessions-filter-toggle__chevron {
    position: absolute;
    right: .85rem;
    top: 50%;
    transform: translateY(-50%);
    transition: transform var(--bm-ease);
}

.bm-sessions-filter-toggle {
    position: relative;
}

.bm-sessions-filter-toggle--open .bm-sessions-filter-toggle__chevron {
    transform: translateY(-50%) rotate(180deg);
}

.bm-sessions-filter-toggle--open {
    background: var(--bm-primary-light);
    border-color: var(--bm-primary);
    color: var(--bm-primary);
}

.bm-sessions-filter__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.bm-sessions-filter__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .95rem;
    font-weight: 750;
    color: var(--bm-text);
}

.bm-sessions-filter__title i {
    color: var(--bm-primary);
}

.bm-sessions-filter__context {
    margin-top: 4px;
    font-size: .8rem;
    color: var(--bm-text-muted);
    line-height: 1.4;
}

.bm-sessions-filter__active {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.bm-sessions-filter__active-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: .22rem .55rem;
    border: 1px solid var(--bm-border);
    border-radius: 999px;
    background: #fff;
    color: var(--bm-text);
    font-size: .76rem;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--bm-ease), border-color var(--bm-ease), color var(--bm-ease);
}

.bm-sessions-filter__active-chip:hover {
    background: var(--bm-primary-light);
    border-color: var(--bm-primary);
    color: var(--bm-primary);
}

.bm-sessions-filter__active-chip i {
    font-size: .62rem;
    opacity: .7;
}

.bm-sessions-filter__presets {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--bm-border);
}

.bm-sessions-filter__presets-label {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--bm-text-muted);
}

.bm-sessions-filter__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.bm-sessions-filter__chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: .32rem .68rem;
    border: 1px solid var(--bm-border);
    border-radius: 999px;
    background: #fff;
    color: var(--bm-text);
    font-size: .76rem;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--bm-ease), border-color var(--bm-ease), color var(--bm-ease), box-shadow var(--bm-ease);
}

.bm-sessions-filter__chip i {
    font-size: .82rem;
    opacity: .85;
}

.bm-sessions-filter__chip:hover {
    border-color: #cbd5e1;
    box-shadow: var(--bm-shadow-xs);
}

.bm-sessions-filter__chip--primary.bm-sessions-filter__chip--active,
.bm-sessions-filter__chip--primary:hover {
    background: var(--bm-primary-light);
    border-color: var(--bm-primary);
    color: var(--bm-primary);
}

.bm-sessions-filter__chip--warning.bm-sessions-filter__chip--active,
.bm-sessions-filter__chip--warning:hover {
    background: #fff7ed;
    border-color: #f59e0b;
    color: #b45309;
}

.bm-sessions-filter__chip--danger.bm-sessions-filter__chip--active,
.bm-sessions-filter__chip--danger:hover {
    background: #fef2f2;
    border-color: #ef4444;
    color: #b91c1c;
}

.bm-sessions-filter__chip--secondary.bm-sessions-filter__chip--active,
.bm-sessions-filter__chip--secondary:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #475569;
}

.bm-sessions-filter__chip--info.bm-sessions-filter__chip--active,
.bm-sessions-filter__chip--info:hover {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1d4ed8;
}

.bm-sessions-filter__chip--active {
    box-shadow: inset 0 0 0 1px currentColor;
    font-weight: 750;
}

.bm-sessions-filter__chips--secondary .bm-sessions-filter__chip {
    font-size: .73rem;
    padding: .26rem .58rem;
    opacity: .95;
}

.bm-sessions-filter__custom {
    padding: 12px;
    border: 1px solid var(--bm-border);
    border-radius: 12px;
    background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
}

.bm-sessions-filter__custom-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 12px;
    margin-bottom: 10px;
}

.bm-sessions-filter__custom-title {
    font-size: .8rem;
    font-weight: 700;
    color: var(--bm-text);
}

.bm-sessions-filter__custom-hint {
    font-size: .72rem;
    color: var(--bm-text-muted);
}

.bm-sessions-filter__form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) repeat(4, minmax(0, 1fr)) auto;
    gap: 8px 10px;
    align-items: end;
}

.bm-sessions-filter__field--date-sep {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: .45rem;
    color: var(--bm-text-muted);
    font-size: .9rem;
    font-weight: 600;
}

.bm-sessions-filter__field--actions {
    min-width: 7.5rem;
}

.bm-sessions-filter-summary {
    font-size: .78rem;
    font-weight: 500;
    color: var(--bm-text-muted);
}

.bm-sessions-list {
    display: grid;
    gap: 10px;
}

.bm-sessions-item {
    display: grid;
    grid-template-columns: 92px minmax(220px, 1.45fr) minmax(150px, .85fr) minmax(170px, .9fr) auto;
    align-items: center;
    gap: 18px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    box-shadow: var(--bm-shadow-xs);
    transition: border-color var(--bm-ease), box-shadow var(--bm-ease), transform var(--bm-ease);
}

.bm-sessions-item:hover {
    border-color: #a7d8d3;
    box-shadow: var(--bm-shadow-sm);
    transform: translateY(-1px);
}

.bm-sessions-date {
    padding-right: 16px;
    text-align: center;
    border-right: 1px solid var(--bm-border);
}

.bm-sessions-date__day {
    color: var(--bm-primary);
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1;
}

.bm-sessions-date__month {
    margin-top: 3px;
    color: var(--bm-text);
    font-size: .78rem;
    font-weight: 650;
}

.bm-sessions-date__weekday {
    margin-top: 3px;
    color: var(--bm-text-muted);
    font-size: .72rem;
}

.bm-sessions-title {
    color: var(--bm-text);
    font-size: 1rem;
    font-weight: 700;
}

.bm-sessions-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 12px;
    margin-top: 7px;
    color: var(--bm-text-muted);
    font-size: .78rem;
}

.bm-sessions-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.bm-sessions-progress__header,
.bm-sessions-money__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.bm-sessions-progress__header {
    margin-bottom: 7px;
    color: var(--bm-text-muted);
    font-size: .77rem;
}

.bm-sessions-progress .progress {
    height: 7px;
    background: #e8eef3;
}

.bm-sessions-progress .progress-bar { background: var(--bm-primary); }

.bm-sessions-progress--payment .progress-bar { background: #16a34a; }

.bm-sessions-progress-group {
    display: grid;
    gap: 10px;
}

.bm-sessions-money {
    display: grid;
    gap: 5px;
    font-size: .79rem;
}

.bm-sessions-money__row span:first-child { color: var(--bm-text-muted); }

.bm-sessions-money__row--remit {
    margin-top: 2px;
    padding-top: 5px;
    border-top: 1px dashed #fecaca;
}

.bm-sessions-money__row--remit span:first-child { color: #b45309; }

.bm-sessions-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.bm-sessions-actions .btn {
    min-height: 36px;
    min-width: 36px;
}

.bm-sessions-actions .btn-open { white-space: nowrap; }

.bm-sessions-list-header__profit {
    font-size: .95rem;
    font-weight: 700;
}

@media (max-width: 1199.98px) {
    .bm-sessions-item {
        grid-template-columns: 82px minmax(220px, 1fr) minmax(150px, .8fr) auto;
    }

    .bm-sessions-money {
        grid-column: 2 / 4;
        grid-row: 2;
        grid-template-columns: repeat(2, minmax(120px, 1fr));
        padding-top: 10px;
        border-top: 1px dashed var(--bm-border);
    }
}

@media (max-width: 991.98px) {
    .bm-sessions-filter-panel:not(.bm-sessions-filter-panel--open) {
        display: none;
    }

    .bm-sessions-filter-panel.bm-sessions-filter-panel--open {
        margin-top: 10px;
    }

    .bm-sessions-filter__chips--primary,
    .bm-sessions-filter__chips--secondary {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .bm-sessions-filter__chips--primary::-webkit-scrollbar,
    .bm-sessions-filter__chips--secondary::-webkit-scrollbar {
        display: none;
    }

    .bm-sessions-filter__form-grid {
        grid-template-columns: 1fr auto 1fr;
    }

    .bm-sessions-filter__field--date-sep {
        grid-column: 2;
        grid-row: 1;
        padding-bottom: .35rem;
    }

    .bm-sessions-filter__field:nth-child(1) { grid-column: 1; grid-row: 1; }
    .bm-sessions-filter__field:nth-child(3) { grid-column: 3; grid-row: 1; }
    .bm-sessions-filter__field:nth-child(4),
    .bm-sessions-filter__field:nth-child(5),
    .bm-sessions-filter__field:nth-child(6) {
        grid-column: span 1;
    }

    .bm-sessions-filter__field--actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 575.98px) {
    .bm-sessions-filter__form-grid {
        grid-template-columns: 1fr;
    }

    .bm-sessions-filter__field--date-sep {
        display: none;
    }

    .bm-sessions-filter__field:nth-child(1),
    .bm-sessions-filter__field:nth-child(3),
    .bm-sessions-filter__field:nth-child(4),
    .bm-sessions-filter__field:nth-child(5),
    .bm-sessions-filter__field:nth-child(6),
    .bm-sessions-filter__field--actions {
        grid-column: 1 / -1;
        grid-row: auto;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .bm-sessions-filter__form-grid {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    }

    .bm-sessions-filter__field:nth-child(6) {
        grid-column: 1 / 3;
    }

    .bm-sessions-filter__field--actions {
        grid-column: 5;
        grid-row: 2;
    }
}

@media (min-width: 992px) {
    .bm-sessions-filter-toggle {
        display: none !important;
    }

    .bm-sessions-filter-panel {
        display: block !important;
    }
}

@media (max-width: 767.98px) {
    .bm-sessions-page .bm-page-header .btn {
        flex: 1;
        justify-content: center;
        min-height: 40px;
    }

    .bm-sessions-metrics {
        display: flex;
        flex-wrap: nowrap;
        gap: 10px;
        overflow-x: auto;
        margin-left: 0;
        margin-right: 0;
        padding: 0 2px 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .bm-sessions-metrics::-webkit-scrollbar {
        display: none;
    }

    .bm-sessions-metrics > [class*="col-"] {
        flex: 0 0 min(46vw, 168px);
        width: auto;
        max-width: none;
        padding: 0;
    }

    .bm-sessions-metric {
        min-height: 82px;
        height: 100%;
    }

    .bm-sessions-metric__value {
        font-size: 1.25rem;
    }

    .bm-sessions-item {
        grid-template-columns: 56px minmax(0, 1fr);
        grid-template-areas:
            "date main"
            "progress progress"
            "money money"
            "actions actions";
        gap: 10px 12px;
        padding: 14px;
    }

    .bm-sessions-date {
        grid-area: date;
        align-self: start;
        padding-right: 0;
        border-right: none;
    }

    .bm-sessions-date__day { font-size: 1.35rem; }

    .bm-sessions-item > .min-w-0 {
        grid-area: main;
        min-width: 0;
    }

    .bm-sessions-progress-group {
        grid-area: progress;
    }

    .bm-sessions-money {
        grid-area: money;
        grid-column: auto;
        grid-row: auto;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding-top: 10px;
        border-top: 1px dashed var(--bm-border);
    }

    .bm-sessions-actions {
        grid-area: actions;
        justify-content: stretch;
        flex-wrap: wrap;
    }

    .bm-sessions-actions .btn-open {
        flex: 1 1 auto;
    }

    .bm-sessions-actions .btn-open span {
        display: inline;
    }

    .bm-sessions-meta span {
        max-width: 100%;
    }
}

@media (max-width: 575.98px) {
    .bm-sessions-page .bm-page-header .btn span {
        font-size: .84rem;
    }

    .bm-sessions-title {
        font-size: .92rem;
    }

    .bm-sessions-meta {
        font-size: .74rem;
        gap: 4px 10px;
    }

    .bm-sessions-actions .btn {
        min-height: 40px;
        min-width: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bm-sessions-item:hover {
        transform: none;
    }
}

/* Session detail: sidebar + main + activity log */
.bm-session-detail-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "main"
        "sidebar"
        "activity";
}

.bm-session-sidebar { grid-area: sidebar; min-width: 0; }
.bm-session-main { grid-area: main; min-width: 0; }
.bm-session-activity { grid-area: activity; min-width: 0; }

@media (min-width: 992px) and (max-width: 1199.98px) {
    .bm-session-detail-grid {
        grid-template-columns: repeat(12, minmax(0, 1fr));
        grid-template-areas:
            "sidebar sidebar sidebar sidebar main main main main main main main main"
            "activity activity activity activity main main main main main main main main";
        align-items: start;
    }
}

@media (min-width: 1200px) {
    .bm-session-detail-grid {
        grid-template-columns: repeat(12, minmax(0, 1fr));
        grid-template-areas:
            "sidebar sidebar sidebar sidebar main main main main main main main main"
            "activity activity activity activity main main main main main main main main";
        align-items: start;
    }
}

/* ── 23. Members ─────────────────────────────────────────── */
.bm-members-page {
    --bm-member-metric-h: 64px;
}

.bm-member-metric {
    min-height: var(--bm-member-metric-h);
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bm-surface);
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    box-shadow: var(--bm-shadow-xs);
}

.bm-member-metric--compact {
    min-height: var(--bm-member-metric-h);
}

.bm-member-metric__icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: var(--bm-primary-light);
    color: var(--bm-primary);
    font-size: .95rem;
}

.bm-member-metric__icon--male { background: #eff6ff; color: #2563eb; }
.bm-member-metric__icon--female { background: #fdf2f8; color: #db2777; }
.bm-member-metric__icon--group { background: #fef3c7; color: #b45309; }

.bm-member-metric__label {
    color: var(--bm-text-muted);
    font-size: .74rem;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.bm-member-metric__value {
    margin-top: 1px;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.1;
}

.bm-member-metric__hint {
    margin-top: 2px;
    line-height: 1.2;
    font-size: .72rem;
}

.bm-member-metric__icon--debt { background: #fef2f2; color: #dc2626; }

.bm-member-row--debt {
    background: linear-gradient(90deg, rgba(220, 38, 38, .04), transparent 48px);
}

.bm-member-debt-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    text-align: right;
}

.bm-member-debt-badge__pill {
    display: inline-block;
    background: #fee2e2;
    color: #b91c1c;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: .75rem;
    font-weight: 700;
    line-height: 1.2;
}

.bm-member-debt-badge:hover .bm-member-debt-badge__pill {
    background: #fecaca;
}

.bm-member-debt-badge__pending {
    font-size: .68rem;
    font-weight: 600;
    color: #b45309;
}

.bm-member-debt-badge__clear {
    font-size: .8rem;
}

.bm-member-row-menu__btn {
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    display: inline-grid;
    place-items: center;
}

.bm-member-row-menu .dropdown-toggle::after {
    display: none;
}

.bm-member-row-menu .dropdown-menu {
    min-width: 12.5rem;
}

.bm-member-row-menu .dropdown-item {
    font-size: .84rem;
}

.bm-member-list-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.bm-member-list-toolbar__title {
    font-size: 1rem;
    font-weight: 650;
    margin: 0;
    line-height: 1.3;
}

.bm-member-list-toolbar__sub {
    font-size: .8rem;
    color: var(--bm-text-muted);
    margin-top: 2px;
}

.bm-member-list-toolbar__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-left: auto;
}

.bm-members-filter.bm-card {
    border-color: #e2e8f0;
    box-shadow: var(--bm-shadow-sm);
    overflow: hidden;
}

.bm-members-filter.bm-card > .card-body {
    padding: 14px 16px;
    background: linear-gradient(180deg, #fafbfc 0%, #fff 40%);
}

.bm-members-filter .form-label {
    margin-bottom: 4px;
    color: var(--bm-text-muted);
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.bm-members-filter__label-spacer {
    visibility: hidden;
    user-select: none;
    pointer-events: none;
}

.bm-members-filter-toggle {
    position: relative;
    font-weight: 650;
    padding: .65rem .85rem;
    background: #fff;
}

.bm-members-filter-toggle__inner {
    display: grid;
    gap: 4px;
    width: 100%;
    text-align: left;
}

.bm-members-filter-toggle__lead {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bm-members-filter-toggle__title {
    font-weight: 700;
}

.bm-members-filter-toggle__summary {
    font-size: .78rem;
    font-weight: 500;
    color: var(--bm-text-muted);
    line-height: 1.35;
    padding-left: 1.35rem;
}

.bm-members-filter-toggle__chevron {
    position: absolute;
    right: .85rem;
    top: 50%;
    transform: translateY(-50%);
    transition: transform var(--bm-ease);
}

.bm-members-filter-toggle--open .bm-members-filter-toggle__chevron {
    transform: translateY(-50%) rotate(180deg);
}

.bm-members-filter-toggle--open {
    background: var(--bm-primary-light);
    border-color: var(--bm-primary);
    color: var(--bm-primary);
}

.bm-members-filter__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eef2f6;
}

.bm-members-filter__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .95rem;
    font-weight: 750;
    color: var(--bm-text);
}

.bm-members-filter__title i {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--bm-primary-light);
    color: var(--bm-primary);
    font-size: .85rem;
}

.bm-members-filter__context {
    margin-top: 4px;
    font-size: .78rem;
    color: var(--bm-text-muted);
    line-height: 1.4;
}

.bm-members-filter__active {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #f0fdfa;
    border: 1px solid #ccfbf1;
}

.bm-members-filter__active-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: .28rem .6rem;
    border: 1px solid #99f6e4;
    border-radius: 999px;
    background: #fff;
    color: #0f766e;
    font-size: .76rem;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--bm-ease), border-color var(--bm-ease), color var(--bm-ease);
}

.bm-members-filter__active-chip:hover {
    background: #ccfbf1;
    border-color: #5eead4;
    color: #115e59;
}

.bm-members-filter__active-chip i {
    font-size: .62rem;
    opacity: .75;
}

.bm-members-filter__presets {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.bm-members-filter__presets-label {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--bm-text-muted);
}

.bm-members-filter__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 10px;
    border: 1px solid #e8edf2;
    border-radius: 10px;
    background: #f8fafc;
}

.bm-members-filter__chips--secondary {
    padding-top: 6px;
    padding-bottom: 6px;
}

.bm-members-filter__chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: .34rem .72rem;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    color: var(--bm-text);
    font-size: .78rem;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--bm-ease), border-color var(--bm-ease), color var(--bm-ease), box-shadow var(--bm-ease);
}

.bm-members-filter__chip i {
    font-size: .82rem;
    opacity: .88;
}

.bm-members-filter__chip:hover {
    border-color: #cbd5e1;
    box-shadow: var(--bm-shadow-xs);
}

.bm-members-filter__chip--primary.bm-members-filter__chip--active,
.bm-members-filter__chip--primary:hover {
    background: var(--bm-primary-light);
    border-color: var(--bm-primary);
    color: var(--bm-primary);
}

.bm-members-filter__chip--danger.bm-members-filter__chip--active,
.bm-members-filter__chip--danger:hover {
    background: #fef2f2;
    border-color: #ef4444;
    color: #b91c1c;
}

.bm-members-filter__chip--warning.bm-members-filter__chip--active,
.bm-members-filter__chip--warning:hover {
    background: #fffbeb;
    border-color: #f59e0b;
    color: #b45309;
}

.bm-members-filter__chip--info.bm-members-filter__chip--active,
.bm-members-filter__chip--info:hover {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1d4ed8;
}

.bm-members-filter__chip--secondary.bm-members-filter__chip--active,
.bm-members-filter__chip--secondary:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #475569;
}

.bm-members-filter__chip--active {
    box-shadow: inset 0 0 0 1px currentColor;
    font-weight: 750;
}

.bm-members-filter__chips--secondary .bm-members-filter__chip {
    font-size: .74rem;
    padding: .28rem .62rem;
}

.bm-members-filter__custom {
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

.bm-members-filter__custom-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 12px;
    margin-bottom: 12px;
}

.bm-members-filter__custom-title {
    font-size: .82rem;
    font-weight: 700;
    color: var(--bm-text);
}

.bm-members-filter__custom-hint {
    font-size: .72rem;
    color: var(--bm-text-muted);
}

.bm-members-filter__form-primary {
    display: grid;
    grid-template-columns: minmax(0, 2fr) repeat(3, minmax(120px, 1fr)) minmax(88px, auto);
    gap: 10px;
    align-items: end;
}

.bm-members-filter__form-secondary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e2e8f0;
}

.bm-members-filter__field--search .input-group-text {
    background: #f8fafc;
    border-color: #d1d5db;
    color: #64748b;
}

.bm-members-filter__form .form-control,
.bm-members-filter__form .form-select,
.bm-members-filter__field--search .input-group-text {
    min-height: 34px;
    border-color: #d1d5db;
}

.bm-members-filter__form .form-control:focus,
.bm-members-filter__form .form-select:focus {
    border-color: var(--bm-primary);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, .1);
}

.bm-members-filter__field--actions .btn {
    min-height: 34px;
    font-weight: 650;
}

.bm-members-filter__field--check {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 34px;
}

.bm-members-filter__field--check .form-check {
    margin: 0;
    padding: 6px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.bm-members-filter__field--check .form-check-label {
    font-size: .8rem;
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 1199.98px) {
    .bm-members-filter__form-primary {
        grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
    }

    .bm-members-filter__field--search {
        grid-column: 1 / -1;
    }

    .bm-members-filter__field--actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 991.98px) {
    .bm-members-filter-panel:not(.bm-members-filter-panel--open) {
        display: none;
    }

    .bm-members-filter-panel.bm-members-filter-panel--open {
        margin-top: 10px;
    }

    .bm-members-filter__chips--primary,
    .bm-members-filter__chips--secondary {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .bm-members-filter__chips--primary::-webkit-scrollbar,
    .bm-members-filter__chips--secondary::-webkit-scrollbar {
        display: none;
    }

    .bm-members-filter__form-primary,
    .bm-members-filter__form-secondary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bm-members-filter__field--search,
    .bm-members-filter__field--actions,
    .bm-members-filter__field--check {
        grid-column: 1 / -1;
    }
}

@media (max-width: 575.98px) {
    .bm-members-filter__form-primary,
    .bm-members-filter__form-secondary {
        grid-template-columns: 1fr;
    }

    .bm-members-filter.bm-card > .card-body {
        padding: 12px;
    }
}

@media (min-width: 992px) {
    .bm-members-filter-toggle {
        display: none !important;
    }

    .bm-members-filter-panel {
        display: block !important;
    }
}

.bm-member-table__username {
    font-size: .75rem;
    color: var(--bm-text-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    line-height: 1.2;
    margin-top: 1px;
}

.bm-member-group-tag--more {
    background: #f1f5f9;
    color: #64748b;
    cursor: default;
}

.bm-member-contact-inline {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.bm-member-contact-inline__num {
    font-size: .8rem;
    font-weight: 600;
    color: var(--bm-text);
    white-space: nowrap;
}

.bm-member-contact-inline__actions {
    display: inline-flex;
    gap: 4px;
}

.bm-member-contact-inline__btn {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: .68rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
}

.bm-member-contact-inline__btn--call {
    color: #1d4ed8;
    background: #eff6ff;
    border-color: #bfdbfe;
}

.bm-member-contact-inline__btn--call:hover {
    background: #dbeafe;
    color: #1e3a8a;
}

.bm-member-contact-inline__btn--zalo {
    color: #0369a1;
    background: #f0f9ff;
    border-color: #bae6fd;
}

.bm-member-contact-inline__btn--zalo:hover {
    background: #e0f2fe;
    color: #0c4a6e;
}

.bm-member-cards {
    display: grid;
    gap: 10px;
}

.bm-member-card {
    padding: 12px 14px;
    background: #fff;
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    box-shadow: var(--bm-shadow-xs);
}

.bm-member-card--debt {
    border-color: #fecaca;
    background: linear-gradient(180deg, #fffbfb 0%, #fff 100%);
}

.bm-member-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.bm-member-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 10px;
}

.bm-member-card__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 0;
    border-top: 1px solid #f1f5f9;
    font-size: .8rem;
}

.bm-member-card__label {
    color: var(--bm-text-muted);
    font-weight: 600;
    flex: 0 0 auto;
}

.bm-member-card__value {
    text-align: right;
    min-width: 0;
}

.bm-member-debt {
    color: inherit;
    text-decoration: none;
    text-align: right;
}

.bm-member-debt:hover .bm-member-debt__amount {
    text-decoration: underline;
}

.bm-member-debt__amount {
    font-weight: 800;
    color: #dc2626;
    line-height: 1.2;
}

.bm-member-debt__amount small {
    font-size: .72em;
    font-weight: 700;
}

.bm-member-filter .form-label {
    margin-bottom: 5px;
    color: var(--bm-text-muted);
    font-size: .76rem;
    font-weight: 600;
}

.bm-member-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bm-member-quick__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius-sm);
    color: inherit;
    background: var(--bm-surface);
    font-size: .84rem;
    font-weight: 600;
    transition: border-color var(--bm-ease), background var(--bm-ease), transform var(--bm-ease);
}

.bm-member-quick__item:hover {
    border-color: #a7d8d3;
    background: var(--bm-primary-light);
    color: inherit;
    transform: translateY(-1px);
}

.bm-member-quick__item .bi {
    color: var(--bm-primary);
}

.bm-member-list {
    display: grid;
    gap: 10px;
}

.bm-member-table-card {
    overflow: hidden;
}

.bm-member-table thead th {
    padding: 12px 14px;
    background: #f8fafc;
    border-bottom: 1px solid var(--bm-border);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--bm-text-muted);
    white-space: nowrap;
}

.bm-member-table tbody td {
    padding: 12px 14px;
    vertical-align: middle;
    border-bottom: 1px solid var(--bm-border);
    font-size: .875rem;
}

.bm-member-table tbody tr {
    transition: background var(--bm-ease);
}

.bm-member-table tbody tr:hover {
    background: #f8fffe;
}

.bm-member-table tbody tr:last-child td {
    border-bottom: 0;
}

.bm-member-table__person {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 180px;
}

.bm-member-table__avatar {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--bm-primary) 0%, #14b8a6 100%);
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
}

.bm-member-table__name {
    font-weight: 700;
    line-height: 1.25;
}

.bm-member-table__note {
    margin-top: 2px;
    color: var(--bm-text-muted);
    font-size: .72rem;
    line-height: 1.35;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bm-member-table__note .bi {
    margin-right: 3px;
    font-size: .68rem;
}

.bm-member-table__code {
    padding: 3px 7px;
    border-radius: var(--bm-radius-xs);
    background: #f1f5f9;
    color: #334155;
    font-size: .78rem;
}

.bm-member-table__groups {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    max-width: 200px;
}

.bm-member-contact--compact {
    padding: 5px 10px;
    font-size: .74rem;
}

.bm-member-contact-group {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    max-width: 220px;
}

.bm-member-contact--phone {
    color: #1d4ed8;
    border-color: #bfdbfe;
    background: #eff6ff;
}

.bm-member-contact--phone:hover {
    border-color: #93c5fd;
    background: #dbeafe;
    color: #1e3a8a;
}

.bm-member-contact--zalo {
    color: #0284c7;
    border-color: #bae6fd;
    background: #f0f9ff;
    padding-inline: 8px;
}

.bm-member-contact--zalo:hover {
    border-color: #7dd3fc;
    background: #e0f2fe;
    color: #0369a1;
}

.bm-member-contact--url {
    color: var(--bm-primary);
}

.bm-member-contact-text {
    display: inline-block;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .78rem;
    color: var(--bm-text);
}

.bm-member-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 650;
}

.bm-member-badge--male { background: #eff6ff; color: #1d4ed8; }
.bm-member-badge--female { background: #fdf2f8; color: #be185d; }
.bm-member-badge--unknown { background: #f1f5f9; color: #64748b; }
.bm-member-badge--level { background: #f0fdf4; color: #15803d; }

.bm-member-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--bm-text-muted);
    font-size: .78rem;
}

.bm-member-group-tag {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid var(--bm-border);
    color: var(--bm-text);
    font-size: .72rem;
    font-weight: 600;
    transition: border-color var(--bm-ease), background var(--bm-ease);
}

.bm-member-group-tag:hover {
    border-color: #a7d8d3;
    background: var(--bm-primary-light);
    color: var(--bm-primary-dark);
}

.bm-member-contact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: var(--bm-radius-sm);
    border: 1px solid var(--bm-border);
    color: var(--bm-primary);
    font-size: .78rem;
    font-weight: 650;
    white-space: nowrap;
    transition: border-color var(--bm-ease), background var(--bm-ease);
}

.bm-member-contact:hover {
    border-color: #a7d8d3;
    background: var(--bm-primary-light);
    color: var(--bm-primary-dark);
}

.bm-member-contact--empty {
    border: 0;
    padding: 8px 0;
    font-size: .74rem;
}

.bm-member-form-card {
    overflow: hidden;
}

.bm-member-form {
    display: grid;
    gap: 20px;
}

.bm-member-form__section {
    padding: 18px;
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    background: #fff;
}

.bm-member-form__section-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.bm-member-form__section-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--bm-primary-light);
    color: var(--bm-primary);
    font-size: 1.05rem;
}

.bm-member-form__section-icon--purple { background: #f5f3ff; color: #7c3aed; }
.bm-member-form__section-icon--amber { background: #fef3c7; color: #b45309; }
.bm-member-form__section-icon--slate { background: #f1f5f9; color: #475569; }

.bm-member-form__section-title {
    margin: 0;
    font-size: .95rem;
    font-weight: 750;
}

.bm-member-form__section-sub {
    color: var(--bm-text-muted);
    font-size: .76rem;
}

.bm-member-group-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bm-member-group-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bm-member-group-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    padding: 10px 12px;
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    background: #fff;
}

.bm-member-group-fee-wrap {
    width: min(140px, 100%);
    margin-left: auto;
}

.bm-member-group-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin: 0;
    cursor: pointer;
}

.bm-member-group-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.bm-member-group-chip span {
    display: inline-flex;
    padding: 8px 14px;
    border: 1px solid var(--bm-border);
    border-radius: 999px;
    background: #fff;
    color: var(--bm-text);
    font-size: .82rem;
    font-weight: 600;
    transition: border-color var(--bm-ease), background var(--bm-ease), color var(--bm-ease);
}

.bm-member-group-chip input:checked + span {
    border-color: var(--bm-primary);
    background: var(--bm-primary-light);
    color: var(--bm-primary-dark);
}

.bm-member-group-chip:hover span {
    border-color: #a7d8d3;
}

.bm-member-quick-group {
    padding-top: 14px;
    border-top: 1px dashed var(--bm-border);
}

.bm-member-form__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 4px;
}

@media (max-width: 767.98px) {
    .bm-member-table thead th:nth-child(5),
    .bm-member-table thead th:nth-child(6),
    .bm-member-table tbody td:nth-child(5),
    .bm-member-table tbody td:nth-child(6) {
        display: none;
    }
}

/* ── 24. Member groups ───────────────────────────────────── */
.bm-mgroup-metric {
    min-height: 94px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bm-surface);
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    box-shadow: var(--bm-shadow-xs);
}

.bm-mgroup-metric__icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--bm-primary-light);
    color: var(--bm-primary);
    font-size: 1.05rem;
}

.bm-mgroup-metric__icon--active { background: #eff6ff; color: #2563eb; }
.bm-mgroup-metric__icon--empty { background: #f1f5f9; color: #64748b; }
.bm-mgroup-metric__icon--assign { background: #fef3c7; color: #b45309; }

.bm-mgroup-metric__label {
    color: var(--bm-text-muted);
    font-size: .74rem;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.bm-mgroup-metric__value {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--bm-text);
}

.bm-mgroup-metric__hint {
    margin-top: 2px;
    line-height: 1.2;
    font-size: .72rem;
}

.bm-mgroup-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bm-mgroup-quick__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius-sm);
    color: inherit;
    background: var(--bm-surface);
    font-size: .84rem;
    font-weight: 600;
    transition: border-color var(--bm-ease), background var(--bm-ease), transform var(--bm-ease);
}

.bm-mgroup-quick__item:hover {
    border-color: #a7d8d3;
    background: var(--bm-primary-light);
    color: inherit;
    transform: translateY(-1px);
}

.bm-mgroup-quick__item .bi { color: var(--bm-primary); }

.bm-mgroup-form-card {
    position: sticky;
    top: calc(var(--bm-topbar-height) + 12px);
}

.bm-mgroup-form-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.bm-mgroup-form-head__icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--bm-primary-light);
    color: var(--bm-primary);
    font-size: 1.05rem;
}

.bm-mgroup-form-head__title {
    margin: 0;
    font-size: .95rem;
    font-weight: 750;
}

.bm-mgroup-form-head__sub {
    color: var(--bm-text-muted);
    font-size: .76rem;
}

.bm-mgroup-table-card {
    overflow: hidden;
}

.bm-mgroup-table thead th {
    padding: 12px 14px;
    background: #f8fafc;
    border-bottom: 1px solid var(--bm-border);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--bm-text-muted);
    white-space: nowrap;
}

.bm-mgroup-table tbody td {
    padding: 12px 14px;
    vertical-align: middle;
    border-bottom: 1px solid var(--bm-border);
    font-size: .875rem;
}

.bm-mgroup-table tbody tr {
    transition: background var(--bm-ease);
}

.bm-mgroup-table tbody tr:hover {
    background: #f8fffe;
}

.bm-mgroup-table tbody tr:last-child td {
    border-bottom: 0;
}

.bm-mgroup-table__name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bm-mgroup-table__icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #fef3c7;
    color: #b45309;
    font-size: .95rem;
}

.bm-mgroup-table__desc {
    display: block;
    max-width: 320px;
    color: var(--bm-text-muted);
    line-height: 1.45;
}

.bm-mgroup-count {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--bm-primary-light);
    color: var(--bm-primary-dark);
    font-size: .82rem;
    font-weight: 700;
    transition: background var(--bm-ease), color var(--bm-ease);
}

.bm-mgroup-count:hover {
    background: #ccfbf1;
    color: var(--bm-primary-dark);
}

@media (max-width: 991.98px) {
    .bm-mgroup-form-card {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .bm-mgroup-table thead th:nth-child(3),
    .bm-mgroup-table tbody td:nth-child(3) {
        display: none;
    }
}

/* ── 25. Courts ──────────────────────────────────────────── */
.bm-court-metric {
    min-height: 94px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bm-surface);
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    box-shadow: var(--bm-shadow-xs);
}

.bm-court-metric__icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--bm-primary-light);
    color: var(--bm-primary);
    font-size: 1.05rem;
}

.bm-court-metric__icon--slots { background: #eff6ff; color: #2563eb; }
.bm-court-metric__icon--map { background: #f0fdf4; color: #15803d; }
.bm-court-metric__icon--media { background: #fef3c7; color: #b45309; }

.bm-court-metric__label {
    color: var(--bm-text-muted);
    font-size: .74rem;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.bm-court-metric__value {
    margin-top: 2px;
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.1;
}

.bm-court-filter .form-label {
    margin-bottom: 5px;
    color: var(--bm-text-muted);
    font-size: .76rem;
    font-weight: 600;
}

.bm-court-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bm-court-quick__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius-sm);
    color: inherit;
    background: var(--bm-surface);
    font-size: .84rem;
    font-weight: 600;
    transition: border-color var(--bm-ease), background var(--bm-ease), transform var(--bm-ease);
}

.bm-court-quick__item:hover {
    border-color: #a7d8d3;
    background: var(--bm-primary-light);
    color: inherit;
    transform: translateY(-1px);
}

.bm-court-quick__item .bi { color: var(--bm-primary); }

.bm-court-table-card {
    overflow: hidden;
}

.bm-court-table thead th {
    padding: 12px 14px;
    background: #f8fafc;
    border-bottom: 1px solid var(--bm-border);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--bm-text-muted);
    white-space: nowrap;
}

.bm-court-table tbody td {
    padding: 12px 14px;
    vertical-align: middle;
    border-bottom: 1px solid var(--bm-border);
    font-size: .875rem;
}

.bm-court-table tbody tr {
    transition: background var(--bm-ease);
}

.bm-court-table tbody tr:hover {
    background: #f8fffe;
}

.bm-court-table tbody tr:last-child td {
    border-bottom: 0;
}

.bm-court-table__name {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 160px;
}

.bm-court-table__avatar {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: linear-gradient(135deg, #0891b2 0%, var(--bm-primary) 100%);
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
}

.bm-court-table__note {
    margin-top: 2px;
    color: var(--bm-text-muted);
    font-size: .72rem;
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bm-court-area {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--bm-text-muted);
    font-size: .84rem;
}

.bm-court-area .bi {
    color: var(--bm-primary);
}

.bm-court-fee {
    font-weight: 700;
    color: var(--bm-text);
}

.bm-court-fee small {
    margin-left: 1px;
    font-size: .78rem;
    opacity: .75;
}

.bm-court-slots {
    display: inline-flex;
    min-width: 28px;
    justify-content: center;
    padding: 3px 8px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: .82rem;
    font-weight: 700;
}

.bm-court-media {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.bm-court-media__tag {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #475569;
    font-size: .85rem;
}

.bm-court-media__tag--extra {
    width: auto;
    min-width: 28px;
    padding: 0 7px;
    background: #fef3c7;
    color: #92400e;
    font-size: .72rem;
    font-weight: 700;
}

.bm-court-map-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid var(--bm-border);
    color: var(--bm-primary);
    font-size: .72rem;
    font-weight: 650;
    transition: border-color var(--bm-ease), background var(--bm-ease);
}

.bm-court-map-link:hover {
    border-color: #a7d8d3;
    background: var(--bm-primary-light);
    color: var(--bm-primary-dark);
}

.bm-court-form {
    display: grid;
    gap: 18px;
}

.bm-court-form__section {
    padding: 18px;
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    background: #fff;
}

.bm-court-form__head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.bm-court-form__icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--bm-primary-light);
    color: var(--bm-primary);
    font-size: 1.05rem;
}

.bm-court-form__icon--green { background: #f0fdf4; color: #15803d; }
.bm-court-form__icon--blue { background: #eff6ff; color: #2563eb; }
.bm-court-form__icon--amber { background: #fef3c7; color: #b45309; }

.bm-court-form__title {
    margin: 0;
    font-size: .95rem;
    font-weight: 750;
}

.bm-court-form__sub {
    color: var(--bm-text-muted);
    font-size: .76rem;
}

.bm-court-form__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 4px;
}

.bm-court-form-card,
.bm-court-images-card {
    overflow: hidden;
}

@media (max-width: 767.98px) {
    .bm-court-table thead th:nth-child(2),
    .bm-court-table tbody td:nth-child(2) {
        display: none;
    }
}

/* ── Reports ── */
.bm-report-filter .form-label {
    font-size: .78rem;
    font-weight: 650;
    color: var(--bm-text-muted);
}

.bm-report-profit-hero {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 20px 28px;
    padding: 24px 26px;
    border-radius: calc(var(--bm-radius) + 4px);
    border: 1px solid #bbf7d0;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 45%, #fff 100%);
    overflow: hidden;
}

.bm-report-profit-hero.is-negative {
    border-color: #fecaca;
    background: linear-gradient(135deg, #fef2f2 0%, #fff1f2 45%, #fff 100%);
}

.bm-report-profit-hero__glow {
    position: absolute;
    top: -40%;
    right: -5%;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 197, 94, .18) 0%, transparent 70%);
    pointer-events: none;
}

.bm-report-profit-hero.is-negative .bm-report-profit-hero__glow {
    background: radial-gradient(circle, rgba(239, 68, 68, .15) 0%, transparent 70%);
}

.bm-report-profit-hero__main {
    position: relative;
    flex: 1 1 240px;
    min-width: 0;
}

.bm-report-profit-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #15803d;
}

.bm-report-profit-hero.is-negative .bm-report-profit-hero__eyebrow { color: #b91c1c; }

.bm-report-profit-hero__value {
    font-size: clamp(2.2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.03em;
    color: #15803d;
}

.bm-report-profit-hero.is-negative .bm-report-profit-hero__value { color: #dc2626; }

.bm-report-profit-hero__value small {
    margin-left: 2px;
    font-size: .45em;
    font-weight: 700;
    opacity: .8;
}

.bm-report-profit-hero__meta {
    margin-top: 10px;
    font-size: .88rem;
    color: var(--bm-text-muted);
}

.bm-report-profit-hero__sep {
    margin: 0 6px;
    opacity: .45;
}

.bm-report-margin-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    background: #dcfce7;
    color: #15803d;
    font-size: .82rem;
    font-weight: 750;
}

.bm-report-margin-badge.is-negative {
    background: #fee2e2;
    color: #b91c1c;
}

.bm-report-profit-hero__side {
    position: relative;
    flex: 0 1 220px;
    min-width: 180px;
    display: flex;
    align-items: center;
}

.bm-report-profit-split {
    width: 100%;
}

.bm-report-profit-split__bar {
    display: flex;
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    background: #e2e8f0;
}

.bm-report-profit-split__profit {
    background: linear-gradient(90deg, #16a34a, #22c55e);
    min-width: 0;
    transition: width .6s ease;
}

.bm-report-profit-hero.is-negative .bm-report-profit-split__profit {
    background: linear-gradient(90deg, #dc2626, #ef4444);
}

.bm-report-profit-split__cost {
    background: #cbd5e1;
    min-width: 0;
}

.bm-report-profit-split__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 10px;
    font-size: .72rem;
    color: var(--bm-text-muted);
}

.bm-report-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 4px;
    border-radius: 50%;
    vertical-align: middle;
}

.bm-report-dot--profit { background: #22c55e; }
.bm-report-dot--cost { background: #94a3b8; }
.bm-report-dot--revenue { background: #0891b2; }

.bm-report-chart-legend {
    flex-wrap: wrap;
    gap: 12px;
    font-size: .72rem;
    color: var(--bm-text-muted);
    font-weight: 650;
}

.bm-report-dual-chart-wrap {
    position: relative;
    padding-top: 8px;
}

.bm-report-dual-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 6px;
    min-height: 180px;
    padding: 0 4px 4px;
}

.bm-report-dual-chart__group {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    position: relative;
}

.bm-report-dual-chart__bars {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    width: 100%;
    height: 150px;
}

.bm-report-dual-chart__bar {
    width: 42%;
    max-width: 18px;
    border-radius: 6px 6px 2px 2px;
    min-height: 4px;
    animation: bm-dash-bar-grow .6s ease backwards;
    animation-delay: var(--bm-bar-delay, 0ms);
    transition: opacity .2s ease, transform .2s ease;
}

.bm-report-dual-chart__bar--rev {
    background: linear-gradient(180deg, #0891b2, #06b6d4);
}

.bm-report-dual-chart__bar--profit {
    background: linear-gradient(180deg, #2563eb, #3b82f6);
}

.bm-report-dual-chart__bar--profit.is-pos {
    background: linear-gradient(180deg, #16a34a, #22c55e);
}

.bm-report-dual-chart__bar--profit.is-neg {
    background: linear-gradient(180deg, #dc2626, #ef4444);
}

.bm-report-dual-chart__group:hover .bm-report-dual-chart__bar,
.bm-report-dual-chart__group.is-current .bm-report-dual-chart__bar {
    opacity: 1;
    transform: scaleY(1.02);
}

.bm-report-dual-chart__tooltip {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 10px;
    border-radius: 8px;
    background: #0f172a;
    color: #fff;
    font-size: .68rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
    z-index: 2;
    text-align: center;
}

.bm-report-dual-chart__tooltip strong {
    display: block;
    font-size: .72rem;
}

.bm-report-dual-chart__group:hover .bm-report-dual-chart__tooltip,
.bm-report-dual-chart__group.is-current .bm-report-dual-chart__tooltip {
    opacity: 1;
}

.bm-report-dual-chart__label {
    margin-top: 8px;
    font-size: .68rem;
    font-weight: 650;
    color: var(--bm-text-muted);
    text-transform: capitalize;
}

.bm-report-dual-chart__group.is-current .bm-report-dual-chart__label {
    color: var(--bm-primary);
    font-weight: 800;
}

.bm-report-table-card { overflow: hidden; }

.bm-report-table thead th {
    padding: 12px 14px;
    background: #f8fafc;
    border-bottom: 1px solid var(--bm-border);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--bm-text-muted);
    white-space: nowrap;
}

.bm-report-table tbody td,
.bm-report-table tfoot td {
    padding: 12px 14px;
    vertical-align: middle;
    border-bottom: 1px solid var(--bm-border);
    font-size: .875rem;
}

.bm-report-table tbody tr:hover { background: #f8fffe; }
.bm-report-table tbody tr.is-current-month { background: #f0fdfa; }
.bm-report-table tbody tr:last-child td { border-bottom: 0; }

.bm-report-table__profit-col {
    min-width: 120px;
    background: linear-gradient(90deg, transparent, rgba(34, 197, 94, .04));
}

.bm-report-table thead .bm-report-table__profit-col {
    background: #f0fdf4;
    color: #15803d;
}

.bm-report-profit-cell {
    display: inline-block;
    font-size: 1rem;
    font-weight: 800;
}

.bm-report-margin-bar {
    margin-top: 6px;
    height: 4px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.bm-report-margin-bar__fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    min-width: 2px;
}

.bm-report-margin-bar__fill.profit-pos { background: #22c55e; }
.bm-report-margin-bar__fill.profit-neg { background: #ef4444; }

.bm-report-table__total {
    background: #f8fafc;
    border-top: 2px solid var(--bm-border);
}

.bm-report-table__total td { border-bottom: 0; }

.bm-report-badge-now {
    font-size: .62rem;
    vertical-align: middle;
}

.bm-report-unpaid.has-items {
    border-color: #fecaca;
}

.bm-report-unpaid__icon--warn {
    background: #fef2f2 !important;
    color: #dc2626 !important;
}

.bm-report-unpaid__amount {
    font-weight: 800;
    color: #b45309;
}

.bm-report-rank__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px !important;
}

.bm-report-rank__medal {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #f1f5f9;
    color: #64748b;
    font-size: .78rem;
    font-weight: 800;
}

.bm-report-rank__medal--gold {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
}

.bm-report-rank__medal--silver {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    color: #475569;
}

.bm-report-rank__medal--bronze {
    background: linear-gradient(135deg, #ffedd5, #fed7aa);
    color: #9a3412;
}

.bm-report-rank__body { flex: 1 1 auto; }

.bm-report-rank__value {
    flex: 0 0 auto;
    font-size: .95rem;
    white-space: nowrap;
}

.bm-report-rank__value small {
    font-size: .72rem;
    font-weight: 600;
    opacity: .75;
}

@media (max-width: 767.98px) {
    .bm-report-profit-hero {
        padding: 18px 16px;
    }

    .bm-report-profit-hero__side {
        flex: 1 1 100%;
    }

    .bm-report-dual-chart__bars {
        height: 120px;
    }
}

/* ── Account ── */
.bm-account-hero {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    padding: 22px 24px;
    border-radius: calc(var(--bm-radius) + 4px);
    border: 1px solid #c7eae6;
    background: linear-gradient(135deg, #f0fdfa 0%, #ecfeff 50%, #fff 100%);
    overflow: hidden;
}

.bm-account-hero__glow {
    position: absolute;
    top: -50%;
    right: -8%;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(8, 145, 178, .14) 0%, transparent 70%);
    pointer-events: none;
}

.bm-account-hero__profile {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1 1 240px;
}

.bm-account-hero__avatar {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #0891b2 0%, var(--bm-primary) 100%);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: .02em;
    box-shadow: 0 8px 20px rgba(8, 145, 178, .25);
}

.bm-account-hero__name {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

.bm-account-hero__email {
    color: var(--bm-text-muted);
    font-size: .88rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bm-account-hero__meta {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.bm-account-role {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 750;
}

.bm-account-role--admin {
    background: #fef3c7;
    color: #92400e;
}

.bm-account-role--ctv {
    background: #e6f7f5;
    color: var(--bm-primary-dark);
}

.bm-account-role--viewer {
    background: #f1f5f9;
    color: #475569;
}

.bm-account-bank-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 650;
}

.bm-account-bank-status.is-ready {
    background: #f0fdf4;
    color: #15803d;
}

.bm-account-bank-status.is-missing {
    background: #fff7ed;
    color: #c2410c;
}

.bm-account-form-card {
    overflow: hidden;
}

.bm-account-form {
    display: grid;
    gap: 18px;
}

.bm-account-form__section {
    padding: 18px;
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    background: #fff;
}

.bm-account-form__head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.bm-account-form__icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--bm-primary-light);
    color: var(--bm-primary);
    font-size: 1.05rem;
}

.bm-account-form__icon--amber { background: #fef3c7; color: #b45309; }
.bm-account-form__icon--green { background: #f0fdf4; color: #15803d; }

.bm-account-form__title {
    margin: 0;
    font-size: .95rem;
    font-weight: 750;
}

.bm-account-form__sub {
    color: var(--bm-text-muted);
    font-size: .76rem;
}

.bm-account-form__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 4px;
}

.bm-account-side {
    overflow: hidden;
}

.bm-account-side--hotline {
    border-color: #a7d8d3;
}

.bm-account-side--ok {
    border-color: #bbf7d0;
    background: linear-gradient(180deg, #f0fdf4 0%, #fff 100%);
}

.bm-account-side__head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.bm-account-side__icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #fef3c7;
    color: #b45309;
    font-size: 1rem;
}

.bm-account-side__icon--phone {
    background: var(--bm-primary-light);
    color: var(--bm-primary);
}

.bm-account-side__title {
    margin: 0;
    font-size: .92rem;
    font-weight: 750;
}

.bm-account-side__sub {
    color: var(--bm-text-muted);
    font-size: .76rem;
}

.bm-account-side__check {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: #dcfce7;
    color: #15803d;
    font-size: 1.1rem;
}

.bm-account-tips {
    padding-left: 1.1rem;
    color: var(--bm-text-muted);
    font-size: .82rem;
}

.bm-account-tips li + li {
    margin-top: 8px;
}

.bm-account-hotline {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #a7d8d3;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: border-color var(--bm-ease), background var(--bm-ease), transform var(--bm-ease);
}

.bm-account-hotline:hover {
    border-color: var(--bm-primary);
    background: var(--bm-primary-light);
    color: inherit;
    transform: translateY(-1px);
}

.bm-account-hotline__label {
    display: block;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--bm-text-muted);
}

.bm-account-hotline__number {
    flex: 1 1 auto;
    font-size: 1.05rem;
    color: var(--bm-primary-dark);
}

.bm-account-hotline__arrow {
    font-size: 1.4rem;
    color: var(--bm-primary);
}

@media (max-width: 767.98px) {
    .bm-account-hero {
        padding: 16px;
    }

    .bm-account-hero__meta {
        width: 100%;
    }

    .bm-account-form__section {
        padding: 14px;
    }
}

/* ── Users (admin accounts) ── */
.bm-user-metric {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    background: #fff;
    height: 100%;
}

.bm-user-metric__icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--bm-primary-light);
    color: var(--bm-primary);
    font-size: 1.1rem;
}

.bm-user-metric__icon--admin { background: #fef3c7; color: #b45309; }
.bm-user-metric__icon--ctv { background: #e6f7f5; color: var(--bm-primary-dark); }
.bm-user-metric__icon--bank { background: #f0fdf4; color: #15803d; }

.bm-user-metric__label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--bm-text-muted);
}

.bm-user-metric__value {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.1;
}

.bm-user-filter .form-label {
    font-size: .78rem;
    font-weight: 650;
    color: var(--bm-text-muted);
}

.bm-user-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bm-user-quick__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--bm-border);
    background: #fff;
    color: var(--bm-text);
    font-size: .84rem;
    font-weight: 650;
    text-decoration: none;
    transition: border-color var(--bm-ease), background var(--bm-ease);
}

.bm-user-quick__item:hover {
    border-color: #a7d8d3;
    background: var(--bm-primary-light);
    color: var(--bm-primary-dark);
}

.bm-user-quick__item .bi { color: var(--bm-primary); }

.bm-user-empty { overflow: hidden; }

.bm-user-table-card { overflow: hidden; }

.bm-user-table thead th {
    padding: 12px 14px;
    background: #f8fafc;
    border-bottom: 1px solid var(--bm-border);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--bm-text-muted);
    white-space: nowrap;
}

.bm-user-table tbody td {
    padding: 12px 14px;
    vertical-align: middle;
    border-bottom: 1px solid var(--bm-border);
    font-size: .875rem;
}

.bm-user-table tbody tr:hover { background: #f8fffe; }
.bm-user-table tbody tr:last-child td { border-bottom: 0; }

.bm-user-table__person {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 180px;
}

.bm-user-table__avatar {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    font-size: .78rem;
    font-weight: 800;
    color: #fff;
}

.bm-user-table__avatar--admin { background: linear-gradient(135deg, #d97706, #f59e0b); }
.bm-user-table__avatar--ctv { background: linear-gradient(135deg, #0891b2, var(--bm-primary)); }
.bm-user-table__avatar--viewer { background: linear-gradient(135deg, #64748b, #94a3b8); }

.bm-user-table__name { font-weight: 700; }

.bm-user-table__email {
    font-size: .78rem;
    color: var(--bm-text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bm-user-role {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 750;
}

.bm-user-role--admin { background: #fef3c7; color: #92400e; }
.bm-user-role--ctv { background: #e6f7f5; color: var(--bm-primary-dark); }
.bm-user-role--viewer { background: #f1f5f9; color: #475569; }

.bm-user-bank {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 220px;
    font-size: .78rem;
    font-weight: 650;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bm-user-bank--ok { color: #15803d; }
.bm-user-bank--missing { color: #c2410c; }

.bm-user-form-card { overflow: hidden; }

.bm-user-form {
    display: grid;
    gap: 18px;
}

.bm-user-form__section {
    padding: 18px;
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    background: #fff;
}

.bm-user-form__head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.bm-user-form__icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--bm-primary-light);
    color: var(--bm-primary);
    font-size: 1.05rem;
}

.bm-user-form__icon--amber { background: #fef3c7; color: #b45309; }
.bm-user-form__icon--green { background: #f0fdf4; color: #15803d; }

.bm-user-form__title {
    margin: 0;
    font-size: .95rem;
    font-weight: 750;
}

.bm-user-form__sub {
    color: var(--bm-text-muted);
    font-size: .76rem;
}

.bm-user-form__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 4px;
}

.bm-user-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    padding: 20px 22px;
    border-radius: calc(var(--bm-radius) + 4px);
    border: 1px solid var(--bm-border);
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
}

.bm-user-hero__profile {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1 1 240px;
}

.bm-user-hero__avatar {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
}

.bm-user-hero__avatar--admin { background: linear-gradient(135deg, #d97706, #f59e0b); }
.bm-user-hero__avatar--ctv { background: linear-gradient(135deg, #0891b2, var(--bm-primary)); }
.bm-user-hero__avatar--viewer { background: linear-gradient(135deg, #64748b, #94a3b8); }

.bm-user-hero__name {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
}

.bm-user-hero__email {
    color: var(--bm-text-muted);
    font-size: .86rem;
}

.bm-user-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.bm-user-bank-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 650;
}

.bm-user-bank-status.is-ready { background: #f0fdf4; color: #15803d; }
.bm-user-bank-status.is-missing { background: #fff7ed; color: #c2410c; }

.bm-user-side { overflow: hidden; }
.bm-user-side--ok { border-color: #bbf7d0; background: linear-gradient(180deg, #f0fdf4 0%, #fff 100%); }

.bm-user-side__head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.bm-user-side__icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #fef3c7;
    color: #b45309;
    font-size: 1rem;
}

.bm-user-side__icon--amber { background: #fef3c7; color: #b45309; }

.bm-user-side__check {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: #dcfce7;
    color: #15803d;
    font-size: 1.1rem;
}

.bm-user-side__title {
    margin: 0;
    font-size: .92rem;
    font-weight: 750;
}

.bm-user-side__text {
    color: var(--bm-text-muted);
    font-size: .82rem;
}

.bm-user-tips {
    padding-left: 1.1rem;
    color: var(--bm-text-muted);
    font-size: .82rem;
}

.bm-user-tips li + li { margin-top: 8px; }

@media (max-width: 767.98px) {
    .bm-user-form__section { padding: 14px; }
    .bm-user-hero { padding: 16px; }
    .bm-user-hero__meta { width: 100%; }
}

/* ── Levels ── */
.bm-level-metric {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    background: #fff;
    height: 100%;
}

.bm-level-metric__icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--bm-primary-light);
    color: var(--bm-primary);
    font-size: 1.1rem;
}

.bm-level-metric__icon--power { background: #fef3c7; color: #d97706; }
.bm-level-metric__icon--empty { background: #f1f5f9; color: #64748b; }
.bm-level-metric__icon--max { background: #eff6ff; color: #2563eb; }

.bm-level-metric__label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--bm-text-muted);
}

.bm-level-metric__value {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.1;
}

.bm-level-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bm-level-quick__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--bm-border);
    background: #fff;
    color: var(--bm-text);
    font-size: .84rem;
    font-weight: 650;
    text-decoration: none;
    transition: border-color var(--bm-ease), background var(--bm-ease);
}

.bm-level-quick__item:hover {
    border-color: #a7d8d3;
    background: var(--bm-primary-light);
    color: var(--bm-primary-dark);
}

.bm-level-quick__item .bi { color: var(--bm-primary); }

.bm-level-form-card,
.bm-level-side {
    overflow: hidden;
}

.bm-level-form-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.bm-level-form-head__icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--bm-primary-light);
    color: var(--bm-primary);
    font-size: 1.05rem;
}

.bm-level-form-head__title {
    margin: 0;
    font-size: .95rem;
    font-weight: 750;
}

.bm-level-form-head__sub {
    color: var(--bm-text-muted);
    font-size: .76rem;
}

.bm-level-side__head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.bm-level-side__icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #fef3c7;
    color: #b45309;
    font-size: 1rem;
}

.bm-level-side__title {
    margin: 0;
    font-size: .92rem;
    font-weight: 750;
}

.bm-level-tips {
    padding-left: 1.1rem;
    color: var(--bm-text-muted);
    font-size: .82rem;
}

.bm-level-tips li + li { margin-top: 8px; }

.bm-level-filter .form-label {
    font-size: .78rem;
    font-weight: 650;
    color: var(--bm-text-muted);
}

.bm-level-empty { overflow: hidden; }

.bm-level-table-card { overflow: hidden; }

.bm-level-table thead th {
    padding: 12px 14px;
    background: #f8fafc;
    border-bottom: 1px solid var(--bm-border);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--bm-text-muted);
    white-space: nowrap;
}

.bm-level-table tbody td {
    padding: 12px 14px;
    vertical-align: middle;
    border-bottom: 1px solid var(--bm-border);
    font-size: .875rem;
}

.bm-level-table tbody tr:hover { background: #f8fffe; }
.bm-level-table tbody tr:last-child td { border-bottom: 0; }

.bm-level-table__name {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 120px;
}

.bm-level-table__icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: linear-gradient(135deg, #0891b2, var(--bm-primary));
    color: #fff;
    font-size: .9rem;
}

.bm-level-power-cell { min-width: 180px; }

.bm-level-power-input {
    width: 110px;
    font-weight: 650;
}

.bm-level-power-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 750;
}

.bm-level-power-badge--high { background: #fef3c7; color: #92400e; }
.bm-level-power-badge--mid { background: #eff6ff; color: #1d4ed8; }
.bm-level-power-badge--low { background: #f0fdf4; color: #15803d; }
.bm-level-power-badge--none { background: #f1f5f9; color: #64748b; }

.bm-level-power-bar {
    margin-top: 8px;
    height: 4px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.bm-level-power-bar__fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    min-width: 0;
    transition: width .35s ease;
}

.bm-level-power-bar__fill--high { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.bm-level-power-bar__fill--mid { background: linear-gradient(90deg, #2563eb, #3b82f6); }
.bm-level-power-bar__fill--low { background: linear-gradient(90deg, #16a34a, #22c55e); }
.bm-level-power-bar__fill--none { background: #cbd5e1; }

@media (max-width: 767.98px) {
    .bm-level-power-input { width: 90px; }
}

/* ── Admin · ImgBB upload ── */
.bm-admin-upload-hero {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    padding: 22px 24px;
    border-radius: calc(var(--bm-radius) + 4px);
    border: 1px solid #bfdbfe;
    background: linear-gradient(135deg, #eff6ff 0%, #ecfeff 45%, #fff 100%);
    overflow: hidden;
}

.bm-admin-upload-hero.is-missing {
    border-color: #fde68a;
    background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 45%, #fff 100%);
}

.bm-admin-upload-hero__glow {
    position: absolute;
    top: -45%;
    right: -6%;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, .12) 0%, transparent 70%);
    pointer-events: none;
}

.bm-admin-upload-hero.is-missing .bm-admin-upload-hero__glow {
    background: radial-gradient(circle, rgba(245, 158, 11, .12) 0%, transparent 70%);
}

.bm-admin-upload-hero__main {
    position: relative;
    flex: 1 1 280px;
    min-width: 0;
}

.bm-admin-upload-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #1d4ed8;
}

.bm-admin-upload-hero.is-missing .bm-admin-upload-hero__eyebrow { color: #b45309; }

.bm-admin-upload-hero__title {
    margin: 0 0 8px;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

.bm-admin-upload-hero__sub {
    color: var(--bm-text-muted);
    font-size: .88rem;
}

.bm-admin-upload-hero__sub code {
    font-size: .82em;
}

.bm-admin-upload-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 750;
}

.bm-admin-upload-status.is-ok {
    background: #dcfce7;
    color: #15803d;
}

.bm-admin-upload-status.is-warn {
    background: #fef3c7;
    color: #92400e;
}

.bm-admin-upload-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bm-admin-upload-quick__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--bm-border);
    background: #fff;
    color: var(--bm-text);
    font-size: .84rem;
    font-weight: 650;
    text-decoration: none;
    transition: border-color var(--bm-ease), background var(--bm-ease);
}

.bm-admin-upload-quick__item:hover {
    border-color: #a7d8d3;
    background: var(--bm-primary-light);
    color: var(--bm-primary-dark);
}

.bm-admin-upload-quick__item .bi { color: var(--bm-primary); }

.bm-admin-upload-panel,
.bm-admin-upload-result,
.bm-admin-upload-side {
    overflow: hidden;
}

.bm-admin-upload-panel__head,
.bm-admin-upload-result__head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.bm-admin-upload-panel__icon,
.bm-admin-upload-result__icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--bm-primary-light);
    color: var(--bm-primary);
    font-size: 1.05rem;
}

.bm-admin-upload-result__icon {
    background: #dcfce7;
    color: #15803d;
}

.bm-admin-upload-panel__title,
.bm-admin-upload-result__title {
    margin: 0;
    font-size: .95rem;
    font-weight: 750;
}

.bm-admin-upload-panel__sub,
.bm-admin-upload-result__sub {
    color: var(--bm-text-muted);
    font-size: .76rem;
}

.bm-admin-upload-form {
    display: grid;
    gap: 0;
}

.bm-admin-drop-zone {
    min-height: 220px;
    border: 2px dashed #cbd5e1;
    border-radius: 14px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}

.bm-admin-drop-zone:hover,
.bm-admin-drop-zone.is-dragging {
    border-color: #2563eb;
    background: #eff6ff;
}

.bm-admin-drop-zone__icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 1.65rem;
    margin-bottom: 12px;
}

.bm-admin-drop-zone__title {
    font-weight: 700;
}

.bm-admin-drop-zone__hint {
    margin-top: 4px;
    color: var(--bm-text-muted);
    font-size: .78rem;
}

.bm-admin-local-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding: 10px;
    border: 1px solid var(--bm-border);
    border-radius: 10px;
    background: #fff;
}

.bm-admin-local-preview img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    background: #f1f5f9;
}

.bm-admin-upload-side__head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.bm-admin-upload-side__icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #fef3c7;
    color: #b45309;
    font-size: 1rem;
}

.bm-admin-upload-side__title {
    margin: 0;
    font-size: .92rem;
    font-weight: 750;
}

.bm-admin-upload-tips {
    padding-left: 1.1rem;
    color: var(--bm-text-muted);
    font-size: .82rem;
}

.bm-admin-upload-tips li + li { margin-top: 8px; }

.bm-admin-upload-result--empty {
    min-height: 360px;
}

.bm-admin-upload-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: #f1f5f9;
    color: #64748b;
    font-size: 1.75rem;
}

.bm-admin-upload-preview {
    min-height: 220px;
    max-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid var(--bm-border);
}

.bm-admin-upload-preview img {
    max-width: 100%;
    max-height: 420px;
    object-fit: contain;
}

.bm-admin-upload-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    color: var(--bm-text-muted);
    font-size: .82rem;
    font-weight: 650;
}

.bm-admin-upload-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.bm-admin-upload-meta .bi { color: var(--bm-primary); }

.bm-admin-upload-links {
    display: grid;
    gap: 14px;
}

.bm-admin-link-field__label {
    margin-bottom: 6px;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--bm-text-muted);
}

.bm-admin-link-field__input {
    font-size: .78rem !important;
}

.bm-admin-link-field__help {
    margin-top: 6px;
    color: var(--bm-text-muted);
    font-size: .76rem;
}

.bm-admin-link-field--danger .input-group-text {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

.bm-admin-link-field--primary .input-group-text {
    background: #eff6ff;
    color: #2563eb;
}

@media (max-width: 767.98px) {
    .bm-admin-upload-hero { padding: 16px; }
    .bm-admin-upload-hero__badge { width: 100%; }
}

.bm-session-add-member-list--modal {
    max-height: min(50vh, 320px);
}

/* ── Session · add member picker ── */
.bm-session-add-member-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 240px;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    background: #f8fafc;
}

.bm-session-add-member-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: #fff;
    text-align: left;
    transition: border-color var(--bm-ease), background var(--bm-ease), box-shadow var(--bm-ease);
}

.bm-session-add-member-item:hover {
    border-color: #a7d8d3;
    background: var(--bm-primary-light);
}

.bm-session-add-member-item.is-selected {
    border-color: var(--bm-primary);
    background: #ecfdf5;
    box-shadow: 0 0 0 1px rgba(8, 145, 178, .15);
}

.bm-session-add-member-item__avatar {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: linear-gradient(135deg, #0891b2, var(--bm-primary));
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
}

.bm-session-add-member-item__body {
    flex: 1 1 auto;
    min-width: 0;
}

.bm-session-add-member-item__name {
    display: block;
    font-weight: 700;
    font-size: .88rem;
}

.bm-session-add-member-item__meta {
    display: block;
    margin-top: 2px;
    color: var(--bm-text-muted);
    font-size: .72rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bm-session-add-member-item__check {
    flex: 0 0 auto;
    color: var(--bm-primary);
    font-size: 1.1rem;
    opacity: 0;
    transition: opacity var(--bm-ease);
}

.bm-session-add-member-item.is-selected .bm-session-add-member-item__check {
    opacity: 1;
}

.bm-session-add-member-item__name.text-success {
    color: var(--bs-success) !important;
}

.bm-session-player-name--group {
    color: #15803d !important;
}

.bm-companion-name .bm-session-player-name--group {
    color: #15803d !important;
}

.bm-session-add-member-empty {
    border: 1px dashed var(--bm-border);
    border-radius: var(--bm-radius);
    background: #fff;
}

/* ── Flatpickr (bm-date-input) ───────────────────────────── */
.flatpickr-wrapper {
    display: block;
    width: 100%;
}

.bm-date-input-display {
    width: 100%;
    min-height: calc(1.5em + .75rem + 2px);
    padding: .375rem .75rem;
    font-size: .9375rem;
    border: 1px solid var(--bm-border-strong);
    border-radius: var(--bm-radius-sm);
    background: #fff;
    color: var(--bm-text);
}

.bm-date-input-display:focus {
    border-color: var(--bm-primary);
    box-shadow: 0 0 0 .2rem rgba(15, 118, 110, .15);
    outline: 0;
}

/* 7 cột cố định — tránh lệch 8 ô/hàng khi width × max-width không khớp */
.flatpickr-calendar {
    width: 294px !important;
    border-radius: var(--bm-radius);
    box-shadow: var(--bm-shadow), 0 12px 28px rgba(15, 23, 42, .12);
    border: 1px solid var(--bm-border-strong);
    font-family: inherit;
    box-sizing: border-box;
    background: var(--bm-surface);
    overflow: hidden;
}

.flatpickr-calendar .flatpickr-days,
.flatpickr-calendar .dayContainer {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

.flatpickr-calendar .flatpickr-innerContainer {
    padding: 0 10px 10px;
}

.flatpickr-months {
    padding: 10px 12px 8px;
    border-bottom: 1px solid var(--bm-border);
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius-xs);
    height: 30px;
    line-height: 30px;
    padding: 0 8px;
    top: 8px;
    background: #fff;
    transition: border-color var(--bm-ease), background var(--bm-ease);
}

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
    border-color: var(--bm-border-strong);
    background: var(--bm-bg);
}

.flatpickr-current-month {
    font-size: 1rem;
    font-weight: 600;
    color: var(--bm-text);
}

.flatpickr-weekdays {
    width: 100%;
    margin-top: 8px;
    background: var(--bm-bg);
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius-sm) var(--bm-radius-sm) 0 0;
}

.flatpickr-weekdays .flatpickr-weekdaycontainer {
    width: 100%;
}

.flatpickr-weekday {
    flex: 0 0 calc(100% / 7) !important;
    max-width: calc(100% / 7) !important;
    font-size: .75rem;
    color: var(--bm-text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
    padding: 6px 0;
    border-right: 1px solid var(--bm-border);
}

.flatpickr-weekday:last-child {
    border-right: none;
}

.flatpickr-calendar .dayContainer {
    border: 1px solid var(--bm-border);
    border-top: none;
    border-radius: 0 0 var(--bm-radius-sm) var(--bm-radius-sm);
    background: #fff;
}

.flatpickr-day {
    flex: 0 0 calc(100% / 7) !important;
    width: calc(100% / 7) !important;
    max-width: calc(100% / 7) !important;
    height: 38px;
    line-height: 36px;
    font-size: .875rem;
    border-radius: 0;
    color: var(--bm-text);
    box-sizing: border-box;
    border: 1px solid var(--bm-border);
    border-top: none;
    border-left: none;
    margin: 0;
}

.flatpickr-day.today {
    border-color: var(--bm-border);
    box-shadow: inset 0 0 0 1px var(--bm-accent);
    color: var(--bm-accent);
    font-weight: 600;
    background: #eff6ff;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: var(--bm-accent);
    border-color: var(--bm-accent);
    box-shadow: none;
    color: #fff;
    font-weight: 600;
}

.flatpickr-day:hover,
.flatpickr-day.prevMonthDay:hover,
.flatpickr-day.nextMonthDay:hover {
    background: #e0ecff;
    border-color: var(--bm-border-strong);
    z-index: 1;
}

.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #fff;
}

.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
    color: var(--bm-text-light);
    background: #fafbfc;
}

.flatpickr-monthDropdown-months,
.numInputWrapper input {
    font-weight: 600;
}

.flatpickr-clear-btn {
    width: calc(100% - 20px);
    margin: 0 10px 10px;
    padding: 8px;
    border: 1px solid var(--bm-border-strong);
    border-radius: var(--bm-radius-sm);
    background: #fff;
    color: var(--bm-text-muted);
    font-weight: 600;
    cursor: pointer;
    transition: border-color var(--bm-ease), background var(--bm-ease), color var(--bm-ease);
}

.flatpickr-clear-btn:hover {
    background: var(--bm-bg);
    border-color: var(--bm-primary);
    color: var(--bm-primary);
}

/* ── Public home (guest session browse) ─────────────────────────────────── */
.bm-public-home {
    background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 28%, #f1f5f9 100%);
    min-height: 100dvh;
    color: var(--bm-text);
}

.bm-public-home__header {
    background: linear-gradient(135deg, #0f2f6e 0%, #1e40af 55%, #1d4ed8 100%);
    color: #fff;
    border-bottom: 4px solid #16a34a;
    box-shadow: 0 10px 30px rgba(15, 47, 110, .18);
}

.bm-public-home__brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}

.bm-public-home__brand img {
    border-radius: 10px;
    background: #fff;
    padding: 4px;
    object-fit: contain;
}

.bm-public-home__brand strong {
    display: block;
    font-size: 1.05rem;
    line-height: 1.2;
}

.bm-public-home__brand small {
    display: block;
    color: #bfdbfe;
    font-size: .78rem;
}

.bm-public-home__hero {
    max-width: 640px;
}

.bm-public-home__title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: .35rem;
}

.bm-public-home__lead {
    color: var(--bm-text-muted);
    font-size: .98rem;
}

.bm-public-home__filter {
    border: 1px solid var(--bm-border);
    border-radius: 16px;
    box-shadow: var(--bm-shadow-xs);
}

.bm-public-home__filter .form-label {
    margin-bottom: 4px;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--bm-text-muted);
}

.bm-public-home__sort-select {
    min-width: 7.5rem;
}

.bm-public-home__filter-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--bm-border);
}

.bm-public-home__chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.bm-public-home__chips-label {
    font-size: .75rem;
    font-weight: 700;
    color: var(--bm-text-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.bm-public-home__chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--bm-border);
    background: #fff;
    color: var(--bm-text);
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    transition: .15s ease;
}

.bm-public-home__chip:hover {
    border-color: var(--bm-primary);
    color: var(--bm-primary);
}

.bm-public-home__chip.active {
    background: var(--bm-primary);
    border-color: var(--bm-primary);
    color: #fff;
}

button.bm-public-home__chip {
    cursor: pointer;
    font: inherit;
}

.bm-public-home__session-grid {
    align-items: flex-start;
}

.bm-public-home__session-col {
    align-self: flex-start;
}

.bm-public-session {
    position: relative;
    display: block;
    height: auto;
    align-self: flex-start;
    width: 100%;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--bm-border);
    border-radius: 16px;
    box-shadow: var(--bm-shadow-xs);
    transition: transform .15s ease, box-shadow .15s ease;
}

.bm-public-session__main {
    display: flex;
    gap: 12px;
    min-width: 0;
}

.bm-public-session:hover {
    transform: translateY(-2px);
    box-shadow: var(--bm-shadow-sm);
}

.bm-public-session--today {
    border-color: #86efac;
    box-shadow: 0 0 0 1px rgba(22, 163, 74, .15), var(--bm-shadow-xs);
}

.bm-public-session__today-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #dcfce7;
    color: #15803d;
    font-size: .65rem;
    font-weight: 800;
    text-transform: uppercase;
    z-index: 1;
}

.bm-public-session__date {
    flex: 0 0 58px;
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 6px;
    border-radius: 10px;
    background: var(--bm-primary-light);
    color: var(--bm-primary);
    text-align: center;
}

.bm-public-session__day {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
}

.bm-public-session__month,
.bm-public-session__weekday {
    font-size: .66rem;
    font-weight: 700;
    line-height: 1.25;
}

.bm-public-session__body {
    min-width: 0;
    flex: 1;
}

.bm-public-session__head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 8px;
    padding-right: 4.5rem;
}

.bm-public-session__title {
    width: 100%;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.35;
    word-break: normal;
    overflow-wrap: anywhere;
}

.bm-public-session__status {
    flex: 0 0 auto;
}

.bm-public-session__facts {
    display: grid;
    gap: 4px;
    margin: 0 0 10px;
}

.bm-public-session__facts > div {
    display: grid;
    grid-template-columns: 5.5rem 1fr;
    gap: 6px;
    font-size: .84rem;
    line-height: 1.35;
}

.bm-public-session__facts dt {
    margin: 0;
    color: #64748b;
    font-weight: 600;
}

.bm-public-session__facts dd {
    margin: 0;
    color: var(--bm-text);
    font-weight: 500;
}

.bm-public-session__notice-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 10px;
    color: #92400e;
    font-size: .74rem;
    font-weight: 600;
}

.bm-public-session__notice-hint i {
    font-size: .82rem;
}

.bm-public-session__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bm-public-detail-modal {
    border: none;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(15, 23, 42, .18);
}

/* Khóa scroll nền khi modal mở (bổ sung Bootstrap, đặc biệt mobile) */
html.bm-modal-scroll-lock,
body.bm-modal-scroll-lock {
    overflow: hidden !important;
}

@media (hover: none) and (pointer: coarse) {
    html.bm-modal-scroll-lock,
    body.bm-modal-scroll-lock {
        height: 100%;
    }

    body.bm-modal-scroll-lock {
        position: fixed;
        width: 100%;
        left: 0;
        right: 0;
    }
}

.modal.show .modal-body {
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.modal-fullscreen-sm-down .bm-public-detail-modal {
    border-radius: 18px 18px 0 0;
}

.bm-public-detail-modal__head {
    padding-right: 2rem;
}

.bm-public-detail-modal__date {
    margin: 0 0 4px;
    color: #64748b;
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.bm-public-detail-modal__title {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.35;
}

.bm-public-detail-modal__facts {
    display: grid;
    gap: 12px;
    margin: 0;
}

.bm-public-detail-modal__facts > div {
    display: grid;
    grid-template-columns: 7rem 1fr;
    gap: 8px;
    align-items: start;
}

.bm-public-detail-modal__facts dt {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: #64748b;
    font-size: .84rem;
    font-weight: 600;
}

.bm-public-detail-modal__facts dt i {
    color: var(--bm-primary);
}

.bm-public-detail-modal__facts dd {
    margin: 0;
    color: var(--bm-text);
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.4;
}

.bm-public-detail-modal__notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    font-size: .84rem;
    line-height: 1.45;
}

.bm-public-detail-modal__notice i {
    flex: 0 0 auto;
    margin-top: 2px;
    font-size: .95rem;
}

.bm-public-detail-modal__notice p {
    margin-top: 4px;
    white-space: pre-wrap;
}

.bm-public-session__notice {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 8px;
    padding: 6px 8px;
    border-radius: 8px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    font-size: .76rem;
    line-height: 1.4;
}

.bm-public-session__notice i {
    flex: 0 0 auto;
    margin-top: 1px;
    font-size: .78rem;
}

.bm-public-home__empty {
    text-align: center;
    padding: 48px 20px;
    background: #fff;
    border: 1px dashed var(--bm-border);
    border-radius: 18px;
}

.bm-public-home__empty i {
    font-size: 2.5rem;
    color: #94a3b8;
    margin-bottom: 12px;
}

.bm-public-home__footer {
    border-top: 1px solid var(--bm-border);
    background: rgba(255, 255, 255, .85);
}

.bm-public-home__promo {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px 22px;
    padding: 20px 22px;
    margin-bottom: 20px;
    border-radius: 18px;
    border: 1px solid #bfdbfe;
    background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
    box-shadow: var(--bm-shadow-xs);
}

.bm-public-home__promo-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #fff;
    color: var(--bm-primary);
    font-size: 1.45rem;
    box-shadow: 0 4px 14px rgba(30, 64, 175, .12);
}

.bm-public-home__promo-eyebrow {
    margin: 0 0 4px;
    color: #15803d;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.bm-public-home__promo-title {
    margin: 0 0 6px;
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    font-weight: 800;
    line-height: 1.35;
    color: var(--bm-text);
}

.bm-public-home__promo-desc {
    color: #475569;
    font-size: .88rem;
    line-height: 1.5;
}

.bm-public-home__promo-action {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    min-width: 210px;
}

.bm-public-home__promo-note {
    color: #64748b;
    font-size: .72rem;
    line-height: 1.35;
    text-align: center;
}

.bm-public-home__footer-bottom {
    padding-top: 4px;
}

.bm-public-home__result-summary {
    padding-left: 2px;
}

.bm-public-home__pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding-top: 8px;
}

.bm-public-home__pagination-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.bm-public-home__page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid #bfdbfe;
    background: #fff;
    color: #1d4ed8;
    font-weight: 700;
    font-size: .88rem;
    font-family: inherit;
    text-decoration: none;
    line-height: 1;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.bm-public-home__page-btn:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1e3a8a;
}

.bm-public-home__page-btn.is-active {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #fff;
    cursor: default;
}

.bm-public-home__page-btn.is-disabled {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
}

.bm-public-home__page-ellipsis {
    color: #94a3b8;
    font-weight: 700;
    padding: 0 2px;
    user-select: none;
}

.bm-public-home__pagination-meta {
    color: #64748b;
    font-size: .82rem;
    text-align: center;
}

.bm-list-pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding-top: 8px;
}

.bm-list-pagination__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.bm-list-pagination__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--bm-border, #e2e8f0);
    background: #fff;
    color: var(--bm-primary, #1d4ed8);
    font-weight: 700;
    font-size: .88rem;
    font-family: inherit;
    text-decoration: none;
    line-height: 1;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.bm-list-pagination__btn:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1e3a8a;
}

.bm-list-pagination__btn.is-active {
    background: var(--bm-primary, #1d4ed8);
    border-color: var(--bm-primary, #1d4ed8);
    color: #fff;
    cursor: default;
}

.bm-list-pagination__btn.is-disabled {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
}

.bm-list-pagination__ellipsis {
    color: #94a3b8;
    font-weight: 700;
    padding: 0 2px;
    user-select: none;
}

.bm-list-pagination__meta {
    color: #64748b;
    font-size: .82rem;
    text-align: center;
}

@media (max-width: 767.98px) {
    .bm-public-home__promo {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .bm-public-home__promo-icon {
        margin: 0 auto;
    }

    .bm-public-home__promo-action {
        min-width: 0;
    }
}

.bm-public-home__hotline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    font-weight: 700;
    text-decoration: none;
}

.bm-public-home__hotline:hover {
    background: #dbeafe;
    color: #1e3a8a;
}

.bm-public-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.bm-public-contact--compact {
    gap: 6px;
}

.bm-public-contact--vertical {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
}

.bm-public-contact--vertical .btn {
    width: 100%;
    justify-content: center;
}

.bm-public-contact .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.bm-public-session__actions .bm-public-contact {
    flex: 1 1 100%;
}

.bm-public-session__actions .bm-public-contact--compact .btn span {
    font-size: .78rem;
}

/* ── System error page ──────────────────────────────────────────────────── */
.bm-error-page main {
    display: flex;
    align-items: center;
    min-height: calc(100dvh - 220px);
}

.bm-error-page__card {
    max-width: 560px;
    width: 100%;
    text-align: center;
    padding: 2.5rem 1.75rem;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 50px rgba(15, 47, 110, .08);
}

.bm-error-page__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 1.75rem;
}

.bm-error-page__icon--info {
    background: #eff6ff;
    color: #2563eb;
}

.bm-error-page__icon--warning {
    background: #fffbeb;
    color: #d97706;
}

.bm-error-page__icon--danger {
    background: #fef2f2;
    color: #dc2626;
}

.bm-error-page__code {
    margin: 0 0 .35rem;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #94a3b8;
}

.bm-error-page__title {
    font-size: clamp(1.35rem, 4vw, 1.75rem);
    font-weight: 800;
    margin-bottom: .75rem;
    color: #0f172a;
}

.bm-error-page__message {
    color: #475569;
    margin-bottom: .5rem;
}

.bm-error-page__hint {
    color: #64748b;
    font-size: .92rem;
    margin-bottom: 1.5rem;
}

.bm-error-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.bm-error-page__actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.bm-error-page__support {
    padding-top: 1.25rem;
    border-top: 1px solid #e2e8f0;
}

.bm-error-page__support .bm-public-contact {
    justify-content: center;
}

/* Hàng chờ ghép trận — click chọn người vào form thêm thủ công */
.bm-match-queue-waiting-row {
    cursor: pointer;
}

.bm-match-queue-waiting-row:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.08);
}

.bm-match-queue-waiting-row--selected,
.bm-match-queue-waiting-row--selected:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.16);
}

.bm-match-queue-waiting-row:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: -2px;
}

/* Session filters: balanced rows, independent of field order. */
.bm-sessions-filter__form--compact .bm-sessions-filter__form-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px 16px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}
.bm-sessions-filter__form--compact .bm-sessions-filter__field {
    grid-column: auto; grid-row: auto; min-width: 0;
}
.bm-sessions-filter__form--compact .form-label {
    font-size: .78rem; font-weight: 600; color: #475569; margin-bottom: 6px;
}
.bm-sessions-filter__form--compact :is(.form-select, .form-control, .btn) {
    min-height: 38px; border-radius: 8px;
}
.bm-sessions-filter__form--compact .form-select { text-overflow: ellipsis; }
@media (max-width: 991.98px) {
    .bm-sessions-filter__form--compact .bm-sessions-filter__form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 379.98px) {
    .bm-sessions-filter__form--compact .bm-sessions-filter__form-grid { grid-template-columns: minmax(0, 1fr); padding: 12px; }
}
.bm-payments-inbox-metrics .border { height: 100%; text-align: left !important; padding: 1rem !important; background: var(--bs-tertiary-bg); border-radius: .75rem !important; }
.bm-payments-inbox-metrics .fw-bold { font-size: 1.8rem; font-variant-numeric: tabular-nums; }
.bm-payments-inbox-tabs { gap: .5rem; flex-wrap: nowrap; overflow-x: auto; }
.bm-payments-inbox-tabs .nav-link { white-space: nowrap; padding: .8rem 1rem; }
.bm-payments-inbox-tabs .nav-link.active { font-weight: 700; }
.bm-payments-inbox-card { background: var(--bs-body-bg); border-radius: .75rem !important; padding: 1.25rem !important; }
.bm-payments-inbox-card > .d-flex > :first-child { min-width: 0; flex: 1 1 260px; overflow-wrap: anywhere; }
.bm-payments-inbox-card code { overflow-wrap: anywhere; white-space: normal; }
.bm-payments-inbox-line { background: var(--bs-tertiary-bg); }
.bm-payments-inbox .btn { min-height: 38px; }
.bm-payments-inbox-rules summary { cursor: pointer; }
@media (max-width: 575.98px) {
    .bm-payments-inbox-card > .d-flex > .d-flex.flex-column { width: 100%; }
    .bm-payments-inbox-card > .d-flex > .d-flex.flex-column > .d-flex { justify-content: flex-start !important; }
    .bm-payments-inbox-line { flex-wrap: wrap; }
    .bm-payments-inbox-metrics .small { font-size: .75rem; }
}
.bm-ctv-money__metric { margin-top: .35rem; font-size: clamp(1.35rem, 2.5vw, 2rem); line-height: 1.15; font-weight: 800; }
.bm-ctv-money__metric--date { font-size: clamp(1.1rem, 2vw, 1.5rem); }
.bm-ctv-money__search { width: min(100%, 360px); }
.bm-ctv-money__search > i { position: absolute; left: .85rem; top: .7rem; color: var(--bs-secondary-color); }
.bm-ctv-money__search input { padding-left: 2.35rem; }
.bm-ctv-money__person { overflow: hidden; background: var(--bs-body-bg); }
.bm-ctv-money__person-head { width: 100%; border: 0; background: transparent; padding: 1rem; text-align: left; display: grid; grid-template-columns: 2.75rem minmax(0, 1fr) auto 1rem; align-items: center; gap: .8rem; }
.bm-ctv-money__person-head:hover { background: var(--bs-tertiary-bg); }
.bm-ctv-money__avatar { width: 2.75rem; height: 2.75rem; border-radius: 50%; display: grid; place-items: center; color: var(--bs-primary); background: rgba(var(--bs-primary-rgb), .12); font-weight: 800; }
.bm-ctv-money__identity { min-width: 0; display: flex; flex-direction: column; }
.bm-ctv-money__identity strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bm-ctv-money__identity small, .bm-ctv-money__amount small { color: var(--bs-secondary-color); }
.bm-ctv-money__amount { display: flex; flex-direction: column; text-align: right; }
.bm-ctv-money__amount strong { color: var(--bs-warning); font-size: 1.15rem; }
.bm-ctv-money__chevron { transition: transform .2s ease; }
.bm-ctv-money__person-head[aria-expanded="true"] .bm-ctv-money__chevron { transform: rotate(180deg); }
.bm-ctv-money__details { padding: 0 1rem 1rem 4.55rem; }
.bm-ctv-money__session { border-top: 1px solid var(--bs-border-color); padding: .75rem 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.bm-ctv-money__session-action { display: flex; align-items: center; gap: 1rem; }
@media (max-width: 575.98px) {
    .bm-ctv-money__person-head { grid-template-columns: 2.5rem minmax(0, 1fr) 1rem; }
    .bm-ctv-money__avatar { width: 2.5rem; height: 2.5rem; }
    .bm-ctv-money__amount { grid-column: 2; text-align: left; }
    .bm-ctv-money__chevron { grid-column: 3; grid-row: 1 / span 2; }
    .bm-ctv-money__details { padding-left: 1rem; }
    .bm-ctv-money__session { align-items: flex-start; }
    .bm-ctv-money__session-action { flex-direction: column; align-items: flex-end; gap: .35rem; }
}
