/* ═════════════════════════════════════════════════════════════════
   Internal User Manager — Allovion Accounts Design System
   Exact visual parity with public/account.html
   ═════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --primary: #7c6b5a;
  --brand-deep: #002D62;
  --blue: #4e7fa8;
  --bg-primary: #f3f1ee;
  --bg-secondary: #ffffff;
  --bg-tertiary: #eceae6;
  --text-primary: #1c1a17;
  --text-secondary: #5a5550;
  --text-tertiary: #8c8782;
  --accent: var(--primary);
  --accent-hover: #6a5a4b;
  --accent-soft: rgba(124, 107, 90, .1);
  --accent-glow: rgba(124, 107, 90, .22);
  --brand-soft: rgba(0, 45, 98, .1);
  --brand-glow: rgba(0, 45, 98, .22);
  --border: rgba(0, 0, 0, .07);
  --border-strong: rgba(0, 0, 0, .12);
  --glass: rgba(255, 255, 255, .82);
  --glass-heavy: rgba(255, 255, 255, .93);
  --sh-xs: 0 1px 2px rgba(0, 0, 0, .04);
  --sh-sm: 0 1px 5px rgba(0, 0, 0, .07);
  --sh-md: 0 2px 12px rgba(0, 0, 0, .09);
  --sh-lg: 0 4px 30px rgba(0, 0, 0, .11);
  --sh-xl: 0 8px 48px rgba(0, 0, 0, .16);
  --blur: blur(20px) saturate(160%);
  --sw: 254px;
  --swc: 68px;
  --hh: 60px;
  --r-sm: 10px;
  --r-md: 15px;
  --r-lg: 20px;
  --r-xl: 26px;
  --ease: .27s cubic-bezier(.2, .8, .4, 1);
  --logo-g: linear-gradient(135deg, #7c6b5a, #002D62);
  --success: #2d9e56;
  --warning: #d97706;
  --danger: #dc2626;
  --info: #3b7fc4;
  --font-mono: 'JetBrains Mono', monospace;
}

[data-theme="dark"] {
  --bg-primary: #111009;
  --bg-secondary: #1d1b18;
  --bg-tertiary: #26231e;
  --text-primary: #ede9e3;
  --text-secondary: #9a948c;
  --text-tertiary: #6a6560;
  --accent: #c4b09a;
  --accent-hover: #d4c3b3;
  --accent-soft: rgba(196, 176, 154, .12);
  --accent-glow: rgba(196, 176, 154, .24);
  --brand-soft: rgba(0, 45, 98, .3);
  --brand-glow: rgba(0, 45, 98, .4);
  --border: rgba(255, 255, 255, .07);
  --border-strong: rgba(255, 255, 255, .13);
  --glass: rgba(29, 27, 24, .82);
  --glass-heavy: rgba(29, 27, 24, .94);
  --sh-xs: 0 1px 2px rgba(0, 0, 0, .3);
  --sh-sm: 0 1px 5px rgba(0, 0, 0, .45);
  --sh-md: 0 2px 12px rgba(0, 0, 0, .5);
  --sh-lg: 0 4px 30px rgba(0, 0, 0, .55);
  --sh-xl: 0 8px 48px rgba(0, 0, 0, .72);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  letter-spacing: -.012em;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background var(--ease), color var(--ease);
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

::selection {
  background: var(--accent-soft);
}

/* ── SIDEBAR ── */
.sb {
  width: var(--sw);
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background: var(--glass-heavy);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-right: 1px solid var(--border);
  padding: 1.1rem .75rem .75rem;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  transition: width var(--ease), transform var(--ease);
  overflow: hidden;
  box-shadow: var(--sh-sm);
}
.sb.c {
  width: var(--swc);
  padding: 1.1rem .38rem .75rem;
  border-radius: 0 22px 22px 0;
}
.sb-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 .35rem;
  margin-bottom: 1.35rem;
  white-space: nowrap;
  overflow: hidden;
}
.logo-ico {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  background: var(--logo-g);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: .95rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}
.logo-txt {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -.045em;
  transition: opacity .18s;
  white-space: nowrap;
  color: var(--text-primary);
}
.sb.c .logo-txt {
  opacity: 0;
  width: 0;
}
.sb-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-grow: 1;
  overflow-y: auto;
  overflow-x: hidden;
  margin-bottom: .4rem;
}
.sb-nav::-webkit-scrollbar {
  width: 0;
}
.nav-sec {
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  padding: .7rem .38rem .2rem;
  white-space: nowrap;
  overflow: hidden;
  transition: opacity .18s;
}
.sb.c .nav-sec {
  opacity: 0;
  width: 0;
  padding: .7rem 0 .2rem;
}
.nb {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 11px;
  border-radius: 22px;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: .83rem;
  cursor: pointer;
  transition: all .14s;
  white-space: nowrap;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
}
.nb i {
  font-size: 1.12rem;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}
