/* ==========================================================================
   17. HUB DANH MỤC GÓI CƯỚC
   Dùng chung ngôn ngữ hình ảnh với trang chủ và trang chi tiết gói.
   ========================================================================== */
.vt-hub-page {
  margin-top: 0 !important;
  padding: 22px 0 48px;
  background: linear-gradient(180deg, #f8fafc 0, #ffffff 340px);
}

.vt-hub-container > .col {
  padding: 0 12px;
}

.vt-hub-breadcrumb {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--vt-text-sub);
}

.vt-hub-breadcrumb a {
  color: var(--vt-text-sub);
  text-decoration: none;
}

.vt-hub-breadcrumb a:hover,
.vt-hub-breadcrumb a:focus-visible {
  color: var(--vt-red);
  text-decoration: underline;
}

.vt-hub-breadcrumb .separator {
  margin: 0 7px;
  opacity: 0.55;
}

.vt-hub-breadcrumb .last {
  color: var(--vt-text-main);
  font-weight: var(--vt-fw-semibold);
}

.vt-hub-hero {
  position: relative;
  overflow: hidden;
  padding: 30px 32px;
  border-radius: var(--vt-radius);
  background: linear-gradient(135deg, var(--vt-red) 0%, var(--vt-red-dark) 72%, #8b001d 100%);
  box-shadow: 0 12px 30px rgba(238, 0, 51, 0.18);
  color: #fff;
}

.vt-hub-hero::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -120px;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.18), rgba(255,255,255,0) 68%);
  pointer-events: none;
}

.vt-hub-eyebrow,
.vt-hub-section-kicker {
  display: inline-block;
  font-size: 11.5px;
  font-weight: var(--vt-fw-extrabold);
  letter-spacing: 0.75px;
  text-transform: uppercase;
}

.vt-hub-eyebrow {
  position: relative;
  z-index: 1;
  margin-bottom: 8px;
  padding: 4px 11px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 20px;
  background: rgba(0,0,0,.14);
  color: #ffe4e6;
}

.vt-hub-title {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0;
  padding: 0;
  background: transparent;
  color: #fff !important;
  font-size: clamp(25px, 3vw, 38px);
  font-weight: var(--vt-fw-black);
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.vt-hub-subtitle {
  position: relative;
  z-index: 1;
  max-width: 790px;
  margin: 12px 0 0;
  color: #ffe4e6;
  font-size: 14.5px;
  line-height: 1.65;
}

.vt-hub-intro {
  margin: 24px 0 34px;
  padding: 24px 28px;
  border: 1px solid var(--vt-border);
  border-radius: var(--vt-radius);
  background: #fff;
  box-shadow: var(--vt-shadow);
}

/* Gỡ kiểu heading đỏ đặc của theme cũ trong nội dung hub. */
.vt-hub-intro h2,
.vt-hub-intro h3 {
  display: block !important;
  width: auto;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--vt-text-main) !important;
}

.vt-hub-intro h2 {
  margin: 28px 0 12px;
  padding-bottom: 9px !important;
  border-bottom: 3px solid var(--vt-red) !important;
  font-size: 21px !important;
  line-height: 1.35;
}

.vt-hub-intro h2:first-child {
  margin-top: 0;
}

.vt-hub-intro h3 {
  margin: 20px 0 8px;
  color: var(--vt-red-dark) !important;
  font-size: 17px !important;
  line-height: 1.4;
}

.vt-hub-intro #toc_container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: none;
}

.vt-hub-intro table {
  border-radius: 10px;
  overflow: hidden;
}

.vt-hub-packages {
  margin-top: 28px;
}

.vt-hub-filter-form {
  display: grid;
  grid-template-columns: minmax(220px, 1.8fr) minmax(160px, 1fr) minmax(160px, 1fr) auto;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 14px;
  padding: 16px 18px;
  border: 1px solid #e2e8f0;
  border-radius: var(--vt-radius, 12px);
  background: #ffffff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
}

.vt-hub-filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  width: 100%;
}

