/*
 * JLPT180 Sidebar CSS owner.
 * P4.26: moved desktop sidebar / brand / nav from shell.css.
 * Scope: .sidebar / .brand-* / .nav-s / .nl* / .nav-foot only.
 */
body.jlpt180-clean-lobby .sidebar{
flex: 0 0 250px;
  width: 250px;
  height: 100dvh;
  padding: 18px 12px 22px;
  display: flex;
  flex-direction: column;
  border-right: 3px solid rgba(104, 248, 255, .95);
  box-shadow: 10px 0 30px rgba(3, 58, 82, .24), inset -1px 0 0 rgba(255,255,255,.72);
  background-image: linear-gradient(180deg, rgba(249,255,255,.94), rgba(222,255,250,.9)), var(--jlpt-bg-sidebar);
  background-size: cover;
  background-position: left center;
  z-index: 10;
}


body.jlpt180-clean-lobby .brand{
display: grid;
  justify-items: center;
  gap: 6px;
  margin: 0 0 16px;
  text-align: center;
}


body.jlpt180-clean-lobby .brand-ico{
width: 108px;
  height: 108px;
  background: var(--jlpt-crest) center / contain no-repeat;
  filter: drop-shadow(0 8px 12px rgba(11, 72, 104, .26));
}


body.jlpt180-clean-lobby .brand-ico img{
display: none;
}


body.jlpt180-clean-lobby .brand-txt{
font-family: "Cinzel", Georgia, serif;
  font-weight: 900;
  font-size: 29px;
  line-height: .86;
  color: #1a6792;
  text-shadow: 0 2px 0 rgba(255,255,255,.95);
}


body.jlpt180-clean-lobby .brand-sub{
display: inline-flex;
  margin-top: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.74);
  color: #1a6591;
  font-size: 13px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(104,248,255,.45), 0 4px 10px rgba(12,85,118,.16);
}


body.jlpt180-clean-lobby .nav-s{
display: grid;
  gap: 8px;
}


body.jlpt180-clean-lobby .nl{
--nl-accent: #31e9ff;
  --nl-accent-soft: rgba(219, 248, 255, .95);
  --nl-glow: rgba(49, 233, 255, .34);
  position: relative;
  width: 100%;
  min-height: 50px;
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 8px;
  padding: 7px 11px 7px 6px;
  border: 2px solid rgba(77, 231, 245, .95);
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(238,255,255,.88), rgba(169,239,235,.82));
  color: #123b5a;
  font: inherit;
  font-weight: 900;
  letter-spacing: 0;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.76), 0 5px 12px rgba(10,85,110,.12);
}


body.jlpt180-clean-lobby .nl[data-view="dashboard"]{
--nl-accent: #18c7ff; --nl-accent-soft: rgba(219, 248, 255, .95); --nl-glow: rgba(24, 199, 255, .34);
}


body.jlpt180-clean-lobby .nl[data-view="hocluc"]{
--nl-accent: #ffb347; --nl-accent-soft: rgba(255, 242, 214, .96); --nl-glow: rgba(255, 179, 71, .34);
}


body.jlpt180-clean-lobby .nl[data-view="nhiemvu"]{
--nl-accent: #8b5cf6; --nl-accent-soft: rgba(240, 230, 255, .96); --nl-glow: rgba(139, 92, 246, .34);
}


body.jlpt180-clean-lobby .nl[data-view="banghoi"]{
--nl-accent: #14b8a6; --nl-accent-soft: rgba(219, 252, 246, .96); --nl-glow: rgba(20, 184, 166, .34);
}


body.jlpt180-clean-lobby .nl[data-view="shop"]{
--nl-accent: #22c55e; --nl-accent-soft: rgba(226, 255, 236, .96); --nl-glow: rgba(34, 197, 94, .34);
}


body.jlpt180-clean-lobby .nl[data-view="tangkho"]{
--nl-accent: #06b6d4; --nl-accent-soft: rgba(220, 251, 255, .96); --nl-glow: rgba(6, 182, 212, .34);
}