.nb-lbl {
  overflow: hidden;
  transition: opacity .18s;
}
.sb.c .nb-lbl {
  opacity: 0;
  width: 0;
}
.nb-pip {
  margin-left: auto;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: .62rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 16px;
  flex-shrink: 0;
  transition: opacity .18s;
}
.sb.c .nb-pip {
  opacity: 0;
  width: 0;
  padding: 0;
}
.nb:hover {
  background: var(--accent-soft);
  color: var(--text-primary);
}
.nb.active {
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-weight: 700;
}
[data-theme="dark"] .nb.active {
  color: #7dd3fc;
}
.sb-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.sb-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 22px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
  transition: all .18s;
}
.sb-user:hover {
  border-color: var(--border-strong);
}
.sb.c .sb-user {
  justify-content: center;
  padding: 8px;
}
.u-av {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--logo-g);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: .7rem;
  flex-shrink: 0;
  overflow: hidden;
}
.u-info {
  line-height: 1.22;
  transition: opacity .18s;
  overflow: hidden;
}
.sb.c .u-info {
  opacity: 0;
  width: 0;
}
.u-name {
  font-weight: 700;
  font-size: .75rem;
  color: var(--text-primary);
}
.u-role {
  font-size: .62rem;
  color: var(--text-tertiary);
}
.u-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
  box-shadow: 0 0 5px var(--success);
}
.sb-clps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 18px;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-size: .7rem;
  font-weight: 600;
  transition: all .18s;
  width: 100%;
  white-space: nowrap;
  border: none;
}
.sb-clps:hover {
  background: var(--accent-soft);
  color: var(--accent);
}
.sb.c .sb-clps .ct {
  display: none;
}
.sb-ov {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  z-index: 1045;
}
.sb-ov.active {
  display: block;
}

/* ── HEADER ── */
.hdr {
  margin-left: calc(var(--sw) + .85rem);
  margin-right: .85rem;
  margin-top: .45rem;
  height: var(--hh);
  padding: 0 1rem;
  background: var(--glass-heavy);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  position: sticky;
  top: .45rem;
  z-index: 950;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  transition: margin-left var(--ease);
  box-shadow: var(--sh-sm);
}
.sb.c ~ .hdr {
  margin-left: calc(var(--swc) + .85rem);
}
.hdr-l {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-width: 0;
}
.hdr-bc {
  display: flex;
  align-items: center;
  gap: .25rem;
  font-size: .75rem;
  color: var(--text-tertiary);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
}
.hdr-bc .bcs {
  font-size: .6rem;
}
.hdr-bc .bca {
  color: var(--text-primary);
  font-weight: 700;
}
.hdr-bc .bcl {
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 5px;
  transition: all .12s;
}
.hdr-bc .bcl:hover {
  color: var(--brand-deep);
  background: var(--brand-soft);
}
.hdr-search {
  position: relative;
  max-width: 280px;
  width: 100%;
}
.hdr-search input {
  width: 100%;
  padding: 6px 12px 6px 33px;
  border-radius: 22px;
  border: 1.5px solid var(--border);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-size: .81rem;
  font-weight: 500;
  transition: all .18s;
  outline: none;
  font-family: inherit;
}
.hdr-search input:focus {
  border-color: var(--brand-deep);
  box-shadow: 0 0 0 3px var(--brand-soft);
  background: var(--bg-secondary);
}
.hdr-search input::placeholder {
  color: var(--text-tertiary);
}
.hdr-search i {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  font-size: .84rem;
  pointer-events: none;
}
.hdr-r {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-shrink: 0;
}
.hdr-div {
  width: 1px;
  height: 20px;
  background: var(--border-strong);
  margin: 0 .2rem;
}
.ic-btn {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  transition: all .13s;
  position: relative;
}
.ic-btn:hover {
  background: var(--accent-soft);
  color: var(--accent);
}
.th-tog {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: none;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  transition: all .18s;
  position: relative;
  overflow: hidden;
}
.th-tog:hover {
  background: var(--accent-soft);
  color: var(--accent);
}
.th-tog .is,
.th-tog .im {
  position: absolute;
  transition: all .28s ease;
}
[data-theme="dark"] .th-tog .is {
  opacity: 1;
  transform: rotate(0) scale(1);
}
[data-theme="dark"] .th-tog .im {
  opacity: 0;
  transform: rotate(-90deg) scale(.5);
}
.th-tog .is {
  opacity: 0;
  transform: rotate(90deg) scale(.5);
}
.th-tog .im {
  opacity: 1;
  transform: rotate(0) scale(1);
}

