/* ================================================================
   JogaJunto Sidebar CSS v4.0
   Mesh gradient animated bg + ripple + badge + avatar + subtitle
   + expand-on-hover
   ================================================================ */

/* ── CSS Custom Properties ── */
:root {
  --jj-sb-w: 60px;
  --jj-sb-w-collapsed: 60px;
  --jj-sb-w-expanded: 248px;
  --jj-sb-accent: #00c853;
  --jj-sb-accent2: #00e676;
  --jj-sb-text: #94a3b8;
  --jj-sb-text-bright: #e2e8f0;
  --jj-sb-text-active: #00c853;
  --jj-sb-divider: rgba(148, 163, 184, 0.10);
  --jj-sb-shadow: 4px 0 32px rgba(0,0,0,0.40);
  --jj-sb-transition: 280ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --jj-sb-z: 1050;
  --jj-sb-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =================================================================
   GLOBAL CONTENT SHIFT
   ================================================================= */
body {
  padding-left: var(--jj-sb-w) !important;
  transition: padding-left var(--jj-sb-transition) !important;
  overflow-x: hidden;
}

#wrapwrap, #wrap, main, .jj-page,
.o_website_editor, .oe_website_sale,
.o_portal, .oe_website_login_container {
  transition: padding-left var(--jj-sb-transition),
              margin-left var(--jj-sb-transition),
              max-width var(--jj-sb-transition),
              width var(--jj-sb-transition);
}

.o_web_editor_drawer,
.o_website_editor_left_panel,
.o_web_editor_left_panel {
  left: var(--jj-sb-w) !important;
  transition: left var(--jj-sb-transition) !important;
}

/* =================================================================
   HIDE ODOO HEADER
   ================================================================= */
header#top { display: none !important; }
.o_header_standard ~ main,
.o_header_standard ~ #wrap {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* =================================================================
   MESH GRADIENT ANIMATED BACKGROUND
   Three soft blobs that slowly drift — liquid gaming feel
   ================================================================= */
@keyframes jjStarsSlow {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.55; }
}
@keyframes jjStarsFast {
  0%, 100% { opacity: 0.60; }
  33%      { opacity: 1; }
  66%      { opacity: 0.50; }
}

#jj-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: var(--jj-sb-w);
  z-index: var(--jj-sb-z);

  /* ── Starfield base ── */
  background: transparent;

  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: width var(--jj-sb-transition),
              box-shadow var(--jj-sb-transition);
  user-select: none;
  -webkit-user-select: none;
  isolation: isolate;
}

