/* Giao diện riêng của Tiệm Số Hùng Hiền Hòa (store.hunghienhoa.com)
   Thừa hưởng biến màu --cream, --blue, --yellow, phông chữ từ /ui.css.
   Tối ưu đặc biệt cho điện thoại: gọn chiều dọc, vuốt ngang bộ lọc, thẻ sản phẩm cô đọng, hộp thoại bottom-sheet. */

.store-hero {
  width: min(var(--wrap), 100%);
  margin: 0 auto;
  padding: clamp(28px, 4.5vw, 64px) var(--gutter) clamp(12px, 2vw, 24px);
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.92fr);
  gap: clamp(22px, 4vw, 52px);
  align-items: center;
}

.store-hero-copy h1 {
  margin-bottom: 16px;
}

.store-hero-lead {
  max-width: 52ch;
  font-size: clamp(15.5px, 1.25vw, 18px);
  line-height: 1.62;
  opacity: 0.92;
}

.store-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.store-trust-pills {
  margin-top: 18px;
}

.store-showcase {
  position: relative;
  padding: clamp(18px, 2.6vw, 28px);
  border-radius: 30px;
  border: 1.5px solid var(--hh-hair);
  background: var(--hh-card);
  box-shadow: var(--hh-shadow);
  display: grid;
  gap: 14px;
}

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

.showcase-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--mint) 24%, var(--cream));
  font-size: 12px;
  font-weight: 700;
}

.showcase-status::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1f8b5c;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.showcase-tile {
  padding: 13px 15px;
  border-radius: 18px;
  border: 1px solid var(--hh-hair);
  background: var(--cream);
  display: grid;
  gap: 3px;
}

.showcase-tile small {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  opacity: 0.72;
}

.showcase-tile b {
  font-size: 15px;
  line-height: 1.3;
}

.showcase-legal-banner {
  padding: 12px 15px;
  border-radius: 18px;
  background: var(--blue);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  line-height: 1.45;
}

.showcase-legal-banner b {
  color: var(--yellow);
  display: block;
  margin-bottom: 2px;
  font-size: 13px;
}

.showcase-legal-banner a {
  flex: none;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--blue);
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
}

/* Bộ lọc & thanh tìm kiếm danh mục */
.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  margin-bottom: 24px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1.5px solid var(--hh-hair);
  background: var(--hh-card);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.filter-pill:hover {
  border-color: var(--blue);
}

.filter-pill[aria-pressed="true"] {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--cream);
}

.catalog-search {
  flex: 1 1 250px;
  max-width: 340px;
}

/* Lưới thẻ sản phẩm số */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 24px);
}

.product-card {
  display: flex;
  flex-direction: column;
  border: 1.5px solid var(--hh-hair);
  border-radius: 26px;
  background: var(--hh-card);
  box-shadow: var(--hh-shadow-sm);
  overflow: hidden;
}

.product-art {
  position: relative;
  height: 142px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-bottom: 1px solid var(--hh-hair);
  background: color-mix(in srgb, var(--yellow) 18%, var(--cream));
  overflow: hidden;
}

.product-art[data-theme="blueprint"] {
  background:
    linear-gradient(color-mix(in srgb, var(--blue) 9%, transparent) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(90deg, color-mix(in srgb, var(--blue) 9%, transparent) 1px, transparent 1px) 0 0 / 20px 20px,
    color-mix(in srgb, var(--blue) 8%, var(--cream));
}

.product-art[data-theme="spark"] {
  background: radial-gradient(circle at 82% 24%, color-mix(in srgb, var(--yellow) 72%, transparent), transparent 56%), var(--cream);
}

.product-art[data-theme="terminal"] {
  background: var(--blue);
  color: var(--cream);
}

.product-art[data-theme="academy"] {
  background: linear-gradient(135deg, color-mix(in srgb, var(--yellow) 36%, var(--cream)), var(--cream));
}

.product-art[data-theme="toolkit"] {
  background:
    radial-gradient(circle at 18% 80%, color-mix(in srgb, var(--yellow) 52%, transparent), transparent 50%),
    color-mix(in srgb, var(--blue) 11%, var(--cream));
}

.product-art-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.cat-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--blue);
  border: 1px solid var(--hh-hair);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.ribbon-tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
}

.bookmark-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--hh-hair);
  background: var(--cream);
  color: var(--blue);
  display: grid;
  place-items: center;
}

.bookmark-btn.is-saved {
  background: var(--yellow);
  border-color: var(--blue);
}

