.navbar {
  display: flex;
  padding: 10px 20px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: url("/assets/images/bg-app2.png") center center / cover no-repeat;
  color: white;
  font-family: Poppins, sans-serif;
}

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

.navbar-left img,
.navbar .icon-logo {
  width: 180px;
  height: auto;
}

.navbar-middle,
.navbar-right {
  display: none;
}

.navbar.is-signed-in .navbar-middle,
.navbar.is-signed-in .navbar-right {
  display: flex;
}

.navbar-middle {
  flex-direction: column;
  align-items: center;
  font-size: 14px;
}

.navbar-middle .username {
  font-weight: 500;
  font-size: 20px;
  margin-bottom: 7px;
}

.address-copy {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  border-radius: 5px;
  background-color: #323131;
  justify-content: center;
}

.address-text {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: #ffffff;
}

.copy-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 0 0 8px;
}

.copy-button img {
  width: 12px;
  height: 14px;
  display: block;
}

.navbar-right {
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.nav-sign-in {
  display: none;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  cursor: pointer;
}

.navbar:not(.is-signed-in) .nav-sign-in {
  display: inline-flex;
}

.navbar:not(.is-signed-in) .navbar-right {
  display: flex;
}

.profile-menu-wrap {
  position: relative;
  display: none;
}

.navbar.is-signed-in .profile-menu-wrap {
  display: block;
}

button.profile-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #323131;
  color: white;
  border: 0;
  border-radius: 10px;
  padding: 8px 14px 8px 8px;
  cursor: pointer;
  font: inherit;
}

.profile-image-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.profile-image {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

.wallet-info {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  text-align: left;
}

.wallet-address {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: #ffffff;
}

.wallet-balance {
  font-size: 16px;
  color: #ffffff;
}

.profile-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 240px;
  background: #1b1b1f;
  color: #fff;
  border: 1px solid #3a3a44;
  border-radius: 12px;
  padding: 8px;
  z-index: 40;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.profile-menu[hidden],
a.profile-menu-item[hidden],
button.profile-menu-item[hidden] {
  display: none;
}

.profile-menu-address {
  margin: 0;
  padding: 8px 12px 10px;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: #c8c8d0;
  word-break: break-all;
}

a.profile-menu-item,
button.profile-menu-item {
  box-sizing: border-box;
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

a.profile-menu-item:hover,
button.profile-menu-item:hover {
  background: #2a2a32;
}

button.profile-menu-item.logout {
  color: #ffb4c0;
}

.field-tip {
  position: relative;
  display: inline-flex;
  margin-left: 6px;
  vertical-align: middle;
}
.field-tip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid currentColor;
  color: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}
.field-tip-bubble {
  display: none;
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  width: 230px;
  padding: 8px 10px;
  background: #1b1b1f;
  color: #fff;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  z-index: 30;
  text-align: left;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.field-tip-bubble::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 14px;
}
.field-tip:hover .field-tip-bubble,
.field-tip:focus-within .field-tip-bubble {
  display: block;
}
.field-tip-bubble a {
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .navbar.is-signed-in {
    display: grid;
    grid-template-areas:
      "left right"
      "middle middle";
    gap: 16px;
  }

  .navbar-left { grid-area: left; }
  .navbar-right { grid-area: right; }
  .navbar-middle { grid-area: middle; width: 100%; }
  .navbar .icon-logo { width: 150px; }
  .profile-image, .profile-image-wrapper { width: 34px; height: 34px; }
  .wallet-balance { font-size: 14px; }
}
