.gopdf-global-topbar {
  position: sticky;
  top: 0;
  z-index: 160;
  border-bottom: 1px solid #d5deeb;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
}

.gopdf-global-topbar-shell {
  width: min(1840px, calc(100% - 26px));
  margin: 0 auto;
  min-height: 88px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px 28px;
}

.gopdf-global-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.gopdf-global-brand-icon {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: #07132d;
  box-shadow: 0 8px 18px rgba(7, 19, 45, 0.18);
}

.gopdf-global-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gopdf-global-brand-copy span {
  color: #0f213f;
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
}

.gopdf-global-brand-copy small {
  color: #60708c;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.gopdf-global-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.gopdf-global-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 6px;
  color: #2f3f5a;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  border-radius: 10px;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.gopdf-global-nav-link:hover {
  color: #111a2f;
  background: rgba(14, 26, 46, 0.06);
}

.gopdf-global-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.gopdf-global-login-link,
.gopdf-global-profile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  background: transparent;
  color: #1f2e4a;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}

.gopdf-global-register-link,
.gopdf-global-logout-btn {
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 18px;
  background: #070b20;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(7, 11, 32, 0.2);
}

.gopdf-global-register-link:hover,
.gopdf-global-logout-btn:hover {
  background: #141f3a;
}

@media (max-width: 1440px) {
  .gopdf-global-brand-copy span {
    font-size: 24px;
  }

  .gopdf-global-nav-link {
    font-size: 14px;
  }

  .gopdf-global-login-link,
  .gopdf-global-profile-link,
  .gopdf-global-register-link,
  .gopdf-global-logout-btn {
    font-size: 14px;
  }
}

@media (max-width: 1120px) {
  .gopdf-global-topbar-shell {
    width: min(980px, calc(100% - 18px));
    min-height: auto;
    grid-template-columns: 1fr;
    justify-items: stretch;
    padding: 12px 0;
  }

  .gopdf-global-brand {
    justify-content: center;
  }

  .gopdf-global-nav {
    justify-content: center;
  }

  .gopdf-global-actions {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 720px) {
  .gopdf-global-brand-copy span {
    font-size: 20px;
  }

  .gopdf-global-brand-copy small {
    font-size: 10px;
    letter-spacing: 0.18em;
  }

  .gopdf-global-nav {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .gopdf-global-nav-link {
    white-space: nowrap;
    font-size: 15px;
    min-height: 38px;
  }

  .gopdf-global-login-link,
  .gopdf-global-profile-link {
    font-size: 15px;
    min-height: 38px;
  }

  .gopdf-global-register-link,
  .gopdf-global-logout-btn {
    min-height: 44px;
    font-size: 15px;
    padding: 0 18px;
  }
}
