/* ============================================================
   CREATOR PANEL SHELL THEME
   Two themes: White/Light (A) and Brand Violet (B).
   Switch by commenting one :root block and uncommenting the other.
   ============================================================ */

/* ---- THEME A: White / Light (active) ---- 
:root {
  --lb-sidebar-bg:            #FFFFFF;
  --lb-sidebar-shadow:        1px 0 0 0 #E4E5EC;
  --lb-sidebar-text:          #161824;
  --lb-sidebar-text-sub:      #6B6F80;
  --lb-sidebar-icon:          #6B6F80;
  --lb-sidebar-active-bg:     #EFEDFF;
  --lb-sidebar-active-text:   #4129e7;
  --lb-sidebar-active-icon:   #4129e7;
  --lb-sidebar-hover-bg:      #F1F2F6;
  --lb-sidebar-user-panel-bg: #F7F7FB;
  --lb-navbar-bg:             #FFFFFF;
  --lb-navbar-shadow:         0 1px 0 0 #E4E5EC;
  --lb-navbar-text:           #161824;
  --lb-navbar-icon:           #6B6F80;
  --lb-footer-bg:             #F7F7FB;
  --lb-footer-text:           #9CA0AE;
  --lb-logo-colored-display:  block;
  --lb-logo-white-display:    none;
  --lb-bn-bg:              #FFFFFF;
  --lb-bn-border:          rgba(0,0,0,0.08);
  --lb-bn-tab-color:       #4129e7;
  --lb-bn-active-bg:       #4129e7;
  --lb-bn-active-color:    #FFFFFF;
  --lb-bn-active-weight:   400;
  --lb-bn-active-shadow:   0 -5px 12px rgba(65,41,231,0.30);
}
*/
/* ---- THEME B: Brand Violet (uncomment to activate) ----*/
:root {
  --lb-sidebar-bg:            #4129e7;
  --lb-sidebar-shadow:        none;
  --lb-sidebar-text:          rgba(255,255,255,0.88);
  --lb-sidebar-text-sub:      rgba(255,255,255,0.55);
  --lb-sidebar-icon:          rgba(255,255,255,0.65);
  --lb-sidebar-active-bg:     rgba(255,255,255,0.18);
  --lb-sidebar-active-text:   #FFFFFF;
  --lb-sidebar-active-icon:   #FFFFFF;
  --lb-sidebar-hover-bg:      rgba(255,255,255,0.10);
  --lb-sidebar-user-panel-bg: rgba(0,0,0,0.18);
  --lb-navbar-bg:             #3a22d4;
  --lb-navbar-shadow:         none;
  --lb-navbar-text:           #FFFFFF;
  --lb-navbar-icon:           rgba(255,255,255,0.80);
  --lb-footer-bg:             #3a22d4;
  --lb-footer-text:           rgba(255,255,255,0.50);
  --lb-logo-colored-display:  none;
  --lb-logo-white-display:    block;
  --lb-muted-bg:              rgba(255,255,255,0.12);
  --lb-bn-bg:              #3a22d4;
  --lb-bn-border:          rgba(255,255,255,0.15);
  --lb-bn-tab-color:       #FFFFFF;
  --lb-bn-active-bg:       rgba(255,255,255,0.14);
  --lb-bn-active-color:    #FFFFFF;
  --lb-bn-active-weight:   700;
  --lb-bn-active-shadow:   inset 0 3px 0 rgba(255,255,255,0.80);
  --lb-badge-free-color:   #FFFFFF;
}


/* ============================================================
   GLOBAL BRAND + UTILITY TOKENS
   ============================================================ */
:root {
  --lb-brand:           #4129e7;
  --lb-brand-hover:     #4A3CE5;
  --lb-brand-soft:      #EFEDFF;
  --lb-accent:          #FF7A59;
  --lb-accent-soft:     #FFEEE8;
  --lb-success:         #1FAD66;
  --lb-warning:         #F4A300;
  --lb-danger:          #E5484D;

  --lb-app-bg:          #F7F7FB;
  --lb-card-bg:         #FFFFFF;
  --lb-border:          rgba(255,255,255,0.4);
  --lb-text-1:          #161824;
  --lb-text-2:          #6B6F80;
  --lb-text-3:          #9CA0AE;

  --lb-shadow-subtle:   0 1px 2px rgba(22,24,36,0.04);
  --lb-shadow-card:     0 4px 12px rgba(22,24,36,0.06);
  --lb-shadow-modal:    0 12px 32px rgba(22,24,36,0.10);

  --lb-r-sm:            6px;
  --lb-r-md:            12px;
  --lb-r-lg:            20px;
  --lb-r-pill:          999px;

  --lb-navbar-h:        56px;
  --lb-footer-h:        40px;

  --lb-font-ar:         "Tajawal", system-ui, sans-serif;
  --lb-font-en:         "Jost", system-ui, sans-serif;
}