/* ── Starfield: layer 1 (dense small stars, slow twinkle) ── */
#jj-sidebar::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  width: 1px; height: 1px;
  border-radius: 50%;
  background: transparent;
  box-shadow:
     8px   12px   0   rgba(255,255,255,0.85),
    22px   34px   0   rgba(255,255,255,0.40),
    38px    7px   0   rgba(255,255,255,0.60),
    50px   62px   0   rgba(255,255,255,0.35),
    14px   89px   0   rgba(255,255,255,0.70),
    46px  110px   0   rgba(255,255,255,0.25),
    5px   145px   0   rgba(255,255,255,0.55),
    55px  168px   0   rgba(255,255,255,0.45),
    20px  210px   0   rgba(255,255,255,0.50),
    10px  265px   0   rgba(255,255,255,0.40),
    48px  285px   0   rgba(255,255,255,0.30),
    30px  320px   0   rgba(255,255,255,0.65),
    55px  350px   0   rgba(255,255,255,0.35),
    15px  388px   0   rgba(255,255,255,0.55),
    42px  415px   0   rgba(255,255,255,0.30),
    8px   460px   0   rgba(255,255,255,0.45),
    35px  495px   0   rgba(255,255,255,0.50),
    50px  525px   0   rgba(255,255,255,0.25),
    18px  560px   0   rgba(255,255,255,0.55),
    38px  590px   0   rgba(255,255,255,0.40),
    5px   630px   0   rgba(255,255,255,0.35),
    52px  655px   0   rgba(255,255,255,0.50),
    25px  690px   0   rgba(255,255,255,0.45),
    10px  720px   0   rgba(255,255,255,0.30),
    48px  745px   0   rgba(255,255,255,0.60),
    32px  780px   0   rgba(255,255,255,0.35),
    15px  810px   0   rgba(255,255,255,0.50),
    42px  845px   0   rgba(255,255,255,0.25),
    22px  875px   0   rgba(255,255,255,0.55),
    55px  900px   0   rgba(255,255,255,0.40),
    8px   935px   0   rgba(255,255,255,0.65),
    35px  960px   0   rgba(255,255,255,0.30),
   130px   20px   0   rgba(255,255,255,0.50),
   155px   55px   0   rgba(255,255,255,0.35),
   118px   95px   0   rgba(255,255,255,0.60),
   148px  130px   0   rgba(255,255,255,0.45),
   105px  180px   0   rgba(255,255,255,0.70),
   142px  225px   0   rgba(255,255,255,0.30),
   165px  270px   0   rgba(255,255,255,0.50),
   120px  310px   0   rgba(255,255,255,0.40),
   150px  355px   0   rgba(255,255,255,0.55),
   110px  400px   0   rgba(255,255,255,0.35),
   140px  445px   0   rgba(255,255,255,0.60),
   160px  490px   0   rgba(255,255,255,0.25),
   125px  535px   0   rgba(255,255,255,0.50),
   145px  580px   0   rgba(255,255,255,0.40),
   105px  630px   0   rgba(255,255,255,0.55),
   155px  675px   0   rgba(255,255,255,0.30),
   132px  720px   0   rgba(255,255,255,0.65),
   118px  768px   0   rgba(255,255,255,0.45),
   148px  812px   0   rgba(255,255,255,0.35),
   108px  860px   0   rgba(255,255,255,0.50),
   162px  905px   0   rgba(255,255,255,0.40),
   128px  948px   0   rgba(255,255,255,0.55),
   210px   10px   0   rgba(255,255,255,0.40),
   225px   48px   0   rgba(255,255,255,0.60),
   195px   85px   0   rgba(255,255,255,0.35),
   218px  125px   0   rgba(255,255,255,0.50),
   235px  170px   0   rgba(255,255,255,0.45),
   205px  215px   0   rgba(255,255,255,0.30),
   228px  260px   0   rgba(255,255,255,0.55),
   192px  305px   0   rgba(255,255,255,0.40),
   220px  348px   0   rgba(255,255,255,0.65),
   238px  395px   0   rgba(255,255,255,0.35),
   202px  440px   0   rgba(255,255,255,0.50),
   215px  488px   0   rgba(255,255,255,0.30),
   232px  535px   0   rgba(255,255,255,0.55),
   198px  582px   0   rgba(255,255,255,0.45),
   226px  630px   0   rgba(255,255,255,0.40),
   240px  678px   0   rgba(255,255,255,0.60),
   208px  725px   0   rgba(255,255,255,0.35),
   222px  772px   0   rgba(255,255,255,0.50),
   190px  820px   0   rgba(255,255,255,0.45),
   234px  865px   0   rgba(255,255,255,0.30),
   212px  912px   0   rgba(255,255,255,0.55),
   228px  955px   0   rgba(255,255,255,0.40);
  animation: jjStarsSlow 3.5s ease-in-out infinite;
}

