:root {
  --bg: #fff;
  --text: #0a251e;
  --muted: #6b7280;
  --chip: #f3f4f6;
  --accent: #d2e823;
  --max: 1440px;
  --r: 30px;
}

nav.v2-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu",
    "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
}

.v2-header-container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-sizing: border-box;
}

.v2-header-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex: 0 0 auto;
  margin-right: 14px;
}

.v2-header-logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.v2-header-logo-icon .header-logo {
  height: 45px;
  width: auto;
  display: block;
}

.v2-header-logo-text {
  display: none;
}

.v2-header-nav {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  min-width: 0;
}

.v2-header-section {
  display: flex;
  align-items: center;
  gap: 18px;
}

.v2-header-section.left {
  justify-content: flex-start;
  gap: 24px;
}

.v2-header-section.right {
  margin-left: auto;
  justify-content: flex-end;
  padding-right: 10px;
}

.v2-header-nav-link {
  text-decoration: none;
  color: #6b7280;
  font-family: Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 2px;
}

.v2-header-nav-link:hover {
  color: var(--text);
}

.v2-header-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 0;
}

#langSel {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: 0;
  background: var(--chip);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%236b7280' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px 6px;
  border-radius: var(--r);
  padding: 9px 30px 9px 14px;
  color: var(--muted);
  font-family: Montserrat, system-ui, sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  outline: none;
  box-shadow: none;
  margin-right: 12px;
}

.v2-header-cta {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: var(--r);
  padding: 10px 16px;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  border: 0;
}

.v2-header-cta:hover {
  background: var(--text);
  color: var(--accent);
}

.v2-header-cta.signin {
  background: transparent;
  color: var(--muted);
  padding: 8px 2px;
  border-radius: 0;
  font-family: Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.v2-header-cta.signin:hover {
  background: transparent;
  color: var(--text);
}

.v2-header-mobile-actions {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 10px;
}

.v2-header-mobile-toggle {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px;
  width: auto;
  height: auto;
}

.v2-header-mobile-toggle .header-icon {
  width: 26px;
  height: 26px;
}

.v2-header-mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg);
  z-index: 1000;
  padding: 14px 20px 20px;
  overflow-y: auto;
  display: none;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid #eef2f7;
  border-radius: 0 0 18px 18px;
  max-height: min(70vh, 520px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
  box-sizing: border-box;
}

.v2-header-mobile-menu.open {
  display: flex;
}

#mobile-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 0 8px;
}

.v2-header-mobile-menu .v2-header-nav-link {
  display: block;
  width: 100%;
  color: #6b7280;
  font-family: Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
  padding: 14px 0;
  border-bottom: 1px solid #f1f5f9;
}

.v2-header-mobile-lang {
  display: block;
  margin-top: 12px;
  padding-top: 12px;
}

.v2-header-mobile-menu.guest-mobile-minimal #mobile-links {
  padding-bottom: 0;
}

.v2-header-mobile-menu.guest-mobile-minimal .v2-header-mobile-lang {
  margin-top: 0;
  padding-top: 0;
}

.v2-header-mobile-lang-label {
  color: #6b7280;
  font-family: Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.v2-header-mobile-lang-select {
  border: 0;
  background: var(--chip);
  border-radius: 999px;
  padding: 8px 12px;
  color: #374151;
  font-family: Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  outline: none;
  cursor: pointer;
}

.v2-lang-native-hidden {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}

.v2-lang-dd {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
}

.v2-lang-dd-trigger {
  border: 0;
  background: var(--chip);
  border-radius: var(--r);
  padding: 9px 14px;
  color: var(--muted);
  font-family: Montserrat, system-ui, sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  line-height: 1;
}

.v2-lang-dd-trigger i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  opacity: 0.75;
  transform-origin: center;
}

.v2-lang-dd.open .v2-lang-dd-trigger i {
  transform: rotate(180deg);
}

.v2-lang-dd-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 100%;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  z-index: 1001;
}

.v2-lang-dd.open .v2-lang-dd-menu {
  display: block;
}

.v2-lang-dd-option {
  width: 100%;
  border: 0;
  background: #fff;
  padding: 9px 14px;
  color: #2d2f34;
  font-family: Montserrat, system-ui, sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  border-radius: var(--r);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

.v2-lang-dd-option:hover {
  background: #f8fafc;
}

.v2-lang-swap {
  display: inline-flex;
}

.v2-lang-swap-btn {
  border: 0;
  background: transparent;
  padding: 8px 0;
  color: #374151;
  font-family: Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.v2-header-mobile-menu .v2-header-cta {
  align-self: flex-start;
}

@media (max-width: 900px) {
  .v2-header-nav {
    display: none;
  }

  .v2-header-actions {
    display: none;
  }

  .v2-header-mobile-actions {
    display: flex;
  }

  .v2-header-mobile-menu .v2-header-cta.signin {
    margin-top: 14px;
    color: #6b7280;
    font-family: Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    padding: 8px 0;
  }

  .v2-header-mobile-menu .v2-header-cta:not(.signin) {
    margin-top: 10px;
    padding: 10px 20px;
    min-width: 122px;
    text-align: center;
  }

  .v2-header-mobile-lang {
    margin-top: 8px;
    padding-top: 0;
  }

  .v2-header-mobile-lang .v2-lang-swap-btn {
    padding: 10px 0 2px;
  }
}

@media (min-width: 901px) {
  .v2-header-mobile-menu {
    display: none !important;
  }

  .header-mobile-mode {
    display: none;
  }
}

@media (max-width: 420px) {
  .v2-header-cta-mobile {
    padding: 10px 14px;
    font-size: 12px;
  }
}
