.ams-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, #161b22 0%, #0d1117 100%);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
  padding: 0.75rem 1rem;
}

.header-container {
  max-width: 1380px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .header-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.brand-zone {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  border-radius: 8px;
  object-fit: cover;
}

.brand-meta {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: #fff;
}

.brand-status {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--status-pulse);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.search-pill-wrapper input {
  width: 100%;
  background: #05070b;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 0.6rem 1.2rem;
  color: var(--text-main);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-pill-wrapper input:focus {
  border-color: #00E5FF;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

@media (min-width: 768px) {
  .search-pill-wrapper input {
    width: 320px;
  }
}

.main-content {
  max-width: 1380px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.satellites-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

@media (min-width: 640px) {
  .satellites-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .satellites-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.direct-b2b-zones {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .direct-b2b-zones {
    grid-template-columns: 1fr 1fr;
  }
}

.corporate-footer {
  background: #030407;
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 1rem 1.5rem;
  margin-top: 3rem;
}

.footer-columns {
  max-width: 1380px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-columns {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-bottom {
  max-width: 1380px;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   CANÔNICO AMS: ARQUITETURA PRINCIPAL WIDESCREEN (3 COLUNAS COCKPIT)
   FÍSICA ESTRUTURAL HOMOLOGADA AGÊNCIA SKYNET
   ========================================================================== */
html, body {
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
}

.gsc-widescreen-layout {
  height: calc(100vh - 72px);
  max-height: calc(100vh - 72px);
  width: 100vw;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 1.5rem;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 300px;
  gap: 1.5rem;
  overflow: hidden;
  align-items: stretch;
  flex: 1;
}

/* 1. Coluna Esquerda (Menu & Governança) - Sticky & Travada */
.gsc-sidebar-left {
  height: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  position: sticky;
  top: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: 0.75rem;
  box-sizing: border-box;
}

.gsc-sidebar-left::-webkit-scrollbar {
  display: none;
}

.sidebar-menu-card {
  background: var(--ams-card-bg, #0B0F17);
  border: 1px solid var(--ams-border, #1F293D);
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.category-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-right: 4px;
}

.category-nav-list::-webkit-scrollbar {
  display: none;
}

.sidebar-governance-seal {
  background: var(--ams-card-bg, #0B0F17);
  border: 1px solid rgba(0, 255, 163, 0.25);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, rgba(0, 255, 163, 0.06), rgba(0, 229, 255, 0.06));
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 0.75rem;
  box-sizing: border-box;
}

/* 2. Coluna Central (Conteúdo, Banners & Cards) - A ÚNICA QUE ROLA */
.gsc-feed-center {
  height: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--ams-cyan, #00E5FF) rgba(6, 8, 12, 0.7);
  padding-right: 8px;
  box-sizing: border-box;
}

.gsc-feed-center::-webkit-scrollbar {
  width: 6px;
}

.gsc-feed-center::-webkit-scrollbar-track {
  background: rgba(6, 8, 12, 0.7);
  border-radius: 4px;
}

.gsc-feed-center::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--ams-cyan, #00E5FF), var(--ams-green, #00FFA3));
  border-radius: 4px;
}

.gsc-feed-center::-webkit-scrollbar-thumb:hover {
  background: var(--ams-cyan, #00E5FF);
}

/* 3. Coluna Direita (Telemetria & AdSense) - Sticky & Travada */
.gsc-sidebar-right {
  height: 100%;
  max-height: 100%;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  box-sizing: border-box;
}

.gsc-sidebar-right::-webkit-scrollbar {
  display: none;
}

/* 4. Responsividade Mobile (< 1024px) */
@media (max-width: 1200px) {
  .gsc-widescreen-layout {
    grid-template-columns: 240px minmax(0, 1fr) 280px;
    gap: 1.25rem;
    padding: 0.75rem 1rem;
  }
}

@media (max-width: 1024px) {
  html, body {
    height: auto;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
  }
  .gsc-widescreen-layout {
    height: auto;
    min-height: calc(100vh - 72px);
    max-height: none;
    grid-template-columns: 1fr;
    overflow: visible;
    padding: 1rem;
    gap: 1.5rem;
  }
  .gsc-sidebar-left,
  .gsc-feed-center,
  .gsc-sidebar-right {
    height: auto;
    max-height: none;
    overflow: visible;
    position: static;
    padding-right: 0;
  }
  .sidebar-menu-card {
    flex: none;
  }
  .category-nav-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.5rem;
    overflow-y: visible;
  }
  .gsc-sidebar-right {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
  }
}
