.wes-landing-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(220,28,28,0.12);
  padding: 0 40px;
  height: 70px;
  display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: center;
}
body.wes-logged-in .wes-landing-header {
  display: none !important;
}
.wes-landing-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.wes-landing-logo-img { height: 40px; width: auto; }

.wes-landing-nav { display: flex; gap: 32px; justify-content: center; }
.wes-landing-nav a {
  text-decoration: none; color: var(--wes-fg); font-size: 13px; font-weight: 600;
  transition: color 200ms;
}
.wes-landing-nav a:hover { color: var(--wes-red); }

.wes-landing-header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.wes-landing-connect {
  background: linear-gradient(135deg, var(--wes-red), var(--wes-red-2));
  color: #fff; border: 0; border-radius: 999px; padding: 10px 20px;
  font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform 100ms, box-shadow 200ms;
  box-shadow: 0 2px 8px rgba(220,28,28,0.25);
}
.wes-landing-connect:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(220,28,28,0.4); }
.wes-landing-connect:active { transform: translateY(0); }
.wes-landing-connect-ic {
  position: relative;
  flex: 0 0 auto;
  width: 18px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 0;
  line-height: 0;
}
.wes-landing-connect-ic::before {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: -5px;
  height: 7px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  opacity: 0.85;
}
.wes-landing-connect-ic::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 4px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}

/* ── Profile chip (logged-in state) ── */
.wes-landing-profile {
  position: relative;
}
.wes-landing-profile-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--wes-border); border-radius: 999px;
  padding: 4px 12px 4px 4px; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 700;
  color: var(--wes-fg); transition: all 200ms;
}
.wes-landing-profile-chip:hover { border-color: var(--wes-red); box-shadow: 0 2px 8px rgba(220,28,28,0.12); }
.wes-landing-profile-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, #DC1C1C, #8B0000);
  flex: 0 0 auto;
}
.wes-landing-profile-wallet { letter-spacing: 0.5px; }
.wes-landing-profile-caret { font-size: 10px; color: var(--wes-fg-soft); }

.wes-landing-profile-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: #fff; border: 1px solid var(--wes-border); border-radius: 12px;
  min-width: 200px; padding: 8px; box-shadow: var(--wes-shadow-lg);
  display: none; z-index: 100;
}
.wes-landing-profile.open .wes-landing-profile-menu { display: block; }
.wes-landing-profile-item {
  display: block; width: 100%; box-sizing: border-box;
  padding: 10px 12px; border: 0; background: none;
  text-align: left; text-decoration: none;
  font-family: inherit; font-size: 13px; font-weight: 600; color: var(--wes-fg);
  border-radius: 8px; cursor: pointer; transition: background 150ms;
}
.wes-landing-profile-item:hover { background: var(--wes-bg); }
.wes-landing-profile-item.disconnect { color: var(--wes-red); }
.wes-landing-profile-item.disconnect:hover { background: var(--wes-red-soft); }
.wes-landing-profile-sep {
  height: 1px; background: var(--wes-border); margin: 6px 4px;
}

@media (max-width: 980px) {
  .wes-landing-header { grid-template-columns: 1fr 1fr; padding: 0 16px; }
  .wes-landing-nav { display: none; }
  .wes-landing-profile-chip { padding: 4px 8px 4px 4px; font-size: 11px; }
  .wes-landing-profile-wallet {  overflow: hidden; text-overflow: ellipsis; }
  .wes-landing-header-actions { min-width: 0; }
  .wes-landing-connect { white-space: nowrap; }
}

/* Phone (≤480px) — Brave/Safari mobile 390x844 cuts off Connect button on
 * the 980px layout. Tighten padding + shorter button label, allow logo to
 * shrink so right column has room for the full chip/button. */
@media (max-width: 480px) {
  .wes-landing-header {
    padding: 0 12px;
    grid-template-columns: auto 1fr;
    gap: 8px;
  }
  .wes-landing-logo-img { height: 32px; }
  .wes-landing-connect {
    padding: 8px 14px;
    font-size: 12px;
    min-width: 0;
  }
  /* Hide the "Wallet" word — keep "Connect" + icon only on tightest viewport */
  .wes-landing-connect .wes-landing-connect-suffix { display: none; }
  .wes-landing-profile-chip { font-size: 10px; max-width: 140px; }
  .wes-landing-profile-wallet { max-width: 80px; }
}