/* ============================================================
   BODY OVERRIDE
   ============================================================ */
body.hold-transition,
body#body-platform {
  font-family: var(--lb-font-ar);
  background: var(--lb-app-bg);
  color: var(--lb-text-1);
  font-size: 14px;
  line-height: 1.5;
  font-feature-settings: "kern", "ss01";
  -webkit-font-smoothing: antialiased;
}
[dir="ltr"] body { font-family: var(--lb-font-en); }

/* ============================================================
   SVG ICON UTILITIES
   ============================================================ */
.lb-num, .lb-mono { font-family: "JetBrains Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }

.lb-icon    { width: 20px; height: 20px; stroke-width: 1.75; flex-shrink: 0; }
.lb-icon-sm { width: 16px; height: 16px; stroke-width: 1.75; flex-shrink: 0; }
.lb-icon-xs { width: 12px; height: 12px; stroke-width: 2; flex-shrink: 0; }

[dir="rtl"] .lb-icon-dir { transform: scaleX(-1); }

/* ============================================================
   TOP NAVBAR — inner styling only; position/z-index owned by AdminLTE
   ============================================================ */
.main-header.navbar {
  height: var(--lb-navbar-h);
  background: var(--lb-navbar-bg);
  box-shadow: var(--lb-navbar-shadow);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  border-bottom: none;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.sidebar-mini.sidebar-collapse .main-header {
    margin-left: 0 !important;
    margin-right: 0 !important;
}



.navbar-left  { display: flex; align-items: center; gap: 8px; }
.navbar-right { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; }

/* hamburger */
.nav-toggle {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--lb-r-sm);
  color: var(--lb-navbar-icon);
  background: none; border: 0; cursor: pointer; padding: 0;
  transition: background .15s ease, color .15s ease;
}
.nav-toggle:hover { background: var(--lb-muted-bg); color: var(--lb-text-1); }

/* language pill */
.lang-pill {
  height: 28px;
  padding: 0 12px;
  border-radius: var(--lb-r-pill);
  border: 1px solid var(--lb-border);
  color: var(--lb-navbar-icon);
  font-family: var(--lb-font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.lang-pill:hover { background: var(--lb-muted-bg); color: var(--lb-text-1); }
.lang-pill .lb-icon-xs { opacity: .6; }

/* icon button (bell) */
.icon-btn {
  position: relative;
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--lb-r-sm);
  color: var(--lb-navbar-icon);
  background: none; border: 0; cursor: pointer; padding: 0;
  transition: background .15s ease, color .15s ease;
}
.icon-btn:hover { background: var(--lb-muted-bg); color: var(--lb-text-1); }
.icon-btn .badge-dot {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--lb-brand);
  box-shadow: 0 0 0 2px var(--lb-navbar-bg);
}

/* avatar trigger chip */
.avatar-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 4px 4px;
  border-radius: var(--lb-r-pill);
  border: 1px solid transparent;
  background: none; cursor: pointer; font: inherit; color: inherit;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
  margin-inline-start: 4px;
}
[dir="ltr"] .avatar-trigger { padding: 4px 4px 4px 10px; }
.avatar-trigger:hover { background: var(--lb-muted-bg); border-color: var(--lb-border); }
.avatar-trigger.is-open { background: var(--lb-muted-bg); border-color: var(--lb-border); }
.avatar-trigger .nav-avatar { width: 32px; height: 32px; }
.avatar-trigger .name {
  font-weight: 600;
  font-size: 13px;
  color: var(--lb-navbar-text);
  max-width: 110px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.avatar-trigger .chev { color: var(--lb-text-3); }
@media (max-width: 640px) {
  .avatar-trigger .name, .avatar-trigger .chev { display: none; }
  .avatar-trigger { padding: 0; border-radius: 50%; }
}

/* avatar circle */
.lb-avatar {
  border-radius: 50%;
  background: var(--lb-brand-soft);
  color: var(--lb-brand);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-family: var(--lb-font-en);
  font-size: 14px;
  flex-shrink: 0;
  letter-spacing: 0.02em;
  overflow: hidden;
}
.lb-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* avatar dropdown */
.avatar-menu {
  position: fixed;
  top: calc(var(--lb-navbar-h) + 6px);
  inset-inline-end: 16px;
  width: 240px;
  background: #fff;
  border-radius: var(--lb-r-md);
  box-shadow: var(--lb-shadow-modal);
  border: 1px solid #e5e7eb;
  padding: 6px;
  z-index: 80;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
  list-style: none; margin: 0;
}
.avatar-menu.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.avatar-menu .info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 12px;
}
.avatar-menu .info-row .meta { min-width: 0; }
.avatar-menu .info-row .meta .nm {
  font-weight: 600; font-size: 13px; color: var(--lb-text-1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.avatar-menu .am-divider { height: 1px; background: #e5e7eb; margin: 4px 2px; }
.avatar-menu .am-item {
  display: flex; align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--lb-text-1);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background .12s ease;
}
.avatar-menu .am-item:hover { background: var(--lb-app-bg); }
.avatar-menu .am-item .lb-icon-sm { color: var(--lb-text-2); flex-shrink: 0; }
.avatar-menu .am-item.danger { color: var(--lb-danger); }
.avatar-menu .am-item.danger .lb-icon-sm { color: var(--lb-danger); }
.avatar-menu .am-upload-link {
  display: block;
  font-size: 11px;
  color: var(--lb-brand);
  text-decoration: none;
  margin-top: 2px;
}
.avatar-menu .am-upload-link:hover { text-decoration: underline; }

/* ============================================================
   SIDEBAR — inner styling only; layout/position/show-hide owned by AdminLTE
   ============================================================ */
.main-sidebar {
  top: 57px !important;
  background: var(--lb-sidebar-bg);
  color: var(--lb-sidebar-text);
  box-shadow: var(--lb-sidebar-shadow);
  display: flex;
  flex-direction: column;
}
.layout-fixed .main-sidebar-custom {
  height: -webkit-fill-available;
  height: -moz-available;
  height: -ms-stretch;
  height: stretch;
}

.layout-fixed .main-sidebar-custom .sidebar {
  height: calc(100% - ( 142px + 79px + 2px));
}
/* keep overlay below our navbar so navbar stays visible above the dim */
#sidebar-overlay { z-index: 65; }

/* brand zone — override AdminLTE's layout-navbar-fixed fixed positioning */
.main-header .brand-link {
  position: static !important;
  width: auto !important;
  z-index: auto !important;
  overflow: visible !important;
  transition: none !important;
  min-width: 240px;
  padding-top: 0;
  padding-bottom: 0;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px 0 4px;
  color: var(--lb-navbar-text);
  text-decoration: none;
  flex-shrink: 0;
}


[dir="ltr"] .brand-link { padding: 0 4px 0 12px; }
.brand-mark {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, #4129e7 0%, #6c4cff 100%);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(65,41,231,.25);
}
.brand-mark svg { width: 18px; height: 18px; }
.brand-word {
  font-family: var(--lb-font-en);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.015em;
  color: var(--lb-navbar-text);
}
.brand-word .bw-accent { color: var(--lb-brand); }
.brand-logo-img { max-height: 36px; width: auto; }

/* user panel (overrides .user-panel) */
.user-panel {
  height: 79px;
  margin: 12px 7px;
  padding: 14px 7px;
  background: var(--lb-sidebar-user-panel-bg);
  border-radius: var(--lb-r-md);
  display: flex;
  align-items: center;
  gap: 12px;
  border-block-end: 0;
  flex-shrink: 0;
}
.user-panel .meta { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.user-panel .nm {
  font-weight: 600;
  font-size: 14px;
  color: var(--lb-sidebar-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: start;
}
.user-panel .plan { margin-block-start: 8px; display: inline-flex; align-items: center; }
body.sidebar-collapse .user-panel {
  height: 79px;
  margin: 12px 7px;
  padding: 14px 7px;
  background: transparent;
}
body.sidebar-collapse .user-panel .meta { display: none; }
body.sidebar-collapse .main-sidebar:hover .user-panel { background: var(--lb-sidebar-user-panel-bg); }
body.sidebar-collapse .main-sidebar:hover .user-panel .meta { display: flex; }

/* plan badges */
.plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 10px;
  border-radius: var(--lb-r-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-family: var(--lb-font-en);
}
.plan-badge.free    { background: var(--lb-muted-bg); color: var(--lb-badge-free-color, var(--lb-text-2)); }
.plan-badge.starter { background: var(--lb-accent-soft); color: var(--lb-accent); }
/* avatar menu always has white bg -- revert free badge to dark text regardless of theme */
.avatar-menu .plan-badge.free { color: var(--lb-text-2); }
.plan-badge .lb-icon-xs { width: 11px; height: 11px; }

/* sidebar scroll area (overrides .sidebar) */
.sidebar {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 6px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--lb-border) transparent;
}
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--lb-border); border-radius: 3px; }

.nav-section-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--lb-sidebar-text-sub);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 20px 6px;
}
body.sidebar-collapse .nav-section-label { visibility: hidden; height: 30px; padding: 0; }
[dir="rtl"] .nav-section-label { text-transform: none; letter-spacing: 0; }

