/* =========================================================================
   V6 — member app entry (Log in / Sign Up)

   Design intent: two different actions share the header and must never be
   confused for each other.

     • "Connect Wallet"  — RAISED. The one filled, glowing gradient pill in the
       header. It stays on this page and lights up the wallet panel below.
     • "Log in / Sign Up" — RECESSED. A matte, inset segmented control that
       reads like a doorway, not a button. It leaves this page for the member
       dashboard (the DApp). Carries the log-in glyph and an explanatory note.

   Raised vs recessed, one gradient vs none: the shapes carry the meaning
   before anyone reads a word.
   ========================================================================= */

/* ---------------- desktop header: make room for the account control ------ */
@media (min-width: 1025px) {
  .nav-inner { gap: 16px; }
  .nav-links { gap: 3px; }
  .nav-links a { padding: 9px 10px; }
}

/* ---------------- the recessed account control (desktop) ---------------- */
.nav-account {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(6, 1, 20, 0.72);
  border: 1px solid rgba(170, 100, 255, 0.24);
  box-shadow:
    inset 0 2px 7px rgba(0, 0, 0, 0.6),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}
/* hairline that separates page navigation from the account actions */
.nav-account::before {
  content: '';
  position: absolute; left: -9px; top: 9px; bottom: 9px; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(170, 100, 255, 0.45), transparent);
}

.na-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-lbl); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em; font-size: 12.5px; line-height: 1;
  color: var(--lav-2);
  height: 34px; padding: 0 12px; border-radius: 999px;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.na-link[href] { cursor: pointer; }
.na-link:hover { color: #fff; background: rgba(140, 70, 250, 0.2); }
.na-ico { flex: none; }

/* Sign Up: solid violet chip — emphasis inside the group, but flat and
   glow-free so it never competes with the gradient Connect Wallet pill. */
.na-link--go {
  color: #fff;
  background: rgba(139, 61, 255, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.na-link--go:hover {
  color: #fff;
  background: rgba(163, 92, 255, 1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26), 0 0 14px rgba(139, 61, 255, 0.4);
}
.na-link:active { transform: translateY(1px); }

/* ---------------- destination note (hover / focus tooltip) --------------- */
.na-tip {
  position: absolute; top: calc(100% + 10px); right: 0;
  white-space: nowrap;
  font-family: var(--font-body); font-weight: 500;
  font-size: 12px; line-height: 1.4; letter-spacing: 0; text-transform: none;
  color: var(--lav-2);
  background: rgba(12, 4, 32, 0.97);
  border: 1px solid var(--line);
  padding: 7px 12px; border-radius: 10px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
  opacity: 0; transform: translateY(-4px); pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-account:hover .na-tip,
.nav-account:focus-within .na-tip { opacity: 1; transform: none; }

/* ---------------- focus rings (this control only) ---------------- */
.na-link:focus-visible,
.mm-acc-btn:focus-visible {
  outline: 2px solid var(--lav-2);
  outline-offset: 2px;
}

/* =========================================================================
   Menu overlay (821–1199px: full-screen menu)
   ========================================================================= */
/* The account block adds height, so the overlay now scrolls instead of
   clipping its first and last rows on short windows. */
@media (min-width: 821px) {
  .mobile-menu {
    justify-content: flex-start;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: calc(var(--nav-h) + 12px) 20px 32px;
  }
  /* two more rows have to fit above the fold, so the page links give back a
     little of their display size — still a large, confident menu type */
  .mobile-menu a { font-size: clamp(22px, 3vw, 26px); padding: 4px 20px; }
}
.mm-account {
  display: grid; justify-items: center; gap: 12px;
  margin-top: 14px; padding-top: 16px;
  border-top: 1px solid rgba(170, 100, 255, 0.2);
  width: min(460px, 86vw);
}
.mm-eyebrow {
  font-family: var(--font-lbl); font-weight: 700;
  font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--text-dim);
}
.mm-account-row { display: flex; gap: 10px; }
/* brighter than the shared .mini-note token: this line is small, and it is the
   sentence that tells a member which of the two buttons signs them in */
.mm-note { text-align: center; max-width: 40ch; color: var(--text-dim); }

/* scoped past `.mobile-menu a`, which is the big display-type link style */
.mobile-menu .mm-acc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 12px 22px;
  border-radius: 12px;
  font-family: var(--font-lbl); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 14px;
  color: var(--lav-2);
  background: rgba(140, 70, 250, 0.1);
  border: 1px solid rgba(170, 100, 255, 0.3);
  transform: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-menu.open .mm-acc-btn { opacity: 1; }
.mobile-menu .mm-acc-btn:hover { color: #fff; background: rgba(140, 70, 250, 0.24); border-color: rgba(200, 140, 255, 0.55); }
.mobile-menu .mm-acc-btn:active { transform: scale(0.97); }
.mobile-menu .mm-acc-btn--go {
  color: #fff;
  background: rgba(139, 61, 255, 0.9);
  border-color: rgba(200, 150, 255, 0.5);
}
.mobile-menu .mm-acc-btn--go:hover { color: #fff; background: rgba(163, 92, 255, 1); }

/* =========================================================================
   Header breakpoints

   Nine items plus a CTA does not fit one row below ~1200px, and a cramped row
   is worse than a clean one — so the page nav collapses into the existing
   menu 175px earlier than before. 821–1199px keeps the burger it already had
   at 1024px; below 821px the bottom-nav "Menu" tab still opens the sheet.
   ========================================================================= */
@media (max-width: 1199px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .nav .btn-cta-desktop { display: none; }
  .nav-account { display: none; }
}
@media (max-width: 820px) {
  .nav-burger { display: none; }
}

/* ---------------- phone bottom-sheet menu (2-column grid) ---------------- */
@media (max-width: 820px) {
  .mobile-menu .mm-account {
    grid-column: 1 / -1;
    width: auto;
    justify-items: stretch;
    gap: 9px;
    margin-top: 4px; padding-top: 12px;
  }
  .mm-eyebrow { text-align: center; font-size: 10.5px; letter-spacing: 0.22em; }
  .mm-account-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .mobile-menu .mm-acc-btn { padding: 12px 8px; font-size: 13.5px; }
  .mm-note { font-size: 11.5px; line-height: 1.45; max-width: none; }
}

/* =========================================================================
   Honest failure: ZT_CONFIG.dappUrl is not configured

   app.js strips the href and flags the group, so these are never links that go
   nowhere — they are visibly unavailable, unfocusable, and the note says why.
   Kept last in the file so it outranks the enabled-state rules above.
   ========================================================================= */
[data-dapp-account].is-unset .na-link,
.mobile-menu.open [data-dapp-account].is-unset .mm-acc-btn,
[data-dapp-account].is-unset .mm-acc-btn {
  opacity: 0.4;
  filter: grayscale(0.55);
  cursor: not-allowed;
  pointer-events: none;
}
.nav-account.is-unset { border-color: rgba(251, 191, 36, 0.4); }
.nav-account.is-unset .na-tip {
  opacity: 1; transform: none;
  color: var(--warn);
  border-color: rgba(251, 191, 36, 0.5);
}
[data-dapp-account].is-unset .mm-note { color: var(--warn); }

@media (prefers-reduced-motion: reduce) {
  .na-link, .na-tip, .mobile-menu .mm-acc-btn { transition-duration: 0.01ms; }
}