/* ── Starfield: layer 2 (brighter stars, faster twinkle) ── */
#jj-sidebar::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  width: 2px; height: 2px;
  border-radius: 50%;
  background: transparent;
  box-shadow:
    20px   45px   0   rgba(255,255,255,0.90),
    35px   80px   0   rgba(255,255,255,0.75),
    8px   120px   0   rgba(255,255,255,1.00),
    52px  155px   0   rgba(255,255,255,0.60),
    28px  195px   0   rgba(255,255,255,0.85),
    12px  240px   0   rgba(255,255,255,0.70),
    45px  280px   0   rgba(255,255,255,0.55),
    18px  330px   0   rgba(255,255,255,0.95),
    50px  370px   0   rgba(255,255,255,0.65),
    25px  420px   0   rgba(255,255,255,0.80),
    10px  470px   0   rgba(255,255,255,0.50),
    40px  510px   0   rgba(255,255,255,0.90),
    15px  555px   0   rgba(255,255,255,0.75),
    48px  600px   0   rgba(255,255,255,0.60),
    22px  650px   0   rgba(255,255,255,0.85),
    8px   700px   0   rgba(255,255,255,0.70),
    38px  748px   0   rgba(255,255,255,0.55),
    55px  795px   0   rgba(255,255,255,0.80),
    18px  845px   0   rgba(255,255,255,0.65),
    30px  890px   0   rgba(255,255,255,0.90),
   135px   35px   0   rgba(255,255,255,0.75),
   160px   90px   0   rgba(255,255,255,0.85),
   115px  148px   0   rgba(255,255,255,0.60),
   145px  210px   0   rgba(255,255,255,0.90),
   125px  275px   0   rgba(255,255,255,0.55),
   155px  340px   0   rgba(255,255,255,0.80),
   108px  405px   0   rgba(255,255,255,0.70),
   138px  465px   0   rgba(255,255,255,0.95),
   152px  530px   0   rgba(255,255,255,0.65),
   118px  595px   0   rgba(255,255,255,0.85),
   142px  665px   0   rgba(255,255,255,0.50),
   162px  730px   0   rgba(255,255,255,0.75),
   128px  800px   0   rgba(255,255,255,0.90),
   148px  860px   0   rgba(255,255,255,0.60),
   110px  920px   0   rgba(255,255,255,0.80),
   205px   18px   0   rgba(255,255,255,0.70),
   230px   65px   0   rgba(255,255,255,0.85),
   195px  115px   0   rgba(255,255,255,0.55),
   225px  172px   0   rgba(255,255,255,0.90),
   210px  238px   0   rgba(255,255,255,0.65),
   240px  305px   0   rgba(255,255,255,0.80),
   198px  375px   0   rgba(255,255,255,0.50),
   232px  445px   0   rgba(255,255,255,0.95),
   208px  518px   0   rgba(255,255,255,0.75),
   238px  588px   0   rgba(255,255,255,0.60),
   215px  658px   0   rgba(255,255,255,0.85),
   228px  728px   0   rgba(255,255,255,0.70),
   202px  798px   0   rgba(255,255,255,0.90),
   235px  865px   0   rgba(255,255,255,0.55),
   218px  932px   0   rgba(255,255,255,0.80);
  animation: jjStarsFast 2.8s ease-in-out infinite;
}

/* ── Noise grain overlay ── */
#jj-sidebar .jj-sb-bg-noise {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.03;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Right edge accent line ── */
.jj-sb-edge {
  position: absolute;
  right: 0;
  top: 8%;
  height: 84%;
  width: 1px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(0, 200, 83, 0.05) 10%,
    rgba(0, 200, 83, 0.18) 30%,
    rgba(0, 200, 83, 0.28) 50%,
    rgba(0, 200, 83, 0.18) 70%,
    rgba(0, 200, 83, 0.05) 90%,
    transparent 100%
  );
  opacity: 0.6;
  transition: opacity 400ms ease;
}
#jj-sidebar.expanded .jj-sb-edge { opacity: 1; }
#jj-sidebar:hover .jj-sb-edge { opacity: 1; }

/* ── States ── */
#jj-sidebar.collapsed {
  width: var(--jj-sb-w-collapsed);
  box-shadow: none;
}
#jj-sidebar.collapsed ~ * {
  --jj-sb-w: var(--jj-sb-w-collapsed);
}
#jj-sidebar.expanded {
  width: var(--jj-sb-w-expanded);
  box-shadow: var(--jj-sb-shadow);
}
#jj-sidebar.expanded ~ * {
  --jj-sb-w: var(--jj-sb-w-expanded);
}

#jj-sidebar::-webkit-scrollbar { width: 0; }

/* =================================================================
   LOGO SECTION
   ================================================================= */
