:root {
  --bg: #102b46;
  --bg2: #153b63;
  --bg3: #1d4f7a;
  --sf: #234d77;
  --bd: rgba(220, 234, 245, 0.14);
  --bd2: rgba(220, 234, 245, 0.24);
  --tx: #f7fbff;
  --tx2: #c6d8e8;
  --tx3: #9db4c9;
  --pur: #2563eb;
  --blu: #06b6d4;
  --grad: linear-gradient(135deg, #2563eb, #06b6d4);
  --nav: 68px;
  --dsb: 240px;
  --danger-tx: #f87171;
  --danger-bg: rgba(248, 113, 113, 0.15);
}

.lm {
  --bg: #f1f6fb;
  --bg2: #edf5fc;
  --bg3: #f7fbff;
  --sf: #ffffff;
  --bd: rgba(35, 77, 119, 0.12);
  --bd2: rgba(35, 77, 119, 0.18);
  --tx: #153b63;
  --tx2: #607995;
  --tx3: #879bb0;
  --pur: #2563eb;
  --blu: #06b6d4;
  --grad: linear-gradient(135deg, #2563eb, #06b6d4);
  --danger-tx: #dc2626;
  --danger-bg: rgba(220, 38, 38, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--bg);
  color: var(--tx);
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}

a {
  text-decoration: none;
  color: inherit;
}

.gt {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.slbl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.73rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--pur);
  margin-bottom: 14px;
}

.slbl::before {
  content: "";
  width: 20px;
  height: 1.5px;
  background: var(--grad);
}

.landing-section-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.landing-section-heading .slbl {
  justify-content: center;
}

.stitle {
  font-size: clamp(1.85rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}

.ssub {
  font-size: 1rem;
  color: var(--tx2);
  max-width: 560px;
}

.aur {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.aur-a {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle,
      rgba(139, 92, 246, 0.22),
      transparent 70%);
}

.aur-b {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle,
      rgba(59, 130, 246, 0.18),
      transparent 70%);
}

.gc {
  background: var(--sf);
  border: 1px solid var(--bd);
  border-radius: 18px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.gc:hover {
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.25);
}

.bgrd {
  background: var(--grad);
  border: none;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  border-radius: 12px;
  transition: transform 0.25s, box-shadow 0.25s, background-color 0.25s, color 0.25s;
  cursor: pointer;
}

.bgrd:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
  color: #fff;
}

.boc {
  background: transparent;
  border: 1px solid var(--bd2);
  color: var(--tx);
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  border-radius: 12px;
  transition: border-color 0.25s, background-color 0.25s, color 0.25s;
  cursor: pointer;
}

.boc:hover {
  border-color: var(--pur);
  background: rgba(139, 92, 246, 0.08);
  color: var(--tx);
}

.rv {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s, transform 0.65s;
}

.rv.in {
  opacity: 1;
  transform: none;
}

.sp {
  padding: 90px 0;
}

/* NAVBAR */
#nbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  height: var(--nav);
  background: rgba(8, 8, 15, 0.78);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--bd);
  display: flex;
  align-items: center;
  transition: background 0.3s, box-shadow 0.3s;
}

.lm #nbar {
  background: rgba(250, 250, 254, 0.88);
}

#nbar.scr {
  background: rgba(8, 8, 15, 0.96);
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.4);
}

.lm #nbar.scr {
  background: rgba(250, 250, 254, 0.97);
}

.logo-i {
  width: 34px;
  height: 34px;
  background: #ffffff;
  border: 2px solid #ffffff;
  border-radius: 16%;
  display: block;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.95rem;
  flex-shrink: 0;
  overflow: hidden;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(37, 99, 235, 0.18));
}

.nav-link {
  color: var(--tx2) !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 6px 14px !important;
  border-radius: 8px;
  transition: 0.2s !important;
}

.nav-link:hover {
  color: var(--tx) !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

.lm .nav-link:hover {
  background: rgba(0, 0, 0, 0.05) !important;
}

/* Guest navbar day/night contrast */
#nbar .guest-brand,
#nbar .guest-brand-name,
#nbar .nav-link,
#nbar .boc {
  color: var(--tx) !important;
}

#nbar .guest-header-clock {
  color: var(--tx3) !important;
}

#nbar .nav-link {
  color: var(--tx2) !important;
}

#nbar .nav-link:hover,
#nbar .nav-link:focus-visible,
#nbar .nav-link.active {
  color: var(--tx) !important;
  background: rgba(59, 130, 246, 0.14) !important;
}

#nbar .boc {
  border-color: var(--bd2) !important;
  background: rgba(255, 255, 255, 0.04) !important;
}

#nbar .boc:hover,
#nbar .boc:focus-visible {
  border-color: var(--pur) !important;
  background: rgba(59, 130, 246, 0.14) !important;
  color: var(--tx) !important;
}

#nbar .bgrd {
  background: linear-gradient(135deg, #2563eb, #0ea5e9) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.24);
}

html.lm #nbar .nav-link {
  color: #334155 !important;
}

html.lm #nbar .guest-brand,
html.lm #nbar .guest-brand-name,
html.lm #nbar .boc {
  color: #0f172a !important;
}

html.lm #nbar .guest-header-clock {
  color: #64748b !important;
}

html.lm #nbar .boc {
  border-color: rgba(37, 99, 235, 0.18) !important;
  background: rgba(255, 255, 255, 0.72) !important;
}

html.lm #nbar .nav-link:hover,
html.lm #nbar .nav-link:focus-visible,
html.lm #nbar .nav-link.active,
html.lm #nbar .boc:hover,
html.lm #nbar .boc:focus-visible {
  color: #0f172a !important;
  background: rgba(37, 99, 235, 0.1) !important;
}

html.dm #nbar,
html[data-theme="dark"] #nbar,
body.dm #nbar {
  background: rgba(3, 7, 18, 0.92) !important;
  border-bottom-color: rgba(148, 163, 184, 0.18) !important;
}

html.dm #nbar.scr,
html[data-theme="dark"] #nbar.scr,
body.dm #nbar.scr {
  background: rgba(3, 7, 18, 0.98) !important;
}

html.dm #nbar .nav-link,
html[data-theme="dark"] #nbar .nav-link,
body.dm #nbar .nav-link {
  color: #e2e8f0 !important;
}

html.dm #nbar .guest-brand,
html.dm #nbar .guest-brand-name,
html.dm #nbar .boc,
html[data-theme="dark"] #nbar .guest-brand,
html[data-theme="dark"] #nbar .guest-brand-name,
html[data-theme="dark"] #nbar .boc,
body.dm #nbar .guest-brand,
body.dm #nbar .guest-brand-name,
body.dm #nbar .boc {
  color: #f8fafc !important;
}

html.dm #nbar .guest-header-clock,
html[data-theme="dark"] #nbar .guest-header-clock,
body.dm #nbar .guest-header-clock {
  color: #a8b3c7 !important;
}

html.dm #nbar .boc,
html[data-theme="dark"] #nbar .boc,
body.dm #nbar .boc {
  border-color: rgba(148, 163, 184, 0.18) !important;
  background: rgba(15, 23, 42, 0.58) !important;
}

#mbmenu {
  position: fixed;
  top: var(--nav);
  left: 0;
  right: 0;
  z-index: 1049;
  background: rgba(8, 8, 15, 0.98);
  backdrop-filter: blur(20px);
  padding: 14px 20px 20px;
  border-bottom: 1px solid var(--bd);
  display: none;
}

.lm #mbmenu {
  background: rgba(250, 250, 254, 0.98);
}

#mbmenu.open {
  display: block;
}

#landing {
  overflow-x: hidden;
  width: 100%;
}

/* HERO */
#hero {
  min-height: 100vh;
  padding-top: var(--nav);
  padding-bottom: 10px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hbadge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 8px;
  border-radius: 100px;
  background: rgba(59, 130, 246, 0.09);
  border: 1px solid rgba(59, 130, 246, 0.18);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--pur);
  margin-bottom: 22px;
}

.bdot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pur);
  animation: bpls 2s infinite;
  flex-shrink: 0;
}

.h1 {
  font-size: clamp(2.4rem, 6.5vw, 5rem);
  font-weight: 700;
  line-height: 1.09;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}

.tlog {
  opacity: 0.4;
  filter: grayscale(1);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--tx2);
  transition: opacity 0.3s, filter 0.3s;
}

.tlog:hover {
  opacity: 0.75;
  filter: none;
}

.dwrap {
  border-radius: 26px;
  overflow: hidden;
  background: var(--sf);
  border: 1px solid var(--bd2);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.65), 0 0 40px rgba(139, 92, 246, 0.2);
}

.dtbar {
  background: var(--bg3);
  padding: 11px 16px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid var(--bd);
}

.dd {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dgrid {
  display: grid;
  grid-template-columns: 185px 1fr;
}

.dside {
  background: var(--bg2);
  border-right: 1px solid var(--bd);
  padding: 14px 10px;
}

.dsi {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.81rem;
  color: var(--tx3);
  margin-bottom: 3px;
  cursor: pointer;
  background: transparent;
  border: none;
  width: 100%;
  font-family: "Poppins", sans-serif;
  text-align: left;
  transition: background-color 0.2s, color 0.2s;
}

.dsi i {
  width: 16px;
  text-align: center;
}

.dsi.on,
.dsi:hover {
  background: rgba(139, 92, 246, 0.14);
  color: #60a5fa;
}

.stpill {
  background: var(--bg3);
  border: 1px solid var(--bd);
  border-radius: 12px;
  padding: 12px;
  position: relative;
  overflow: hidden;
}

.stpill::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad);
  opacity: 0.7;
}

.bbar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(to top, #3b82f6, #3b82f6);
  transform-origin: bottom;
  animation: bgrow 0.8s ease forwards;
}

.cbbl {
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.72rem;
  line-height: 1.45;
  max-width: 88%;
}

.cbai {
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.2);
  color: var(--tx2);
  align-self: flex-start;
}

.cbus {
  background: var(--grad);
  color: #fff;
  align-self: flex-end;
}

.tdot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pur);
  animation: tbounce 0.9s infinite;
  display: inline-block;
}

@media (max-width: 991px) {
  .dgrid {
    grid-template-columns: 1fr;
  }

  .dside {
    display: none;
  }
}

/* PROOF */
#proof {
  background: var(--bg2);
  border-top: 1px solid var(--bd);
  border-bottom: 1px solid var(--bd);
  padding: 44px 0;
}

.pnum {
  font-size: 1.9rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.plbl {
  font-size: 0.77rem;
  color: var(--tx3);
  margin-top: 3px;
}

.lscroll {
  overflow: hidden;
  margin-top: 28px;
}

.ltrack {
  display: flex;
  gap: 36px;
  width: max-content;
  animation: lscr 18s linear infinite;
}

.lbr {
  font-size: 0.87rem;
  font-weight: 700;
  color: var(--tx3);
  opacity: 0.5;
  white-space: nowrap;
}

/* FEATURES */
.ftico {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
}

.ftag {
  display: inline-block;
  margin-top: 10px;
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(139, 92, 246, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

/* BENTO */
.bgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.bs2 {
  grid-column: span 2;
}

.bt2 {
  grid-row: span 2;
}

.bvis {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--bg3);
}

.bvis::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(139, 92, 246, 0.14),
      rgba(59, 130, 246, 0.08));
}

@media (max-width: 767px) {
  .bgrid {
    grid-template-columns: 1fr;
  }

  .bs2,
  .bt2 {
    grid-column: span 1;
    grid-row: span 1;
  }
}

/* PRODUCT PREVIEW */
.dprev {
  background: var(--sf);
  border: 1px solid var(--bd2);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.5);
}

.dpbody {
  display: grid;
  grid-template-columns: 205px 1fr;
  min-height: 430px;
}

.dpside {
  background: var(--bg2);
  border-right: 1px solid var(--bd);
  padding: 16px 12px;
}

.dpnl {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 0.82rem;
  color: var(--tx3);
  margin-bottom: 4px;
  cursor: pointer;
  background: transparent;
  border: none;
  width: 100%;
  font-family: "Poppins", sans-serif;
  text-align: left;
  transition: background-color 0.2s, color 0.2s;
}

.dpnl i {
  width: 16px;
  text-align: center;
}

.dpnl.on,
.dpnl:hover {
  background: rgba(139, 92, 246, 0.14);
  color: #60a5fa;
}

.dpc {
  padding: 22px;
}

.dpane {
  display: none;
}

.dpane.on {
  display: block;
}

.dpst {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.dps {
  background: var(--bg3);
  border: 1px solid var(--bd);
  border-radius: 12px;
  padding: 14px;
  position: relative;
  overflow: hidden;
}

.dps::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad);
  opacity: 0.6;
}

.dpsv {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.dpsl {
  font-size: 0.67rem;
  color: var(--tx3);
}

.dpsd {
  font-size: 0.67rem;
  color: #34d399;
  font-weight: 600;
}

.dpbars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 88px;
}

.dpbar {
  flex: 1;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(to top, #3b82f6, #3b82f6);
  opacity: 0.75;
  animation: bgrow 0.7s ease forwards;
  transform-origin: bottom;
}

.arow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--bg3);
  border: 1px solid var(--bd);
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: 0.82rem;
}

.adot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.gon {
  background: #34d399;
  box-shadow: 0 0 6px #34d399;
}

.gpu {
  background: #3b82f6;
  box-shadow: 0 0 6px #3b82f6;
}

.gor {
  background: #f59e0b;
}

.bst {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 100px;
}

.son {
  background: rgba(52, 211, 153, 0.12);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.2);
}

.sbz {
  background: rgba(139, 92, 246, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.sid {
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.cit {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  background: var(--bg3);
  border: 1px solid var(--bd);
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: 0.81rem;
}

.cav {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.arl {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg3);
  border: 1px solid var(--bd);
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: 0.82rem;
}

.ari {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .dpbody {
    grid-template-columns: 1fr;
  }

  .dpside {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 10px;
    border-right: none;
    border-bottom: 1px solid var(--bd);
  }

  .dpnl {
    white-space: nowrap;
    flex-shrink: 0;
    width: auto;
  }

  .dpst {
    grid-template-columns: 1fr 1fr;
  }
}

/* HOW */
.hnum {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin: 0 auto 18px;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35);
}

/* ANALYTICS */
.anst {
  background: var(--sf);
  border: 1px solid var(--bd);
  border-radius: 16px;
  padding: 20px;
}

.atrnd {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 100px;
}

.tup {
  color: #34d399;
  background: rgba(52, 211, 153, 0.1);
}

.rtbar {
  height: 4px;
  background: var(--bg3);
  border-radius: 100px;
  overflow: hidden;
}

.rtfill {
  height: 100%;
  border-radius: 100px;
  background: var(--grad);
}

/* PRICING */
.pcard {
  background: var(--sf);
  border: 1px solid var(--bd);
  border-radius: 18px;
  padding: 30px;
  transition: 0.3s;
  position: relative;
}

.pcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.pcard.pop {
  border: 1px solid rgba(139, 92, 246, 0.4);
  background: linear-gradient(135deg,
      rgba(139, 92, 246, 0.06),
      rgba(59, 130, 246, 0.03));
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.12);
}

.pbadge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad);
  color: #fff;
  font-size: 0.73rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 100px;
  white-space: nowrap;
}

.pamt {
  font-size: 2.9rem;
  font-weight: 700;
  line-height: 1;
}

.pamt sup {
  font-size: 1.2rem;
  vertical-align: top;
  margin-top: 9px;
  display: inline-block;
}

.pfl {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 10px;
  font-size: 0.875rem;
}

.pchk {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.65rem;
  color: #34d399;
  margin-top: 1px;
}

.tav {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bd2);
}

/* FAQ */
.acco .accordion-item {
  background: var(--sf);
  border: 1px solid var(--bd);
  border-radius: 18px !important;
  margin-bottom: 10px;
  overflow: hidden;
}

.acco .accordion-button {
  background: var(--sf);
  color: var(--tx);
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.94rem;
  box-shadow: none;
  border-radius: 18px !important;
  padding: 18px 22px;
}

.acco .accordion-button:not(.collapsed) {
  background: rgba(139, 92, 246, 0.06);
  color: #60a5fa;
}

.acco .accordion-button::after {
  filter: invert(1) hue-rotate(220deg);
}

.lm .acco .accordion-button::after {
  filter: none;
}

.acco .accordion-body {
  color: var(--tx2);
  font-size: 0.875rem;
  line-height: 1.7;
  padding: 0 22px 18px;
}

/* CTA */
#cta {
  padding: 110px 0;
  position: relative;
  overflow: hidden;
  background: var(--bg3);
  text-align: center;
}

/* FOOTER */
#foot {
  background: var(--bg);
  border-top: 1px solid var(--bd);
  padding: 60px 0 28px;
}

.fcol h5 {
  font-size: 0.77rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--tx3);
  margin-bottom: 14px;
}

.fcol a {
  display: block;
  font-size: 0.875rem;
  color: var(--tx2);
  padding: 3px 0;
  transition: 0.2s;
}

.fcol a:hover {
  color: var(--pur);
}

.nli {
  padding: 9px 14px;
  border-radius: 12px;
  border: 1px solid var(--bd2);
  background: var(--sf);
  color: var(--tx);
  font-size: 0.83rem;
  font-family: "Poppins", sans-serif;
  outline: none;
  flex: 1;
}

.nli:focus {
  border-color: var(--pur);
}

.sico {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid var(--bd);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tx3);
  transition: 0.2s;
  font-size: 0.88rem;
}

.sico:hover {
  border-color: var(--pur);
  color: var(--pur);
}

/* OFFCANVAS LOGIN */
#lofc {
  width: 420px;
  background: var(--bg2);
  border-left: 1px solid var(--bd2);
}

.lm #lofc {
  background: #f5f5ff;
}

.offcanvas-header {
  border-bottom: 1px solid var(--bd);
  padding: 20px 24px;
}

.offcanvas-title {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  color: var(--tx);
}

.olbl {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--tx2);
  margin-bottom: 6px;
  display: block;
}

.oinp {
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--bd2);
  background: var(--sf);
  color: var(--tx);
  font-size: 0.9rem;
  font-family: "Poppins", sans-serif;
  outline: none;
  transition: 0.2s;
  margin-bottom: 14px;
}

.oinp:focus {
  border-color: var(--pur);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.password-field {
  position: relative;
  width: 100%;
}

.password-field .oinp,
.password-field .form-control {
  padding-right: 46px;
  margin-bottom: 0;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--tx3);
  background: transparent;
  cursor: pointer;
  z-index: 2;
  line-height: 1;
  padding: 0;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: var(--tx);
  background: rgba(148, 163, 184, 0.12);
  outline: none;
}

.odiv {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--tx3);
  font-size: 0.8rem;
  margin: 16px 0;
}

.odiv::before,
.odiv::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--bd);
}

.oauth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--bd2);
  background: var(--sf);
  color: var(--tx2);
  font-family: "Poppins", sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  transition: 0.2s;
  cursor: pointer;
  margin-bottom: 8px;
}

.oauth:hover {
  border-color: var(--pur);
  color: var(--tx);
}

.tab-switch {
  display: flex;
  background: var(--sf);
  border: 1px solid var(--bd);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 22px;
}

.tab-sw-btn {
  flex: 1;
  padding: 8px;
  border: none;
  border-radius: 9px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  cursor: pointer;
  transition: 0.2s;
  background: transparent;
  color: var(--tx3);
}

.tab-sw-btn.on {
  background: var(--grad);
  color: #fff;
}

.err-msg {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.25);
  color: #f87171;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.82rem;
  margin-bottom: 12px;
  display: none;
}

/* MAGNIFIC */
.mfp-bg {
  background: #000;
  opacity: 0.9;
}

.mfp-iframe-holder .mfp-content {
  max-width: 900px;
}

/* ======================== DASHBOARD ======================== */
#dashboard {
  display: block;
  min-height: 100vh;
  background: var(--bg);
}

/* DB TOPBAR */
.db-top {
  position: fixed;
  top: 0;
  left: var(--dsb);
  right: 0;
  height: var(--nav);
  background: rgba(8, 8, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--bd);
  z-index: 900;
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 16px;
  transition: left 0.3s;
}

.lm .db-top {
  background: rgba(250, 250, 254, 0.9);
}

.db-top-search {
  flex: 1;
  max-width: 380px;
  position: relative;
}

.db-top-search input {
  width: 100%;
  padding: 8px 14px 8px 36px;
  border-radius: 10px;
  border: 1px solid var(--bd2);
  background: var(--sf);
  color: var(--tx);
  font-size: 0.85rem;
  font-family: "Poppins", sans-serif;
  outline: none;
}

.db-top-search input:focus {
  border-color: var(--pur);
}

.db-top-search i {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--tx3);
  font-size: 0.85rem;
}

.db-user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 12px;
  border: 1px solid var(--bd);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: 0.2s;
}

.db-user-pill:hover {
  border-color: var(--pur);
  background: rgba(139, 92, 246, 0.06);
}

.db-user-pill:focus-visible,
.dd-close:focus-visible,
#notifDropdown .user-notif-link-btn:focus-visible,
#notifDropdown .user-notif-open:focus-visible,
#notifDropdown .user-notif-ico:focus-visible {
  outline: 3px solid rgba(96, 165, 250, 0.34);
  outline-offset: 3px;
}

.db-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.user-avatar-presence {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
}

.user-avatar-presence::after,
.mob-profile-wrap::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #31a24c;
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px rgba(49, 162, 76, 0.18);
  pointer-events: none;
}

/* DB SIDEBAR */
.db-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--dsb);
  height: 100vh;
  height: 100dvh;
  background: var(--bg2);
  border-right: 1px solid var(--bd);
  z-index: 950;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  transition: 0.3s;
}

.db-logo {
  padding: 18px 20px;
  border-bottom: 1px solid var(--bd);
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--tx);
}

.db-nav {
  flex: 1;
  min-height: 0;
  padding: 16px 12px 40px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.db-nav-section {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--tx3);
  padding: 0 10px;
  margin: 16px 0 8px;
}

.db-nl {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.875rem;
  color: var(--tx2);
  margin-bottom: 3px;
  cursor: pointer;
  border: none;
  width: 100%;
  background: transparent;
  font-family: "Poppins", sans-serif;
  text-align: left;
  transition: 0.2s;
  position: relative;
}

.db-nl i {
  width: 18px;
  text-align: center;
  font-size: 0.9rem;
}

.db-nl:hover {
  background: rgba(139, 92, 246, 0.1);
  color: var(--tx);
}

.db-nl.active {
  background: rgba(139, 92, 246, 0.15);
  color: #60a5fa;
  font-weight: 600;
}

.db-nl.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 3px;
  background: var(--grad);
  border-radius: 0 3px 3px 0;
}

.db-badge {
  margin-left: auto;
  background: var(--pur);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 100px;
}

.db-bottom {
  flex: 0 0 auto;
  padding: 16px 12px;
  border-top: 1px solid var(--bd);
}

.db-upgrade-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  text-decoration: none;
  color: #eaf4ff;
  background: linear-gradient(135deg, #0f3b6f 0%, #1d4ed8 62%, #0891b2 100%);
  border: 1px solid rgba(191, 219, 254, 0.32);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.24);
}

.db-upgrade-card:hover {
  color: #fff;
  border-color: rgba(219, 234, 254, 0.56);
  transform: translateY(-1px);
}

.db-upgrade-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #fef3c7;
  background: rgba(255, 255, 255, 0.16);
}

.db-upgrade-copy {
  min-width: 0;
}

.db-upgrade-copy strong,
.db-upgrade-copy small {
  display: block;
}

.db-upgrade-copy strong {
  color: #fff;
  font-size: 0.82rem;
  line-height: 1.2;
}

.db-upgrade-copy small {
  color: rgba(239, 246, 255, 0.86);
  font-size: 0.68rem;
  line-height: 1.35;
  margin-top: 3px;
}

.db-upgrade-action {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  color: #dbeafe;
  font-size: 0.72rem;
  font-weight: 800;
}

/* DB MAIN */
.db-main {
  margin-left: var(--dsb);
  padding-top: var(--nav);
  min-height: 100vh;
}

.db-content {
  padding: 28px;
}

/* DB SECTIONS */
.db-section {
  display: none;
}

.db-section.active {
  display: block;
}

/* STAT CARDS */
.db-stat-card {
  background: var(--sf);
  border: 1px solid var(--bd);
  border-radius: 16px;
  padding: 22px;
  position: relative;
  overflow: hidden;
  transition: 0.3s;
}

.db-stat-card:hover {
  border-color: rgba(139, 92, 246, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.db-stat-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad);
  opacity: 0.6;
}

.db-stat-val {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 4px;
}

.db-stat-lbl {
  font-size: 0.78rem;
  color: var(--tx3);
  margin-bottom: 6px;
}

.db-stat-delta {
  font-size: 0.75rem;
  font-weight: 600;
}

.delta-up {
  color: #34d399;
}

.delta-dn {
  color: #f87171;
}

/* AI CHAT */
.chat-wrap {
  background: var(--sf);
  border: 1px solid var(--bd);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  height: 520px;
  overflow: hidden;
}

.chat-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--bd);
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-ai-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.chat-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #34d399;
  font-weight: 600;
}

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}

.chat-body::-webkit-scrollbar {
  width: 4px;
}

.chat-body::-webkit-scrollbar-track {
  background: transparent;
}

.chat-body::-webkit-scrollbar-thumb {
  background: var(--bd2);
  border-radius: 4px;
}

.msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.875rem;
  line-height: 1.55;
  word-break: break-word;
}

.msg-ai {
  background: var(--bg3);
  border: 1px solid var(--bd);
  color: var(--tx);
  align-self: flex-start;
  border-radius: 4px 14px 14px 14px;
}

.msg-user {
  background: var(--grad);
  color: #fff;
  align-self: flex-end;
  border-radius: 14px 14px 4px 14px;
}

.msg-time {
  font-size: 0.68rem;
  color: var(--tx3);
  margin-top: 4px;
}

.typing-ind {
  display: flex;
  gap: 4px;
  padding: 10px 14px;
  background: var(--bg3);
  border: 1px solid var(--bd);
  border-radius: 4px 14px 14px 14px;
  align-self: flex-start;
  align-items: center;
}

.typing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pur);
  animation: tbounce 0.9s infinite;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.15s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.3s;
}

.chat-input-wrap {
  padding: 14px 16px;
  border-top: 1px solid var(--bd);
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.chat-inp {
  flex: 1;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--bd2);
  background: var(--bg3);
  color: var(--tx);
  font-size: 0.875rem;
  font-family: "Poppins", sans-serif;
  outline: none;
  resize: none;
  max-height: 100px;
  line-height: 1.5;
  transition: 0.2s;
}

.chat-inp:focus {
  border-color: var(--pur);
}

.chat-send {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--grad);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.2s;
  flex-shrink: 0;
}

.chat-send:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
}

.chat-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* AGENT CARD */
.agent-card {
  background: var(--sf);
  border: 1px solid var(--bd);
  border-radius: 16px;
  padding: 20px;
  transition: 0.3s;
}

.agent-card:hover {
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.agent-status {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ag-online {
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
}

.ag-busy {
  background: #3b82f6;
  box-shadow: 0 0 8px #3b82f6;
}

.ag-offline {
  background: #6b6b8a;
}

/* TABLE */
.db-table {
  width: 100%;
  border-collapse: collapse;
}

.db-table th {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tx3);
  padding: 10px 16px;
  border-bottom: 1px solid var(--bd);
  text-align: left;
}

.db-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--bd);
  font-size: 0.875rem;
  color: var(--tx2);
}

.db-table tr:last-child td {
  border-bottom: none;
}

.db-table tr:hover td {
  background: rgba(139, 92, 246, 0.04);
}

/* SETTINGS */
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--bd);
}

.setting-row:last-child {
  border-bottom: none;
}

.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-thumb {
  position: absolute;
  inset: 0;
  background: var(--bd2);
  border-radius: 100px;
  cursor: pointer;
  transition: 0.3s;
}

.toggle-thumb::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.3s;
}

.toggle-switch input:checked+.toggle-thumb {
  background: var(--grad);
}

.toggle-switch input:checked+.toggle-thumb::before {
  transform: translateX(20px);
}

/* NOTIFICATION */
.notif-item {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  background: var(--sf);
  border: 1px solid var(--bd);
  margin-bottom: 10px;
  transition: 0.2s;
}

.notif-item:hover {
  border-color: rgba(139, 92, 246, 0.2);
}

.notif-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* DROPDOWN PANELS */
.db-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 2000;
  background: var(--bg2);
  border: 1px solid var(--bd2);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  min-width: 340px;
  overflow: hidden;
  animation: fadeIn 0.2s ease;
  display: none;
}

.db-dropdown.open {
  display: block;
}

.dd-header {
  padding: 16px 18px;
  border-bottom: 1px solid var(--bd);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dd-header-title {
  font-weight: 700;
  font-size: 0.95rem;
}

.dd-close {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--bd2);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tx3);
  cursor: pointer;
  font-size: 0.8rem;
  transition: 0.2s;
}

.dd-close:hover {
  border-color: var(--pur);
  color: var(--pur);
}

.dd-body {
  padding: 14px;
  max-height: 380px;
  overflow-y: auto;
}

.dd-body::-webkit-scrollbar {
  width: 4px;
}

.dd-body::-webkit-scrollbar-thumb {
  background: var(--bd2);
  border-radius: 4px;
}

.notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3b82f6;
  flex-shrink: 0;
  margin-top: 5px;
}

.notif-dot.read {
  background: var(--bd2);
}

.notif-unread {
  background: rgba(139, 92, 246, 0.06);
  border-color: rgba(139, 92, 246, 0.2);
}

#notifDropdown.user-notif-dropdown {
  --user-notif-panel: rgba(15, 23, 42, 0.96);
  --user-notif-card: rgba(30, 41, 59, 0.72);
  --user-notif-soft: rgba(30, 41, 59, 0.82);
  --user-notif-border: rgba(148, 163, 184, 0.24);
  --user-notif-title: #f8fafc;
  --user-notif-text: #e2e8f0;
  --user-notif-muted: #cbd5e1;
  --user-notif-accent: #93c5fd;
  --user-notif-danger: #fca5a5;
  --user-notif-danger-bg: rgba(239, 68, 68, 0.14);
  --user-notif-danger-border: rgba(248, 113, 113, 0.34);
  right: 0;
  width: min(420px, calc(100vw - 30px));
  min-width: 0;
  max-width: min(420px, calc(100vw - 30px));
  border-color: var(--user-notif-border);
  border-radius: 14px;
  background: var(--user-notif-panel);
  color: var(--user-notif-title);
  overflow: hidden;
}

.lm #notifDropdown.user-notif-dropdown {
  --user-notif-panel: rgba(255, 255, 255, 0.98);
  --user-notif-card: #ffffff;
  --user-notif-soft: #f8fafc;
  --user-notif-border: rgba(148, 163, 184, 0.28);
  --user-notif-title: #0f172a;
  --user-notif-text: #334155;
  --user-notif-muted: #64748b;
  --user-notif-accent: #2563eb;
  --user-notif-danger: #ef4444;
  --user-notif-danger-bg: #fff1f2;
  --user-notif-danger-border: rgba(248, 113, 113, 0.28);
}

#notifDropdown .user-notif-header {
  min-height: 56px;
  padding: 10px 10px 10px 12px;
  margin: 0;
  gap: 8px;
  border-bottom: 1px solid var(--user-notif-border);
  background: var(--user-notif-panel);
}

#notifDropdown .user-notif-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--user-notif-title);
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1.12;
}

#notifDropdown .user-notif-title > i {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--user-notif-accent) !important;
  -webkit-text-fill-color: var(--user-notif-accent);
  font-size: 0.78rem;
}

#notifDropdown #unreadCountBadge {
  flex: 0 0 auto;
  margin-left: 0 !important;
  border: 1px solid var(--user-notif-danger-border);
  background: var(--user-notif-danger-bg) !important;
  color: var(--user-notif-danger) !important;
  font-size: 0.58rem !important;
  font-weight: 900 !important;
  padding: 2px 6px !important;
}

#notifDropdown .user-notif-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
}

#notifDropdown .user-notif-action {
  width: auto !important;
  height: auto !important;
  min-width: 30px;
  min-height: 30px;
  padding: 6px 8px;
  border: 1px solid var(--user-notif-border);
  border-radius: 8px;
  background: var(--user-notif-soft);
  color: var(--user-notif-title);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

#notifDropdown .user-notif-action i {
  color: inherit;
  font-size: 0.68rem;
}

#notifDropdown .user-notif-action.danger {
  border-color: var(--user-notif-danger-border);
  background: var(--user-notif-danger-bg);
  color: var(--user-notif-danger) !important;
}

#notifDropdown .user-notif-action-icon {
  padding-inline: 8px;
}

#notifDropdown .user-notif-list {
  min-height: 72px;
  max-height: min(58dvh, 390px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 10px;
  background: var(--user-notif-panel);
}

#notifDropdown .user-notif-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 9px;
  align-items: flex-start;
  padding: 10px;
  border: 1px solid var(--user-notif-border);
  border-radius: 8px;
  background: var(--user-notif-card);
  box-shadow: 0 1px 0 rgba(148, 163, 184, 0.08);
  margin-bottom: 8px;
}

#notifDropdown .user-notif-item.notif-unread {
  border-color: rgba(96, 165, 250, 0.42);
  background: color-mix(in srgb, var(--user-notif-card) 86%, #2563eb 14%);
}

#notifDropdown .user-notif-ico {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: rgba(37, 99, 235, 0.12) !important;
  color: var(--user-notif-accent) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  font-size: 0.84rem !important;
}

#notifDropdown .user-notif-copy {
  min-width: 0;
  flex: 1 1 auto;
}

#notifDropdown .user-notif-open {
  display: block;
  border-radius: 8px;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

#notifDropdown .user-notif-open:hover strong {
  color: var(--user-notif-accent);
}

#notifDropdown .user-notif-copy strong,
#notifDropdown .user-notif-copy span,
#notifDropdown .user-notif-copy small {
  display: block;
  overflow-wrap: anywhere;
  word-break: normal;
}

#notifDropdown .user-notif-copy strong {
  color: var(--user-notif-title);
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.22;
  margin-bottom: 4px;
}

#notifDropdown .user-notif-copy span {
  color: var(--user-notif-text);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.32;
}

#notifDropdown .user-notif-copy small {
  color: var(--user-notif-muted);
  font-size: 0.58rem;
  font-weight: 800;
  margin-top: 6px;
}

#notifDropdown .user-notif-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

#notifDropdown .user-notif-status {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 94px;
  padding: 18px;
  color: var(--tx3);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

#notifDropdown .user-notif-status.error {
  color: #ef4444;
}

#notifDropdown .user-notif-retry {
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid rgba(37, 99, 235, 0.28);
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  font-size: 0.74rem;
  font-weight: 900;
}

#notifDropdown .user-notif-link-btn {
  width: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--user-notif-accent) !important;
  padding: 0 !important;
  font-size: 0.64rem !important;
  font-weight: 900 !important;
  line-height: 1.25 !important;
  text-align: left !important;
  box-shadow: none !important;
}

#notifDropdown .user-notif-link-btn.danger {
  color: var(--user-notif-danger) !important;
}

#notifDropdown .user-notif-footer {
  padding: 10px;
  border-top: 1px solid var(--user-notif-border);
  background: var(--user-notif-panel);
}

#notifDropdown .user-notif-view-all {
  width: 100% !important;
  min-height: 36px;
  border: 1px solid var(--user-notif-border);
  border-radius: 8px;
  background: var(--user-notif-card);
  color: var(--user-notif-title);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1.2;
  box-shadow: 0 1px 0 rgba(148, 163, 184, 0.08);
}

#notifDropdown .user-notif-view-all i {
  color: var(--user-notif-accent);
  font-size: 0.72rem;
}

.sr-confirm-modal .modal-content {
  background: var(--sf, #fff);
  color: var(--tx, #0f172a);
  border: 1px solid var(--bd, rgba(148, 163, 184, .24));
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .26);
  overflow: hidden;
}

.sr-confirm-modal .modal-header,
.sr-confirm-modal .modal-footer {
  border-color: var(--bd, rgba(148, 163, 184, .22));
}

.sr-confirm-modal .modal-header {
  background: color-mix(in srgb, var(--sf, #fff) 88%, #2563eb 12%);
}

.sr-confirm-modal .modal-body {
  padding: 18px 20px 20px;
}

.sr-confirm-modal .modal-body p {
  margin: 0;
  color: var(--tx2, #475569);
  font-size: 0.92rem;
  line-height: 1.55;
}

.sr-confirm-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sr-confirm-heading .modal-title {
  color: var(--tx, #0f172a);
  font-size: 1rem;
  font-weight: 900;
}

.sr-confirm-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: inline-grid;
  place-items: center;
  background: rgba(37, 99, 235, .12);
  color: #2563eb;
}

.sr-confirm-icon.danger {
  background: rgba(239, 68, 68, .12);
  color: #ef4444;
}

.sr-confirm-action,
.sr-confirm-cancel {
  min-width: 104px;
  min-height: 40px;
  border-radius: 9px;
  font-weight: 900;
}

.sr-confirm-cancel {
  border: 1px solid var(--bd, rgba(148, 163, 184, .28));
  background: transparent;
  color: var(--tx2, #475569);
}

.sr-confirm-action.primary {
  background: #2563eb;
  color: #fff;
}

.sr-confirm-action.danger {
  background: #dc2626;
  color: #fff;
}

@media (max-width: 360px) {
  #notifDropdown .user-notif-header {
    align-items: flex-start;
    flex-direction: column;
  }

  #notifDropdown .user-notif-actions {
    width: 100%;
  }

  #notifDropdown .user-notif-action {
    flex: 1 1 0;
  }

  #notifDropdown .user-notif-action-icon {
    flex: 0 0 32px;
  }
}

/* PROFILE DROPDOWN */
.profile-dd {
  width: 300px;
  min-width: 300px;
  max-width: calc(100vw - 32px);
}

.profile-dd-top {
  padding: 18px;
  border-bottom: 1px solid var(--bd);
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-menu-item {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 0.875rem;
  color: var(--tx2);
  cursor: pointer;
  transition: 0.2s;
  border-radius: 10px;
  margin: 2px 8px;
  border: none;
  background: transparent;
  width: calc(100% - 16px);
  font-family: "Poppins", sans-serif;
  text-align: left;
  white-space: nowrap;
}

.profile-menu-item i {
  flex: 0 0 18px;
  width: 18px;
  text-align: center;
  font-size: 0.9rem;
}

.profile-menu-item {
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-dd form {
  margin: 0;
}

.profile-dd label {
  white-space: nowrap;
}

body.user-desktop-shell:not(.admin-shell) #notifDropdown.user-notif-dropdown {
  --user-notif-panel: rgba(255, 255, 255, 0.98);
  --user-notif-card: #ffffff;
  --user-notif-soft: #f8fafc;
  --user-notif-border: rgba(148, 163, 184, 0.28);
  --user-notif-title: #0f172a;
  --user-notif-text: #334155;
  --user-notif-muted: #64748b;
  --user-notif-accent: #2563eb;
  --user-notif-danger: #ef4444;
  --user-notif-danger-bg: #fff1f2;
  --user-notif-danger-border: rgba(248, 113, 113, 0.28);
  width: min(430px, calc(100vw - 32px)) !important;
  min-width: 430px !important;
  max-width: calc(100vw - 32px) !important;
  border-radius: 14px !important;
  background: var(--user-notif-panel) !important;
  border-color: var(--user-notif-border) !important;
  color: var(--user-notif-title) !important;
}

html:not(.lm) body.user-desktop-shell:not(.admin-shell) #notifDropdown.user-notif-dropdown {
  --user-notif-panel: rgba(15, 23, 42, 0.96);
  --user-notif-card: rgba(30, 41, 59, 0.72);
  --user-notif-soft: rgba(30, 41, 59, 0.82);
  --user-notif-border: rgba(148, 163, 184, 0.24);
  --user-notif-title: #f8fafc;
  --user-notif-text: #e2e8f0;
  --user-notif-muted: #cbd5e1;
  --user-notif-accent: #93c5fd;
  --user-notif-danger: #fca5a5;
  --user-notif-danger-bg: rgba(239, 68, 68, 0.14);
  --user-notif-danger-border: rgba(248, 113, 113, 0.34);
}

body.user-desktop-shell:not(.admin-shell) #notifDropdown .user-notif-header {
  min-height: 56px !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  padding: 10px 10px 10px 12px !important;
  margin: 0 !important;
  border-bottom: 1px solid var(--user-notif-border) !important;
  background: var(--user-notif-panel) !important;
}

