.site-footer {
  width: 350px;
  height: 192px;
  margin: 0 auto;
}

.footer-box {
  position: relative;
  height: 100%;
  padding: 24px 20px 20px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background:
    url("../assets/images/home/footer/footer-bg@3x.webp?v=20260417122805") center / cover no-repeat;
  box-shadow: 0 10px 24px rgba(32, 28, 72, 0.22);
  overflow: hidden;
}

.footer-box::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px) saturate(100%);
  z-index: 1;
  pointer-events: none;
}

.footer-box > * {
  position: relative;
  z-index: 3;
}

.footer-box p {
  margin: 0;
  font-family: "Plus Jakarta Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  text-align: center;
  letter-spacing: 0.01em;
  color: #ffffff;
}

.footer-brand-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  margin-bottom: 18px;
  position: relative;
  z-index: 3;
}

.footer-box .footer-brand {
  font-family: "Abril Fatface", Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: normal;
  font-style: normal;
  line-height: normal;
  letter-spacing: normal;
  text-align: left;
  white-space: nowrap;
  color: #ffffff;
}

.footer-box .footer-links {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  width: 100%;
  max-width: 100%;
  margin-bottom: 8px;
  position: relative;
  z-index: 3;
  column-gap: 10px;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
}

.footer-box .footer-link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.footer-box .footer-links > .footer-link:first-of-type {
  grid-column: 1;
  text-align: right;
}

.footer-box .footer-links > .footer-link:last-of-type {
  grid-column: 3;
  text-align: left;
}

.footer-box .footer-link:hover {
  text-decoration: underline;
}

.footer-art {
  width: 118px;
  height: auto;
  max-width: 100%;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 0;
}

.footer-divider {
  display: block;
  grid-column: 2;
  line-height: 1;
  opacity: 0.92;
}

.footer-box .footer-contact {
  margin-bottom: 6px;
  position: relative;
  z-index: 3;
}

.footer-contact-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.footer-box .footer-copy {
  max-width: 320px;
  position: relative;
  z-index: 3;
  margin-bottom: 0;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: var(--w-bottom-nav);
  height: 66px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  border-radius: 60px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.16);
  z-index: 2000;
  justify-items: center;
}

.nav-item {
  border: 0;
  background: transparent;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 500;
  line-height: 12px;
  display: grid;
  grid-template-rows: 24px 12px;
  justify-items: center;
  align-content: center;
  align-items: center;
  justify-content: center;
  row-gap: 4px;
  width: 100%;
  height: 100%;
  padding: 0;
}

.nav-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
}

.nav-icon-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  pointer-events: none;
  transition:
    opacity 180ms ease,
    filter 180ms ease,
    transform 180ms ease;
}

.nav-item.active {
  color: #ffffff;
}

.bottom-nav .nav-item:not(.active) .nav-icon-img {
  opacity: 0.9;
  filter: none;
}

.bottom-nav .nav-item.active .nav-icon-img {
  opacity: 1;
  filter: none;
}

@media (max-width: 767px) {
  .site-footer {
    width: 100%;
  }
}

html.sidebar-open,
body.sidebar-open {
  overflow: hidden;
  overscroll-behavior: none;
}

body.sidebar-open {
  position: fixed;
  width: 100%;
}

.sidebar-shell {
  position: fixed;
  inset: 0;
  z-index: 5000;
  pointer-events: none;
  overflow: hidden;
}

.sidebar-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 24, 0.22);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  opacity: 0;
  transition: opacity 320ms ease;
}

.sidebar-drawer {
  position: relative;
  z-index: 1;
  width: min(360px, 100%);
  min-width: 0;
  max-width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  max-height: 100dvh;
  background:
    var(--sidebar-bg-image, none) center center / cover no-repeat,
    #000000;
  transform: translateX(-100%);
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.sidebar-shell.is-open {
  pointer-events: auto;
}

.sidebar-shell.is-open .sidebar-backdrop {
  opacity: 1;
}

.sidebar-shell.is-open .sidebar-drawer {
  transform: translateX(0);
}

html.is-rtl[dir="rtl"] .sidebar-shell {
  justify-content: flex-start;
}

html.is-rtl[dir="rtl"] .sidebar-drawer {
  transform: translateX(100%);
}

html.is-rtl[dir="rtl"] .sidebar-shell.is-open .sidebar-drawer {
  transform: translateX(0);
}

@media (min-width: 768px) {
  .sidebar-shell {
    left: 50%;
    right: auto;
    width: min(390px, calc(100vw - 32px));
    transform: translateX(-50%);
  }

  .sidebar-drawer {
    width: 100%;
    max-width: 100%;
  }
}

.sidebar-inner {
  min-height: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 34px 24px 26px;
  background: transparent;
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.sidebar-brand {
  margin: 0;
  padding-top: 2px;
  font-family: "Abril Fatface", Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: normal;
  color: #ffffff;
}

.sidebar-close {
  width: 32px;
  height: 32px;
  border: 0;
  padding: 0;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.sidebar-close-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  margin-bottom: 5px;
}

.sidebar-search,
.sidebar-language {
  position: relative;
  width: min(258px, 100%);
  height: 48px;
  min-height: 48px;
  box-sizing: border-box;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%),
    rgba(8, 11, 20, 0.52);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);

  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(255, 255, 255, 0.03);
  padding: 12px 19px 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
}