.product-art-glyph {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.product-version {
  font-size: 12px;
  font-weight: 700;
  opacity: 0.85;
}

.product-code-chip {
  padding: 5px 11px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--cream) 88%, #fff);
  color: var(--blue);
  border: 1px solid var(--hh-hair);
  font-size: 11.5px;
  font-weight: 700;
}

.product-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.product-body h3 {
  font-size: 19px;
  line-height: 1.28;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-summary {
  font-size: 14.5px;
  line-height: 1.55;
  opacity: 0.88;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.product-highlights {
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
}

.product-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
}

.product-highlights li::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 1.5px var(--blue);
}

.product-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--hh-hair);
  display: grid;
  gap: 10px;
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.price-main {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.price-free {
  color: #166f48;
}

.price-compare {
  margin-left: 7px;
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: line-through;
  opacity: 0.56;
}

.license-pill {
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--hh-soft);
}

.card-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: 8px;
}

.card-actions .btn {
  min-height: 42px;
  padding: 0 12px;
  font-size: 13.5px;
}

/* Khu vực Kho cá nhân, Lịch sử đơn, Sổ tay đám mây & Quản trị */
.hub-shell {
  border: 1.5px solid var(--hh-hair);
  border-radius: 30px;
  background: var(--hh-card);
  box-shadow: var(--hh-shadow-sm);
  padding: clamp(18px, 3vw, 34px);
}

.hub-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--hh-hair);
}

.hub-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1.5px solid var(--hh-hair);
  background: var(--cream);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}

.hub-tab[aria-selected="true"] {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--cream);
}

.hub-tab.admin-tab {
  border-color: var(--blue);
  background: color-mix(in srgb, var(--yellow) 45%, var(--cream));
}

.hub-tab.admin-tab[aria-selected="true"] {
  background: var(--blue);
  color: var(--yellow);
}

.guest-gate {
  text-align: center;
  padding: clamp(22px, 3.5vw, 40px) 12px;
  display: grid;
  justify-items: center;
  gap: 12px;
}

.guest-gate p {
  max-width: 48ch;
  font-size: 14.5px;
  opacity: 0.88;
}

.vault-list,
.orders-list,
.notes-grid {
  display: grid;
  gap: 14px;
}

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

.vault-item,
.order-item,
.note-card {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--hh-hair);
  background: var(--cream);
  display: grid;
  gap: 12px;
}

.vault-item-head,
.order-item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.license-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 13px;
  background: var(--hh-card);
  border: 1px dashed var(--hh-hair);
  font-size: 13px;
}

.license-box code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-weight: 700;
  font-size: 13.5px;
}

/* Ngăn thu gọn cho Dữ liệu lưu riêng theo từng sản phẩm */
details.vault-drawer {
  border-top: 1px solid var(--hh-hair);
  padding-top: 10px;
}

details.vault-drawer > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  list-style: none;
  font-size: 13.5px;
  font-weight: 700;
  padding: 4px 0;
}

details.vault-drawer > summary::-webkit-details-marker {
  display: none;
}

details.vault-drawer > summary::after {
  content: '+';
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--hh-hair);
  background: var(--hh-card);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 15px;
  flex: none;
}

details.vault-drawer[open] > summary::after {
  content: '−';
}

.vault-workspace {
  padding-top: 12px;
  display: grid;
  gap: 12px;
}

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

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
}

.status-paid {
  background: color-mix(in srgb, var(--mint) 32%, var(--cream));
  color: #135d3b;
}

.status-pending {
  background: color-mix(in srgb, var(--yellow) 52%, var(--cream));
  color: var(--blue);
}

.status-expired,
.status-cancelled,
.status-refunded {
  background: var(--hh-soft);
  opacity: 0.8;
}

/* Quy trình 4 bước */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.step-card {
  padding: 20px;
  border-radius: 24px;
  border: 1px solid var(--hh-hair);
  background: var(--hh-card);
  display: grid;
  gap: 8px;
  align-content: start;
}

.step-card h3 {
  font-size: 17px;
}

.step-card p {
  font-size: 14px;
  line-height: 1.55;
  opacity: 0.88;
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--yellow);
  font-weight: 800;
  font-size: 14px;
  display: grid;
  place-items: center;
}

/* Hộp thoại đăng nhập, chi tiết sản phẩm, VietQR & biên nhận */
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.icon-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--hh-hair);
  background: var(--cream);
  display: grid;
  place-items: center;
  flex: none;
}