body.user-desktop-shell:not(.admin-shell) #notifDropdown .user-notif-title {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  color: var(--user-notif-title) !important;
  font-size: 0.9rem !important;
  font-weight: 900 !important;
  line-height: 1.12 !important;
}

body.user-desktop-shell:not(.admin-shell) #notifDropdown #unreadCountBadge {
  margin-left: 0 !important;
  border-radius: 999px !important;
}

body.user-desktop-shell:not(.admin-shell) #notifDropdown .user-notif-actions {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
}

body.user-desktop-shell:not(.admin-shell) #notifDropdown .user-notif-action {
  width: auto !important;
  min-width: 44px !important;
  min-height: 34px !important;
  padding: 8px 10px !important;
  border: 1px solid var(--user-notif-border) !important;
  border-radius: 9px !important;
  background: var(--user-notif-soft) !important;
  color: var(--user-notif-title) !important;
  font-size: 0.68rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  gap: 5px !important;
}

body.user-desktop-shell:not(.admin-shell) #notifDropdown .user-notif-action.danger {
  border-color: var(--user-notif-danger-border) !important;
  background: var(--user-notif-danger-bg) !important;
  color: var(--user-notif-danger) !important;
}

body.user-desktop-shell:not(.admin-shell) #notifDropdown .user-notif-list {
  min-height: 72px !important;
  max-height: min(58vh, 390px) !important;
  padding: 10px !important;
  background: var(--user-notif-panel) !important;
}

body.user-desktop-shell:not(.admin-shell) #notifDropdown .user-notif-item {
  grid-template-columns: 44px minmax(0, 1fr) !important;
  gap: 9px !important;
  padding: 10px !important;
  border-radius: 8px !important;
  background: var(--user-notif-card) !important;
  box-shadow: 0 1px 0 rgba(148, 163, 184, 0.08) !important;
}

body.user-desktop-shell:not(.admin-shell) #notifDropdown .user-notif-ico {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  border-radius: 12px !important;
  font-size: 0.84rem !important;
}

body.user-desktop-shell:not(.admin-shell) #notifDropdown .user-notif-row-actions {
  justify-content: flex-end !important;
  gap: 6px !important;
  margin-top: 7px !important;
}

body.user-desktop-shell:not(.admin-shell) #notifDropdown .user-notif-link-btn {
  min-height: 30px !important;
  padding: 6px 9px !important;
  border: 1px solid rgba(37, 99, 235, 0.2) !important;
  border-radius: 8px !important;
  background: rgba(37, 99, 235, 0.1) !important;
  font-size: 0.6rem !important;
  line-height: 1.12 !important;
}

body.user-desktop-shell:not(.admin-shell) #notifDropdown .user-notif-footer {
  padding: 10px !important;
  border-top: 1px solid var(--user-notif-border) !important;
  background: var(--user-notif-panel) !important;
}

body.user-desktop-shell:not(.admin-shell) #notifDropdown .user-notif-view-all {
  min-height: 44px !important;
  border-radius: 8px !important;
  font-size: 0.7rem !important;
}

.profile-menu-item:hover {
  background: rgba(139, 92, 246, 0.1);
  color: var(--tx);
}

.profile-menu-item.danger:hover {
  background: rgba(248, 113, 113, 0.1);
  color: #f87171;
}

.profile-dd-footer {
  padding: 10px 8px;
  border-top: 1px solid var(--bd);
}

/* MOBILE DB */
@media (max-width: 991px) {
  .db-sidebar {
    transform: translateX(-100%);
    transition: 0.3s;
  }

  .db-sidebar.mob-open {
    transform: translateX(0);
  }

  .db-main {
    margin-left: 0;
  }

  .db-top {
    left: 0;
  }
}

/* KEYFRAMES */
@keyframes bpls {

  0%,
  100% {
    box-shadow: 0 0 6px var(--pur);
  }

  50% {
    box-shadow: 0 0 14px var(--pur);
  }
}

@keyframes bgrow {
  from {
    transform: scaleY(0);
    opacity: 0;
  }

  to {
    transform: scaleY(1);
    opacity: 0.75;
  }
}

@keyframes tbounce {

  0%,
  60%,
  100% {
    transform: translateY(0);
  }

  30% {
    transform: translateY(-5px);
  }
}

@keyframes lscr {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes fadU {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes dinI {
  from {
    opacity: 0;
    transform: perspective(1200px) rotateX(5deg) translateY(28px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.afu {
  animation: fadU 0.8s ease both;
}

.adi {
  animation: dinI 1.1s ease 0.35s both;
}

.rv {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s, transform 0.65s;
}

.rv.in {
  opacity: 1;
  transform: none;
}

@media (max-width: 575px) {
  .h1 {
    font-size: 2.2rem;
  }

  .stitle {
    font-size: 1.8rem;
  }

  #lofc {
    width: 100%;
  }

  .db-top-search {
    display: none;
  }

  .db-content {
    padding: 16px;
  }
}

/* DESKTOP SIDEBAR COLLAPSE */
@media (min-width: 992px) {
  body.collapsed-sidebar .db-sidebar {
    width: 80px;
  }

  body.collapsed-sidebar .db-sidebar .db-nav-section,
  body.collapsed-sidebar .db-sidebar .logo-container span,
  body.collapsed-sidebar .db-sidebar .admin-brand,
  body.collapsed-sidebar .db-sidebar .db-logo span {
    display: none !important;
  }

  body.collapsed-sidebar .db-sidebar .db-logo {
    justify-content: center !important;
    padding: 18px 0;
    flex-direction: column;
    gap: 15px;
  }

  body.collapsed-sidebar .db-sidebar .toggle-sidebar-btn {
    margin: 0 auto;
  }

  body.collapsed-sidebar .db-sidebar .db-nl {
    font-size: 0;
    justify-content: center;
    padding: 10px;
  }

  body.collapsed-sidebar .db-sidebar .db-nl i {
    font-size: 1.1rem;
    margin: 0 !important;
  }

  body.collapsed-sidebar .db-main {
    margin-left: 80px;
  }

  body.collapsed-sidebar .db-top {
    left: 80px;
  }
}

/* Fix mobile dropdown overflowing */
@media (max-width: 575px) {
  .db-dropdown {
    position: fixed !important;
    top: 75px !important;
    left: 15px !important;
    right: 15px !important;
    width: auto !important;
    max-width: none !important;
    transform: none !important;
  }
}

/* Global Custom Table and Nav Link Fixes */
.custom-table {
  background-color: transparent !important;
  --bs-table-bg: transparent !important;
  --bs-table-color: var(--tx) !important;
}
.custom-table th {
  color: var(--tx3, #808090);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  border-bottom: 1px solid var(--bd);
  padding: 12px 16px;
}
.custom-table td {
  padding: 16px;
  border-bottom: 1px solid var(--bd);
  color: var(--tx, #e0e0e0);
  vertical-align: middle;
  font-size: 0.9rem;
}
.custom-table tr:last-child td { border-bottom: none; }

@media (max-width: 575px) {
  .custom-table td, .custom-table th {
      padding: 12px 10px;
  }
}

.nav-pills .nav-link {
  color: var(--tx3, #808090);
  border-radius: 10px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
}

.nav-pills .nav-link.active {
  background-color: var(--pur);
  color: var(--tx) !important;
  box-shadow: 0 4px 10px rgba(96, 165, 250, 0.3);
}

/* Form Inputs Day/Night Theme Fix */
.form-control, .form-select {
  background-color: var(--bg) !important;
  color: var(--tx) !important;
}
.form-control:focus, .form-select:focus {
  background-color: var(--bg) !important;
  color: var(--tx) !important;
  border-color: var(--pur) !important;
  box-shadow: 0 0 0 0.25rem rgba(139, 92, 246, 0.25) !important;
}
input::placeholder,
textarea::placeholder,
.form-control::placeholder {
  color: var(--tx3) !important;
  font-weight: 400 !important;
}

/* ======================== SPEAKREADY PROFESSIONAL UI POLISH ======================== */
:root {
  --bg: #102b46;
  --bg2: #153b63;
  --bg3: #1d4f7a;
  --sf: #234d77;
  --sf2: #2b5b88;
  --bd: rgba(220, 234, 245, 0.14);
  --bd2: rgba(220, 234, 245, 0.24);
  --tx: #f7fbff;
  --tx2: #c6d8e8;
  --tx3: #9db4c9;
  --pur: #2563eb;
  --blu: #06b6d4;
  --grad: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #06b6d4;
  --focus-ring: rgba(59, 130, 246, 0.22);
  --card-radius: 16px;
  --control-radius: 12px;
  --shadow-card: 0 18px 45px rgba(0, 0, 0, 0.18);
  --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.14);
}

.lm {
  --bg: #f1f6fb;
  --bg2: #edf5fc;
  --bg3: #f7fbff;
  --sf: #ffffff;
  --sf2: #ffffff;
  --bd: rgba(35, 77, 119, 0.12);
  --bd2: rgba(35, 77, 119, 0.18);
  --tx: #153b63;
  --tx2: #607995;
  --tx3: #879bb0;
  --pur: #2563eb;
  --blu: #06b6d4;
  --grad: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  --focus-ring: rgba(37, 99, 235, 0.22);
  --shadow-card: 0 18px 45px rgba(35, 77, 119, 0.10);
  --shadow-soft: 0 10px 26px rgba(35, 77, 119, 0.08);
}

html body * {
  letter-spacing: 0 !important;
}

body {
  background:
    linear-gradient(180deg, rgba(14, 165, 233, 0.035), transparent 320px),
    var(--bg);
  text-rendering: optimizeLegibility;
}

.lm body {
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.05), transparent 340px),
    var(--bg);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea,
.btn,
.db-nl,
.mob-nav-item,
.drawer-item,
.drawer-action {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.btn:focus-visible,
.db-nl:focus-visible,
.drawer-item:focus-visible,
.mob-nav-item:focus-visible {
  outline: 3px solid var(--focus-ring) !important;
  outline-offset: 2px;
}

#dashboard {
  background: transparent;
}

.db-sidebar {
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
  box-shadow: 1px 0 0 var(--bd);
}

.db-logo {
  min-height: var(--nav);
  padding: 16px 18px;
}

.db-logo span,
.mob-header-logo span,
.mob-header-brand span:not(.adm-badge) {
  white-space: nowrap;
}

.db-nav {
  padding: 14px 10px 28px;
  scrollbar-width: thin;
  scrollbar-color: var(--bd2) transparent;
}

.db-nav::-webkit-scrollbar,
.chat-messages::-webkit-scrollbar,
.table-responsive::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.db-nav::-webkit-scrollbar-thumb,
.chat-messages::-webkit-scrollbar-thumb,
.table-responsive::-webkit-scrollbar-thumb {
  background: var(--bd2);
  border-radius: 999px;
}

.db-nav-section {
  margin: 18px 8px 8px;
  color: var(--tx3);
  font-size: 0.68rem;
}

.db-nl {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--tx2);
}

.db-nl:hover {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.16);
  color: var(--tx);
}

.db-nl.active {
  background: rgba(59, 130, 246, 0.13);
  border-color: rgba(59, 130, 246, 0.24);
  color: #60a5fa;
}

.db-nl.active::before {
  left: -1px;
  width: 4px;
  background: var(--grad);
}

.db-top {
  background: rgba(9, 11, 18, 0.84);
  box-shadow: 0 1px 0 var(--bd), 0 14px 34px rgba(0, 0, 0, 0.13);
  padding: 0 clamp(18px, 2.4vw, 32px);
}

.lm .db-top {
  background: rgba(247, 249, 252, 0.9);
  box-shadow: 0 1px 0 var(--bd), 0 12px 28px rgba(15, 23, 42, 0.06);
}

.db-top-search {
  max-width: 440px;
}

.db-top-search input,
.oinp,
.form-control,
.form-select {
  min-height: 44px;
  border-radius: var(--control-radius) !important;
  border: 1px solid var(--bd2) !important;
  background: var(--sf2) !important;
  color: var(--tx) !important;
  box-shadow: none !important;
}

.db-top-search input:focus,
.oinp:focus,
.form-control:focus,
.form-select:focus {
  border-color: rgba(59, 130, 246, 0.64) !important;
  box-shadow: 0 0 0 4px var(--focus-ring) !important;
  background: var(--sf) !important;
}

input::placeholder,
textarea::placeholder,
.oinp::placeholder,
.form-control::placeholder,
.form-select::placeholder,
.tracker-field::placeholder,
.chat-textarea::placeholder {
  color: var(--tx3) !important;
  font-weight: 400 !important;
}

.db-main {
  background:
    linear-gradient(180deg, rgba(14, 165, 233, 0.035), transparent 360px),
    var(--bg);
}

.db-content {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: clamp(18px, 2.4vw, 32px);
}

.db-section.active {
  animation: srFadeIn 0.22s ease both;
}

.premium-card,
.premium-panel,
.setup-panel,
.panel,
.db-stat-card,
.ll-stat-card,
.print-card,
.module-card,
.perk-card {
  background: var(--sf) !important;
  border: 1px solid var(--bd) !important;
  border-radius: var(--card-radius) !important;
  box-shadow: var(--shadow-soft) !important;
  color: var(--tx);
}

.premium-card,
.premium-panel,
.setup-panel,
.panel,
.db-stat-card,
.ll-stat-card {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
}

.premium-card:hover,
.premium-panel:hover,
.setup-panel:hover,
.panel:hover,
.db-stat-card:hover,
.ll-stat-card:hover {
  border-color: rgba(59, 130, 246, 0.24) !important;
  box-shadow: var(--shadow-card) !important;
  transform: translateY(-2px) !important;
}

.card-grad-primary,
.card-grad-success {
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.07), rgba(6, 182, 212, 0.035)),
    var(--sf) !important;
}

.ambient-bg-element,
.aur {
  opacity: 0.08 !important;
}

.stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stat-card {
  min-height: 138px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 14px !important;
  border: 1px solid var(--bd) !important;
  background: var(--sf) !important;
  box-shadow: none !important;
}

.stat-card:hover {
  box-shadow: var(--shadow-soft) !important;
}

.stat-icon {
  margin-bottom: 12px !important;
}

.stat-val {
  font-size: clamp(1.5rem, 2.8vw, 1.9rem) !important;
}

.stat-label {
  color: var(--tx3) !important;
  text-transform: none !important;
}

.score-badge,
.badge,
.db-badge,
.stat-badge {
  border-radius: 999px !important;
  font-weight: 700 !important;
}

.bgrd,
.btn-primary,
.chat-send-btn {
  background: var(--grad) !important;
  border-color: transparent !important;
  color: #fff !important;
}

.boc,
.btn-outline-primary,
.btn-outline-secondary {
  border-color: var(--bd2) !important;
  color: var(--tx) !important;
}

.bgrd,
.boc,
.btn,
.chat-send-btn {
  min-height: 40px;
}

.btn:hover,
.bgrd:hover,
.boc:hover,
.chat-send-btn:hover {
  transform: translateY(-1px);
}

.table-responsive {
  border: 1px solid var(--bd);
  border-radius: var(--card-radius);
  background: var(--sf);
  overflow: auto;
}

.custom-table {
  margin-bottom: 0 !important;
}

.custom-table th {
  color: var(--tx3) !important;
  background: var(--sf2) !important;
  border-bottom: 1px solid var(--bd) !important;
  font-size: 0.76rem;
  text-transform: none;
  white-space: nowrap;
}

.custom-table td {
  border-bottom: 1px solid var(--bd) !important;
  color: var(--tx2) !important;
}

.custom-table tbody tr {
  transition: background-color 0.16s ease;
}

.custom-table tbody tr:hover {
  background: rgba(59, 130, 246, 0.055);
}

.nav-pills {
  gap: 6px;
}

.nav-pills .nav-link {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
}

.nav-pills .nav-link.active {
  background: rgba(59, 130, 246, 0.14) !important;
  border-color: rgba(59, 130, 246, 0.25) !important;
  color: #60a5fa !important;
  box-shadow: none !important;
}

.custom-radio,
.custom-cbx,
.persona-card,
.drop-zone,
.chat-input-wrapper,
.history-item,
.drawer-item,
.mob-icon-btn {
  border-color: var(--bd2) !important;
}

.custom-radio,
.custom-cbx,
.persona-card,
.drop-zone {
  background: var(--sf2) !important;
  border-radius: 14px !important;
}

.custom-radio:hover,
.custom-cbx:hover,
.persona-card:hover,
.drop-zone:hover {
  background: var(--sf) !important;
  border-color: rgba(59, 130, 246, 0.32) !important;
}

.drop-zone {
  padding: clamp(24px, 4vw, 40px) 18px !important;
}

.chat-container {
  border-radius: var(--card-radius) !important;
  border-color: var(--bd) !important;
  background: var(--sf) !important;
  box-shadow: var(--shadow-soft) !important;
}

.chat-sidebar {
  background: var(--sf2) !important;
}

.chat-input-area {
  background: var(--sf2) !important;
}

.chat-input-wrapper {
  background: var(--bg3) !important;
  border-radius: 14px !important;
}

.chat-textarea,
.mob-nav-item,
.drawer-action {
  font-family: "Poppins", sans-serif !important;
}

.bubble-ai {
  background: var(--sf2) !important;
  border-color: var(--bd2) !important;
}

.bubble-user {
  background: var(--grad) !important;
}

#mob-header,
#mob-bottom-nav {
  box-shadow: 0 -1px 0 var(--bd), 0 -14px 28px rgba(0, 0, 0, 0.12);
}

#mob-header {
  min-height: calc(var(--mob-top-h, 56px) + var(--mob-safe-top, 0px));
}

.mob-icon-btn,
.mob-avatar,
.mob-avatar-adm {
  flex: 0 0 auto;
}

.mob-nav-item {
  flex: 1 1 0;
  min-width: 0 !important;
  min-height: 52px;
  justify-content: center;
  color: var(--tx3);
}

.mob-nav-item span,
.drawer-item span {
  overflow-wrap: anywhere;
}

.mob-nav-item.active {
  color: #60a5fa;
}

.drawer-grid,
.drawer-ai-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

#mob-drawer {
  background: var(--bg2) !important;
  box-shadow: 0 -22px 48px rgba(0, 0, 0, 0.34);
}

.admin-brand,
.adm-badge,
.drawer-section-title,
.drawer-action.danger {
  letter-spacing: 0 !important;
}

@keyframes srFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1199px) {
  .db-content {
    padding: 22px;
  }
}

@media (max-width: 991px) {
  .db-sidebar {
    box-shadow: 24px 0 60px rgba(0, 0, 0, 0.35);
  }

  .db-content {
    padding: 18px;
  }

  .premium-card:hover,
  .premium-panel:hover,
  .setup-panel:hover,
  .panel:hover,
  .db-stat-card:hover,
  .ll-stat-card:hover {
    transform: none !important;
  }
}

@media (max-width: 767px) {
  body {
    background: var(--bg);
  }

  #dashboard .db-content,
  #dashboard .db-content .db-section.active,
  #dashboard .db-content .db-section.active > * {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  #dashboard .db-content .row {
    width: auto;
    max-width: none !important;
    margin-left: calc(var(--bs-gutter-x, 1.5rem) * -0.5);
    margin-right: calc(var(--bs-gutter-x, 1.5rem) * -0.5);
  }

  #dashboard .db-content .row > * {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  #dashboard .db-content .premium-panel,
  #dashboard .db-content .panel,
  #dashboard .db-content .setup-panel,
  #dashboard .db-content .premium-card,
  #dashboard .db-content .print-card,
  #dashboard .db-content .module-card,
  #dashboard .db-content .perk-card,
  #dashboard .db-content .ll-stat-card,
  #dashboard .db-content .ll-module-card,
  #dashboard .db-content .level-card,
  #dashboard .db-content .db-stat-card,
  #dashboard .db-content .stat-card,
  #dashboard .db-content .sr-card,
  #dashboard .db-content .sr-stat-card,
  #dashboard .db-content .card,
  #dashboard .db-content .alert,
  #dashboard .db-content .accordion,
  #dashboard .db-content .accordion-item {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .db-content {
    padding: 12px !important;
  }

  .premium-card,
  .premium-panel,
  .setup-panel,
  .panel,
  .db-stat-card,
  .ll-stat-card,
  .print-card {
    border-radius: 14px !important;
  }

  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .stat-card {
    min-height: 106px;
    padding: 12px 10px !important;
  }

  .chart-container-mobile {
    height: 210px !important;
  }

  .table-responsive {
    border-radius: 14px;
    margin-left: 0;
    margin-right: 0;
  }

  .custom-table {
    min-width: 680px;
  }

  .custom-table th,
  .custom-table td {
    padding: 12px !important;
    font-size: 0.82rem;
  }

  .db-top-search,
  .d-none-mobile-professional {
    display: none !important;
  }

  .drawer-grid,
  .drawer-ai-grid {
    gap: 8px !important;
  }

  .drawer-item {
    min-height: 62px;
    padding: 10px 8px !important;
    border-radius: 12px !important;
    font-size: 0.66rem !important;
    line-height: 1.15 !important;
    justify-content: center;
  }

  .drawer-item i {
    font-size: 1.1rem !important;
  }

  .drawer-action {
    min-height: 42px;
    padding: 9px 10px !important;
    font-size: 0.78rem !important;
  }

  .chat-container {
    height: calc(100dvh - var(--mob-top-h, 56px) - var(--mob-nav-h, 64px) - 32px) !important;
    min-height: 360px !important;
  }
}

@media (max-width: 575px) {
  .db-content {
    padding: 10px 12px 12px !important;
  }

  .mob-header-logo span,
  .mob-header-brand span:not(.adm-badge) {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mob-header-right {
    gap: 7px !important;
  }

  .mob-icon-btn {
    width: 34px !important;
    height: 34px !important;
    border-radius: 10px !important;
  }

  .mob-nav-item {
    padding: 7px 4px !important;
    font-size: 0.62rem !important;
  }

  .mob-nav-item i {
    font-size: 1.15rem !important;
  }

  .drawer-grid,
  .drawer-ai-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .premium-card,
  .premium-panel,
  .setup-panel,
  .panel,
  .db-stat-card,
  .ll-stat-card,
  .print-card {
    padding: 14px !important;
  }

  #progress-stats,
  #dashboard-stats {
    --bs-gutter-x: 10px;
    --bs-gutter-y: 10px;
  }

  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  #progress-stats > .col-md-3.col-sm-6,
  #dashboard-stats > .col-12.col-sm-6 {
    width: 50% !important;
    flex: 0 0 auto !important;
  }

  #progress-stats .premium-panel,
  #dashboard-stats .ll-stat-card,
  .stat-card.premium-panel {
    min-height: 106px !important;
    padding: 12px !important;
    border-radius: 14px !important;
  }

  #dashboard-stats .ll-stat-card.gap-3,
  #dashboard-stats .ll-stat-card.d-flex {
    gap: 8px !important;
  }

  #dashboard-stats .ll-stat-card [style*="width:55px"] {
    width: 38px !important;
    height: 38px !important;
    flex: 0 0 38px !important;
    border-radius: 12px !important;
  }

  #progress-stats .premium-panel .fs-1,
  #dashboard-stats .ll-stat-card [style*="font-size:1.8rem"] {
    font-size: 1.35rem !important;
  }

  #progress-stats .premium-panel h3,
  #dashboard-stats .ll-stat-val {
    font-size: 1.12rem !important;
    line-height: 1.12 !important;
  }

  #dashboard-stats .ll-stat-val span {
    font-size: 0.75rem !important;
  }

  #progress-stats .premium-panel p,
  #dashboard-stats .ll-stat-card [style*="text-transform:uppercase"] {
    font-size: 0.68rem !important;
    line-height: 1.25 !important;
  }

  .row.g-4 {
    --bs-gutter-x: 0.85rem;
    --bs-gutter-y: 0.85rem;
  }

  .row.g-3 {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 0.75rem;
  }

  .btn,
  .bgrd,
  .boc,
  .oinp,
  .form-control,
  .form-select {
    min-height: 44px;
  }

  .chat-bubble {
    max-width: 92% !important;
  }
}

@media (max-width: 380px) {
  .db-content {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .mob-header-logo span,
  .mob-header-brand span:not(.adm-badge) {
    max-width: 104px;
  }

  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  #mob-drawer {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .drawer-grid,
  .drawer-ai-grid {
    gap: 7px !important;
  }

  .drawer-item {
    min-height: 58px !important;
    padding: 8px 6px !important;
    font-size: 0.62rem !important;
  }

  .drawer-item i {
    font-size: 1rem !important;
  }

  #progress-stats .premium-panel,
  #dashboard-stats .ll-stat-card,
  .stat-card.premium-panel {
    min-height: 100px !important;
    padding: 10px !important;
  }

  .mob-nav-item span {
    font-size: 0.56rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Landing hero mobile guardrails */
#hero,
#landing {
  overflow-x: hidden;
}

.sr-mobile-break {
  display: none;
}

.sr-hero-badge {
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 767px) {
  #nbar .d-flex.align-items-center.justify-content-between.w-100 {
    gap: 10px;
  }

  #nbar a.d-flex.align-items-center.gap-2.text-truncate {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none !important;
  }

  #nbar .d-flex.align-items-center.gap-2.flex-shrink-0 {
    gap: 6px !important;
  }

  #thbtn,
  #mbtog {
    width: 36px !important;
    height: 36px !important;
  }

  #nbar .container,
  #hero .container {
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }

  #hero .row {
    --bs-gutter-x: 0;
  }

  .hbadge {
    display: block;
    width: 100%;
    max-width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
    padding: 7px 12px;
  }

  #hero .h1 {
    font-size: clamp(2rem, 8.8vw, 3.1rem) !important;
    line-height: 1.08;
    margin-bottom: 18px;
    overflow-wrap: normal;
  }

  #hero p {
    max-width: 100% !important;
    margin-bottom: 28px !important;
    overflow-wrap: break-word;
  }

  #hero .d-flex.align-items-center.justify-content-center.gap-3.flex-wrap {
    width: 100%;
    gap: 10px !important;
  }

  #hero .d-flex.align-items-center.justify-content-center.gap-3.flex-wrap > .btn {
    flex: 1 1 100%;
    width: 100%;
    max-width: 280px;
    padding: 12px 16px !important;
  }

  #hero .mic-3d-anim {
    width: min(100%, 340px);
    max-height: 330px !important;
    object-fit: contain;
  }

  .tech-icons {
    gap: 18px !important;
  }

  .dwrap {
    border-radius: 18px;
  }

  .dwrap .p-3 {
    padding: 12px !important;
  }

  .cbbl {
    max-width: 100%;
  }
}

@media (max-width: 420px) {
  #nbar .container,
  #hero .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hbadge {
    font-size: 0.7rem;
  }

  #hero .h1 {
    font-size: clamp(1.9rem, 8.6vw, 2.2rem) !important;
  }

  #hero .mic-3d-anim {
    max-height: 300px !important;
  }

  .dwrap {
    margin-left: -2px;
    margin-right: -2px;
  }
}

@media (max-width: 360px) {
  #hero .h1 {
    font-size: 1.8rem !important;
  }

  .hbadge {
    font-size: 0.66rem;
  }
}

@media (max-width: 767px) {
  .sr-hero-badge {
    display: flex !important;
    width: auto !important;
    max-width: min(100%, 340px) !important;
    margin-left: auto;
    margin-right: auto;
    gap: 4px 8px;
    overflow: hidden;
    text-overflow: clip;
    white-space: normal !important;
    word-break: normal;
  }

  .sr-badge-separator {
    display: none;
  }

  .sr-mobile-break {
    display: inline;
  }

  .sr-hero-title {
    width: 100%;
    max-width: 100%;
    font-size: clamp(1.9rem, 8vw, 2.45rem) !important;
    line-height: 1.08 !important;
    overflow-wrap: normal;
  }

  .sr-hero-copy {
    width: 100%;
    max-width: 330px !important;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
  }

  .sr-hero-actions {
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    flex-direction: column;
    align-items: stretch !important;
  }

  .sr-hero-actions > .btn {
    width: 100% !important;
    max-width: 100% !important;
    justify-content: center;
  }

  .sr-hero-image {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: min(100%, 320px) !important;
  }

  .sr-hero-preview {
    max-width: 100%;
    overflow: hidden;
  }
}

@media (max-width: 420px) {
  .sr-hero-title {
    font-size: clamp(1.75rem, 7.6vw, 2.05rem) !important;
  }

  .sr-hero-copy {
    max-width: 300px !important;
    font-size: 0.9rem !important;
  }
}

/* User workspace professional polish
   Normalizes the user feature pages that still carry page-local legacy styles. */
#dashboard .db-content {
  --sr-card-radius: var(--card-radius, 16px);
  --sr-page-gap: 20px;
  --sr-page-border: rgba(148, 163, 184, 0.18);
  --sr-soft-border: rgba(148, 163, 184, 0.12);
}

#dashboard .db-content .db-section.active {
  width: 100%;
  max-width: 1480px;
  margin-inline: auto;
  padding: 0 !important;
  overflow-x: clip;
}

#dashboard .db-content .db-section.active > .row.g-4,
#dashboard .db-content .db-section.active > form > .row.g-4 {
  --bs-gutter-x: var(--sr-page-gap);
  --bs-gutter-y: var(--sr-page-gap);
}

#dashboard .db-content .db-section.active > .mb-4:first-child,
#dashboard .db-content .db-section.active > form > .mb-4:first-child,
#dashboard .db-content #portfolioReport > .mb-4:first-child {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px !important;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--sr-page-border);
}

#dashboard .db-content .db-section.active > .mb-4:first-child > div:first-child,
#dashboard .db-content .db-section.active > form > .mb-4:first-child > div:first-child {
  min-width: 0;
}

#dashboard .db-content .text-gradient-primary,
#dashboard .db-content h4.text-gradient-primary,
#dashboard .db-content h3.text-gradient-primary,
#dashboard .db-content h6.text-gradient-primary {
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: var(--tx) !important;
  color: var(--tx) !important;
  font-size: clamp(1.18rem, 1.1vw + 0.95rem, 1.55rem) !important;
  line-height: 1.2 !important;
  font-weight: 750 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  margin-bottom: 6px !important;
}

#dashboard .db-content h3.text-gradient-primary {
  font-size: clamp(1.35rem, 1.4vw + 1rem, 1.9rem) !important;
}

#dashboard .db-content .text-gradient-primary i,
#dashboard .db-content h4.text-gradient-primary i,
#dashboard .db-content h3.text-gradient-primary i,
#dashboard .db-content h6.text-gradient-primary i {
  color: #60a5fa;
  margin-right: 8px;
}

#dashboard .db-content .db-section.active > .mb-4:first-child p,
#dashboard .db-content .db-section.active > form > .mb-4:first-child p,
#dashboard .db-content #portfolioReport > .mb-4:first-child p {
  max-width: 760px;
  color: var(--tx3) !important;
  font-size: 0.92rem !important;
  line-height: 1.55 !important;
  margin: 0 !important;
}

#dashboard .db-content .premium-panel,
#dashboard .db-content .premium-card,
#dashboard .db-content .setup-panel,
#dashboard .db-content .module-card,
#dashboard .db-content .ll-stat-card,
#dashboard .db-content .print-card,
#dashboard .db-content .perk-card,
#dashboard .db-content .stat-card,
#dashboard .db-content .panel {
  background: var(--sf) !important;
  border: 1px solid var(--sr-page-border) !important;
  border-radius: var(--sr-card-radius) !important;
  box-shadow: 0 14px 36px rgba(2, 6, 23, 0.16) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transform: none;
}

.lm #dashboard .db-content .premium-panel,
.lm #dashboard .db-content .premium-card,
.lm #dashboard .db-content .setup-panel,
.lm #dashboard .db-content .module-card,
.lm #dashboard .db-content .ll-stat-card,
.lm #dashboard .db-content .print-card,
.lm #dashboard .db-content .perk-card,
.lm #dashboard .db-content .stat-card,
.lm #dashboard .db-content .panel {
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08) !important;
}

#dashboard .db-content .premium-panel:hover,
#dashboard .db-content .premium-card:hover,
#dashboard .db-content .setup-panel:hover,
#dashboard .db-content .module-card:hover,
#dashboard .db-content .ll-stat-card:hover,
#dashboard .db-content .print-card:hover,
#dashboard .db-content .perk-card:hover,
#dashboard .db-content .stat-card:hover,
#dashboard .db-content .panel:hover {
  border-color: rgba(96, 165, 250, 0.34) !important;
  box-shadow: 0 18px 42px rgba(2, 6, 23, 0.22) !important;
  transform: translateY(-1px) !important;
}

.lm #dashboard .db-content .premium-panel:hover,
.lm #dashboard .db-content .premium-card:hover,
.lm #dashboard .db-content .setup-panel:hover,
.lm #dashboard .db-content .module-card:hover,
.lm #dashboard .db-content .ll-stat-card:hover,
.lm #dashboard .db-content .print-card:hover,
.lm #dashboard .db-content .perk-card:hover,
.lm #dashboard .db-content .stat-card:hover,
.lm #dashboard .db-content .panel:hover {
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12) !important;
}

#dashboard .db-content .premium-panel h5,
#dashboard .db-content .premium-card h5,
#dashboard .db-content .setup-panel h5,
#dashboard .db-content .print-card h5,
#dashboard .db-content .panel h5 {
  letter-spacing: 0 !important;
  line-height: 1.25;
}

#dashboard .db-content .btn,
#dashboard .db-content .bgrd,
#dashboard .db-content .boc {
  border-radius: 8px !important;
  font-weight: 650;
  letter-spacing: 0 !important;
  min-height: 42px;
}

#dashboard .db-content .btn-sm {
  min-height: 36px;
}

#dashboard .db-content .btn-shine::after {
  display: none;
}

#dashboard .db-content .oinp,
#dashboard .db-content .form-control,
#dashboard .db-content .form-select,
#dashboard .db-content textarea,
#dashboard .db-content .db-top-search,
#dashboard .db-content .input-group {
  border-radius: 8px !important;
}

#dashboard .db-content .oinp,
#dashboard .db-content .form-control,
#dashboard .db-content .form-select {
  min-height: 44px;
  background: var(--bg3) !important;
  border-color: var(--bd) !important;
  color: var(--tx) !important;
}

#dashboard .db-content .oinp:focus,
#dashboard .db-content .form-control:focus,
#dashboard .db-content .form-select:focus,
#dashboard .db-content .db-top-search:focus-within,
#dashboard .db-content .input-group:focus-within {
  border-color: rgba(96, 165, 250, 0.75) !important;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.18) !important;
}

#dashboard .db-content .olbl,
#dashboard .db-content label {
  letter-spacing: 0 !important;
}

#dashboard .db-content .ll-nav-pill,
#dashboard .db-content .nav-pills .nav-link {
  min-height: 40px;
  border-radius: 8px !important;
  border: 1px solid var(--bd) !important;
  background: var(--sf) !important;
  color: var(--tx2) !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

#dashboard .db-content .ll-nav-pill:hover,
#dashboard .db-content .nav-pills .nav-link:hover {
  border-color: rgba(96, 165, 250, 0.45) !important;
  color: #60a5fa !important;
  transform: none !important;
}

#dashboard .db-content .ll-nav-pill.active,
#dashboard .db-content .nav-pills .nav-link.active {
  background: rgba(59, 130, 246, 0.14) !important;
  border-color: rgba(96, 165, 250, 0.55) !important;
  color: #60a5fa !important;
}

#dashboard .db-content #nav-pills-container,
#dashboard .db-content .nav.nav-pills {
  gap: 8px;
}

#dashboard .db-content .custom-radio,
#dashboard .db-content .custom-cbx,
#dashboard .db-content .persona-card,
#dashboard .db-content .drop-zone,
#dashboard .db-content .stat-box {
  border-radius: 8px !important;
  border-color: var(--sr-page-border) !important;
  background: var(--bg3) !important;
}

#dashboard .db-content .custom-radio:hover,
#dashboard .db-content .custom-cbx:hover,
#dashboard .db-content .persona-card:hover,
#dashboard .db-content .drop-zone:hover {
  transform: none !important;
  border-color: rgba(96, 165, 250, 0.45) !important;
  box-shadow: none !important;
}

#dashboard .db-content .custom-radio:has(input:checked),
#dashboard .db-content .custom-cbx:has(input:checked),
#dashboard .db-content .persona-card.selected {
  background: rgba(59, 130, 246, 0.11) !important;
  border-color: rgba(96, 165, 250, 0.62) !important;
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.2) inset !important;
}

#dashboard .db-content .persona-grid {
  grid-template-columns: repeat(auto-fit, minmax(136px, 1fr)) !important;
}

#dashboard .db-content .cbx-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

#dashboard .db-content #panel-summary {
  position: sticky;
  top: 88px;
}

#dashboard .db-content .summary-val {
  overflow-wrap: anywhere;
}

#dashboard .db-content .module-card {
  min-height: 100%;
}

#dashboard .db-content .module-card > div:first-child {
  min-height: 118px;
}

#dashboard .db-content .module-card h5,
#dashboard .db-content .perk-card h5 {
  font-size: 1rem;
  line-height: 1.35;
}

#dashboard .db-content .ll-stat-card,
#dashboard .db-content .stat-card.premium-panel {
  min-height: 132px;
}

#dashboard .db-content .level-path,
#dashboard .db-content .level-node,
#dashboard .db-content .level-card {
  max-width: 100%;
}

#dashboard .db-content .table-responsive {
  width: 100%;
  max-width: 100%;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
}

#dashboard .db-content table,
#dashboard .db-content .custom-table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--tx);
  color: var(--tx) !important;
  margin-bottom: 0;
}

#dashboard .db-content thead th {
  color: var(--tx3) !important;
  font-size: 0.76rem;
  font-weight: 750 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase;
}

#dashboard .db-content tbody td {
  vertical-align: middle;
  color: var(--tx2);
}

#dashboard .db-content .leaderboard-row:hover,
#dashboard .db-content .notification-row:hover {
  transform: none !important;
}

#dashboard .db-content #feedback-filters,
#dashboard .db-content #portfolioReport .btn-no-print .d-flex,
#dashboard .db-content .db-section.active > .mb-4:first-child > .d-flex {
  min-width: 0;
}

#dashboard .db-content #feedback-filters .form-select,
#dashboard .db-content #feedback-filters .input-group,
#dashboard .db-content #history-table .input-group {
  min-width: 220px;
}

#dashboard .db-content .print-card,
#dashboard .db-content #portfolioReport {
  max-width: 100%;
  overflow: hidden;
}

#dashboard .db-content #portfolioReport canvas,
#dashboard .db-content canvas {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
}

