.rail[data-v-nav-rail] {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
  min-height: 0;
  gap: 4px;
}
.brand[data-v-nav-rail] {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.02em;
  padding: 4px 8px 18px;
}

/* Wrapper so the "more below" arrow can sit over the scroll area without scrolling
   with it. The hairline underneath separates the menu from the pinned upgrade card. */
.nav-wrap[data-v-nav-rail] {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  border-bottom: 1px solid var(--line, rgba(255, 255, 255, 0.07));
}

/* The only scrolling region: menu + community links. Brand sits above it and the
   upgrade card below it, both pinned. Fades appear only on the side that has more
   content (--fade-top / --fade-bottom are set from the scroll position). */
.nav-scroll[data-v-nav-rail] {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0 -4px;
  padding: 0 4px 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
  --fade-top: 0px;
  --fade-bottom: 0px;
  -webkit-mask-image: linear-gradient(transparent 0, #000 var(--fade-top), #000 calc(100% - var(--fade-bottom)), transparent 100%);
  mask-image: linear-gradient(transparent 0, #000 var(--fade-top), #000 calc(100% - var(--fade-bottom)), transparent 100%);
}
.nav-scroll[data-v-nav-rail]::-webkit-scrollbar {
  width: 4px;
}
.nav-scroll[data-v-nav-rail]::-webkit-scrollbar-track {
  background: transparent;
}
.nav-scroll[data-v-nav-rail]::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.22);
}
.scroll-more[data-v-nav-rail] {
  position: absolute;
  left: 50%;
  bottom: 8px;
  z-index: 2;
  width: 32px;
  height: 32px;
  margin-left: -16px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--accent-line, rgba(255, 45, 138, 0.45));
  background: rgba(24, 27, 36, 0.92);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 16px -4px rgba(0, 0, 0, 0.7);
  animation: more-bob-nav-rail 1.6s ease-in-out infinite;
}
.scroll-more svg[data-v-nav-rail] {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.scroll-more[data-v-nav-rail]:hover {
  background: var(--accent, #ff2d8a);
}
@keyframes more-bob-nav-rail {
0%, 100% {
    transform: translateY(0);
}
50% {
    transform: translateY(3px);
}
}
.more-enter-active[data-v-nav-rail],
.more-leave-active[data-v-nav-rail] {
  transition: opacity 0.2s ease;
}
.more-enter-from[data-v-nav-rail],
.more-leave-to[data-v-nav-rail] {
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
.scroll-more[data-v-nav-rail] {
    animation: none;
}
.more-enter-active[data-v-nav-rail],
  .more-leave-active[data-v-nav-rail] {
    transition: none;
}
}
.nav[data-v-nav-rail] {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-label[data-v-nav-rail] {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim, #75636d);
  padding: 14px 12px 6px;
}
.item[data-v-nav-rail] {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #d9c8cf;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  border: 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.item[data-v-nav-rail]:hover {
  background: var(--surface-2, #1c1115);
  color: #fff;
}
.item.active[data-v-nav-rail] {
  background: var(--grad, linear-gradient(135deg, #ff7cc2 0%, #ff2d8a 55%, #e3157c 100%));
  color: #fff;
  box-shadow: 0 10px 40px -10px rgba(255, 20, 118, 0.65);
}
.item.active .badge[data-v-nav-rail] {
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
}
.item .label[data-v-nav-rail] {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ext-group[data-v-nav-rail] {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
}
.ext-link .ext[data-v-nav-rail] {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.6;
}
.badge[data-v-nav-rail] {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 99px;
  background: var(--accent-soft, rgba(255, 45, 138, 0.14));
  color: var(--accent-2, #ff74b8);
}
.tour-entry[data-v-nav-rail] svg {
  color: var(--tone-86efac);
}
.upgrade-card[data-v-nav-rail] {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  flex-shrink: 0;
  padding: 16px 16px 14px;
  margin-top: 10px;
  background: var(--bg-soft, #22252f);
  border: 1px solid var(--accent-line, rgba(255, 45, 138, 0.45));
}
.upgrade-card h4[data-v-nav-rail] {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  max-width: 75%;
  color: #fff;
}
.upgrade-card p[data-v-nav-rail] {
  font-size: 12px;
  color: #f1c9d9;
  margin: 4px 0 12px;
  max-width: 82%;
  line-height: 1.45;
}
.upgrade-card .gem[data-v-nav-rail] {
  position: absolute;
  right: -8px;
  top: -6px;
  pointer-events: none;
}
.upgrade-card .btn-dark[data-v-nav-rail] {
  width: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: var(--bg, #161922);
  color: #fff;
  font-weight: 800;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}
.upgrade-card .btn-dark[data-v-nav-rail]:hover {
  background: #000;
  transform: translateY(-1px);
}

/* Short screens: keep the pinned card small so the menu still has room to scroll. */
@media (max-height: 720px) {
.upgrade-card[data-v-nav-rail] {
    padding: 12px 14px;
    margin-top: 8px;
}
.upgrade-card h4[data-v-nav-rail] {
    max-width: none;
    font-size: 14px;
}
.upgrade-card p[data-v-nav-rail],
  .upgrade-card .gem[data-v-nav-rail] {
    display: none;
}
.upgrade-card .btn-dark[data-v-nav-rail] {
    margin-top: 8px;
    padding: 9px 14px;
}
}
