/* ========================================================
   New Galaxy Age — Incursion Fleet Tracker UI Theme
   Signature NGA Amber Orange (#e08114) & Deep Space Carbon
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700;800&family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg-dark: #080b11;
  --bg-card: #0e121a;
  --bg-card-hover: #141924;
  --bg-input: #090c12;
  --border-col: rgba(255, 255, 255, 0.07);
  --border-col-light: rgba(255, 255, 255, 0.12);
  
  --red-accent: #8b949e; /* was NGA Amber — desaturated to neutral gray */
  --red-dim: #6e7681;
  --nga-orange: #8b949e;
  --nga-orange-bright: #b1bac4;
  --nga-orange-dim: rgba(139, 148, 158, 0.15);

  --green-accent: #00e676; /* Authentic EVE Neon Green — kept for ISK/profit */
  --yellow-accent: #b1bac4; /* was CONCORD LP Gold — desaturated to neutral gray */
  --blue-accent: #94a3b8;  /* was Tactical Cyan — desaturated to neutral gray */
  --purple-accent: #94a3b8;
  --cyan-accent: #94a3b8;
  --danger-red: #ef4444;   /* Errors, destructive actions — kept */

  --text-white: #f0f6fc;
  --text-muted: #747d8c;
  --text-secondary: #dfe4ea;
  
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* ========================================================
   Theme presets — switched via [data-theme] on <html>,
   stored in localStorage (see js/services/themeService.js).
   Default (no attribute) = "mono" (current desaturated gray).
   ======================================================== */

/* NGA Orange — the original signature amber theme */
html[data-theme="nga"] {
  --red-accent: #e08114;
  --red-dim: #a35804;
  --nga-orange: #e08114;
  --nga-orange-bright: #f39c12;
  --nga-orange-dim: rgba(224, 129, 20, 0.15);
  --yellow-accent: #ffd32a;
  --blue-accent: #38bdf8;
  --purple-accent: #a29bfe;
  --cyan-accent: #00cec9;
}

/* Tactical Blue — cool cyan/blue accent theme */
html[data-theme="blue"] {
  --red-accent: #38bdf8;
  --red-dim: #0284c7;
  --nga-orange: #38bdf8;
  --nga-orange-bright: #7dd3fc;
  --nga-orange-dim: rgba(56, 189, 248, 0.15);
  --yellow-accent: #7dd3fc;
  --blue-accent: #38bdf8;
  --purple-accent: #818cf8;
  --cyan-accent: #22d3ee;
}

/* Cyber Purple — violet/magenta accent theme */
html[data-theme="purple"] {
  --red-accent: #a78bfa;
  --red-dim: #7c3aed;
  --nga-orange: #a78bfa;
  --nga-orange-bright: #c4b5fd;
  --nga-orange-dim: rgba(167, 139, 250, 0.15);
  --yellow-accent: #f0abfc;
  --blue-accent: #a78bfa;
  --purple-accent: #a78bfa;
  --cyan-accent: #e879f9;
}

/* Blood Red — deep red accent theme */
html[data-theme="red"] {
  --red-accent: #ef4444;
  --red-dim: #b91c1c;
  --nga-orange: #ef4444;
  --nga-orange-bright: #f87171;
  --nga-orange-dim: rgba(239, 68, 68, 0.15);
  --yellow-accent: #fb923c;
  --blue-accent: #f87171;
  --purple-accent: #f87171;
  --cyan-accent: #fb7185;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  user-drag: none;
}

td, td * {
  user-select: text;
  -webkit-user-select: text;
}

/* Hide header pilot info / stat cards behind a fade while the session
   check (checkSession/OAuth) resolves on load or F5, so the logged-out
   or zeroed placeholder state doesn't flash before real data hydrates. */
body.session-checking .pilot-summary-pill,
body.session-checking .bento-card {
  opacity: 0.25;
  filter: blur(1.5px);
  pointer-events: none;
  transition: opacity 0.25s ease, filter 0.25s ease;
}
.pilot-summary-pill,
.bento-card {
  transition: opacity 0.25s ease, filter 0.25s ease;
}

/* Shared pane header — used across tabs for the title/subtitle block at the
   top of each view. Individual views may still override size via inline
   style for larger/smaller headers, but these are the baseline defaults. */
.tracker-pane-header {
  margin-bottom: 20px;
}
.pane-title {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.3px;
  color: var(--text-white);
}
.pane-subtitle {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

img {
  -webkit-user-drag: none;
  user-drag: none;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-white);
  font-family: var(--font-main);
  font-size: 13px;
  line-height: 1.4;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.2s, color 0.2s;
}

/* ── Custom Dark Scrollbars ────────────────────────────── */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--border-col);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--red-dim);
}

/* ── Top Header ─────────────────────────────────────────── */
.app-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-col);
  padding: 8px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  position: sticky;
  top: 0;
  z-index: 100;
  flex-wrap: wrap;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-logo {
  font-size: 20px;
  flex-shrink: 0;
}

.brand-titles {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.brand-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: var(--text-white);
  white-space: nowrap;
}

.brand-subtitle {
  font-size: 10.5px;
  color: var(--text-muted);
  white-space: nowrap;
}

.header-badges {
  display: none !important;
}

.badge-stream {
  display: none !important;
}