#dashboard .db-content .chat-container {
  height: calc(100vh - 150px) !important;
  min-height: 540px;
  border-radius: 8px !important;
  box-shadow: 0 14px 36px rgba(2, 6, 23, 0.16) !important;
}

#dashboard .db-content .chat-sidebar {
  width: 292px !important;
  background: var(--bg2) !important;
}

#dashboard .db-content .chat-main {
  min-width: 0;
}

#dashboard .db-content .chat-messages {
  min-width: 0;
}

#dashboard .db-content .chat-bubble {
  max-width: min(78%, 760px) !important;
  border-radius: 8px !important;
  overflow-wrap: anywhere;
}

#dashboard .db-content .chat-input-wrapper {
  border-radius: 8px !important;
}

#dashboard .db-content .chat-send-btn {
  border-radius: 8px !important;
}

#dashboard .db-content .chat-textarea {
  font-family: "Poppins", sans-serif !important;
}

#dashboard .db-content #notificationsPageList {
  overflow: hidden;
}

#dashboard .db-content .notification-row {
  gap: 14px;
}

#dashboard .db-content .notification-row > div:first-child {
  margin-right: 0 !important;
}

#dashboard .db-content img,
#dashboard .db-content video,
#dashboard .db-content audio,
#dashboard .db-content svg {
  max-width: 100%;
}

/* Admin desktop UI hardening
   Keeps legacy admin pages stable across wide and laptop-sized desktops. */
body.admin-shell {
  min-width: 0;
  background:
    linear-gradient(180deg, rgba(59, 130, 246, 0.05), transparent 360px),
    var(--bg);
}

body.admin-shell #dashboard {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  overflow-x: clip;
  background: transparent;
}

body.admin-shell .db-sidebar {
  width: var(--dsb);
  min-width: var(--dsb);
  border-right: 1px solid rgba(148, 163, 184, 0.16) !important;
}

body.admin-shell .db-logo {
  min-height: var(--nav);
  gap: 12px;
}

body.admin-shell .db-logo .logo-i {
  width: 32px;
  height: 32px;
  border-radius: 16%;
  object-fit: contain;
}

body.admin-shell .admin-brand {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0;
}

body.admin-shell .db-nav {
  padding: 10px 10px 12px;
  overflow-y: hidden;
}

body.admin-shell .db-nl {
  min-width: 0;
  white-space: normal;
  min-height: 34px;
  padding: 7px 10px;
  margin-bottom: 2px;
  gap: 8px;
  font-size: 0.8rem;
  line-height: 1.15;
}

body.admin-shell .db-nl i {
  flex: 0 0 18px;
  font-size: 0.82rem;
}

body.admin-shell .db-main {
  flex: 1 1 auto;
  min-width: 0;
  margin-left: var(--dsb);
  padding-top: var(--nav);
}

body.admin-shell .db-top {
  min-width: 0;
  gap: 12px;
}

body.admin-shell .db-page-context {
  min-width: 150px;
  max-width: 260px;
  flex-direction: column;
  line-height: 1.1;
}

body.admin-shell .db-page-context strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--tx);
}

body.admin-shell .db-page-eyebrow {
  color: var(--tx3);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.admin-shell .db-top-search {
  flex: 1 1 280px;
  min-width: 180px;
  max-width: 460px;
}

body.admin-shell .db-user-pill {
  min-height: 40px;
  background: rgba(148, 163, 184, 0.06);
}

body.admin-shell .db-dropdown,
body.admin-shell .dropdown-menu {
  max-width: min(92vw, 360px);
}

body.admin-shell .db-content {
  max-width: none;
  min-width: 0;
  padding: clamp(20px, 2vw, 30px);
}

body.admin-shell .db-content .db-section.active {
  max-width: 1560px;
  overflow: visible;
}

body.admin-shell .db-content .db-section.active > .mb-4:first-child,
body.admin-shell .db-content .db-section.active > form > .mb-4:first-child {
  flex-wrap: wrap;
}

body.admin-shell .db-content .db-section.active > .mb-4:first-child > .d-flex,
body.admin-shell .db-content .db-section.active > form > .mb-4:first-child > .d-flex {
  flex-wrap: wrap;
  justify-content: flex-end;
}

body.admin-shell .premium-card,
body.admin-shell .premium-panel,
body.admin-shell .setup-panel,
body.admin-shell .panel,
body.admin-shell .db-stat-card,
body.admin-shell .ll-stat-card,
body.admin-shell .module-card,
body.admin-shell .print-card,
body.admin-shell .card {
  border-radius: 8px !important;
}

body.admin-shell .premium-card,
body.admin-shell .premium-panel,
body.admin-shell .setup-panel,
body.admin-shell .panel {
  min-width: 0;
}

body.admin-shell .row {
  min-width: 0;
}

body.admin-shell .row > * {
  min-width: 0;
}

body.admin-shell .table-responsive {
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.16);
}

.lm body.admin-shell .table-responsive,
.lm body.admin-shell .db-content .table-responsive {
  background: rgba(248, 250, 252, 0.82);
}

body.admin-shell .db-content table {
  min-width: max-content;
}

body.admin-shell .db-content table th,
body.admin-shell .db-content table td {
  white-space: nowrap;
}

body.admin-shell .db-content table td {
  max-width: 340px;
}

body.admin-shell .db-content table td,
body.admin-shell .db-content .text-break,
body.admin-shell .db-content .small,
body.admin-shell .db-content p {
  overflow-wrap: anywhere;
}

body.admin-shell .db-content table td[data-label="Question"],
body.admin-shell .db-content table td[data-label="Description"],
body.admin-shell .db-content table td[data-label="Message"],
body.admin-shell .db-content table td[data-label="Details"] {
  white-space: normal;
  min-width: 260px;
}

body.admin-shell .db-content .btn,
body.admin-shell .db-content .bgrd,
body.admin-shell .db-content .boc,
body.admin-shell .db-top .boc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1.15;
}

body.admin-shell .db-content .btn-sm {
  min-height: 34px;
  padding-inline: 10px;
}

body.admin-shell .db-content .btn-group,
body.admin-shell .db-content .action-buttons,
body.admin-shell .db-content td .d-flex {
  flex-wrap: wrap;
}

body.admin-shell .modal-content {
  background: var(--sf) !important;
  color: var(--tx);
  border-radius: 8px !important;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

body.admin-shell .modal-dialog {
  max-width: min(var(--bs-modal-width, 720px), calc(100vw - 32px));
}

body.admin-shell .modal-body {
  max-height: min(72vh, 760px);
  overflow-y: auto;
}

body.admin-shell .modal-header,
body.admin-shell .modal-footer {
  gap: 10px;
}

body.admin-shell .form-control,
body.admin-shell .form-select,
body.admin-shell textarea,
body.admin-shell .oinp {
  width: 100%;
}

body.admin-shell textarea.form-control,
body.admin-shell textarea.oinp {
  min-height: 112px;
}

:where(body.admin-shell, body.admin-mobile-shell) #dashboard .db-content :where(.alert) {
  --crud-alert-accent: #3b82f6;
  --crud-alert-text: #bfdbfe;
  --crud-alert-bg: rgba(59, 130, 246, 0.12);
  --crud-alert-border: rgba(96, 165, 250, 0.3);
  position: relative;
  width: 100%;
  min-width: 0;
  margin: 0 !important;
  padding: 14px 48px 14px 52px !important;
  border: 1px solid var(--crud-alert-border) !important;
  border-radius: 8px !important;
  background: var(--crud-alert-bg) !important;
  color: var(--crud-alert-text) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.45;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: normal;
}

:where(body.admin-shell, body.admin-mobile-shell) #dashboard .db-content :where(.alert)::before {
  content: "\f05a";
  position: absolute;
  top: 13px;
  left: 14px;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: color-mix(in srgb, var(--crud-alert-accent) 18%, transparent);
  color: var(--crud-alert-accent);
  font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free", "FontAwesome", sans-serif;
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1;
}

:where(body.admin-shell, body.admin-mobile-shell) #dashboard .db-content :where(.alert)::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--crud-alert-accent);
}

:where(body.admin-shell, body.admin-mobile-shell) #dashboard .db-content :where(.alert-success) {
  --crud-alert-accent: #22c55e;
  --crud-alert-text: #bbf7d0;
  --crud-alert-bg: rgba(34, 197, 94, 0.12);
  --crud-alert-border: rgba(74, 222, 128, 0.32);
}

:where(body.admin-shell, body.admin-mobile-shell) #dashboard .db-content :where(.alert-success)::before {
  content: "\f00c";
}

:where(body.admin-shell, body.admin-mobile-shell) #dashboard .db-content :where(.alert-danger) {
  --crud-alert-accent: #ef4444;
  --crud-alert-text: #fecaca;
  --crud-alert-bg: rgba(239, 68, 68, 0.12);
  --crud-alert-border: rgba(248, 113, 113, 0.34);
}

:where(body.admin-shell, body.admin-mobile-shell) #dashboard .db-content :where(.alert-danger)::before {
  content: "\f071";
}

:where(body.admin-shell, body.admin-mobile-shell) #dashboard .db-content :where(.alert-warning) {
  --crud-alert-accent: #f59e0b;
  --crud-alert-text: #fde68a;
  --crud-alert-bg: rgba(245, 158, 11, 0.12);
  --crud-alert-border: rgba(251, 191, 36, 0.34);
}

:where(body.admin-shell, body.admin-mobile-shell) #dashboard .db-content :where(.alert-warning)::before {
  content: "\f071";
}

:where(body.admin-shell, body.admin-mobile-shell) #dashboard .db-content :where(.alert-info) {
  --crud-alert-accent: #3b82f6;
  --crud-alert-text: #bfdbfe;
  --crud-alert-bg: rgba(59, 130, 246, 0.12);
  --crud-alert-border: rgba(96, 165, 250, 0.3);
}

:where(body.admin-shell, body.admin-mobile-shell) #dashboard .db-content :where(.alert) > i:first-child {
  display: none !important;
}

:where(body.admin-shell, body.admin-mobile-shell) #dashboard .db-content :where(.alert) :where(strong, .fw-bold, h6, p, li, span) {
  color: inherit !important;
}

:where(body.admin-shell, body.admin-mobile-shell) #dashboard .db-content :where(.alert) :where(ul, ol) {
  margin: 4px 0 0 !important;
  padding-left: 1.1rem !important;
}

:where(body.admin-shell, body.admin-mobile-shell) #dashboard .db-content :where(.alert) :where(li + li) {
  margin-top: 3px;
}

:where(body.admin-shell, body.admin-mobile-shell) #dashboard .db-content :where(.alert) .btn-close {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  padding: 0 !important;
  border-radius: 8px;
  background-color: color-mix(in srgb, var(--crud-alert-accent) 16%, transparent);
  background-position: center;
  background-size: 11px;
  opacity: 0.78;
  filter: invert(1) grayscale(100%) brightness(220%) !important;
  transform: translateY(-50%);
}

:where(body.admin-shell, body.admin-mobile-shell) #dashboard .db-content :where(.alert) .btn-close:hover,
:where(body.admin-shell, body.admin-mobile-shell) #dashboard .db-content :where(.alert) .btn-close:focus {
  opacity: 1;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--crud-alert-accent) 22%, transparent);
}

.lm :where(body.admin-shell, body.admin-mobile-shell) #dashboard .db-content :where(.alert) {
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.lm :where(body.admin-shell, body.admin-mobile-shell) #dashboard .db-content :where(.alert-success) {
  --crud-alert-text: #166534;
  --crud-alert-bg: #ecfdf5;
  --crud-alert-border: #bbf7d0;
}

.lm :where(body.admin-shell, body.admin-mobile-shell) #dashboard .db-content :where(.alert-danger) {
  --crud-alert-text: #991b1b;
  --crud-alert-bg: #fef2f2;
  --crud-alert-border: #fecaca;
}

.lm :where(body.admin-shell, body.admin-mobile-shell) #dashboard .db-content :where(.alert-warning) {
  --crud-alert-text: #92400e;
  --crud-alert-bg: #fffbeb;
  --crud-alert-border: #fde68a;
}

.lm :where(body.admin-shell, body.admin-mobile-shell) #dashboard .db-content :where(.alert-info) {
  --crud-alert-text: #1d4ed8;
  --crud-alert-bg: #eff6ff;
  --crud-alert-border: #bfdbfe;
}

.lm :where(body.admin-shell, body.admin-mobile-shell) #dashboard .db-content :where(.alert) .btn-close {
  filter: none !important;
}

@media (max-width: 575.98px) {
  :where(body.admin-shell, body.admin-mobile-shell) #dashboard .db-content :where(.alert) {
    padding: 12px 44px 12px 48px !important;
    font-size: 0.8rem;
  }

  :where(body.admin-shell, body.admin-mobile-shell) #dashboard .db-content :where(.alert)::before {
    top: 11px;
    left: 12px;
    width: 24px;
    height: 24px;
  }
}

@media (min-width: 1200px) {
  body.admin-shell {
    --dsb: 260px;
  }

  body.admin-shell .db-content {
    padding-inline: clamp(26px, 2.4vw, 42px);
  }
}

@media (max-width: 1199.98px) and (min-width: 992px) {
  body.admin-shell {
    --dsb: 228px;
  }

  body.admin-shell .db-top-search {
    max-width: 340px;
  }

  body.admin-shell .db-user-pill {
    padding-inline: 8px;
  }
}

@media (min-width: 992px) {
  body.admin-shell .db-sidebar-toggle {
    width: 40px;
    height: 40px;
    padding: 0;
    flex: 0 0 40px;
  }

  body.admin-shell.collapsed-sidebar {
    --dsb: 76px;
  }

  body.admin-shell.collapsed-sidebar .db-top,
  body.admin-shell.collapsed-sidebar .db-main {
    transition: left 0.25s ease, margin-left 0.25s ease;
  }
}

@media (max-width: 991.98px) {
  body.admin-shell #dashboard {
    display: block;
  }

  body.admin-shell .db-main {
    margin-left: 0;
  }

  body.admin-shell .db-top {
    left: 0;
  }
}

/* Training workspace card normalization.
   Covers module, game, rehearsal, progress, report, feedback, and review pages
   that still contain page-local or inline card styles. */
#dashboard .db-content .mod-hero,
#dashboard .db-content .chapter-card,
#dashboard .db-content .resource-item,
#dashboard .db-content .ll-header,
#dashboard .db-content .ll-category-list,
#dashboard .db-content .ll-module-card,
#dashboard .db-content .level-card,
#dashboard .db-content .stat-box,
#dashboard .db-content #ai-insights,
#dashboard .db-content #learning-progress > div,
#dashboard .db-content #voice-progress > div,
#dashboard .db-content #activity-calendar > .col-12 > div,
#dashboard .db-content #goals-milestones > div,
#dashboard .db-content #achievements-badges > div,
#dashboard .db-content .db-section.active .row > [class*="col-"] > div[style*="border-radius:18px"],
#dashboard .db-content .db-section.active .row > [class*="col-"] > div[style*="border-radius: 18px"],
#dashboard .db-content .db-section.active .row > [class*="col-"] > div[style*="border-radius:24px"],
#dashboard .db-content .db-section.active .row > [class*="col-"] > div[style*="border-radius: 24px"] {
  border-radius: var(--sr-card-radius) !important;
  box-shadow: 0 14px 36px rgba(2, 6, 23, 0.16) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

#dashboard .db-content .mod-hero,
#dashboard .db-content .chapter-card,
#dashboard .db-content .ll-header,
#dashboard .db-content .ll-category-list,
#dashboard .db-content .ll-module-card,
#dashboard .db-content .level-card,
#dashboard .db-content #ai-insights,
#dashboard .db-content #learning-progress > div,
#dashboard .db-content #voice-progress > div,
#dashboard .db-content #activity-calendar > .col-12 > div,
#dashboard .db-content #goals-milestones > div,
#dashboard .db-content #achievements-badges > div,
#dashboard .db-content .db-section.active .row > [class*="col-"] > div[style*="padding:24px"],
#dashboard .db-content .db-section.active .row > [class*="col-"] > div[style*="padding: 24px"],
#dashboard .db-content .db-section.active .row > [class*="col-"] > div[style*="padding:32px"],
#dashboard .db-content .db-section.active .row > [class*="col-"] > div[style*="padding: 32px"] {
  padding: 20px !important;
}

#dashboard .db-content .module-card:hover,
#dashboard .db-content .chapter-card:hover,
#dashboard .db-content .resource-item:hover,
#dashboard .db-content .ll-stat-card:hover,
#dashboard .db-content .ll-module-card:hover,
#dashboard .db-content .level-card:hover,
#dashboard .db-content .premium-panel:hover,
#dashboard .db-content .premium-card:hover,
#dashboard .db-content .print-card:hover {
  transform: translateY(-1px) !important;
}

#dashboard .db-content .module-card,
#dashboard .db-content .ll-module-card,
#dashboard .db-content .level-card,
#dashboard .db-content .chapter-card,
#dashboard .db-content .print-card,
#dashboard .db-content .premium-card,
#dashboard .db-content .premium-panel {
  margin-bottom: var(--sr-page-gap);
}

#dashboard .db-content .row > [class*="col-"] > :last-child,
#dashboard .db-content .module-card:last-child,
#dashboard .db-content .ll-module-card:last-child,
#dashboard .db-content .level-card:last-child,
#dashboard .db-content .chapter-card:last-child,
#dashboard .db-content .print-card:last-child,
#dashboard .db-content .premium-card:last-child,
#dashboard .db-content .premium-panel:last-child {
  margin-bottom: 0;
}

#dashboard .db-content .level-path-container,
#dashboard .db-content #modules-list {
  max-width: 100%;
  overflow-x: hidden;
}

#dashboard .db-content .mod-hero,
#dashboard .db-content .ll-header,
#dashboard .db-content #ai-insights {
  margin-bottom: var(--sr-page-gap) !important;
}

#dashboard .db-content #dashboard-stats,
#dashboard .db-content #progress-stats {
  --bs-gutter-x: var(--sr-page-gap);
  --bs-gutter-y: var(--sr-page-gap);
}

@media (max-width: 1199px) {
  #dashboard .db-content .chat-container {
    height: calc(100vh - 132px) !important;
  }
}

@media (max-width: 991px) {
  #dashboard .db-content .db-section.active > .mb-4:first-child,
  #dashboard .db-content #portfolioReport > .mb-4:first-child {
    align-items: stretch !important;
  }

  #dashboard .db-content .db-section.active > .mb-4:first-child > .d-flex,
  #dashboard .db-content .db-section.active > .mb-4:first-child > div:last-child,
  #dashboard .db-content #portfolioReport > .mb-4:first-child > .d-flex {
    justify-content: flex-start !important;
    width: 100%;
  }

  #dashboard .db-content #panel-summary {
    position: static;
    top: auto;
  }
}

@media (max-width: 767px) {
  #dashboard .db-content {
    --sr-page-gap: 16px;
  }

  #dashboard .db-content .db-section.active {
    max-width: 100%;
    overflow-x: hidden;
  }

  #dashboard .db-content .db-section.active > .mb-4:first-child,
  #dashboard .db-content .db-section.active > form > .mb-4:first-child,
  #dashboard .db-content #portfolioReport > .mb-4:first-child {
    flex-direction: column !important;
    gap: 12px !important;
    margin-bottom: 16px !important;
    padding-bottom: 14px;
  }

  #dashboard .db-content .text-gradient-primary,
  #dashboard .db-content h4.text-gradient-primary,
  #dashboard .db-content h3.text-gradient-primary,
  #dashboard .db-content h6.text-gradient-primary {
    font-size: 1.18rem !important;
    line-height: 1.28 !important;
  }

  #dashboard .db-content .premium-panel,
  #dashboard .db-content .premium-card,
  #dashboard .db-content .setup-panel,
  #dashboard .db-content .module-card,
  #dashboard .db-content .ll-stat-card,
  #dashboard .db-content .print-card,
  #dashboard .db-content .perk-card,
  #dashboard .db-content .stat-card,
  #dashboard .db-content .panel {
    padding: 16px !important;
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.14) !important;
  }

  #dashboard .db-content .premium-panel:hover,
  #dashboard .db-content .premium-card:hover,
  #dashboard .db-content .setup-panel:hover,
  #dashboard .db-content .module-card:hover,
  #dashboard .db-content .ll-stat-card:hover,
  #dashboard .db-content .print-card:hover,
  #dashboard .db-content .perk-card:hover,
  #dashboard .db-content .stat-card:hover,
  #dashboard .db-content .panel:hover {
    transform: none !important;
  }

  #dashboard .db-content #feedback-filters,
  #dashboard .db-content .db-section.active > .mb-4:first-child > .d-flex,
  #dashboard .db-content #portfolioReport .btn-no-print .d-flex {
    width: 100%;
    gap: 8px !important;
  }

  #dashboard .db-content #feedback-filters .form-select,
  #dashboard .db-content #feedback-filters .input-group,
  #dashboard .db-content #history-table .input-group,
  #dashboard .db-content .db-top-search {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
  }

  #dashboard .db-content .db-section.active > .mb-4:first-child .btn,
  #dashboard .db-content #portfolioReport .btn-no-print .btn {
    flex: 1 1 auto;
  }

  #dashboard .db-content #nav-pills-container,
  #dashboard .db-content .nav.nav-pills {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
  }

  #dashboard .db-content #nav-pills-container::-webkit-scrollbar,
  #dashboard .db-content .nav.nav-pills::-webkit-scrollbar {
    display: none;
  }

  #dashboard .db-content .ll-nav-pill,
  #dashboard .db-content .nav-pills .nav-link {
    white-space: nowrap;
    flex: 0 0 auto;
    padding: 9px 12px !important;
    font-size: 0.86rem !important;
  }

  #dashboard .db-content .cbx-grid,
  #dashboard .db-content .persona-grid {
    grid-template-columns: 1fr !important;
  }

  #dashboard .db-content .custom-radio,
  #dashboard .db-content .custom-cbx {
    min-height: 54px;
  }

  #dashboard .db-content .drop-zone {
    padding: 28px 14px !important;
  }

  #dashboard .db-content table,
  #dashboard .db-content .custom-table {
    min-width: 640px;
  }

  #dashboard .db-content .mod-hero,
  #dashboard .db-content .chapter-card,
  #dashboard .db-content .ll-header,
  #dashboard .db-content .ll-category-list,
  #dashboard .db-content .ll-module-card,
  #dashboard .db-content .level-card,
  #dashboard .db-content #ai-insights,
  #dashboard .db-content #learning-progress > div,
  #dashboard .db-content #voice-progress > div,
  #dashboard .db-content #activity-calendar > .col-12 > div,
  #dashboard .db-content #goals-milestones > div,
  #dashboard .db-content #achievements-badges > div,
  #dashboard .db-content .db-section.active .row > [class*="col-"] > div[style*="padding:24px"],
  #dashboard .db-content .db-section.active .row > [class*="col-"] > div[style*="padding: 24px"],
  #dashboard .db-content .db-section.active .row > [class*="col-"] > div[style*="padding:32px"],
  #dashboard .db-content .db-section.active .row > [class*="col-"] > div[style*="padding: 32px"] {
    padding: 14px !important;
  }

  #dashboard .db-content .mod-hero-bg {
    display: none;
  }

  #dashboard .db-content .level-card {
    margin-left: 12px !important;
  }

  #dashboard .db-content .level-node {
    margin-bottom: var(--sr-page-gap) !important;
  }

  #dashboard .db-content .table-responsive {
    margin-inline: 0;
    padding-bottom: 4px;
  }

  #dashboard .db-content .leaderboard-row td,
  #dashboard .db-content .custom-table td,
  #dashboard .db-content table td {
    white-space: nowrap;
  }

  #dashboard .db-content .notification-row {
    align-items: flex-start !important;
    padding: 14px !important;
  }

  #dashboard .db-content .notification-row h6 {
    font-size: 0.94rem;
    line-height: 1.35;
  }

  #dashboard .db-content .notification-row p {
    font-size: 0.84rem !important;
    line-height: 1.45;
  }

  #dashboard .db-content .stat-box .stat-val,
  #dashboard .db-content .ll-stat-val {
    font-size: 1.15rem !important;
  }

  #dashboard .db-content .chat-container {
    height: calc(100dvh - var(--mob-top-h, 56px) - var(--mob-nav-h, 64px) - 48px) !important;
    min-height: 430px !important;
    flex-direction: column !important;
  }

  #dashboard .db-content .chat-sidebar {
    display: none !important;
  }

  #dashboard .db-content .chat-messages {
    padding: 14px !important;
    gap: 12px !important;
  }

  #dashboard .db-content .chat-input-area {
    padding: 12px !important;
  }

  #dashboard .db-content .chat-bubble {
    max-width: calc(100% - 48px) !important;
    padding: 12px 14px !important;
    font-size: 0.88rem !important;
  }

  #dashboard .db-content #portfolioReport .d-flex.align-items-center.mb-4.gap-3 {
    align-items: flex-start !important;
  }

  #dashboard .db-content #portfolioReport .row > [class*="border-end"] {
    border-right: 0 !important;
    border-bottom: 1px solid rgba(59, 130, 246, 0.18);
    padding-bottom: 16px;
  }

  #dashboard .db-content .row.g-4 {
    --bs-gutter-x: var(--sr-page-gap);
    --bs-gutter-y: var(--sr-page-gap);
  }
}

@media (max-width: 575px) {
  #dashboard .db-content .db-section.active > .mb-4:first-child .btn,
  #dashboard .db-content #portfolioReport .btn-no-print .btn,
  #dashboard .db-content #feedback-filters .btn {
    width: 100%;
    justify-content: center;
  }

  #dashboard .db-content .d-flex.justify-content-center.gap-3 {
    flex-wrap: wrap;
  }

  #dashboard .db-content .d-flex.justify-content-center.gap-3 > .btn {
    flex: 1 1 calc(50% - 8px);
    min-width: 128px;
  }

  #dashboard .db-content .module-card > div:first-child {
    min-height: 104px;
  }

  #dashboard .db-content .ll-stat-card,
  #dashboard .db-content .stat-card.premium-panel {
    min-height: 118px;
  }

  #dashboard .db-content #progress-stats .premium-panel,
  #dashboard .db-content #dashboard-stats .ll-stat-card,
  #dashboard .db-content .stat-card.premium-panel {
    min-height: 106px !important;
    padding: 12px !important;
  }

  #dashboard .db-content #progress-stats > .col-md-3.col-sm-6,
  #dashboard .db-content #dashboard-stats > .col-12.col-sm-6 {
    width: 50% !important;
    flex: 0 0 auto !important;
  }

  #dashboard .db-content .chat-bubble {
    max-width: 100% !important;
  }
}

@media (max-width: 420px) {
  #dashboard .db-content .db-section.active > .mb-4:first-child .btn,
  #dashboard .db-content #portfolioReport .btn-no-print .btn {
    flex-basis: 100%;
  }

  #dashboard .db-content table,
  #dashboard .db-content .custom-table {
    min-width: 600px;
  }

  #dashboard .db-content .premium-panel,
  #dashboard .db-content .premium-card,
  #dashboard .db-content .setup-panel,
  #dashboard .db-content .module-card,
  #dashboard .db-content .ll-stat-card,
  #dashboard .db-content .print-card,
  #dashboard .db-content .perk-card,
  #dashboard .db-content .stat-card,
  #dashboard .db-content .panel {
    padding: 14px !important;
  }

  #dashboard .db-content #progress-stats .premium-panel,
  #dashboard .db-content #dashboard-stats .ll-stat-card,
  #dashboard .db-content .stat-card.premium-panel {
    padding: 10px !important;
    min-height: 100px !important;
  }
}

/* Desktop app shell polish: sidebar + topbar */
#dashboard {
  --nav: 72px;
  --dsb: 264px;
  --shell-border: rgba(148, 163, 184, 0.16);
  --shell-border-strong: rgba(96, 165, 250, 0.3);
  --shell-hover: rgba(96, 165, 250, 0.08);
  --shell-active: rgba(59, 130, 246, 0.14);
}

.lm #dashboard {
  --shell-border: rgba(15, 23, 42, 0.1);
  --shell-border-strong: rgba(59, 130, 246, 0.26);
  --shell-hover: rgba(59, 130, 246, 0.07);
  --shell-active: rgba(59, 130, 246, 0.12);
}

#dashboard .db-sidebar {
  width: var(--dsb);
  background:
    linear-gradient(180deg, rgba(59, 130, 246, 0.085), transparent 220px),
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 45%),
    var(--bg2);
  border-right: 1px solid var(--shell-border);
  box-shadow: 18px 0 44px rgba(2, 6, 23, 0.18);
}

.lm #dashboard .db-sidebar {
  background:
    linear-gradient(180deg, rgba(59, 130, 246, 0.065), transparent 230px),
    #ffffff;
  box-shadow: 18px 0 40px rgba(15, 23, 42, 0.065);
}

#dashboard .db-logo {
  min-height: var(--nav);
  padding: 18px 18px;
  border-bottom: 1px solid var(--shell-border);
  gap: 12px;
  font-size: 1.03rem;
  font-weight: 800;
}

#dashboard .db-logo .logo-i {
  width: 38px;
  height: 38px;
  border-radius: 16%;
  background: #ffffff;
  border: 2px solid #ffffff;
  box-shadow: none;
  filter: drop-shadow(0 8px 16px rgba(37, 99, 235, 0.18));
}

#dashboard .db-logo span {
  letter-spacing: 0 !important;
}

#dashboard .db-nav {
  padding: 18px 12px 28px;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.35) transparent;
}

#dashboard .db-nav::-webkit-scrollbar {
  width: 6px;
}

#dashboard .db-nav::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.32);
  border-radius: 999px;
}

#dashboard .db-nav-section {
  padding: 0 12px;
  margin: 18px 0 8px;
  color: var(--tx3);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0 !important;
  text-transform: uppercase;
}

#dashboard .db-nav-section:first-child {
  margin-top: 2px;
}

#dashboard .db-nl {
  min-height: 44px;
  margin-bottom: 5px;
  padding: 10px 12px;
  gap: 11px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--tx2);
  font-size: 0.88rem;
  font-weight: 650;
  letter-spacing: 0 !important;
}

#dashboard .db-nl i {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--db-nav-icon, #60a5fa);
  background: var(--db-nav-icon-bg, rgba(96, 165, 250, 0.09));
  font-size: 0.86rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

#dashboard .db-sidebar .db-nav-blue {
  --db-nav-icon: #93c5fd;
  --db-nav-icon-bg: rgba(59, 130, 246, 0.14);
}

#dashboard .db-sidebar .db-nav-purple {
  --db-nav-icon: #c4b5fd;
  --db-nav-icon-bg: rgba(139, 92, 246, 0.14);
}

#dashboard .db-sidebar .db-nav-cyan {
  --db-nav-icon: #67e8f9;
  --db-nav-icon-bg: rgba(6, 182, 212, 0.13);
}

#dashboard .db-sidebar .db-nav-indigo {
  --db-nav-icon: #a5b4fc;
  --db-nav-icon-bg: rgba(99, 102, 241, 0.14);
}

#dashboard .db-sidebar .db-nav-emerald {
  --db-nav-icon: #6ee7b7;
  --db-nav-icon-bg: rgba(16, 185, 129, 0.13);
}

#dashboard .db-sidebar .db-nav-rose {
  --db-nav-icon: #fda4af;
  --db-nav-icon-bg: rgba(244, 63, 94, 0.13);
}

#dashboard .db-sidebar .db-nav-amber {
  --db-nav-icon: #fcd34d;
  --db-nav-icon-bg: rgba(245, 158, 11, 0.13);
}

#dashboard .db-sidebar .db-nav-danger {
  --db-nav-icon: #f87171;
  --db-nav-icon-bg: rgba(248, 113, 113, 0.13);
}

#dashboard .db-nl:hover {
  background: var(--shell-hover);
  border-color: var(--shell-border);
  color: var(--tx);
}

#dashboard .db-nl.active {
  background: var(--shell-active);
  border-color: var(--shell-border-strong);
  color: #60a5fa;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

#dashboard .db-nl.active i {
  background: var(--db-nav-icon-bg, rgba(96, 165, 250, 0.18));
  color: var(--db-nav-icon, #60a5fa);
}

#dashboard .db-nl.active::before {
  left: -1px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  background: linear-gradient(180deg, #60a5fa, #22c55e);
  border-radius: 999px;
}

#dashboard .db-bottom {
  padding: 14px 12px 16px;
  border-top: 1px solid var(--shell-border);
  background: rgba(255, 255, 255, 0.018);
}

.lm #dashboard .db-bottom {
  background: rgba(15, 23, 42, 0.018);
}

#dashboard .db-top {
  height: var(--nav);
  left: var(--dsb);
  padding: 0 28px;
  gap: 14px;
  background: rgba(8, 10, 18, 0.78);
  border-bottom: 1px solid var(--shell-border);
  box-shadow: 0 12px 34px rgba(2, 6, 23, 0.14);
}

.lm #dashboard .db-top {
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.065);
}

#dashboard .db-top::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.34), transparent);
  pointer-events: none;
}

#dashboard .db-top > .boc,
#dashboard .db-top-actions > .boc,
#dashboard #notifWrap > .boc {
  width: 42px !important;
  height: 42px !important;
  padding: 0 !important;
  border-radius: 12px !important;
  border-color: var(--shell-border);
  background: rgba(255, 255, 255, 0.035);
  color: var(--tx2);
}

.lm #dashboard .db-top > .boc,
.lm #dashboard .db-top-actions > .boc,
.lm #dashboard #notifWrap > .boc {
  background: rgba(15, 23, 42, 0.025);
}

#dashboard .db-top > .boc:hover,
#dashboard .db-top-actions > .boc:hover,
#dashboard #notifWrap > .boc:hover {
  border-color: var(--shell-border-strong);
  background: var(--shell-hover);
  color: #60a5fa;
}

#dashboard .db-top-search {
  width: min(420px, 38vw);
  max-width: 420px;
}

#dashboard .db-top-search input {
  min-height: 44px;
  padding: 10px 16px 10px 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--shell-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.lm #dashboard .db-top-search input {
  background: rgba(15, 23, 42, 0.025);
}

#dashboard .db-top-search input:focus {
  border-color: rgba(96, 165, 250, 0.58);
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.13);
}

#dashboard .db-top-search i {
  left: 15px;
  color: #60a5fa;
}

#dashboard .db-top .ms-auto {
  gap: 10px !important;
}

#dashboard .db-user-pill {
  min-height: 46px;
  padding: 6px 10px 6px 7px;
  border-radius: 14px;
  border-color: var(--shell-border);
  background: rgba(255, 255, 255, 0.035);
}

.lm #dashboard .db-user-pill {
  background: rgba(15, 23, 42, 0.025);
}

#dashboard .db-user-pill:hover {
  border-color: var(--shell-border-strong);
  background: var(--shell-hover);
}

#dashboard .db-avatar {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.18);
}

#dashboard #notifBadge {
  top: 7px !important;
  right: 7px !important;
  border-color: var(--bg2) !important;
}

#dashboard .db-dropdown {
  border-radius: 14px;
  border-color: var(--shell-border);
  background: rgba(13, 13, 26, 0.98);
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.38);
}

.lm #dashboard .db-dropdown {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.14);
}

#dashboard .profile-menu-item {
  min-height: 40px;
  border-radius: 10px;
}

#dashboard .profile-menu-item:hover {
  background: var(--shell-hover);
  color: var(--tx);
}

@media (min-width: 992px) {
  body.collapsed-sidebar #dashboard .db-sidebar {
    width: 84px;
    overflow-x: hidden;
  }

  body.collapsed-sidebar #dashboard .db-main {
    margin-left: 84px;
  }

  body.collapsed-sidebar #dashboard .db-top {
    left: 84px;
  }

  body.collapsed-sidebar #dashboard .db-logo {
    padding-left: 0;
    padding-right: 0;
    justify-content: center !important;
  }

  body.collapsed-sidebar #dashboard .db-logo span,
  body.collapsed-sidebar #dashboard .db-nav-section,
  body.collapsed-sidebar #dashboard .db-bottom .db-nl span {
    display: none !important;
  }

  body.collapsed-sidebar #dashboard .db-nav {
    padding: 16px 10px 24px;
    overflow-x: hidden;
  }

  body.collapsed-sidebar #dashboard .db-nl {
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    min-height: 44px;
    justify-content: center !important;
    gap: 0 !important;
    padding: 8px !important;
    margin: 0 auto 8px;
    overflow: hidden;
    white-space: nowrap;
    font-size: 0 !important;
    color: transparent !important;
    text-indent: 0;
  }

  body.collapsed-sidebar #dashboard .db-nl i {
    width: 28px;
    height: 28px;
    min-width: 28px;
    margin: 0 !important;
    font-size: 0.95rem !important;
    color: var(--db-nav-icon, #60a5fa) !important;
    text-indent: 0;
  }

  body.collapsed-sidebar #dashboard .db-nl.active::before {
    left: 3px;
    top: 12px;
    bottom: 12px;
  }

  body.collapsed-sidebar #dashboard .db-bottom {
    padding: 12px 10px 16px;
  }
}

@media (max-width: 991px) {
  #dashboard .db-sidebar {
    width: min(300px, calc(100vw - 32px));
    box-shadow: 22px 0 70px rgba(2, 6, 23, 0.42);
  }

  #dashboard .db-top {
    left: 0;
    padding: 0 16px;
  }
}

@media (max-width: 767px) {
  #dashboard .db-top {
    height: 64px;
  }

  #dashboard .db-top-search {
    display: none;
  }

  #dashboard .db-user-pill {
    padding: 5px;
  }
}

/* Mobile hardening pass
   Keeps all app/admin pages inside the viewport while preserving card-table pages. */
#dashboard,
#dashboard .db-main,
#dashboard .db-content,
#mob-content,
#mob-content .db-content {
  max-width: 100%;
  min-width: 0;
}

#mob-content {
  width: 100% !important;
}

#dashboard .db-content .row,
#dashboard .db-content .d-flex,
#dashboard .db-content [class*="col-"] {
  min-width: 0;
}

#dashboard .db-content img,
#dashboard .db-content video,
#dashboard .db-content canvas,
#dashboard .db-content iframe,
#dashboard .db-content svg {
  max-width: 100%;
}

#dashboard .db-content canvas {
  height: auto;
}

.offcanvas {
  max-width: 100vw;
}

.dropdown-menu,
.db-dropdown {
  max-width: calc(100vw - 24px);
}