.jj-sb-logo {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: 18px 16px;
  gap: 12px;
  min-height: 64px;
  text-decoration: none !important;
  cursor: pointer;
}

.jj-sb-logo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(0, 200, 83, 0.20) 30%,
    rgba(0, 200, 83, 0.10) 50%,
    rgba(0, 200, 83, 0.20) 70%,
    transparent 100%
  );
}

.jj-sb-logo-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  color: var(--jj-sb-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s var(--jj-sb-bounce);
}
.jj-sb-logo-icon svg {
  width: 100%;
  height: 100%;
}
.jj-sb-logo:hover .jj-sb-logo-icon {
  transform: rotate(-3deg);
}

.jj-sb-logo-text-wrap {
  overflow: hidden;
  opacity: 0;
  transition: opacity 200ms ease;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
#jj-sidebar.expanded .jj-sb-logo-text-wrap {
  opacity: 1;
}
.jj-sb-logo-text {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--jj-sb-text-bright);
  white-space: nowrap;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.jj-sb-logo-subtitle {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--jj-sb-accent);
  white-space: nowrap;
  letter-spacing: 0.03em;
  opacity: 0.85;
}

/* =================================================================
   AVATAR / USER SECTION (top, below logo)
   ================================================================= */
.jj-sb-avatar-wrap {
  position: relative;
  z-index: 2;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background 150ms ease;
}
.jj-sb-avatar-wrap:hover {
  background: rgba(255,255,255,0.04);
}

.jj-sb-avatar {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00c853, #009688);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  transition: transform 0.3s var(--jj-sb-bounce),
              box-shadow 0.3s ease;
  box-shadow: 0 0 0 2px rgba(0, 200, 83, 0.20);
}
.jj-sb-avatar-wrap:hover .jj-sb-avatar {
  transform: scale(1.08);
  box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.35),
              0 0 20px rgba(0, 200, 83, 0.15);
}

.jj-sb-avatar-info {
  overflow: hidden;
  opacity: 0;
  transition: opacity 200ms ease;
  display: flex;
  flex-direction: column;
  gap: 0;
}
#jj-sidebar.expanded .jj-sb-avatar-info {
  opacity: 1;
}
.jj-sb-avatar-name {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--jj-sb-text-bright);
  white-space: nowrap;
  line-height: 1.2;
}
.jj-sb-avatar-email {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--jj-sb-text);
  white-space: nowrap;
  line-height: 1.2;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 130px;
}

/* ── Avatar dropdown ── */
.jj-sb-avatar-dropdown {
  display: none;
  position: absolute;
  left: calc(100% - 8px);
  top: 0;
  background: rgba(20, 30, 40, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 10px;
  padding: 6px;
  min-width: 180px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.45);
  z-index: 20;
}
.jj-sb-avatar-wrap:hover .jj-sb-avatar-dropdown,
.jj-sb-avatar-dropdown:hover {
  display: block;
}

.jj-sb-drop-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 7px;
  color: var(--jj-sb-text);
  text-decoration: none !important;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}
.jj-sb-drop-item:hover {
  background: rgba(255,255,255,0.07);
  color: var(--jj-sb-text-bright);
}
.jj-sb-drop-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.jj-sb-drop-divider {
  height: 1px;
  margin: 4px 8px;
  background: rgba(148, 163, 184, 0.12);
}

/* =================================================================
   TOGGLE BUTTON
   ================================================================= */
.jj-sb-toggle {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 44px;
  background: none;
  border: none;
  border-top: 1px solid transparent;
  background-image: linear-gradient(90deg,
    transparent 15%,
    rgba(148, 163, 184, 0.12) 50%,
    transparent 85%
  );
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: top;
  cursor: pointer;
  color: var(--jj-sb-text);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color 150ms ease, background 150ms ease;
  padding: 8px;
  gap: 0;
}
.jj-sb-toggle svg {
  width: 20px;
  height: 20px;
  transition: transform 280ms var(--jj-sb-bounce);
}
.jj-sb-toggle:hover {
  color: var(--jj-sb-text-bright);
  background: rgba(255, 255, 255, 0.04);
}
.jj-sb-toggle:hover svg {
  transform: scale(1.1);
}

