﻿

.navbar-tr {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent linear-gradient(to bottom, #0086f5 53%, #52b1fe00 100%);
  padding: 10px 0;
  position: fixed;
  top: 0;
  z-index: 100;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.navbar-tr .col-left {
  display: flex;
  align-items: center;
}

.navbar-logo img {
  height: 80px;
  margin-bottom: 0;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.navbar-menu a,
.dropdown-toggle.account {
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  color: #fff;
  /* transition: 0.3s; */
}

.navbar-buttons {
  display: flex;
  gap: 16px;
  align-items: center;
}

.navbar-tr .btn {
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 20px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-height: 40px;
  text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2);
}

.navbar-tr .btn-topup {
  background: url('../../tournament/images/navbar/btn-topup-lg.webp') center / 100% 100% no-repeat;
  border: none;
  color: white;
  min-width: 100px;
}

.navbar-tr .btn-register {
  background: url('../../tournament/images/navbar/btn-reg-lg.webp') center / 100% 100% no-repeat;
  border: none;
  color: white;
  min-width: 100px;
}


.navbar-tr .btn:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.navbar .navbar-menu a {
  padding: 6px 0;
  border-bottom: 3px solid #ffffff00;
}

.navbar-menu a:hover {
  border-bottom: 3px solid #fff;
}


.navbar.scrolled {
  background: #fff;
}

.navbar.scrolled .navbar-menu a,
.scrolled .dropdown-toggle.account {
  color: #0E8CEE;
  padding: 6px 0;
  border-bottom: 3px solid #ffffff00;
}

.navbar.scrolled .navbar-menu a:hover {
  border-bottom: 3px solid #0E8CEE;
}

.navbar.scrolled .navbar-menu img,
.scrolled .dropdown-toggle.account {
  /* filter: brightness(0); */
  filter: invert(40%) sepia(94%) saturate(3200%) hue-rotate(191deg) brightness(105%) contrast(105%);
}

.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  right: -5px;
  background: #ffffff;
  min-width: 200px;
  display: none;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  z-index: 999;
}

.nav-dropdown .dropdown-menu a {
  padding: 10px 15px;
  color: #636363;
  text-decoration: none;
  display: block;
  border: 0;
  margin: 0;
}

.nav-dropdown .dropdown-menu a:hover {
  background: #ffffff;
  padding: 10px 15px;
  color: #0E8CEE;
  border: 0;
  margin: 0;
}

.nav-dropdown:hover .dropdown-menu {
  display: block;
}

.navbar.scrolled .navbar-menu .dropdown-menu>a {
  color: #636363;
  padding: 10px 15px;
  border: 0;
}

.navbar.scrolled .navbar-menu .dropdown-menu>a:hover {
  color: #0E8CEE;
}

.navbar a {
  transition: 0s;
  transform: 0s;
}

.navbar-buttons .nav-dropdown {
  display: flex;
  align-items: center;
  height: 100%;
}

.navbar-tr .btn-menu-mobile {
  display: none;
}

.navbar-tr .btn-menu-mobile::before,
.navbar-tr .btn-menu-mobile::after {
  display: none;
}

.hamburger-icon {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 20px;
  height: 16px;
  pointer-events: none;
}

.hamburger-icon span {
  display: block;
  width: 100%;
  height: 3px;
  background: #fff;
  border-radius: 50px;
}

@media (min-width: 1201px) {
  .btn-menu-mobile {
    display: none !important;
  }
  .offcanvas,
  .offcanvas-backdrop {
    display: none !important;
  }
}

@media (max-width: 1200px) {
  .navbar-tr {
    flex-wrap: nowrap;
    justify-content: space-between;
    padding: 0 16px;
    margin: 0;
    width: 100%;
    left: 0;
    right: 0;
    height: 80px;
    background: transparent linear-gradient(to bottom, #0086f5 53%, #52b1fe00 100%);
    overflow: visible;
  }

  .navbar-tr .container {
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: 100%;
      max-width: 100%;
      padding: 0;
      height: 100%;
  }

  .navbar-logo img {
      height: 100px;
      margin-bottom: 0;
  }
 
  .navbar-tr .btn-menu-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none !important;
    box-shadow: none !important;
    padding: 16px 8px !important;
    height: 40px;
    min-height: 40px;
    width: auto;
    min-width: unset;
  }

  .hamburger-icon {
    display: flex;
  }


  .navbar-menu {
    display: none;
  }

  .navbar-menu a {
    display: block;
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 35px;
  }

  .offcanvas-backdrop {
    z-index: 999;
  }

   .offcanvas-backdrop.show{
    opacity: 0.8;
  }

  .offcanvas {
    z-index: 1000;
    background: linear-gradient(180deg, #1092FF 7%, #00A1FF 17%, #53C8FD 100%);
    padding: 0;
    display: flex;
    flex-direction: column;
    width: 300px !important;
    max-width: 100% !important;
  }

  .offcanvas-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 16px 16px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
  }

  .offcanvas-body::-webkit-scrollbar {
    width: 4px;
  }

  .offcanvas-body::-webkit-scrollbar-track {
    background: transparent;
  }

  .offcanvas-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50px;
  }

  .offcanvas-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
  }

  /* offcanvas header */
  .oc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 0 16px;
    flex-shrink: 0;
  }

  .oc-logo img {
    height: 56px;
  }

  .oc-close {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* section header */
  .oc-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    font-family: "Mitr", sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.2;
  }

  .oc-section-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
  }

  /* menu items */
  .oc-menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 16px;
    border-radius: 8px;
    font-family: "Mitr", sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    line-height: 1.2;
    white-space: nowrap;
    transition: transform 0.2s ease;
  }

  .oc-menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
  }

  .oc-menu-item img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
  }

  .oc-menu-item--no-icon {
    padding-left: 16px;
  }

  /* divider */
  .oc-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0;
    flex-shrink: 0;
  }

  /* bottom buttons */
  .oc-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 8px;
  }

  .oc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    min-height: 44px;
    font-family: "Mitr", sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    border: none;
    position: relative;
    transition: transform 0.2s ease;
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2);
  }

  .oc-btn:hover {
    filter: brightness(1.1);
    color: #fff;
  }

  .oc-btn-topup {
    background: url('../../tournament/images/navbar/btn-topup.webp') center / 100% 100% no-repeat;
  }

  .oc-btn-register {
    background: url('../../tournament/images/navbar/btn-reg.webp') center / 100% 100% no-repeat;
  }

  .navbar.scrolled .btn-menu-mobile .hamburger-icon span {
    background: #0E8CEE;
  }

  .navbar .navbar-menu a {
    padding: 15px 20px;
    margin: 0;
    border-bottom: 1px solid #ffffff33;
  }

  .navbar.scrolled .navbar-menu a {
    color: #ffffff;
    padding: 15px 20px;
    margin: 0;
    border-bottom: 1px solid #ffffff33;
  }

  .navbar.scrolled .navbar-menu img {
    /* filter: brightness(0); */
    filter: none;
  }
}