/* ── MAIN CONTENT ── */
.main {
  margin-left: var(--sw);
  padding: 1.1rem 1.3rem 2.5rem;
  transition: margin-left var(--ease);
}
.sb.c ~ .main {
  margin-left: var(--swc);
}

/* ── PAGE HEADER ── */
.pg-hdr {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1.25rem;
}
.pg-eye {
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: .22rem;
}
.pg-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.035em;
  margin: 0;
  color: var(--text-primary);
}
.pg-sub {
  font-size: .8rem;
  color: var(--text-secondary);
  margin-top: .22rem;
}

/* ── CARDS & KPI ── */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--sh-xs);
  transition: box-shadow .18s, transform .14s;
  color: var(--text-primary);
}
.card:hover {
  box-shadow: var(--sh-md);
}
.kpi {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--sh-xs);
  transition: box-shadow .18s, transform .14s;
}
.kpi:hover {
  box-shadow: var(--sh-md);
  transform: translateY(-1px);
}
.c-ico {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.kpi-val {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--text-primary);
  margin-top: .45rem;
}
.kpi-lbl {
  font-size: .7rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: .2rem;
}
.kpi-tr {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  font-size: .65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 14px;
}
.tr-up {
  background: rgba(45, 158, 86, .12);
  color: var(--success);
}
.tr-fl {
  background: var(--bg-tertiary);
  color: var(--text-tertiary);
}
.spl {
  width: 100%;
  height: 28px;
  display: block;
  margin-top: .45rem;
}

/* ── PRODUCT SELECTOR CARDS ── */
.product-select-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.15rem;
  cursor: pointer;
  transition: all .2s ease;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--sh-xs);
}
.product-select-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
}
.product-select-card.active {
  border-color: var(--brand-deep);
  background: var(--bg-secondary);
  box-shadow: 0 0 0 2px var(--brand-soft), var(--sh-md);
}
.product-select-card.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: var(--logo-g);
}

/* ── BADGES & PILLS ── */
.badge-capsule {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 16px;
  letter-spacing: .02em;
  white-space: nowrap;
}
.b-brand {
  background: var(--brand-soft);
  color: var(--brand-deep);
}
[data-theme="dark"] .b-brand {
  color: #7dd3fc;
}
.b-blue {
  background: rgba(78, 127, 168, .13);
  color: var(--blue);
}
.b-green {
  background: rgba(45, 158, 86, .13);
  color: var(--success);
}
.b-amber {
  background: rgba(217, 119, 6, .13);
  color: var(--warning);
}
.b-red {
  background: rgba(220, 38, 38, .13);
  color: var(--danger);
}
.role-badge {
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-family: var(--font-mono);
  letter-spacing: .02em;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .03em;
  white-space: nowrap;
}
.status-granted {
  background: rgba(45, 158, 86, .14);
  color: var(--success);
  border: 1px solid rgba(45, 158, 86, .25);
}
.status-restricted {
  background: rgba(220, 38, 38, .14);
  color: var(--danger);
  border: 1px solid rgba(220, 38, 38, .25);
}
.status-unassigned {
  background: rgba(217, 119, 6, .14);
  color: var(--warning);
  border: 1px solid rgba(217, 119, 6, .25);
}