#jj-sidebar.collapsed .jj-sb-toggle {
  justify-content: center;
}
#jj-sidebar.expanded .jj-sb-toggle svg {
  transform: rotate(90deg);
}
#jj-sidebar.expanded .jj-sb-toggle:hover svg {
  transform: rotate(90deg) scale(1.1);
}

/* =================================================================
   NAV ITEMS — staggered entrance + ripple effect
   ================================================================= */
.jj-sb-nav {
  position: relative;
  z-index: 2;
  flex: 1;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  overflow-x: hidden;
}

/* ── Staggered entrance ── */
@keyframes jjNavSlideIn {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: translateX(0); }
}

.jj-sb-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 10px;
  text-decoration: none !important;
  color: var(--jj-sb-text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  transition: background 180ms ease, color 180ms ease,
              padding var(--jj-sb-transition),
              transform 180ms var(--jj-sb-bounce);
  position: relative;
  cursor: pointer;
  min-height: 44px;
  letter-spacing: 0.015em;

  opacity: 0;
  animation: jjNavSlideIn 0.45s ease-out forwards;
}
.jj-sb-nav-item:nth-child(1) { animation-delay: 0.06s; }
.jj-sb-nav-item:nth-child(2) { animation-delay: 0.12s; }
.jj-sb-nav-item:nth-child(3) { animation-delay: 0.18s; }
.jj-sb-nav-item:nth-child(4) { animation-delay: 0.24s; }
.jj-sb-nav-item:nth-child(5) { animation-delay: 0.30s; }
.jj-sb-nav-item:nth-child(6) { animation-delay: 0.36s; }

/* ── Hover ripple ── */
.jj-sb-nav-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: radial-gradient(circle at var(--jj-ripple-x, 50%) var(--jj-ripple-y, 50%),
    rgba(0, 200, 83, 0.18) 0%,
    transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.jj-sb-nav-item:hover::after {
  opacity: 1;
}
.jj-sb-nav-item:active::after {
  opacity: 1;
  background: radial-gradient(circle at var(--jj-ripple-x, 50%) var(--jj-ripple-y, 50%),
    rgba(0, 200, 83, 0.28) 0%,
    transparent 60%);
  transition: opacity 0.15s ease;
}

/* ── Click ripple burst ── */
@keyframes jjRippleBurst {
  from { transform: scale(0); opacity: 0.6; }
  to   { transform: scale(1.4); opacity: 0; }
}
.jj-sb-ripple {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 255, 100, 0.35), transparent);
  pointer-events: none;
  animation: jjRippleBurst 0.6s ease-out forwards;
  z-index: 5;
}

.jj-sb-nav-item:hover {
  background: rgba(255,255,255,0.06);
  color: var(--jj-sb-text-bright);
  text-decoration: none !important;
  transform: translateX(3px);
}

.jj-sb-nav-item.active {
  background: rgba(0, 200, 83, 0.12);
  color: var(--jj-sb-accent);
  font-weight: 600;
}

/* ── Active indicator pill ── */
.jj-sb-nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 24px;
  background: var(--jj-sb-accent);
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 10px rgba(0, 200, 83, 0.5);
  animation: jjActivePulse 2s ease-in-out infinite;
}

@keyframes jjActivePulse {
  0%, 100% { box-shadow: 0 0 6px rgba(0, 200, 83, 0.35); }
  50%      { box-shadow: 0 0 16px rgba(0, 200, 83, 0.65); }
}

/* ── Notification badge (pulse dot) ── */
.jj-sb-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 9px;
  height: 9px;
  background: #ff3d00;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(255, 61, 0, 0.6);
  display: none;
  z-index: 3;
}
.jj-sb-badge.has-notifications {
  display: block;
  animation: jjBadgePulse 1.5s ease-in-out infinite;
}
@keyframes jjBadgePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.35); opacity: 0.7; }
}

#jj-sidebar.collapsed .jj-sb-badge {
  right: auto;
  left: 36px;
  top: 6px;
}

