/* Barakah brand styles: loaded on the AdminLTE panel, the auth pages and the careers site. */
:root {
    --bk-yellow: #C9A227;
    --bk-yellow-2: #D8B445;
    --bk-yellow-dark: #A8851A;
    --bk-yellow-ink: #0B5D3F;
    --bk-cream: #FBF7EC;
    --bk-cream-2: #F3EBD3;
    --bk-ink: #12261E;
    --bk-ink-2: #3E4F47;
    --bk-muted: #6F7C75;
    --bk-line: #E7E0CB;
    --bk-bg: #F8F6EF;
    --bk-radius: .85rem;
    --bk-shadow: 0 1px 2px rgba(18, 38, 30, .04), 0 4px 16px rgba(18, 38, 30, .05);
}

body { font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--bk-ink); }
.bk-body, .bk-body .app-main { background: var(--bk-bg); }
a { color: var(--bk-yellow-ink); }
a:hover { color: #6E4D00; }

/* ---------- Sidebar ---------- */
.app-sidebar { background: var(--bk-cream) !important; border-right: 1px solid var(--bk-line); box-shadow: none !important; }
.app-sidebar .sidebar-brand { border-bottom: 0 !important; height: 4rem; }
.app-sidebar .brand-link { display: flex; align-items: center; gap: .55rem; }
.app-sidebar .brand-image { width: 34px; height: 34px; max-height: 34px; margin: 0 !important; box-shadow: none !important; opacity: 1 !important; }
.app-sidebar .brand-text { color: var(--bk-ink) !important; font-size: 1.45rem; letter-spacing: -.02em; }
.app-sidebar .brand-text b { font-weight: 800; }
.sidebar-menu { padding: .25rem .75rem 1rem; }
.app-sidebar .sidebar-menu .nav-link { color: var(--bk-ink-2); border-radius: .7rem; padding: .62rem .9rem; margin-bottom: .15rem; font-weight: 500; }
.app-sidebar .sidebar-menu .nav-link .nav-icon { color: var(--bk-ink-2); font-size: 1.05rem; }
.app-sidebar .sidebar-menu .nav-link:hover { background: rgba(201, 162, 39, .18); color: var(--bk-ink); }
.app-sidebar .sidebar-menu .nav-link.active { background: var(--bk-yellow) !important; color: var(--bk-ink) !important; font-weight: 600; box-shadow: 0 4px 12px rgba(201, 162, 39, .35); }
.app-sidebar .sidebar-menu .nav-link.active .nav-icon { color: var(--bk-ink); }
.app-sidebar .nav-header { color: #8C7A45 !important; font-size: .68rem; letter-spacing: .12em; font-weight: 700; padding-top: 1rem; }
.app-sidebar .nav-badge { font-size: .68rem; }
/* Let the label and badge share the row instead of the absolute-positioned badge covering the label. */
:root, :root[data-bs-theme], .app-wrapper, .app-sidebar { --lte-sidebar-width: 272px; }   /* room for "Releases & Reconciliation" */
.app-sidebar .sidebar-menu .nav-link > p { display: inline-flex; align-items: center; gap: .4rem; flex: 1 1 auto; min-width: 0; }
.app-sidebar .sidebar-menu .nav-link > p > .nav-badge { position: static; transform: none; margin: 0 0 0 auto !important; }
.bk-sidebar-foot { margin: 1rem .75rem 1.25rem; padding: 1rem; border-radius: var(--bk-radius); background: linear-gradient(135deg, #EADBA8, #F7F1E0); color: var(--bk-ink); font-weight: 700; line-height: 1.25; }
.bk-sidebar-foot span { display: block; width: 28px; height: 3px; background: var(--bk-yellow-dark); margin-top: .5rem; border-radius: 3px; }
.sidebar-collapse .bk-sidebar-foot { display: none; }

/* ---------- Top bar ---------- */
.app-header.bk-topbar { background: #fff !important; border-bottom: 1px solid var(--bk-line); min-height: 4rem; }
.app-header .navbar-search .form-control { background: #F6F4EE; border: 1px solid transparent; border-radius: .7rem; min-width: 340px; padding-left: 2.4rem; }
.app-header .navbar-search .form-control:focus { background: #fff; border-color: var(--bk-yellow); box-shadow: 0 0 0 .2rem rgba(201, 162, 39, .25); }
.app-header .navbar-search-field { position: relative; }
.app-header .navbar-search-submit { position: absolute; left: .55rem; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--bk-muted); }
.bk-newbtn { background: var(--bk-yellow); color: var(--bk-ink) !important; font-weight: 600; border-radius: .65rem; padding: .45rem 1rem !important; margin: auto .5rem; box-shadow: 0 3px 10px rgba(201, 162, 39, .35); }
.bk-newbtn:hover { background: var(--bk-yellow-2); }
.bk-bell { position: relative; font-size: 1.2rem; }
.bk-bell .bk-dot { position: absolute; top: .45rem; right: .35rem; min-width: 1.05rem; height: 1.05rem; padding: 0 .25rem; border-radius: 1rem; background: #E5484D; color: #fff; font-size: .62rem; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
.bk-notif-menu { width: 360px; max-width: 92vw; padding: 0; border-radius: var(--bk-radius); overflow: hidden; }
.bk-notif-menu .bk-notif-head { padding: .75rem 1rem; border-bottom: 1px solid var(--bk-line); display: flex; justify-content: space-between; align-items: center; }
.bk-notif-list { max-height: 380px; overflow-y: auto; }
.bk-notif { display: flex; gap: .7rem; padding: .7rem 1rem; border-bottom: 1px solid #F4F1E8; color: var(--bk-ink); text-decoration: none; }
.bk-notif:hover { background: var(--bk-cream); color: var(--bk-ink); }
.bk-notif.unread { background: #FCFAF3; }
.bk-notif-icon { width: 34px; height: 34px; border-radius: .6rem; display: grid; place-items: center; flex-shrink: 0; }
.bk-notif small { color: var(--bk-muted); }
.app-header .user-menu .user-image { background: var(--bk-ink); }

/* ---------- Content ---------- */
.app-content-header { padding-top: 1.25rem; }
.app-content-header h1 { font-weight: 700; letter-spacing: -.01em; }
.card { border: 1px solid #F1ECDF; box-shadow: var(--bk-shadow); border-radius: var(--bk-radius); }
.card-header { background: transparent; border-bottom: 1px solid #F3EFE3; padding: .9rem 1.1rem; }
.card-header .card-title, .card-title { font-weight: 700; font-size: 1rem; margin: 0; }
.card-footer { background: transparent; border-top: 1px solid #F3EFE3; }
.table > thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--bk-muted); font-weight: 600; background: #FBF9F3; border-bottom-color: #F0EBDD; white-space: nowrap; }
.table td, .table th { vertical-align: middle; }
.table > tbody > tr:hover > * { background: #FFFDF6; }
.table .actions, .table th.actions, .table td.actions { white-space: nowrap; width: 1%; text-align: right; }

/* ---------- Buttons & forms ---------- */
.btn { border-radius: .6rem; font-weight: 500; }
.btn-primary, .btn-warning {
    --bs-btn-color: var(--bk-ink); --bs-btn-bg: var(--bk-yellow); --bs-btn-border-color: var(--bk-yellow);
    --bs-btn-hover-color: var(--bk-ink); --bs-btn-hover-bg: var(--bk-yellow-2); --bs-btn-hover-border-color: var(--bk-yellow-dark);
    --bs-btn-active-color: var(--bk-ink); --bs-btn-active-bg: var(--bk-yellow-dark); --bs-btn-active-border-color: var(--bk-yellow-dark);
    --bs-btn-disabled-color: var(--bk-ink); --bs-btn-disabled-bg: var(--bk-yellow); --bs-btn-disabled-border-color: var(--bk-yellow);
    font-weight: 600;
}
.btn-outline-primary { --bs-btn-color: var(--bk-yellow-ink); --bs-btn-border-color: var(--bk-yellow); --bs-btn-hover-bg: var(--bk-yellow); --bs-btn-hover-color: var(--bk-ink); --bs-btn-hover-border-color: var(--bk-yellow); --bs-btn-active-bg: var(--bk-yellow-dark); --bs-btn-active-border-color: var(--bk-yellow-dark); --bs-btn-active-color: var(--bk-ink); }
.btn-dark { --bs-btn-bg: var(--bk-ink); --bs-btn-border-color: var(--bk-ink); }
.btn-light { --bs-btn-bg: #fff; --bs-btn-border-color: #E8E3D5; }
.form-control, .form-select { border-radius: .6rem; border-color: #E5E0D2; }
.form-control:focus, .form-select:focus { border-color: var(--bk-yellow); box-shadow: 0 0 0 .2rem rgba(201, 162, 39, .25); }
.form-check-input:checked { background-color: var(--bk-yellow-dark); border-color: var(--bk-yellow-dark); }
.form-check-input:focus { box-shadow: 0 0 0 .2rem rgba(201, 162, 39, .25); border-color: var(--bk-yellow); }
.form-label { font-weight: 500; font-size: .88rem; }
.page-link { color: var(--bk-yellow-ink); }
.active > .page-link, .page-link.active { background-color: var(--bk-yellow); border-color: var(--bk-yellow); color: var(--bk-ink); }
.nav-tabs .nav-link { color: var(--bk-ink-2); border: 0; border-bottom: 2px solid transparent; font-weight: 500; }
.nav-tabs .nav-link.active { color: var(--bk-ink); border-bottom-color: var(--bk-yellow); background: transparent; font-weight: 600; }
.nav-tabs { border-bottom: 1px solid var(--bk-line); }
.nav-pills .nav-link.active { background: var(--bk-yellow); color: var(--bk-ink); }
.nav-pills .nav-link { color: var(--bk-ink-2); }
.text-bg-primary, .bg-primary { background-color: var(--bk-yellow) !important; color: var(--bk-ink) !important; }
.text-primary { color: var(--bk-yellow-ink) !important; }
.bg-primary-subtle { background-color: #F3EBD3 !important; }
.progress { background: #F3EFE4; border-radius: 1rem; }
.progress-bar { background: var(--bk-yellow); }
.dropdown-item.active, .dropdown-item:active { background: var(--bk-yellow); color: var(--bk-ink); }

/* ---------- Pills, chips, avatars ---------- */
.bk-pill { display: inline-flex; align-items: center; gap: .3rem; font-size: .75rem; font-weight: 600; padding: .22rem .6rem; border-radius: 2rem; white-space: nowrap; line-height: 1.3; }
.bk-pill-gray { background: #F1F1F3; color: #555B67; }
.bk-pill-yellow { background: #F1E6C2; color: #7A5F10; }
.bk-pill-gold { background: #F5EBCB; color: #7A5F10; }
.bk-pill-orange { background: #FFE8D6; color: #B4540A; }
.bk-pill-blue { background: #E3EEFF; color: #2457B5; }
.bk-pill-purple { background: #EFE7FF; color: #6A3FC8; }
.bk-pill-green { background: #DFF5E7; color: #1E7A44; }
.bk-pill-red { background: #FFE3E3; color: #B42323; }
.bk-pill-teal { background: #DDF5F2; color: #137267; }
.bk-chip { display: inline-block; font-size: .75rem; padding: .18rem .55rem; border-radius: .45rem; background: #F4F1E8; color: var(--bk-ink-2); margin: 0 .2rem .25rem 0; }
.bk-code { font-size: .72rem; font-weight: 700; letter-spacing: .05em; color: var(--bk-yellow-ink); background: #F3EBD3; border-radius: .35rem; padding: .08rem .45rem; white-space: nowrap; }
.bk-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; display: inline-grid; place-items: center; flex-shrink: 0; font-weight: 700; font-size: .8rem; color: var(--bk-ink); background: #FFE7A0; }
.bk-avatar-sm { width: 30px; height: 30px; font-size: .7rem; }
.bk-avatar-lg { width: 64px; height: 64px; font-size: 1.2rem; }
.bk-avatar-xl { width: 96px; height: 96px; font-size: 1.6rem; }
.bk-avatar-stack { display: inline-flex; }
.bk-avatar-stack > * { margin-left: -8px; border: 2px solid #fff; }
.bk-avatar-stack > :first-child { margin-left: 0; }
.bk-person { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.bk-person-name { font-weight: 600; color: var(--bk-ink); line-height: 1.2; }
.bk-person-sub { font-size: .8rem; color: var(--bk-muted); }
a.bk-person:hover .bk-person-name { color: var(--bk-yellow-ink); }
.bk-dot { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; }
.bk-muted { color: var(--bk-muted) !important; }

/* ---------- Stat cards ---------- */
.bk-stat { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.2rem; border-radius: var(--bk-radius); height: 100%; border: 1px solid transparent; }
.bk-stat-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 1.4rem; flex-shrink: 0; background: rgba(255, 255, 255, .75); }
.bk-stat-value { font-size: 1.65rem; font-weight: 800; line-height: 1.05; color: var(--bk-ink); }
.bk-stat-label { color: var(--bk-ink-2); font-size: .85rem; }
.bk-stat-trend { margin-left: auto; align-self: flex-start; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.bk-stat-yellow { background: #F6F0DD; } .bk-stat-yellow .bk-stat-icon { color: #A8851A; }
.bk-stat-red { background: #FFECEC; } .bk-stat-red .bk-stat-icon { color: #E5484D; }
.bk-stat-blue { background: #EAF2FF; } .bk-stat-blue .bk-stat-icon { color: #2F6FDB; }
.bk-stat-orange { background: #FFF1E3; } .bk-stat-orange .bk-stat-icon { color: #E07B12; }
.bk-stat-green { background: #E8F7EE; } .bk-stat-green .bk-stat-icon { color: #23A15A; }
.bk-stat-purple { background: #F2ECFF; } .bk-stat-purple .bk-stat-icon { color: #7A4FE0; }
.bk-stat-gray { background: #F3F3F5; } .bk-stat-gray .bk-stat-icon { color: #5B6170; }
.bk-stat > div:not(.bk-stat-icon) { min-width: 0; }
/* Phones: two cards per row leaves ~150px, so stack the icon and let ringgit amounts shrink to fit. */
@media (max-width: 575.98px) {
    .bk-stat { flex-direction: column; align-items: flex-start; gap: .6rem; padding: .9rem; }
    .bk-stat-icon { width: 40px; height: 40px; font-size: 1.1rem; }
    .bk-stat-value { font-size: clamp(.95rem, 4.2vw, 1.4rem); overflow-wrap: anywhere; }
}

.bk-greeting { display: flex; align-items: center; gap: 1rem; }
.bk-greeting .bi { font-size: 2.4rem; color: var(--bk-yellow); }

/* ---------- Funnel / bars ---------- */
.bk-funnel { display: flex; align-items: flex-end; gap: .75rem; min-height: 200px; }
.bk-funnel-col { flex: 1; text-align: center; display: flex; flex-direction: column; justify-content: flex-end; }
.bk-funnel-bar { background: linear-gradient(180deg, #DDBE5C, var(--bk-yellow)); border-radius: .4rem .4rem .2rem .2rem; margin: .4rem auto; width: 70%; min-height: 6px; }
.bk-funnel-num { font-size: 1.3rem; font-weight: 800; }
.bk-funnel-label { font-size: .8rem; color: var(--bk-ink-2); }
.bk-funnel-pct { font-size: .78rem; color: var(--bk-muted); }
.bk-hbar { display: flex; align-items: center; gap: .75rem; padding: .45rem 0; }
.bk-hbar .progress { flex: 1; height: .55rem; }
.bk-hbar-label { width: 40%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-hbar-val { width: 4.2rem; text-align: right; font-size: .85rem; white-space: nowrap; }

/* ---------- Lists ---------- */
.bk-list { list-style: none; margin: 0; padding: 0; }
.bk-list > li { display: flex; align-items: center; gap: .85rem; padding: .7rem 1.1rem; border-bottom: 1px solid #F4F1E8; }
.bk-list > li:last-child { border-bottom: 0; }
.bk-list-icon { width: 38px; height: 38px; border-radius: .65rem; display: grid; place-items: center; flex-shrink: 0; font-size: 1.05rem; }
.bk-empty { text-align: center; padding: 2.5rem 1rem; color: var(--bk-muted); }
.bk-empty .bi { font-size: 2.4rem; color: #E5D7AA; display: block; margin-bottom: .5rem; }
.bk-facts { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.25rem; margin: 0; }
.bk-facts dt { font-weight: 500; color: var(--bk-muted); font-size: .85rem; }
.bk-facts dd { margin: 0; overflow-wrap: anywhere; font-weight: 500; }
.bk-section-title { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bk-muted); margin-bottom: .6rem; }

/* ---------- Timeline ---------- */
.bk-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.bk-timeline::before { content: ""; position: absolute; left: 17px; top: 6px; bottom: 6px; width: 2px; background: #F0EADA; }
.bk-timeline > li { position: relative; padding: 0 0 1.1rem 3rem; }
.bk-timeline-icon { position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid #F0EADA; font-size: .95rem; }
.bk-timeline-title { font-weight: 600; }
.bk-timeline-meta { font-size: .78rem; color: var(--bk-muted); }

/* ---------- Stage stepper (flow progress) ---------- */
.bk-stepper { display: flex; gap: .25rem; overflow-x: auto; padding-bottom: .25rem; }
.bk-step { flex: 1 0 110px; text-align: center; position: relative; font-size: .78rem; color: var(--bk-muted); }
.bk-step-dot { width: 30px; height: 30px; border-radius: 50%; margin: 0 auto .35rem; display: grid; place-items: center; background: #F1EEE5; color: var(--bk-muted); font-size: .85rem; position: relative; z-index: 1; }
.bk-step::before { content: ""; position: absolute; top: 15px; left: -50%; width: 100%; height: 2px; background: #EDE7D6; }
.bk-step:first-child::before { display: none; }
.bk-step.done .bk-step-dot { background: #23A15A; color: #fff; }
.bk-step.done::before, .bk-step.current::before { background: #23A15A; }
.bk-step.current .bk-step-dot { background: var(--bk-yellow); color: var(--bk-ink); box-shadow: 0 0 0 4px rgba(201, 162, 39, .3); }
.bk-step.current { color: var(--bk-ink); font-weight: 600; }
.bk-step.failed .bk-step-dot { background: #E5484D; color: #fff; }

/* ---------- Kanban ---------- */
.bk-kanban { display: flex; gap: .9rem; overflow-x: auto; padding-bottom: .75rem; align-items: flex-start; }
.bk-kanban-col { flex: 0 0 270px; background: #FAF7EE; border-radius: var(--bk-radius); padding: .65rem; border: 1px solid #F1ECDF; }
.bk-kanban-head { display: flex; align-items: center; justify-content: space-between; padding: .25rem .35rem .6rem; font-weight: 700; font-size: .9rem; }
.bk-kanban-head .count { background: #fff; border-radius: 1rem; padding: .05rem .55rem; font-size: .75rem; color: var(--bk-ink-2); border: 1px solid #EDE6D3; }
.bk-kanban-col.drop-hover { background: #F2E9CC; border-color: var(--bk-yellow); }
.bk-kcard { background: #fff; border-radius: .7rem; padding: .7rem .75rem; margin-bottom: .55rem; border: 1px solid #EFE9DA; box-shadow: 0 1px 2px rgba(18, 38, 30, .04); display: block; color: var(--bk-ink); text-decoration: none; }
.bk-kcard:hover { border-color: var(--bk-yellow); color: var(--bk-ink); }
.bk-kcard[draggable="true"] { cursor: grab; }
.bk-kcard.dragging { opacity: .5; }
.bk-kcard-foot { display: flex; justify-content: space-between; align-items: center; margin-top: .5rem; font-size: .75rem; color: var(--bk-muted); }
.bk-kcard.overdue { border-left: 3px solid #E5484D; }

/* ---------- Flow builder ---------- */
.bk-builder { display: grid; grid-template-columns: 230px 1fr 320px; gap: 1rem; min-height: 640px; }
.bk-palette .bk-palette-item { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border: 1px solid #EFE9DA; border-radius: .6rem; margin-bottom: .45rem; background: #fff; cursor: pointer; font-size: .88rem; user-select: none; }
.bk-palette .bk-palette-item:hover { border-color: var(--bk-yellow); background: #FCFAF3; }
.bk-palette .bk-palette-item i { width: 28px; height: 28px; border-radius: .5rem; display: grid; place-items: center; background: #F3EBD3; color: var(--bk-yellow-ink); }
.bk-canvas { background-color: #FCFBF7; background-image: radial-gradient(#E9E2CE 1px, transparent 1px); background-size: 18px 18px; border-radius: var(--bk-radius); border: 1px solid #F1ECDF; padding: 1.5rem; overflow: auto; position: relative; }
.bk-node-wrap { display: flex; flex-direction: column; align-items: center; }
.bk-node { width: 280px; background: #fff; border: 1.5px solid #EAE3CF; border-radius: .8rem; padding: .7rem .85rem; cursor: pointer; position: relative; box-shadow: 0 2px 6px rgba(18, 38, 30, .05); }
.bk-node:hover { border-color: var(--bk-yellow); }
.bk-node.selected { border-color: var(--bk-yellow-dark); box-shadow: 0 0 0 3px rgba(201, 162, 39, .35); }
.bk-node.control { border-style: dashed; background: #FFFDF5; }
.bk-node.end-hired { border-color: #9ED9B4; background: #F2FBF5; }
.bk-node.end-rejected { border-color: #F2B5B5; background: #FFF5F5; }
.bk-node-head { display: flex; align-items: center; gap: .55rem; }
.bk-node-icon { width: 32px; height: 32px; border-radius: .55rem; display: grid; place-items: center; background: #F3EBD3; color: var(--bk-yellow-ink); flex-shrink: 0; }
.bk-node-title { font-weight: 700; font-size: .9rem; line-height: 1.2; }
.bk-node-type { font-size: .72rem; color: var(--bk-muted); }
.bk-node-meta { font-size: .75rem; color: var(--bk-ink-2); margin-top: .45rem; display: flex; flex-wrap: wrap; gap: .35rem; }
.bk-node-actions { position: absolute; top: .35rem; right: .35rem; display: none; gap: .15rem; }
.bk-node:hover .bk-node-actions, .bk-node.selected .bk-node-actions { display: flex; }
.bk-node-actions button { border: 0; background: #F6F3EA; width: 24px; height: 24px; border-radius: .4rem; font-size: .75rem; color: var(--bk-ink-2); padding: 0; }
.bk-node-actions button:hover { background: var(--bk-yellow); }
.bk-arrow { width: 2px; height: 26px; background: #D8CFB5; position: relative; margin: 0 auto; }
.bk-arrow::after { content: ""; position: absolute; bottom: -2px; left: -4px; border: 5px solid transparent; border-top-color: #D8CFB5; border-bottom: 0; }
.bk-arrow-label { font-size: .7rem; font-weight: 600; color: var(--bk-muted); background: #FCFBF7; padding: 0 .3rem; }
.bk-branch { display: flex; gap: 1.5rem; justify-content: center; align-items: flex-start; }
.bk-branch > div { display: flex; flex-direction: column; align-items: center; }
.bk-goto { font-size: .75rem; padding: .3rem .6rem; border-radius: .5rem; background: #F4F1E8; color: var(--bk-ink-2); }
.bk-add-step { border: 1.5px dashed #D3C69E; background: transparent; border-radius: .6rem; padding: .35rem .8rem; font-size: .8rem; color: var(--bk-yellow-ink); }
.bk-add-step:hover { background: #F7F1E0; }
.bk-props { position: sticky; top: 5rem; max-height: calc(100vh - 6rem); overflow-y: auto; }

/* ---------- Calendar ---------- */
.bk-cal { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; }
.bk-cal th { font-size: .74rem; text-transform: uppercase; color: var(--bk-muted); font-weight: 600; padding: .5rem; text-align: center; border-bottom: 1px solid var(--bk-line); }
.bk-cal td { vertical-align: top; height: 116px; border-right: 1px solid #F4F0E5; border-bottom: 1px solid #F4F0E5; padding: .35rem; }
.bk-cal td:last-child { border-right: 0; }
.bk-cal td.other { background: #FCFBF7; color: #C3BCA8; }
.bk-cal td.today { background: #FFFBEB; }
.bk-cal .day { font-size: .8rem; font-weight: 600; margin-bottom: .2rem; }
.bk-cal td.today .day { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--bk-yellow); }
.bk-cal-ev { display: block; font-size: .72rem; padding: .18rem .4rem; border-radius: .35rem; margin-bottom: .2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; border-left: 3px solid; }
.bk-week { display: grid; grid-template-columns: 60px repeat(7, 1fr); }
.bk-week-slot { border-bottom: 1px solid #F4F0E5; border-right: 1px solid #F4F0E5; min-height: 54px; padding: .2rem; position: relative; }
.bk-week-time { font-size: .72rem; color: var(--bk-muted); text-align: right; padding: .2rem .5rem; border-bottom: 1px solid #F4F0E5; }
.bk-week-head { text-align: center; font-size: .8rem; font-weight: 600; padding: .5rem 0; border-bottom: 1px solid var(--bk-line); }
.bk-week-head.today { color: var(--bk-yellow-ink); }

/* ---------- Scores ---------- */
.bk-score-ring { --p: 0; --c: var(--bk-yellow); width: 120px; height: 120px; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--p) * 1%), #F2EEE3 0); display: grid; place-items: center; margin: 0 auto; }
.bk-score-ring > div { width: 92px; height: 92px; border-radius: 50%; background: #fff; display: grid; place-items: center; text-align: center; }
.bk-score-ring strong { font-size: 1.6rem; display: block; line-height: 1; }
.bk-rating { display: inline-flex; gap: .25rem; flex-wrap: wrap; }
.bk-rating input { display: none; }
.bk-rating label { width: 34px; height: 34px; border-radius: .5rem; display: grid; place-items: center; border: 1px solid #E5E0D2; cursor: pointer; font-weight: 600; font-size: .85rem; background: #fff; margin: 0; }
.bk-rating input:checked + label { background: var(--bk-yellow); border-color: var(--bk-yellow-dark); }
.bk-rating label:hover { border-color: var(--bk-yellow); }
.bk-stars { color: #F5B301; letter-spacing: .05em; }

/* ---------- Wizard ---------- */
.bk-wizard-steps { display: flex; gap: .5rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.bk-wizard-steps button { flex: 1; min-width: 130px; border: 1px solid #EFE9DA; background: #fff; border-radius: .7rem; padding: .6rem .8rem; text-align: left; font-size: .85rem; color: var(--bk-ink-2); }
.bk-wizard-steps button .n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #F1EEE5; font-weight: 700; font-size: .75rem; margin-right: .4rem; }
.bk-wizard-steps button.active { border-color: var(--bk-yellow); background: #FAF5E6; color: var(--bk-ink); font-weight: 600; }
.bk-wizard-steps button.active .n, .bk-wizard-steps button.done .n { background: var(--bk-yellow); }

/* ---------- Auth ---------- */
.bk-auth { min-height: 100vh; background: #F8F4E8; display: flex; }
.bk-auth-hero { position: sticky; top: 0; height: 100vh; flex: 0 0 58%; overflow: hidden; background-color: #0B5D3F; background-image: url('../images/login-bg.gif'); background-size: cover, cover; background-position: right bottom; background-repeat: no-repeat; }
.bk-auth-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 40, 27, .78) 0%, rgba(6, 40, 27, .45) 50%, rgba(6, 40, 27, .15) 100%); }
.bk-auth-hero-inner { position: relative; height: 100%; display: flex; flex-direction: column; padding: 4.5rem 5rem 3rem; }
.bk-wordmark { font-weight: 800; font-size: 4.2rem; letter-spacing: -.04em; line-height: 1; color: var(--bk-ink); }
.bk-wordmark .o { position: relative; display: inline-block; }
.bk-wordmark .o::after { content: ""; position: absolute; width: .2em; height: .2em; border-radius: 50%; background: var(--bk-yellow); left: 50%; top: 58%; transform: translate(-50%, -50%); }
.bk-wordmark sup { font-size: .2em; font-weight: 600; top: -2.6em; }
.bk-tagline { letter-spacing: .32em; font-size: .9rem; text-transform: uppercase; color: var(--bk-ink-2); margin-top: .75rem; }
.bk-tagline + span { display: block; width: 70px; height: 4px; background: var(--bk-yellow); border-radius: 4px; margin-top: 1.4rem; }
.bk-auth-pitch { margin-top: 3.5rem; max-width: 460px; }
.bk-auth-pitch h2 { font-size: 3.1rem; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; color: var(--bk-ink); }
.bk-auth-pitch p { font-size: 1.15rem; color: var(--bk-ink-2); margin-top: 1.2rem; }
.bk-auth-features { display: flex; gap: 0; margin-top: auto; }
.bk-auth-features div { padding: 0 2rem; border-left: 1px solid rgba(18, 38, 30, .12); font-size: .9rem; color: var(--bk-ink); }
.bk-auth-features div:first-child { padding-left: 0; border-left: 0; }
.bk-auth-features i { display: block; font-size: 2rem; color: var(--bk-yellow-dark); margin-bottom: .4rem; }
.bk-auth-panel { flex: 1; display: flex; align-items: center; justify-content: center; padding: 2rem 1.25rem; }
.bk-auth-card { width: 100%; max-width: 480px; background: #fff; border-radius: 1.4rem; padding: 2.25rem 2.5rem; box-shadow: 0 20px 60px rgba(11, 93, 63, .14); }
.bk-auth-card h1 { font-size: 2.1rem; font-weight: 800; letter-spacing: -.02em; }
.bk-auth-card .sub { color: var(--bk-muted); margin-bottom: 1.25rem; font-size: 1.02rem; }
.bk-input { position: relative; }
.bk-input > i { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); color: var(--bk-muted); }
.bk-input .form-control { padding: .8rem 2.8rem .8rem 2.6rem; border-radius: .7rem; }
.bk-input-action { position: absolute; right: .5rem; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--bk-muted); padding: .25rem .5rem; }
.bk-btn-lg { padding: .85rem; border-radius: .75rem; font-weight: 700; font-size: 1.05rem; }
.bk-or { display: flex; align-items: center; gap: 1rem; color: var(--bk-muted); font-size: .85rem; margin: 1rem 0; }
.bk-or::before, .bk-or::after { content: ""; flex: 1; height: 1px; background: #EEE9DD; }
.bk-ms-btn { display: flex; align-items: center; justify-content: center; gap: .6rem; border: 1px solid #E2DDCF; border-radius: .75rem; padding: .8rem; color: var(--bk-ink); font-weight: 500; text-decoration: none; background: #fff; }
.bk-ms-btn:hover { background: #FAF8F2; color: var(--bk-ink); }
.bk-ms-logo { display: grid; grid-template-columns: 9px 9px; gap: 2px; }
.bk-ms-logo span { width: 9px; height: 9px; }
.bk-quick { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px dashed #E8E1CF; }
.bk-quick-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.bk-quick-head span { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bk-ink-2); }
.bk-quick-head small { font-size: .72rem; color: #9A6B00; background: #FFF4D2; border-radius: 99px; padding: .15rem .55rem; font-weight: 600; }
.bk-quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; }
.bk-quick-btn { display: flex; flex-direction: column; align-items: center; gap: .15rem; width: 100%; min-width: 0; text-align: center; border: 1px solid #ECE6D6; background: #FFFDF7; border-radius: .7rem; padding: .5rem .35rem .45rem; transition: border-color .15s, background .15s, transform .15s; }
.bk-quick-btn:hover, .bk-quick-btn:focus-visible { border-color: var(--bk-yellow); background: #F8F2E0; transform: translateY(-1px); outline: 0; }
.bk-quick-btn > i { font-size: 1.05rem; line-height: 1; color: #C08A00; margin-bottom: .15rem; }
.bk-quick-btn span { display: block; width: 100%; min-width: 0; }
.bk-quick-btn b { display: block; font-size: .76rem; font-weight: 600; color: var(--bk-ink); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-quick-btn small { display: block; font-size: .68rem; color: var(--bk-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1199.98px) and (min-width: 992px), (max-width: 479.98px) { .bk-quick-grid { grid-template-columns: 1fr 1fr; } }
.bk-team { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px dashed #E8E1CF; }
.bk-team-head { text-align: center; font-size: .82rem; color: var(--bk-muted); margin-bottom: .6rem; }
.bk-team-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.bk-team-btn { flex: 0 0 calc((100% - 1rem) / 3); min-width: 0; display: flex; flex-direction: column; align-items: center; gap: .1rem; border: 0; border-radius: .6rem; background: #0F172A; padding: .6rem .4rem .55rem; transition: background .15s, transform .15s, box-shadow .15s; }
.bk-team-btn:hover, .bk-team-btn:focus-visible { background: #1E293B; transform: translateY(-1px); box-shadow: 0 0 0 2px var(--bk-yellow); outline: 0; }
.bk-team-avatar { width: 2rem; height: 2rem; border-radius: 50%; background: var(--bk-yellow); color: #0F172A; font-weight: 700; font-size: .9rem; display: grid; place-items: center; margin-bottom: .25rem; }
.bk-team-btn b { display: block; max-width: 100%; font-size: .85rem; color: #fff; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-team-btn small { display: block; max-width: 100%; font-size: .7rem; color: #94A3B8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1199.98px) and (min-width: 992px), (max-width: 479.98px) { .bk-team-btn { flex-basis: calc((100% - .5rem) / 2); } }
@media (max-width: 1199.98px) {
    .bk-auth-hero-inner { padding: 3rem; }
    .bk-auth-pitch h2 { font-size: 2.4rem; }
}
@media (max-width: 991.98px) {
    .bk-auth { flex-direction: column; }
    .bk-auth-hero { position: relative; height: auto; flex-basis: auto; background-position: center 70%, center 70%; }
    .bk-auth-hero::before { background: rgba(255, 243, 207, .86); }
    .bk-auth-hero-inner { padding: 2rem 1.5rem; }
    .bk-wordmark { font-size: 2.8rem; }
    .bk-auth-pitch { margin-top: 1.5rem; }
    .bk-auth-pitch h2 { font-size: 1.9rem; }
    .bk-auth-features { display: none; }
    .bk-auth-card { padding: 2rem 1.5rem; }
}

/* ---------- Careers (public) ---------- */
.bk-public { background: var(--bk-bg); min-height: 100vh; }
.bk-public-nav { background: #fff; border-bottom: 1px solid var(--bk-line); }
.bk-public-hero { background: linear-gradient(135deg, #FFF3CF, #FFFBEF); padding: 3.5rem 0; border-bottom: 1px solid var(--bk-line); }
.bk-job { display: block; background: #fff; border: 1px solid #F1ECDF; border-radius: var(--bk-radius); padding: 1.1rem 1.25rem; margin-bottom: .75rem; text-decoration: none; color: var(--bk-ink); box-shadow: var(--bk-shadow); }
.bk-job:hover { border-color: var(--bk-yellow); color: var(--bk-ink); }

/* ---------- Print ---------- */
@media print {
    .app-sidebar, .app-header, .app-footer, .btn, .no-print, form.d-inline { display: none !important; }
    .app-wrapper, .app-main { margin: 0 !important; }
    .card { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }
}

/* ---------- Phones ---------- */
@media (max-width: 991.98px) {
    .bk-builder { grid-template-columns: 1fr; }
    .bk-props { position: static; max-height: none; }
    .app-header .navbar-search .form-control { min-width: 0; }
}
@media (max-width: 767.98px) {
    .table.bk-stack > thead { display: none; }
    .table.bk-stack, .table.bk-stack > tbody { display: block; width: 100%; }
    .table.bk-stack > tbody > tr { display: block; padding: .75rem 1rem; border-bottom: 1px solid var(--bs-border-color); }
    .table.bk-stack > tbody > tr:last-child { border-bottom: 0; }
    .table.bk-stack > tbody > tr > * {
        display: block; position: relative; width: auto !important; min-width: 0 !important;
        padding: .2rem 0 .2rem 38%; border: 0; text-align: left !important; white-space: normal;
        box-shadow: none; overflow-wrap: anywhere;
    }
    .table.bk-stack > tbody > tr > *::before {
        content: attr(data-label); position: absolute; left: 0; top: .2rem; width: 35%;
        font-size: .7rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--bk-muted);
        line-height: 1.6; overflow-wrap: normal;
    }
    .table.bk-stack > tbody > tr > :first-child,
    .table.bk-stack > tbody > tr > [data-label=""],
    .table.bk-stack > tbody > tr > .bk-stack-full { padding-left: 0; }
    .table.bk-stack > tbody > tr > :first-child::before,
    .table.bk-stack > tbody > tr > [data-label=""]::before,
    .table.bk-stack > tbody > tr > .bk-stack-full::before { content: none; }
    .table.bk-stack > tbody > tr > .bk-stack-full { text-align: center !important; }
    .table.bk-stack > tbody > tr > .actions { white-space: nowrap; padding-top: .5rem; }
    .app-content-header h1 { font-size: 1.35rem; }
    .bk-newbtn span { display: none; }
    .bk-kanban-col { flex-basis: 85vw; }
    .bk-node { width: 240px; }
    .bk-cal td { height: 80px; }
}

/* ---------------------------------------------------------------------------
   Help & tutorials (modal, help centre)
--------------------------------------------------------------------------- */
.bk-help-link { display: inline-flex !important; align-items: center; gap: .35rem; color: var(--bk-ink-2) !important; font-weight: 500; }
.bk-help-link i { font-size: 1.15rem; }
.bk-help-link:hover { color: var(--bk-ink) !important; }
.bk-auth-panel { position: relative; }
.bk-auth-help { position: absolute; top: 1.25rem; right: 1.5rem; color: var(--bk-ink-2); font-weight: 600; font-size: .9rem; text-decoration: none; padding: .35rem .75rem; border-radius: 2rem; background: rgba(255, 255, 255, .7); border: 1px solid var(--bk-line); z-index: 2; }
.bk-auth-help:hover { color: var(--bk-ink); background: #fff; }

.bk-help-modal .modal-content { border: 0; border-radius: 1rem; overflow: hidden; box-shadow: 0 24px 64px rgba(18, 38, 30, .22); }
.bk-help-modal .modal-header { background: var(--bk-cream); border-bottom: 1px solid var(--bk-line); padding: .85rem 1.25rem; }
.bk-help-modal .modal-footer { background: #fff; border-top: 1px solid var(--bk-line); padding: .6rem 1.25rem; }
.bk-help-modal kbd, .bk-help-centre-hero kbd { background: var(--bk-ink); color: #fff; border-radius: .35rem; padding: .05rem .4rem; font-size: .8em; }
.bk-help-badge { width: 36px; height: 36px; border-radius: .7rem; background: var(--bk-yellow); color: var(--bk-ink); display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem; }
.bk-help-layout { display: flex; min-height: 60vh; }
.bk-help-layout.has-nav .bk-help-main { border-left: 1px solid var(--bk-line); }
.bk-help-nav { flex: 0 0 260px; background: #FFFDF7; padding: 1rem .75rem; overflow-y: auto; max-height: calc(100vh - 12rem); position: sticky; top: 0; }
.bk-help-nav nav { display: flex; flex-direction: column; gap: 2px; margin-top: .75rem; }
.bk-help-nav nav button { display: flex; align-items: center; gap: .6rem; width: 100%; border: 0; background: none; text-align: left; padding: .45rem .65rem; border-radius: .6rem; color: var(--bk-ink-2); font-size: .875rem; font-weight: 500; }
.bk-help-nav nav button i { color: var(--bk-muted); font-size: 1rem; width: 1.1rem; text-align: center; }
.bk-help-nav nav button span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-help-nav nav button small { font-size: .68rem; font-weight: 600; color: var(--bk-yellow-ink); background: var(--bk-cream-2); padding: .05rem .4rem; border-radius: 1rem; }
.bk-help-nav nav button:hover { background: rgba(201, 162, 39, .14); color: var(--bk-ink); }
.bk-help-nav nav button.active { background: var(--bk-yellow); color: var(--bk-ink); font-weight: 600; }
.bk-help-nav nav button.active i { color: var(--bk-ink); }
.bk-help-nav nav button.active small { background: rgba(255, 255, 255, .6); }
.bk-help-empty { font-size: .85rem; color: var(--bk-muted); padding: .5rem .65rem; margin: 0; }
.bk-help-search { position: relative; }
.bk-help-search i { position: absolute; left: .7rem; top: 50%; transform: translateY(-50%); color: var(--bk-muted); }
.bk-help-search .form-control { padding-left: 2rem; border-radius: .6rem; border-color: var(--bk-line); }
.bk-help-search .form-control:focus { border-color: var(--bk-yellow); box-shadow: 0 0 0 .2rem rgba(201, 162, 39, .25); }
.bk-help-search-lg { max-width: 520px; }
.bk-help-search-lg .form-control { padding: .7rem 1rem .7rem 2.3rem; border-radius: .8rem; }
.bk-help-main { flex: 1; min-width: 0; padding: 1.5rem 1.75rem 1.75rem; transition: opacity .15s; }
.bk-help-main.is-loading { opacity: .45; pointer-events: none; }

.bk-help-hero { display: flex; gap: 1rem; align-items: flex-start; padding-bottom: 1.25rem; margin-bottom: 1.25rem; border-bottom: 1px dashed var(--bk-line); }
.bk-help-hero h3 { font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; margin: .1rem 0 .35rem; }
.bk-help-hero p { color: var(--bk-ink-2); margin-bottom: .9rem; }
.bk-help-hero-icon { flex: 0 0 auto; width: 48px; height: 48px; border-radius: .9rem; background: linear-gradient(135deg, #EADBA8, #F7F1E0); color: var(--bk-yellow-ink); display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.bk-help-hero-icon.sm { width: 40px; height: 40px; font-size: 1.15rem; border-radius: .75rem; }
.bk-help-video-btn { display: inline-flex; align-items: center; gap: .65rem; border: 1px solid var(--bk-line); background: #fff; color: var(--bk-ink); border-radius: 2rem; padding: .3rem 1rem .3rem .3rem; font-weight: 600; font-size: .9rem; box-shadow: var(--bk-shadow); transition: transform .12s, box-shadow .12s; }
.bk-help-video-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(201, 162, 39, .35); }
.bk-help-video-btn .play { width: 32px; height: 32px; border-radius: 50%; background: var(--bk-yellow); display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem; }
.bk-help-video-btn small { color: var(--bk-muted); font-weight: 500; margin-left: .35rem; }
.bk-help-video-btn.is-disabled { opacity: .6; box-shadow: none; cursor: default; }
.bk-help-video-btn.is-disabled .play { background: var(--bk-cream-2); }

.bk-help-section { margin-bottom: 1.35rem; }
.bk-help-topic h4 { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--bk-muted); margin-bottom: .6rem; }
.bk-help-section p { color: var(--bk-ink-2); margin-bottom: .5rem; }
.bk-help-topic code { color: var(--bk-yellow-ink); background: var(--bk-cream-2); padding: .05rem .3rem; border-radius: .3rem; font-size: .85em; }
.bk-help-list { list-style: none; padding: 0; margin: 0; }
.bk-help-list li { position: relative; padding: .28rem 0 .28rem 1.4rem; color: var(--bk-ink-2); }
.bk-help-list li::before { content: ""; position: absolute; left: .3rem; top: .78rem; width: 7px; height: 7px; border-radius: 50%; background: var(--bk-yellow); }
.bk-help-steps { list-style: none; counter-reset: hvstep; padding: 0; margin: 0; }
.bk-help-steps li { counter-increment: hvstep; position: relative; padding: .35rem 0 .35rem 2.4rem; color: var(--bk-ink-2); min-height: 2rem; }
.bk-help-steps li::before { content: counter(hvstep); position: absolute; left: 0; top: .3rem; width: 1.65rem; height: 1.65rem; border-radius: 50%; background: var(--bk-ink); color: #fff; font-size: .78rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.bk-help-steps li + li::after { content: ""; position: absolute; left: .8rem; top: -.4rem; height: .7rem; border-left: 2px dotted var(--bk-line); }
.bk-help-tips { background: var(--bk-cream); border: 1px solid var(--bk-line); border-left: 4px solid var(--bk-yellow); border-radius: .8rem; padding: .9rem 1.1rem; margin-bottom: 1.35rem; }
.bk-help-tips h4 { color: var(--bk-yellow-ink); }
.bk-help-tips ul { margin: 0; padding-left: 1.1rem; color: var(--bk-ink-2); }
.bk-help-tips li + li { margin-top: .3rem; }
.bk-help-roles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .6rem; }
.bk-help-role { border: 1px solid var(--bk-line); border-radius: .75rem; padding: .65rem .8rem; font-size: .875rem; color: var(--bk-ink-2); }
.bk-help-role b { display: block; color: var(--bk-ink); margin-bottom: .15rem; }
.bk-help-role.is-mine { border-color: var(--bk-yellow); background: #FCFAF2; box-shadow: 0 0 0 3px rgba(201, 162, 39, .18); }
.bk-help-related > div { display: flex; flex-wrap: wrap; gap: .45rem; }
.bk-help-chip { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--bk-line); background: #fff; border-radius: 2rem; padding: .3rem .8rem; font-size: .85rem; font-weight: 500; color: var(--bk-ink); }
.bk-help-chip:hover { border-color: var(--bk-yellow); background: var(--bk-cream); }
.bk-help-chip i { color: var(--bk-yellow-ink); }

.bk-help-video { position: relative; border-radius: .9rem; overflow: hidden; background: #111; aspect-ratio: 16 / 9; box-shadow: var(--bk-shadow); }
.bk-help-video video { width: 100%; height: 100%; display: block; background: #111; }
.bk-help-chapters { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.bk-help-chapters button { display: flex; gap: .75rem; width: 100%; text-align: left; border: 0; background: none; padding: .4rem .55rem; border-radius: .5rem; font-size: .875rem; color: var(--bk-ink-2); }
.bk-help-chapters button:hover { background: var(--bk-cream); color: var(--bk-ink); }
.bk-help-chapters button span { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--bk-yellow-ink); flex: 0 0 2.6rem; }

.bk-help-centre-hero { background: linear-gradient(120deg, #F2E9CC 0%, #FFFBEF 60%, #fff 100%); border: 1px solid var(--bk-line); }
.bk-help-centre-stats { display: flex; gap: 1rem; }
.bk-help-centre-stats div { background: #fff; border: 1px solid var(--bk-line); border-radius: .9rem; padding: .8rem 1.3rem; text-align: center; min-width: 110px; }
.bk-help-centre-stats b { display: block; font-size: 1.6rem; font-weight: 800; }
.bk-help-centre-stats span { font-size: .8rem; color: var(--bk-muted); }
.bk-help-card { transition: transform .12s, box-shadow .12s; }
.bk-help-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(18, 38, 30, .08); }

@media (max-width: 767.98px) {
    .bk-help-layout { flex-direction: column; min-height: 0; }
    .bk-help-layout.has-nav .bk-help-main { border-left: 0; border-top: 1px solid var(--bk-line); }
    .bk-help-nav { flex: none; max-height: none; position: static; padding: .75rem; }
    .bk-help-nav nav { flex-direction: row; overflow-x: auto; gap: .35rem; padding-bottom: .25rem; }
    .bk-help-nav nav button { flex: 0 0 auto; width: auto; border: 1px solid var(--bk-line); border-radius: 2rem; padding: .3rem .75rem; }
    .bk-help-nav nav button small { display: none; }
    .bk-help-main { padding: 1.1rem 1rem 1.25rem; }
    .bk-help-hero { flex-direction: column; gap: .6rem; }
    .bk-help-modal .modal-footer span:last-child { display: none; }
    .bk-auth-help { top: .75rem; right: .75rem; }
}

/* ---- Hiring channels: integration snippets, share & track links ---- */
.bk-mono { font-family: SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; font-size: .8rem; }
.bk-snippet { position: relative; background: #1F2330; color: #F4F1E8; border-radius: .6rem; padding: .85rem 3rem .85rem 1rem; }
.bk-snippet pre { margin: 0; color: inherit; font-size: .78rem; white-space: pre-wrap; word-break: break-all; }
.bk-snippet .js-copy { position: absolute; top: .45rem; right: .45rem; padding: .15rem .45rem; }
.bk-share li { display: flex; align-items: center; gap: .6rem; padding: .45rem 0; border-bottom: 1px solid var(--bk-line, #EEE9DA); }
.bk-share li:last-child { border-bottom: 0; }
.bk-share .bk-share-url { flex: 1 1 auto; min-width: 0; font-size: .75rem; color: var(--bk-muted, #6B7080); background: transparent; }
@media (max-width: 575.98px) { .bk-share li { flex-wrap: wrap; } .bk-share .bk-share-url { flex-basis: 100%; order: 3; } }

/* ---------- Phone calendar sync ---------- */
.bk-cal-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--bk-yellow-soft, #F3EBD3); color: #0B5D3F; display: inline-flex; align-items: center; justify-content: center; font-size: 1.35rem; flex-shrink: 0; }
.bk-cal-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #16a34a; margin-left: 4px; vertical-align: middle; box-shadow: 0 0 0 2px #fff; }
.bk-cal-phones { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.bk-cal-phones span { background: #F5F3EC; border-radius: 999px; padding: .35rem .8rem; font-size: .85rem; font-weight: 500; }
.bk-cal-qr { display: inline-flex; padding: 12px; background: #fff; border: 1px solid #E7E2D3; border-radius: 14px; min-width: 226px; min-height: 226px; align-items: center; justify-content: center; }
.bk-cal-qr img, .bk-cal-qr canvas { display: block; }
.bk-cal-tabs .nav-link { font-size: .85rem; padding: .3rem .8rem; color: #475569; }
.bk-cal-tabs .nav-link.active { background: #0f172a; color: #fff; }
.bk-cal-steps { background: #FBFAF6; border: 1px solid #EEE9DB; border-radius: 12px; padding: .9rem 1rem .4rem; margin: .75rem 0; font-size: .875rem; }
.bk-cal-steps ol { padding-left: 1.1rem; margin-bottom: .5rem; }
.bk-cal-steps li { margin-bottom: .35rem; }
#calendarSyncUrl { font-size: .75rem; }

/* ---------- Training Academy ---------- */
.bk-academy-hero { background: linear-gradient(120deg, #F7F1E0 0%, #fff 55%); border: 1px solid var(--bk-line); }
.bk-academy-ring { --p: 0; flex: 0 0 auto; width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--bk-yellow) calc(var(--p) * 1%), #F1EBDA 0); }
.bk-academy-ring > span { width: 92px; height: 92px; border-radius: 50%; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.bk-academy-ring b { font-size: 1.6rem; font-weight: 800; }
.bk-academy-ring small { color: var(--bk-muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.bk-academy-how { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; min-width: 260px; }
.bk-academy-how li { display: grid; grid-template-columns: 32px 1fr; column-gap: .65rem; align-items: center; background: #fff; border: 1px solid var(--bk-line); border-radius: .75rem; padding: .5rem .75rem; }
.bk-academy-how i { grid-row: span 2; width: 32px; height: 32px; border-radius: .6rem; background: var(--bk-cream-2); color: var(--bk-yellow-ink); display: grid; place-items: center; }
.bk-academy-how b { font-size: .88rem; }
.bk-academy-how span { font-size: .78rem; color: var(--bk-muted); }
.bk-academy-path { display: grid; gap: .65rem; position: relative; }
.bk-academy-module { text-decoration: none; border: 1px solid var(--bk-line); transition: transform .12s, box-shadow .12s, border-color .12s; margin-bottom: 0; }
.bk-academy-module:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(18, 38, 30, .08); border-color: #F1D98A; }
.bk-academy-module.is-next { border-color: var(--bk-yellow); box-shadow: 0 0 0 3px rgba(201, 162, 39, .25); }
.bk-academy-module.is-done { background: #FBFDF9; }
.bk-academy-num { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; background: #F1EBDA; color: var(--bk-ink-2); font-weight: 700; font-size: .9rem; display: grid; place-items: center; }
.bk-academy-module.is-done .bk-academy-num { background: #22A06B; color: #fff; }
.bk-academy-module.is-started .bk-academy-num, .bk-academy-module.is-next .bk-academy-num { background: var(--bk-yellow); color: var(--bk-ink); }
.bk-academy-parts { display: flex; gap: .35rem; flex-wrap: wrap; }
.bk-academy-parts span { font-size: .72rem; font-weight: 600; color: var(--bk-muted); background: #F6F3EA; border-radius: 2rem; padding: .2rem .55rem; white-space: nowrap; }
.bk-academy-parts span.is-done { background: #E3F5EC; color: #167A50; }
.bk-academy-parts span.is-tried { background: #FFF1DD; color: #9A5B00; }
.bk-academy-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.bk-academy-steps a { display: flex; align-items: center; gap: .55rem; padding: .6rem .85rem; border-radius: .8rem; background: #fff; border: 1px solid var(--bk-line); color: var(--bk-ink); font-weight: 600; text-decoration: none; }
.bk-academy-steps a > span { width: 26px; height: 26px; border-radius: 50%; background: #F1EBDA; display: grid; place-items: center; font-size: .8rem; }
.bk-academy-steps a small { margin-left: auto; color: var(--bk-muted); font-weight: 500; }
.bk-academy-steps a.is-done > span { background: #22A06B; color: #fff; }
.bk-academy-tag { width: 28px; height: 28px; border-radius: .55rem; background: var(--bk-yellow); color: var(--bk-ink); font-weight: 800; display: inline-grid; place-items: center; font-size: .85rem; }
.bk-academy-outcomes { background: var(--bk-cream); border: 1px solid var(--bk-line); border-radius: .8rem; padding: .85rem 1rem; }
.bk-academy-outcomes ul { padding-left: 1.1rem; }
.bk-academy-video { position: sticky; top: 1rem; }
.bk-academy-steplist { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.bk-academy-steplist li { counter-increment: s; display: flex; gap: .6rem; align-items: center; font-size: .9rem; }
.bk-academy-steplist li::before { content: counter(s); flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; background: var(--bk-cream-2); color: var(--bk-yellow-ink); font-weight: 700; font-size: .78rem; display: grid; place-items: center; }
.bk-academy-safe { display: flex; gap: .75rem; background: #EEF8F3; border: 1px solid #CBEBDB; border-radius: .8rem; padding: .85rem 1rem; color: #14532D; }
.bk-academy-safe > i { font-size: 1.5rem; color: #22A06B; }
.bk-academy-done { border: 1px solid #F1D98A; background: linear-gradient(120deg, #FFF3C4, #fff); }
.bk-academy-badge { width: 56px; height: 56px; border-radius: 50%; background: var(--bk-yellow); display: grid; place-items: center; font-size: 1.6rem; box-shadow: 0 0 0 6px #EADBA8; }
.bk-quiz-score { display: flex; align-items: center; gap: .75rem; border-radius: .8rem; padding: .75rem 1rem; }
.bk-quiz-score b { font-size: 1.6rem; font-weight: 800; }
.bk-quiz-score.is-pass { background: #E3F5EC; color: #14532D; }
.bk-quiz-score.is-fail { background: #FFF1DD; color: #7A4600; }
.bk-quiz-q { border: 1px solid var(--bk-line); border-radius: .85rem; padding: 1rem; margin-bottom: 1rem; }
.bk-quiz-q.is-right { border-color: #9ED9BC; }
.bk-quiz-q.is-wrong { border-color: #F3B8A8; }
.bk-quiz-q.is-missing { border-color: var(--bk-yellow); box-shadow: 0 0 0 3px rgba(201, 162, 39, .3); }
.bk-quiz-q legend { float: none; font-size: 1rem; font-weight: 600; display: flex; gap: .6rem; margin-bottom: .75rem; }
.bk-quiz-q legend > span { flex: 0 0 auto; width: 26px; height: 26px; border-radius: .5rem; background: var(--bk-ink); color: #fff; font-size: .8rem; display: grid; place-items: center; }
.bk-quiz-opt label { display: flex; align-items: center; gap: .65rem; width: 100%; border: 1px solid var(--bk-line); border-radius: .7rem; padding: .55rem .75rem; margin-bottom: .4rem; cursor: pointer; background: #fff; transition: border-color .12s, background .12s; }
.bk-quiz-opt label:hover { border-color: #F1D98A; background: var(--bk-cream); }
.bk-quiz-opt .btn-check:checked + label { border-color: var(--bk-yellow); background: #F7F1E0; box-shadow: inset 0 0 0 1px var(--bk-yellow); }
.bk-quiz-opt .btn-check:focus-visible + label { outline: 2px solid var(--bk-yellow-dark); outline-offset: 2px; }
.bk-quiz-opt .btn-check:disabled + label { cursor: default; opacity: .75; }
.bk-quiz-opt.is-answer label { border-color: #22A06B; background: #EEF8F3; }
.bk-quiz-opt.is-wrong-pick label { border-color: #E5664A; background: #FDF0EC; }
.bk-quiz-letter { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--bk-line); display: grid; place-items: center; font-size: .75rem; font-weight: 700; color: var(--bk-ink-2); background: #fff; }
.bk-quiz-opt .btn-check:checked + label .bk-quiz-letter { background: var(--bk-yellow); border-color: var(--bk-yellow); color: var(--bk-ink); }
.bk-quiz-explain { font-size: .86rem; color: var(--bk-ink-2); background: #F8F6F0; border-radius: .6rem; padding: .55rem .75rem; margin-top: .35rem; }
.bk-bg-yellow { background: var(--bk-yellow) !important; }
@media (max-width: 575.98px) {
    .bk-academy-steps { grid-template-columns: 1fr; }
    .bk-academy-how { min-width: 0; width: 100%; }
    .bk-academy-ring { width: 96px; height: 96px; }
    .bk-academy-ring > span { width: 74px; height: 74px; }
}

/* ---------- Practice coach ---------- */
.bk-practice-stripe { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 1090; background: repeating-linear-gradient(-45deg, var(--bk-yellow) 0 12px, var(--bk-ink) 12px 24px); }
.bk-coach { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1080; width: 360px; max-width: calc(100vw - 2rem); background: #fff; border: 1px solid var(--bk-line); border-radius: 1rem; box-shadow: 0 18px 50px rgba(18, 38, 30, .22); font-size: .9rem; overflow: hidden; animation: bkCoachIn .25s ease-out; }
.bk-coach { transition: left .25s ease, top .25s ease; }
.bk-coach.is-dragging { transition: none; user-select: none; box-shadow: 0 24px 60px rgba(18, 38, 30, .32); }
.bk-coach-head[data-drag], .bk-coach-pill { cursor: grab; touch-action: none; }
.bk-coach.is-dragging .bk-coach-head, .bk-coach.is-dragging .bk-coach-pill { cursor: grabbing; }
.bk-coach-grip { opacity: .45; font-size: 1rem; }
.bk-coach.is-min { width: auto; border: 0; background: transparent; box-shadow: none; overflow: visible; }
@keyframes bkCoachIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.bk-coach-head { display: flex; align-items: center; gap: .65rem; padding: .75rem .9rem; background: var(--bk-ink); color: #fff; }
.bk-coach-badge { flex: 0 0 auto; width: 34px; height: 34px; border-radius: .6rem; background: var(--bk-yellow); color: var(--bk-ink); display: grid; place-items: center; font-size: 1.05rem; }
.bk-coach-kicker { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--bk-yellow); font-weight: 700; }
.bk-coach-module { font-weight: 700; }
.bk-coach-icon { border: 0; background: transparent; color: #fff; opacity: .7; width: 30px; height: 30px; border-radius: .5rem; }
.bk-coach-icon:hover { opacity: 1; background: rgba(255, 255, 255, .1); }
.bk-coach-progress { height: 4px; background: #F1EBDA; }
.bk-coach-progress span { display: block; height: 100%; background: var(--bk-yellow); transition: width .3s; }
.bk-coach-body { padding: .9rem 1rem .4rem; }
.bk-coach-body h6 { font-weight: 700; font-size: 1rem; margin-bottom: .3rem; }
.bk-coach-body p { color: var(--bk-ink-2); margin-bottom: .6rem; }
.bk-coach-body code { background: var(--bk-cream-2); color: var(--bk-ink); padding: .05rem .3rem; border-radius: .3rem; }
.bk-coach-count { font-size: .72rem; font-weight: 700; color: var(--bk-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .15rem; }
.bk-coach-hint, .bk-coach-off, .bk-coach-missing { font-size: .8rem; border-radius: .6rem; padding: .45rem .6rem; margin-bottom: .5rem; display: flex; gap: .45rem; align-items: flex-start; }
.bk-coach-hint { background: var(--bk-cream); color: var(--bk-yellow-ink); font-weight: 600; }
.bk-coach-hint:empty { display: none; }
.bk-coach-off { background: #EEF4FF; color: #1E3A8A; }
.bk-coach-missing { background: #F6F3EA; color: var(--bk-ink-2); }
.bk-coach-missing[hidden] { display: none; }
.bk-coach-foot { display: flex; align-items: center; gap: .35rem; padding: .6rem 1rem .8rem; border-top: 1px solid #F3EEE1; }
.bk-coach-trophy { width: 56px; height: 56px; margin: .25rem auto .6rem; border-radius: 50%; background: var(--bk-yellow); display: grid; place-items: center; font-size: 1.6rem; box-shadow: 0 0 0 6px #EADBA8; }
.bk-coach-pill { border: 0; border-radius: 2rem; background: var(--bk-ink); color: #fff; font-weight: 600; padding: .55rem 1rem; box-shadow: 0 10px 30px rgba(18, 38, 30, .3); display: inline-flex; gap: .45rem; align-items: center; }
.bk-coach-pill .bi-mortarboard { color: var(--bk-yellow); }
.bk-coach-spot { position: fixed; z-index: 1040; pointer-events: none; border-radius: .7rem; border: 2px solid var(--bk-yellow); box-shadow: 0 0 0 4px rgba(201, 162, 39, .35), 0 0 0 9999px rgba(18, 38, 30, .18); opacity: 0; transition: opacity .2s, top .15s, left .15s, width .15s, height .15s; }
.bk-coach-spot.is-on { opacity: 1; animation: hvSpot 1.6s ease-in-out infinite; }
.bk-coach-spot.in-modal { z-index: 1065; }
@keyframes hvSpot { 50% { box-shadow: 0 0 0 9px rgba(201, 162, 39, .18), 0 0 0 9999px rgba(18, 38, 30, .18); } }
@media (max-width: 575.98px) { .bk-coach { right: 1rem; left: 1rem; bottom: 1rem; width: auto; } }
@media print { .bk-coach, .bk-coach-spot, .bk-practice-stripe { display: none !important; } }

/* User menu */
.bk-um-avatar { width: 32px; height: 32px; object-fit: cover; flex: 0 0 auto; }
.bk-um-initials { display: inline-flex; align-items: center; justify-content: center; background: var(--bk-yellow); color: var(--bk-ink); font-weight: 700; font-size: .78rem; }
.bk-um-avatar-lg { width: 48px; height: 48px; font-size: 1rem; }
.bk-um-dropdown { min-width: 280px; padding: .4rem; border: 1px solid var(--bk-line); border-radius: var(--bk-radius); box-shadow: 0 10px 30px rgba(18, 38, 30, .12); }
.bk-um-header { display: flex; align-items: center; gap: .75rem; padding: .6rem .7rem .7rem; }
.bk-um-header .min-w-0 { min-width: 0; }
.bk-um-role { background: var(--bk-cream-2); color: var(--bk-yellow-ink); font-weight: 600; }
.bk-um-dropdown .dropdown-item { border-radius: .55rem; padding: .5rem .7rem; display: flex; align-items: center; gap: .6rem; }
.bk-um-dropdown .dropdown-item i { width: 1.1rem; text-align: center; color: var(--bk-muted); }
.bk-um-dropdown .dropdown-item:hover, .bk-um-dropdown .dropdown-item:focus { background: var(--bk-cream); color: var(--bk-ink); }
.bk-um-dropdown .dropdown-item.text-danger i { color: inherit; }
.bk-um-dropdown .dropdown-item.text-danger:hover { background: #fdecec; color: #b42318; }
#detailsCard, #passwordCard, #calendarSyncCard { scroll-margin-top: 80px; }

/* ---------- Autosave status chip (barakah-autosave.js) ---------- */
.bk-autosave { display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; font-weight: 500; padding: .35rem .75rem; border-radius: 2rem; background: #F4F2EC; color: var(--bk-muted); white-space: nowrap; transition: background .2s, color .2s; }
.bk-autosave .bk-autosave-icon { font-size: .95rem; line-height: 1; }
.bk-autosave .spinner-border-sm { width: .85rem; height: .85rem; border-width: .15em; }
.bk-autosave[data-state="saved"] { background: #E6F6EC; color: #157F3D; }
.bk-autosave[data-state="saving"] { background: #F6EFD6; color: #7A5F10; }
.bk-autosave[data-state="dirty"] { background: #F6EFD6; color: #7A5F10; }
.bk-autosave[data-state="dirty"] .bk-autosave-icon { font-size: 1.4rem; margin: -.3rem -.25rem; }
.bk-autosave[data-state="error"] { background: #FDECEC; color: #B42318; }

/* ---------- File lists & preview (barakah-files.js) ---------- */
.bk-file { display: flex; align-items: center; gap: .75rem; padding: .55rem .7rem; border: 1px solid #EEE8D8; border-radius: .6rem; background: #fff; margin-bottom: .45rem; }
.bk-file-icon { font-size: 1.5rem; flex-shrink: 0; }
.bk-file-info { flex: 1; min-width: 0; }
.bk-file-name { display: block; max-width: 100%; font-weight: 600; font-size: .88rem; color: var(--bk-ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
button.bk-file-name:hover { color: #7A5F10; text-decoration: underline; }
.bk-file-meta { font-size: .78rem; color: var(--bk-muted); }
.bk-file-actions { display: flex; gap: .35rem; white-space: nowrap; flex-shrink: 0; }
.bk-file-progress { height: .35rem; margin-top: .35rem; }
.bk-file.is-uploading { opacity: .7; }
.bk-file.is-failed { border-color: #F5C2C0; background: #FFF8F8; }
.bk-drop.is-over { border-color: var(--bk-yellow); background: #F6EFD6; }
.bk-preview-frame { display: block; width: 100%; height: 78vh; border: 0; background: #525659; }
.bk-preview-image { display: grid; place-items: center; background: #F4F2EC; min-height: 50vh; padding: 1rem; }
.bk-preview-image img { max-width: 100%; max-height: 76vh; border-radius: .4rem; box-shadow: 0 6px 24px rgba(0,0,0,.12); }
.bk-preview-none { text-align: center; padding: 4rem 1rem; }
.bk-preview-none > .bi { font-size: 3.5rem; }
@media (max-width: 991.98px) { .bk-preview-frame { height: calc(100vh - 70px); } }

/* Barakah emerald primary: actions, active navigation and progress use emerald; gold stays the accent. */
:root { --bk-emerald: #0B5D3F; --bk-emerald-2: #0F7A55; --bk-emerald-dark: #08452F; --bk-gold: #C9A227; }
.app-sidebar .sidebar-menu .nav-link.active { background: var(--bk-emerald) !important; color: #fff !important; box-shadow: 0 4px 12px rgba(11, 93, 63, .3); }
.app-sidebar .sidebar-menu .nav-link.active .nav-icon { color: var(--bk-gold); }
.app-sidebar .sidebar-menu .nav-link:hover { background: rgba(11, 93, 63, .08); }
.bk-sidebar-foot { background: linear-gradient(135deg, var(--bk-emerald), var(--bk-emerald-2)); color: #fff; }
.bk-sidebar-foot span { background: var(--bk-gold); }
.btn-primary {
    --bs-btn-color: #fff; --bs-btn-bg: var(--bk-emerald); --bs-btn-border-color: var(--bk-emerald);
    --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--bk-emerald-2); --bs-btn-hover-border-color: var(--bk-emerald-2);
    --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--bk-emerald-dark); --bs-btn-active-border-color: var(--bk-emerald-dark);
    --bs-btn-disabled-color: #fff; --bs-btn-disabled-bg: var(--bk-emerald); --bs-btn-disabled-border-color: var(--bk-emerald);
}
.btn-success { --bs-btn-bg: var(--bk-emerald); --bs-btn-border-color: var(--bk-emerald); --bs-btn-hover-bg: var(--bk-emerald-2); --bs-btn-hover-border-color: var(--bk-emerald-2); --bs-btn-active-bg: var(--bk-emerald-dark); }
.btn-outline-primary { --bs-btn-color: var(--bk-emerald); --bs-btn-border-color: var(--bk-emerald); --bs-btn-hover-bg: var(--bk-emerald); --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: var(--bk-emerald); --bs-btn-active-bg: var(--bk-emerald-dark); --bs-btn-active-color: #fff; }
.btn-gold { --bs-btn-color: #12261E; --bs-btn-bg: var(--bk-gold); --bs-btn-border-color: var(--bk-gold); --bs-btn-hover-bg: #D8B445; --bs-btn-hover-border-color: #D8B445; --bs-btn-hover-color: #12261E; --bs-btn-active-bg: #A8851A; font-weight: 600; }
.text-bg-primary, .bg-primary { background-color: var(--bk-emerald) !important; color: #fff !important; }
.text-primary { color: var(--bk-emerald) !important; }
.bg-emerald { background-color: var(--bk-emerald) !important; color: #fff !important; }
.text-emerald { color: var(--bk-emerald) !important; }
.text-gold { color: var(--bk-gold) !important; }
.bg-gold { background-color: var(--bk-gold) !important; color: #12261E !important; }
.text-bg-teal { background: #0E8C8C !important; color: #fff !important; }
.text-bg-purple { background: #6B4FA0 !important; color: #fff !important; }
.text-bg-gold { background: var(--bk-gold) !important; color: #12261E !important; }
.progress-bar { background: var(--bk-emerald); }
.active > .page-link, .page-link.active { background-color: var(--bk-emerald); border-color: var(--bk-emerald); color: #fff; }
.nav-pills .nav-link.active { background: var(--bk-emerald); color: #fff; }
.form-check-input:checked { background-color: var(--bk-emerald); border-color: var(--bk-emerald); }
.bk-coach-kicker, .bk-coach-pill .bi-mortarboard { color: var(--bk-gold); }

/* Lot grid (public campaign pages) */
.bk-lot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 4px; }
.bk-lot { aspect-ratio: 1; border-radius: .35rem; border: 1px solid var(--bk-line); background: #fff; font-size: .62rem; color: var(--bk-muted); display: grid; place-items: center; cursor: pointer; padding: 0; transition: transform .1s; }
.bk-lot:hover { transform: scale(1.08); border-color: var(--bk-gold); }
.bk-lot.is-taken { background: var(--bk-emerald); border-color: var(--bk-emerald); color: rgba(255,255,255,.85); }
.bk-lot.is-anon { background: var(--bk-emerald-2); border-color: var(--bk-emerald-2); color: rgba(255,255,255,.85); }
.bk-lot.is-pending { background: #EADBA8; border-color: var(--bk-gold); color: #7A5F10; }
.bk-lot.is-selected { background: var(--bk-gold); border-color: #A8851A; color: #12261E; font-weight: 700; }
.bk-lot.is-mine { box-shadow: 0 0 0 2px var(--bk-gold); }
.bk-lot-legend span { display: inline-flex; align-items: center; gap: .35rem; margin-right: 1rem; font-size: .8rem; color: var(--bk-muted); }
.bk-lot-legend i { width: 14px; height: 14px; border-radius: .2rem; display: inline-block; border: 1px solid var(--bk-line); }

/* Ledger buckets */
.bk-ledger-bar { display: flex; height: 18px; border-radius: 9px; overflow: hidden; background: var(--bk-cream-2); }
.bk-ledger-bar > div { height: 100%; }
.bk-ledger-released { background: #0B5D3F; } .bk-ledger-awaiting { background: #C9A227; } .bk-ledger-approved { background: #0E8C8C; }
.bk-ledger-retained { background: #6B4FA0; } .bk-ledger-protected { background: #9DB8A9; }
.bk-ledger-key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: .35rem; }
/* Columns follow the card's width, not the window's, so the legend also fits in a half-width card. */
.bk-ledger-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: .5rem; }

/* Barakah auth hero sits on a dark emerald animated background. */
.bk-auth-hero .bk-wordmark, .bk-auth-hero .bk-auth-pitch h2, .bk-auth-hero .bk-auth-features div { color: #FBF7EC; }
.bk-auth-hero .bk-tagline, .bk-auth-hero .bk-auth-pitch p { color: rgba(251, 247, 236, .82); }
.bk-auth-hero .bk-auth-features div { border-left-color: rgba(251, 247, 236, .2); }
.bk-auth-hero .bk-auth-features i { color: var(--bk-gold); }
.bk-auth-hero .bk-wordmark { display: flex; align-items: center; gap: .9rem; font-size: 3.4rem; }
.bk-auth-hero .bk-wordmark img { width: 64px; height: 64px; }
.bk-auth-hero .bk-wordmark small { display: block; font-size: .32em; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--bk-gold); margin-top: .35rem; }
.bk-auth-pillars { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.5rem; }
.bk-auth-pillars span { font-size: .7rem; font-weight: 700; letter-spacing: .1em; padding: .3rem .6rem; border-radius: 2rem; border: 1px solid rgba(201, 162, 39, .6); color: #F3E3A6; }
.bk-auth-card a.bk-link { color: var(--bk-emerald); font-weight: 600; text-decoration: none; }
.bk-auth-card a.bk-link:hover { text-decoration: underline; }
.bk-auth-public { position: absolute; top: 1.2rem; left: 1.4rem; font-size: .9rem; color: var(--bk-emerald); text-decoration: none; font-weight: 600; }
.bk-auth-panel { position: relative; }
.bk-demo-code { font-family: ui-monospace, monospace; font-size: 1.3rem; letter-spacing: .3em; font-weight: 700; color: var(--bk-emerald); }
.bk-otp { font-size: 1.6rem; letter-spacing: .5em; text-align: center; font-family: ui-monospace, monospace; }

/* Public site */
.bk-public { background: var(--bk-bg); }
.bk-public-nav { background: rgba(251, 247, 236, .95); backdrop-filter: blur(6px); border-bottom: 1px solid var(--bk-line); }
.bk-public-nav .navbar-brand { color: var(--bk-emerald); font-size: 1.25rem; }
.bk-public-nav .navbar-brand small { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: #A8851A; font-weight: 600; }
.bk-public-nav .nav-link { color: var(--bk-ink-2); font-weight: 500; }
.bk-public-nav .nav-link.active, .bk-public-nav .nav-link:hover { color: var(--bk-emerald); }
.bk-public-footer { background: #08452F; color: #E9E2CC; padding: 3rem 0 1.5rem; margin-top: 4rem; }
.bk-public-footer h6 { color: var(--bk-gold); text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; font-weight: 700; }
.bk-public-footer a { color: #E9E2CC; text-decoration: none; }
.bk-public-footer a:hover { color: #fff; text-decoration: underline; }
.bk-public-footer li { margin-bottom: .35rem; }
.bk-public-pillars { text-align: center; letter-spacing: .25em; font-size: .72rem; font-weight: 700; color: var(--bk-gold); margin: 2rem 0 .5rem; padding-top: 1.5rem; border-top: 1px solid rgba(233, 226, 204, .15); }
.bk-hero { background: linear-gradient(135deg, #08452F 0%, #0B5D3F 55%, #0F7A55 100%); color: #FBF7EC; padding: 4.5rem 0 4rem; position: relative; overflow: hidden; }
.bk-hero h1 { font-weight: 800; letter-spacing: -.02em; font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.1; }
.bk-hero .lead { color: rgba(251, 247, 236, .85); }
.bk-hero .bk-arabic { font-family: Amiri, serif; color: var(--bk-gold); font-size: 1.4rem; }
.bk-card { background: #fff; border: 1px solid var(--bk-line); border-radius: var(--bk-radius); box-shadow: var(--bk-shadow); }
.bk-campaign-card { overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.bk-campaign-card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(11, 93, 63, .12); }
.bk-campaign-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.bk-kpi { font-size: 1.6rem; font-weight: 800; color: var(--bk-emerald); line-height: 1.1; }
.bk-kpi-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--bk-muted); font-weight: 600; }
.bk-section-title { font-weight: 800; letter-spacing: -.01em; color: var(--bk-ink); }
.bk-flow { display: flex; flex-wrap: wrap; gap: .5rem; }
.bk-flow > div { flex: 1 1 140px; background: #fff; border: 1px solid var(--bk-line); border-radius: .8rem; padding: 1rem; position: relative; }
.bk-flow > div b { display: block; color: var(--bk-emerald); font-size: .78rem; letter-spacing: .12em; }
.bk-stage-track { display: flex; gap: 4px; }
.bk-stage-track > div { flex: 1; text-align: center; font-size: .72rem; padding: .45rem .2rem; border-radius: .4rem; background: var(--bk-cream-2); color: var(--bk-muted); font-weight: 600; }
.bk-stage-track > div.done { background: var(--bk-emerald); color: #fff; }
.bk-stage-track > div.current { background: var(--bk-gold); color: #12261E; }
@media (max-width: 575.98px) { .bk-stage-track { flex-wrap: wrap; } .bk-stage-track > div { flex: 1 1 30%; } }