/* nav-sidebar (overrides .nav-sidebar) */
.nav-sidebar { padding: 0 8px; display: flex; flex-direction: column; gap: 2px; list-style: none; margin: 0; }

.nav-item { position: relative; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--lb-sidebar-text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background .12s ease, color .12s ease;
  position: relative;
}
.nav-link i.nav-icon { color: var(--lb-sidebar-icon); transition: color .12s ease; font-size: 20px; }
.nav-link:hover { background: var(--lb-sidebar-hover-bg); }
.nav-link:hover i.nav-icon { color: var(--lb-sidebar-text); }

.nav-item.active > .nav-link,
.nav-link.active {
  background: var(--lb-sidebar-active-bg);
  color: var(--lb-sidebar-active-text);
  font-weight: 600;
}
.nav-item.active > .nav-link i.nav-icon,
.nav-link.active i.nav-icon {
  color: var(--lb-sidebar-active-icon);
}
/* active accent rail */
.nav-item.active > .nav-link::before,
.nav-link.active::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 22px;
  background: var(--lb-brand);
  border-radius: 0 2px 2px 0;
}

[dir="rtl"] .nav-item.active > .nav-link::before,
[dir="rtl"] .nav-link.active::before { border-radius: 2px 0 0 2px; right: -8px; }