.badge-archive-count {
  background: #2b1111;
  color: #ff6b81;
  border: 1px solid #4a1c1c;
  border-radius: 3px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pilot-summary-pill {
  background: #14161b;
  border: 1px solid #232730;
  border-radius: 6px;
  padding: 3px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pilot-avatar-mini {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #30363d;
  object-fit: cover;
  object-position: center;
  background: #14161b;
  flex-shrink: 0;
}

.pilot-name-text {
  font-weight: 700;
  color: #f0f6fc;
  font-size: 13px;
}

.pilot-stat-tag {
  font-size: 11.5px;
  font-weight: 600;
}

.tag-balance { color: #3fb950; }
.tag-lp { color: #d29922; }

.btn-mini-add-pilot {
  background: transparent;
  border: 1px solid #30363d;
  color: #8b949e;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-mini-add-pilot:hover {
  border-color: #58a6ff;
  color: #58a6ff;
}

.utc-clock {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 11.5px;
  color: #d29922;
  background: #14161b;
  border: 1px solid #232730;
  border-radius: 4px;
  padding: 5px 10px;
}

.header-button-group {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #14161b;
  border: 1px solid #232730;
  border-radius: 6px;
  padding: 2px;
}

.btn-icon-action {
  background: transparent;
  border: none;
  color: #c9d1d9;
  padding: 5px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.btn-icon-action:hover {
  background: #21262d;
  color: #ffffff;
}
.btn-logout-icon:hover {
  background: rgba(248, 81, 73, 0.15);
  color: #f85149;
}
.btn-logout-action {
  background: rgba(248, 81, 73, 0.08);
  border: 1px solid rgba(248, 81, 73, 0.25);
  color: #c9d1d9;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.btn-logout-action:hover {
  background: rgba(248, 81, 73, 0.2);
  border-color: rgba(248, 81, 73, 0.6);
  color: #ff7b72;
}
.btn-logout-action svg {
  flex-shrink: 0;
}
.btn-icon-square {
  background: var(--bg-input);
  border: 1px solid var(--border-col);
  color: var(--text-white);
  border-radius: 4px;
  padding: 5px 9px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}
.btn-icon-square:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-col-light);
}

/* ── Main Container ─────────────────────────────────────── */
.app-container {
  max-width: 1720px;
  margin: 0 auto;
  padding: 16px 20px 40px 20px;
}

/* ── Sticky Dashboard (Bento Cards + Navigation) ──────────── */
.sticky-dashboard {
  position: sticky;
  top: 50px;
  z-index: 90;
  background: var(--bg-dark);
  padding-top: 10px;
  padding-bottom: 2px;
  margin-left: -20px;
  margin-right: -20px;
  padding-left: 20px;
  padding-right: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* ── 4 Bento Executive Cards ────────────────────────────── */
.bento-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}

@media (max-width: 1024px) {
  .bento-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .bento-grid-4 {
    grid-template-columns: 1fr;
  }
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-col);
  border-radius: 8px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}
.bento-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(224, 129, 20, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.55);
}

.bento-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.hud-tag {
  color: #747d8c;
  letter-spacing: 0.06em;
}

.dot-indicator, .hud-indicator {
  width: 6px;
  height: 6px;
  border-radius: 2px;
}
.dot-green, .hud-green { background: var(--green-accent); box-shadow: 0 0 8px rgba(0, 230, 118, 0.6); }
.dot-yellow, .hud-yellow { background: var(--yellow-accent); box-shadow: 0 0 8px rgba(255, 211, 42, 0.6); }
.dot-blue, .hud-blue { background: var(--blue-accent); box-shadow: 0 0 8px rgba(56, 189, 248, 0.6); }
.dot-purple, .hud-purple { background: var(--purple-accent); box-shadow: 0 0 8px rgba(162, 155, 254, 0.6); }
.hud-gold { background: #e08114; box-shadow: 0 0 8px rgba(224, 129, 20, 0.6); }

.bento-value {
  font-size: 22px;
  font-weight: 900;
  font-family: var(--font-mono);
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}
.bento-value.green { color: var(--green-accent); text-shadow: 0 0 16px rgba(0, 230, 118, 0.25); }
.bento-value.yellow { color: var(--yellow-accent); text-shadow: 0 0 16px rgba(255, 211, 42, 0.25); }
.bento-value.blue { color: var(--blue-accent); text-shadow: 0 0 16px rgba(56, 189, 248, 0.25); }
.bento-value.purple { color: var(--purple-accent); text-shadow: 0 0 16px rgba(162, 155, 254, 0.25); }

.bento-value.zero-val {
  color: #64748b !important;
  text-shadow: none !important;
}

.bento-card.is-zero .dot-indicator {
  opacity: 0.35;
  box-shadow: none;
}

.bento-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-main);
  letter-spacing: 0.01em;
}

/* ── Mode Navigation Bar (Tactical Military Neocom) ────────── */
.mode-nav-bar-wrap {
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mode-nav-bar-wrap::before,
.mode-nav-bar-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 8px;
  width: 28px;
  pointer-events: none;
  z-index: 2;
}
.mode-nav-bar-wrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-dark) 0%, transparent 100%);
}
.mode-nav-bar-wrap::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg-dark) 0%, transparent 100%);
}

.mode-nav-bar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 6px;
  padding: 4px 4px 8px 4px;
  margin-bottom: 0;
  overflow-x: auto;
  overflow-y: hidden;
  flex-wrap: nowrap;
  scroll-behavior: smooth;
  /* Hide the native scrollbar — it clashes with the tactical UI look.
     Horizontal scroll still works via drag, trackpad, or shift+wheel. */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.mode-nav-bar::-webkit-scrollbar {
  display: none;
}

.nav-divider {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 4px;
  flex-shrink: 0;
}
@media (max-width: 960px) {
  .nav-divider {
    display: none;
  }
}

.mode-tab-btn {
  background: rgba(14, 18, 26, 0.7);
  color: #8b949e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 8px 15px;
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.mode-tab-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #f0f6fc;
  border-color: rgba(255, 255, 255, 0.2);
}

.mode-tab-btn.active {
  background: linear-gradient(180deg, rgba(224, 129, 20, 0.2) 0%, rgba(224, 129, 20, 0.06) 100%) !important;
  color: #ffffff !important;
  border-color: rgba(224, 129, 20, 0.7) !important;
  box-shadow: 0 0 12px rgba(224, 129, 20, 0.22);
  font-weight: 800;
}

/* ── Panes ──────────────────────────────────────────────── */
.tracker-pane {
  display: none !important;
}
.tracker-pane.active {
  display: block !important;
}

