.hub-main {
  padding: 26px 0 46px;
}

.hub-shell {
  display: grid;
  gap: 18px;
}

.hub-title-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.hub-kicker {
  margin: 0 0 8px;
  color: var(--highlight);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hub-title-row h1,
.hub-article h1 {
  margin: 0;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.05;
}

.hub-sub {
  margin: 10px 0 0;
  max-width: 76ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.hub-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hub-card,
.hub-panel {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(18,24,38,0.76), rgba(15,20,32,0.76));
  border-radius: 12px;
  padding: 20px;
  backdrop-filter: blur(12px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.hub-card:hover {
  transform: translateY(-4px);
  border-color: rgba(110,168,254,0.4);
  box-shadow: 0 8px 24px -8px rgba(110,168,254,0.2);
}

.hub-card {
  display: grid;
  gap: 12px;
  min-height: 190px;
  position: relative;
  overflow: hidden;
}

.hub-grid.bento {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hub-grid.bento > .bento-main {
  grid-column: 1 / -1;
}

/* Animations */
.hub-animate {
  animation: hubFadeUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.hub-animate:nth-child(2) { animation-delay: 0.1s; }
.hub-animate:nth-child(3) { animation-delay: 0.2s; }
.hub-animate:nth-child(4) { animation-delay: 0.3s; }

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

/* Badges */
.hub-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hub-badge.new { background: rgba(37,211,102,0.12); color: var(--success); border: 1px solid rgba(37,211,102,0.25); }
.hub-badge.alert { background: rgba(255,77,77,0.12); color: var(--danger); border: 1px solid rgba(255,77,77,0.25); }
.hub-badge.info { background: rgba(110,168,254,0.12); color: var(--highlight); border: 1px solid rgba(110,168,254,0.25); }
.hub-badge.muted { background: rgba(255,255,255,0.05); color: var(--text); border: 1px solid var(--border); }

/* Timeline */
.hub-timeline {
  display: grid;
  gap: 20px;
  position: relative;
  padding-left: 24px;
}
.hub-timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, rgba(110,168,254,0.4), rgba(110,168,254,0.05));
}
.hub-timeline-item {
  position: relative;
}
.hub-timeline-item::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 12px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--highlight);
  box-shadow: 0 0 10px rgba(110,168,254,0.4);
}
.hub-timeline-item.alert::before {
  border-color: var(--danger);
  box-shadow: 0 0 10px rgba(255,77,77,0.4);
}

.article-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}
.article-meta strong {
  color: var(--text);
  font-weight: 500;
}

.hub-card h2,
.hub-panel h2,
.hub-panel h3 {
  margin: 0;
}

.hub-card p,
.hub-panel p,
.hub-panel li,
.hub-article p,
.hub-article li {
  color: var(--muted);
  line-height: 1.6;
}

.hub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-self: end;
}

.hub-pill-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hub-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  color: #cfd6e4;
  background: rgba(255,255,255,0.04);
  font-size: 12px;
}

.hub-list {
  margin: 10px 0 0;
  padding-left: 18px;
}

.hub-notice {
  display: grid;
  gap: 10px;
}

.hub-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 8px 0 6px;
}

.hub-category {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  background: rgba(255,255,255,0.035);
  padding: 12px;
}

.hub-category strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 14px;
}

.hub-category p {
  margin: 0;
  font-size: 13px;
}

.hub-meta {
  color: var(--muted);
  font-size: 12px;
}

.hub-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: end;
}

.hub-field {
  display: grid;
  gap: 6px;
}

.hub-field label {
  color: #cfd6e4;
  font-size: 12px;
  font-weight: 700;
}

.hub-field input,
.hub-field select {
  min-height: 40px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  color: var(--text);
  padding: 0 12px;
}

.hub-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.hub-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.hub-table th,
.hub-table td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-align: left;
  vertical-align: top;
}

.hub-table th {
  color: #cfd6e4;
  background: rgba(255,255,255,0.04);
  font-size: 12px;
}

.hub-sort {
  padding: 0;
  min-height: auto;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.hub-sort:hover {
  color: var(--text);
}

.hub-empty {
  padding: 18px;
  color: var(--muted);
}

.hub-pager {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.hub-article {
  display: grid;
  gap: 14px;
}

.hub-callout {
  border-color: rgba(110,168,254,0.28);
  background: rgba(110,168,254,0.10);
}

@media (max-width: 980px) {
  .hub-grid,
  .hub-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hub-toolbar {
    grid-template-columns: 1fr 160px;
  }

  .hub-toolbar .hub-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .hub-grid,
  .hub-grid.two,
  .hub-category-grid {
    grid-template-columns: 1fr;
  }

  .hub-toolbar {
    grid-template-columns: 1fr;
  }

  .hub-title-row h1,
  .hub-article h1 {
    font-size: 28px;
  }
}