@media (max-width: 767px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
  }

  #dashboard .db-content,
  #mob-content,
  #mob-content .db-content {
    overflow-x: hidden;
    overflow-x: clip;
  }

  #dashboard .db-content :where(h1, h2, h3, h4, h5, h6, p, li, a, span, small, strong, label, td, th, button, .badge) {
    overflow-wrap: anywhere;
  }

  #dashboard .db-content :where(.btn, .bgrd, .boc, .badge, .dropdown-item) {
    white-space: normal;
  }

  #dashboard .db-content :where(.btn, .bgrd, .boc) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    max-width: 100%;
  }

  #dashboard .db-content :where(.btn, .bgrd, .boc) i {
    flex: 0 0 auto;
  }

  #dashboard .db-content :where(.form-control, .form-select, .oinp, textarea, .input-group, .db-top-search) {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  #dashboard .db-content :where(.input-group[style*="width"], .db-filter-input[style*="width"]) {
    width: 100% !important;
  }

  #dashboard .db-content .d-flex.justify-content-between.align-items-center,
  #dashboard .db-content .d-flex.justify-content-between.align-items-start,
  #dashboard .db-content .d-flex.justify-content-between.align-items-md-center,
  #dashboard .db-content .d-flex.flex-column.flex-md-row {
    gap: 12px !important;
  }

  #dashboard .db-content .d-flex.justify-content-between.align-items-center:not(.stat-row):not(.star-item),
  #dashboard .db-content .d-flex.justify-content-between.align-items-start,
  #dashboard .db-content .d-flex.flex-column.flex-md-row {
    flex-wrap: wrap;
  }

  #dashboard .db-content .d-flex.gap-2,
  #dashboard .db-content .d-flex.gap-3 {
    min-width: 0;
  }

  #dashboard .db-content .table-responsive,
  #dashboard .db-content [style*="overflow-x:auto"],
  #dashboard .db-content [style*="overflow-x: auto"] {
    max-width: 100%;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  #dashboard .db-content :where(.modal-body, .tab-content, .accordion-body, .card-body, .premium-card, .premium-panel, .setup-panel, .panel, .print-card) {
    min-width: 0;
  }

  .modal {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .modal-dialog {
    width: calc(100% - 16px);
    max-width: none;
    margin: 8px auto;
  }

  .modal-dialog-scrollable .modal-content {
    max-height: calc(100dvh - 16px);
  }

  .modal-body {
    overflow-x: hidden;
  }

  .modal-footer,
  .modal-header {
    gap: 8px;
  }

  .modal-footer {
    flex-wrap: wrap;
  }

  .modal-footer .btn {
    flex: 1 1 auto;
  }

  .nav-tabs,
  .nav-pills,
  #nav-pills-container,
  .game-categories-scroll {
    max-width: 100%;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .nav-tabs::-webkit-scrollbar,
  .nav-pills::-webkit-scrollbar,
  #nav-pills-container::-webkit-scrollbar,
  .game-categories-scroll::-webkit-scrollbar {
    display: none;
  }

  .nav-tabs .nav-link,
  .nav-pills .nav-link,
  #nav-pills-container > * {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  #dashboard .db-content :where(.chart-container, .chart-container-mobile) {
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  #dashboard .db-content :where(.chart-container, .chart-container-mobile) canvas {
    width: 100% !important;
  }

  #dashboard .db-content .pagination {
    flex-wrap: wrap;
    gap: 4px;
  }

  #dashboard .db-content .page-link {
    min-width: 36px;
    text-align: center;
  }
}

@media (max-width: 575px) {
  #dashboard .db-content .d-flex.justify-content-between.align-items-center.mb-4,
  #dashboard .db-content .d-flex.justify-content-between.align-items-start.mb-4,
  #dashboard .db-content .d-flex.flex-column.flex-md-row {
    align-items: stretch !important;
  }

  #dashboard .db-content .d-flex.justify-content-between.align-items-center.mb-4 > *,
  #dashboard .db-content .d-flex.justify-content-between.align-items-start.mb-4 > *,
  #dashboard .db-content .d-flex.flex-column.flex-md-row > * {
    max-width: 100%;
  }

  #dashboard .db-content .d-flex.justify-content-between.align-items-center.mb-4 > .d-flex,
  #dashboard .db-content .d-flex.justify-content-between.align-items-start.mb-4 > .d-flex {
    width: 100%;
  }

  #dashboard .db-content .d-flex.justify-content-between.align-items-center.mb-4 > .btn,
  #dashboard .db-content .d-flex.justify-content-between.align-items-start.mb-4 > .btn,
  #dashboard .db-content .d-flex.justify-content-between.align-items-center.mb-4 > a.btn,
  #dashboard .db-content .d-flex.justify-content-between.align-items-start.mb-4 > a.btn {
    width: 100%;
  }

  #dashboard .db-content .dropdown {
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  #dashboard .db-content :where(
    #mainUsersTable,
    #mainTable,
    #mainCategoriesTable,
    #modulesTable,
    #mainSessionsTable,
    #mainArchiveTable,
    #mainFeedbackTable,
    #mainProvidersTable,
    #moduleUsageTable,
    #mainAuditLogsTable,
    .game-table
  ) {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  #dashboard .db-content :where(
    #mainUsersTable,
    #mainTable,
    #mainCategoriesTable,
    #modulesTable,
    #mainSessionsTable,
    #mainArchiveTable,
    #mainFeedbackTable,
    #mainProvidersTable,
    #moduleUsageTable,
    #mainAuditLogsTable,
    .game-table
  ) tbody {
    display: block;
    width: 100%;
  }

  #dashboard .db-content :where(
    #mainUsersTable,
    #mainTable,
    #mainCategoriesTable,
    #modulesTable,
    #mainSessionsTable,
    #mainArchiveTable,
    #mainFeedbackTable,
    #mainProvidersTable,
    #moduleUsageTable,
    #mainAuditLogsTable,
    .game-table
  ) tbody tr {
    width: 100%;
    min-width: 0;
  }

  #dashboard .db-content :where(
    #mainUsersTable,
    #mainTable,
    #mainCategoriesTable,
    #modulesTable,
    #mainSessionsTable,
    #mainArchiveTable,
    #mainFeedbackTable,
    #mainProvidersTable,
    #moduleUsageTable,
    #mainAuditLogsTable,
    .game-table
  ) tbody td {
    min-width: 0;
    max-width: 100%;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  #dashboard .db-content :where(
    #mainUsersTable,
    #mainTable,
    #mainCategoriesTable,
    #modulesTable,
    #mainSessionsTable,
    #mainArchiveTable,
    #mainFeedbackTable,
    #mainProvidersTable,
    #moduleUsageTable,
    #mainAuditLogsTable,
    .game-table
  ) tbody td > * {
    min-width: 0;
    max-width: 100%;
  }

  #dashboard .db-content :where(
    #mainUsersTableWrapper,
    #mainTableWrapper,
    #mainCategoriesTableWrapper,
    #mainModulesTableWrapper,
    #mainSessionsTableWrapper,
    #mainArchiveTableWrapper,
    #mainFeedbackTableWrapper,
    #mainProvidersTableWrapper,
    #moduleUsageTableWrapper,
    #mainAuditLogsTableWrapper,
    .game-table-wrapper
  ) {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
  }
}

/* ======================== USER-SIDE PROFESSIONAL POLISH ======================== */
#dashboard {
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.13), transparent 32rem),
    radial-gradient(circle at bottom right, rgba(20, 184, 166, 0.08), transparent 30rem),
    var(--bg);
}

.lm #dashboard {
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.08), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(20, 184, 166, 0.06), transparent 30rem),
    var(--bg);
}

#dashboard .db-top,
#dashboard .db-sidebar,
#mob-header,
#mob-bottom-nav {
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.16);
}

.lm #dashboard .db-top,
.lm #dashboard .db-sidebar,
.lm #mob-header,
.lm #mob-bottom-nav {
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
}

#dashboard .db-content {
  width: 100%;
  max-width: 1540px;
  margin: 0 auto;
}

#dashboard .db-section.active {
  min-width: 0;
}

#dashboard .db-content :where(h1, h2, h3, h4, h5, h6) {
  color: var(--tx);
  letter-spacing: 0;
}

#dashboard .db-content :where(h1, h2) {
  font-weight: 750;
  line-height: 1.15;
}

#dashboard .db-content :where(p, li, small, .text-muted) {
  overflow-wrap: anywhere;
}

#dashboard .db-content :where(.premium-panel, .premium-card, .setup-panel, .panel, .db-stat-card, .stat-card, .sr-card, .sr-stat-card, .tracker-panel, .module-card, .perk-card, .level-card, .print-card, .card) {
  border-color: color-mix(in srgb, var(--bd) 82%, #60a5fa 18%);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.16), 0 1px 0 rgba(255, 255, 255, 0.035) inset;
}

.lm #dashboard .db-content :where(.premium-panel, .premium-card, .setup-panel, .panel, .db-stat-card, .stat-card, .sr-card, .sr-stat-card, .tracker-panel, .module-card, .perk-card, .level-card, .print-card, .card) {
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08), 0 1px 0 rgba(255, 255, 255, 0.72) inset;
}

#dashboard .db-content :where(.premium-panel, .premium-card, .setup-panel, .panel, .db-stat-card, .stat-card, .sr-card, .sr-stat-card, .tracker-panel, .module-card, .perk-card, .level-card, .print-card, .card):hover {
  border-color: rgba(96, 165, 250, 0.32);
}

#dashboard .db-content :where(.btn, .bgrd, .boc, button, a[role="button"]) {
  min-height: 40px;
}

#dashboard .db-content :where(.btn, .bgrd, .boc) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: normal;
}

#dashboard .db-content :where(input, select, textarea, .form-control, .form-select) {
  min-height: 42px;
  border-color: var(--bd2);
  color: var(--tx);
  background-color: var(--sf);
}

#dashboard .db-content :where(input, select, textarea, .form-control, .form-select):focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.14);
}

#dashboard .db-content :where(.table, .db-table, .custom-table) {
  margin-bottom: 0;
}

#dashboard .db-content :where(.table, .db-table, .custom-table) :where(th, td) {
  vertical-align: middle;
}

#dashboard .db-content :where(.badge, .tag, .pill, [class*="badge"], [class*="pill"]) {
  max-width: 100%;
  overflow-wrap: anywhere;
}

#dashboard .db-content img,
#dashboard .db-content video,
#dashboard .db-content canvas,
#dashboard .db-content svg {
  max-width: 100%;
}

#mob-content .ucp-mobile-launcher {
  bottom: calc(var(--mob-nav-h, 64px) + env(safe-area-inset-bottom, 0px) + 14px);
}

@media (min-width: 992px) {
  #dashboard .db-content {
    padding: 30px;
  }

  #dashboard .db-sidebar {
    background: var(--sidebar-bg);
  }

  #dashboard .db-nl {
    min-height: 42px;
  }
}

@media (max-width: 991.98px) {
  #dashboard .db-content {
    max-width: 100%;
  }

  #mob-content .db-content :where(.btn, .bgrd, .boc) {
    min-height: 42px;
  }

  #mob-content .db-content :where(.btn-group, .input-group) {
    width: 100%;
    min-width: 0;
  }

  #mob-content .db-content :where(.btn-group) > .btn {
    flex: 1 1 auto;
  }
}

@media (max-width: 575.98px) {
  #mob-content .db-content :where(h1) {
    font-size: clamp(1.45rem, 8vw, 1.95rem) !important;
  }

  #mob-content .db-content :where(h2) {
    font-size: clamp(1.25rem, 6.5vw, 1.65rem) !important;
  }

  #mob-content .db-content :where(h3, h4, .text-gradient-primary) {
    font-size: clamp(1.05rem, 5.2vw, 1.35rem) !important;
  }

  #mob-content .db-content :where(.btn, .bgrd, .boc, button[type="submit"], a.btn) {
    width: 100%;
  }

  #mob-content .db-content :where(.d-flex.gap-2, .d-flex.gap-3) {
    flex-wrap: wrap;
  }

  #mob-content .db-content :where(.table-responsive) {
    border: 1px solid var(--bd);
    border-radius: 14px;
  }

  #mob-content .db-content :where(.table, .db-table, .custom-table) {
    font-size: 0.8rem;
  }
}

/* ======================== NAVIGATION SHELL REFINEMENT ======================== */
#dashboard .db-sidebar {
  isolation: isolate;
  --sidebar-bg: linear-gradient(180deg, rgba(37, 99, 235, 0.13), transparent 240px), #0f172a;
  --sidebar-logo-bg: rgba(15, 23, 42, 0.88);
  --sidebar-bottom-bg: rgba(15, 23, 42, 0.88);
  --sidebar-link-color: #cbd5e1;
  --sidebar-link-hover: #f8fafc;
  --sidebar-link-hover-bg: rgba(96, 165, 250, 0.13);
  --sidebar-link-active: #bfdbfe;
  --sidebar-link-active-bg: rgba(37, 99, 235, 0.24);
  --sidebar-border: rgba(148, 163, 184, 0.22);
  background: var(--sidebar-bg);
}

.lm #dashboard .db-sidebar {
  --sidebar-bg: linear-gradient(180deg, rgba(37, 99, 235, 0.08), transparent 240px), #ffffff;
  --sidebar-logo-bg: rgba(248, 250, 252, 0.96);
  --sidebar-bottom-bg: rgba(248, 250, 252, 0.96);
  --sidebar-link-color: #334155;
  --sidebar-link-hover: #0f172a;
  --sidebar-link-hover-bg: rgba(37, 99, 235, 0.08);
  --sidebar-link-active: #1d4ed8;
  --sidebar-link-active-bg: rgba(37, 99, 235, 0.12);
  --sidebar-border: rgba(15, 23, 42, 0.12);
}

#dashboard .db-logo {
  background: var(--sidebar-logo-bg);
}

#dashboard .db-logo::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, #60a5fa, rgba(34, 197, 94, 0.42), transparent);
}

#dashboard .db-logo,
#dashboard .db-nav,
#dashboard .db-bottom {
  position: relative;
  z-index: 1;
}

#dashboard .db-nav-section {
  display: flex;
  align-items: center;
  gap: 8px;
}

#dashboard .db-nav-section::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--sidebar-border);
}

#dashboard .db-nl {
  overflow: hidden;
  color: var(--sidebar-link-color);
}

#dashboard .db-nl:hover {
  background: var(--sidebar-link-hover-bg);
  border-color: var(--sidebar-border);
  color: var(--sidebar-link-hover);
}

#dashboard .db-nl.active {
  background: var(--sidebar-link-active-bg);
  border-color: var(--shell-border-strong);
  color: var(--sidebar-link-active);
}

#dashboard .db-nl::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.045), transparent);
  transform: translateX(-110%);
  transition: transform .35s ease;
  pointer-events: none;
}

#dashboard .db-nl:hover::after {
  transform: translateX(110%);
}

#dashboard .db-bottom {
  padding: 12px;
  background: var(--sidebar-bottom-bg);
  border-top-color: var(--sidebar-border);
}

#dashboard .db-bottom .db-nl {
  margin: 0;
}

#dashboard .db-sidebar-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--shell-border);
  border-radius: 10px;
  background: transparent;
  color: var(--tx2);
}

#dashboard .db-sidebar-toggle {
  flex: 0 0 auto;
  margin-right: 0 !important;
}

#dashboard .db-page-context {
  min-width: 156px;
  max-width: 210px;
  flex-direction: column;
  justify-content: center;
  padding-right: 18px;
  border-right: 1px solid var(--shell-border);
  line-height: 1.15;
}

#dashboard .db-page-context strong {
  overflow: hidden;
  color: var(--tx);
  font-size: .88rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#dashboard .db-page-eyebrow {
  margin-bottom: 4px;
  color: var(--tx3);
  font-size: .61rem;
  font-weight: 700;
  text-transform: uppercase;
}

#dashboard .db-top-search kbd {
  position: absolute;
  top: 50%;
  right: 9px;
  transform: translateY(-50%);
  padding: 3px 7px;
  border: 1px solid var(--shell-border);
  border-radius: 6px;
  background: var(--bg3);
  color: var(--tx3);
  font-family: inherit;
  font-size: .61rem;
  font-weight: 600;
  box-shadow: none;
}

#dashboard .db-top-search input {
  padding-right: 62px;
}

#dashboard .db-top-search .db-quick-launcher {
  width: 100%;
  min-height: 44px;
  padding: 10px 62px 10px 42px;
  border: 1px solid var(--shell-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--tx2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  font-family: "Poppins", sans-serif;
  font-size: 0.85rem;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.lm #dashboard .db-top-search .db-quick-launcher {
  background: rgba(15, 23, 42, 0.025);
}

#dashboard .db-top-search .db-quick-launcher:hover {
  border-color: var(--shell-border-strong);
  background: var(--shell-hover);
  color: var(--tx);
}

#dashboard .db-top-search .db-quick-launcher:focus-visible {
  outline: none;
  border-color: rgba(96, 165, 250, 0.58);
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.13);
}

#dashboard .db-top-search > i,
#dashboard .db-top-search > kbd {
  pointer-events: none;
}

#dashboard .db-top > .boc,
#dashboard .db-top-actions > .boc,
#dashboard #notifWrap > .boc,
#dashboard .db-user-pill {
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

#dashboard .db-top > .boc:active,
#dashboard .db-top-actions > .boc:active,
#dashboard #notifWrap > .boc:active {
  transform: translateY(1px);
}

.db-sidebar-backdrop {
  display: none;
}

@media (min-width: 992px) {
  body.collapsed-sidebar #dashboard .db-nav-section::after {
    display: none;
  }
}

@media (max-width: 991.98px) {
  #dashboard .db-sidebar {
    z-index: 1200;
  }

  .db-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1190;
    border: 0;
    background: rgba(2, 6, 23, .62);
    backdrop-filter: blur(3px);
  }

  body.sidebar-open .db-sidebar-backdrop {
    display: block;
  }

  body.sidebar-open {
    overflow: hidden;
  }
}

/* Sidebar and header color refresh */
#dashboard {
  --shell-glow-blue: rgba(59, 130, 246, 0.24);
  --shell-glow-green: rgba(16, 185, 129, 0.15);
}

#dashboard .db-sidebar {
  background:
    linear-gradient(180deg, rgba(59, 130, 246, 0.12), transparent 210px),
    linear-gradient(145deg, rgba(16, 185, 129, 0.08), transparent 42%),
    color-mix(in srgb, var(--bg2) 94%, #020617 6%);
}

.lm #dashboard .db-sidebar {
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.08), transparent 220px),
    linear-gradient(145deg, rgba(16, 185, 129, 0.055), transparent 44%),
    #ffffff;
}

#dashboard .db-logo {
  backdrop-filter: blur(18px);
}

#dashboard .db-logo .logo-i {
  border: 2px solid #ffffff;
  background: #ffffff !important;
  box-shadow: none;
}

#dashboard .db-nav-section {
  color: color-mix(in srgb, var(--tx3) 72%, #60a5fa 28%);
}

#dashboard .db-nl {
  position: relative;
  z-index: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0);
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

#dashboard .db-nl:hover {
  transform: translateX(2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

#dashboard .db-nl i {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border: 1px solid color-mix(in srgb, var(--db-nav-icon) 34%, transparent);
  border-radius: 9px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--db-nav-icon-bg) 72%, transparent), rgba(255, 255, 255, 0.035));
  box-shadow: 0 8px 18px color-mix(in srgb, var(--db-nav-icon) 18%, transparent);
}

#dashboard .db-nl.active {
  color: var(--tx);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--db-nav-icon-bg) 82%, transparent), rgba(255, 255, 255, 0.025));
  border-color: color-mix(in srgb, var(--db-nav-icon) 45%, var(--shell-border));
  box-shadow: 0 10px 24px color-mix(in srgb, var(--db-nav-icon) 13%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

#dashboard .db-nl.active::before {
  background: linear-gradient(180deg, var(--db-nav-icon), color-mix(in srgb, var(--db-nav-icon) 42%, #ffffff 58%));
  box-shadow: 0 0 18px color-mix(in srgb, var(--db-nav-icon) 46%, transparent);
}

#dashboard .db-nl.active i,
#dashboard .db-nl:hover i {
  color: var(--db-nav-icon);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--db-nav-icon-bg) 86%, transparent), rgba(255, 255, 255, 0.07));
}

#dashboard .db-top {
  backdrop-filter: blur(18px);
  background:
    linear-gradient(90deg, rgba(96, 165, 250, 0.075), rgba(16, 185, 129, 0.035), transparent),
    rgba(8, 10, 18, 0.82);
}

.lm #dashboard .db-top {
  background:
    linear-gradient(90deg, rgba(37, 99, 235, 0.07), rgba(16, 185, 129, 0.035), transparent),
    rgba(255, 255, 255, 0.9);
}

#dashboard .db-page-context {
  border-right-color: color-mix(in srgb, var(--shell-border) 78%, #60a5fa 22%);
}

#dashboard .db-page-eyebrow {
  color: #60a5fa;
}

#dashboard .db-top > .boc,
#dashboard .db-top-actions > .boc,
#dashboard #notifWrap > .boc {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

#dashboard .db-top > .boc:first-of-type i {
  color: #60a5fa;
}

#dashboard .db-top > .boc:hover,
#dashboard .db-top-actions > .boc:hover,
#dashboard #notifWrap > .boc:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px var(--shell-glow-blue), inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

#dashboard .db-top-search input,
#dashboard .db-top-search .db-quick-launcher {
  border-color: color-mix(in srgb, var(--shell-border) 78%, #60a5fa 22%);
}

#dashboard .db-user-pill {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Final user sidebar theme guard */
#dashboard .db-sidebar {
  background: var(--sidebar-bg) !important;
  border-right-color: var(--sidebar-border);
}

#dashboard .db-logo {
  background: var(--sidebar-logo-bg);
  border-bottom-color: var(--sidebar-border);
}

#dashboard .db-bottom {
  background: var(--sidebar-bottom-bg);
  border-top-color: var(--sidebar-border);
}

#dashboard .db-nav-section {
  color: var(--tx3);
}

#dashboard .db-nav-section::after {
  background: var(--sidebar-border);
}

#dashboard .db-nl {
  color: var(--sidebar-link-color);
}

#dashboard .db-nl:hover {
  background: var(--sidebar-link-hover-bg);
  border-color: var(--sidebar-border);
  color: var(--sidebar-link-hover);
}

#dashboard .db-nl.active {
  background: var(--sidebar-link-active-bg);
  color: var(--sidebar-link-active);
}

#dashboard .db-avatar {
  background: #1d4ed8;
  color: #fff;
}

/* Admin table contrast hardening */
body.admin-shell #dashboard .db-content .table-responsive,
body.admin-shell #dashboard .db-content [id$="TableWrapper"],
body.admin-shell #dashboard .db-content #mainTableWrapper {
  background: color-mix(in srgb, var(--sf) 94%, #020617 6%) !important;
  border-color: color-mix(in srgb, var(--bd) 78%, #60a5fa 22%) !important;
}

.lm body.admin-shell #dashboard .db-content .table-responsive,
.lm body.admin-shell #dashboard .db-content [id$="TableWrapper"],
.lm body.admin-shell #dashboard .db-content #mainTableWrapper {
  background: #ffffff !important;
}

body.admin-shell #dashboard .db-content :where(table, .table, .table-dark, .custom-table, .db-table) {
  --bs-table-bg: transparent !important;
  --bs-table-striped-bg: rgba(96, 165, 250, 0.045) !important;
  --bs-table-hover-bg: rgba(96, 165, 250, 0.095) !important;
  --bs-table-color: var(--tx) !important;
  --bs-table-hover-color: var(--tx) !important;
  background: transparent !important;
  color: var(--tx) !important;
}

body.admin-shell #dashboard .db-content :where(table, .table, .custom-table, .db-table) thead th {
  background: color-mix(in srgb, var(--bg3) 84%, #60a5fa 16%) !important;
  border-bottom: 1px solid color-mix(in srgb, var(--bd) 72%, #60a5fa 28%) !important;
  color: color-mix(in srgb, var(--tx2) 82%, #ffffff 18%) !important;
  font-weight: 800 !important;
}

body.admin-shell #dashboard .db-content :where(table, .table, .custom-table, .db-table) tbody tr {
  background: transparent !important;
}

body.admin-shell #dashboard .db-content :where(table, .table, .custom-table, .db-table) tbody tr:hover {
  background: rgba(96, 165, 250, 0.075) !important;
}

body.admin-shell #dashboard .db-content :where(table, .table, .custom-table, .db-table) tbody td {
  background: transparent !important;
  border-color: color-mix(in srgb, var(--bd) 78%, transparent) !important;
  color: var(--tx2) !important;
}

body.admin-shell #dashboard .db-content :where(table, .table, .custom-table, .db-table) tbody td :where(.fw-bold, strong, a:not(.btn), h6) {
  color: var(--tx) !important;
}

body.admin-shell #dashboard .db-content :where(table, .table, .custom-table, .db-table) tbody td :where(.text-muted, small) {
  color: var(--tx3) !important;
}

body.admin-shell #dashboard .db-content :where(.badge, .stat-badge) {
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 750;
  letter-spacing: 0 !important;
}

body.admin-shell #dashboard .db-content :where(.badge.bg-secondary, .stat-badge.secondary) {
  background: rgba(100, 116, 139, 0.26) !important;
  color: #cbd5e1 !important;
}

body.admin-shell #dashboard .db-content :where(.badge.bg-success, .stat-badge.success) {
  background: rgba(34, 197, 94, 0.18) !important;
  border-color: rgba(34, 197, 94, 0.32);
  color: #86efac !important;
}

body.admin-shell #dashboard .db-content :where(.badge.bg-danger, .stat-badge.danger) {
  background: rgba(248, 113, 113, 0.18) !important;
  border-color: rgba(248, 113, 113, 0.32);
  color: #fca5a5 !important;
}

body.admin-shell #dashboard .db-content :where(.badge.bg-warning, .stat-badge.warning) {
  background: rgba(245, 158, 11, 0.18) !important;
  border-color: rgba(245, 158, 11, 0.34);
  color: #fcd34d !important;
}

body.admin-shell #dashboard .db-content :where(.badge.bg-info, .stat-badge.primary, .badge.bg-primary) {
  background: rgba(59, 130, 246, 0.18) !important;
  border-color: rgba(96, 165, 250, 0.34);
  color: #93c5fd !important;
}

body.admin-shell #dashboard .db-content :where(.badge.bg-dark) {
  background: rgba(15, 23, 42, 0.62) !important;
  color: #e2e8f0 !important;
}

body.admin-shell #dashboard .db-content .form-check-input {
  background-color: var(--bg3);
  border-color: color-mix(in srgb, var(--bd) 70%, #60a5fa 30%);
}

body.admin-shell #dashboard .db-content .form-check-input:checked {
  background-color: #2563eb;
  border-color: #60a5fa;
}

body.admin-shell #dashboard .db-content .btn-outline-primary,
body.admin-shell #dashboard .db-content .btn-outline-secondary,
body.admin-shell #dashboard .db-content .btn-outline-info,
body.admin-shell #dashboard .db-content .btn-outline-success,
body.admin-shell #dashboard .db-content .btn-outline-warning,
body.admin-shell #dashboard .db-content .btn-outline-danger {
  background: rgba(15, 23, 42, 0.14);
}

.lm body.admin-shell #dashboard .db-content :where(table, .table, .custom-table, .db-table) {
  --bs-table-color: #0f172a !important;
  --bs-table-hover-color: #0f172a !important;
  color: #0f172a !important;
}

.lm body.admin-shell #dashboard .db-content :where(table, .table, .custom-table, .db-table) thead th {
  background: #f1f5f9 !important;
  color: #334155 !important;
}

.lm body.admin-shell #dashboard .db-content :where(table, .table, .custom-table, .db-table) tbody td {
  color: #334155 !important;
}

.lm body.admin-shell #dashboard .db-content :where(table, .table, .custom-table, .db-table) tbody td :where(.fw-bold, strong, a:not(.btn), h6) {
  color: #0f172a !important;
}

.lm body.admin-shell #dashboard .db-content :where(table, .table, .custom-table, .db-table) tbody td :where(.text-muted, small) {
  color: #64748b !important;
}

.lm body.admin-shell #dashboard .db-content :where(.badge, .stat-badge) {
  border-color: rgba(15, 23, 42, 0.08);
}

.lm body.admin-shell #dashboard .db-content :where(.badge.bg-secondary, .stat-badge.secondary) {
  background: #e2e8f0 !important;
  color: #334155 !important;
}

.lm body.admin-shell #dashboard .db-content :where(.badge.bg-success, .stat-badge.success) {
  background: #dcfce7 !important;
  border-color: #bbf7d0;
  color: #166534 !important;
}

.lm body.admin-shell #dashboard .db-content :where(.badge.bg-danger, .stat-badge.danger) {
  background: #fee2e2 !important;
  border-color: #fecaca;
  color: #991b1b !important;
}

.lm body.admin-shell #dashboard .db-content :where(.badge.bg-warning, .stat-badge.warning) {
  background: #fef3c7 !important;
  border-color: #fde68a;
  color: #92400e !important;
}

.lm body.admin-shell #dashboard .db-content :where(.badge.bg-info, .stat-badge.primary, .badge.bg-primary) {
  background: #dbeafe !important;
  border-color: #bfdbfe;
  color: #1d4ed8 !important;
}

.lm body.admin-shell #dashboard .db-content :where(.badge.bg-dark) {
  background: #e2e8f0 !important;
  color: #1e293b !important;
}

.lm body.admin-shell #dashboard .db-content .btn-outline-primary,
.lm body.admin-shell #dashboard .db-content .btn-outline-secondary,
.lm body.admin-shell #dashboard .db-content .btn-outline-info,
.lm body.admin-shell #dashboard .db-content .btn-outline-success,
.lm body.admin-shell #dashboard .db-content .btn-outline-warning,
.lm body.admin-shell #dashboard .db-content .btn-outline-danger {
  background: #ffffff !important;
}

/* Admin spacing contract
   Final override for consistent card rhythm across all admin Blade pages. */
body.admin-shell #dashboard .db-content {
  --admin-page-gap: 20px;
  --admin-card-pad: 20px;
  --admin-card-radius: 8px;
  --admin-inner-gap: 14px;
}

body.admin-shell #dashboard .db-content .db-section.active {
  display: flex;
  flex-direction: column;
  gap: var(--admin-page-gap);
}

body.admin-shell #dashboard .db-content .db-section.active > :where(.mb-1, .mb-2, .mb-3, .mb-4, .mb-5) {
  margin-bottom: 0 !important;
}

body.admin-shell #dashboard .db-content .db-section.active > :where(.alert, .row, .premium-card, .premium-panel, .setup-panel, .panel, .card, .table-responsive, form) {
  width: 100%;
}

body.admin-shell #dashboard .db-content :where(.row, .row.g-2, .row.g-3, .row.g-4, .row.g-5) {
  --bs-gutter-x: var(--admin-page-gap) !important;
  --bs-gutter-y: var(--admin-page-gap) !important;
}

body.admin-shell #dashboard .db-content :where(.row) > [class*="col-"] {
  display: flex;
  flex-direction: column;
}

body.admin-shell #dashboard .db-content :where(.row) > [class*="col-"] > :where(.premium-card, .premium-panel, .setup-panel, .panel, .card, .table-responsive, form, .module-card, .ll-stat-card, .stat-card, .db-stat-card) {
  flex: 1 1 auto;
  width: 100%;
}

body.admin-shell #dashboard .db-content :where(.row) > [class*="col-"] > :where(.premium-card, .premium-panel, .setup-panel, .panel, .card, .module-card, .ll-stat-card, .stat-card, .db-stat-card):last-child {
  margin-bottom: 0 !important;
}

body.admin-shell #dashboard .db-content :where(.premium-card, .premium-panel, .setup-panel, .panel, .card, .module-card, .print-card, .perk-card, .ll-stat-card, .db-stat-card, .stat-card, .category-card) {
  border-radius: var(--admin-card-radius) !important;
  padding: var(--admin-card-pad) !important;
  margin: 0 !important;
}

body.admin-shell #dashboard .db-content :where(.card) > :where(.card-header, .card-body, .card-footer) {
  padding: 0 !important;
  background: transparent !important;
}

body.admin-shell #dashboard .db-content :where(.card) > .card-header {
  margin-bottom: var(--admin-inner-gap) !important;
  border-bottom: 0 !important;
}

body.admin-shell #dashboard .db-content :where(.card) > .card-footer {
  margin-top: var(--admin-inner-gap) !important;
  border-top: 0 !important;
}

body.admin-shell #dashboard .db-content :where(.premium-card, .premium-panel, .setup-panel, .panel, .card, .module-card, .print-card, .perk-card, .ll-stat-card, .db-stat-card, .stat-card) > :last-child {
  margin-bottom: 0 !important;
}

body.admin-shell #dashboard .db-content :where(.premium-card, .premium-panel, .setup-panel, .panel, .card, .module-card, .print-card, .perk-card, .ll-stat-card, .db-stat-card, .stat-card) :where(h1, h2, h3, h4, h5, h6).mb-4 {
  margin-bottom: var(--admin-inner-gap) !important;
}

body.admin-shell #dashboard .db-content :where(.premium-card, .premium-panel, .setup-panel, .panel, .card, .module-card, .print-card, .perk-card, .ll-stat-card, .db-stat-card, .stat-card) :where(.mb-4, .my-4) {
  margin-bottom: var(--admin-inner-gap) !important;
}

body.admin-shell #dashboard .db-content :where(.premium-card, .premium-panel, .setup-panel, .panel, .card, .module-card, .print-card, .perk-card, .ll-stat-card, .db-stat-card, .stat-card) :where(.mt-4, .my-4) {
  margin-top: var(--admin-inner-gap) !important;
}

body.admin-shell #dashboard .db-content :where(.card) > :where(.card-header, .card-body, .card-footer):where(.p-4, .px-4, .ps-4) {
  padding-left: 0 !important;
}

body.admin-shell #dashboard .db-content :where(.card) > :where(.card-header, .card-body, .card-footer):where(.p-4, .px-4, .pe-4) {
  padding-right: 0 !important;
}

body.admin-shell #dashboard .db-content :where(.card) > :where(.card-header, .card-body, .card-footer):where(.p-4, .py-4, .pt-4) {
  padding-top: 0 !important;
}

body.admin-shell #dashboard .db-content :where(.card) > :where(.card-header, .card-body, .card-footer):where(.p-4, .py-4, .pb-4) {
  padding-bottom: 0 !important;
}

body.admin-shell #dashboard .db-content :where(.d-flex.gap-3, .d-flex.gap-4, .d-grid.gap-3, .d-grid.gap-4) {
  gap: var(--admin-inner-gap) !important;
}

body.admin-shell #dashboard .db-content :where(.d-flex.gap-1, .d-flex.gap-2, .d-grid.gap-1, .d-grid.gap-2) {
  gap: 10px !important;
}

body.admin-shell #dashboard .db-content :where(.table-responsive) {
  padding: 0 !important;
  margin: 0 !important;
}

body.admin-shell #dashboard .db-content :where(.table-responsive) > table {
  border-radius: var(--admin-card-radius);
}

body.admin-shell #dashboard .db-content :where(.input-group) {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
}

body.admin-shell #dashboard .db-content :where(.input-group) > :where(.form-control, .form-select) {
  flex: 1 1 auto;
  min-width: 0;
}

body.admin-shell #dashboard .db-content :where(.input-group) > :where(.input-group-text, .btn) {
  flex: 0 0 auto;
}

body.admin-shell #dashboard .db-content #sec-admin-questions #mainTable {
  min-width: 0 !important;
}

body.admin-shell #dashboard .db-content #sec-admin-questions #mainTableWrapper {
  overflow-x: hidden !important;
}

body.admin-shell #dashboard .db-content #sec-admin-questions :where(#mainTable, #mainTableWrapper) .form-check-input {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  padding: 0 !important;
  border-radius: 4px !important;
  flex: 0 0 16px !important;
}

body.admin-shell #dashboard .db-content #sec-admin-modules #modulesTable {
  min-width: 0 !important;
}

body.admin-shell #dashboard .db-content #sec-admin-modules #mainModulesTableWrapper {
  overflow-x: hidden !important;
}

body.admin-shell #dashboard .db-content #sec-admin-modules .modules-panel {
  padding: 0 !important;
}

body.admin-shell #dashboard .db-content #sec-admin-settings .settings-grid button[data-bs-toggle="modal"] {
  min-height: 118px !important;
  padding: 14px 12px !important;
  border-radius: 8px !important;
}

body.admin-shell #dashboard .db-content #sec-admin-settings {
  overflow-x: hidden !important;
}

body.admin-shell #dashboard .db-content #sec-admin-settings :where(.modal-title, .custom-switch-container h6, .form-check-label, .list-group-item, .text-white) {
  color: var(--tx) !important;
}

body.admin-shell #dashboard .db-content #sec-admin-settings :where(.text-muted, small, .custom-switch-container small) {
  color: var(--tx3) !important;
}

body.admin-shell #dashboard .db-content #sec-admin-settings :where(.custom-switch-container, .list-group, .list-group-item) {
  background: var(--bg3) !important;
  border-color: var(--bd) !important;
}

body.admin-shell #dashboard .db-content #sec-admin-settings :where(.btn-close, .btn-close-white) {
  filter: invert(1) grayscale(100%) brightness(180%) !important;
  opacity: 0.85;
}

.lm body.admin-shell #dashboard .db-content #sec-admin-settings :where(.btn-close, .btn-close-white) {
  filter: none !important;
}

body.admin-shell .modal[id^="modal-"] .modal-dialog {
  width: min(760px, calc(100vw - 48px)) !important;
  max-width: min(760px, calc(100vw - 48px)) !important;
  margin: 24px auto !important;
}

body.admin-shell .modal[id^="modal-"] .modal-content {
  max-height: calc(100vh - 48px);
  overflow: hidden;
  background: var(--sf) !important;
  color: var(--tx) !important;
  border-color: var(--bd) !important;
  border-radius: 8px !important;
}

body.admin-shell .modal[id^="modal-"] .modal-header,
body.admin-shell .modal[id^="modal-"] .modal-footer {
  flex: 0 0 auto;
  padding: 16px 20px !important;
}

body.admin-shell .modal[id^="modal-"] .modal-body {
  flex: 1 1 auto;
  max-height: calc(100vh - 180px) !important;
  overflow-y: auto;
  padding: 0 20px 16px !important;
}

body.admin-shell .modal[id^="modal-"] :where(.modal-title, h5, h6, .text-white, .form-check-label) {
  color: var(--tx) !important;
  -webkit-text-fill-color: var(--tx) !important;
}

body.admin-shell .modal[id^="modal-"] :where(.text-muted, small, p) {
  color: var(--tx3) !important;
  -webkit-text-fill-color: var(--tx3) !important;
}

body.admin-shell .modal[id^="modal-"] .custom-switch-container {
  min-height: 70px;
  padding: 14px 18px !important;
  background: var(--bg3) !important;
  border: 1px solid var(--bd) !important;
  border-radius: 8px !important;
  gap: 16px;
}

body.admin-shell .modal[id^="modal-"] .custom-switch-container h6 {
  margin: 0 !important;
  font-size: 0.95rem !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
}

body.admin-shell .modal[id^="modal-"] .form-check.form-switch {
  flex: 0 0 auto;
}

body.admin-shell .modal[id^="modal-"] .form-check-input {
  cursor: pointer;
}

body.admin-shell .modal[id^="modal-"] .form-switch .form-check-input {
  width: 3rem !important;
  height: 1.55rem !important;
  min-width: 3rem !important;
  min-height: 1.55rem !important;
}

body.admin-shell .modal[id^="modal-"] .btn-close,
body.admin-shell .modal[id^="modal-"] .btn-close-white {
  filter: invert(1) grayscale(100%) brightness(180%) !important;
  opacity: 0.85;
}

.lm body.admin-shell .modal[id^="modal-"] .btn-close,
.lm body.admin-shell .modal[id^="modal-"] .btn-close-white {
  filter: none !important;
}

@media (min-width: 1200px) {
  body.admin-shell .modal[id^="modal-"] .modal-dialog {
    width: min(720px, calc(100vw - 64px)) !important;
    max-width: min(720px, calc(100vw - 64px)) !important;
  }
}

:where(body.admin-shell, body.admin-mobile-shell) #dashboard .db-content :where(.alert) {
  margin: 0 !important;
}

/* Final admin sidebar behavior
   Overrides legacy collapse rules so desktop open/close is predictable. */