body.jlpt180-clean-lobby .nl[data-view="profile"]{
--nl-accent: #ec4899; --nl-accent-soft: rgba(255, 228, 242, .96); --nl-glow: rgba(236, 72, 153, .34);
}


body.jlpt180-clean-lobby .nl::before{
content: "";
  position: absolute;
  left: -2px;
  top: 8px;
  bottom: 8px;
  width: 6px;
  border-radius: 999px;
  background: transparent;
  transition: background .16s ease, box-shadow .16s ease;
}


body.jlpt180-clean-lobby .nl.active,
body.jlpt180-clean-lobby .nl:hover{
background: linear-gradient(135deg, rgba(255,255,255,.98), var(--nl-accent-soft));
  border-color: var(--nl-accent);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.96), 0 0 0 2px rgba(255,255,255,.42), 0 0 20px var(--nl-glow), 0 8px 16px rgba(10,85,110,.16);
}


body.jlpt180-clean-lobby .nl.active{
transform: translateX(3px);
}


body.jlpt180-clean-lobby .nl.active::before{
background: linear-gradient(180deg, var(--nl-accent), rgba(255,255,255,.7));
  box-shadow: 0 0 12px var(--nl-glow);
}


body.jlpt180-clean-lobby .nl > i{
width: 42px;
  height: 42px;
  display: block;
  background: var(--jlpt-nav-1) center / contain no-repeat;
  filter: drop-shadow(0 3px 6px rgba(2,44,62,.25));
}


body.jlpt180-clean-lobby .nl.active > i{
filter: none;
}


body.jlpt180-clean-lobby .nav-s .nl[data-view="hocluc"] > i{
background-image: var(--jlpt-nav-2);
}


body.jlpt180-clean-lobby .nav-s .nl[data-view="nhiemvu"] > i{
background-image: var(--jlpt-nav-3);
}


body.jlpt180-clean-lobby .nav-s .nl[data-view="banghoi"] > i{
background-image: var(--jlpt-nav-6);
}


body.jlpt180-clean-lobby .nav-s .nl[data-view="shop"] > i{
background-image: var(--jlpt-nav-4);
}


body.jlpt180-clean-lobby .nav-s .nl[data-view="tangkho"] > i{
background-image: var(--jlpt-nav-5);
}


body.jlpt180-clean-lobby .nav-s .nl[data-view="profile"] > i{
background-image: var(--jlpt-nav-6);
}


body.jlpt180-clean-lobby .nav-foot .nl > i{
background-image: var(--jlpt-nav-logout);
}


body.jlpt180-clean-lobby .nl .fa-solid,
body.jlpt180-clean-lobby .nl .fa-regular{
font-size: 0;
}


body.jlpt180-clean-lobby .nl-wrap{
min-width: 0;
  display: grid;
  gap: 2px;
  text-align: center;
}


body.jlpt180-clean-lobby .nl-wrap > span:first-child{
font-size: 15px;
  line-height: 1.06;
}


body.jlpt180-clean-lobby .nl.active .nl-wrap > span:first-child{
color: var(--nl-accent);
  text-shadow: 0 0 10px rgba(255,255,255,.85);
}


body.jlpt180-clean-lobby .nl-sub{
justify-self: center;
  max-width: 100%;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.7);
  color: #276e93;
  font-size: 11px;
  line-height: 1.25;
  white-space: normal;
}


body.jlpt180-clean-lobby .nl.active .nl-sub{
background: rgba(255,255,255,.9);
  color: #143f5e;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.9);
}


body.jlpt180-clean-lobby .nav-foot{
margin-top: auto;
}


body.jlpt180-clean-lobby .nav-foot .nl{
grid-template-columns: 56px 1fr;
  min-height: 62px;
}


@media (max-width: 899px){
body.jlpt180-clean-lobby .sidebar{
display: none;
  }
}