.sidebar-search::before,
.sidebar-language::before,
.sidebar-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;

  opacity: 0.72;
  pointer-events: none;
}

.sidebar-search {
  margin-top: 24px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 10px;
  justify-content: flex-start;
  gap: 12px;
}

.sidebar-search-icon {
  position: relative;
  z-index: 1;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.sidebar-search-input {
  position: relative;
  z-index: 1;
  font-family: "Plus Jakarta Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  flex: 1 1 auto;
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  padding: 0;
  color: rgba(255, 255, 255, 0.82);
}

.sidebar-search-input::placeholder {
  color: rgba(255, 255, 255, 0.8);
}

.sidebar-shortcuts {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar-card {
  position: relative;
  width: min(258px, 100%);
  margin-top: 18px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.015) 100%),
    rgba(7, 10, 18, 0.44);
  backdrop-filter: blur(18px) saturate(132%);
  -webkit-backdrop-filter: blur(18px) saturate(132%);

  box-shadow:
    0 16px 30px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.sidebar-shortcuts + .sidebar-card {
  margin-top: 18px;
}

.sidebar-card-shortcut {
  width: 100%;
  height: 48px;
  margin-top: 0;
  margin-left: auto;
  margin-right: auto;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%),
    rgba(8, 11, 20, 0.52);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.sidebar-item {
  position: relative;
  width: 100%;
  min-height: 52px;
  padding: 0 19px 0 14px;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 18px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.sidebar-item-shortcut {
  width: 100%;
  height: 48px;
  min-height: 48px;
  box-sizing: border-box;
  padding: 12px 19px 12px 14px;
  gap: 16px;
}

.sidebar-card .sidebar-item + .sidebar-item::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 19px;
  top: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.16);
}

.sidebar-item-icon-wrap,
.sidebar-item-label {
  position: relative;
  z-index: 1;
}

.sidebar-item-icon-wrap {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 32px;
}

.sidebar-item-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.sidebar-item-label {
  font-family: "Plus Jakarta Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: normal;
  letter-spacing: normal;
  color: #ffffff;
}

html.is-rtl[dir="rtl"] .sidebar-inner,
html.is-rtl[dir="rtl"] .sidebar-item,
html.is-rtl[dir="rtl"] .sidebar-language,
html.is-rtl[dir="rtl"] .sidebar-language-option,
html.is-rtl[dir="rtl"] .footer-box .footer-brand {
  direction: rtl;
  text-align: right;
}

html.is-rtl[dir="rtl"] .sidebar-header {
  flex-direction: row-reverse;
}

html.is-rtl[dir="rtl"] .sidebar-item {
  flex-direction: row-reverse;
}

html.is-rtl[dir="rtl"] .sidebar-card .sidebar-item + .sidebar-item::before {
  left: 19px;
  right: 14px;
}

html.is-rtl[dir="rtl"] .sidebar-language-left,
html.is-rtl[dir="rtl"] .sidebar-language-option-left {
  flex-direction: row-reverse;
}

html.is-rtl[dir="rtl"] .sidebar-language-chevron::before {
  transform: translate(-50%, -50%) rotate(180deg);
}

html.is-rtl[dir="rtl"] .sidebar-language-field.is-open .sidebar-language-chevron::before {
  transform: translate(-50%, -50%) rotate(0deg);
}

.sidebar-item.is-active .sidebar-item-label {
  color: #ffffff;
}

.sidebar-item-home.is-active {
  min-height: 48px;
}

.sidebar-language-field {
  position: relative;
  z-index: 30;
  margin-top: auto;
  margin-left: auto;
  margin-right: auto;
  width: min(258px, 100%);
}

.sidebar-language {
  margin: 0;
  width: 100%;
  height: 40px;
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.012) 100%),
    rgba(6, 9, 16, 0.74);
  backdrop-filter: blur(10px) saturate(122%);
  -webkit-backdrop-filter: blur(10px) saturate(122%);
  box-shadow:
    0 6px 14px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 -1px 0 rgba(255, 255, 255, 0.02);
  padding: 0 15px;
}

.sidebar-language-field.is-open {
  z-index: 220;
}

.sidebar-language-field.is-open .sidebar-language {
  border-color: rgba(249, 211, 102, 0.72);
  box-shadow:
    0 0 0 2px rgba(249, 211, 102, 0.18),
    0 6px 14px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 -1px 0 rgba(255, 255, 255, 0.02);
}