.auth-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.form-stack {
  display: grid;
  gap: 12px;
}

.status-msg {
  padding: 9px 13px;
  border-radius: 13px;
  background: var(--hh-soft);
  font-size: 13.5px;
  font-weight: 500;
}

.status-msg:empty {
  display: none;
}

.status-msg.is-error {
  background: color-mix(in srgb, var(--coral) 18%, var(--cream));
  color: #9e2a1b;
}

.status-msg.is-ok {
  background: color-mix(in srgb, var(--mint) 28%, var(--cream));
  color: #145e3d;
}

.legal-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1.5px solid var(--hh-hair);
  background: var(--cream);
  font-size: 13px;
  line-height: 1.5;
}

.legal-check input {
  flex: none;
  margin-top: 2px;
}

.legal-check a {
  text-decoration: underline;
  font-weight: 700;
}

.qr-layout {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.qr-frame {
  padding: 12px;
  border-radius: 20px;
  border: 1.5px solid var(--hh-hair);
  background: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 6px;
}

.qr-frame img {
  width: 100%;
  max-width: 196px;
  height: auto;
  border-radius: 8px;
}

.bank-table {
  display: grid;
  gap: 8px;
}

.bank-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--cream);
  border: 1px solid var(--hh-hair);
  font-size: 13.5px;
}

.copy-mini {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--yellow);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.md-prose {
  display: grid;
  gap: 8px;
  font-size: 14.5px;
  line-height: 1.64;
}

.md-prose h2,
.md-prose h3 {
  margin-top: 6px;
  font-size: 17px;
}

.md-prose ul,
.md-prose ol {
  margin: 0;
  padding-left: 1.3em;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.spec-box {
  padding: 9px 11px;
  border-radius: 13px;
  background: var(--cream);
  border: 1px solid var(--hh-hair);
  font-size: 12.5px;
}

.spec-box small {
  display: block;
  font-size: 10.5px;
  opacity: 0.72;
  text-transform: uppercase;
  font-weight: 700;
}

/* Khu vực Quản trị Store dành riêng cho Hùng */
.admin-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.kpi-box {
  padding: 14px;
  border-radius: 18px;
  background: var(--cream);
  border: 1px solid var(--hh-hair);
}

.kpi-box small {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  opacity: 0.75;
}

.kpi-box b {
  display: block;
  margin-top: 3px;
  font-size: 20px;
  font-weight: 800;
}

.admin-grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-card {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--hh-hair);
  background: var(--cream);
  display: grid;
  gap: 12px;
  align-content: start;
}

.coupon-bar {
  display: flex;
  gap: 8px;
  align-items: center;
}

.receipt-box {
  padding: 16px;
  border-radius: 18px;
  border: 1.5px solid var(--blue);
  background: #fff;
  display: grid;
  gap: 8px;
  font-size: 13.5px;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 7px;
  border-bottom: 1px dashed var(--hh-hair);
}

