:root {
  --topbar-height: 36px;
  --header-height: 100px;
  --header-bg: #ffffff;
  --topbar-bg: #fff3c3;
  --accent: #b38025;
  --text: #111;
}

body {
  margin: 0;
  padding-top: calc(var(--topbar-height) + var(--header-height));
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: var(--text);
}

.site-header,
.header-wrapper {
  width: 100%;
  left: 0;
  z-index: 9998;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--topbar-height);
  background: var(--topbar-bg);
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 9999;
}

#js-marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.js-marquee-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
}

.js-marquee-item {
  font-size: 14px;
  color: var(--text);
  padding-right: 30px;
  display: inline-block;
  font-weight: 600;
  line-height: 1;
}

.header-wrapper {
  position: fixed;
  top: var(--topbar-height);
  left: 0;
  width: 100%;
  background: var(--header-bg);
  box-shadow: 0 6px 18px rgba(100, 100, 111, 0.08);
  z-index: 9998;
}

.main-nav {
  background: transparent;
  box-shadow: none;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: var(--header-height);
  box-sizing: border-box;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.logo-img {
  width: 92px;
  height: 76px;
  object-fit: contain;
  display: block;
}

.site-brand {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1;
}

.logo_text strong {
  font-size: 14px;
  display: block;
  color: #222;
  font-weight: 700;
  margin-bottom: 2px;
}

.h1-logo {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #222;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.logo-sub-title {
  color: var(--accent);
  font-size: 12px;
  margin-top: 4px;
}

.brand-sub {
  font-size: 13px;
  color: #666;
  margin-top: 2px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin-right: 20px;
}

.login-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
}

.avatar-wrapper {
  position: relative;
  width: 40px;
  border-radius: 50%;
  height: 40px;
  border: 1px solid #ffffff;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.avatar-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #7b4ba8;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.avatar-circle img {
  width: 25px;
  height: 25px;
  display: block;
}

.status-dot {
  position: absolute;
  right: -2px;
  top: -2px;
  width: 12px;
  height: 12px;
  background: #4cd964;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.login-text {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}

.login-link:hover,
.login-link:focus {
  background: rgba(124, 77, 255, 0.04);
  transform: translateY(-2px);
  outline: none;
}

.login-link:focus-visible {
  box-shadow: 0 0 0 4px rgba(124, 77, 255, 0.12);
  border-radius: 999px;
}

.site-header.sticky {
  position: sticky;
  top: 0;
  backdrop-filter: blur(6px);
}


/* Tablet */
@media (max-width: 992px) {
  :root {
    --header-height: 88px;
  }
  .logo_text {
    margin: 5px 0px 5px 0px;
}

  .logo-img {
    width: 76px;
    height: 62px;
  }

  .h1-logo {
    font-size: 16px;
  }

  .logo_text strong {
    font-size: 13px;
  }

  .nav-container {
    padding: 10px 16px;
  }

  .js-marquee-item {
    padding-right: 18px;
    font-size: 13px;
  }
}

/* Mobile */
@media (max-width: 720px) {
  :root {
    --header-height: 72px;
  }

  .nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px;
  }

  .logo-sub-title,
  .brand-sub {
    display: none;
  }
  .logo_text {
    margin: 5px 0px 5px 0px;
}

  .h1-logo {
    font-size: 14px;
    white-space: normal;
    line-height: 1.05;
  }

  .avatar-wrapper {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
  }

  .avatar-circle {
    font-size: 16px;
  }

  .login-text {
    display: none;
  }

  .js-marquee-item {
    padding-right: 12px;
    font-size: 13px;
  }

}

@media (max-width: 420px) {
  :root {
    --header-height: 68px;
  }
  .logo_text {
    margin: 5px 0px 5px 0px;
}

  .logo-img {
    width: 64px;
    height: 54px;
  }

  .js-marquee-item {
    padding-right: 8px;
    font-size: 12px;
  }

  .nav-container {
    padding: 6px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .js-marquee-track,
  .login-link {
    transition: none !important;
    animation: none !important;
  }
}

body.no-fixed-header {
  padding-top: 0;
}