@media (max-width: 550px) {

  .navbar-tr .btn-register,
  .navbar-tr .btn-topup {
    min-width: 70px;
  }

  .navbar-tr .btn-topup {
    display: none;
  }

  .navbar-tr .btn {
    padding: 6px 10px;
    font-size: 16px;
    height: 36px;
    min-height: 36px;
  }

  .navbar-logo img {
    height: 80px;
    margin-bottom: 0;
  }

  .offcanvas.show {
    width: 100%;
  }
  
}

@media (max-width: 441px) {
  .navbar-logo img {
    height: 70px;
    margin-bottom: 0;
  }
  
}

@media (max-width: 390px) {
  .navbar-logo img {
    height: 65px;
    margin-bottom: 0;
  }

  .navbar-buttons {
    display: flex;
    gap: 8px;
  }

  .navbar-tr .btn {
    padding: 6px 8px;
    font-size: 14px;
    height: 34px;
    min-height: 34px;
  }

  .dropdown-toggle.account {
    font-size: 14px;
  }
  .offcanvas {
    width: 100% !important;
    max-width: 100% !important;
  }
}

.nav-main {
  position: fixed;
  width: 100%;
  z-index: 99;
}

.side-nav .nav-item {
  width: 150px;
  height: 50px;
  text-decoration: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
  position: relative;
}