/* ── Journal Desktop Matcher Styles ────────────────────────── */
.journal-bento-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
@media (max-width: 1100px) {
  .journal-bento-5 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 650px) {
  .journal-bento-5 {
    grid-template-columns: 1fr;
  }
}

.journal-summary-box {
  background: linear-gradient(180deg, rgba(14, 18, 26, 0.95) 0%, rgba(10, 13, 19, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 14px;
  position: relative;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.journal-summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.journal-summary-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--yellow-accent);
  margin-bottom: 0;
}

.journal-summary-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.multibox-mode-toggle {
  display: inline-flex;
  align-items: center;
  background: #090c12;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 3px;
  gap: 3px;
}

.btn-mb-mode {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #8b949e;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-mb-mode:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.btn-mb-mode.active[data-multibox="true"],
.btn-mb-mode.active#btn-mb-on {
  background: rgba(46, 204, 113, 0.16);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.45);
  box-shadow: 0 0 10px rgba(46, 204, 113, 0.15);
  font-weight: 800;
}

.btn-mb-mode.active[data-multibox="false"],
.btn-mb-mode.active#btn-mb-off {
  background: rgba(224, 129, 20, 0.16);
  color: #e08114;
  border: 1px solid rgba(224, 129, 20, 0.45);
  box-shadow: 0 0 10px rgba(224, 129, 20, 0.15);
  font-weight: 800;
}

.journal-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 850px) {
  .journal-summary-grid {
    grid-template-columns: 1fr;
  }
}

.summary-col-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12.5px;
  color: var(--text-muted);
}
.summary-col-lines strong {
  color: var(--text-white);
}

.btn-copy-summary {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0, 230, 118, 0.08);
  color: var(--green-accent);
  border: 1px solid rgba(0, 230, 118, 0.25);
  border-radius: 6px;
  padding: 6px 14px;
  font-weight: 700;
  font-size: 11.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.btn-copy-summary:hover {
  background: rgba(0, 230, 118, 0.16);
  border-color: rgba(0, 230, 118, 0.5);
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.2);
}

.journal-summary-actions .btn-copy-summary {
  position: static;
  top: auto;
  right: auto;
}

.journal-multi-bar {
  background: rgba(14, 18, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.multi-bar-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--yellow-accent);
}

.btn-multi-pill {
  background: var(--bg-input);
  border: 1px solid var(--border-col);
  color: var(--text-white);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-multi-pill:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-col-light);
}

.journal-stream-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tx-card-row {
  background: var(--bg-card);
  border: 1px solid var(--border-col);
  border-radius: 6px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: background 0.2s, border-color 0.2s;
}
.tx-card-row:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-col-light);
}

.tx-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tx-checkbox {
  width: 15px;
  height: 15px;
  accent-color: var(--red-accent);
  cursor: pointer;
}

.tx-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tx-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tx-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red-accent);
  box-shadow: 0 0 6px var(--red-accent);
}

.tx-main-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-white);
}

.tx-pilot-badge {
  background: #3d1b1b;
  color: #ff6b81;
  border-radius: 3px;
  padding: 1px 6px;
  font-size: 10.5px;
  font-weight: 700;
}

.tx-sub-desc {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.tx-card-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tx-amount-green {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--green-accent);
  font-family: var(--font-mono);
}
.tx-amount-red {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--red-accent);
  font-family: var(--font-mono);
}

.tx-balance-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ── Leaderboard Styles ─────────────────────────────────── */
.leaderboard-period-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.btn-period-pill {
  background: rgba(14, 18, 26, 0.7);
  color: #8b949e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 6px 14px;
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-period-pill:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #f0f6fc;
  border-color: rgba(255, 255, 255, 0.18);
}

.btn-period-pill.active {
  background: linear-gradient(180deg, rgba(224, 129, 20, 0.22) 0%, rgba(224, 129, 20, 0.08) 100%) !important;
  color: #ffffff !important;
  border-color: rgba(224, 129, 20, 0.65) !important;
  box-shadow: 0 0 10px rgba(224, 129, 20, 0.22);
  font-weight: 800;
}

.btn-refresh-live {
  background: linear-gradient(180deg, rgba(224, 129, 20, 0.22) 0%, rgba(224, 129, 20, 0.1) 100%);
  color: #ffbe76;
  border: 1px solid rgba(224, 129, 20, 0.55);
  font-weight: 800;
  border-radius: 6px;
  padding: 7px 15px;
  font-size: 11.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  letter-spacing: 0.3px;
}
.btn-refresh-live:hover {
  background: linear-gradient(180deg, rgba(224, 129, 20, 0.35) 0%, rgba(224, 129, 20, 0.18) 100%);
  border-color: #e08114;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(224, 129, 20, 0.3);
}

.btn-open-mini-hud {
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-weight: 800;
  border-radius: 6px;
  padding: 7px 13px;
  font-size: 11.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  letter-spacing: 0.3px;
}
.btn-open-mini-hud:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

.leaderboard-subheading {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 600;
}

.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pilot-card-row {
  background: var(--bg-card);
  border: 1px solid var(--border-col);
  border-radius: 6px;
  padding: 10px 16px;
  display: grid;
  grid-template-columns: 70px 240px 170px 180px 180px 1fr;
  align-items: center;
  gap: 12px;
  transition: all 0.2s;
}

.pilot-card-row:hover {
  background: var(--bg-card-hover);
}

.pilot-card-row.rank-1 {
  border: 1px solid #e5a50a;
  box-shadow: 0 0 14px rgba(229, 165, 10, 0.2);
  background: linear-gradient(90deg, rgba(229, 165, 10, 0.08), var(--bg-card));
}

.pilot-card-row.rank-2 {
  border: 1px solid #747d8c;
  background: linear-gradient(90deg, rgba(116, 125, 140, 0.08), var(--bg-card));
}

.pilot-card-row.rank-3 {
  border: 1px solid #ff4757;
  background: linear-gradient(90deg, rgba(255, 71, 87, 0.08), var(--bg-card));
}