/* ── TABLES ── */
.table-modern {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.table-modern th {
  background: var(--bg-tertiary);
  color: var(--text-tertiary);
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table-modern td {
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  font-size: .83rem;
  color: var(--text-primary);
}
.table-modern tr:hover td {
  background: var(--accent-soft);
}

/* ── INPUTS & BUTTONS ── */
.modern-input, .modern-select {
  background: var(--bg-tertiary);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  color: var(--text-primary);
  padding: .55rem .85rem;
  font-size: .83rem;
  transition: all .18s;
  outline: none;
  font-family: inherit;
}
.modern-input:focus, .modern-select:focus {
  border-color: var(--brand-deep);
  box-shadow: 0 0 0 3px var(--brand-soft);
  background: var(--bg-secondary);
}
select.modern-select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}
.tab-pill {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-size: .78rem;
  font-weight: 600;
  padding: .4rem .9rem;
  border-radius: 20px;
  transition: all .16s;
  cursor: pointer;
  white-space: nowrap;
}
.tab-pill:hover {
  background: var(--accent-soft);
  color: var(--text-primary);
}
.tab-pill.active {
  background: var(--brand-soft);
  color: var(--brand-deep);
  border-color: var(--border-strong);
  font-weight: 700;
}
[data-theme="dark"] .tab-pill.active {
  color: #7dd3fc;
}

/* ── BUTTONS ── */
.btn-action-primary {
  background: var(--brand-deep);
  color: #ffffff;
  border: none;
  border-radius: 20px;
  padding: .5rem 1.1rem;
  font-size: .8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: all .18s ease;
  white-space: nowrap;
}
.btn-action-primary:hover {
  background: #001f44;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 45, 98, .3);
  color: #ffffff;
}
.btn-action-emerald {
  background: rgba(45, 158, 86, .14);
  color: var(--success);
  border: 1px solid rgba(45, 158, 86, .35);
  border-radius: 20px;
  padding: .4rem .85rem;
  font-size: .78rem;
  font-weight: 700;
  transition: all .16s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.btn-action-emerald:hover {
  background: var(--success);
  color: #ffffff;
}
.btn-action-rose {
  background: rgba(220, 38, 38, .14);
  color: var(--danger);
  border: 1px solid rgba(220, 38, 38, .35);
  border-radius: 20px;
  padding: .4rem .85rem;
  font-size: .78rem;
  font-weight: 700;
  transition: all .16s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.btn-action-rose:hover {
  background: var(--danger);
  color: #ffffff;
}

/* ── MODALS ── */
.modal-content {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  color: var(--text-primary);
  box-shadow: var(--sh-xl);
}
.modal-header {
  border-bottom: 1px solid var(--border);
  padding: 1.15rem 1.4rem;
}
.modal-footer {
  border-top: 1px solid var(--border);
  padding: 1.15rem 1.4rem;
}

/* ── AVATARS ── */
.avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--logo-g);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  color: #ffffff;
  flex-shrink: 0;
}

/* ── FOOTER ── */
.ftr {
  margin-left: calc(var(--sw) + .85rem);
  margin-right: .85rem;
  margin-bottom: .65rem;
  padding: .7rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--glass-heavy);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  font-size: .72rem;
  color: var(--text-secondary);
  transition: margin-left var(--ease);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  box-shadow: var(--sh-xs);
}
.sb.c ~ .ftr {
  margin-left: calc(var(--swc) + .85rem);
}
.ftr-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2.5s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(45, 158, 86, .5); }
  50% { box-shadow: 0 0 0 6px transparent; }
}

/* ── TOAST ── */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 380px;
}
.custom-toast {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand-deep);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: var(--sh-lg);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .82rem;
  animation: slideIn .25s ease;
}
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ── RESPONSIVENESS ── */
@media(max-width: 991px) {
  .sb {
    transform: translateX(-100%);
    border-radius: 0;
    width: 260px !important;
  }
  .sb.mob-open {
    transform: translateX(0);
    box-shadow: var(--sh-xl);
  }
  .hdr {
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    box-shadow: var(--sh-xs) !important;
  }
  .main {
    margin-left: 0 !important;
    padding: .85rem .75rem 2rem;
  }
  .ftr {
    margin: 0 !important;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
  }
  .sb-clps {
    display: none !important;
  }
}