.side-nav .nav-item.active {
  clip-path: none;
  width: 150px;
  padding-left: 10px;
}

.side-nav .nav-item.btn-fix1 {
  background: url(../../tournament/images/ic-fix1.webp) center/contain no-repeat;
}

.side-nav .nav-item.btn-fix1.active {
  background: url(../../tournament/images/ic-fix1-active.webp) center/contain no-repeat;
}

.side-nav .nav-item.btn-fix2 {
  background: url(../../tournament/images/ic-fix2.webp) center/contain no-repeat;
}

.side-nav .nav-item.btn-fix2.active {
  background: url(../../tournament/images/ic-fix2-active.webp) center/contain no-repeat;
}

.side-nav .nav-item.btn-fix3 {
  background: url(../../tournament/images/ic-fix3.webp) center/contain no-repeat;
}

.side-nav .nav-item.btn-fix3.active {
  background: url(../../tournament/images/ic-fix3-active.webp) center/contain no-repeat;
}

.side-nav .nav-item.btn-fix4 {
  background: url(../../tournament/images/ic-fix4.webp) center/contain no-repeat;
}

.side-nav .nav-item.btn-fix4.active {
  background: url(../../tournament/images/ic-fix4-active.webp) center/contain no-repeat;
}

.side-nav .nav-item.btn-fix5 {
  background: url(../../tournament/images/ic-fix5.webp) center/contain no-repeat;
}

.side-nav .nav-item.btn-fix5.active {
  background: url(../../tournament/images/ic-fix5-active.webp) center/contain no-repeat;
}

.side-nav .nav-item.btn-fix6 {
  background: url(../../tournament/images/ic-fix6.webp) center/contain no-repeat;
}

.side-nav .nav-item.btn-fix6.active {
  background: url(../../tournament/images/ic-fix6-active.webp) center/contain no-repeat;
}

/* .navbar-tr {
  z-index: 9999;
} */

.side-nav .nav-item.btn-fix6.active {
  background: url(../../tournament/images/ic-fix6-active.webp) center / contain no-repeat;
}

.side-nav .nav-item.btn-fix6 {
  background: url(../../tournament/images/ic-fix6.webp) center / contain no-repeat;
}

.sticky-bar {
  position: fixed;
  align-items: center;
  justify-content: center;
  right: -7px;
  bottom: 80px;
  z-index: 99;
  text-align: center;
  width: 120px;
}

.sticky-bar .col-sticky {
  transition: opacity 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), 
              transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: bottom center;
}

.sticky-bar.collapsed .col-sticky {
  opacity: 0;
  pointer-events: none;
  transform: translateY(40px) scale(0.7) rotate(5deg);
}

.sticky-bar.is-hidden .col-sticky {
  display: none;
}

.sticky-bar .col-tour-btn,
.sticky-bar .col-st-line-btn,
.sticky-bar .col-social-float {
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), 
              opacity 0.5s ease;
}

.sticky-bar.collapsed .col-tour-btn { transition-delay: 0.05s; transform: translateY(10px); opacity: 0; }
.sticky-bar.collapsed .col-st-line-btn { transition-delay: 0.1s; transform: translateY(15px); opacity: 0; }
.sticky-bar.collapsed .col-social-float { transition-delay: 0.15s; transform: translateY(20px); opacity: 0; }