.rank-col {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 14px;
}
.rank-col.gold { color: #ffd700; }
.rank-col.silver { color: #ced6e0; }
.rank-col.bronze { color: #ff6b81; }

.pilot-identity-col {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pilot-avatar-med {
  width: 34px;
  height: 34px;
  border-radius: 4px;
  border: 1px solid var(--border-col-light);
  object-fit: cover;
}

.pilot-info-texts {
  display: flex;
  flex-direction: column;
}

.pilot-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pilot-title-text {
  font-weight: 800;
  font-size: 13.5px;
  color: var(--text-white);
}

.badge-dev {
  background: #e5a50a;
  color: #000;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 3px;
}

.badge-in-fleet {
  background: #ff4757;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 3px;
}

.pilot-corp-text {
  font-size: 10.5px;
  color: var(--text-muted);
}

.stat-cell {
  display: flex;
  flex-direction: column;
}

.stat-cell-val {
  font-weight: 800;
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.stat-cell-sub {
  font-size: 10.5px;
  color: var(--text-muted);
}

.val-green { color: var(--green-accent); }
.val-lp { color: var(--yellow-accent); }
.val-blue { color: var(--blue-accent); }
.val-time { color: var(--text-white); }

/* ── Live Journal Table ─────────────────────────────────── */
.table-dark-custom {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.table-dark-custom th {
  background: var(--bg-input);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-col);
}

.lp-sortable-th {
  cursor: pointer !important;
  user-select: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.lp-sortable-th:hover {
  background: rgba(56, 189, 248, 0.12) !important;
  color: #fff !important;
}

.lp-sortable-th.active-sort {
  color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.08) !important;
}

.lp-sortable-th .sort-icon {
  display: inline-block;
  margin-left: 4px;
  font-size: 11px;
  opacity: 0.45;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.lp-sortable-th:hover .sort-icon {
  opacity: 0.9;
}

.lp-sortable-th.active-sort .sort-icon {
  opacity: 1;
  color: #38bdf8;
  font-weight: 900;
}

.table-dark-custom td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-col);
  font-size: 12.5px;
}

.table-dark-custom tr:hover td {
  background: var(--bg-card-hover);
}

/* ── Modals ─────────────────────────────────────────────── */
.custom-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.custom-modal-overlay.active {
  display: flex !important;
}

/* ── Admin Command Console Styles ───────────────────────── */
.admin-subnav-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 22px;
  flex-wrap: wrap;
  background: rgba(0, 0, 0, 0.45);
  padding: 6px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-tab-btn {
  background: rgba(14, 18, 26, 0.7);
  color: #8b949e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 8px 15px;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.admin-tab-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.admin-tab-btn.active {
  background: rgba(224, 129, 20, 0.18) !important;
  color: #ffffff !important;
  border-color: #e08114 !important;
  box-shadow: 0 0 14px rgba(224, 129, 20, 0.35);
  font-weight: 900;
}

.doctrine-tactical-card {
  background: #0e121a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.doctrine-tactical-card:hover {
  border-color: rgba(224, 129, 20, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7);
}

.custom-modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-col-light);
  border-radius: 10px;
  width: 90%;
  max-width: 560px;
  padding: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
}

.modal-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-col);
}

.modal-title {
  font-size: 17px;
  font-weight: 800;
}

.btn-close-modal {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.15s;
}
.btn-close-modal:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.btn-modal-primary {
  background: var(--nga-orange, #e08114) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 6px !important;
  padding: 10px 16px !important;
  cursor: pointer !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  transition: all 0.15s ease !important;
  margin-top: 10px !important;
}
.btn-modal-primary:hover {
  background: #f39c12 !important;
  box-shadow: 0 0 14px rgba(224, 129, 20, 0.4) !important;
}

/* ── EVE SSO Auth Gate ──────────────────────────────────── */
.auth-gate-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.auth-gate-card {
  background: var(--bg-card);
  border: 1px solid var(--border-col-light);
  border-radius: 12px;
  padding: 40px 32px;
  max-width: 540px;
  width: 100%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(255, 71, 87, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.auth-gate-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #ff4757, #b33939);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 0 24px rgba(255, 71, 87, 0.5);
}

.auth-gate-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.3px;
}

.auth-gate-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.btn-sso-login {
  background: linear-gradient(135deg, #e84118, #ff4757);
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
  border: none;
  border-radius: 6px;
  padding: 12px 28px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(255, 71, 87, 0.4);
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-sso-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(255, 71, 87, 0.6);
}

.auth-badges-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px;
}

.auth-security-badge {
  background: var(--bg-input);
  border: 1px solid var(--border-col);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

/* ── Toast Notification ─────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-msg {
  background: rgba(20, 10, 10, 0.95);
  border: 1px solid var(--border-col-light);
  color: var(--text-white);
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 0 12px rgba(255, 71, 87, 0.2);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toastFadeIn 0.3s ease-out forwards;
  pointer-events: auto;
}

@keyframes toastFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Incursion Skill Matrix & EFT Inspector ─────────────── */
.nga-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--bg-card);
  border: 1px solid var(--border-col);
  border-radius: 8px;
  padding: 12px 18px;
  margin-bottom: 18px;
}
.nga-doctrine-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.btn-doctrine-pill {
  background: #161920;
  border: 1px solid #2d323f;
  color: #c9d1d9;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: all 0.15s ease;
}
.btn-doctrine-pill:hover {
  background: #222630;
  border-color: #e08114;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(224, 129, 20, 0.25);
}
.btn-doctrine-pill.active {
  background: rgba(224, 129, 20, 0.18);
  border-color: #e08114;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(224, 129, 20, 0.35);
}
.nga-legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.nga-legend-title {
  color: #8b949e;
  font-weight: 700;
  margin-right: 4px;
}
.skill-badge-starter {
  background: #8b1a1a;
  color: #ffffff;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
  min-width: 32px;
  text-align: center;
  display: inline-block;
}
.skill-badge-basic {
  background: #8f6b00;
  color: #ffffff;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
  min-width: 32px;
  text-align: center;
  display: inline-block;
}
.skill-badge-elite {
  background: #232730;
  color: #c9d1d9;
  border: 1px solid #30363d;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
  min-width: 32px;
  text-align: center;
  display: inline-block;
}
.skill-badge-elitegold {
  background: #1f883d;
  color: #ffffff;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
  min-width: 32px;
  text-align: center;
  display: inline-block;
}