@media (min-width: 992px) {
  body.admin-shell {
    --admin-sidebar-open: var(--dsb);
    --admin-sidebar-collapsed: 84px;
  }

  body.admin-shell #dashboard .db-sidebar {
    width: var(--admin-sidebar-open) !important;
    min-width: var(--admin-sidebar-open) !important;
    max-width: var(--admin-sidebar-open) !important;
    transform: none !important;
  }

  body.admin-shell #dashboard .db-main {
    margin-left: var(--admin-sidebar-open) !important;
    transition: margin-left 0.22s ease;
  }

  body.admin-shell #dashboard .db-top {
    left: var(--admin-sidebar-open) !important;
    transition: left 0.22s ease;
  }

  body.admin-shell.collapsed-sidebar #dashboard .db-sidebar {
    width: var(--admin-sidebar-collapsed) !important;
    min-width: var(--admin-sidebar-collapsed) !important;
    max-width: var(--admin-sidebar-collapsed) !important;
    overflow-x: hidden !important;
  }

  body.admin-shell.collapsed-sidebar #dashboard .db-main {
    margin-left: var(--admin-sidebar-collapsed) !important;
  }

  body.admin-shell.collapsed-sidebar #dashboard .db-top {
    left: var(--admin-sidebar-collapsed) !important;
  }

  body.admin-shell.collapsed-sidebar #dashboard .db-logo {
    justify-content: center !important;
    padding-inline: 0 !important;
  }

  body.admin-shell.collapsed-sidebar #dashboard .db-logo .admin-brand,
  body.admin-shell.collapsed-sidebar #dashboard .db-nav-section {
    display: none !important;
  }

  body.admin-shell.collapsed-sidebar #dashboard .db-nav {
    padding: 14px 0 18px !important;
    overflow-x: hidden !important;
  }

  body.admin-shell.collapsed-sidebar #dashboard .db-bottom {
    padding: 12px 0 16px !important;
  }

  body.admin-shell.collapsed-sidebar #dashboard .db-nl {
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    justify-content: center !important;
    gap: 0 !important;
    margin: 0 auto 8px !important;
    padding: 9px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
  }

  body.admin-shell.collapsed-sidebar #dashboard .db-nl i {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    flex: 0 0 30px !important;
    margin: 0 !important;
    font-size: 0.95rem !important;
    line-height: 30px !important;
    color: var(--db-nav-icon, #60a5fa) !important;
  }

  body.admin-shell.collapsed-sidebar #dashboard .db-nl.active::before {
    left: 4px !important;
    top: 13px !important;
    bottom: 13px !important;
  }
}

@media (max-width: 991.98px) {
  body.admin-shell.collapsed-sidebar {
    --dsb: 260px;
  }

  body.admin-shell #dashboard .db-main,
  body.admin-shell.collapsed-sidebar #dashboard .db-main {
    margin-left: 0 !important;
  }

  body.admin-shell #dashboard .db-top,
  body.admin-shell.collapsed-sidebar #dashboard .db-top {
    left: 0 !important;
  }
}

@media (min-width: 1200px) {
  body.admin-shell #dashboard .db-content {
    --admin-page-gap: 22px;
    --admin-card-pad: 22px;
  }
}

@media (max-width: 1199.98px) {
  body.admin-shell #dashboard .db-content {
    --admin-page-gap: 18px;
    --admin-card-pad: 18px;
  }
}

@media (max-width: 767.98px) {
  body.admin-shell #dashboard .db-content {
    --admin-page-gap: 14px;
    --admin-card-pad: 14px;
    --admin-inner-gap: 12px;
  }
}

@media (max-width: 991.98px) {
  .password-field,
  #mob-content .password-field,
  #dashboard .db-content .password-field {
    position: relative !important;
    width: 100% !important;
  }

  .password-field .oinp,
  .password-field .form-control,
  #mob-content .password-field .oinp,
  #mob-content .password-field .form-control,
  #dashboard .db-content .password-field .oinp,
  #dashboard .db-content .password-field .form-control {
    padding-right: 48px !important;
    margin-bottom: 0 !important;
  }

  .password-field .password-toggle,
  #mob-content .password-field .password-toggle,
  #dashboard .db-content .password-field .password-toggle {
    position: absolute !important;
    top: 50% !important;
    right: 8px !important;
    bottom: auto !important;
    left: auto !important;
    transform: translateY(-50%) !important;
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    box-shadow: none !important;
    flex: 0 0 36px !important;
    z-index: 3 !important;
  }
}

body :is(#dashboard, #mob-content, .db-section, .modal, .dropdown-menu) :where(.text-muted, [style*="color:var(--tx3)"], [style*="color: var(--tx3)"]) {
  color: var(--tx2) !important;
  -webkit-text-fill-color: var(--tx2) !important;
}

.lm body :is(#dashboard, #mob-content, .db-section, .modal, .dropdown-menu) :where(.text-muted, [style*="color:var(--tx3)"], [style*="color: var(--tx3)"]) {
  color: #475569 !important;
  -webkit-text-fill-color: #475569 !important;
}

body :is(#dashboard, #mob-content, .db-section, .modal, .dropdown-menu) :where(.badge, .btn, button, input, textarea, select, option, .text-danger, .text-success, .text-warning, .text-primary, .text-info) {
  -webkit-text-fill-color: currentColor;
}

.theme-empty-state,
.admin-users-empty-state {
  border: 1px dashed var(--bd);
  border-radius: 12px;
  background: var(--bg3);
  background: color-mix(in srgb, var(--bg3) 82%, transparent);
  color: var(--tx2) !important;
  -webkit-text-fill-color: var(--tx2) !important;
  font-weight: 700;
  line-height: 1.35;
}

.lm .theme-empty-state,
.lm .admin-users-empty-state {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #334155 !important;
  -webkit-text-fill-color: #334155 !important;
}

/* ======================== USER DESKTOP PROFESSIONAL SYSTEM PASS ======================== */
@media (min-width: 992px) {
  body:not(.admin-shell) {
    --user-desktop-max: 1320px;
    --user-page-pad-x: clamp(24px, 2.4vw, 36px);
    --user-page-pad-y: 28px;
    --user-panel-radius: 8px;
    --user-control-radius: 7px;
    --user-panel-border: rgba(148, 163, 184, 0.22);
    --user-panel-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    --user-panel-shadow-hover: 0 14px 34px rgba(15, 23, 42, 0.09);
    --user-surface: rgba(255, 255, 255, 0.94);
    --user-surface-soft: rgba(248, 250, 252, 0.86);
  }

  body:not(.admin-shell):not(.lm) {
    --user-panel-border: rgba(148, 163, 184, 0.18);
    --user-panel-shadow: 0 14px 32px rgba(0, 0, 0, 0.2);
    --user-panel-shadow-hover: 0 18px 40px rgba(0, 0, 0, 0.26);
    --user-surface: rgba(15, 23, 42, 0.88);
    --user-surface-soft: rgba(30, 41, 59, 0.58);
  }

  body:not(.admin-shell) .db-main {
    min-height: 100vh;
  }

  body:not(.admin-shell) .db-content {
    max-width: var(--user-desktop-max);
    padding: var(--user-page-pad-y) var(--user-page-pad-x) 40px !important;
  }

  body:not(.admin-shell) .db-section.active {
    width: 100%;
  }

  body:not(.admin-shell) .db-section.active > :is(.container, .container-fluid) {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body:not(.admin-shell) .db-top {
    height: 72px;
    padding-inline: var(--user-page-pad-x);
    border-bottom: 1px solid var(--bd);
    box-shadow: 0 1px 0 rgba(148, 163, 184, 0.08) !important;
  }

  body:not(.admin-shell) .db-page-context {
    min-width: 210px;
  }

  body:not(.admin-shell) .db-page-eyebrow {
    font-size: 0.66rem;
    letter-spacing: 0.08em !important;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--tx3);
  }

  body:not(.admin-shell) .db-page-context strong {
    color: var(--tx);
    font-size: 0.96rem;
    font-weight: 800;
    line-height: 1.2;
  }

  body:not(.admin-shell) .db-sidebar {
    border-right: 1px solid var(--bd);
    box-shadow: none !important;
  }

  body:not(.admin-shell) .db-logo {
    border-bottom: 1px solid var(--bd);
  }

  body:not(.admin-shell) .db-logo .logo-i {
    width: 34px;
    height: 34px;
  }

  body:not(.admin-shell) .db-logo span {
    font-size: 0.98rem;
    font-weight: 800;
  }

  body:not(.admin-shell) .db-nav {
    padding: 14px 12px 28px;
  }

  body:not(.admin-shell) .db-nav-section {
    margin: 18px 10px 8px;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.08em !important;
  }

  body:not(.admin-shell) .db-nl {
    min-height: 42px;
    border-radius: 7px !important;
    padding: 9px 11px;
    gap: 10px;
    font-size: 0.86rem;
    font-weight: 750;
  }

  body:not(.admin-shell) .db-nl i {
    width: 20px;
    min-width: 20px;
    text-align: center;
    font-size: 0.92rem;
  }

  body:not(.admin-shell) .db-nl:hover {
    transform: none !important;
    box-shadow: none !important;
  }

  body:not(.admin-shell) .db-nl.active {
    background: rgba(37, 99, 235, 0.12) !important;
    border-color: rgba(37, 99, 235, 0.24) !important;
    color: #60a5fa !important;
  }

  body:not(.admin-shell).lm .db-nl.active {
    color: #1d4ed8 !important;
    background: rgba(37, 99, 235, 0.08) !important;
  }

  body:not(.admin-shell) :is(.premium-card, .premium-panel, .setup-panel, .panel, .db-stat-card, .ll-stat-card, .print-card, .module-card, .perk-card, .level-card, .sr-card, .sr-stat-card, .tracker-panel, .chapter-card, .mod-hero, .retry-panel, .stat-box, .card, .accordion-item) {
    border-radius: var(--user-panel-radius) !important;
    border-color: var(--user-panel-border) !important;
    background: var(--user-surface) !important;
    box-shadow: var(--user-panel-shadow) !important;
  }

  body:not(.admin-shell) :is(.premium-card, .premium-panel, .setup-panel, .panel, .db-stat-card, .ll-stat-card, .print-card, .module-card, .perk-card, .level-card, .sr-card, .sr-stat-card, .tracker-panel, .chapter-card, .mod-hero, .retry-panel, .stat-box, .card):hover {
    transform: none !important;
    border-color: rgba(37, 99, 235, 0.24) !important;
    box-shadow: var(--user-panel-shadow-hover) !important;
  }

  body:not(.admin-shell) :is(.card, .premium-card, .premium-panel, .setup-panel, .panel) :is(.card, .premium-card, .premium-panel, .setup-panel, .panel) {
    background: var(--user-surface-soft) !important;
    box-shadow: none !important;
  }

  body:not(.admin-shell) :is(.btn, button:not(.db-nl):not(.boc):not(.dd-close), .nav-pills .nav-link, .form-control, .form-select, .oinp, .db-top-search, .db-user-pill, .db-dropdown, .badge, .alert, .progress, .progress-track) {
    border-radius: var(--user-control-radius) !important;
  }

  body:not(.admin-shell) :is(.btn, button:not(.db-nl):not(.boc):not(.dd-close)) {
    min-height: 40px;
    font-weight: 800;
    box-shadow: none !important;
  }

  body:not(.admin-shell) .btn-shine::after {
    display: none !important;
  }

  body:not(.admin-shell) .nav-pills {
    gap: 6px;
  }

  body:not(.admin-shell) .nav-pills .nav-link {
    min-height: 38px;
    padding: 8px 14px;
    box-shadow: none !important;
  }

  body:not(.admin-shell) .nav-pills .nav-link.active {
    background: #2563eb !important;
    color: #ffffff !important;
    box-shadow: none !important;
  }

  body:not(.admin-shell) :is(.form-control, .form-select, .oinp, textarea) {
    background: var(--user-surface-soft) !important;
    border-color: var(--user-panel-border) !important;
  }

  body:not(.admin-shell) :is(.table-responsive, .custom-table) {
    border-radius: var(--user-panel-radius);
  }

  body:not(.admin-shell) .custom-table th {
    background: var(--user-surface-soft);
    color: var(--tx3) !important;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.06em !important;
    padding: 13px 14px;
  }

  body:not(.admin-shell) .custom-table td {
    padding: 14px;
    font-size: 0.86rem;
  }

  body:not(.admin-shell) .custom-table tbody tr:hover {
    background: rgba(37, 99, 235, 0.045) !important;
  }

  body:not(.admin-shell) :is(h1, h2, h3, h4, h5, h6) {
    letter-spacing: 0 !important;
  }

  body:not(.admin-shell) :is(.text-gradient-primary, .gradient-text, [class*="text-gradient"]) {
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    color: var(--tx) !important;
    -webkit-text-fill-color: var(--tx) !important;
  }

  body:not(.admin-shell).lm :is(.text-gradient-primary, .gradient-text, [class*="text-gradient"]) {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
  }

  body:not(.admin-shell) :is(
    .sr-page-hero,
    .mod-hero,
    .ll-hero,
    .setup-hero,
    .premium-hero,
    .modules-hero,
    .vr-hero,
    .mission-progress-hero,
    .sr-learning-hero,
    .coach-progress-hero,
    .notif-hero
  ) {
    border-radius: var(--user-panel-radius, 16px) !important;
    border: 1px solid rgba(147, 197, 253, 0.48) !important;
    box-shadow: 0 10px 26px rgba(37, 99, 235, 0.18) !important;
    background:
      radial-gradient(circle at 94% 8%, rgba(255, 255, 255, 0.3), transparent 25%),
      radial-gradient(circle at 68% 86%, rgba(56, 189, 248, 0.22), transparent 28%),
      linear-gradient(112deg, #2563eb 0%, #1d7fe4 48%, #38a9dc 100%) !important;
    color: #f8fbff !important;
  }

  body:not(.admin-shell) :is(
    .sr-page-hero,
    .mod-hero,
    .ll-hero,
    .setup-hero,
    .premium-hero,
    .modules-hero,
    .vr-hero,
    .mission-progress-hero,
    .sr-learning-hero,
    .coach-progress-hero,
    .notif-hero
  ) :is(
    h1, h2, h3, h4, h5, h6,
    .sr-page-hero-title,
    .setup-hero-title,
    .modules-hero-title,
    .notif-hero-title,
    .feedback-title,
    .text-gradient-primary
  ) {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
  }

  body:not(.admin-shell) :is(
    .sr-page-hero,
    .mod-hero,
    .ll-hero,
    .setup-hero,
    .premium-hero,
    .modules-hero,
    .vr-hero,
    .mission-progress-hero,
    .sr-learning-hero,
    .coach-progress-hero,
    .notif-hero
  ) :is(
    p,
    .sr-page-hero-subtitle,
    .setup-hero-subtitle,
    .modules-hero-subtitle,
    .notif-hero-subtitle,
    .feedback-subtitle
  ) {
    color: rgba(248, 251, 255, 0.9) !important;
    -webkit-text-fill-color: rgba(248, 251, 255, 0.9) !important;
  }

  body:not(.admin-shell) :is(
    .sr-page-hero,
    .mod-hero,
    .ll-hero,
    .setup-hero,
    .premium-hero,
    .modules-hero,
    .vr-hero,
    .mission-progress-hero,
    .sr-learning-hero,
    .coach-progress-hero,
    .notif-hero
  ) :is(
    .setup-hero-icon,
    .modules-hero-icon,
    .vr-hero-icon,
    .mission-hero-icon,
    .learning-hero-icon,
    .coach-hero-icon,
    .reports-hero-icon,
    .notif-hero-icon,
    .account-hero-icon,
    .skill-tree-hero-icon,
    .feedback-chat-mark
  ) {
    background: rgba(15, 23, 42, 0.16) !important;
    border-color: rgba(255, 255, 255, 0.28) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
  }

  body:not(.admin-shell) :is(.fa, .fa-solid, .fa-regular, .fa-light, .fa-brands) {
    line-height: 1;
  }

  body:not(.admin-shell) .db-dropdown {
    border: 1px solid var(--user-panel-border);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
  }

  body:not(.admin-shell).lm .db-dropdown {
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
  }

  body:not(.admin-shell) .boc {
    border-radius: var(--user-control-radius) !important;
    box-shadow: none !important;
  }

  body:not(.admin-shell) .boc:hover {
    transform: none !important;
  }
}

/* ======================== USER DESKTOP SAAS PRO UI SYSTEM ======================== */
@media (min-width: 992px) {
  body:not(.admin-shell) {
    --saas-bg: #f1f6fb;
    --saas-shell: #ffffff;
    --saas-panel: #ffffff;
    --saas-panel-2: #f7fbff;
    --saas-line: #dceaf5;
    --saas-line-strong: #c8dbea;
    --saas-ink: #153b63;
    --saas-copy: #607995;
    --saas-muted: #879bb0;
    --saas-blue: #2563eb;
    --saas-blue-soft: rgba(37, 99, 235, 0.10);
    --saas-green: #059669;
    --saas-amber: #d97706;
    --saas-red: #dc2626;
    --saas-radius: 8px;
    --saas-radius-sm: 6px;
    --saas-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 24px rgba(15, 23, 42, 0.05);
    --saas-shadow-lg: 0 18px 38px rgba(15, 23, 42, 0.08);
    --bg: var(--saas-bg);
    --bg2: #edf5fc;
    --bg3: var(--saas-panel-2);
    --sf: var(--saas-panel);
    --sf2: var(--saas-panel-2);
    --bd: rgba(35, 77, 119, 0.12);
    --bd2: rgba(35, 77, 119, 0.18);
    --tx: var(--saas-ink);
    --tx2: var(--saas-copy);
    --tx3: var(--saas-muted);
    --pur: var(--saas-blue);
    --blu: #06b6d4;
    --grad: linear-gradient(135deg, #2563eb, #06b6d4);
    background: var(--saas-bg) !important;
  }

  body:not(.admin-shell):not(.lm) {
    --saas-bg: #102b46;
    --saas-shell: #153b63;
    --saas-panel: #234d77;
    --saas-panel-2: #1d4f7a;
    --saas-line: rgba(220, 234, 245, 0.16);
    --saas-line-strong: rgba(220, 234, 245, 0.26);
    --saas-ink: #f7fbff;
    --saas-copy: #c6d8e8;
    --saas-muted: #9db4c9;
    --saas-blue: #60a5fa;
    --saas-blue-soft: rgba(37, 99, 235, 0.24);
    --saas-shadow: 0 1px 0 rgba(148, 163, 184, 0.08), 0 18px 34px rgba(0, 0, 0, 0.24);
    --saas-shadow-lg: 0 24px 52px rgba(0, 0, 0, 0.32);
  }

  body:not(.admin-shell) #dashboard,
  body:not(.admin-shell) .db-main {
    background:
      linear-gradient(180deg, rgba(37, 99, 235, 0.035), transparent 260px),
      var(--saas-bg) !important;
  }

  body:not(.admin-shell) .db-sidebar {
    background: var(--saas-shell) !important;
    border-right: 1px solid var(--saas-line) !important;
  }

  body:not(.admin-shell) .db-logo {
    min-height: 72px;
    padding: 18px 18px !important;
    border-bottom: 1px solid var(--saas-line) !important;
  }

  body:not(.admin-shell) .db-logo span {
    color: var(--saas-ink) !important;
    font-size: .95rem;
    font-weight: 850;
  }

  body:not(.admin-shell) .db-nav-section {
    color: var(--saas-muted) !important;
    font-size: .64rem;
  }

  body:not(.admin-shell) .db-nl {
    color: var(--saas-copy) !important;
    background: transparent !important;
    border-color: transparent !important;
  }

  body:not(.admin-shell) .db-nl:hover {
    color: var(--saas-ink) !important;
    background: var(--saas-panel-2) !important;
    border-color: var(--saas-line) !important;
  }

  body:not(.admin-shell) .db-nl.active {
    color: var(--saas-blue) !important;
    background: var(--saas-blue-soft) !important;
    border-color: rgba(37, 99, 235, .18) !important;
  }

  body:not(.admin-shell) .db-nl.active::before {
    display: none !important;
  }

  body:not(.admin-shell) .db-top {
    background: color-mix(in srgb, var(--saas-bg) 86%, transparent) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--saas-line) !important;
  }

  body:not(.admin-shell) .db-content {
    max-width: 1360px;
    padding: 26px clamp(24px, 2.6vw, 38px) 44px !important;
  }

  body:not(.admin-shell) .db-page-context strong,
  body:not(.admin-shell) :is(h1, h2, h3, h4, h5, h6) {
    color: var(--saas-ink) !important;
  }

  body:not(.admin-shell) :is(p, small, label, .text-muted) {
    color: var(--saas-copy);
  }

  body:not(.admin-shell) :is(
    .premium-card:not(.sr-hero-card):not(.sr-hero-image-panel):not(.sr-page-hero):not(.setup-hero):not(.modules-hero):not(.vr-hero):not(.mission-progress-hero):not(.sr-learning-hero):not(.coach-progress-hero):not(.notif-hero),
    .premium-panel,
    .setup-panel,
    .panel,
    .db-stat-card,
    .ll-stat-card,
    .print-card,
    .module-card,
    .perk-card,
    .level-card,
    .sr-card:not(.sr-hero-card):not(.sr-hero-image-panel):not(.sr-page-hero):not(.setup-hero):not(.modules-hero):not(.vr-hero):not(.mission-progress-hero):not(.sr-learning-hero):not(.coach-progress-hero):not(.notif-hero),
    .sr-stat-card,
    .tracker-panel,
    .chapter-card,
    .retry-panel,
    .stat-box,
    .card:not(.sr-hero-card):not(.sr-hero-image-panel):not(.sr-page-hero):not(.setup-hero):not(.modules-hero):not(.vr-hero):not(.mission-progress-hero):not(.sr-learning-hero):not(.coach-progress-hero):not(.notif-hero),
    .accordion-item
  ) {
    background: var(--saas-panel) !important;
    border: 1px solid var(--saas-line) !important;
    border-radius: var(--saas-radius) !important;
    box-shadow: var(--saas-shadow) !important;
  }

  body:not(.admin-shell) :is(
    .premium-card:not(.sr-hero-card):not(.sr-hero-image-panel):not(.sr-page-hero):not(.setup-hero):not(.modules-hero):not(.vr-hero):not(.mission-progress-hero):not(.sr-learning-hero):not(.coach-progress-hero):not(.notif-hero),
    .premium-panel,
    .setup-panel,
    .panel,
    .db-stat-card,
    .ll-stat-card,
    .print-card,
    .module-card,
    .perk-card,
    .level-card,
    .sr-card:not(.sr-hero-card):not(.sr-hero-image-panel):not(.sr-page-hero):not(.setup-hero):not(.modules-hero):not(.vr-hero):not(.mission-progress-hero):not(.sr-learning-hero):not(.coach-progress-hero):not(.notif-hero),
    .sr-stat-card,
    .tracker-panel,
    .chapter-card,
    .retry-panel,
    .stat-box,
    .card:not(.sr-hero-card):not(.sr-hero-image-panel):not(.sr-page-hero):not(.setup-hero):not(.modules-hero):not(.vr-hero):not(.mission-progress-hero):not(.sr-learning-hero):not(.coach-progress-hero):not(.notif-hero)
  ):hover {
    border-color: var(--saas-line-strong) !important;
    box-shadow: var(--saas-shadow-lg) !important;
  }

  body:not(.admin-shell) :is(.premium-card, .premium-panel, .setup-panel, .panel, .card) :is(.premium-card, .premium-panel, .setup-panel, .panel, .card, .stat-box) {
    background: var(--saas-panel-2) !important;
    box-shadow: none !important;
  }

  body:not(.admin-shell) :is(.btn, button:not(.db-nl):not(.boc):not(.dd-close), .nav-pills .nav-link, .form-control, .form-select, .oinp, .db-user-pill, .db-dropdown, .badge, .alert, .progress, .progress-track, .table-responsive) {
    border-radius: var(--saas-radius-sm) !important;
  }

  body:not(.admin-shell) :is(.btn-primary, .btn-shine, .nav-pills .nav-link.active, button[style*="background:var(--dash-primary"], button[style*="background:#34d399"]) {
    background: var(--saas-blue) !important;
    border-color: var(--saas-blue) !important;
    color: #fff !important;
  }

  body:not(.admin-shell) :is(.btn-outline-primary, .btn-outline-info) {
    border-color: rgba(37, 99, 235, .35) !important;
    color: var(--saas-blue) !important;
    background: transparent !important;
  }

  body:not(.admin-shell) :is(.form-control, .form-select, .oinp, textarea, .db-top-search) {
    background: var(--saas-panel) !important;
    border: 1px solid var(--saas-line) !important;
    color: var(--saas-ink) !important;
  }

  body:not(.admin-shell) :is(.form-control, .form-select, .oinp, textarea):focus {
    border-color: rgba(37, 99, 235, .55) !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12) !important;
  }

  body:not(.admin-shell) .custom-table {
    border: 1px solid var(--saas-line);
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    background: var(--saas-panel) !important;
  }

  body:not(.admin-shell) .custom-table th {
    background: var(--saas-panel-2) !important;
    border-bottom: 1px solid var(--saas-line) !important;
    color: var(--saas-muted) !important;
  }

  body:not(.admin-shell) .custom-table td {
    border-bottom: 1px solid var(--saas-line) !important;
    color: var(--saas-copy) !important;
  }

  body:not(.admin-shell) .custom-table tr:last-child td {
    border-bottom: 0 !important;
  }

  body:not(.admin-shell) .db-dropdown {
    background: var(--saas-panel) !important;
    border-color: var(--saas-line) !important;
    box-shadow: var(--saas-shadow-lg) !important;
  }

  body:not(.admin-shell) :is(.badge, .chip, .tag) {
    font-weight: 800;
    border: 1px solid var(--saas-line);
  }

  body:not(.admin-shell) :is(.progress, .progress-track) {
    height: 8px;
    background: var(--saas-panel-2) !important;
    overflow: hidden;
  }

  body:not(.admin-shell) :is(.progress-bar, .progress-fill) {
    background: var(--saas-blue) !important;
  }
}

/* ======================== USER DESKTOP SIDEBAR SAASPRO ======================== */
@media (min-width: 992px) {
  body.user-desktop-shell:not(.admin-shell) #dashboard {
    --dsb: 272px;
    --user-side-bg: #ffffff;
    --user-side-veil: rgba(248, 250, 252, 0.92);
    --user-side-line: rgba(15, 23, 42, 0.1);
    --user-side-line-strong: rgba(37, 99, 235, 0.24);
    --user-side-ink: #0f172a;
    --user-side-copy: #334155;
    --user-side-muted: #64748b;
    --user-side-hover: #f8fafc;
    --user-side-active: rgba(37, 99, 235, 0.1);
    --user-side-shadow: 12px 0 34px rgba(15, 23, 42, 0.06);
  }

  body.user-desktop-shell:not(.admin-shell):not(.lm) #dashboard {
    --user-side-bg: #0f172a;
    --user-side-veil: rgba(15, 23, 42, 0.92);
    --user-side-line: rgba(148, 163, 184, 0.2);
    --user-side-line-strong: rgba(147, 197, 253, 0.3);
    --user-side-ink: #f8fafc;
    --user-side-copy: #cbd5e1;
    --user-side-muted: #94a3b8;
    --user-side-hover: rgba(30, 41, 59, 0.84);
    --user-side-active: rgba(59, 130, 246, 0.18);
    --user-side-shadow: 14px 0 38px rgba(0, 0, 0, 0.28);
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-sidebar {
    width: var(--dsb) !important;
    min-width: var(--dsb) !important;
    max-width: var(--dsb) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    border-right: 1px solid var(--user-side-line) !important;
    background:
      radial-gradient(circle at 16% 0%, rgba(37, 99, 235, 0.12), transparent 34%),
      linear-gradient(180deg, var(--user-side-bg) 0%, var(--user-side-veil) 100%) !important;
    box-shadow: var(--user-side-shadow) !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-sidebar::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.05)),
      linear-gradient(180deg, rgba(20, 184, 166, 0.06), transparent 280px);
    opacity: 0.9;
    z-index: 0;
  }

  body.user-desktop-shell:not(.admin-shell):not(.lm) #dashboard .db-sidebar::before {
    background:
      linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.08)),
      linear-gradient(180deg, rgba(20, 184, 166, 0.09), transparent 280px);
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-logo {
    min-height: 76px !important;
    padding: 14px 16px 12px !important;
    border-bottom: 1px solid var(--user-side-line) !important;
    background: color-mix(in srgb, var(--user-side-bg) 88%, transparent) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-brand {
    min-width: 0 !important;
    gap: 10px !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-logo .logo-i {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border: 2px solid #ffffff !important;
    border-radius: 16% !important;
    background: #ffffff !important;
    box-shadow: none !important;
    filter: drop-shadow(0 8px 16px rgba(37, 99, 235, 0.18)) !important;
  }

  body.user-desktop-shell:not(.admin-shell):not(.lm) #dashboard .db-logo .logo-i {
    border-color: #ffffff !important;
    background: #ffffff !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-brand-text {
    color: var(--user-side-ink) !important;
    font-size: 0.96rem !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-nav {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    padding: 10px 12px 12px !important;
    overflow-y: hidden !important;
    overflow-x: hidden !important;
    scrollbar-width: thin !important;
    scrollbar-color: rgba(100, 116, 139, 0.35) transparent !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-nav::-webkit-scrollbar {
    width: 5px !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-nav::-webkit-scrollbar-track {
    background: transparent !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-nav::-webkit-scrollbar-thumb {
    border-radius: 999px !important;
    background: rgba(100, 116, 139, 0.32) !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-nav-section {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 10px 7px 5px !important;
    padding: 0 !important;
    color: var(--user-side-muted) !important;
    font-size: 0.58rem !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-transform: uppercase !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-nav-section:first-child {
    margin-top: 2px !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-nav-section::after {
    content: "" !important;
    height: 1px !important;
    flex: 1 1 auto !important;
    background: linear-gradient(90deg, var(--user-side-line), transparent) !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-nl {
    position: relative !important;
    z-index: 1 !important;
    display: flex !important;
    align-items: center !important;
    min-height: 34px !important;
    width: 100% !important;
    margin: 0 0 3px !important;
    padding: 5px 8px !important;
    gap: 8px !important;
    border: 1px solid transparent !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: var(--user-side-copy) !important;
    box-shadow: none !important;
    font-size: 0.78rem !important;
    font-weight: 850 !important;
    line-height: 1.15 !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
    transform: none !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-sidebar .db-nav-blue {
    --db-nav-icon: #1d4ed8;
    --db-nav-icon-bg: rgba(37, 99, 235, 0.12);
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-sidebar .db-nav-purple {
    --db-nav-icon: #6d28d9;
    --db-nav-icon-bg: rgba(109, 40, 217, 0.12);
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-sidebar .db-nav-cyan {
    --db-nav-icon: #0e7490;
    --db-nav-icon-bg: rgba(14, 116, 144, 0.12);
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-sidebar .db-nav-emerald {
    --db-nav-icon: #047857;
    --db-nav-icon-bg: rgba(4, 120, 87, 0.12);
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-sidebar .db-nav-rose {
    --db-nav-icon: #be123c;
    --db-nav-icon-bg: rgba(190, 18, 60, 0.12);
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-sidebar .db-nav-amber {
    --db-nav-icon: #b45309;
    --db-nav-icon-bg: rgba(180, 83, 9, 0.14);
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-sidebar .db-nav-danger {
    --db-nav-icon: #dc2626;
    --db-nav-icon-bg: rgba(220, 38, 38, 0.12);
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-nav-label {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-nl i {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    flex: 0 0 28px !important;
    border: 1px solid color-mix(in srgb, var(--db-nav-icon) 34%, transparent) !important;
    border-radius: 10px !important;
    background: color-mix(in srgb, var(--db-nav-icon-bg) 78%, #ffffff 22%) !important;
    color: var(--db-nav-icon) !important;
    box-shadow: 0 8px 18px color-mix(in srgb, var(--db-nav-icon) 14%, transparent) !important;
    font-size: 0.78rem !important;
  }

  body.user-desktop-shell:not(.admin-shell):not(.lm) #dashboard .db-nl i {
    background: color-mix(in srgb, var(--db-nav-icon-bg) 72%, #0f172a 28%) !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-nl:hover {
    border-color: var(--user-side-line) !important;
    background: var(--user-side-hover) !important;
    color: var(--user-side-ink) !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-nl:hover i {
    transform: none !important;
    border-color: color-mix(in srgb, var(--db-nav-icon) 48%, transparent) !important;
    background: color-mix(in srgb, var(--db-nav-icon-bg) 88%, #ffffff 12%) !important;
  }

  body.user-desktop-shell:not(.admin-shell):not(.lm) #dashboard .db-nl:hover i {
    background: color-mix(in srgb, var(--db-nav-icon-bg) 84%, #0f172a 16%) !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-nl.active {
    border-color: var(--user-side-line-strong) !important;
    background:
      linear-gradient(90deg, var(--user-side-active), transparent 115%),
      var(--user-side-hover) !important;
    color: var(--user-side-ink) !important;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06) !important;
  }

  body.user-desktop-shell:not(.admin-shell):not(.lm) #dashboard .db-nl.active {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22) !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-nl.active::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    left: -1px !important;
    top: 8px !important;
    bottom: 8px !important;
    width: 3px !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg, var(--db-nav-icon), #14b8a6) !important;
    box-shadow: 0 0 16px color-mix(in srgb, var(--db-nav-icon) 42%, transparent) !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-nl.active i {
    border-color: color-mix(in srgb, var(--db-nav-icon) 54%, transparent) !important;
    background: color-mix(in srgb, var(--db-nav-icon-bg) 92%, #ffffff 8%) !important;
  }

  body.user-desktop-shell:not(.admin-shell):not(.lm) #dashboard .db-nl.active i {
    background: color-mix(in srgb, var(--db-nav-icon-bg) 88%, #0f172a 12%) !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-bottom {
    flex: 0 0 auto !important;
    padding: 9px 12px 11px !important;
    border-top: 1px solid var(--user-side-line) !important;
    background: color-mix(in srgb, var(--user-side-bg) 90%, transparent) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-bottom form {
    display: block !important;
    width: 100% !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-bottom .db-nl {
    min-height: 34px !important;
    margin: 0 !important;
    border-color: rgba(239, 68, 68, 0.18) !important;
    background: rgba(254, 242, 242, 0.72) !important;
    color: #dc2626 !important;
  }

  body.user-desktop-shell:not(.admin-shell):not(.lm) #dashboard .db-bottom .db-nl {
    border-color: rgba(248, 113, 113, 0.22) !important;
    background: rgba(127, 29, 29, 0.2) !important;
    color: #fca5a5 !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-bottom .db-nl i {
    color: #ef4444 !important;
    border-color: rgba(239, 68, 68, 0.24) !important;
    background: rgba(254, 226, 226, 0.9) !important;
    box-shadow: none !important;
  }

  body.user-desktop-shell:not(.admin-shell):not(.lm) #dashboard .db-bottom .db-nl i {
    color: #fca5a5 !important;
    border-color: rgba(248, 113, 113, 0.24) !important;
    background: rgba(127, 29, 29, 0.32) !important;
  }

  body.user-desktop-shell.collapsed-sidebar:not(.admin-shell) #dashboard {
    --dsb: 84px;
  }

  body.user-desktop-shell.collapsed-sidebar:not(.admin-shell) #dashboard .db-sidebar {
    width: 84px !important;
    min-width: 84px !important;
    max-width: 84px !important;
  }

  body.user-desktop-shell.collapsed-sidebar:not(.admin-shell) #dashboard .db-logo {
    padding: 16px 0 !important;
    justify-content: center !important;
  }

  body.user-desktop-shell.collapsed-sidebar:not(.admin-shell) #dashboard .db-brand {
    justify-content: center !important;
  }

  body.user-desktop-shell.collapsed-sidebar:not(.admin-shell) #dashboard .db-brand-text,
  body.user-desktop-shell.collapsed-sidebar:not(.admin-shell) #dashboard .db-nav-section,
  body.user-desktop-shell.collapsed-sidebar:not(.admin-shell) #dashboard .db-nav-label {
    display: none !important;
  }

  body.user-desktop-shell.collapsed-sidebar:not(.admin-shell) #dashboard .db-nav {
    padding: 14px 10px 18px !important;
  }

  body.user-desktop-shell.collapsed-sidebar:not(.admin-shell) #dashboard .db-nl {
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    min-height: 44px !important;
    margin: 0 auto 8px !important;
    padding: 5px !important;
    justify-content: center !important;
    gap: 0 !important;
  }

  body.user-desktop-shell.collapsed-sidebar:not(.admin-shell) #dashboard .db-nl i {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    flex-basis: 32px !important;
  }

  body.user-desktop-shell.collapsed-sidebar:not(.admin-shell) #dashboard .db-bottom {
    padding: 12px 10px 14px !important;
  }
}

/* ======================== USER DESKTOP TOPBAR SAASPRO ======================== */
@media (min-width: 992px) {
  body.user-desktop-shell:not(.admin-shell) #dashboard {
    --user-top-bg: rgba(255, 255, 255, 0.86);
    --user-top-line: rgba(15, 23, 42, 0.1);
    --user-top-line-strong: rgba(37, 99, 235, 0.24);
    --user-top-ink: #0f172a;
    --user-top-copy: #334155;
    --user-top-muted: #64748b;
    --user-top-tile: rgba(248, 250, 252, 0.96);
    --user-top-tile-hover: #ffffff;
    --user-top-blue: #2563eb;
    --user-top-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  }

  body.user-desktop-shell:not(.admin-shell):not(.lm) #dashboard {
    --user-top-bg: rgba(15, 23, 42, 0.88);
    --user-top-line: rgba(148, 163, 184, 0.2);
    --user-top-line-strong: rgba(147, 197, 253, 0.3);
    --user-top-ink: #f8fafc;
    --user-top-copy: #cbd5e1;
    --user-top-muted: #94a3b8;
    --user-top-tile: rgba(30, 41, 59, 0.86);
    --user-top-tile-hover: rgba(51, 65, 85, 0.92);
    --user-top-blue: #93c5fd;
    --user-top-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-top {
    height: 76px !important;
    left: var(--dsb) !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 0 22px !important;
    border-bottom: 1px solid var(--user-top-line) !important;
    background:
      linear-gradient(90deg, rgba(37, 99, 235, 0.055), rgba(20, 184, 166, 0.035), transparent),
      var(--user-top-bg) !important;
    backdrop-filter: blur(18px) saturate(1.25) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.25) !important;
    box-shadow: var(--user-top-shadow) !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-top::after {
    left: 18px !important;
    right: 18px !important;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.22), rgba(20, 184, 166, 0.16), transparent) !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-sidebar-toggle {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    border-radius: 12px !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-top-actions {
    gap: 10px !important;
    min-width: 0 !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-top > .boc,
  body.user-desktop-shell:not(.admin-shell) #dashboard .db-top-actions > .boc,
  body.user-desktop-shell:not(.admin-shell) #dashboard #notifWrap > #bellBtn {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    padding: 0 !important;
    border: 1px solid var(--user-top-line) !important;
    border-radius: 12px !important;
    background: var(--user-top-tile) !important;
    color: var(--user-top-copy) !important;
    box-shadow: none !important;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease, transform .18s ease;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-top > .boc i,
  body.user-desktop-shell:not(.admin-shell) #dashboard .db-top-actions > .boc i,
  body.user-desktop-shell:not(.admin-shell) #dashboard #notifWrap > #bellBtn i {
    color: inherit !important;
    font-size: 0.92rem !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-top > .boc:hover,
  body.user-desktop-shell:not(.admin-shell) #dashboard .db-top-actions > .boc:hover,
  body.user-desktop-shell:not(.admin-shell) #dashboard #notifWrap > #bellBtn:hover {
    border-color: var(--user-top-line-strong) !important;
    background: var(--user-top-tile-hover) !important;
    color: var(--user-top-blue) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.1) !important;
  }

  body.user-desktop-shell:not(.admin-shell):not(.lm) #dashboard .db-top > .boc:hover,
  body.user-desktop-shell:not(.admin-shell):not(.lm) #dashboard .db-top-actions > .boc:hover,
  body.user-desktop-shell:not(.admin-shell):not(.lm) #dashboard #notifWrap > #bellBtn:hover {
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.18) !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard #dbTutorialBtn {
    border-color: rgba(37, 99, 235, 0.22) !important;
    color: #1d4ed8 !important;
  }

  body.user-desktop-shell:not(.admin-shell):not(.lm) #dashboard #dbTutorialBtn {
    border-color: rgba(147, 197, 253, 0.28) !important;
    color: #93c5fd !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard #notifWrap {
    width: 44px !important;
    height: 44px !important;
    flex: 0 0 44px !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard #bellBtn {
    width: 44px !important;
    height: 44px !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard #notifBadge {
    top: 8px !important;
    right: 8px !important;
    width: 9px !important;
    height: 9px !important;
    border: 2px solid var(--user-top-tile) !important;
    background: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-user-pill {
    min-height: 48px !important;
    max-width: min(360px, 34vw) !important;
    padding: 5px 12px 5px 7px !important;
    gap: 10px !important;
    border: 1px solid var(--user-top-line) !important;
    border-radius: 8px !important;
    background: var(--user-top-tile) !important;
    color: var(--user-top-ink) !important;
    box-shadow: none !important;
    transition: border-color .18s ease, background-color .18s ease, transform .18s ease, box-shadow .18s ease;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-user-pill:hover {
    border-color: var(--user-top-line-strong) !important;
    background: var(--user-top-tile-hover) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.1) !important;
  }

  body.user-desktop-shell:not(.admin-shell):not(.lm) #dashboard .db-user-pill:hover {
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18) !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-avatar {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    border: 1px solid rgba(37, 99, 235, 0.22) !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #2563eb, #0891b2) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.16) !important;
    overflow: hidden !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-user-pill strong {
    max-width: 230px !important;
    overflow: hidden !important;
    color: var(--user-top-ink) !important;
    font-size: 0.84rem !important;
    font-weight: 900 !important;
    line-height: 1.12 !important;
    letter-spacing: 0 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-user-pill small {
    color: var(--user-top-muted) !important;
    font-size: 0.64rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-user-pill .fa-chevron-down {
    color: var(--user-top-muted) !important;
    font-size: 0.72rem !important;
  }

  body.user-desktop-shell.collapsed-sidebar:not(.admin-shell) #dashboard .db-top {
    left: 84px !important;
  }
}

/* ======================== GLOBAL PAGE TITLE ACCENT ======================== */
:root {
  --sr-page-title-accent: #ffffff;
  --sr-page-title-accent-shadow: 0 2px 12px rgba(15, 23, 42, 0.18);
}

.lm {
  --sr-page-title-accent: #ffffff;
  --sr-page-title-accent-shadow: 0 2px 10px rgba(15, 23, 42, 0.14);
}

#dashboard .db-page-context strong,
body :is(.stitle, .landing-section-heading h1, .landing-section-heading h2, .hero-title, .page-title),
#dashboard .db-content .db-section.active > .mb-4:first-child :is(h1, h2, h3, h4),
#dashboard .db-content .db-section.active > form > .mb-4:first-child :is(h1, h2, h3, h4),
#dashboard .db-content :is(
  .text-gradient-primary,
  .gradient-text,
  [class*="text-gradient"],
  [class*="page-title"],
  [class*="hero-title"],
  .progress-hero-title,
  .setup-hero-title,
  .modules-hero-title,
  .sr-page-hero-title,
  .admin-dashboard-title,
  .feedback-page-title,
  .feedback-title,
  .session-page-title,
  .archive-page-title,
  .notif-hero-title,
  .sr-title,
  .sr-title-name
) {
  background: none !important;
  background-clip: initial !important;
  -webkit-background-clip: initial !important;
  color: var(--sr-page-title-accent) !important;
  -webkit-text-fill-color: var(--sr-page-title-accent) !important;
  text-shadow: var(--sr-page-title-accent-shadow);
  text-transform: uppercase !important;
  letter-spacing: 0 !important;
}

#dashboard .db-content :is(
  .text-gradient-primary,
  .gradient-text,
  [class*="text-gradient"],
  [class*="page-title"],
  [class*="hero-title"],
  .progress-hero-title,
  .setup-hero-title,
  .modules-hero-title,
  .sr-page-hero-title,
  .admin-dashboard-title,
  .feedback-page-title,
  .feedback-title,
  .session-page-title,
  .archive-page-title,
  .notif-hero-title,
  .sr-title,
  .sr-title-name
) :is(.fa, .fa-solid, .fa-regular, .fa-light, .fa-brands, svg) {
  color: var(--sr-page-title-accent) !important;
  -webkit-text-fill-color: var(--sr-page-title-accent) !important;
}

body :is(.modal-title, .btn, button, .badge, .form-label, label, input, textarea, select, option, .dropdown-item) {
  text-transform: none !important;
}

body .modal-title {
  color: var(--tx) !important;
  -webkit-text-fill-color: var(--tx) !important;
  text-shadow: none !important;
}

/* ======================== DESKTOP RESPONSIVE HARDENING ======================== */
@media (min-width: 992px) {
  body.desktop-shell,
  body.desktop-shell #dashboard,
  body.desktop-shell .db-main,
  body.desktop-shell .db-content,
  body.desktop-shell .db-section.active {
    min-width: 0 !important;
    max-width: 100%;
  }

  body.desktop-shell #dashboard {
    width: 100%;
    overflow-x: clip;
  }

  body.desktop-shell .db-main {
    width: auto;
    max-width: calc(100vw - var(--dsb));
    overflow-x: clip;
  }

  body.desktop-shell .db-content {
    width: 100% !important;
    max-width: min(var(--desktop-content-max, 1480px), calc(100vw - var(--dsb))) !important;
    padding-inline: clamp(18px, 2.1vw, 34px) !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard {
    --desktop-content-max: 1480px;
  }

  body.admin-shell #dashboard {
    --desktop-content-max: 1640px;
  }

  body.desktop-shell #dashboard .db-top {
    min-width: 0;
    max-width: calc(100vw - var(--dsb));
  }

  body.desktop-shell #dashboard .db-top-actions,
  body.desktop-shell #dashboard .db-user-pill,
  body.desktop-shell #dashboard .db-dropdown,
  body.desktop-shell #dashboard .dropdown-menu {
    min-width: 0 !important;
  }

  body.desktop-shell #dashboard .db-dropdown,
  body.desktop-shell #dashboard .dropdown-menu {
    max-width: min(420px, calc(100vw - var(--dsb) - 32px)) !important;
  }

  body.desktop-shell #dashboard .db-content :where(
    .container,
    .container-fluid,
    .row,
    .row > *,
    .col,
    [class*="col-"],
    .d-flex,
    .d-grid,
    [class*="grid"],
    [class*="layout"],
    [class*="shell"],
    form,
    fieldset,
    .tab-content,
    .tab-pane,
    .card,
    .premium-card,
    .premium-panel,
    .setup-panel,
    .panel,
    .module-card,
    .ll-module-card,
    .level-card,
    .sr-card,
    .print-card,
    .table-responsive
  ) {
    min-width: 0 !important;
    max-width: 100%;
  }

  body.desktop-shell #dashboard .db-content :where(
    p,
    small,
    span,
    strong,
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    label,
    a:not(.btn):not(.db-nl),
    td,
    th
  ) {
    overflow-wrap: anywhere;
  }

  body.desktop-shell #dashboard .db-content :where(
    .db-section.active > .mb-4:first-child,
    .db-section.active > form > .mb-4:first-child,
    .card-header,
    .card-footer,
    .action-buttons,
    .btn-toolbar,
    #feedback-filters,
    .progress-actions
  ) {
    flex-wrap: wrap !important;
  }

  body.desktop-shell #dashboard .db-content :where(
    .table-responsive,
    [id$="TableWrapper"],
    #mainTableWrapper,
    #mainUsersTableWrapper,
    #mainSessionsTableWrapper,
    #mainArchiveTableWrapper,
    #mainFeedbackTableWrapper,
    #mainModulesTableWrapper,
    #mainProvidersTableWrapper,
    #mainCategoriesTableWrapper,
    #mainAuditLogsTableWrapper,
    #moduleUsageTableWrapper
  ) {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
  }

  body.desktop-shell #dashboard .db-content :where(.table, .custom-table, .db-table) {
    width: 100%;
  }

  body.desktop-shell #dashboard .db-content :where(.table, .custom-table, .db-table) :where(th, td) {
    max-width: min(34ch, 28vw);
  }

  body.desktop-shell #dashboard .db-content :where(
    .chat-container,
    .chat-main,
    .chat-messages,
    .chat-input-wrapper,
    .chat-textarea
  ) {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body.desktop-shell #dashboard .db-content :where(img, svg, video, canvas, iframe) {
    max-width: 100% !important;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  body.user-desktop-shell:not(.admin-shell) #dashboard {
    --dsb: 236px;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-sidebar {
    width: var(--dsb) !important;
    min-width: var(--dsb) !important;
    max-width: var(--dsb) !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-logo {
    min-height: 70px !important;
    padding-inline: 14px !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-logo .logo-i {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-brand-text {
    font-size: 0.88rem !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-nav {
    padding-inline: 10px !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-nl {
    gap: 8px !important;
    padding-inline: 8px !important;
    font-size: 0.74rem !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-nl i {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    flex-basis: 26px !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-top {
    height: 72px !important;
    left: var(--dsb) !important;
    gap: 8px !important;
    padding-inline: 14px !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-top > .boc,
  body.user-desktop-shell:not(.admin-shell) #dashboard .db-top-actions > .boc,
  body.user-desktop-shell:not(.admin-shell) #dashboard #notifWrap,
  body.user-desktop-shell:not(.admin-shell) #dashboard #bellBtn {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    flex-basis: 40px !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-user-pill {
    min-height: 42px !important;
    max-width: 210px !important;
    padding: 4px 9px 4px 5px !important;
    gap: 7px !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-avatar {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
  }

  body.admin-shell .db-top {
    gap: 8px !important;
    padding-inline: 16px !important;
  }

  body.admin-shell .db-top-search {
    flex: 1 1 220px !important;
    min-width: 0 !important;
    max-width: 300px !important;
  }

  body.admin-shell .db-user-pill {
    max-width: 64px !important;
    padding-inline: 7px !important;
  }

  body.admin-shell .db-user-pill .d-none.d-md-block {
    display: none !important;
  }

  body.desktop-shell #dashboard .db-content {
    padding-inline: 18px !important;
  }

  body.desktop-shell #dashboard .db-content :where(
    .sr-dashboard-shell,
    .sr-summary-grid,
    .feedback-shell .feedback-hero,
    .report-grid,
    .reports-grid,
    .progress-desktop-grid,
    .learning-desktop-grid,
    .mission-desktop-grid,
    .skills-desktop-grid
  ) {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.desktop-shell #dashboard .db-content .chat-sidebar {
    width: clamp(220px, 26vw, 260px) !important;
  }
}

@media (min-width: 992px) and (max-height: 760px) {
  body.desktop-shell #dashboard .db-logo {
    min-height: 66px !important;
    padding-block: 10px !important;
  }

  body.desktop-shell #dashboard .db-logo .logo-i {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
  }

  body.desktop-shell #dashboard .db-nav {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
  }

  body.desktop-shell #dashboard .db-nav-section {
    margin-top: 8px !important;
    margin-bottom: 4px !important;
    font-size: 0.56rem !important;
  }

  body.desktop-shell #dashboard .db-nl {
    min-height: 31px !important;
    padding-block: 4px !important;
    margin-bottom: 2px !important;
    font-size: 0.72rem !important;
  }

  body.desktop-shell #dashboard .db-nl i {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    flex-basis: 24px !important;
    font-size: 0.72rem !important;
  }

  body.desktop-shell #dashboard .db-bottom {
    padding-block: 8px !important;
  }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
  body.user-desktop-shell:not(.admin-shell) #dashboard {
    --dsb: 252px;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-sidebar {
    width: var(--dsb) !important;
    min-width: var(--dsb) !important;
    max-width: var(--dsb) !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-top {
    left: var(--dsb) !important;
  }
}

