/* CityZeen shared nav styles — works on dark (/ui/) + light (/dashboard, /upgrade) hosts.
 * Inputs are kept neutral so the parent page's theme dominates. */

.cz-nav-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.cz-nav-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-family: ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: 1px solid currentColor;
  white-space: nowrap;
}
.cz-nav-badge:hover { filter: brightness(0.97); text-decoration: none; }

.cz-nav-org {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: inherit;
}
.cz-nav-org-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.65;
}
.cz-nav-org select {
  font: inherit;
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  border: 1px solid rgba(128, 128, 128, 0.35);
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
}
.cz-nav-org select:focus { outline: 2px solid rgba(0, 163, 108, 0.4); outline-offset: 1px; }

/* Active-link emphasis — works across both UI surfaces. */
header a.active, nav a.active { color: var(--cz-fg, #0B0E0D); font-weight: 600; }

/* ---------------------- 403 modal ---------------------- */

.cz-nav-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cz-nav-modal[hidden] { display: none; }
.cz-nav-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 14, 13, 0.55);
}
.cz-nav-modal-card {
  position: relative;
  z-index: 1;
  background: #F4F1EA;
  color: #0B0E0D;
  border: 1px solid #D7D2C5;
  border-radius: 14px;
  padding: 0;
  width: min(520px, 92vw);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.cz-nav-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 6px;
}
.cz-nav-modal-head h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 22px;
}
.cz-nav-modal-x {
  background: transparent;
  border: 0;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #4A4D4B;
  padding: 4px 8px;
}
.cz-nav-modal-body {
  padding: 6px 20px 16px;
}
.cz-nav-modal-message {
  font-size: 14px;
  color: #0B0E0D;
  margin: 0 0 14px;
  line-height: 1.5;
}
.cz-nav-modal-tiers {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-family: ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  color: #4A4D4B;
}
.cz-nav-modal-tiers strong { color: #0B0E0D; }
.cz-nav-modal-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 20px 18px;
  border-top: 1px solid #D7D2C5;
  background: #FFFFFF;
}
.cz-nav-modal-cta {
  background: #00A36C;
  color: #fff;
  text-decoration: none;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}
.cz-nav-modal-cta:hover { filter: brightness(1.05); text-decoration: none; }
.cz-nav-modal-dismiss {
  background: transparent;
  color: #4A4D4B;
  border: 1px solid #D7D2C5;
  padding: 9px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
}
.cz-nav-modal-dismiss:hover { color: #0B0E0D; border-color: #B5AE9D; }

body.cz-nav-modal-open { overflow: hidden; }

/* ---------------------- /demo banner ---------------------- */

.cz-demo-banner {
  background: #00A36C;
  color: #fff;
  padding: 8px 24px;
  text-align: center;
  font-size: 13px;
  font-family: -apple-system, "Inter Tight", "Inter", system-ui, sans-serif;
}
.cz-demo-banner a {
  color: #fff;
  text-decoration: underline;
  font-weight: 600;
  margin-left: 6px;
}

/* ---------------------- Auth widgets ---------------------- */

.cz-nav-signin {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid #0B0E0D;
  background: #0B0E0D;
  color: #F4F1EA;
  font-family: -apple-system, "Inter Tight", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}
.cz-nav-signin:hover { background: transparent; color: #0B0E0D; text-decoration: none; }

.cz-nav-signin-banner {
  background: rgba(0, 163, 108, 0.10);
  color: #0B0E0D;
  font-size: 12px;
  text-align: center;
  padding: 6px 18px;
  border-bottom: 1px solid rgba(0, 163, 108, 0.25);
  font-family: -apple-system, "Inter Tight", system-ui, sans-serif;
}
.cz-nav-signin-banner a {
  color: #00A36C;
  font-weight: 600;
  margin-left: 6px;
  text-decoration: none;
}
.cz-nav-signin-banner a:hover { text-decoration: underline; }

.cz-nav-user { position: relative; }
.cz-nav-user > summary {
  list-style: none;
  cursor: pointer;
}
.cz-nav-user > summary::-webkit-details-marker { display: none; }
.cz-nav-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(11, 122, 117, 0.20);
  color: #0B7A75;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid rgba(11, 14, 13, 0.12);
}
.cz-nav-avatar:hover { background: rgba(11, 122, 117, 0.30); }

.cz-nav-user-menu {
  position: absolute;
  top: 44px;
  right: 0;
  min-width: 220px;
  background: #FBF9F4;
  border: 1px solid rgba(11, 14, 13, 0.20);
  border-radius: 2px;
  box-shadow: 0 8px 24px rgba(11, 14, 13, 0.10);
  padding: 12px 14px;
  z-index: 900;
  font-family: -apple-system, "Inter Tight", system-ui, sans-serif;
}
.cz-nav-user-name { font-weight: 500; font-size: 13px; color: #0B0E0D; }
.cz-nav-user-org {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  color: #7A7670;
  letter-spacing: 0.04em;
  margin-top: 2px;
  word-break: break-all;
}
.cz-nav-user-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  color: #A6462D;
  text-decoration: none;
}
.cz-nav-user-link:hover { text-decoration: underline; }