/* Two-Column Grid */
.nga-main-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  align-items: start;
}
@media (max-width: 1024px) {
  .nga-main-grid {
    grid-template-columns: 1fr;
  }
}

/* Matrix Column */
.nga-matrix-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-col);
  border-radius: 8px;
  padding: 20px;
}
.nga-matrix-header-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed var(--border-col);
  padding-bottom: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}
.nga-matrix-sub {
  font-size: 12px;
  color: var(--text-muted);
}
.nga-matrix-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 16px;
}
@media (max-width: 1200px) {
  .nga-matrix-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .nga-matrix-grid {
    grid-template-columns: 1fr;
  }
}

.nga-category-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nga-category-title {
  font-size: 13px;
  font-weight: 700;
  color: #f1f2f6;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.nga-category-skills {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nga-skill-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 2px 0;
  font-size: 12px;
}
.nga-skill-name {
  color: #ced6e0;
  line-height: 1.25;
}
.nga-skill-badge {
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 700;
  min-width: 26px;
  text-align: center;
  flex-shrink: 0;
}
.skill-badge-red {
  background: #a31527;
  color: #fff;
}
.skill-badge-dark {
  background: #2b303c;
  color: #fff;
}
.skill-badge-green {
  background: #27ae60;
  color: #fff;
}

/* EFT Fit Card */
.nga-fit-wrapper {
  position: sticky;
  top: 16px;
}
.nga-fit-card {
  background: #14161a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.nga-fit-header {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}
.nga-fit-ship-avatar {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border-col-light);
  flex-shrink: 0;
}
.nga-fit-ship-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nga-fit-title-wrap {
  flex-grow: 1;
}
.nga-fit-title {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.3px;
}
.nga-fit-subtitle {
  font-size: 11px;
  color: var(--text-muted);
}
.btn-copy-fit-icon {
  background: transparent;
  border: 1px solid var(--border-col);
  color: #fff;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.15s;
}
.btn-copy-fit-icon:hover {
  background: var(--bg-card-hover);
  border-color: var(--red-accent);
}
.nga-fit-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 460px;
  overflow-y: auto;
  padding-right: 4px;
}
.nga-fit-section {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 6px;
}
.nga-fit-item-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.nga-fit-item-icon {
  width: 20px;
  height: 20px;
  border-radius: 3px;
  object-fit: cover;
  flex-shrink: 0;
}
.nga-fit-item-count {
  font-size: 11px;
  color: var(--text-muted);
  min-width: 14px;
  text-align: right;
  font-family: var(--font-mono);
}
.nga-fit-item-name {
  color: #ced6e0;
  line-height: 1.3;
}
.nga-fit-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
}
.btn-nga-fit-action {
  background: var(--bg-input);
  border: 1px solid var(--border-col-light);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}