@media (min-width: 1600px) {
  body.user-desktop-shell:not(.admin-shell) #dashboard {
    --desktop-content-max: 1560px;
  }

  body.admin-shell #dashboard {
    --desktop-content-max: 1720px;
  }
}

/* ======================== DESKTOP SIDEBAR REFERENCE REFRESH ======================== */
@media (min-width: 992px) {
  :is(body.user-desktop-shell:not(.admin-shell), body.admin-shell) #dashboard {
    --dsb: 304px;
    --user-ref-sidebar-bg: #031633;
    --user-ref-sidebar-bg-deep: #020d22;
    --user-ref-sidebar-line: rgba(125, 211, 252, 0.16);
    --user-ref-sidebar-line-strong: rgba(147, 197, 253, 0.4);
    --user-ref-sidebar-ink: #f8fbff;
    --user-ref-sidebar-copy: #e3edff;
    --user-ref-sidebar-muted: #8bb9f5;
    --user-ref-sidebar-soft: rgba(15, 44, 88, 0.74);
    --user-ref-sidebar-soft-strong: rgba(28, 77, 151, 0.82);
  }

  :is(body.user-desktop-shell:not(.admin-shell), body.admin-shell) #dashboard .db-sidebar {
    width: var(--dsb) !important;
    min-width: var(--dsb) !important;
    max-width: var(--dsb) !important;
    border-right: 1px solid var(--user-ref-sidebar-line) !important;
    background:
      linear-gradient(180deg, rgba(37, 99, 235, 0.18) 0%, rgba(37, 99, 235, 0) 31%),
      linear-gradient(145deg, rgba(34, 211, 238, 0.11) 0%, rgba(34, 211, 238, 0) 45%),
      linear-gradient(180deg, var(--user-ref-sidebar-bg) 0%, var(--user-ref-sidebar-bg-deep) 100%) !important;
    color: var(--user-ref-sidebar-ink) !important;
    box-shadow: 20px 0 46px rgba(2, 6, 23, 0.34) !important;
  }

  :is(body.user-desktop-shell:not(.admin-shell), body.admin-shell) #dashboard .db-sidebar::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.055), transparent 38%),
      linear-gradient(180deg, rgba(59, 130, 246, 0.1), transparent 260px);
  }

  :is(body.user-desktop-shell:not(.admin-shell), body.admin-shell) #dashboard .db-sidebar::after {
    content: "";
    position: absolute;
    top: 18px;
    right: 0;
    bottom: 18px;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(34, 211, 238, 0.34), transparent);
    pointer-events: none;
  }

  :is(body.user-desktop-shell:not(.admin-shell), body.admin-shell) #dashboard .db-logo {
    min-height: 106px !important;
    padding: 24px 22px 18px !important;
    border-bottom: 0 !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  :is(body.user-desktop-shell:not(.admin-shell), body.admin-shell) #dashboard .db-logo::after {
    display: none !important;
  }

  :is(body.user-desktop-shell:not(.admin-shell), body.admin-shell) #dashboard .db-brand {
    min-width: 0 !important;
    gap: 12px !important;
  }

  :is(body.user-desktop-shell:not(.admin-shell), body.admin-shell) #dashboard .db-logo .logo-i {
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
    border: 1px solid rgba(191, 219, 254, 0.64) !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    box-shadow:
      0 0 0 6px rgba(37, 99, 235, 0.16),
      0 14px 34px rgba(59, 130, 246, 0.42) !important;
    filter: none !important;
  }

  :is(body.user-desktop-shell:not(.admin-shell), body.admin-shell) #dashboard .db-brand-copy {
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 4px !important;
  }

  :is(body.user-desktop-shell:not(.admin-shell), body.admin-shell) #dashboard .db-brand-text {
    display: block !important;
    color: var(--user-ref-sidebar-ink) !important;
    font-size: 1.08rem !important;
    font-weight: 900 !important;
    line-height: 1.08 !important;
    letter-spacing: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  :is(body.user-desktop-shell:not(.admin-shell), body.admin-shell) #dashboard .db-brand-subtitle {
    display: block !important;
    color: rgba(213, 226, 255, 0.76) !important;
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  :is(body.user-desktop-shell:not(.admin-shell), body.admin-shell) #dashboard .db-nav {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: 100% !important;
    padding: 0 20px 16px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: thin !important;
    scrollbar-color: rgba(125, 211, 252, 0.32) transparent !important;
  }

  :is(body.user-desktop-shell:not(.admin-shell), body.admin-shell) #dashboard .db-nav::-webkit-scrollbar {
    width: 5px !important;
  }

  :is(body.user-desktop-shell:not(.admin-shell), body.admin-shell) #dashboard .db-nav::-webkit-scrollbar-thumb {
    border-radius: 999px !important;
    background: rgba(125, 211, 252, 0.26) !important;
  }

  :is(body.user-desktop-shell:not(.admin-shell), body.admin-shell) #dashboard .db-nav-section {
    display: block !important;
    margin: 20px 6px 10px !important;
    padding: 0 !important;
    color: var(--user-ref-sidebar-muted) !important;
    font-size: 0.7rem !important;
    font-weight: 900 !important;
    line-height: 1.15 !important;
    letter-spacing: 0 !important;
    text-transform: uppercase !important;
  }

  :is(body.user-desktop-shell:not(.admin-shell), body.admin-shell) #dashboard .db-nav-section:first-child {
    margin-top: 0 !important;
  }

  :is(body.user-desktop-shell:not(.admin-shell), body.admin-shell) #dashboard .db-nav-section::after {
    display: none !important;
  }

  :is(body.user-desktop-shell:not(.admin-shell), body.admin-shell) #dashboard .db-sidebar .db-nav-blue {
    --db-nav-icon: #60a5fa;
    --db-nav-icon-bg: rgba(37, 99, 235, 0.24);
  }

  :is(body.user-desktop-shell:not(.admin-shell), body.admin-shell) #dashboard .db-sidebar .db-nav-purple {
    --db-nav-icon: #a78bfa;
    --db-nav-icon-bg: rgba(124, 58, 237, 0.24);
  }

  :is(body.user-desktop-shell:not(.admin-shell), body.admin-shell) #dashboard .db-sidebar .db-nav-cyan {
    --db-nav-icon: #22d3ee;
    --db-nav-icon-bg: rgba(6, 182, 212, 0.22);
  }

  :is(body.user-desktop-shell:not(.admin-shell), body.admin-shell) #dashboard .db-sidebar .db-nav-indigo {
    --db-nav-icon: #818cf8;
    --db-nav-icon-bg: rgba(79, 70, 229, 0.24);
  }

  :is(body.user-desktop-shell:not(.admin-shell), body.admin-shell) #dashboard .db-sidebar .db-nav-emerald {
    --db-nav-icon: #22c55e;
    --db-nav-icon-bg: rgba(22, 163, 74, 0.22);
  }

  :is(body.user-desktop-shell:not(.admin-shell), body.admin-shell) #dashboard .db-sidebar .db-nav-rose {
    --db-nav-icon: #f472b6;
    --db-nav-icon-bg: rgba(219, 39, 119, 0.22);
  }

  :is(body.user-desktop-shell:not(.admin-shell), body.admin-shell) #dashboard .db-sidebar .db-nav-amber {
    --db-nav-icon: #f59e0b;
    --db-nav-icon-bg: rgba(217, 119, 6, 0.22);
  }

  :is(body.user-desktop-shell:not(.admin-shell), body.admin-shell) #dashboard .db-sidebar .db-nav-danger {
    --db-nav-icon: #fb7185;
    --db-nav-icon-bg: rgba(225, 29, 72, 0.2);
  }

  :is(body.user-desktop-shell:not(.admin-shell), body.admin-shell) #dashboard .db-nl {
    position: relative !important;
    z-index: 1 !important;
    min-height: 52px !important;
    width: 100% !important;
    margin: 0 0 5px !important;
    padding: 7px 10px !important;
    gap: 12px !important;
    border: 1px solid transparent !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: var(--user-ref-sidebar-copy) !important;
    box-shadow: none !important;
    font-size: 0.95rem !important;
    font-weight: 850 !important;
    line-height: 1.16 !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
    transform: none !important;
  }

  :is(body.user-desktop-shell:not(.admin-shell), body.admin-shell) #dashboard .db-nl::after {
    display: none !important;
  }

  :is(body.user-desktop-shell:not(.admin-shell), body.admin-shell) #dashboard .db-nav-label {
    min-width: 0 !important;
    overflow: hidden !important;
    color: inherit !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  :is(body.user-desktop-shell:not(.admin-shell), body.admin-shell) #dashboard .db-nl i {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    flex: 0 0 38px !important;
    border: 1px solid rgba(191, 219, 254, 0.08) !important;
    border-radius: 8px !important;
    background:
      linear-gradient(135deg, var(--db-nav-icon-bg), rgba(15, 23, 42, 0.24)) !important;
    color: var(--db-nav-icon) !important;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--db-nav-icon) 18%, transparent) !important;
    font-size: 1rem !important;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
  }

  :is(body.user-desktop-shell:not(.admin-shell), body.admin-shell) #dashboard .db-nl:hover {
    border-color: rgba(147, 197, 253, 0.16) !important;
    background: var(--user-ref-sidebar-soft) !important;
    color: #ffffff !important;
    transform: translateX(2px) !important;
  }

  :is(body.user-desktop-shell:not(.admin-shell), body.admin-shell) #dashboard .db-nl:hover i {
    border-color: color-mix(in srgb, var(--db-nav-icon) 42%, transparent) !important;
    background:
      linear-gradient(135deg, color-mix(in srgb, var(--db-nav-icon-bg) 88%, #ffffff 12%), rgba(15, 23, 42, 0.18)) !important;
    color: var(--db-nav-icon) !important;
    transform: none !important;
  }

  :is(body.user-desktop-shell:not(.admin-shell), body.admin-shell) #dashboard .db-nl.active {
    border-color: rgba(147, 197, 253, 0.42) !important;
    background: linear-gradient(135deg, #2563eb 0%, #4338ca 100%) !important;
    color: #ffffff !important;
    box-shadow:
      0 14px 30px rgba(37, 99, 235, 0.35),
      0 0 26px rgba(59, 130, 246, 0.24),
      inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
    transform: none !important;
  }

  :is(body.user-desktop-shell:not(.admin-shell), body.admin-shell) #dashboard .db-nl.active::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    left: -12px !important;
    top: 7px !important;
    bottom: 7px !important;
    width: 4px !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg, #22d3ee, #60a5fa) !important;
    box-shadow: 0 0 18px rgba(34, 211, 238, 0.72) !important;
  }

  :is(body.user-desktop-shell:not(.admin-shell), body.admin-shell) #dashboard .db-nl.active i {
    border-color: rgba(255, 255, 255, 0.2) !important;
    background: rgba(255, 255, 255, 0.16) !important;
    color: #ffffff !important;
    box-shadow: none !important;
  }

  :is(body.user-desktop-shell:not(.admin-shell), body.admin-shell) #dashboard .db-bottom {
    flex: 0 0 auto !important;
    padding: 16px 20px 18px !important;
    border-top: 1px solid rgba(125, 211, 252, 0.11) !important;
    background: rgba(2, 13, 34, 0.38) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
  }

  :is(body.user-desktop-shell:not(.admin-shell), body.admin-shell) #dashboard .db-upgrade-card {
    position: relative !important;
    z-index: 1 !important;
    display: grid !important;
    grid-template-columns: 46px minmax(0, 1fr) !important;
    gap: 11px 12px !important;
    width: 100% !important;
    margin: 0 0 16px !important;
    padding: 14px !important;
    border: 1px solid rgba(129, 140, 248, 0.28) !important;
    border-radius: 8px !important;
    background:
      linear-gradient(145deg, rgba(49, 46, 129, 0.78), rgba(15, 23, 42, 0.74)),
      linear-gradient(180deg, rgba(96, 165, 250, 0.16), rgba(96, 165, 250, 0)) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 28px rgba(0, 0, 0, 0.2) !important;
    overflow: hidden !important;
  }

  :is(body.user-desktop-shell:not(.admin-shell), body.admin-shell) #dashboard .db-upgrade-icon {
    width: 46px !important;
    height: 46px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 8px !important;
    background: linear-gradient(135deg, #2563eb, #7c3aed) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 24px rgba(79, 70, 229, 0.34) !important;
  }

  :is(body.user-desktop-shell:not(.admin-shell), body.admin-shell) #dashboard .db-upgrade-icon i {
    color: #ffffff !important;
    font-size: 1.05rem !important;
  }

  :is(body.user-desktop-shell:not(.admin-shell), body.admin-shell) #dashboard .db-upgrade-copy {
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 4px !important;
  }

  :is(body.user-desktop-shell:not(.admin-shell), body.admin-shell) #dashboard .db-upgrade-copy strong,
  :is(body.user-desktop-shell:not(.admin-shell), body.admin-shell) #dashboard .db-upgrade-copy small {
    display: block !important;
    overflow: hidden !important;
    letter-spacing: 0 !important;
    text-overflow: ellipsis !important;
  }

  :is(body.user-desktop-shell:not(.admin-shell), body.admin-shell) #dashboard .db-upgrade-copy strong {
    color: #ffffff !important;
    font-size: 0.9rem !important;
    font-weight: 900 !important;
    line-height: 1.18 !important;
    white-space: nowrap !important;
  }

  :is(body.user-desktop-shell:not(.admin-shell), body.admin-shell) #dashboard .db-upgrade-copy small {
    color: rgba(226, 232, 240, 0.84) !important;
    font-size: 0.72rem !important;
    font-weight: 650 !important;
    line-height: 1.35 !important;
    white-space: normal !important;
  }

  :is(body.user-desktop-shell:not(.admin-shell), body.admin-shell) #dashboard .db-upgrade-action {
    grid-column: 1 / -1 !important;
    min-height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    border-radius: 8px !important;
    background: linear-gradient(90deg, #38bdf8 0%, #8b5cf6 100%) !important;
    color: #ffffff !important;
    font-size: 0.82rem !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
    letter-spacing: 0 !important;
    box-shadow: 0 10px 24px rgba(59, 130, 246, 0.28) !important;
  }

  :is(body.user-desktop-shell:not(.admin-shell), body.admin-shell) #dashboard .db-upgrade-action i {
    color: #ffffff !important;
    font-size: 0.78rem !important;
  }

  :is(body.user-desktop-shell:not(.admin-shell), body.admin-shell) #dashboard .db-logout-form {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding-top: 14px !important;
    border-top: 1px solid rgba(125, 211, 252, 0.1) !important;
  }

  :is(body.user-desktop-shell:not(.admin-shell), body.admin-shell) #dashboard .db-bottom .db-nl {
    min-height: 48px !important;
    margin: 0 !important;
    padding: 6px 8px !important;
    border-color: transparent !important;
    background: transparent !important;
    color: #fb7185 !important;
  }

  :is(body.user-desktop-shell:not(.admin-shell), body.admin-shell) #dashboard .db-bottom .db-nl:hover {
    border-color: rgba(251, 113, 133, 0.2) !important;
    background: rgba(225, 29, 72, 0.13) !important;
    color: #fecdd3 !important;
  }

  :is(body.user-desktop-shell:not(.admin-shell), body.admin-shell) #dashboard .db-bottom .db-nl i {
    color: #fb7185 !important;
    border-color: rgba(251, 113, 133, 0.18) !important;
    background: rgba(225, 29, 72, 0.18) !important;
    box-shadow: none !important;
  }

  :is(body.user-desktop-shell:not(.admin-shell), body.admin-shell) #dashboard .db-main {
    margin-left: var(--dsb) !important;
  }

  :is(body.user-desktop-shell:not(.admin-shell), body.admin-shell) #dashboard .db-top {
    left: var(--dsb) !important;
  }

  :is(body.user-desktop-shell.collapsed-sidebar:not(.admin-shell), body.admin-shell.collapsed-sidebar) #dashboard {
    --dsb: 84px;
  }

  :is(body.user-desktop-shell.collapsed-sidebar:not(.admin-shell), body.admin-shell.collapsed-sidebar) #dashboard .db-sidebar {
    width: 84px !important;
    min-width: 84px !important;
    max-width: 84px !important;
  }

  :is(body.user-desktop-shell.collapsed-sidebar:not(.admin-shell), body.admin-shell.collapsed-sidebar) #dashboard .db-logo {
    min-height: 84px !important;
    padding: 14px 0 !important;
    justify-content: center !important;
  }

  :is(body.user-desktop-shell.collapsed-sidebar:not(.admin-shell), body.admin-shell.collapsed-sidebar) #dashboard .db-brand {
    justify-content: center !important;
  }

  :is(body.user-desktop-shell.collapsed-sidebar:not(.admin-shell), body.admin-shell.collapsed-sidebar) #dashboard .db-logo .logo-i {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
  }

  :is(body.user-desktop-shell.collapsed-sidebar:not(.admin-shell), body.admin-shell.collapsed-sidebar) #dashboard .db-brand-copy,
  :is(body.user-desktop-shell.collapsed-sidebar:not(.admin-shell), body.admin-shell.collapsed-sidebar) #dashboard .db-nav-section,
  :is(body.user-desktop-shell.collapsed-sidebar:not(.admin-shell), body.admin-shell.collapsed-sidebar) #dashboard .db-nav-label,
  :is(body.user-desktop-shell.collapsed-sidebar:not(.admin-shell), body.admin-shell.collapsed-sidebar) #dashboard .db-upgrade-card {
    display: none !important;
  }

  :is(body.user-desktop-shell.collapsed-sidebar:not(.admin-shell), body.admin-shell.collapsed-sidebar) #dashboard .db-nav {
    padding: 4px 12px 12px !important;
    overflow-y: auto !important;
  }

  :is(body.user-desktop-shell.collapsed-sidebar:not(.admin-shell), body.admin-shell.collapsed-sidebar) #dashboard .db-nl {
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    min-height: 48px !important;
    margin: 0 auto 9px !important;
    padding: 5px !important;
    justify-content: center !important;
    gap: 0 !important;
  }

  :is(body.user-desktop-shell.collapsed-sidebar:not(.admin-shell), body.admin-shell.collapsed-sidebar) #dashboard .db-nl i {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    flex-basis: 36px !important;
  }

  :is(body.user-desktop-shell.collapsed-sidebar:not(.admin-shell), body.admin-shell.collapsed-sidebar) #dashboard .db-nl.active::before {
    left: -8px !important;
    top: 9px !important;
    bottom: 9px !important;
  }

  :is(body.user-desktop-shell.collapsed-sidebar:not(.admin-shell), body.admin-shell.collapsed-sidebar) #dashboard .db-bottom {
    padding: 12px 12px 16px !important;
  }

  :is(body.user-desktop-shell.collapsed-sidebar:not(.admin-shell), body.admin-shell.collapsed-sidebar) #dashboard .db-logout-form {
    padding-top: 0 !important;
    border-top: 0 !important;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  :is(body.user-desktop-shell:not(.admin-shell), body.admin-shell) #dashboard {
    --dsb: 276px;
  }

  :is(body.user-desktop-shell:not(.admin-shell), body.admin-shell) #dashboard .db-logo {
    padding-inline: 18px !important;
  }

  :is(body.user-desktop-shell:not(.admin-shell), body.admin-shell) #dashboard .db-nav,
  :is(body.user-desktop-shell:not(.admin-shell), body.admin-shell) #dashboard .db-bottom {
    padding-inline: 16px !important;
  }

  :is(body.user-desktop-shell:not(.admin-shell), body.admin-shell) #dashboard .db-brand-text {
    font-size: 0.98rem !important;
  }

  :is(body.user-desktop-shell:not(.admin-shell), body.admin-shell) #dashboard .db-brand-subtitle {
    font-size: 0.68rem !important;
  }

  :is(body.user-desktop-shell.collapsed-sidebar:not(.admin-shell), body.admin-shell.collapsed-sidebar) #dashboard {
    --dsb: 84px;
  }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
  :is(body.user-desktop-shell:not(.admin-shell), body.admin-shell) #dashboard {
    --dsb: 288px;
  }

  :is(body.user-desktop-shell.collapsed-sidebar:not(.admin-shell), body.admin-shell.collapsed-sidebar) #dashboard {
    --dsb: 84px;
  }
}

@media (min-width: 992px) and (max-height: 820px) {
  :is(body.user-desktop-shell:not(.admin-shell), body.admin-shell) #dashboard .db-logo {
    min-height: 92px !important;
    padding-block: 18px 14px !important;
  }

  :is(body.user-desktop-shell:not(.admin-shell), body.admin-shell) #dashboard .db-logo .logo-i {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
  }

  :is(body.user-desktop-shell:not(.admin-shell), body.admin-shell) #dashboard .db-nav-section {
    margin-top: 14px !important;
    margin-bottom: 7px !important;
    font-size: 0.64rem !important;
  }

  :is(body.user-desktop-shell:not(.admin-shell), body.admin-shell) #dashboard .db-nl {
    min-height: 44px !important;
    padding-block: 5px !important;
    font-size: 0.86rem !important;
  }

  :is(body.user-desktop-shell:not(.admin-shell), body.admin-shell) #dashboard .db-nl i {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    flex-basis: 34px !important;
  }

  :is(body.user-desktop-shell:not(.admin-shell), body.admin-shell) #dashboard .db-upgrade-card {
    padding: 12px !important;
    margin-bottom: 12px !important;
  }

  :is(body.user-desktop-shell:not(.admin-shell), body.admin-shell) #dashboard .db-upgrade-copy small {
    display: none !important;
  }

  :is(body.user-desktop-shell:not(.admin-shell), body.admin-shell) #dashboard .db-upgrade-action {
    min-height: 36px !important;
  }
}

/* Desktop register modal: keep the complete form visible without an inner scroll. */
@media (min-width: 576px) {
  #lofc.auth-modal:has(#fSignup[aria-hidden="false"]) .auth-modal-body {
    overflow-y: hidden;
  }

  #lofc.auth-modal #fSignup .auth-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
  }

  #lofc.auth-modal #fSignup .auth-form > .err-msg,
  #lofc.auth-modal #fSignup .auth-form > .auth-terms,
  #lofc.auth-modal #fSignup .auth-form > .auth-submit {
    grid-column: 1 / -1;
  }

  #lofc.auth-modal #fSignup .auth-register-email {
    grid-column: 1 / -1;
  }

  #lofc.auth-modal #fSignup .auth-register-password {
    grid-column: 1;
  }

  #lofc.auth-modal #fSignup .auth-register-confirm-password {
    grid-column: 2;
  }

  #lofc.auth-modal #fLogin .auth-input-icon,
  #lofc.auth-modal #fSignup .auth-input-icon {
    display: none;
  }

  #lofc.auth-modal #fLogin .auth-input-wrap .oinp,
  #lofc.auth-modal #fSignup .auth-input-wrap .oinp {
    padding-left: 12px !important;
  }

  #lofc.auth-modal #fSignup .auth-form > .err-msg {
    margin-bottom: 2px;
  }

  #lofc.auth-modal #fSignup .auth-field {
    min-width: 0;
    margin-bottom: 0;
  }

  #lofc.auth-modal #fSignup .olbl {
    margin-bottom: 3px;
    font-size: 0.72rem;
  }

  #lofc.auth-modal #fSignup .auth-input-wrap {
    min-height: 42px;
  }

  #lofc.auth-modal #fSignup .auth-input-icon {
    flex-basis: 29px;
    width: 29px;
    height: 29px;
    margin-left: 7px;
    margin-right: 3px;
    border-radius: 7px;
    font-size: 0.78rem;
  }

  #lofc.auth-modal #fSignup .auth-input-wrap .oinp {
    height: 40px;
    padding: 0 9px !important;
    font-size: 0.8rem;
  }

  #lofc.auth-modal #fSignup .auth-input-wrap.password-field .oinp {
    padding-right: 43px !important;
  }

  #lofc.auth-modal #fSignup .auth-input-wrap .password-toggle {
    right: 6px !important;
    width: 30px !important;
    min-width: 30px !important;
    max-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
  }

  #lofc.auth-modal #fSignup .auth-field small {
    margin-top: 2px !important;
    font-size: 0.64rem !important;
    line-height: 1.2;
  }

  #lofc.auth-modal #fSignup .auth-terms {
    gap: 7px;
    margin: 0 0 4px;
  }

  #lofc.auth-modal #fSignup .auth-terms .form-check-input {
    flex-basis: 18px;
    width: 18px;
    height: 18px;
  }

  #lofc.auth-modal #fSignup .auth-terms .form-check-label {
    font-size: 0.7rem;
    line-height: 1.3;
  }

  #lofc.auth-modal #fSignup .auth-submit {
    min-height: 44px;
    font-size: 0.82rem;
  }

  #lofc.auth-modal #fSignup + .auth-divider {
    margin: 10px 0 8px;
    font-size: 0.7rem;
  }

  #lofc.auth-modal #fSignup + .auth-divider + .auth-oauth {
    min-height: 42px;
    font-size: 0.8rem;
  }

  #lofc.auth-modal #fSignup + .auth-divider + .auth-oauth + .auth-secure-note {
    margin-top: 10px;
    font-size: 0.68rem;
  }
}

/* Final desktop sidebar contrast guard for the upgrade card. */
@media (min-width: 992px) {
  body.user-desktop-shell:not(.admin-shell) #dashboard .db-upgrade-card {
    color: #ffffff !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-upgrade-card .db-upgrade-copy strong,
  body.user-desktop-shell:not(.admin-shell) #dashboard .db-upgrade-card .db-upgrade-action,
  body.user-desktop-shell:not(.admin-shell) #dashboard .db-upgrade-card .db-upgrade-action i {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-upgrade-card .db-upgrade-copy small {
    color: rgba(255, 255, 255, 0.86) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.86) !important;
  }
}