@media (min-width: 900px){
body.jlpt180-clean-lobby .brand{
gap: 3px;
    margin-bottom: 14px;
    place-items: center;
  }


  body.jlpt180-clean-lobby .brand-ico{
width: 124px;
    height: 124px;
    margin-bottom: -2px;
  }


  body.jlpt180-clean-lobby .brand-txt{
line-height: .74;
    margin-top: -2px;
  }


  body.jlpt180-clean-lobby .brand-sub{
margin-top: 3px;
    align-items: center;
    justify-content: center;
  }


  body.jlpt180-clean-lobby .nl{
grid-template-columns: 42px minmax(0, 1fr);
    gap: 2px;
    align-items: center;
    padding-left: 8px;
  }


  body.jlpt180-clean-lobby .nl > i{
width: 40px;
    height: 40px;
    align-self: center;
  }


  body.jlpt180-clean-lobby .nl-wrap{
align-self: center;
    align-content: center;
    gap: 1px;
    text-align: left;
  }


  body.jlpt180-clean-lobby .nl-sub{
justify-self: start;
    text-align: center;
  }
}


@media (min-width: 900px){
body.jlpt180-clean-lobby .sidebar{
display: flex;
    visibility: visible;
    opacity: 1;
    flex: 0 0 250px;
    width: 250px;
    position: relative;
    z-index: 20;
  }


  body.jlpt180-clean-lobby .brand,
body.jlpt180-clean-lobby .nav-s,
body.jlpt180-clean-lobby .nav-foot{
display: grid;
    visibility: visible;
    opacity: 1;
  }


  body.jlpt180-clean-lobby .nl{
display: grid;
    visibility: visible;
    opacity: 1;
  }
}


@media (min-width: 900px){
body.jlpt180-clean-lobby .sidebar{
background:
      radial-gradient(circle at 42% 8%, rgba(255, 226, 238, .34), transparent 30%),
      linear-gradient(180deg, rgba(240, 255, 252, .9), rgba(221, 249, 255, .82));
    border-right-color: rgba(255, 174, 205, .42);
    box-shadow: 10px 0 28px rgba(41, 137, 163, .10);
  }


  body.jlpt180-clean-lobby .brand-sub{
background: linear-gradient(90deg, rgba(255, 246, 251, .96), rgba(232, 255, 249, .96));
    color: #0b6f8c;
    border: 1px solid rgba(255, 160, 196, .42);
    box-shadow: 0 7px 16px rgba(255, 143, 189, .10);
  }


  body.jlpt180-clean-lobby .nl{
border-color: rgba(94, 210, 225, .68);
    background: linear-gradient(180deg, rgba(247, 255, 253, .84), rgba(229, 251, 255, .76));
    box-shadow: 0 7px 16px rgba(10, 115, 151, .08), inset 0 1px 0 rgba(255,255,255,.9);
  }


  body.jlpt180-clean-lobby .nl.active{
border-color: rgba(255, 143, 189, .84);
    background:
      radial-gradient(circle at 14% 18%, rgba(255, 209, 229, .72), transparent 35%),
      linear-gradient(180deg, rgba(255, 252, 254, .95), rgba(231, 255, 249, .86));
    box-shadow: 0 9px 20px rgba(255, 143, 189, .18), inset 4px 0 0 rgba(255, 112, 171, .86);
  }
}


@media (min-width: 900px){
body.jlpt180-clean-lobby .nl:not(.active){
border-color: rgba(42, 190, 215, .58);
    opacity: .94;
  }


  body.jlpt180-clean-lobby .nl.active{
border-width: 2px;
    box-shadow: 0 12px 24px rgba(255, 104, 170, .20), inset 5px 0 0 rgba(255, 112, 171, .95);
  }
}