/* ── Nav Icon ── */
.jj-sb-nav-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--jj-sb-bounce),
              margin var(--jj-sb-transition);
}
.jj-sb-nav-icon svg {
  width: 22px;
  height: 22px;
}
.jj-sb-nav-item:hover .jj-sb-nav-icon {
  transform: scale(1.15);
}

/* Center icons in collapsed state */
#jj-sidebar.collapsed .jj-sb-nav-item {
  justify-content: center;
  padding: 10px 6px;
}
#jj-sidebar.collapsed .jj-sb-nav-icon {
  margin: 0;
}
#jj-sidebar.collapsed .jj-sb-nav-item:hover {
  transform: translateX(0);
}

/* ── Nav Label ── */
.jj-sb-nav-label {
  opacity: 0;
  transition: opacity 150ms ease;
  overflow: hidden;
}
#jj-sidebar.expanded .jj-sb-nav-label {
  opacity: 1;
}

/* =================================================================
   EXPAND-ON-HOVER (sidebar area triggers expansion)
   ================================================================= */
/* Hover zone: invisible strip that catches cursor near collapsed sidebar */
.jj-sb-hover-zone {
  position: fixed;
  left: 0;
  top: 0;
  width: calc(var(--jj-sb-w-collapsed) + 12px);
  height: 100vh;
  z-index: calc(var(--jj-sb-z) - 1);
  pointer-events: none; /* let clicks through to sidebar */
}
/* When sidebar is collapsed, enable hover zone */
#jj-sidebar.collapsed ~ .jj-sb-hover-zone {
  pointer-events: auto;
}

/* Expand on hover (collapsed state) */
#jj-sidebar.collapsed:hover,
#jj-sidebar.collapsed.hover-expanded {
  width: var(--jj-sb-w-expanded) !important;
  box-shadow: var(--jj-sb-shadow);
}
#jj-sidebar.collapsed:hover .jj-sb-logo-text-wrap,
#jj-sidebar.collapsed.hover-expanded .jj-sb-logo-text-wrap {
  opacity: 1;
}
#jj-sidebar.collapsed:hover .jj-sb-nav-label,
#jj-sidebar.collapsed.hover-expanded .jj-sb-nav-label {
  opacity: 1;
}
#jj-sidebar.collapsed:hover .jj-sb-avatar-info,
#jj-sidebar.collapsed.hover-expanded .jj-sb-avatar-info {
  opacity: 1;
}
#jj-sidebar.collapsed:hover .jj-sb-nav-item,
#jj-sidebar.collapsed.hover-expanded .jj-sb-nav-item {
  justify-content: flex-start;
  padding: 11px 12px;
}
#jj-sidebar.collapsed:hover .jj-sb-nav-icon,
#jj-sidebar.collapsed.hover-expanded .jj-sb-nav-icon {
  margin: 0;
}
#jj-sidebar.collapsed:hover .jj-sb-toggle svg,
#jj-sidebar.collapsed.hover-expanded .jj-sb-toggle svg {
  transform: rotate(90deg);
}

/* =================================================================
   BOTTOM SECTION
   ================================================================= */