.vt-hub-filter-label {
  display: block;
  color: var(--vt-text-main, #1e293b);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.vt-hub-filter-spacer {
  visibility: hidden;
  user-select: none;
}

.vt-hub-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.vt-hub-input-wrap .vt-hub-input-icon {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: #94a3b8;
  pointer-events: none;
  transition: color 0.2s ease;
}

.vt-hub-filter-field input[type="search"],
.vt-hub-filter-field input[type="text"],
.vt-hub-filter-field select {
  width: 100%;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  background: #ffffff;
  color: var(--vt-text-main, #1e293b);
  font-size: 14px;
  line-height: 42px;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.vt-hub-input-wrap input[type="search"],
.vt-hub-input-wrap input[type="text"] {
  padding-left: 36px !important;
}

.vt-hub-filter-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  padding-right: 32px;
  cursor: pointer;
}

.vt-hub-filter-field input:focus,
.vt-hub-filter-field select:focus {
  border-color: var(--vt-red, #ee0033);
  outline: none;
  box-shadow: 0 0 0 3px rgba(238, 0, 51, 0.12);
}

.vt-hub-input-wrap:focus-within .vt-hub-input-icon {
  color: var(--vt-red, #ee0033);
}

.vt-hub-filter-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  min-height: 44px;
}

button.vt-hub-filter-submit,
.vt-hub-filter-submit {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 20px !important;
  border: none !important;
  border-radius: 9px !important;
  background: linear-gradient(135deg, var(--vt-red, #ee0033) 0%, #c9002b 100%) !important;
  background-color: var(--vt-red, #ee0033) !important;
  color: #ffffff !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  box-shadow: 0 4px 12px rgba(238, 0, 51, 0.28) !important;
  transition: all 0.2s ease !important;
}

button.vt-hub-filter-submit:hover,
.vt-hub-filter-submit:hover {
  background: linear-gradient(135deg, #d6002c 0%, #b80026 100%) !important;
  background-color: #d6002c !important;
  box-shadow: 0 6px 18px rgba(238, 0, 51, 0.38) !important;
  transform: translateY(-1px);
}

button.vt-hub-filter-submit:active,
.vt-hub-filter-submit:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(238, 0, 51, 0.2) !important;
}

.vt-hub-btn-icon {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  flex-shrink: 0;
}

.vt-hub-filter-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 44px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  background: #f8fafc;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.vt-hub-filter-reset:hover {
  border-color: #fca5a5;
  background: #fff1f2;
  color: var(--vt-red, #ee0033);
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(238, 0, 51, 0.12);
  transform: translateY(-1px);
}

.vt-hub-result-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 10px;
  margin-bottom: 12px;
  color: var(--vt-text-sub);
  font-size: 13px;
}

.vt-hub-result-bar strong {
  color: var(--vt-text-main);
}

.vt-hub-status-summary {
  margin-left: auto;
  color: #475569;
}

.vt-hub-comparison {
  margin: 0 0 16px;
  border: 1px solid var(--vt-border);
  border-radius: 10px;
  background: #fff;
}

.vt-hub-comparison > summary {
  padding: 12px 14px;
  color: var(--vt-red-dark);
  font-size: 13px;
  font-weight: var(--vt-fw-bold);
  cursor: pointer;
}

.vt-hub-table-scroll {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.vt-hub-comparison-table {
  width: 100%;
  min-width: 720px;
  margin: 0;
  border-collapse: collapse;
  font-size: 13px;
}

.vt-hub-comparison-table th,
.vt-hub-comparison-table td {
  padding: 10px;
  border: 1px solid var(--vt-border);
  text-align: left;
  vertical-align: top;
}

.vt-hub-comparison-table thead th {
  background: #f8fafc;
  color: var(--vt-text-main);
}

.vt-table-status {
  display: inline-block;
  padding: 3px 7px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 11px;
  font-weight: var(--vt-fw-bold);
  white-space: nowrap;
}

.vt-table-status.is-active { color: #08783e; }
.vt-table-status.is-unknown { color: #8a5a00; }
.vt-table-status.is-stopped { color: #64748b; }

.vt-table-action,
.vt-btn-status-detail {
  color: var(--vt-red-dark);
  font-weight: var(--vt-fw-bold);
  text-decoration: underline;
}

.vt-hub-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}

.vt-hub-section-kicker {
  color: var(--vt-red);
}

.vt-hub-section-head h2 {
  display: block !important;
  margin: 4px 0 0;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--vt-text-main) !important;
  font-size: 25px !important;
  line-height: 1.3;
}

.vt-hub-section-head p {
  max-width: 470px;
  margin: 0;
  color: var(--vt-text-sub);
  font-size: 13.5px;
  text-align: right;
}

.vt-hub-package-browser {
  margin: 0;
}

.vt-hub-package-browser .vt-tab-panel {
  padding-top: 4px;
}

.vt-hub-cards-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.vt-hub-card .vt-card-name-title {
  display: block !important;
  width: auto;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #c6002b !important;
  font-size: 22px !important;
  line-height: 1.25;
}

.badge-stopped {
  background: #fff3cd;
  color: #8a5a00;
}

.badge-active {
  background: #dcfce7;
  color: #08783e;
}

.badge-unknown {
  border: 1px solid #d69e2e;
  background: #fff8e1;
  color: #7a4f00;
}

.vt-card.is-stopped {
  border-color: #e5e7eb;
  background: #f8fafc;
  box-shadow: none;
}

.vt-card.is-stopped:hover {
  transform: none;
  border-color: #d1d5db;
  box-shadow: 0 6px 16px rgba(15,23,42,.06);
}

.vt-card.is-stopped .vt-card-data-highlight {
  border-left-color: #94a3b8;
  background: #f1f5f9;
}

.vt-card.is-stopped .vt-data-primary,
.vt-card.is-stopped .vt-card-name-title {
  color: #64748b !important;
}

.vt-card.is-unknown {
  border-style: dashed;
  border-color: #d69e2e;
  background: #fffdf7;
}

.vt-card-status-note,
.vt-card-stopped-note {
  margin-top: auto;
  padding: 9px 10px;
  border: 1px solid #f3d48a;
  border-radius: var(--vt-radius-sm);
  background: #fff8e6;
  color: #8a5a00;
  font-size: 12px;
  font-weight: var(--vt-fw-bold);
  text-align: center;
}

.vt-card.is-unknown .vt-card-status-note {
  border-color: #d69e2e;
  background: #fff8e1;
}

.vt-hub-intro table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  white-space: normal;
}

.vt-hub-pagination {
  margin: 28px 0 0;
}

.vt-hub-pagination-list,
.vt-hub-pagination ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vt-hub-pagination a,
.vt-hub-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid var(--vt-border);
  border-radius: 9px;
  background: #fff;
  color: var(--vt-text-main);
  font-size: 13px;
  font-weight: var(--vt-fw-bold);
}

.vt-hub-pagination a:hover,
.vt-hub-pagination .current {
  border-color: var(--vt-red);
  background: var(--vt-red);
  color: #fff;
}

.vt-hub-empty {
  padding: 24px;
  border: 1px dashed var(--vt-border);
  border-radius: var(--vt-radius);
  background: #fff;
  text-align: center;
}

@media (max-width: 1024px) {
  .vt-hub-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 12px;
  }

  .vt-hub-filter-search {
    grid-column: 1 / -1;
  }

  .vt-hub-filter-actions-field {
    grid-column: 1 / -1;
  }

  .vt-hub-filter-spacer {
    display: none;
  }

  .vt-hub-filter-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .vt-hub-cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .vt-hub-page {
    padding: 14px 0 34px;
  }

  .vt-hub-container > .col {
    padding: 0 10px;
  }

  .vt-hub-hero {
    padding: 23px 20px;
  }

  .vt-hub-title {
    font-size: 25px;
  }

  .vt-hub-subtitle {
    font-size: 13.5px;
  }

  .vt-hub-intro {
    margin: 26px 0 16px;
    padding: 18px 15px;
  }

  .vt-hub-intro h2 {
    font-size: 18px !important;
  }

  .vt-hub-intro h3 {
    font-size: 16px !important;
  }

  .vt-hub-section-head {
    display: block;
  }

  .vt-hub-section-head h2 {
    font-size: 21px !important;
  }

  .vt-hub-section-head p {
    margin-top: 7px;
    text-align: left;
  }

  .vt-hub-packages {
    margin-top: 18px;
  }

  .vt-hub-filter-form {
    display: flex;
    flex-direction: column;
    align-items: stretch !important;
    gap: 12px;
    margin-top: 0;
    padding: 14px;
    border-radius: 12px;
  }

  .vt-hub-filter-field {
    width: 100% !important;
    align-items: stretch !important;
  }

  .vt-hub-filter-search {
    order: 0;
  }

  .vt-hub-filter-spacer {
    display: none !important;
  }

  .vt-hub-filter-actions-field {
    width: 100% !important;
    margin-top: 4px;
  }

  .vt-hub-filter-actions {
    display: flex;
    width: 100%;
    gap: 10px;
    height: auto;
    min-height: 46px;
  }

  button.vt-hub-filter-submit,
  .vt-hub-filter-submit {
    flex: 1 1 auto;
    width: 100%;
    height: 46px !important;
    min-height: 46px !important;
    font-size: 14.5px !important;
  }

  .vt-hub-filter-reset {
    flex: 0 0 auto;
    height: 46px;
    min-height: 46px;
    padding: 0 16px;
    font-size: 13.5px;
  }

  .vt-hub-status-summary {
    width: 100%;
    margin-left: 0;
  }

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

  .vt-hub-card .vt-card-name-title {
    font-size: 17px !important;
    padding: 0 !important;
  }

  .vt-hub-package-browser .vt-smart-filter-bar {
    align-items: stretch;
  }

  .vt-hub-package-browser .vt-live-search-mini {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .vt-hub-cards-grid {
    grid-template-columns: 1fr;
  }
}