.sticky-bar:not(.collapsed) .col-tour-btn { transition-delay: 0.2s; }
.sticky-bar:not(.collapsed) .col-st-line-btn { transition-delay: 0.1s; }
.sticky-bar:not(.collapsed) .col-social-float { transition-delay: 0s; }

.col-social-float {
  background: url(../images/cbt/bg-report-2.webp) center / contain no-repeat;
  width: 140px;
  aspect-ratio: 119/148;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 51px 0 12px 0;
  align-items: center;
  z-index: 100;
  margin: 0 auto;
  position: relative;
}

.social-float-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.social-float-title {
  font-family: 'Mitr', sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: #fff;
  text-shadow: 0px 1.54px 3.85px rgba(0, 0, 0, 0.5);
  text-align: center;
  margin: 0;
  line-height: 1.2;
}

.btn-report-pill {
  display: block;
  text-decoration: none;
  width: 85%;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

.btn-report-pill:hover {
  filter: brightness(1.15);
  transform: scale(1.04) translateZ(0);
}

.social-float-discord {
  display: block;
  text-decoration: none;
  position: absolute;
  bottom: 28px;
  right: 25px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-float-discord img {
  width: 36px;
  height: 36px;
  display: block;
}

.social-float-discord:hover {
  filter: brightness(1.1);
  transform: scale(1.04) translateZ(0);
}

.col-social-float.glow {
  filter: drop-shadow(0 0 8px #ffffff) drop-shadow(0 0 12px #ffffff);
  animation: glow 2s infinite alternate;
  will-change: transform, opacity;
}


.col-bgm {
  bottom: 14px;
  right: 14px;
  z-index: 100;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 4px;
}


.btn-logo:hover {
  filter: brightness(1.2);
}

.col-bottom-btn-nav a {
  color: #ffffff;
  text-decoration: none;
}

.col-bottom-btn-nav>div {
  padding: 20px;
  background: #0E8CEE;
  border-radius: 8px;
}

.text-head-nav {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.4;
  color: #ffffff;
  padding: 0 20px;
}



@keyframes glow {
  0% {
    opacity: .96;
    transform: translateZ(0) scale(1);
  }

  50% {
    opacity: 1;
    transform: translateZ(0) scale(1.015);
  }

  100% {
    opacity: .96;
    transform: translateZ(0) scale(1);
  }
}



#muteBtn,
#open-btn {
  background: none !important;
  border: none !important;
  padding: 0;
  cursor: pointer;
}

#muteBtn:hover,
#open-btn:hover {
  filter: brightness(1.1) drop-shadow(0 0 8px rgba(255,255,255,0.4));
  transform: scale(1.1);
}

#muteBtn,
#open-btn {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#muteIcon {
  transition: transform 0.3s ease;
}

#muteBtn.playing #muteIcon {
  animation: pulse-sound 2s infinite ease-in-out;
}

@keyframes pulse-sound {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

#sticky-toggle-icon {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sticky-bar.collapsed #sticky-toggle-icon {
  transform: rotate(180deg);
}

#open-btn:active {
  transform: scale(0.9);
}

#muteBtn:active,
#muteBtn:focus,
#open-btn:active,
#open-btn:focus {
  background: none !important;
  border: none !important;
}

/* mobile < 550px */
@media (max-width: 549px) {
  .sticky-bar {
    width: 120px;
    right: -4px;
  }

  .col-social-float {
    width: 120px;
    padding: 42px 0 10px 0;
  }

  .social-float-title {
    font-size: 13px;
  }

  .btn-report-pill {
    width: 80%;
  }

  .social-float-discord img {
    width: 32px;
    height: 32px;
  }

  .social-float-discord {
    bottom: 26px;
        right: 25px;
  }
}