.sidebar-language-menu {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 8px);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%),
    rgba(8, 11, 20, 0.96);
  backdrop-filter: blur(14px) saturate(135%);
  -webkit-backdrop-filter: blur(14px) saturate(135%);
  box-shadow:
    0 18px 28px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  max-height: 220px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.32) rgba(0, 0, 0, 0.55);
}

.sidebar-language-menu::-webkit-scrollbar {
  width: 6px;
}

.sidebar-language-menu::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.58);
  border-radius: 999px;
}

.sidebar-language-menu::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.26) 100%);
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.34);
}

.sidebar-language-menu::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.3) 100%);
}

.sidebar-language-option {
  width: 100%;
  min-height: 40px;
  border: 0;
  padding: 9px 14px;
  background: transparent;
  text-align: left;
  color: rgba(255, 255, 255, 0.84);
  font-family: "Plus Jakarta Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: normal;
  letter-spacing: normal;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.sidebar-language-option + .sidebar-language-option {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-language-option:hover {
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-language-option.is-selected {
  background: rgba(249, 211, 102, 0.18);
  color: #f9d366;
}

.sidebar-language-option-left {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
}

.sidebar-language-option-label {
  display: inline-block;
}

.sidebar-language-left {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.sidebar-language-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.sidebar-language-text {
  font-family: "Plus Jakarta Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  letter-spacing: normal;
  color: #ffffff;
}

.sidebar-language-chevron {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.sidebar-language-chevron::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 14px;
  background: url("../assets/images/user-info/select-chevron-icon.svg?v=20260417122805") center / contain no-repeat;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease;
}

.sidebar-language-field.is-open .sidebar-language-chevron::before {
  transform: translate(-50%, -50%) rotate(180deg);
}

@media (min-width: 420px) {
  .sidebar-shell {
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
  }

  .sidebar-backdrop {
    background: rgba(10, 14, 24, 0.22);
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
  }

  .sidebar-drawer {
    width: min(360px, 100%);
    min-width: 0;
    max-width: 100%;
  }

  .sidebar-inner {
    max-width: 360px;
  }

  .sidebar-search,
  .sidebar-language,
  .sidebar-language-field,
  .sidebar-card,
  .sidebar-card-shortcut {
    width: 100%;
    max-width: 312px;
    margin-left: auto;
    margin-right: auto;
  }

  .sidebar-shortcuts {
    width: 100%;
    max-width: 312px;
    margin-left: auto;
    margin-right: auto;
  }

  .sidebar-inner > .sidebar-card:last-of-type {
    margin-bottom: 25px;
  }
}

@media (max-width: 420px) {
  .sidebar-drawer {
    min-width: 0;
    width: min(100%, max(66.6667vw, 272px));
  }

  .sidebar-inner {
    padding: 34px 24px 26px;
  }

  .sidebar-brand {
    font-size: 20px;
  }

  .sidebar-search {
    margin-top: 24px;
    gap: 12px;
  }

  .sidebar-search,
  .sidebar-language,
  .sidebar-language-field {
    width: min(258px, 100%);
  }

  .sidebar-search-input {
    font-size: 14px;
    line-height: 22px;
  }

  .sidebar-search-icon,
  .sidebar-language-icon {
    width: 24px;
    height: 24px;
  }

  .sidebar-card {
    width: min(258px, 100%);
    margin-top: 18px;
    border-radius: 20px;
  }

  .sidebar-shortcuts {
    margin-top: 18px;
    gap: 18px;
  }

  .sidebar-card-shortcut {
    width: 100%;
    height: 48px;
    margin-top: 0;
    border-radius: 20px;
  }

  .sidebar-item {
    min-height: 52px;
    padding: 0 19px 0 14px;
    gap: 18px;
  }

  .sidebar-item-shortcut {
    width: 100%;
    height: 48px;
    min-height: 48px;
    padding: 12px 19px 12px 14px;
    gap: 16px;
  }

  .sidebar-card .sidebar-item + .sidebar-item::before {
    left: 14px;
    right: 19px;
  }

  .sidebar-item-icon-wrap {
    width: 32px;
    height: 32px;
  }

  .sidebar-item-icon {
    width: 24px;
    height: 24px;
  }

  .sidebar-item-label {
    font-size: 14px;
  }

  .sidebar-language {
    width: 100%;
    height: 40px;
    min-height: 40px;
    padding: 0 15px;
    border-radius: 10px;
  }

  .sidebar-language-left {
    gap: 14px;
  }

  .sidebar-language-text {
    font-size: 14px;
  }

  .sidebar-language-chevron {
    width: 8px;
    height: 14px;
  }

  .sidebar-language-chevron::before {
    width: 8px;
    height: 14px;
  }
}