.btn-nga-fit-action:hover {
  background: var(--red-accent);
  border-color: var(--red-accent);
  box-shadow: 0 0 10px rgba(255, 71, 87, 0.4);
}
.btn-fast-track {
  background: linear-gradient(135deg, rgba(255, 165, 2, 0.15) 0%, rgba(255, 71, 87, 0.25) 100%) !important;
  border-color: var(--yellow-accent) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 11.5px !important;
  padding: 9px 8px !important;
}
.btn-fast-track:hover {
  background: linear-gradient(135deg, #ffa502 0%, #ff4757 100%) !important;
  box-shadow: 0 0 14px rgba(255, 165, 2, 0.5) !important;
}

/* Quick Copy Toolbar */
.nga-matrix-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  flex-wrap: wrap;
}
.nga-matrix-quick-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.btn-quick-copy {
  background: var(--bg-input);
  border: 1px solid var(--border-col);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-quick-copy:hover {
  background: var(--bg-card-hover);
  border-color: var(--yellow-accent);
  color: var(--yellow-accent);
  box-shadow: 0 0 8px rgba(255, 165, 2, 0.3);
}

.nga-category-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 8px;
}
.btn-copy-cat-skills {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 11px;
  padding: 2px 4px;
  border-radius: 3px;
  transition: color 0.15s;
}
.btn-copy-cat-skills:hover {
  color: #ffffff;
}
.nga-skill-row:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* ── TDF Full-Width Layout ──────────────────────────────── */
.tdf-logistics-notice {
  background: rgba(45, 52, 54, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #dfe4ea;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 12px;
}
/* ── Live Skill Queue Widget matching user design ───────────────────────── */
.nga-skill-queue-container {
  margin-top: 26px;
  background: var(--bg-card);
  border: 1px solid var(--border-col);
  border-radius: 8px;
  overflow: hidden;
}
.nga-skill-queue-header {
  background: rgba(255, 255, 255, 0.02);
  padding: 10px 18px;
  border-bottom: 1px solid var(--border-col);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: #f0f6fc;
}
.nga-skill-queue-status {
  color: #2ecc71;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nga-skill-queue-row {
  display: flex;
  align-items: center;
  padding: 11px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  gap: 24px;
  font-size: 13px;
  transition: background 0.15s ease;
}
.nga-skill-queue-row:last-child {
  border-bottom: none;
}
.nga-skill-queue-row:hover {
  background: rgba(255, 255, 255, 0.02);
}
.sq-icon {
  font-size: 16px;
  color: var(--text-muted);
}
.sq-date {
  color: #8b949e;
  font-family: var(--font-mono);
  font-size: 12.5px;
  min-width: 170px;
}
.sq-name {
  color: #f0f6fc;
  font-weight: 600;
  font-size: 13.5px;
  flex: 1;
}
.sq-level-badge {
  background: #1f883d;
  color: #ffffff;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 11.5px;
  font-weight: 800;
  font-family: var(--font-mono);
}
.sq-remaining {
  color: var(--text-muted);
  font-size: 12px;
  font-family: var(--font-mono);
  text-align: right;
  min-width: 120px;
}
.nga-skill-queue-row.is-active-training {
  background: rgba(224, 129, 20, 0.08);
  border-left: 3px solid #e08114;
}
.nga-skill-queue-row.is-active-training .sq-name {
  color: #ffffff;
  font-weight: 700;
}
.nga-skill-queue-row.is-active-training .sq-remaining {
  color: #2ecc71;
  font-weight: 700;
}
@media (max-width: 1200px) {
  .nga-matrix-grid-tdf {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .nga-matrix-grid-tdf {
    grid-template-columns: 1fr;
  }
}
.btn-fast-track-pill {
  background: linear-gradient(135deg, rgba(255, 165, 2, 0.15) 0%, rgba(255, 71, 87, 0.25) 100%) !important;
  border-color: var(--yellow-accent) !important;
  color: #ffffff !important;
}
.btn-fast-track-pill:hover {
  background: linear-gradient(135deg, #ffa502 0%, #ff4757 100%) !important;
  box-shadow: 0 0 10px rgba(255, 165, 2, 0.4) !important;
}
.btn-admin-trigger {
  border-color: var(--purple-accent) !important;
  color: var(--purple-accent) !important;
}
.btn-admin-trigger:hover {
  background: var(--purple-accent) !important;
  color: #fff !important;
}

/* ========================================================
   TACTICAL MILITARY SKILL MATRIX (Authentic EVE Online HUD)
   ======================================================== */
.tdf-header-area {
  margin-bottom: 20px;
}

.tdf-skills-title {
  font-size: 20px;
  font-weight: 900;
  color: #f0f6fc;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nga-top-bar-tdf {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.nga-doctrine-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-doctrine-pill {
  background: #121620;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #c9d1d9;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-doctrine-pill:hover {
  background: #1b212f;
  color: #ffffff;
  border-color: rgba(224, 129, 20, 0.5);
  box-shadow: 0 0 10px rgba(224, 129, 20, 0.2);
}

.btn-doctrine-pill.active {
  background: rgba(224, 129, 20, 0.18) !important;
  color: #ffffff !important;
  border-color: #e08114 !important;
  box-shadow: 0 0 14px rgba(224, 129, 20, 0.35) !important;
}

.nga-legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  background: rgba(0, 0, 0, 0.25);
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.nga-legend-title {
  color: #8b949e;
  font-weight: 700;
  margin-right: 2px;
}

.skill-badge-starter {
  background: rgba(255, 71, 87, 0.2);
  color: #ff4757;
  border: 1px solid rgba(255, 71, 87, 0.4);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
}

.skill-badge-basic {
  background: rgba(241, 196, 15, 0.2);
  color: #f1c40f;
  border: 1px solid rgba(241, 196, 15, 0.4);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
}

.skill-badge-elite {
  background: rgba(0, 230, 118, 0.2);
  color: #00e676;
  border: 1px solid rgba(0, 230, 118, 0.4);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
}

.skill-badge-elitegold {
  background: rgba(0, 230, 118, 0.25);
  color: #00e676;
  border: 1px solid #00e676;
  box-shadow: 0 0 8px rgba(0, 230, 118, 0.3);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 900;
}

.tdf-logistics-notice {
  background: rgba(224, 129, 20, 0.12);
  border: 1px solid rgba(224, 129, 20, 0.35);
  color: #e08114;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 6px;
  margin-top: 10px;
}

.nga-matrix-wrapper-tdf {
  background: transparent;
}

/* 4-column responsive grid spanning full width */
.nga-matrix-grid-tdf {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px !important;
  margin-top: 14px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

@media (max-width: 1400px) {
  .nga-matrix-grid-tdf {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .nga-matrix-grid-tdf {
    grid-template-columns: 1fr !important;
  }
}

/* Tactical Category Card */
.tdf-cat-block {
  background: #121622;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.tdf-cat-block:hover {
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.55);
}

.tdf-cat-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #f0f6fc;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.tdf-cat-badge {
  font-size: 11px;
  font-weight: 800;
  font-family: var(--font-mono);
  padding: 2px 8px;
  border-radius: 4px;
}

.tdf-cat-progress {
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 12px;
}

.tdf-cat-progress-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.4s ease;
}

.tdf-cat-skills {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* Skill Item Row */
.tdf-skill-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #161b26;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-left: 3px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  padding: 6px 10px;
  font-size: 12px;
  transition: all 0.15s ease;
  cursor: pointer;
  user-select: none;
  gap: 8px;
}

.tdf-skill-row:hover {
  background: #1f2738;
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateX(2px);
}

.tdf-skill-row.skill-passed {
  border-left-color: #00e676;
}

.tdf-skill-row.skill-in-progress {
  border-left-color: #f1c40f;
}

.tdf-skill-row.skill-missing {
  border-left-color: #ff4757;
}

.tdf-roman-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-size: 10.5px;
  font-weight: 900;
  font-family: var(--font-mono);
  border-radius: 3px;
  flex-shrink: 0;
}

.tdf-roman-badge.lvl-elite {
  background: rgba(0, 230, 118, 0.15);
  color: #00e676;
  border: 1px solid rgba(0, 230, 118, 0.35);
  text-shadow: 0 0 6px rgba(0, 230, 118, 0.4);
}

.tdf-roman-badge.lvl-req {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.tdf-roman-badge.lvl-basic {
  background: rgba(241, 196, 15, 0.15);
  color: #f1c40f;
  border: 1px solid rgba(241, 196, 15, 0.35);
}

.tdf-roman-badge.lvl-zero {
  background: rgba(255, 71, 87, 0.15);
  color: #ff4757;
  border: 1px solid rgba(255, 71, 87, 0.35);
}

.tdf-pips-box {
  display: inline-flex;
  gap: 2px;
  align-items: center;
}

.tdf-pip {
  width: 6px;
  height: 9px;
  border-radius: 1px;
}

.tdf-pip.pip-elite {
  background: #00e676;
  box-shadow: 0 0 3px rgba(0, 230, 118, 0.5);
}

.tdf-pip.pip-req {
  background: #38bdf8;
}

.tdf-pip.pip-mid {
  background: #f1c40f;
}

.tdf-pip.pip-empty {
  background: rgba(255, 255, 255, 0.08);
}

.tdf-skill-name {
  color: #dfe4ea;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 4px;
}

.tdf-badge {
  min-width: 38px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  font-family: var(--font-mono);
  border-radius: 4px;
  color: #ffffff;
  padding: 0 6px;
  flex-shrink: 0;
  letter-spacing: 0.3px;
}

.tdf-badge.tier-elite {
  background: rgba(0, 230, 118, 0.16);
  color: #00e676;
  border: 1px solid rgba(0, 230, 118, 0.45);
  box-shadow: 0 0 6px rgba(0, 230, 118, 0.2);
}

.tdf-badge.tier-basic {
  background: rgba(241, 196, 15, 0.16);
  color: #f1c40f;
  border: 1px solid rgba(241, 196, 15, 0.45);
}

.tdf-badge.tier-gap {
  background: rgba(255, 159, 26, 0.16);
  color: #ff9f1a;
  border: 1px solid rgba(255, 159, 26, 0.45);
}

.tdf-badge.tier-zero {
  background: rgba(255, 71, 87, 0.16);
  color: #ff4757;
  border: 1px solid rgba(255, 71, 87, 0.45);
}

/* ========================================================
   FLEET COMMANDER CONSOLE (МОСТИК FC)
   ======================================================== */
.fc-bridge-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.fc-bridge-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  background: #121620;
  border: 1px solid rgba(224, 129, 20, 0.4);
  border-radius: 8px;
  padding: 16px 20px;
  box-shadow: 0 0 20px rgba(224, 129, 20, 0.15);
}

.fc-subnav-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.fc-subnav-btn {
  background: #121620;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #8b949e;
  padding: 9px 18px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.fc-subnav-btn:hover {
  background: #1a202c;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.fc-subnav-btn.active {
  background: rgba(224, 129, 20, 0.2) !important;
  color: #ffffff !important;
  border-color: #e08114 !important;
  box-shadow: 0 0 12px rgba(224, 129, 20, 0.3) !important;
}

.fc-stat-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

@media (max-width: 1100px) {
  .fc-stat-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .fc-stat-grid-4 {
    grid-template-columns: 1fr;
  }
}

.fc-stat-card {
  background: #121620;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fc-stat-card.green {
  border-color: rgba(0, 230, 118, 0.35);
}

.fc-stat-card.orange {
  border-color: rgba(224, 129, 20, 0.35);
}

.fc-stat-card.blue {
  border-color: rgba(56, 189, 248, 0.35);
}

.fc-stat-card.yellow {
  border-color: rgba(241, 196, 15, 0.35);
}

.fc-stat-label {
  font-size: 11px;
  font-weight: 800;
  color: #8b949e;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fc-stat-value {
  font-size: 26px;
  font-weight: 900;
  font-family: var(--font-mono);
  color: #ffffff;
}

.fc-stat-sub {
  font-size: 11.5px;
  color: #8b949e;
}

.fc-card {
  background: #121620;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.fc-card-title {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 10px;
}

.fc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.fc-table th {
  text-align: left;
  padding: 10px 12px;
  color: #8b949e;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fc-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #e6edf3;
  vertical-align: middle;
}

.fc-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.fc-ship-counter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #161b26;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 8px;
}

.fc-counter-ctrls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fc-btn-counter {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1e2638;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.15s;
}

.fc-btn-counter:hover {
  background: #e08114;
  color: #000000;
  border-color: #e08114;
}

.fc-counter-val {
  font-size: 15px;
  font-weight: 900;
  font-family: var(--font-mono);
  color: #ffffff;
  min-width: 24px;
  text-align: center;
}

/* ========================================================
   GALAXY INCURSION RADAR STYLES
   ======================================================== */
.btn-origin-pill {
  background: var(--bg-input, #121620);
  border: 1px solid var(--border-col, rgba(255, 255, 255, 0.1));
  color: #c9d1d9;
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.18s ease;
  outline: none;
}

.btn-origin-pill:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}

.btn-origin-pill.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(0, 230, 118, 0.15));
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.rotating .refresh-icon,
.refresh-icon.rotating {
  animation: radarSpin 0.8s linear infinite;
  display: inline-block;
}