/* Final desktop sidebar sizing: larger controls that use the available height. */
@media (min-width: 992px) {
  body.user-desktop-shell:not(.admin-shell) #dashboard .db-sidebar {
    overflow: hidden !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-logo {
    min-height: 90px !important;
    padding: 18px 20px 14px !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-logo .logo-i {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    box-shadow:
      0 0 0 5px rgba(37, 99, 235, 0.14),
      0 10px 24px rgba(59, 130, 246, 0.34) !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-brand {
    gap: 11px !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-brand-copy {
    gap: 2px !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-brand-text {
    font-size: 1.04rem !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-brand-subtitle {
    font-size: 0.7rem !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-nav {
    padding: 0 20px 14px !important;
    overflow-y: auto !important;
    scrollbar-width: thin !important;
    scrollbar-color: rgba(125, 211, 252, 0.34) transparent !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-nav::-webkit-scrollbar {
    display: block !important;
    width: 5px !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-nav::-webkit-scrollbar-thumb {
    border-radius: 999px !important;
    background: rgba(125, 211, 252, 0.28) !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-nav-section {
    margin: 18px 6px 9px !important;
    font-size: 0.74rem !important;
    line-height: 1.12 !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-nl {
    min-height: 54px !important;
    margin-bottom: 6px !important;
    padding: 7px 10px !important;
    gap: 12px !important;
    font-size: 1rem !important;
    line-height: 1.14 !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-nl i {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    flex-basis: 40px !important;
    font-size: 1.08rem !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-nl.active::before {
    left: -11px !important;
    top: 8px !important;
    bottom: 8px !important;
    width: 4px !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-bottom {
    padding: 14px 20px 16px !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-upgrade-card {
    grid-template-columns: 36px minmax(0, 1fr) !important;
    gap: 8px 10px !important;
    margin-bottom: 10px !important;
    padding: 10px !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-upgrade-icon {
    width: 36px !important;
    height: 36px !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-upgrade-icon i {
    font-size: 0.86rem !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-upgrade-copy strong {
    font-size: 0.82rem !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-upgrade-copy small {
    display: none !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-upgrade-action {
    min-height: 34px !important;
    font-size: 0.78rem !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-logout-form {
    padding-top: 12px !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-bottom .db-nl {
    min-height: 54px !important;
    padding: 7px 10px !important;
  }
}

@media (min-width: 992px) and (max-height: 820px) {
  body.user-desktop-shell:not(.admin-shell) #dashboard .db-logo {
    min-height: 78px !important;
    padding-block: 14px 10px !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-logo .logo-i {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-brand-text {
    font-size: 0.96rem !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-brand-subtitle {
    font-size: 0.64rem !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-nav {
    padding-bottom: 10px !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-nav-section {
    margin-top: 13px !important;
    margin-bottom: 6px !important;
    font-size: 0.66rem !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-nl {
    min-height: 45px !important;
    margin-bottom: 4px !important;
    padding-block: 5px !important;
    font-size: 0.9rem !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-nl i {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    flex-basis: 34px !important;
    font-size: 0.95rem !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-bottom {
    padding-block: 11px 13px !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-logout-form {
    padding-top: 9px !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-bottom .db-nl {
    min-height: 45px !important;
  }
}

/* ======================== ADMIN DESKTOP SHELL LAYOUT GUARD ======================== */
@media (min-width: 992px) {
  body.admin-shell #dashboard,
  body.admin-shell #dashboard .db-main,
  body.admin-shell #dashboard .db-top,
  body.admin-shell #dashboard .db-content {
    min-width: 0 !important;
  }

  body.admin-shell #dashboard {
    overflow-x: clip !important;
  }

  body.admin-shell #dashboard .db-main {
    width: auto !important;
    max-width: calc(100vw - var(--dsb, 304px)) !important;
    overflow-x: clip !important;
  }

  body.admin-shell #dashboard .db-top {
    width: auto !important;
    max-width: calc(100vw - var(--dsb, 304px)) !important;
    right: 0 !important;
    overflow: visible !important;
  }

  body.admin-shell #dashboard .db-page-context {
    min-width: 0 !important;
    max-width: min(24vw, 270px) !important;
  }

  body.admin-shell #dashboard .db-page-context strong {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body.admin-shell #dashboard .db-top-search {
    flex: 1 1 260px !important;
    min-width: 0 !important;
    max-width: min(34vw, 430px) !important;
  }

  body.admin-shell #dashboard .db-top-search input {
    min-width: 0 !important;
    width: 100% !important;
  }

  body.admin-shell #dashboard .db-top-admin-search {
    height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 0 10px 0 14px !important;
    border: 1px solid var(--shell-border) !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035) !important;
  }

  .lm body.admin-shell #dashboard .db-top-admin-search,
  html.lm body.admin-shell #dashboard .db-top-admin-search {
    background: rgba(15, 23, 42, 0.025) !important;
  }

  body.admin-shell #dashboard .db-top-admin-search:focus-within {
    border-color: rgba(96, 165, 250, 0.58) !important;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.13) !important;
  }

  body.admin-shell #dashboard .db-top-admin-search input {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    color: var(--tx) !important;
    box-shadow: none !important;
  }

  body.admin-shell #dashboard .db-top-admin-search input::placeholder {
    color: var(--tx3) !important;
    opacity: 1 !important;
  }

  body.admin-shell #dashboard .db-top-admin-search > i {
    position: static !important;
    inset: auto !important;
    width: auto !important;
    height: auto !important;
    min-width: 14px !important;
    transform: none !important;
    color: #60a5fa !important;
    font-size: 0.9rem !important;
  }

  body.admin-shell #dashboard .db-top-admin-search .db-search-count {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 40px !important;
    color: var(--tx3) !important;
    font-size: 0.66rem !important;
    font-weight: 850 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  body.admin-shell #dashboard .db-top-admin-search .db-search-clear {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    border: 1px solid rgba(148, 163, 184, 0.24) !important;
    border-radius: 8px !important;
    background: rgba(15, 23, 42, 0.08) !important;
    color: var(--tx2) !important;
  }

  body.admin-shell #dashboard .db-top-admin-search .db-search-clear[hidden] {
    display: none !important;
  }

  body.admin-shell #dashboard .db-top-admin-search .db-search-clear:hover,
  body.admin-shell #dashboard .db-top-admin-search .db-search-clear:focus-visible {
    border-color: rgba(96, 165, 250, 0.46) !important;
    color: #60a5fa !important;
    outline: none !important;
  }

  body.admin-shell #dashboard .db-top-admin-search .db-search-clear i {
    position: static !important;
    inset: auto !important;
    width: auto !important;
    height: auto !important;
    transform: none !important;
    color: currentColor !important;
    font-size: 0.72rem !important;
  }

  body.admin-shell #dashboard .sr-search-highlight {
    border-radius: 4px !important;
    background: #fde68a !important;
    color: #713f12 !important;
    -webkit-text-fill-color: #713f12 !important;
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.18) !important;
  }

  body.admin-shell #dashboard .sr-search-highlight.is-current {
    background: #fb923c !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    box-shadow: 0 0 0 2px rgba(251, 146, 60, 0.28) !important;
  }

  body.admin-shell #dashboard .db-top-actions {
    min-width: 0 !important;
    flex: 0 0 auto !important;
    overflow: visible !important;
    position: relative;
    z-index: 1201;
  }

  body.admin-shell #dashboard .admin-activity-dropdown-wrap {
    position: relative;
  }

  body.admin-shell #dashboard .admin-activity-dropdown-menu {
    --admin-activity-panel: rgba(15, 23, 42, 0.96);
    --admin-activity-card: rgba(30, 41, 59, 0.72);
    --admin-activity-soft: rgba(30, 41, 59, 0.82);
    --admin-activity-border: rgba(148, 163, 184, 0.24);
    --admin-activity-title: #f8fafc;
    --admin-activity-text: #e2e8f0;
    --admin-activity-muted: #cbd5e1;
    --admin-activity-accent: #93c5fd;
    --admin-activity-danger: #fca5a5;
    --admin-activity-danger-bg: rgba(239, 68, 68, 0.14);
    --admin-activity-danger-border: rgba(248, 113, 113, 0.34);
    width: min(420px, calc(100vw - 30px));
    min-width: 0;
    max-width: min(420px, calc(100vw - var(--dsb, 304px) - 32px)) !important;
    padding: 0;
    border: 1px solid var(--admin-activity-border);
    border-radius: 14px;
    background: var(--admin-activity-panel);
    color: var(--admin-activity-title);
    overflow: hidden;
    z-index: 1300;
    inset: auto 0 auto auto !important;
    transform: translate3d(0, 48px, 0) !important;
  }

  .lm body.admin-shell #dashboard .admin-activity-dropdown-menu {
    --admin-activity-panel: rgba(255, 255, 255, 0.98);
    --admin-activity-card: #ffffff;
    --admin-activity-soft: #f8fafc;
    --admin-activity-border: rgba(148, 163, 184, 0.28);
    --admin-activity-title: #0f172a;
    --admin-activity-text: #334155;
    --admin-activity-muted: #64748b;
    --admin-activity-accent: #2563eb;
    --admin-activity-danger: #ef4444;
    --admin-activity-danger-bg: #fff1f2;
    --admin-activity-danger-border: rgba(248, 113, 113, 0.28);
  }

  body.admin-shell #dashboard .admin-activity-header {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 10px 10px 12px;
    border-bottom: 1px solid var(--admin-activity-border);
    background: var(--admin-activity-panel);
  }

  body.admin-shell #dashboard .admin-activity-title {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--admin-activity-title);
    font-size: 0.84rem;
    font-weight: 900;
    line-height: 1.12;
  }

  body.admin-shell #dashboard .admin-activity-title > i {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--admin-activity-accent) !important;
    font-size: 0.78rem;
  }

  body.admin-shell #dashboard .admin-activity-count {
    flex: 0 0 auto;
    margin-left: 0 !important;
    border: 1px solid var(--admin-activity-danger-border);
    border-radius: 999px;
    background: var(--admin-activity-danger-bg) !important;
    color: var(--admin-activity-danger) !important;
    font-size: 0.58rem !important;
    font-weight: 900 !important;
    padding: 2px 6px !important;
  }

  body.admin-shell #dashboard .admin-activity-actions {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
  }

  body.admin-shell #dashboard .admin-activity-action {
    min-width: 30px;
    min-height: 30px;
    padding: 6px 8px;
    border: 1px solid var(--admin-activity-border);
    border-radius: 8px;
    background: var(--admin-activity-soft);
    color: var(--admin-activity-title);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 0.62rem;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
  }

  body.admin-shell #dashboard .admin-activity-action.danger {
    border-color: var(--admin-activity-danger-border);
    background: var(--admin-activity-danger-bg);
    color: var(--admin-activity-danger) !important;
  }

  body.admin-shell #dashboard .admin-activity-list {
    min-height: 72px;
    max-height: min(58dvh, 390px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 10px;
    background: var(--admin-activity-panel);
  }

  body.admin-shell #dashboard .admin-activity-item {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 9px;
    align-items: flex-start;
    padding: 10px;
    border: 1px solid var(--admin-activity-border);
    border-radius: 8px;
    background: var(--admin-activity-card);
    box-shadow: 0 1px 0 rgba(148, 163, 184, 0.08);
    margin-bottom: 8px;
    color: var(--admin-activity-title);
    white-space: normal;
  }

  body.admin-shell #dashboard .admin-activity-item.is-unread {
    border-color: rgba(96, 165, 250, 0.42);
    background: color-mix(in srgb, var(--admin-activity-card) 86%, #2563eb 14%);
  }

  body.admin-shell #dashboard .admin-activity-ico {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 8px;
    background: rgba(37, 99, 235, 0.12);
    color: var(--admin-activity-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.84rem;
  }

  body.admin-shell #dashboard .admin-activity-copy {
    min-width: 0;
  }

  body.admin-shell #dashboard .admin-activity-row-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
  }

  body.admin-shell #dashboard .admin-activity-row-head strong {
    min-width: 0;
    color: var(--admin-activity-title);
    font-size: 0.76rem;
    font-weight: 900;
    line-height: 1.22;
    overflow-wrap: anywhere;
  }

  body.admin-shell #dashboard .admin-activity-row-head small {
    flex: 0 0 auto;
    color: var(--admin-activity-muted);
    font-size: 0.58rem;
    font-weight: 800;
    line-height: 1.3;
    padding-top: 2px;
  }

  body.admin-shell #dashboard .admin-activity-copy > span {
    display: block;
    color: var(--admin-activity-text);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.32;
    overflow-wrap: anywhere;
  }

  body.admin-shell #dashboard .admin-activity-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
  }

  body.admin-shell #dashboard .admin-activity-link-btn {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--admin-activity-accent) !important;
    padding: 0 !important;
    font-size: 0.64rem !important;
    font-weight: 900 !important;
    line-height: 1.25 !important;
    text-align: left !important;
    box-shadow: none !important;
  }

  body.admin-shell #dashboard .admin-activity-link-btn.danger {
    color: var(--admin-activity-danger) !important;
  }

  body.admin-shell #dashboard .admin-activity-footer {
    padding: 10px;
    border-top: 1px solid var(--admin-activity-border);
    background: var(--admin-activity-panel);
  }

  body.admin-shell #dashboard .admin-activity-view-all {
    width: 100%;
    min-height: 36px;
    border: 1px solid var(--admin-activity-border);
    border-radius: 8px;
    background: var(--admin-activity-card);
    color: var(--admin-activity-title);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    font-size: 0.7rem;
    font-weight: 900;
    line-height: 1.2;
    box-shadow: 0 1px 0 rgba(148, 163, 184, 0.08);
  }

  body.admin-shell #dashboard .admin-activity-view-all i {
    color: var(--admin-activity-accent);
    font-size: 0.72rem;
  }

  body.admin-shell #dashboard .db-content {
    width: 100% !important;
    max-width: min(var(--desktop-content-max, 1720px), calc(100vw - var(--dsb, 304px))) !important;
    overflow-x: clip !important;
  }

  body.admin-shell #dashboard .db-content :where(.db-section, .row, [class*="col-"], .premium-card, .card, .table-responsive, .tab-content) {
    min-width: 0 !important;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  body.admin-shell #dashboard .db-top-search {
    max-width: 260px !important;
  }
}

body.admin-shell.collapsed-sidebar #dashboard .db-main,
body.admin-shell.collapsed-sidebar #dashboard .db-top,
body.admin-shell.collapsed-sidebar #dashboard .db-content {
  max-width: calc(100vw - 84px) !important;
}

body.user-desktop-shell:not(.admin-shell) #dashboard .db-user-pill {
  min-width: 0 !important;
  overflow: hidden !important;
}

body.user-desktop-shell:not(.admin-shell) #dashboard .db-user-pill > .d-none.d-md-block {
  min-width: 0 !important;
  max-width: 150px !important;
}

body.user-desktop-shell:not(.admin-shell) #dashboard #userName,
body.user-desktop-shell:not(.admin-shell) #dashboard #userPlan {
  max-width: 150px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

@media (min-width: 992px) and (max-width: 1100px) {
  body.user-desktop-shell:not(.admin-shell) #dashboard .db-user-pill > .d-none.d-md-block {
    display: none !important;
  }
}

/* Reference-style authentication modal */
#lofc.auth-modal {
  --auth-paper: #ffffff;
  --auth-paper-soft: #f7fbff;
  --auth-ink: #111a32;
  --auth-copy: #51607d;
  --auth-muted: #6d7890;
  --auth-line: #d7e0ec;
  --auth-line-strong: #cbd7e6;
  --auth-blue: #1d67f2;
  --auth-blue-dark: #1457d8;
  --auth-cyan: #0ea5e9;
  --auth-focus: rgba(29, 103, 242, 0.16);
  width: 100%;
  color: var(--auth-ink);
}

#lofc.auth-modal .modal-dialog {
  width: min(650px, calc(100vw - 32px));
  max-width: 650px;
  margin: 16px auto;
}

#lofc.auth-modal .auth-modal-content {
  position: relative;
  max-height: calc(100dvh - 32px);
  overflow: hidden;
  border: 1px solid rgba(203, 215, 230, 0.94);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 64%, rgba(239, 246, 255, 0.98) 100%);
  color: var(--auth-ink);
  box-shadow:
    0 34px 90px rgba(15, 23, 42, 0.34),
    0 1px 0 rgba(255, 255, 255, 0.88) inset;
}

#lofc.auth-modal .auth-modal-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 30px 38px 26px;
  border-bottom: 1px solid rgba(203, 213, 225, 0.58);
  background:
    radial-gradient(circle at 13% 16%, rgba(14, 165, 233, 0.12), transparent 34%),
    linear-gradient(120deg, #ffffff 0%, #ffffff 54%, #f8fbff 100%);
}

#lofc.auth-modal .auth-modal-header::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: min(270px, 52%);
  opacity: 0.7;
  pointer-events: none;
  background-image: radial-gradient(rgba(125, 190, 255, 0.5) 1.25px, transparent 1.35px);
  background-size: 12px 12px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 100%);
}

#lofc.auth-modal .auth-modal-brand {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 18px;
}

#lofc.auth-modal .auth-logo-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 66px;
  width: 66px;
  height: 66px;
  overflow: hidden;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.22);
}

#lofc.auth-modal .auth-logo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#lofc.auth-modal .auth-brand-copy {
  min-width: 0;
}

#lofc.auth-modal .auth-brand-title {
  color: var(--auth-ink);
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.45rem, 2.5vw, 1.82rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0;
}

#lofc.auth-modal .auth-brand-subtitle {
  display: block;
  margin-top: 8px;
  color: var(--auth-copy);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
}

#lofc.auth-modal .auth-close-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #0f172a;
  font-size: 2.1rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

#lofc.auth-modal .auth-close-button:hover,
#lofc.auth-modal .auth-close-button:focus-visible {
  color: var(--auth-blue-dark);
  background: rgba(37, 99, 235, 0.08);
  outline: none;
  transform: translateY(-1px);
}

#lofc.auth-modal .auth-modal-body {
  position: relative;
  z-index: 2;
  max-height: calc(100dvh - 158px);
  overflow-y: auto;
  padding: 22px 38px 50px !important;
  scrollbar-gutter: stable;
}

#lofc.auth-modal .auth-modal-body::-webkit-scrollbar {
  width: 8px;
}

#lofc.auth-modal .auth-modal-body::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.34);
  background-clip: content-box;
}

#lofc.auth-modal .auth-tab-switch {
  display: flex;
  height: 58px;
  gap: 0;
  overflow: hidden;
  padding: 0;
  margin: 0 0 26px;
  border: 1px solid rgba(203, 213, 225, 0.72);
  border-radius: 13px;
  background: rgba(248, 250, 252, 0.92);
  box-shadow:
    0 10px 28px rgba(15, 23, 42, 0.05),
    0 1px 0 rgba(255, 255, 255, 0.92) inset;
}

#lofc.auth-modal .tab-sw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  min-height: 56px;
  padding: 0 16px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #3f4d68;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  transition: none;
}

#lofc.auth-modal .tab-sw-btn i {
  font-size: 0.98rem;
}

#lofc.auth-modal .tab-sw-btn.on {
  color: #ffffff;
  background: linear-gradient(135deg, var(--auth-blue-dark), #1e7cf7);
  box-shadow: 0 12px 24px rgba(29, 103, 242, 0.32);
}

#lofc.auth-modal .tab-sw-btn:not(.on):hover,
#lofc.auth-modal .tab-sw-btn:not(.on):focus-visible {
  color: var(--auth-blue-dark);
  background: rgba(37, 99, 235, 0.06);
  outline: none;
}

#lofc.auth-modal .auth-panel {
  animation: none;
  transform-origin: center top;
}

#lofc.auth-modal .auth-panel.is-entering {
  animation: none !important;
}

#lofc.auth-modal .auth-panel.is-switching-out {
  animation: none;
}

@keyframes authPanelIn {
  from {
    opacity: 0;
    transform: translateY(4px) scale(0.996);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  #lofc.auth-modal .auth-panel,
  #lofc.auth-modal .auth-panel.is-entering,
  #lofc.auth-modal .auth-panel.is-switching-out {
    animation: none !important;
    transform: none !important;
  }
}

#lofc.auth-modal .auth-intro {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 8px 8px 24px;
}

#lofc.auth-modal .auth-robot-avatar {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 112px;
  width: 112px;
  height: 112px;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(180deg, #eef5ff 0%, #dceaff 100%);
  box-shadow: 0 15px 30px rgba(37, 99, 235, 0.13);
}

#lofc.auth-modal .auth-robot-avatar img {
  width: 148%;
  height: 148%;
  object-fit: cover;
  object-position: 48% 34%;
  transform: translate(-7%, 12%);
}

#lofc.auth-modal .auth-panel-title {
  margin: 0 0 8px;
  color: var(--auth-ink);
  font-size: clamp(1.36rem, 2.1vw, 1.58rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.18;
}

#lofc.auth-modal .auth-panel-copy {
  display: block;
  max-width: 38ch;
  color: var(--auth-copy);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.55;
}

#lofc.auth-modal .auth-form {
  margin: 0;
}

#lofc.auth-modal .auth-field {
  margin-bottom: 17px;
}

#lofc.auth-modal .olbl {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 8px;
  color: #3b4963;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.2;
}

#lofc.auth-modal .olbl i {
  width: 14px;
  color: #53617d;
  font-size: 0.84rem;
}

#lofc.auth-modal .auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 58px;
  border: 1px solid var(--auth-line-strong);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.96) inset;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

#lofc.auth-modal .auth-input-wrap:focus-within {
  border-color: var(--auth-blue);
  box-shadow:
    0 0 0 4px var(--auth-focus),
    0 12px 26px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

#lofc.auth-modal .auth-input-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  margin-left: 10px;
  border-radius: 10px;
  background: #f2f6fb;
  color: #4c5a76;
  font-size: 1rem;
}

#lofc.auth-modal .auth-input-wrap .oinp {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  height: 56px;
  margin: 0 !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #4e5d78 !important;
  -webkit-text-fill-color: #4e5d78 !important;
  font-family: "Poppins", sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
}

#lofc.auth-modal .auth-input-wrap .oinp::placeholder {
  color: #7a88a3 !important;
  -webkit-text-fill-color: #7a88a3 !important;
  opacity: 1;
}

#lofc.auth-modal .auth-input-wrap.password-field .oinp {
  padding-right: 58px !important;
}

#lofc.auth-modal .auth-input-wrap .password-toggle {
  position: absolute !important;
  top: 50% !important;
  right: 10px !important;
  bottom: auto !important;
  left: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 38px !important;
  width: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: translateY(-50%) !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: #f4f6f9 !important;
  color: #53617d !important;
  box-shadow: none !important;
  z-index: 3 !important;
}

#lofc.auth-modal .auth-input-wrap .password-toggle:hover,
#lofc.auth-modal .auth-input-wrap .password-toggle:focus-visible {
  color: var(--auth-blue-dark) !important;
  background: #eaf2ff !important;
  outline: none !important;
}

#lofc.auth-modal .auth-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: -2px 0 18px;
}

#lofc.auth-modal .auth-check {
  display: flex;
  align-items: flex-start;
  min-width: 0;
  gap: 10px;
  margin: 0;
  padding: 0;
}

#lofc.auth-modal .auth-check .form-check-input {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 1px solid #b9c7da;
  border-radius: 6px;
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  cursor: pointer;
}

#lofc.auth-modal .auth-check .form-check-input:checked {
  border-color: var(--auth-blue);
  background-color: var(--auth-blue);
}

#lofc.auth-modal .auth-check .form-check-input:focus {
  border-color: var(--auth-blue);
  box-shadow: 0 0 0 4px var(--auth-focus);
}

#lofc.auth-modal .auth-check .form-check-label {
  min-width: 0;
  color: #40506c;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.4;
}

#lofc.auth-modal .auth-inline-link,
#lofc.auth-modal .auth-terms a {
  color: var(--auth-blue-dark);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

#lofc.auth-modal .auth-inline-link:hover,
#lofc.auth-modal .auth-terms a:hover {
  color: #0f46bd;
  text-decoration: underline;
}

#lofc.auth-modal .auth-terms {
  margin: -2px 0 18px;
}

#lofc.auth-modal .auth-terms .form-check-label {
  font-size: 0.82rem;
}

#lofc.auth-modal .auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 58px;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, #1758e8, #1884f6) !important;
  color: #ffffff !important;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 800 !important;
  line-height: 1.1;
  box-shadow: 0 14px 28px rgba(29, 103, 242, 0.31);
}

#lofc.auth-modal .auth-submit:hover,
#lofc.auth-modal .auth-submit:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(29, 103, 242, 0.36);
  outline: none;
}

#lofc.auth-modal .auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 26px 0 18px;
  color: var(--auth-muted);
  font-size: 0.9rem;
  font-weight: 700;
}

#lofc.auth-modal .auth-divider::before,
#lofc.auth-modal .auth-divider::after {
  content: "";
  flex: 1 1 0;
  height: 1px;
  background: var(--auth-line);
}

#lofc.auth-modal .auth-oauth {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 14px;
  width: 100%;
  min-height: 58px;
  margin: 0;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 9px;
  background:
    linear-gradient(135deg, rgba(66, 133, 244, 0.08), rgba(52, 168, 83, 0.08) 38%, rgba(251, 188, 5, 0.1) 68%, rgba(234, 67, 53, 0.08)) padding-box,
    linear-gradient(90deg, #4285f4, #34a853, #fbbc05, #ea4335) border-box;
  color: #1f1f1f;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow:
    0 10px 24px rgba(15, 23, 42, 0.05),
    0 1px 0 rgba(255, 255, 255, 0.92) inset;
}

#lofc.auth-modal .auth-oauth .google-auth-mark,
#lofc .oauth .google-auth-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow:
    0 1px 4px rgba(60, 64, 67, 0.2),
    0 0 0 1px rgba(218, 220, 224, 0.75);
}

#lofc.auth-modal .auth-oauth .google-auth-svg,
#lofc .oauth .google-auth-svg {
  display: block;
  width: 19px;
  height: 19px;
}

#lofc.auth-modal .auth-oauth .google-auth-spinner,
#lofc .oauth .google-auth-spinner {
  flex: 0 0 30px;
  width: 30px;
  color: #4285f4;
  font-size: 1rem;
  text-align: center;
}

#lofc.auth-modal .auth-oauth:hover,
#lofc.auth-modal .auth-oauth:focus-visible {
  color: #174ea6;
  outline: none;
  box-shadow:
    0 16px 30px rgba(66, 133, 244, 0.16),
    0 0 0 3px rgba(66, 133, 244, 0.1);
}

#lofc.auth-modal .auth-secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 30px 0 0;
  color: var(--auth-muted);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

#lofc.auth-modal .auth-secure-note i {
  color: #6f7f99;
  font-size: 0.84rem;
}

#lofc.auth-modal .auth-success-msg,
#lofc.auth-modal .err-msg {
  display: none;
  align-items: flex-start;
  gap: 9px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.45;
}

#lofc.auth-modal .auth-success-msg {
  display: flex;
  color: #047857;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

#lofc.auth-modal .err-msg.is-visible {
  display: block;
}

#lofc.auth-modal .auth-inline-alert {
  text-align: left;
}

#lofc.auth-modal .auth-reactivation-button {
  min-height: 40px;
  border: 0;
  border-radius: 9px;
  background: #f59e0b;
  color: #ffffff;
}

#lofc.auth-modal .auth-wave {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  height: 84px;
  overflow: hidden;
  pointer-events: none;
}

#lofc.auth-modal .auth-wave::before,
#lofc.auth-modal .auth-wave::after,
#lofc.auth-modal .auth-wave span {
  content: "";
  position: absolute;
  bottom: -46px;
  height: 92px;
  border-radius: 56% 44% 0 0;
}

#lofc.auth-modal .auth-wave::before {
  left: -10%;
  width: 62%;
  background: rgba(86, 151, 246, 0.18);
  transform: rotate(6deg);
}

#lofc.auth-modal .auth-wave::after {
  right: -7%;
  width: 74%;
  background: linear-gradient(135deg, rgba(43, 125, 242, 0.9), rgba(78, 145, 255, 0.62));
  transform: rotate(-4deg);
}

#lofc.auth-modal .auth-wave span {
  left: 17%;
  width: 58%;
  background: rgba(203, 226, 255, 0.72);
  transform: rotate(-2deg);
}

@media (max-height: 1040px) and (min-width: 576px) {
  #lofc.auth-modal .auth-modal-header {
    padding: 22px 38px 20px;
  }

  #lofc.auth-modal .auth-logo-frame {
    flex-basis: 58px;
    width: 58px;
    height: 58px;
  }

  #lofc.auth-modal .auth-brand-title {
    font-size: 1.54rem;
  }

  #lofc.auth-modal .auth-brand-subtitle {
    margin-top: 5px;
    font-size: 0.84rem;
  }

  #lofc.auth-modal .auth-modal-body {
    max-height: calc(100dvh - 122px);
    padding: 18px 38px 38px !important;
  }

  #lofc.auth-modal .auth-tab-switch {
    height: 54px;
    margin-bottom: 18px;
  }

  #lofc.auth-modal .tab-sw-btn {
    min-height: 52px;
    font-size: 0.94rem;
  }

  #lofc.auth-modal .auth-intro {
    gap: 20px;
    margin: 2px 6px 16px;
  }

  #lofc.auth-modal .auth-robot-avatar {
    flex-basis: 92px;
    width: 92px;
    height: 92px;
  }

  #lofc.auth-modal .auth-panel-title {
    margin-bottom: 5px;
    font-size: 1.34rem;
  }

  #lofc.auth-modal .auth-panel-copy {
    font-size: 0.92rem;
    line-height: 1.42;
  }

  #lofc.auth-modal .auth-field {
    margin-bottom: 10px;
  }

  #lofc.auth-modal .olbl {
    margin-bottom: 5px;
    font-size: 0.8rem;
  }

  #lofc.auth-modal .auth-input-wrap {
    min-height: 52px;
  }

  #lofc.auth-modal .auth-input-icon {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
    margin-left: 9px;
    border-radius: 9px;
    font-size: 0.9rem;
  }

  #lofc.auth-modal .auth-input-wrap .oinp {
    height: 50px;
    font-size: 0.9rem;
  }

  #lofc.auth-modal .auth-input-wrap .password-toggle {
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
  }

  #lofc.auth-modal .auth-options-row {
    margin: 0 0 14px;
  }

  #lofc.auth-modal .auth-check .form-check-label,
  #lofc.auth-modal .auth-inline-link {
    font-size: 0.8rem;
  }

  #lofc.auth-modal .auth-terms {
    margin: 0 0 12px;
  }

  #lofc.auth-modal .auth-submit,
  #lofc.auth-modal .auth-oauth {
    min-height: 52px;
    font-size: 0.92rem;
  }

  #lofc.auth-modal .auth-divider {
    margin: 18px 0 14px;
    font-size: 0.82rem;
  }

  #lofc.auth-modal .auth-secure-note {
    margin-top: 18px;
    font-size: 0.78rem;
  }

  #lofc.auth-modal .auth-wave {
    height: 66px;
  }
}

@media (max-width: 575.98px) {
  #lofc.auth-modal .modal-dialog {
    width: calc(100vw - 18px);
    max-width: calc(100vw - 18px);
    margin:
      max(8px, env(safe-area-inset-top, 0px))
      auto
      max(8px, env(safe-area-inset-bottom, 0px));
  }

  #lofc.auth-modal .auth-modal-content {
    max-height: calc(var(--sr-visual-vh, 100dvh) - 16px);
    border-radius: 22px;
  }

  #lofc.auth-modal .auth-modal-header {
    gap: 12px;
    padding: 18px 18px 16px;
  }

  #lofc.auth-modal .auth-logo-frame {
    flex-basis: 52px;
    width: 52px;
    height: 52px;
    border-radius: 12px;
  }

  #lofc.auth-modal .auth-modal-brand {
    gap: 13px;
  }

  #lofc.auth-modal .auth-brand-title {
    font-size: 1.28rem;
  }

  #lofc.auth-modal .auth-brand-subtitle {
    margin-top: 5px;
    font-size: 0.76rem;
  }

  #lofc.auth-modal .auth-close-button {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 1.7rem;
  }

  #lofc.auth-modal .auth-modal-body {
    max-height: calc(var(--sr-visual-vh, 100dvh) - 104px);
    padding: 18px 18px 42px !important;
  }

  #lofc.auth-modal .auth-tab-switch {
    height: 54px;
    margin-bottom: 22px;
  }

  #lofc.auth-modal .tab-sw-btn {
    min-height: 52px;
    padding: 0 10px;
    font-size: 0.91rem;
  }

  #lofc.auth-modal .auth-intro {
    gap: 15px;
    margin: 2px 2px 20px;
  }

  #lofc.auth-modal .auth-robot-avatar {
    flex-basis: 82px;
    width: 82px;
    height: 82px;
  }

  #lofc.auth-modal .auth-panel-title {
    font-size: 1.26rem;
  }

  #lofc.auth-modal .auth-panel-copy {
    font-size: 0.89rem;
    line-height: 1.5;
  }

  #lofc.auth-modal .auth-field {
    margin-bottom: 14px;
  }

  #lofc.auth-modal .olbl {
    font-size: 0.82rem;
  }

  #lofc.auth-modal .auth-input-wrap {
    min-height: 54px;
  }

  #lofc.auth-modal .auth-input-icon {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
    margin-left: 9px;
    border-radius: 9px;
    font-size: 0.92rem;
  }

  #lofc.auth-modal .auth-input-wrap .oinp {
    height: 52px;
    padding: 0 12px !important;
    font-size: 0.91rem;
  }

  #lofc.auth-modal .auth-input-wrap.password-field .oinp {
    padding-right: 52px !important;
  }

  #lofc.auth-modal .auth-input-wrap .password-toggle {
    right: 8px !important;
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
  }

  #lofc.auth-modal .auth-options-row {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 9px 14px;
    margin-bottom: 16px;
  }

  #lofc.auth-modal .auth-check .form-check-label,
  #lofc.auth-modal .auth-inline-link {
    font-size: 0.8rem;
  }

  #lofc.auth-modal .auth-submit,
  #lofc.auth-modal .auth-oauth {
    min-height: 54px;
    font-size: 0.93rem;
  }

  #lofc.auth-modal .auth-divider {
    margin: 22px 0 16px;
    font-size: 0.82rem;
  }

  #lofc.auth-modal .auth-secure-note {
    margin-top: 22px;
    padding: 0 10px;
    font-size: 0.78rem;
  }

  #lofc.auth-modal .auth-wave {
    height: 66px;
  }
}

@media (max-width: 374.98px) {
  #lofc.auth-modal .auth-modal-header {
    padding-inline: 14px;
  }

  #lofc.auth-modal .auth-modal-body {
    padding-inline: 14px !important;
  }

  #lofc.auth-modal .auth-brand-title {
    font-size: 1.12rem;
  }

  #lofc.auth-modal .auth-brand-subtitle {
    font-size: 0.7rem;
  }

  #lofc.auth-modal .auth-intro {
    align-items: flex-start;
  }

  #lofc.auth-modal .auth-robot-avatar {
    flex-basis: 72px;
    width: 72px;
    height: 72px;
  }
}

/* Compact authentication modal sizing */
#lofc.auth-modal .modal-dialog {
  width: min(500px, calc(100vw - 32px));
  max-width: 500px;
  margin: 14px auto;
}

#lofc.auth-modal .auth-modal-content {
  max-height: calc(100dvh - 28px);
  border-radius: 22px;
}

#lofc.auth-modal .auth-modal-header {
  gap: 14px;
  padding: 18px 26px 16px;
}

#lofc.auth-modal .auth-logo-frame {
  flex-basis: 54px;
  width: 54px;
  height: 54px;
  border-radius: 12px;
}

#lofc.auth-modal .auth-modal-brand {
  gap: 14px;
}

#lofc.auth-modal .auth-brand-title {
  font-size: clamp(1.28rem, 2vw, 1.5rem);
}

#lofc.auth-modal .auth-brand-subtitle {
  margin-top: 5px;
  font-size: 0.8rem;
}

#lofc.auth-modal .auth-close-button {
  flex-basis: 38px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: 1.75rem;
}

#lofc.auth-modal .auth-modal-body {
  max-height: calc(100dvh - 112px);
  padding: 14px 26px 34px !important;
}

#lofc.auth-modal .auth-tab-switch {
  height: 48px;
  margin-bottom: 16px;
  border-radius: 11px;
}

#lofc.auth-modal .tab-sw-btn {
  min-height: 46px;
  gap: 8px;
  border-radius: 9px;
  font-size: 0.88rem;
}

#lofc.auth-modal .tab-sw-btn i {
  font-size: 0.86rem;
}

#lofc.auth-modal .auth-intro {
  gap: 16px;
  margin: 0 4px 14px;
}

#lofc.auth-modal .auth-robot-avatar {
  flex-basis: 78px;
  width: 78px;
  height: 78px;
}

#lofc.auth-modal .auth-panel-title {
  margin-bottom: 4px;
  font-size: 1.22rem;
}

#lofc.auth-modal .auth-panel-copy {
  font-size: 0.86rem;
  line-height: 1.4;
}

#lofc.auth-modal .auth-field {
  margin-bottom: 12px;
}

#lofc.auth-modal .olbl {
  gap: 6px;
  margin-bottom: 4px;
  font-size: 0.76rem;
}

#lofc.auth-modal .olbl i {
  font-size: 0.74rem;
}

#lofc.auth-modal .auth-input-wrap {
  min-height: 46px;
  border-radius: 8px;
}

#lofc.auth-modal .auth-input-icon {
  flex-basis: 31px;
  width: 31px;
  height: 31px;
  margin-left: 8px;
  margin-right: 4px;
  border-radius: 8px;
  font-size: 0.82rem;
}

#lofc.auth-modal .auth-input-wrap .oinp {
  height: 44px;
  padding: 0 11px !important;
  font-size: 0.84rem;
}

#lofc.auth-modal .auth-input-wrap.password-field .oinp {
  padding-right: 46px !important;
}

#lofc.auth-modal .auth-input-wrap .password-toggle {
  right: 7px !important;
  width: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  border-radius: 8px !important;
}

#lofc.auth-modal .auth-options-row {
  gap: 10px;
  margin: 0 0 11px;
}

#lofc.auth-modal .auth-check {
  gap: 8px;
}

#lofc.auth-modal .auth-check .form-check-input {
  flex-basis: 19px;
  width: 19px;
  height: 19px;
  border-radius: 5px;
}

#lofc.auth-modal .auth-check .form-check-label,
#lofc.auth-modal .auth-inline-link,
#lofc.auth-modal .auth-terms a {
  font-size: 0.76rem;
}

#lofc.auth-modal .auth-terms {
  margin: 0 0 10px;
}

#lofc.auth-modal .auth-terms .form-check-label {
  font-size: 0.74rem;
}

#lofc.auth-modal .auth-submit,
#lofc.auth-modal .auth-oauth {
  min-height: 46px;
  border-radius: 8px !important;
  font-size: 0.86rem;
}

#lofc.auth-modal .auth-divider {
  gap: 12px;
  margin: 16px 0 12px;
  font-size: 0.76rem;
}

#lofc.auth-modal .auth-secure-note {
  gap: 8px;
  margin-top: 15px;
  font-size: 0.72rem;
}

#lofc.auth-modal .auth-secure-note i {
  font-size: 0.76rem;
}

#lofc.auth-modal .auth-wave {
  height: 54px;
}

#lofc.auth-modal .auth-wave::before,
#lofc.auth-modal .auth-wave::after,
#lofc.auth-modal .auth-wave span {
  bottom: -42px;
  height: 72px;
}

