
/* ══════════════════════════════════════════════════════════════
   TOP NAV — Component Styles
   ══════════════════════════════════════════════════════════════ */

#top-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 66px;
  z-index: 200;
  display: flex;
  align-items: stretch;
  background: #0a0905;
  border-bottom: 1px solid rgba(201,168,76,0.2);
  box-shadow: 0 2px 18px rgba(0,0,0,0.8);
  font-family: var(--fob-mono, 'Share Tech Mono', monospace);
  user-select: none;
}

/* ── Left — anchored left, fixed width ───────────────────────── */
.tn-left {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px 0 10px;
  border-right: 1px solid rgba(201,168,76,0.1);
  flex-shrink: 0;
  /* Width matches .tn-right so centre block is truly centred */
  min-width: 280px;
}

.tn-options-btn {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: none;
  border: 1px solid rgba(201,168,76,0.22);
  border-radius: 3px;
  color: rgba(201,168,76,0.55);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.15s, color 0.15s;
}
.tn-options-btn:hover { border-color: rgba(201,168,76,0.55); color: #c9a84c; }

.tn-date-block { display: flex; flex-direction: column; gap: 2px; flex-shrink: 0; }
.tn-date { font-size: 11px; color: #c9a84c; letter-spacing: 0.05em; }
.tn-turn { font-size: 9px;  color: rgba(201,168,76,0.45); letter-spacing: 0.14em; }

.tn-title-block {
  display: flex; flex-direction: column; gap: 2px;
  border-left: 1px solid rgba(201,168,76,0.1);
  padding-left: 12px;
  flex-shrink: 0;
}
.tn-app-name { font-size: 11px; color: rgba(201,168,76,0.8);  letter-spacing: 0.06em; }
.tn-app-ver  { font-size: 9px;  color: rgba(201,168,76,0.32); letter-spacing: 0.1em; }

/* FOB status indicator + roster button */
.tn-fob-status-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-right: 1px solid rgba(201,168,76,0.08);
}
.tn-fob-status {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.tn-fob-status--none {
  color: rgba(192,57,43,0.65);
}
.tn-fob-status--active {
  color: rgba(201,168,76,0.75);
}
.tn-roster-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(201,168,76,0.04);
  border: 1px solid rgba(201,168,76,0.22);
  border-radius: 2px;
  color: rgba(201,168,76,0.65);
  font-family: var(--fob-mono, 'Share Tech Mono', monospace);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.tn-roster-btn:hover {
  background: rgba(201,168,76,0.09);
  border-color: rgba(201,168,76,0.45);
  color: #c9a84c;
}

/* Locked nav button — no active FOB */
.tn-btn--locked {
  opacity: 0.28;
  cursor: not-allowed;
  pointer-events: none;
}
.tn-btn--locked:hover {
  background: none;
  color: rgba(201,168,76,0.4);
}

/* ── Centre — absolutely centred in the bar ──────────────────── */
.tn-centre {
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  transform: translateX(-50%);
  display: flex;
  align-items: stretch;
  /* Ensure it doesn't bleed over left/right blocks at small widths */
  max-width: calc(100% - 600px);
}

.tn-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 14px;
  min-width: 68px;
  background: none;
  border: none;
  border-right: 1px solid rgba(201,168,76,0.07);
  color: rgba(201,168,76,0.4);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  position: relative;
  white-space: nowrap;
}
.tn-btn:first-child { border-left: 1px solid rgba(201,168,76,0.07); }
.tn-btn:hover { background: rgba(201,168,76,0.06); color: rgba(201,168,76,0.85); }
.tn-btn--active { color: #c9a84c; background: rgba(201,168,76,0.08); }
.tn-btn--active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 8%; right: 8%;
  height: 2px;
  background: #c9a84c;
  border-radius: 1px 1px 0 0;
}
.tn-btn--stub { opacity: 0.4; cursor: default; }
.tn-btn--stub:hover { background: none; color: rgba(201,168,76,0.4); opacity: 0.55; }
.tn-icon { width: 20px; height: 20px; flex-shrink: 0; }
.tn-label { font-size: 8px; letter-spacing: 0.1em; white-space: nowrap; text-transform: uppercase; }

/* ── Right — anchored right, FOB selector + action buttons ──── */
.tn-right {
  margin-left: auto;
  display: flex;
  align-items: stretch;
  border-left: 1px solid rgba(201,168,76,0.1);
  flex-shrink: 0;
  justify-content: flex-end;
}

.tn-action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  background: none;
  border: none;
  border-left: 1px solid rgba(201,168,76,0.08);
  font-family: inherit;
  font-size: 10px;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.tn-action-btn--launch {
  color: rgba(201,168,76,0.5);
}
.tn-action-btn--launch:hover {
  background: rgba(201,168,76,0.06);
  color: #c9a84c;
}

.tn-action-btn--turn {
  color: rgba(201,168,76,0.7);
  background: rgba(201,168,76,0.04);
  border-left: 1px solid rgba(201,168,76,0.15);
}
.tn-action-btn--turn:hover {
  background: rgba(201,168,76,0.1);
  color: #c9a84c;
}

/* ── FOB Dropdown ────────────────────────────────────────────── */
.tn-fob-dropdown {
  position: fixed;
  top: 66px;
  left: 0;
  z-index: 300;
  background: #0e0c08;
  border: 1px solid rgba(201,168,76,0.2);
  border-top: none;
  min-width: 240px;
  max-height: 360px;
  overflow-y: auto;
  box-shadow: 0 6px 24px rgba(0,0,0,0.8);
}
.tn-fob-drop-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 16px;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(201,168,76,0.06);
  color: rgba(201,168,76,0.65);
  font-family: var(--fob-mono, monospace);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-align: left;
  width: 100%;
  cursor: pointer;
  transition: background 0.12s;
}
.tn-fob-drop-item:hover  { background: rgba(201,168,76,0.07); color: #c9a84c; }
.tn-fob-drop-item.active { color: #c9a84c; background: rgba(201,168,76,0.05); }
.tn-fob-drop-meta { font-size: 9px; color: rgba(201,168,76,0.35); letter-spacing: 0.04em; }
.tn-fob-drop-new {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: none; border: none;
  border-bottom: 1px solid rgba(201,168,76,0.06);
  color: rgba(201,168,76,0.4);
  font-family: var(--fob-mono, monospace);
  font-size: 11px; letter-spacing: 0.1em;
  text-align: left; width: 100%; cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.tn-fob-drop-new:hover { background: rgba(201,168,76,0.06); color: rgba(201,168,76,0.7); }

/* ── Options panel ───────────────────────────────────────────── */
.tn-options-panel {
  position: fixed;
  top: 66px; left: 10px;
  z-index: 300;
  background: #0e0c08;
  border: 1px solid rgba(201,168,76,0.2);
  min-width: 190px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.7);
}
.tn-opt-item {
  display: block; width: 100%;
  padding: 10px 18px;
  background: none; border: none;
  border-bottom: 1px solid rgba(201,168,76,0.06);
  color: rgba(201,168,76,0.7);
  font-family: var(--fob-mono, monospace);
  font-size: 11px; letter-spacing: 0.1em; text-align: left;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.tn-opt-item:hover { background: rgba(201,168,76,0.08); color: #c9a84c; }
.tn-opt-danger { color: rgba(192,57,43,0.7); }
.tn-opt-danger:hover { background: rgba(192,57,43,0.1); color: #c0392b; }
.tn-opt-divider { height: 1px; background: rgba(201,168,76,0.1); }
.tn-opt-gm { color: rgba(201,168,76,0.55); }
.tn-opt-gm:hover { background: rgba(201,168,76,0.08); color: #c9a84c; }
.tn-opt-gm.gm-active { color: #4a8a3a; }
.tn-opt-gm.gm-active:hover { background: rgba(74,138,58,0.08); color: #5aaa4a; }

/* ── Screen offset ───────────────────────────────────────────── */
.screen { top: 66px !important; }