/* tablet 550px–1023px */
@media (min-width: 550px) and (max-width: 1023px) {
  .sticky-bar {
    width: 130px;
    right: -4px;
  }

  .col-social-float {
    width: 130px;
    padding: 46px 0 11px 0;
  }

  .social-float-title {
    font-size: 13px;
  }

  .social-float-discord img {
    width: 32px;
    height: 32px;
  }
}

/* desktop 1024px+ */
@media (min-width: 1024px) {
  .sticky-bar {
    width: 150px;
    right: 0px;
  }
}

/* Bottom Navigation Bar Styles */
.bottom-nav-tr {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: linear-gradient(180deg, #1092FF 0%, #53C8FD 100%);
  z-index: 449;
  border-top-right-radius: 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 0 0 16px;
  overflow: visible;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
}

.bottom-nav-tr .nav-items-wrapper {
  display: flex;
  align-items: center;
  flex: 1 0 0;
  height: 60px;
  padding-left: 0;
  gap: 12px;
}

.bottom-nav-tr .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex: 1 0 0;
  min-height: 40px;
  padding: 8px 0;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.bottom-nav-tr .nav-item:active {
  transform: scale(0.95);
}

.bottom-nav-tr .nav-item img {
  width: 24px;
  height: 24px;
  margin-bottom: 4px;
}

.bottom-nav-tr .nav-item span {
  font-family: "Mitr", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  line-height: 1.2;
}

.bottom-nav-tr .nav-separator {
  width: 1px;
  height: 34px;
  background: rgba(255, 255, 255, 0.3);
}

.bottom-nav-tr .btn-topup-bottom {
  height: 100%;
  width: 204px;
  background: url('../images/navbar/btn-topup-md.webp') center / 100% 100% no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: none;
  border-radius: 20px 20px 0 0;
  padding: 16px 24px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.bottom-nav-tr .btn-topup-bottom span {
  font-family: "Mitr", sans-serif;
  font-size: 25px;
  font-weight: 500;
  color: #fff;
  line-height: 1.2;
  position: relative;
  z-index: 1;
  text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2);
}

.bottom-nav-tr .btn-topup-bottom:hover {
  filter: brightness(1.1);
}

.bottom-nav-tr .btn-topup-bottom:active {
  transform: scale(0.98);
}

@media (max-width: 550px) {
  .bottom-nav-tr {
    padding-left: 12px;
  }
  .bottom-nav-tr .btn-topup-bottom {
    width: 140px;
    padding: 16px 12px;
  }
  .bottom-nav-tr .btn-topup-bottom span {
    font-size: 18px;
  }
  .bottom-nav-tr .nav-item span {
    font-size: 11px;
  }
  .bottom-nav-tr .nav-items-wrapper {
    gap: 8px;
  }
}

@media (max-width: 400px) {
  .bottom-nav-tr .btn-topup-bottom {
    width: 110px;
  }
  .bottom-nav-tr .btn-topup-bottom span {
    font-size: 16px;
  }
  .bottom-nav-tr .nav-item span {
    font-size: 10px;
  }
}


/* ---- Vector nav icons (asset/images/navbar/icons/*.svg) ----
   Sharp on every screen and always the same color as the label (currentColor),
   so no CSS filter is needed to recolor them. */
.nb-ic {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  vertical-align: -4px;
  background-color: currentColor;
  -webkit-mask: var(--nb-ic) center / contain no-repeat;
  mask: var(--nb-ic) center / contain no-repeat;
}

/* Icons are separate SVG files used as masks (colored by currentColor).
   Keeping `</svg>` out of the HTML also avoids Live Server injecting its
   reload script into an inline SVG, which broke the menu scripts locally. */
.nb-ic--home { --nb-ic: url('../images/navbar/icons/ic-home.svg'); }
.nb-ic--news { --nb-ic: url('../images/navbar/icons/ic-news.svg'); }
.nb-ic--download { --nb-ic: url('../images/navbar/icons/ic-download.svg'); }
.nb-ic--gamepad { --nb-ic: url('../images/navbar/icons/ic-gamepad.svg'); }
.nb-ic--tournament { --nb-ic: url('../images/navbar/icons/ic-tournament.svg'); }
.nb-ic--user { --nb-ic: url('../images/navbar/icons/ic-user.svg'); }
.nb-ic--shop { --nb-ic: url('../images/navbar/icons/ic-shop.svg'); }
.nb-ic--bot { --nb-ic: url('../images/navbar/icons/ic-bot.svg'); }
.nb-ic--close { --nb-ic: url('../images/navbar/icons/ic-close.svg'); color: #fff; vertical-align: middle; }

.navbar-menu a,
.dropdown-toggle.account {
  display: inline-flex;
  align-items: center;
}

.navbar.scrolled .dropdown-toggle.account {
  filter: none;
}

.oc-menu-item .nb-ic {
  width: 24px;
  height: 24px;
}

.oc-section-icon.nb-ic {
  width: 16px;
  height: 16px;
  vertical-align: -2px;
}

.bottom-nav-tr .nav-item .nb-ic {
  width: 24px;
  height: 24px;
  margin-bottom: 4px;
  color: #fff;
}

/* ---- Smooth transition: blue gradient (top of page) -> white bar (scrolled) ----
   Gradients can't be transitioned directly, so both backgrounds live on
   pseudo-layers and cross-fade with opacity. */
.navbar.navbar-tr,
.navbar.navbar-tr.scrolled {
  background: transparent !important;
  isolation: isolate;
}

.navbar.navbar-tr::before,
.navbar.navbar-tr::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  transition: opacity .45s ease-in-out;
}

/* top-of-page gradient */
.navbar.navbar-tr::before {
  background: linear-gradient(to bottom, #0086f5 53%, rgba(82, 177, 254, 0) 100%);
  opacity: 1;
}

/* scrolled white bar + soft shadow */
.navbar.navbar-tr::after {
  background: #fff;
  box-shadow: 0 4px 16px rgba(14, 140, 238, .12);
  opacity: 0;
}

.navbar.navbar-tr.scrolled::before {
  opacity: 0;
}

.navbar.navbar-tr.scrolled::after {
  opacity: 1;
}

/* Labels + icons (icons use currentColor) fade color together with the bar */
.navbar.navbar-tr .navbar-menu > a,
.navbar.navbar-tr .navbar-menu .dropdown-toggle,
.navbar.navbar-tr .dropdown-toggle.account {
  /* labels switch color faster than the bar fades, so they never blend into it */
  transition: color .18s ease-out, border-color .2s ease;
}

.navbar.navbar-tr .hamburger-icon span {
  transition: background-color .18s ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .navbar.navbar-tr::before,
  .navbar.navbar-tr::after,
  .navbar.navbar-tr .navbar-menu > a,
  .navbar.navbar-tr .navbar-menu .dropdown-toggle,
  .navbar.navbar-tr .dropdown-toggle.account,
  .navbar.navbar-tr .hamburger-icon span {
    transition: none;
  }
}

/* ---- Compact navbar after scrolling (desktop) ----
   Top of page keeps the full-size bar; once scrolled, the white bar gets
   shorter (logo 80px -> 60px, less padding), animated together with the fade. */
@media (min-width: 1201px) {
  .navbar.navbar-tr {
    transition: padding .4s ease, transform .3s ease, opacity .3s ease;
  }

  .navbar.navbar-tr .navbar-logo img {
    transition: height .4s ease;
  }

  .navbar.navbar-tr.scrolled {
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .navbar.navbar-tr.scrolled .navbar-logo img {
    height: 60px;
  }
}

@media (min-width: 1201px) and (prefers-reduced-motion: reduce) {
  .navbar.navbar-tr,
  .navbar.navbar-tr .navbar-logo img {
    transition: none;
  }
}