@media (max-width: 980px) {
  .store-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .steps-grid,
  .admin-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-grid-two,
  .workspace-grid,
  .notes-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   TỐI ƯU CHUYÊN BIỆT CHO ĐIỆN THOẠI (<= 640px): GỌN DỌC, LƯỚT NHANH, ĐÚNG TẦM NGÓN CÁI
   ========================================================================== */
@media (max-width: 640px) {
  .section {
    padding-top: 42px;
  }

  .head {
    gap: 8px;
    margin-bottom: 16px;
  }

  .head > p {
    font-size: 14.5px;
    line-height: 1.5;
  }

  /* 1. Hero gọn gàng, 2 nút chính xếp ngang, ẩn danh sách dài lặp lại */
  .store-hero {
    padding-top: 14px;
    padding-bottom: 14px;
    gap: 16px;
  }

  .store-hero-copy h1 {
    margin-bottom: 10px;
  }

  .store-hero-lead {
    font-size: 15px;
    line-height: 1.55;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
  }

  .store-hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 16px;
  }

  .store-hero-actions .btn {
    min-height: 44px;
    padding: 0 12px;
    font-size: 13.5px;
  }

  .store-hero-actions .btn:nth-child(3) {
    grid-column: 1 / -1;
    min-height: 40px;
  }

  .store-trust-pills {
    margin-top: 12px;
    gap: 5px 12px;
    font-size: 12.5px;
  }

  /* Khung Showcase giữ lưới 2x2 gọn thay vì xếp chồng 4 khối cao */
  .store-showcase {
    padding: 14px;
    border-radius: 22px;
    gap: 10px;
  }

  .showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .showcase-tile {
    padding: 10px 11px;
    border-radius: 14px;
  }

  .showcase-tile small {
    font-size: 10px;
  }

  .showcase-tile b {
    font-size: 13.5px;
  }

  .showcase-legal-banner {
    padding: 10px 12px;
    border-radius: 14px;
    gap: 10px;
  }

  .showcase-legal-banner span {
    display: none;
  }

  .showcase-legal-banner b {
    margin: 0;
    font-size: 12.5px;
  }

  /* 2. Thanh tìm kiếm đặt trên, dải bộ lọc vuốt ngang 1 hàng mượt mà */
  .catalog-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 16px;
  }

  .catalog-search {
    flex: none;
    max-width: none;
    order: -1;
  }

  .catalog-search input {
    min-height: 44px;
    padding: 9px 14px;
  }

  #category-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    padding-bottom: 2px;
    gap: 6px;
  }

  #category-filters::-webkit-scrollbar {
    display: none;
  }

  #category-filters .filter-pill {
    flex: none;
    min-height: 36px;
    padding: 0 13px;
    font-size: 13px;
  }

  /* 3. Thẻ sản phẩm cô đọng kiểu App Store (giảm ~60% chiều cao mỗi thẻ) */
  .product-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .product-card {
    border-radius: 22px;
  }

  .product-art {
    height: auto;
    padding: 10px 14px;
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .product-art-glyph {
    display: none;
  }

  .product-art-head {
    width: 100%;
  }

  .bookmark-btn {
    width: 30px;
    height: 30px;
  }

  .product-body {
    padding: 12px 14px 14px;
    gap: 8px;
  }

  .product-body h3 {
    font-size: 17px;
    line-height: 1.28;
  }

  .product-summary {
    font-size: 13.5px;
    line-height: 1.48;
    -webkit-line-clamp: 2;
  }

  /* Ẩn 3 dòng gạch đầu dòng ngoài thẻ mobile (bấm Chi tiết vẫn xem đủ) */
  .product-highlights {
    display: none;
  }

  .product-foot {
    padding-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .price-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .price-main {
    font-size: 18px;
  }

  .price-compare {
    margin-left: 0;
    font-size: 11.5px;
  }

  .license-pill {
    display: none;
  }

  .card-actions {
    display: flex;
    gap: 6px;
    flex: none;
  }

  .card-actions .btn {
    min-height: 38px;
    padding: 0 13px;
    font-size: 13px;
  }

  /* 4. Tủ đồ cá nhân: dải tab vuốt ngang 1 dòng, thẻ kho gọn */
  .hub-shell {
    padding: 14px;
    border-radius: 22px;
  }

  .hub-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin-inline: -14px;
    padding: 0 14px 12px;
    margin-bottom: 14px;
    gap: 6px;
  }

  .hub-tabs::-webkit-scrollbar {
    display: none;
  }

  .hub-tab {
    flex: none;
    min-height: 38px;
    padding: 0 13px;
    font-size: 13px;
  }

  .vault-item,
  .order-item,
  .note-card,
  .admin-card {
    padding: 14px;
    border-radius: 18px;
    gap: 10px;
  }

  /* 5. Quy trình 4 bước xếp lưới 2x2 gọn mắt thay vì 4 thẻ dọc dài */
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .step-card {
    padding: 14px;
    border-radius: 18px;
    gap: 6px;
  }

  .step-num {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .step-card h3 {
    font-size: 14.5px;
    line-height: 1.25;
  }

  .step-card p {
    font-size: 12.5px;
    line-height: 1.45;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
  }

  /* FAQ gọn chiều cao trên điện thoại */
  details.faq-item > summary {
    min-height: 50px;
    padding: 11px 0;
    font-size: 15px;
  }

  details.faq-item > p {
    font-size: 14px;
    padding-bottom: 14px;
  }

  /* 6. Hộp thoại dạng Bottom-Sheet hiện đại trên điện thoại */
  dialog {
    width: 100%;
    max-width: 100%;
    max-height: 90dvh;
    margin: auto 0 0;
    padding: 18px 15px calc(18px + env(safe-area-inset-bottom, 0px));
    border-radius: 26px 26px 0 0;
  }

  .specs-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .spec-box {
    padding: 7px 8px;
    font-size: 11.5px;
  }

  .qr-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .qr-frame {
    padding: 10px;
  }

  .qr-frame img {
    max-width: 164px;
  }

  .admin-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
}
