/* Side menu (offcanvas #leftOffcanvas) – dark maroon / gold. Markup: templates/base.html.twig */
html body #leftOffcanvas {
	width: min(310px, 86vw) !important; border: 0 !important; border-right: 1px solid rgba(221, 173, 47, .18) !important;
	background: radial-gradient(120% 40% at 0 0, rgba(221, 173, 47, .14), transparent 60%), linear-gradient(180deg, #3a0a22 0%, #1f0712 50%, #140a12 100%) !important;
	color: #f4e6d0; box-shadow: 20px 0 50px rgba(0, 0, 0, .5) !important;
}
html body #leftOffcanvas::before {
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .7;
	background-image: radial-gradient(1.5px 1.5px at 80% 6%, #f5dc80, transparent), radial-gradient(1px 1px at 60% 14%, #fff, transparent), radial-gradient(1px 1px at 90% 30%, #f5dc80, transparent), radial-gradient(1.5px 1.5px at 12% 92%, #f5dc80, transparent);
}

/* header */
#leftOffcanvas .sb-head { position: relative; display: flex; align-items: center; gap: 10px; padding: 22px 16px 16px !important; border: 0 !important; background: none !important; }
#leftOffcanvas .sb-user { display: flex; flex: 1; align-items: center; gap: 12px; min-width: 0; color: inherit; text-decoration: none; }
#leftOffcanvas .sb-av { display: grid; flex: none; width: 54px; height: 54px; place-items: center; overflow: hidden; border-radius: 50%; background: linear-gradient(135deg, #f5dc80, #ddad2f); color: #260617; font-size: 21px; font-weight: 900; box-shadow: 0 0 0 3px #2a0617, 0 0 0 4px rgba(221, 173, 47, .55), 0 0 20px rgba(221, 173, 47, .3); }
#leftOffcanvas .sb-av img { width: 100%; height: 100%; object-fit: cover; }
#leftOffcanvas .sb-who { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
#leftOffcanvas .sb-who b { overflow: hidden; color: #fff3c4; font-size: 16px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
#leftOffcanvas .sb-plan { display: inline-flex; align-items: center; gap: 5px; width: fit-content; padding: 2px 9px; border-radius: 999px; background: rgba(188, 152, 169, .14); color: #d9c2cc; font-size: 10.5px; font-weight: 800; }
#leftOffcanvas .sb-plan.is-on { background: rgba(221, 173, 47, .16); color: #f5dc80; }
#leftOffcanvas .sb-plan.is-paused { background: rgba(255, 155, 168, .14); color: #ff9ba8; }
#leftOffcanvas .sb-close { display: grid; flex: none; width: 36px; height: 36px; place-items: center; border: 1px solid rgba(221, 173, 47, .3); border-radius: 12px; background: rgba(38, 6, 23, .6); color: #f5dc80; }
#leftOffcanvas .sb-close:hover { background: rgba(221, 173, 47, .14); }

/* body */
#leftOffcanvas .sb-body { position: relative; padding: 4px 14px 24px !important; overflow-y: auto; background: none !important; }
#leftOffcanvas .sb-body a { text-decoration: none; }
#leftOffcanvas .sb-login { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 12px; padding: 12px; border-radius: 999px; background: linear-gradient(120deg, #ddad2f, #f5dc80 55%, #c8921d); color: #260617; font-weight: 800; }
#leftOffcanvas .sb-home { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: rgba(38, 6, 23, .55); color: #f4e6d0; font-weight: 700; }
#leftOffcanvas .sb-home > i:first-child { color: #ddad2f; }
#leftOffcanvas .sb-home span { flex: 1; }
#leftOffcanvas .sb-home .fa-chevron-right { color: #7d5a6b; font-size: 11px; }
#leftOffcanvas .sb-home.active { background: rgba(221, 173, 47, .14); color: #f5dc80; box-shadow: inset 0 0 0 1px rgba(221, 173, 47, .4); }

#leftOffcanvas .sb-title { display: flex; align-items: center; gap: 8px; margin: 18px 4px 8px; color: #9c7a8a; font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
#leftOffcanvas .sb-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(221, 173, 47, .3), transparent); }

#leftOffcanvas .sb-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
#leftOffcanvas .sb-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 4px 12px; border: 1px solid rgba(221, 173, 47, .14); border-radius: 16px; background: linear-gradient(170deg, rgba(76, 10, 40, .8), rgba(32, 5, 19, .9)); color: #f4e6d0; font-size: 11.5px; font-weight: 700; text-align: center; line-height: 1.2; transition: transform .2s, border-color .2s; }
#leftOffcanvas .sb-tile i { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f5dc80, #ddad2f 55%, #8a5a0e); color: #260617; font-size: 16px; box-shadow: 0 0 14px rgba(221, 173, 47, .3); }
#leftOffcanvas .sb-tile:hover { transform: translateY(-2px); border-color: rgba(221, 173, 47, .4); color: #fff3c4; }
#leftOffcanvas .sb-tile.active { border-color: #f5dc80; color: #f5dc80; box-shadow: 0 0 16px rgba(221, 173, 47, .25); }

#leftOffcanvas .sb-list { overflow: hidden; border-radius: 16px; background: rgba(38, 6, 23, .55); }
#leftOffcanvas .sb-list a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: #f4e6d0; font-size: 14px; font-weight: 600; }
#leftOffcanvas .sb-list a + a { border-top: 1px solid rgba(255, 255, 255, .05); }
#leftOffcanvas .sb-list a i { width: 18px; color: #ddad2f; text-align: center; }
#leftOffcanvas .sb-list a:hover { background: rgba(221, 173, 47, .06); color: #fff3c4; }
#leftOffcanvas .sb-list a.active { background: rgba(221, 173, 47, .12); color: #f5dc80; }

#leftOffcanvas .sb-legal { display: flex; justify-content: center; gap: 8px; margin: 18px 0 10px; color: #7d5a6b; font-size: 11.5px; }
#leftOffcanvas .sb-legal a { color: #9c7a8a; }
#leftOffcanvas .sb-legal a:hover { color: #f5dc80; }
#leftOffcanvas .sb-logout { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px; border: 1px solid rgba(255, 155, 168, .3); border-radius: 999px; color: #ff9ba8; font-size: 13.5px; font-weight: 700; }
#leftOffcanvas .sb-logout:hover { background: rgba(255, 155, 168, .1); color: #ffc6cd; }

/* keep legal links + logout pinned to the bottom of the menu */
#leftOffcanvas { display: flex; flex-direction: column; }
#leftOffcanvas .sb-body { display: flex; flex: 1; flex-direction: column; min-height: 0; }
#leftOffcanvas .sb-foot { position: sticky; bottom: 0; margin: auto -14px -24px; padding: 14px 14px calc(16px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(20, 10, 18, 0), #140a12 30%); }
#leftOffcanvas .sb-foot .sb-legal { margin: 0 0 10px; }