@keyframes radarSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.btn-action-copy-staging:hover,
.btn-action-copy-system:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
}

.btn-action-eve-waypoint:hover {
  background: #38bdf8 !important;
  color: #000000 !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.5) !important;
}

#btn-jq-open-radar:hover {
  background: #38bdf8 !important;
  color: #000000 !important;
}

/* LP Store Cascading Faction & Corp Selector (Authentic EVE / Discord style) */
.lp-dropdown-wrapper {
  position: relative;
  display: inline-block;
  z-index: 1000;
}

.lp-faction-trigger-btn {
  appearance: none;
  background: rgba(30, 58, 138, 0.45);
  border: 1px solid #3b82f6;
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  justify-content: space-between;
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.35);
  transition: all 0.2s ease;
}

.lp-faction-trigger-btn:hover {
  background: rgba(37, 99, 235, 0.55);
  border-color: #60a5fa;
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.5);
}

.lp-cascading-popover {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #141722;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.85), 0 0 20px rgba(56, 189, 248, 0.15);
  z-index: 9999;
  display: flex;
  overflow: hidden;
  user-select: none;
}

.lp-factions-column {
  width: 240px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 0;
  display: flex;
  flex-direction: column;
  background: #141722;
}

.lp-corps-column {
  min-width: 220px;
  max-width: 300px;
  padding: 6px 0;
  display: flex;
  flex-direction: column;
  background: #0f121b;
}