.nav-link p { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; display: flex; align-items: center; gap: 6px; }
.nav-link p i.right { margin-inline-start: auto; color: var(--lb-sidebar-icon); transition: transform .2s ease; font-size: 18px; }
.nav-item.menu-open > .nav-link p i.right { transform: rotate(-90deg); }

/* inline sidebar badge (Starter lock) */
.side-badge {
  background: var(--lb-accent-soft);
  color: var(--lb-accent);
  font-family: var(--lb-font-en);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: var(--lb-r-pill);
  text-transform: uppercase;
}
.nav-sidebar > .nav-item .nav-icon {
  margin-right: 11px;
  margin-left: 11px;
}
.nav-sidebar .nav-link {
  padding-left: 0;
  padding-right: 0;
  gap: 0;
}
/* treeview children */
.nav-sidebar .nav-treeview { list-style: none; padding: 0; margin: 0; }
.nav-sidebar .nav-item.menu-open > .nav-treeview { padding: 0; }
.nav-treeview .nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--lb-sidebar-text-sub);
}
.nav-treeview .nav-link:hover { color: var(--lb-sidebar-text); }
.nav-treeview .nav-link::before { display: none; }
.nav-treeview .nav-link.active { background: transparent; color: var(--lb-sidebar-active-text); }

/* collapsed mode — content adaptations */
body.sidebar-collapse .nav-link { padding: 0; }
body.sidebar-collapse .nav-link p { display: none; }
body.sidebar-collapse .nav-treeview { display: none; }
body.sidebar-collapse .nav-link::before { display: none !important; }

/* tooltip on collapsed nav-item hover */
.nav-link[data-tooltip] { position: relative; }
body.sidebar-collapse .nav-link[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  inset-inline-end: calc(100% + 12px);
  background: #161824;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
  z-index: 90;
}

/* sidebar bottom block */
.sidebar-bottom {
  border-block-start: 1px solid var(--lb-border);
  height: var(--lb-footer-h);
  padding: 0 8px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logout-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--lb-sidebar-text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background .12s ease, color .12s ease;
}
.logout-link .lb-icon { color: var(--lb-sidebar-icon); }
.logout-link:hover { background: rgba(229,72,77,0.08); color: var(--lb-danger); }
.logout-link:hover .lb-icon { color: var(--lb-danger); }
body.sidebar-collapse .logout-link { padding: 0; }
body.sidebar-collapse .logout-link .lbl { display: none; }