.jj-sb-bottom {
  position: relative;
  z-index: 2;
  padding: 6px 8px 12px;
  border-top: 1px solid transparent;
  background-image: linear-gradient(90deg,
    transparent 5%,
    rgba(148, 163, 184, 0.10) 30%,
    rgba(148, 163, 184, 0.06) 50%,
    rgba(148, 163, 184, 0.10) 70%,
    transparent 95%
  );
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: top;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.jj-sb-bottom .jj-sb-nav-item {
  margin: 0;
  animation: jjNavSlideIn 0.45s ease-out forwards;
}
.jj-sb-bottom .jj-sb-nav-item:nth-child(1) { animation-delay: 0.36s; }
.jj-sb-bottom .jj-sb-nav-item:nth-child(2) { animation-delay: 0.42s; }

/* =================================================================
   TOOLTIP (collapsed state) — glass effect
   ================================================================= */
.jj-sb-tooltip {
  position: fixed;
  left: calc(var(--jj-sb-w-collapsed) + 12px);
  background: rgba(20, 30, 40, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #e2e8f0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 2000;
  opacity: 0;
  transform: translateY(-50%) scale(0.95);
  transition: opacity 150ms ease, transform 150ms var(--jj-sb-bounce);
  box-shadow: 0 4px 20px rgba(0,0,0,0.40);
  border: 1px solid rgba(148, 163, 184, 0.12);
}
.jj-sb-tooltip::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-right-color: rgba(20, 30, 40, 0.94);
  border-left: 0;
}

/* =================================================================
   CONTENT ADAPTATION
   ================================================================= */
.jj-hero-banner-wrapper img {
  max-width: calc(100vw - var(--jj-sb-w) - 48px) !important;
  transition: max-width var(--jj-sb-transition) !important;
}
.jj-hero-features {
  transition: padding-left var(--jj-sb-transition) !important;
}
.jj-games-section {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.jj-game-cards {
  max-width: calc(100vw - var(--jj-sb-w) - 40px) !important;
  transition: max-width var(--jj-sb-transition) !important;
}
.jj-page { overflow-x: hidden; }
.jj-hero-stacked { overflow: hidden; }
.jj-hero-stacked::before {
  left: calc(50% - var(--jj-sb-w) / 2) !important;
  transition: left var(--jj-sb-transition) !important;
}
footer, #footer, .jj-footer, .o_footer {
  transition: padding-left var(--jj-sb-transition),
              margin-left var(--jj-sb-transition);
}
.oe_website_login_container .oe_login_form {
  transition: margin var(--jj-sb-transition) !important;
}
.o_portal_my_home,
.o_portal_wrap {
  transition: padding var(--jj-sb-transition),
              margin var(--jj-sb-transition);
}

/* =================================================================
   SHOP / PRODUCT PAGES
   ================================================================= */
.oe_website_sale .oe_product_cart,
.oe_website_sale .oe_product_image,
#products_grid,
.oe_website_sale .products_pager {
  transition: width var(--jj-sb-transition),
              max-width var(--jj-sb-transition),
              margin var(--jj-sb-transition);
}
#products_grid {
  width: calc(100vw - var(--jj-sb-w) - 32px) !important;
  max-width: calc(100vw - var(--jj-sb-w) - 32px) !important;
}

/* =================================================================
   SCROLLBAR
   ================================================================= */
#jj-sidebar .jj-sb-nav::-webkit-scrollbar {
  width: 4px;
}
#jj-sidebar .jj-sb-nav::-webkit-scrollbar-track {
  background: transparent;
}
#jj-sidebar .jj-sb-nav::-webkit-scrollbar-thumb {
  background: rgba(0, 200, 83, 0.12);
  border-radius: 4px;
}
#jj-sidebar .jj-sb-nav::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 200, 83, 0.25);
}

/* =================================================================
   MOBILE
   ================================================================= */
.jj-sb-mobile-toggle {
  display: none;
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: calc(var(--jj-sb-z) + 10);
  background: #011a16;
  border: 1px solid var(--jj-sb-divider);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  color: var(--jj-sb-text);
  align-items: center;
  justify-content: center;
  padding: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  transition: background 150ms ease, transform 0.2s var(--jj-sb-bounce);
}
.jj-sb-mobile-toggle svg {
  width: 22px;
  height: 22px;
}
.jj-sb-mobile-toggle:hover,
.jj-sb-mobile-toggle.active {
  color: var(--jj-sb-text-bright);
  background: #12233f;
  transform: scale(1.05);
}

.jj-sb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: calc(var(--jj-sb-z) - 1);
  opacity: 0;
  transition: opacity 280ms ease;
}
.jj-sb-overlay.show {
  display: block;
  opacity: 1;
}

@media (max-width: 991px) {
  body { padding-left: 0 !important; }
  .jj-sb-mobile-toggle { display: flex; }
  .jj-sb-hover-zone { display: none !important; }
  #jj-sidebar {
    transform: translateX(-100%);
    width: var(--jj-sb-w-expanded) !