@media (max-width: 575.98px) {
  #lofc.auth-modal .modal-dialog {
    width: min(390px, calc(100vw - 30px));
    max-width: min(390px, calc(100vw - 30px));
    margin:
      max(10px, env(safe-area-inset-top, 0px))
      auto
      max(10px, env(safe-area-inset-bottom, 0px));
  }

  #lofc.auth-modal .auth-modal-content {
    max-height: calc(var(--sr-visual-vh, 100dvh) - 20px);
    border-radius: 18px;
  }

  #lofc.auth-modal .auth-modal-header {
    gap: 9px;
    padding: 13px 14px 12px;
  }

  #lofc.auth-modal .auth-logo-frame {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }

  #lofc.auth-modal .auth-modal-brand {
    gap: 10px;
  }

  #lofc.auth-modal .auth-brand-title {
    font-size: 1.05rem;
  }

  #lofc.auth-modal .auth-brand-subtitle {
    margin-top: 3px;
    font-size: 0.64rem;
  }

  #lofc.auth-modal .auth-close-button {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 1.38rem;
  }

  #lofc.auth-modal .auth-modal-body {
    max-height: calc(var(--sr-visual-vh, 100dvh) - 80px);
    padding: 14px 14px 32px !important;
  }

  #lofc.auth-modal .auth-tab-switch {
    height: 44px;
    margin-bottom: 14px;
    border-radius: 10px;
  }

  #lofc.auth-modal .tab-sw-btn {
    min-height: 42px;
    gap: 6px;
    padding: 0 8px;
    font-size: 0.8rem;
  }

  #lofc.auth-modal .auth-intro {
    gap: 11px;
    margin: 0 0 12px;
  }

  #lofc.auth-modal .auth-robot-avatar {
    flex-basis: 60px;
    width: 60px;
    height: 60px;
  }

  #lofc.auth-modal .auth-panel-title {
    font-size: 1.03rem;
  }

  #lofc.auth-modal .auth-panel-copy {
    font-size: 0.74rem;
    line-height: 1.38;
  }

  #lofc.auth-modal .auth-field {
    margin-bottom: 10px;
  }

  #lofc.auth-modal .olbl {
    font-size: 0.7rem;
  }

  #lofc.auth-modal .auth-input-wrap {
    min-height: 43px;
  }

  #lofc.auth-modal .auth-input-icon {
    flex-basis: 28px;
    width: 28px;
    height: 28px;
    margin-left: 7px;
    margin-right: 4px;
    border-radius: 7px;
    font-size: 0.74rem;
  }

  #lofc.auth-modal .auth-input-wrap .oinp {
    height: 41px;
    padding: 0 10px !important;
    font-size: 0.78rem;
  }

  #lofc.auth-modal .auth-input-wrap.password-field .oinp {
    padding-right: 42px !important;
  }

  #lofc.auth-modal .auth-input-wrap .password-toggle {
    right: 6px !important;
    width: 30px !important;
    min-width: 30px !important;
    max-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
  }

  #lofc.auth-modal .auth-options-row {
    gap: 7px 10px;
    margin-bottom: 10px;
  }

  #lofc.auth-modal .auth-check .form-check-input {
    flex-basis: 18px;
    width: 18px;
    height: 18px;
  }

  #lofc.auth-modal .auth-check .form-check-label,
  #lofc.auth-modal .auth-inline-link,
  #lofc.auth-modal .auth-terms a {
    font-size: 0.7rem;
  }

  #lofc.auth-modal .auth-submit,
  #lofc.auth-modal .auth-oauth {
    min-height: 43px;
    font-size: 0.78rem;
  }

  #lofc.auth-modal .auth-oauth {
    gap: 12px;
  }

  #lofc.auth-modal .auth-divider {
    margin: 14px 0 10px;
    font-size: 0.7rem;
  }

  #lofc.auth-modal .auth-secure-note {
    margin-top: 12px;
    padding: 0 6px;
    font-size: 0.68rem;
  }

  #lofc.auth-modal .auth-wave {
    height: 46px;
  }
}

@media (max-width: 374.98px) {
  #lofc.auth-modal .auth-modal-header {
    padding-inline: 12px;
  }

  #lofc.auth-modal .auth-modal-body {
    padding-inline: 12px !important;
  }

  #lofc.auth-modal .auth-brand-title {
    font-size: 0.98rem;
  }

  #lofc.auth-modal .auth-brand-subtitle {
    font-size: 0.6rem;
  }

  #lofc.auth-modal .auth-robot-avatar {
    flex-basis: 54px;
    width: 54px;
    height: 54px;
  }
}

/* Night theme visibility for authentication modal */
html.dm #lofc.auth-modal,
html[data-theme="dark"] #lofc.auth-modal,
body.dm #lofc.auth-modal {
  --auth-paper: #111827;
  --auth-paper-soft: #172033;
  --auth-ink: #f8fafc;
  --auth-copy: #c7d2e5;
  --auth-muted: #a7b3c8;
  --auth-line: rgba(120, 144, 176, 0.36);
  --auth-line-strong: rgba(148, 163, 184, 0.5);
  --auth-focus: rgba(59, 130, 246, 0.28);
  color: var(--auth-ink);
}

html.dm #lofc.auth-modal .auth-modal-content,
html[data-theme="dark"] #lofc.auth-modal .auth-modal-content,
body.dm #lofc.auth-modal .auth-modal-content {
  border-color: rgba(148, 163, 184, 0.42);
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0.98) 0%, rgba(17, 24, 39, 0.98) 68%, rgba(15, 32, 61, 0.98) 100%);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.55),
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

html.dm #lofc.auth-modal .auth-modal-header,
html[data-theme="dark"] #lofc.auth-modal .auth-modal-header,
body.dm #lofc.auth-modal .auth-modal-header {
  border-bottom-color: rgba(148, 163, 184, 0.24);
  background:
    radial-gradient(circle at 13% 16%, rgba(56, 189, 248, 0.16), transparent 34%),
    linear-gradient(120deg, #111827 0%, #111827 54%, #172033 100%);
}

html.dm #lofc.auth-modal .auth-modal-header::before,
html[data-theme="dark"] #lofc.auth-modal .auth-modal-header::before,
body.dm #lofc.auth-modal .auth-modal-header::before {
  opacity: 0.42;
  background-image: radial-gradient(rgba(125, 211, 252, 0.55) 1.25px, transparent 1.35px);
}

html.dm #lofc.auth-modal .auth-logo-frame,
html[data-theme="dark"] #lofc.auth-modal .auth-logo-frame,
body.dm #lofc.auth-modal .auth-logo-frame {
  background: #0f172a;
  box-shadow: 0 12px 26px rgba(14, 165, 233, 0.2);
}

html.dm #lofc.auth-modal .auth-brand-title,
html.dm #lofc.auth-modal .auth-panel-title,
html[data-theme="dark"] #lofc.auth-modal .auth-brand-title,
html[data-theme="dark"] #lofc.auth-modal .auth-panel-title,
body.dm #lofc.auth-modal .auth-brand-title,
body.dm #lofc.auth-modal .auth-panel-title {
  color: var(--auth-ink);
}

html.dm #lofc.auth-modal .auth-brand-subtitle,
html.dm #lofc.auth-modal .auth-panel-copy,
html[data-theme="dark"] #lofc.auth-modal .auth-brand-subtitle,
html[data-theme="dark"] #lofc.auth-modal .auth-panel-copy,
body.dm #lofc.auth-modal .auth-brand-subtitle,
body.dm #lofc.auth-modal .auth-panel-copy {
  color: var(--auth-copy);
}

html.dm #lofc.auth-modal .auth-close-button,
html[data-theme="dark"] #lofc.auth-modal .auth-close-button,
body.dm #lofc.auth-modal .auth-close-button {
  color: #f8fafc;
}

html.dm #lofc.auth-modal .auth-close-button:hover,
html.dm #lofc.auth-modal .auth-close-button:focus-visible,
html[data-theme="dark"] #lofc.auth-modal .auth-close-button:hover,
html[data-theme="dark"] #lofc.auth-modal .auth-close-button:focus-visible,
body.dm #lofc.auth-modal .auth-close-button:hover,
body.dm #lofc.auth-modal .auth-close-button:focus-visible {
  color: #93c5fd;
  background: rgba(96, 165, 250, 0.12);
}

html.dm #lofc.auth-modal .auth-tab-switch,
html[data-theme="dark"] #lofc.auth-modal .auth-tab-switch,
body.dm #lofc.auth-modal .auth-tab-switch {
  border-color: rgba(148, 163, 184, 0.38);
  background: rgba(15, 23, 42, 0.82);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

html.dm #lofc.auth-modal .tab-sw-btn,
html[data-theme="dark"] #lofc.auth-modal .tab-sw-btn,
body.dm #lofc.auth-modal .tab-sw-btn {
  color: #dbeafe;
}

html.dm #lofc.auth-modal .tab-sw-btn:not(.on):hover,
html.dm #lofc.auth-modal .tab-sw-btn:not(.on):focus-visible,
html[data-theme="dark"] #lofc.auth-modal .tab-sw-btn:not(.on):hover,
html[data-theme="dark"] #lofc.auth-modal .tab-sw-btn:not(.on):focus-visible,
body.dm #lofc.auth-modal .tab-sw-btn:not(.on):hover,
body.dm #lofc.auth-modal .tab-sw-btn:not(.on):focus-visible {
  color: #ffffff;
  background: rgba(96, 165, 250, 0.14);
}

html.dm #lofc.auth-modal .olbl,
html.dm #lofc.auth-modal .olbl i,
html[data-theme="dark"] #lofc.auth-modal .olbl,
html[data-theme="dark"] #lofc.auth-modal .olbl i,
body.dm #lofc.auth-modal .olbl,
body.dm #lofc.auth-modal .olbl i {
  color: #e2e8f0;
}

html.dm #lofc.auth-modal .auth-input-wrap,
html[data-theme="dark"] #lofc.auth-modal .auth-input-wrap,
body.dm #lofc.auth-modal .auth-input-wrap {
  border-color: rgba(148, 163, 184, 0.48);
  background: rgba(15, 23, 42, 0.76);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

html.dm #lofc.auth-modal .auth-input-wrap:focus-within,
html[data-theme="dark"] #lofc.auth-modal .auth-input-wrap:focus-within,
body.dm #lofc.auth-modal .auth-input-wrap:focus-within {
  border-color: #60a5fa;
  box-shadow:
    0 0 0 4px var(--auth-focus),
    0 14px 30px rgba(0, 0, 0, 0.26);
}

html.dm #lofc.auth-modal .auth-input-icon,
html.dm #lofc.auth-modal .auth-input-wrap .password-toggle,
html[data-theme="dark"] #lofc.auth-modal .auth-input-icon,
html[data-theme="dark"] #lofc.auth-modal .auth-input-wrap .password-toggle,
body.dm #lofc.auth-modal .auth-input-icon,
body.dm #lofc.auth-modal .auth-input-wrap .password-toggle {
  background: rgba(30, 41, 59, 0.92) !important;
  color: #cbd5e1 !important;
}

html.dm #lofc.auth-modal .auth-input-wrap .oinp,
html[data-theme="dark"] #lofc.auth-modal .auth-input-wrap .oinp,
body.dm #lofc.auth-modal .auth-input-wrap .oinp {
  background: transparent !important;
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
}

html.dm #lofc.auth-modal .auth-input-wrap .oinp:-webkit-autofill,
html.dm #lofc.auth-modal .auth-input-wrap .oinp:-webkit-autofill:hover,
html.dm #lofc.auth-modal .auth-input-wrap .oinp:-webkit-autofill:focus,
html[data-theme="dark"] #lofc.auth-modal .auth-input-wrap .oinp:-webkit-autofill,
html[data-theme="dark"] #lofc.auth-modal .auth-input-wrap .oinp:-webkit-autofill:hover,
html[data-theme="dark"] #lofc.auth-modal .auth-input-wrap .oinp:-webkit-autofill:focus,
body.dm #lofc.auth-modal .auth-input-wrap .oinp:-webkit-autofill,
body.dm #lofc.auth-modal .auth-input-wrap .oinp:-webkit-autofill:hover,
body.dm #lofc.auth-modal .auth-input-wrap .oinp:-webkit-autofill:focus {
  box-shadow: 0 0 0 1000px rgba(15, 23, 42, 0.76) inset !important;
  caret-color: #f8fafc;
  -webkit-text-fill-color: #f8fafc !important;
}

html.dm #lofc.auth-modal .auth-input-wrap .oinp::placeholder,
html[data-theme="dark"] #lofc.auth-modal .auth-input-wrap .oinp::placeholder,
body.dm #lofc.auth-modal .auth-input-wrap .oinp::placeholder {
  color: #c7d2e5 !important;
  -webkit-text-fill-color: #c7d2e5 !important;
}

html.dm #lofc.auth-modal .auth-check .form-check-label,
html[data-theme="dark"] #lofc.auth-modal .auth-check .form-check-label,
body.dm #lofc.auth-modal .auth-check .form-check-label {
  color: #dbe3f1;
}

html.dm #lofc.auth-modal .auth-check .form-check-input,
html[data-theme="dark"] #lofc.auth-modal .auth-check .form-check-input,
body.dm #lofc.auth-modal .auth-check .form-check-input {
  border-color: rgba(148, 163, 184, 0.62);
  background-color: #111827;
}

html.dm #lofc.auth-modal .auth-check .form-check-input:checked,
html[data-theme="dark"] #lofc.auth-modal .auth-check .form-check-input:checked,
body.dm #lofc.auth-modal .auth-check .form-check-input:checked {
  border-color: var(--auth-blue);
  background-color: var(--auth-blue);
}

html.dm #lofc.auth-modal .auth-inline-link,
html.dm #lofc.auth-modal .auth-terms a,
html[data-theme="dark"] #lofc.auth-modal .auth-inline-link,
html[data-theme="dark"] #lofc.auth-modal .auth-terms a,
body.dm #lofc.auth-modal .auth-inline-link,
body.dm #lofc.auth-modal .auth-terms a {
  color: #93c5fd;
}

html.dm #lofc.auth-modal .auth-divider,
html[data-theme="dark"] #lofc.auth-modal .auth-divider,
body.dm #lofc.auth-modal .auth-divider {
  color: #a7b3c8;
}

html.dm #lofc.auth-modal .auth-divider::before,
html.dm #lofc.auth-modal .auth-divider::after,
html[data-theme="dark"] #lofc.auth-modal .auth-divider::before,
html[data-theme="dark"] #lofc.auth-modal .auth-divider::after,
body.dm #lofc.auth-modal .auth-divider::before,
body.dm #lofc.auth-modal .auth-divider::after {
  background: rgba(148, 163, 184, 0.34);
}

html.dm #lofc.auth-modal .auth-oauth,
html[data-theme="dark"] #lofc.auth-modal .auth-oauth,
body.dm #lofc.auth-modal .auth-oauth {
  border-color: transparent;
  background:
    linear-gradient(135deg, rgba(66, 133, 244, 0.14), rgba(52, 168, 83, 0.13) 38%, rgba(251, 188, 5, 0.14) 68%, rgba(234, 67, 53, 0.13)) padding-box,
    linear-gradient(90deg, #4285f4, #34a853, #fbbc05, #ea4335) border-box;
  color: #f8fafc;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.24),
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

html.dm #lofc.auth-modal .auth-secure-note,
html.dm #lofc.auth-modal .auth-secure-note i,
html[data-theme="dark"] #lofc.auth-modal .auth-secure-note,
html[data-theme="dark"] #lofc.auth-modal .auth-secure-note i,
body.dm #lofc.auth-modal .auth-secure-note,
body.dm #lofc.auth-modal .auth-secure-note i {
  color: #b8c4d8;
}

html.dm #lofc.auth-modal .auth-wave::before,
html[data-theme="dark"] #lofc.auth-modal .auth-wave::before,
body.dm #lofc.auth-modal .auth-wave::before {
  background: rgba(59, 130, 246, 0.16);
}

html.dm #lofc.auth-modal .auth-wave span,
html[data-theme="dark"] #lofc.auth-modal .auth-wave span,
body.dm #lofc.auth-modal .auth-wave span {
  background: rgba(30, 64, 175, 0.34);
}

/* Final desktop user topbar polish. */
body.user-desktop-shell:not(.admin-shell) #dashboard .db-top {
  height: 64px !important;
  min-height: 64px !important;
  padding: 0 18px !important;
  gap: 10px !important;
  background: rgba(248, 250, 252, 0.92) !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22) !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05) !important;
}

html:not(.lm) body.user-desktop-shell:not(.admin-shell) #dashboard .db-top {
  background: rgba(15, 23, 42, 0.9) !important;
  border-bottom-color: rgba(148, 163, 184, 0.18) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18) !important;
}

body.user-desktop-shell:not(.admin-shell) #dashboard .db-top::after {
  content: none !important;
}

body.user-desktop-shell:not(.admin-shell) #dashboard .db-top-actions {
  gap: 8px !important;
  height: 40px !important;
}

body.user-desktop-shell:not(.admin-shell) #dashboard .db-bottom .db-upgrade-card {
  display: none !important;
}

body.user-desktop-shell:not(.admin-shell) #dashboard .db-top-upgrade-card {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  height: 40px !important;
  min-width: 0 !important;
  padding: 4px 6px 4px 5px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(129, 140, 248, 0.35) !important;
  background: linear-gradient(135deg, rgba(30, 41, 120, 0.96), rgba(49, 46, 129, 0.94)) !important;
  color: #ffffff !important;
  text-decoration: none !important;
  box-shadow: 0 8px 20px rgba(30, 41, 120, 0.16) !important;
  cursor: default !important;
  pointer-events: none !important;
  user-select: none !important;
}

body.user-desktop-shell:not(.admin-shell) #dashboard .db-top-upgrade-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  border-radius: 9px !important;
  background: linear-gradient(135deg, #3b82f6, #7c3aed) !important;
  color: #ffffff !important;
  font-size: 0.76rem !important;
}

body.user-desktop-shell:not(.admin-shell) #dashboard .db-top-upgrade-copy {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

body.user-desktop-shell:not(.admin-shell) #dashboard .db-top-upgrade-action {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  height: 30px !important;
  padding: 0 10px !important;
  border-radius: 9px !important;
  background: linear-gradient(135deg, #38bdf8, #8b5cf6) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

body.user-desktop-shell:not(.admin-shell) #dashboard .db-top-upgrade-action i {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-size: 0.68rem !important;
}

body.user-desktop-shell:not(.admin-shell) #dashboard .db-top-upgrade-card:hover,
body.user-desktop-shell:not(.admin-shell) #dashboard .db-top-upgrade-card:focus-visible {
  transform: none !important;
  box-shadow: 0 8px 20px rgba(30, 41, 120, 0.16) !important;
}

body.user-desktop-shell:not(.admin-shell) #dashboard .db-top > .boc,
body.user-desktop-shell:not(.admin-shell) #dashboard .db-top-actions > .boc,
body.user-desktop-shell:not(.admin-shell) #dashboard #notifWrap,
body.user-desktop-shell:not(.admin-shell) #dashboard #bellBtn {
  width: 40px !important;
  height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  flex-basis: 40px !important;
  flex: 0 0 40px !important;
}

body.user-desktop-shell:not(.admin-shell) #dashboard .db-top > .boc,
body.user-desktop-shell:not(.admin-shell) #dashboard .db-top-actions > .boc,
body.user-desktop-shell:not(.admin-shell) #dashboard #bellBtn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  border-radius: 11px !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
  background: rgba(255, 255, 255, 0.82) !important;
  color: #334155 !important;
}

html:not(.lm) body.user-desktop-shell:not(.admin-shell) #dashboard .db-top > .boc,
html:not(.lm) body.user-desktop-shell:not(.admin-shell) #dashboard .db-top-actions > .boc,
html:not(.lm) body.user-desktop-shell:not(.admin-shell) #dashboard #bellBtn {
  border-color: rgba(148, 163, 184, 0.22) !important;
  background: rgba(30, 41, 59, 0.78) !important;
  color: #cbd5e1 !important;
}

body.user-desktop-shell:not(.admin-shell) #dashboard .db-top > .boc i,
body.user-desktop-shell:not(.admin-shell) #dashboard .db-top-actions > .boc i,
body.user-desktop-shell:not(.admin-shell) #dashboard #bellBtn i {
  display: block !important;
  width: 16px !important;
  height: 16px !important;
  font-size: 0.88rem !important;
  line-height: 16px !important;
  text-align: center !important;
}

body.user-desktop-shell:not(.admin-shell) #dashboard #dbThBtn i[style*="display:none"],
body.user-desktop-shell:not(.admin-shell) #dashboard #dbThBtn i[style*="display: none"] {
  display: none !important;
}

body.user-desktop-shell:not(.admin-shell) #dashboard #dbThBtn {
  overflow: hidden !important;
}

body.user-desktop-shell:not(.admin-shell) #dashboard #notifBadge {
  top: 5px !important;
  right: 5px !important;
  width: 8px !important;
  height: 8px !important;
}

body.user-desktop-shell:not(.admin-shell) #dashboard .db-user-pill {
  min-height: 40px !important;
  height: 40px !important;
  width: 58px !important;
  min-width: 58px !important;
  max-width: 58px !important;
  padding: 4px 8px 4px 4px !important;
  gap: 6px !important;
  justify-content: space-between !important;
  border-radius: 11px !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
  background: rgba(255, 255, 255, 0.82) !important;
}

html:not(.lm) body.user-desktop-shell:not(.admin-shell) #dashboard .db-user-pill {
  border-color: rgba(148, 163, 184, 0.22) !important;
  background: rgba(30, 41, 59, 0.78) !important;
}

body.user-desktop-shell:not(.admin-shell) #dashboard .db-avatar {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  border-radius: 9px !important;
  box-shadow: none !important;
}

body.user-desktop-shell:not(.admin-shell) #dashboard .user-avatar-presence::after {
  right: -1px !important;
  bottom: -1px !important;
  width: 9px !important;
  height: 9px !important;
}

body.user-desktop-shell:not(.admin-shell) #dashboard .db-user-pill > .d-none.d-md-block,
body.user-desktop-shell:not(.admin-shell) #dashboard #userName,
body.user-desktop-shell:not(.admin-shell) #dashboard #userPlan {
  max-width: 96px !important;
}

body.user-desktop-shell:not(.admin-shell) #dashboard #userName {
  font-size: 0.76rem !important;
  line-height: 1.08 !important;
  font-weight: 850 !important;
}

body.user-desktop-shell:not(.admin-shell) #dashboard #userPlan {
  font-size: 0.62rem !important;
  line-height: 1 !important;
  font-weight: 800 !important;
}

body.user-desktop-shell:not(.admin-shell) #dashboard #profileChevron {
  margin-left: 0 !important;
  font-size: 0.68rem !important;
}

body.user-desktop-shell:not(.admin-shell) #dashboard .db-top-command-search {
  flex: 1 1 430px !important;
  max-width: 560px !important;
  min-width: 240px !important;
  height: 40px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 10px 0 13px !important;
  border: 1px solid rgba(148, 163, 184, 0.28) !important;
  border-radius: 11px !important;
  background: rgba(255, 255, 255, 0.82) !important;
  color: #64748b !important;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05) !important;
  font-family: inherit !important;
  text-align: left !important;
}

body.user-desktop-shell:not(.admin-shell) #dashboard .db-top-command-search input {
  min-width: 0 !important;
  width: auto !important;
  flex: 1 1 auto !important;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  color: #0f172a !important;
  font: inherit !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

body.user-desktop-shell:not(.admin-shell) #dashboard .db-top-command-search input::placeholder {
  color: #64748b !important;
  opacity: 1 !important;
}

html:not(.lm) body.user-desktop-shell:not(.admin-shell) #dashboard .db-top-command-search {
  border-color: rgba(148, 163, 184, 0.22) !important;
  background: rgba(30, 41, 59, 0.78) !important;
  color: #94a3b8 !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12) !important;
}

html:not(.lm) body.user-desktop-shell:not(.admin-shell) #dashboard .db-top-command-search input {
  color: #f8fafc !important;
}

html:not(.lm) body.user-desktop-shell:not(.admin-shell) #dashboard .db-top-command-search input::placeholder {
  color: #94a3b8 !important;
}

body.user-desktop-shell:not(.admin-shell) #dashboard .db-top-command-search:hover,
body.user-desktop-shell:not(.admin-shell) #dashboard .db-top-command-search:focus-visible {
  border-color: rgba(59, 130, 246, 0.42) !important;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.11) !important;
  outline: none !important;
}

body.user-desktop-shell:not(.admin-shell) #dashboard .db-top-command-search > i {
  position: static !important;
  top: auto !important;
  left: auto !important;
  width: auto !important;
  height: auto !important;
  min-width: 14px !important;
  transform: none !important;
  color: #2563eb !important;
  font-size: 0.85rem !important;
}

html:not(.lm) body.user-desktop-shell:not(.admin-shell) #dashboard .db-top-command-search > i {
  color: #93c5fd !important;
}

body.user-desktop-shell:not(.admin-shell) #dashboard .db-search-count {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 40px !important;
  color: #64748b !important;
  font-size: 0.66rem !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

html:not(.lm) body.user-desktop-shell:not(.admin-shell) #dashboard .db-search-count {
  color: #94a3b8 !important;
}

body.user-desktop-shell:not(.admin-shell) #dashboard .db-search-clear {
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  border: 1px solid rgba(148, 163, 184, 0.22) !important;
  border-radius: 8px !important;
  background: rgba(241, 245, 249, 0.78) !important;
  color: #64748b !important;
}

body.user-desktop-shell:not(.admin-shell) #dashboard .db-search-clear[hidden] {
  display: none !important;
}

body.user-desktop-shell:not(.admin-shell) #dashboard .db-search-clear:hover,
body.user-desktop-shell:not(.admin-shell) #dashboard .db-search-clear:focus-visible {
  border-color: rgba(59, 130, 246, 0.36) !important;
  color: #2563eb !important;
  outline: none !important;
}

body.user-desktop-shell:not(.admin-shell) #dashboard .db-search-clear i {
  position: static !important;
  top: auto !important;
  left: auto !important;
  width: auto !important;
  height: auto !important;
  transform: none !important;
  color: currentColor !important;
  font-size: 0.72rem !important;
}

html:not(.lm) body.user-desktop-shell:not(.admin-shell) #dashboard .db-search-clear {
  border-color: rgba(148, 163, 184, 0.22) !important;
  background: rgba(15, 23, 42, 0.72) !important;
  color: #cbd5e1 !important;
}

body.user-desktop-shell:not(.admin-shell) #dashboard .sr-search-highlight {
  border-radius: 4px !important;
  background: #fde68a !important;
  color: #713f12 !important;
  -webkit-text-fill-color: #713f12 !important;
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.18) !important;
}

body.user-desktop-shell:not(.admin-shell) #dashboard .sr-search-highlight.is-current {
  background: #fb923c !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: 0 0 0 2px rgba(251, 146, 60, 0.28) !important;
}

@media (max-width: 1199px) {
  body.user-desktop-shell:not(.admin-shell) #dashboard .db-top-command-search {
    flex-basis: 300px !important;
    min-width: 210px !important;
  }
}

@media (min-width: 992px) and (max-width: 1100px) {
  body.user-desktop-shell:not(.admin-shell) #dashboard .db-top-upgrade-card {
    display: none !important;
  }
}

@media (max-width: 991px) {
  body.user-desktop-shell:not(.admin-shell) #dashboard .db-top-command-search {
    display: none !important;
  }
}

@media (max-width: 991.98px) {
  body.user-desktop-shell:not(.admin-shell) #dashboard {
    --nav: 64px;
    overflow-x: hidden;
    overflow-x: clip;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-main {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    padding-top: 64px !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-top {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 64px !important;
    min-height: 64px !important;
    padding: 0 12px !important;
    gap: 8px !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-top-actions {
    min-width: 0 !important;
    height: 40px !important;
    gap: 6px !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-top-upgrade-card {
    display: none !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-sidebar {
    width: min(300px, calc(100vw - 24px)) !important;
    min-width: 0 !important;
    max-width: calc(100vw - 24px) !important;
    transform: translateX(-105%);
    transition: transform .24s ease;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-sidebar.mob-open {
    transform: translateX(0);
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-content {
    max-width: 100% !important;
    padding: 18px 14px !important;
  }
}

body.user-desktop-shell:not(.admin-shell) #profileDropdown .profile-menu-account {
  --profile-menu-accent: #1d4ed8;
  --profile-menu-accent-bg: rgba(37, 99, 235, 0.12);
}

body.user-desktop-shell:not(.admin-shell) #profileDropdown .profile-menu-notifications {
  --profile-menu-accent: #b45309;
  --profile-menu-accent-bg: rgba(180, 83, 9, 0.14);
}

body.user-desktop-shell:not(.admin-shell) #profileDropdown .profile-language-label {
  --profile-menu-accent: #6d28d9;
  --profile-menu-accent-bg: rgba(109, 40, 217, 0.12);
}

body.user-desktop-shell:not(.admin-shell) #profileDropdown .profile-menu-logout {
  --profile-menu-accent: #dc2626;
  --profile-menu-accent-bg: rgba(220, 38, 38, 0.12);
}

html:not(.lm) body.user-desktop-shell:not(.admin-shell) #profileDropdown .profile-menu-account {
  --profile-menu-accent: #60a5fa;
  --profile-menu-accent-bg: rgba(37, 99, 235, 0.24);
}

html:not(.lm) body.user-desktop-shell:not(.admin-shell) #profileDropdown .profile-menu-notifications {
  --profile-menu-accent: #f59e0b;
  --profile-menu-accent-bg: rgba(217, 119, 6, 0.22);
}

html:not(.lm) body.user-desktop-shell:not(.admin-shell) #profileDropdown .profile-language-label {
  --profile-menu-accent: #a78bfa;
  --profile-menu-accent-bg: rgba(124, 58, 237, 0.24);
}

html:not(.lm) body.user-desktop-shell:not(.admin-shell) #profileDropdown .profile-menu-logout {
  --profile-menu-accent: #fb7185;
  --profile-menu-accent-bg: rgba(225, 29, 72, 0.2);
}

body.user-desktop-shell:not(.admin-shell) #profileDropdown .profile-menu-item,
body.user-desktop-shell:not(.admin-shell) #profileDropdown .profile-language-label {
  color: var(--profile-menu-accent, var(--tx2)) !important;
  font-weight: 800 !important;
}

body.user-desktop-shell:not(.admin-shell) #profileDropdown .profile-language-form {
  padding: 2px 0 8px !important;
}

body.user-desktop-shell:not(.admin-shell) #profileDropdown .profile-language-label {
  width: calc(100% - 16px) !important;
  min-height: 40px !important;
  margin: 2px 8px 8px !important;
  padding: 10px 16px !important;
  gap: 10px !important;
  line-height: 1.15 !important;
}

body.user-desktop-shell:not(.admin-shell) #profileDropdown .profile-language-select,
body.user-desktop-shell:not(.admin-shell) #profileDropdown .profile-language-help {
  width: calc(100% - 16px) !important;
  margin-left: 8px !important;
  margin-right: 8px !important;
}

body.user-desktop-shell:not(.admin-shell) #profileDropdown .profile-menu-item i,
body.user-desktop-shell:not(.admin-shell) #profileDropdown .profile-language-label i {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  flex: 0 0 28px !important;
  display: inline-grid !important;
  place-items: center !important;
  border: 1px solid color-mix(in srgb, var(--profile-menu-accent, #60a5fa) 34%, transparent) !important;
  border-radius: 10px !important;
  background: color-mix(in srgb, var(--profile-menu-accent-bg, rgba(96, 165, 250, 0.14)) 78%, #ffffff 22%) !important;
  color: var(--profile-menu-accent, var(--tx2)) !important;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--profile-menu-accent, #60a5fa) 14%, transparent) !important;
  font-size: 0.78rem !important;
  margin-right: 0 !important;
}

html:not(.lm) body.user-desktop-shell:not(.admin-shell) #profileDropdown .profile-menu-item i,
html:not(.lm) body.user-desktop-shell:not(.admin-shell) #profileDropdown .profile-language-label i {
  background: color-mix(in srgb, var(--profile-menu-accent-bg, rgba(96, 165, 250, 0.18)) 72%, #0f172a 28%) !important;
}

body.user-desktop-shell:not(.admin-shell) #profileDropdown .profile-menu-item:hover,
body.user-desktop-shell:not(.admin-shell) #profileDropdown .profile-menu-item:focus-visible,
body.user-desktop-shell:not(.admin-shell) #profileDropdown .profile-menu-item.active {
  border-color: color-mix(in srgb, var(--profile-menu-accent, #60a5fa) 28%, transparent) !important;
  background: color-mix(in srgb, var(--profile-menu-accent-bg, rgba(96, 165, 250, 0.14)) 80%, transparent) !important;
  color: var(--profile-menu-accent, var(--tx)) !important;
  outline: none !important;
}

body.user-desktop-shell:not(.admin-shell) #profileDropdown .profile-menu-item:hover i,
body.user-desktop-shell:not(.admin-shell) #profileDropdown .profile-menu-item:focus-visible i,
body.user-desktop-shell:not(.admin-shell) #profileDropdown .profile-menu-item.active i {
  border-color: color-mix(in srgb, var(--profile-menu-accent, #60a5fa) 48%, transparent) !important;
  background: color-mix(in srgb, var(--profile-menu-accent-bg, rgba(96, 165, 250, 0.14)) 88%, #ffffff 12%) !important;
}

html:not(.lm) body.user-desktop-shell:not(.admin-shell) #profileDropdown .profile-menu-item:hover i,
html:not(.lm) body.user-desktop-shell:not(.admin-shell) #profileDropdown .profile-menu-item:focus-visible i,
html:not(.lm) body.user-desktop-shell:not(.admin-shell) #profileDropdown .profile-menu-item.active i {
  background: color-mix(in srgb, var(--profile-menu-accent-bg, rgba(96, 165, 250, 0.18)) 84%, #0f172a 16%) !important;
}

/* Desktop sidebar account footer */
@media (min-width: 992px) {
  body.user-desktop-shell:not(.admin-shell) #dashboard {
    --sidebar-account-footer-bg: rgba(2, 13, 34, 0.38);
    --sidebar-account-card-bg: linear-gradient(135deg, var(--user-ref-sidebar-soft, rgba(15, 44, 88, 0.74)), rgba(2, 13, 34, 0.56));
    --sidebar-account-card-hover-bg: linear-gradient(135deg, var(--user-ref-sidebar-soft-strong, rgba(28, 77, 151, 0.82)), rgba(15, 44, 88, 0.76));
    --sidebar-account-card-border: rgba(147, 197, 253, 0.16);
    --sidebar-account-card-hover-border: var(--user-ref-sidebar-line-strong, rgba(147, 197, 253, 0.4));
    --sidebar-account-card-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 28px rgba(2, 13, 34, 0.24);
    --sidebar-account-card-hover-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 16px 34px rgba(37, 99, 235, 0.2);
    --sidebar-account-name-color: var(--user-ref-sidebar-ink, #f8fbff);
    --sidebar-account-meta-color: var(--user-ref-sidebar-muted, #8bb9f5);
    --sidebar-account-verified-color: #93c5fd;
    --sidebar-account-hover-color: #ffffff;
  }

  :is(html.lm, html[data-theme="light"]) body.user-desktop-shell:not(.admin-shell) #dashboard {
    --sidebar-account-footer-bg: rgba(4, 21, 50, 0.44);
    --sidebar-account-card-bg: linear-gradient(135deg, rgba(28, 77, 151, 0.78), rgba(8, 34, 74, 0.68));
    --sidebar-account-card-hover-bg: linear-gradient(135deg, rgba(37, 99, 235, 0.84), rgba(28, 77, 151, 0.78));
    --sidebar-account-card-border: rgba(147, 197, 253, 0.22);
    --sidebar-account-card-hover-border: rgba(191, 219, 254, 0.46);
    --sidebar-account-card-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 12px 28px rgba(15, 44, 88, 0.22);
    --sidebar-account-card-hover-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 16px 34px rgba(37, 99, 235, 0.24);
  }

  :is(html:not(.lm), html[data-theme="dark"]) body.user-desktop-shell:not(.admin-shell) #dashboard {
    --sidebar-account-footer-bg: rgba(1, 8, 24, 0.58);
    --sidebar-account-card-bg: linear-gradient(135deg, rgba(15, 44, 88, 0.82), rgba(2, 13, 34, 0.76));
    --sidebar-account-card-hover-bg: linear-gradient(135deg, rgba(28, 77, 151, 0.86), rgba(8, 34, 74, 0.82));
    --sidebar-account-card-border: rgba(125, 211, 252, 0.18);
    --sidebar-account-card-hover-border: rgba(147, 197, 253, 0.42);
    --sidebar-account-card-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 28px rgba(0, 0, 0, 0.24);
    --sidebar-account-card-hover-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 18px 34px rgba(37, 99, 235, 0.22);
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-sidebar-profile-bottom {
    position: relative !important;
    z-index: 1 !important;
    padding: 12px 16px 16px !important;
    border-top: 1px solid var(--user-ref-sidebar-line, rgba(125, 211, 252, 0.16)) !important;
    background: var(--sidebar-account-footer-bg) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-sidebar-profile-card {
    --db-nav-icon: #60a5fa;
    --db-nav-icon-bg: rgba(37, 99, 235, 0.24);
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 8px 9px !important;
    border: 1px solid var(--sidebar-account-card-border) !important;
    border-radius: 8px !important;
    background: var(--sidebar-account-card-bg) !important;
    color: var(--sidebar-account-name-color) !important;
    text-decoration: none !important;
    box-shadow: var(--sidebar-account-card-shadow) !important;
    overflow: hidden !important;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
  }

  html:not(.lm) body.user-desktop-shell:not(.admin-shell) #dashboard .db-sidebar-profile-card {
    box-shadow: var(--sidebar-account-card-shadow) !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-sidebar-profile-card:hover,
  body.user-desktop-shell:not(.admin-shell) #dashboard .db-sidebar-profile-card:focus-visible,
  body.user-desktop-shell:not(.admin-shell) #dashboard .db-sidebar-profile-card.active {
    border-color: var(--sidebar-account-card-hover-border) !important;
    background: var(--sidebar-account-card-hover-bg) !important;
    color: var(--sidebar-account-hover-color) !important;
    transform: translateY(-1px) !important;
    box-shadow: var(--sidebar-account-card-hover-shadow) !important;
  }

  html:not(.lm) body.user-desktop-shell:not(.admin-shell) #dashboard .db-sidebar-profile-card:hover,
  html:not(.lm) body.user-desktop-shell:not(.admin-shell) #dashboard .db-sidebar-profile-card:focus-visible,
  html:not(.lm) body.user-desktop-shell:not(.admin-shell) #dashboard .db-sidebar-profile-card.active {
    box-shadow: var(--sidebar-account-card-hover-shadow) !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-sidebar-profile-card .db-avatar {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 11px !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-sidebar-profile-card .user-avatar-presence::after {
    width: 9px !important;
    height: 9px !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-sidebar-profile-copy {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-sidebar-profile-name {
    display: block !important;
    color: var(--sidebar-account-name-color) !important;
    font-size: 0.82rem !important;
    font-weight: 850 !important;
    line-height: 1.18 !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-sidebar-profile-meta {
    display: flex !important;
    align-items: flex-start !important;
    gap: 5px !important;
    color: var(--sidebar-account-meta-color) !important;
    font-size: 0.64rem !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-sidebar-profile-meta.is-verified {
    color: var(--sidebar-account-verified-color) !important;
    text-transform: none !important;
  }

  html:not(.lm) body.user-desktop-shell:not(.admin-shell) #dashboard .db-sidebar-profile-meta.is-verified {
    color: var(--sidebar-account-verified-color) !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-sidebar-profile-meta i {
    flex: 0 0 auto !important;
    margin-top: 1px !important;
    color: #22c55e !important;
    font-size: 0.66rem !important;
  }

  body.user-desktop-shell.collapsed-sidebar:not(.admin-shell) #dashboard .db-sidebar-profile-bottom {
    padding: 12px 12px 16px !important;
  }

  body.user-desktop-shell.collapsed-sidebar:not(.admin-shell) #dashboard .db-sidebar-profile-card {
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    min-height: 48px !important;
    margin: 0 auto !important;
    padding: 5px !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0 !important;
  }

  body.user-desktop-shell.collapsed-sidebar:not(.admin-shell) #dashboard .db-sidebar-profile-card .db-avatar {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
  }

  body.user-desktop-shell.collapsed-sidebar:not(.admin-shell) #dashboard .db-sidebar-profile-copy {
    display: none !important;
  }
}

@media (min-width: 992px) and (max-height: 820px) {
  body.user-desktop-shell:not(.admin-shell) #dashboard .db-sidebar-profile-bottom {
    padding-block: 10px 12px !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-sidebar-profile-card {
    padding: 7px 8px !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-sidebar-profile-card .db-avatar {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-sidebar-profile-name {
    font-size: 0.76rem !important;
  }

  body.user-desktop-shell:not(.admin-shell) #dashboard .db-sidebar-profile-meta {
    font-size: 0.6rem !important;
  }
}