/* ============================================================
   CONTENT WRAPPER — padding only; margins owned by AdminLTE
   ============================================================ */
.content-wrapper {
  background: var(--lb-app-bg);
  padding: calc(var(--lb-navbar-h) + 24px) 24px calc(var(--lb-footer-h) + 24px) 24px;
}
@media (max-width: 767px) {
  .content-wrapper { padding-inline: 16px; }
}

/* ============================================================
   FOOTER — inner styling only; position/left owned by AdminLTE
   ============================================================ */
.main-footer {
  height: var(--lb-footer-h);
  background: var(--lb-footer-bg);
  color: var(--lb-footer-text);
  display: flex;
  align-items: center;
  padding: 0 20px;
  font-size: 12px;
  border-block-start: 1px solid var(--lb-border);
}
.footer-lead { margin-inline-end: auto; font-family: var(--lb-font-en); }
.footer-trail { display: flex; align-items: center; gap: 10px; }
.footer-trail a { color: var(--lb-footer-text); text-decoration: none; transition: color .15s ease; }
.footer-trail a:hover { color: var(--lb-text-1); text-decoration: underline; }
.footer-trail .sep { color: var(--lb-text-3); }

/* ============================================================
   BOTTOM NAV BAR (mobile only) + SLIDE-UP SHEET
   ============================================================ */

/* Desktop: hide bottom nav entirely -- sidebar handles navigation */
@media (min-width: 768px) {
  .main-footer { display: none !important; }
  .content-wrapper { padding-bottom: 24px; }
  .lb-bn-overlay, .lb-bn-sheet { display: none !important; }
}

/* Mobile: taller footer to house the 5-tab bar */
@media (max-width: 767px) {
  :root { --lb-footer-h: 60px; }
  .main-footer { padding: 0; border-block-start: 1px solid var(--lb-border); }
}

/* Nav bar container inside footer */
.lb-bn {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: stretch;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.lb-bn-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--lb-bn-tab-color);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--lb-font-ar);
  padding: 0;
  transition: color .12s ease, background .12s ease;
}
/* 3-class specificity beats AdminLTE's single .material-icons rule */
.lb-bn .lb-bn-tab .material-icons { font-size: 22px; color: inherit; }
.lb-bn-lbl { font-size: 10px; font-weight: 500; line-height: 1; }
.lb-bn-tab:hover,
.lb-bn-tab:focus { color: var(--lb-bn-tab-color); background: none; outline: none; }
.lb-bn-tab.lb-bn-active {
  background: var(--lb-bn-active-bg);
  color: var(--lb-bn-active-color);
}
.lb-bn-tab.lb-bn-active:hover,
.lb-bn-tab.lb-bn-active:focus { color: var(--lb-bn-active-color); background: var(--lb-bn-active-bg); }
.lb-bn-tab.lb-bn-active .lb-bn-lbl { font-weight: var(--lb-bn-active-weight); }

/* Dark overlay behind the sheet */
.lb-bn-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1040;
}
body.lb-bn-open .lb-bn-overlay { display: block; }

/* Slide-up sheet */
.lb-bn-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--lb-card-bg);
  border-radius: 16px 16px 0 0;
  z-index: 1041;
  transform: translateY(100%);
  transition: transform .28s cubic-bezier(.32,.72,0,1);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
body.lb-bn-open .lb-bn-sheet { transform: translateY(0); }
.lb-bn-sheet-handle {
  width: 40px;
  height: 4px;
  background: rgba(0,0,0,0.12);
  border-radius: 999px;
  margin: 12px auto 4px;
}
.lb-bn-sheet-nav { display: flex; flex-direction: column; }
.lb-bn-sheet-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  height: 52px;
  color: var(--lb-text-1);
  text-decoration: none;
  border-block-end: 1px solid rgba(0,0,0,0.06);
}
.lb-bn-sheet-row:last-child { border-block-end: none; }
.lb-bn-sheet-row:hover { background: rgba(0,0,0,0.03); }
.lb-bn-sheet-icon { color: var(--lb-brand); font-size: 22px; }
.lb-bn-sheet-lbl { flex: 1; font-size: 14px; font-weight: 500; }