/* P4.102: Vấn Đạo Tông brand readability and accent-safe font. */
body.jlpt180-clean-lobby .brand-txt{
  font-family:Georgia, "Times New Roman", serif;
  font-size:clamp(24px, 1.9vw, 30px);
  line-height:.98;
  letter-spacing:.015em;
  color:#145f8d;
  text-shadow:0 2px 0 rgba(255,255,255,.96), 0 0 10px rgba(255,255,255,.65);
  overflow:visible;
}
@media (min-width:900px){
  body.jlpt180-clean-lobby .brand-txt{
    margin-top:0;
    line-height:.96;
  }
}

/* P4.103: hard fix Vietnamese brand rendering. */
body.jlpt180-clean-lobby .brand-copy{
  width:100%;
  min-width:0;
  display:grid;
  justify-items:center;
}
body.jlpt180-clean-lobby .brand-txt{
  display:block;
  width:100%;
  max-width:210px;
  font-family:Arial, "Helvetica Neue", sans-serif;
  font-size:26px;
  line-height:1.02;
  letter-spacing:0;
  word-spacing:0;
  font-weight:900;
  text-align:center;
  white-space:normal;
  word-break:keep-all;
  overflow-wrap:normal;
  color:#145f8d;
  text-shadow:0 2px 0 rgba(255,255,255,.96), 0 0 10px rgba(255,255,255,.65);
}
@media (min-width:900px){
  body.jlpt180-clean-lobby .brand-txt{
    font-size:25px;
    line-height:1.04;
    margin-top:0;
  }
}


/* V-SIDEBAR-2: compact the left menu so Logout remains visible with social links. */
@media (min-width:900px){
  body.jlpt180-clean-lobby .sidebar{
    padding:10px 10px 12px;
    overflow-y:auto;
    overflow-x:hidden;
    scrollbar-width:thin;
  }
  body.jlpt180-clean-lobby .brand{
    margin-bottom:9px;
    gap:2px;
  }
  body.jlpt180-clean-lobby .brand-ico{
    width:96px;
    height:96px;
    margin-bottom:-2px;
  }
  body.jlpt180-clean-lobby .brand-txt{
    font-size:28px;
    line-height:.78;
  }
  body.jlpt180-clean-lobby .brand-sub{
    margin-top:3px;
    font-size:12px;
    padding:2px 8px;
  }
  body.jlpt180-clean-lobby .nav-s{
    gap:6px;
  }
  body.jlpt180-clean-lobby .nl{
    min-height:46px;
    padding-top:5px;
    padding-bottom:5px;
  }
  body.jlpt180-clean-lobby .nl > i{
    width:36px;
    height:36px;
  }
  body.jlpt180-clean-lobby .nl-wrap > span:first-child{
    font-size:14px;
  }
  body.jlpt180-clean-lobby .nl-sub{
    font-size:10px;
    line-height:1.15;
    padding:1px 7px;
  }
  body.jlpt180-clean-lobby .nav-foot{
    margin-top:6px;
    flex:0 0 auto;
  }
  body.jlpt180-clean-lobby .nav-foot .nl{
    min-height:52px;
  }
}

/* V-LOGO-1: replace old crest/text block with compressed JLPT180 WebP logo. */
body.jlpt180-clean-lobby .brand{
  gap:4px;
}
body.jlpt180-clean-lobby .brand-ico{
  width:min(218px,100%);
  height:104px;
  background:var(--jlpt-brand-logo) center / contain no-repeat;
  filter:drop-shadow(0 10px 16px rgba(3,58,82,.22));
}
body.jlpt180-clean-lobby .brand-txt{
  display:none;
}
body.jlpt180-clean-lobby .brand-sub{
  margin-top:-7px;
  font-size:12px;
  color:#16726f;
  background:rgba(255,255,255,.78);
  border:1px solid rgba(31,196,170,.22);
}
@media (min-width:900px){
  body.jlpt180-clean-lobby .brand{
    margin-bottom:8px;
  }
  body.jlpt180-clean-lobby .brand-ico{
    width:210px;
    height:96px;
    margin-bottom:0;
  }
  body.jlpt180-clean-lobby .brand-sub{
    margin-top:-8px;
    font-size:11px;
    padding:2px 8px;
  }
}
