/* TechnoPkg final navigation cleanup - generated patch */
:root {
  --tp-nav-bg: #07111f;
  --tp-nav-panel: #0b1728;
  --tp-nav-border: rgba(148, 163, 184, 0.24);
  --tp-nav-text: #eef5ff;
  --tp-nav-muted: #9db4d0;
  --tp-nav-accent: #7c3aed;
}

.tp-final-header {
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(180deg, #0b1728 0%, #07111f 100%);
  border-bottom: 1px solid var(--tp-nav-border);
  color: var(--tp-nav-text);
  position: relative;
  z-index: 9999;
}

.tp-final-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 24px;
  box-sizing: border-box;
}

.tp-final-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-decoration: none;
  color: var(--tp-nav-text);
  font-weight: 800;
  letter-spacing: -0.02em;
  min-width: 170px;
}

.tp-final-brand span:first-child {
  font-size: 20px;
}

.tp-final-brand span:last-child {
  font-size: 11px;
  font-weight: 600;
  color: var(--tp-nav-muted);
  letter-spacing: 0.02em;
  margin-top: 3px;
}

.tp-final-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.tp-final-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--tp-nav-border);
  color: var(--tp-nav-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.65);
}

.tp-final-links a:hover,
.tp-final-links a.tp-active {
  background: var(--tp-nav-accent);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.tp-final-hidden-by-cleanup {
  display: none !important;
}

.tp-final-erp-subnav {
  display: none;
  background: #0d182a;
  border-bottom: 1px solid var(--tp-nav-border);
  padding: 10px 18px;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

body.tp-is-erp-area .tp-final-erp-subnav {
  display: flex;
}

.tp-final-erp-subnav strong {
  margin-right: 8px;
  color: var(--tp-nav-text);
}

.tp-final-erp-subnav a {
  color: var(--tp-nav-text);
  border: 1px solid var(--tp-nav-border);
  border-radius: 999px;
  padding: 7px 11px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.65);
}

.tp-final-erp-subnav a:hover {
  background: #fff;
  color: #0f172a;
}

/* Prevent stacked header/nav spacing after hidden rows */
.tp-final-hidden-by-cleanup + .tp-final-hidden-by-cleanup {
  margin: 0 !important;
  padding: 0 !important;
}

/* Keep home category cards compact and professional */
.tp-category-cards,
.portal-category-cards,
.category-cards,
.explore-category-cards {
  margin-top: 18px;
}

@media (max-width: 860px) {
  .tp-final-header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 16px;
  }
  .tp-final-links {
    justify-content: flex-start;
  }
  .tp-final-links a {
    font-size: 12px;
    padding: 6px 10px;
  }
}