.lp-faction-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.15s ease;
  gap: 10px;
}

.lp-faction-item:hover,
.lp-faction-item.active {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
}

.lp-faction-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.lp-faction-icon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.lp-faction-chevron {
  font-size: 12px;
  color: #64748b;
  margin-left: auto;
}

.lp-faction-item.active .lp-faction-chevron,
.lp-faction-item:hover .lp-faction-chevron {
  color: #38bdf8;
}

.lp-corp-item {
  display: flex;
  align-items: center;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.15s ease;
  gap: 10px;
}

.lp-corp-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.lp-corp-item.selected {
  color: #38bdf8;
  font-weight: 800;
  background: rgba(56, 189, 248, 0.1);
}

.lp-corp-check {
  width: 16px;
  font-size: 13px;
  color: #38bdf8;
  font-weight: 900;
  display: inline-block;
  flex-shrink: 0;
}

.lp-corp-logo {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

/* ========================================================
   DOCTRINE SHOWCASE CATALOG (Image 2 TDF & NGA Specs)
   ======================================================== */
.doctrine-ship-filters {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 8px 12px;
  background: rgba(14, 18, 26, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}

.doctrine-filters-label {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-right: 4px;
}

.btn-ship-filter,
.btn-fc-ship-filter {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #8b949e;
  padding: 5px 11px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  user-select: none;
}

.btn-ship-filter:hover,
.btn-fc-ship-filter:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-ship-filter.active,
.btn-fc-ship-filter.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
  font-weight: 800;
}

.btn-ship-filter.active.comm-nga,
.btn-fc-ship-filter.active.comm-nga {
  background: rgba(224, 129, 20, 0.15);
  border-color: #e08114;
  color: #e08114;
  box-shadow: 0 0 10px rgba(224, 129, 20, 0.2);
  font-weight: 800;
}

.btn-ship-filter .filter-count,
.btn-fc-ship-filter .filter-count {
  font-size: 10px;
  opacity: 0.75;
  font-family: var(--font-mono);
}

.doctrine-showcase-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.doctrine-section-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.doctrine-ship-groups-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.doctrine-ship-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 10px;
}

.doctrine-ship-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 2px;
}

.doctrine-ship-header.comm-nga {
  border-left-color: transparent;
}

.doctrine-ship-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #e6edf3;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.doctrine-ship-icon {
  font-size: 12px;
}

.doctrine-ship-ru {
  color: #8b949e;
  font-weight: 600;
  font-size: 10.5px;
}

.doctrine-ship-badge-count {
  font-size: 10px;
  font-weight: 700;
  color: #8b949e;
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 7px;
  border-radius: 10px;
}

.doctrine-section-header {
  font-size: 18px;
  font-weight: 700;
  color: #c9d1d9;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.doctrine-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 320px));
  gap: 14px;
}

.doctrine-showcase-card {
  background: #14171f;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  position: relative;
  transition: background 0.15s ease, border-color 0.15s ease;
  user-select: none;
}

.doctrine-showcase-card:hover {
  background: #1a1e28;
  border-color: rgba(255, 255, 255, 0.16);
}

.doctrine-showcase-card.active {
  border-color: #38bdf8;
  background: #171c26;
}

.doctrine-showcase-card.active.comm-nga {
  border-color: #e08114;
  background: #1c1912;
}

.doctrine-thumb-box {
  position: relative;
  width: 68px;
  height: 68px;
  min-width: 68px;
  min-height: 68px;
  background: #0a0d14;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.doctrine-thumb-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  transition: transform 0.2s;
}

.doctrine-showcase-card:hover .doctrine-thumb-img {
  transform: scale(1.05);
}

.doctrine-badge-tier {
  position: absolute;
  top: 2px;
  left: 3px;
  font-size: 10px;
  font-weight: 900;
  color: #ffd32a;
  font-family: var(--font-mono);
  background: rgba(0, 0, 0, 0.7);
  padding: 1px 4px;
  border-radius: 3px;
  border: 1px solid rgba(255, 211, 42, 0.4);
  line-height: 1.1;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.9);
}

.doctrine-badge-diamond {
  position: absolute;
  top: 2px;
  left: 3px;
  font-size: 11px;
  line-height: 1;
  color: #00e676;
  filter: drop-shadow(0 0 3px rgba(0, 230, 118, 0.6));
}

.doctrine-badge-hybrid {
  position: absolute;
  top: 2px;
  right: 3px;
  background: #e74c3c;
  color: #fff;
  font-size: 8.5px;
  font-weight: 900;
  padding: 1px 4px;
  border-radius: 3px;
  line-height: 1;
  box-shadow: 0 0 6px rgba(231, 76, 60, 0.6);
}

.doctrine-badge-info {
  position: absolute;
  top: 2px;
  right: 3px;
  color: #38bdf8;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1;
  background: rgba(0, 0, 0, 0.65);
  padding: 1px 3px;
  border-radius: 3px;
}

.doctrine-card-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.doctrine-card-code {
  font-size: 12.5px;
  font-weight: 800;
  color: #f0f6fc;
  font-family: var(--font-mono);
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.doctrine-card-name {
  font-size: 11px;
  color: #8b949e;
  font-weight: 600;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.doctrine-card-specs {
  font-size: 10.5px;
  color: #38bdf8;
  font-weight: 700;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
}

.doctrine-card-specs .spec-sep {
  opacity: 0.4;
}

.doctrine-card-edit-btn {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
  font-size: 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.doctrine-showcase-card:hover .doctrine-card-edit-btn {
  opacity: 1;
}

.doctrine-card-edit-btn:hover {
  color: var(--text-white);
  border-color: var(--red-accent);
}

.doctrine-fc-tag {
  font-size: 8.5px;
  background: #e08114;
  color: #000;
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 900;
  margin-left: 4px;
}
