    :root {
      --maxw: 1100px;
      --bg: #f5f5f7;
      --surface: #fff;
      --text: #1d1d1f;
      --muted: #6e6e73;
      --accent: #0A84FF;
      /* Apple Blue */
    }

    /* CSS của trang đặt ở đây */

    /* [ĐÃ GỘP CSS] 
      Nội dung CSS từ khối <style> bị lỗi lồng nhau đã được di chuyển vào đây.
    */
    :root {
      --maxw: 1100px;
      --bg: #f5f5f7;
      --surface: #fff;
      --text: #1d1d1f;
      --muted: #6e6e73;
      --accent: #0A84FF;
      /* Apple Blue */
      --accent-2: #30D158;
      /* Apple Green */
      --glass: rgba(0, 0, 0, 0.06);
      --glass-border: rgba(220, 220, 215, 0.6);
      --radius: 14px;
      --z-topbar: 1600;
      --z-drawer: 1700;
      --z-bottom: 1500;
      --z-fab: 1800;
    }

    body.dark {
      --bg: #1C1C1E;
      --surface: #2C2C2E;
      --text: #F2F2F7;
      --muted: #8E8E93;
      --accent: #0A84FF;
      --accent-2: #30D158;
      --glass: rgba(255, 255, 255, 0.08);
      --glass-border: rgba(60, 60, 67, 0.6);
    }

    * {
      box-sizing: border-box
    }

    html,
    body {
      height: 100%
    }

    body {
      margin: 0;
      font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
      background: var(--bg);
      color: var(--text);
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      transition: background .25s, color .25s;
    }

    a {
      color: inherit;
      text-decoration: none
    }

    .container {
      max-width: var(--maxw);
      margin: 0 auto;
      padding: 0 20px
    }

    /* ---------- Topbar (Apple glass) ---------- */
    .topbar {
      position: fixed;
      inset: 12px 16px auto 16px;
      height: auto;
      z-index: var(--z-topbar);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 10px 14px;
      background: rgba(255, 255, 255, .78);
      border: 1px solid var(--glass-border);
      border-radius: 14px;
      backdrop-filter: blur(12px) saturate(150%);
      box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
    }

    body.dark .topbar {
      background: rgba(28, 28, 30, .78);
      box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
    }

    .topbar.scrolled {
      padding: 8px 12px;
      background: rgba(255, 255, 255, .92)
    }

    body.dark .topbar.scrolled {
      background: rgba(28, 28, 30, .92)
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 10px
    }

    .brand img {
      width: 38px;
      height: 38px;
      border-radius: 8px;
      object-fit: cover
    }

    .brand h3 {
      margin: 0;
      font-size: 1.05rem;
      font-weight: 800
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 4px
    }

    .nav-links a,
    .nav-links .dropdown-toggle {
      padding: 8px 10px;
      border-radius: 10px;
      font-weight: 700;
      color: var(--text);
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }

    .nav-links a:hover {
      background: var(--glass)
    }

    .nav-dropdown {
      position: relative
    }

    .dropdown-toggle i.fa-caret-down {
      margin-left: 6px
    }

    .dropdown-menu {
      position: absolute;
      top: 100%;
      left: 0;
      min-width: 220px;
      padding: 8px;
      background: var(--surface);
      border: 1px solid var(--glass-border);
      border-radius: 12px;
      box-shadow: 0 16px 32px rgba(0, 0, 0, .08);
      display: none;
    }

    .nav-dropdown:hover .dropdown-menu {
      display: block
    }

    /* (YÊU CẦU 1) cho phép mở bằng class .open (tap/click) */
    .nav-dropdown.open .dropdown-menu {
      display: block;
    }

    .cta {
      background: var(--accent);
      color: #fff;
      border-radius: 999px;
      padding: 8px 14px;
      font-weight: 800
    }

    .toggle-dark {
      background: transparent;
      border: 0;
      padding: 8px 10px;
      border-radius: 10px;
      cursor: pointer
    }

    .toggle-dark:hover {
      background: var(--glass)
    }

    .hamburger {
      display: none;
      background: transparent;
      border: 0;
      padding: 8px;
      border-radius: 10px;
      cursor: pointer
    }

    .hamburger .bar {
      display: block;
      width: 22px;
      height: 2px;
      background: var(--text);
      margin: 4px;
      border-radius: 2px
    }

    /* ---------- Drawer (CODE ĐÃ SỬA) ---------- */
    .drawer-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, .25);
      opacity: 0;
      pointer-events: none;
      transition: .25s ease;
      z-index: var(--z-drawer);
    }

    .drawer-overlay.active {
      opacity: 1;
      pointer-events: auto;
    }

    .drawer {
      position: fixed;
      top: 0;
      left: 0;
      height: 100vh;
      width: 320px;
      max-width: 88vw;
      background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(245, 245, 247, .96));
      border-right: 1px solid var(--glass-border);
      transform: translateX(-110%);
      transition: transform .35s cubic-bezier(.2, .9, .2, 1);
      z-index: calc(var(--z-drawer) + 1);
      backdrop-filter: blur(12px) saturate(150%);
      /* Cập nhật padding mới, đã bao gồm safe-area */
      padding: calc(env(safe-area-inset-top, 12px) + 60px) 16px calc(env(safe-area-inset-bottom, 12px) + 16px);
      overflow-y: auto;
      -ms-overflow-style: none;
      scrollbar-width: none;
    }

    .drawer::-webkit-scrollbar {
      display: none;
    }

    body.dark .drawer {
      background: linear-gradient(180deg, rgba(28, 28, 30, .96), rgba(35, 35, 37, .96));
    }

    .drawer.open {
      transform: translateX(0);
    }

    /* Header */
    .drawer-header {
      display: flex;
      align-items: center;
      gap: 12px;
      padding-bottom: 16px;
      border-bottom: 1px solid var(--glass-border);
      margin-bottom: 16px;
    }

    .drawer-header img {
      width: 52px;
      height: 52px;
      border-radius: 50%;
      object-fit: cover;
      border: 2px solid var(--glass-border);
    }

    .drawer-header div {
      display: flex;
      flex-direction: column;
    }

    .drawer-header strong {
      font-size: 1.1rem;
      font-weight: 800;
      color: var(--text);
    }

    .drawer-header small {
      color: var(--muted);
      font-weight: 600;
    }

    /* Menu block */
    .menu-block {
      background: var(--surface);
      border-radius: 12px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, .04);
      margin-bottom: 14px;
      padding: 8px;
    }

    body.dark .menu-block {
      box-shadow: 0 4px 18px rgba(0, 0, 0, .25);
      border: 1px solid var(--glass-border);
    }

    /* Grid buttons (mini app) */
    .menu-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
    }

    .menu-grid-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 16px 8px;
      border-radius: 10px;
      font-weight: 700;
      text-align: center;
      color: var(--text);
      transition: background .2s;
    }

    .menu-grid-item:hover {
      background: var(--glass);
    }

    .menu-grid-item i {
      font-size: 1.5rem;
      color: var(--accent);
    }

    /* Màu riêng cho icon (nếu cần) */
    .menu-grid-item:nth-child(2) i {
      color: #0A84FF;
    }

    .menu-grid-item:nth-child(3) i {
      color: #EA4335;
    }

    .menu-grid-item:nth-child(4) i {
      color: #FF9F0A;
    }

    .menu-grid-item span {
      font-size: .9rem;
    }

    /* Menu items */
    .menu-item {
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 12px 10px;
      border-radius: 10px;
      font-weight: 700;
      color: var(--text);
      background: transparent;
      border: 0;
      cursor: pointer;
      width: 100%;
      text-align: left;
      text-decoration: none;
      transition: background .2s;
    }

    .menu-item:hover {
      background: var(--glass);
    }

    .menu-item i:first-child {
      width: 32px;
      height: 32px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: var(--glass);
      border-radius: 50%;
      font-size: .95rem;
    }

    .menu-item span {
      line-height: 1.2;
    }

    /* Accordion (dịch vụ) */
    .menu-item .chevron-icon {
      margin-left: auto;
      font-size: .8rem;
      color: var(--muted);
      transition: transform .25s ease-out;
    }

    .menu-item.open .chevron-icon {
      transform: rotate(180deg);
    }

    .menu-submenu {
      max-height: 0;
      overflow: hidden;
      transition: max-height .3s ease-out;
      margin-left: 12px;
      border-left: 2px solid var(--glass-border);
      padding-left: 10px;
    }

    /* Đảm bảo chiều cao đủ cho 5 items */
    .menu-submenu.open {
      max-height: 260px;
    }

    /* Sub items */
    .menu-item.menu-item-sub {
      padding-top: 10px;
      padding-bottom: 10px;
    }

    .menu-item.menu-item-sub i {
      width: 24px;
      height: 24px;
      font-size: .8rem;
      background: transparent;
    }

    /* Dark mode toggle */
    .menu-item .toggle-switch {
      margin-left: auto;
      width: 44px;
      height: 26px;
      background: var(--glass-border);
      border-radius: 99px;
      position: relative;
      transition: background .2s;
    }

    body.dark .menu-item .toggle-switch {
      background: rgba(120, 120, 128, .36);
    }

    .menu-item .toggle-switch::before {
      content: '';
      position: absolute;
      top: 2px;
      left: 2px;
      width: 22px;
      height: 22px;
      background: var(--surface);
      border-radius: 50%;
      box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
      transition: transform .2s ease-out;
    }

    body.dark .menu-item .toggle-switch::before {
      background: #1C1C1E;
    }

    .menu-item.active .toggle-switch {
      background: var(--accent-2);
    }

    .menu-item.active .toggle-switch::before {
      transform: translateX(18px);
    }

    /* ===== KẾT THÚC CSS MENU ĐÃ SỬA ===== */


    /* ===== (ĐÃ SỬA) TOC (H2 only) - CHUYỂN SANG GIỮA BÊN TRÁI ===== */
    .toc-fab {
      position: fixed;
      left: max(16px, env(safe-area-inset-left));
      top: 50%;
      transform: translateY(-50%);
      z-index: var(--z-fab);
      width: 54px;
      height: 54px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      background: var(--surface);
      border: 1px solid var(--glass-border);
      box-shadow: 0 10px 28px rgba(0, 0, 0, .12);
      cursor: pointer;
    }

    .toc-drawer {
      position: fixed;
      left: calc(max(16px, env(safe-area-inset-left)) + 54px + 8px);
      top: 50%;
      transform: translateY(-50%);
      width: 280px;
      max-width: 85vw;
      max-height: 60vh;
      overflow: auto;
      background: var(--surface);
      border: 1px solid var(--glass-border);
      border-radius: 12px;
      padding: 12px;
      display: none;
      box-shadow: 0 14px 36px rgba(0, 0, 0, .16);
      z-index: calc(var(--z-fab) + 2);
      /* cao hơn nút fab */
    }

    .toc-drawer.open {
      display: block
    }

    .toc-drawer h4 {
      margin: 0 0 8px 0;
      color: var(--accent)
    }

    .toc-drawer a {
      display: block;
      padding: 8px;
      border-radius: 8px;
      color: var(--text);
      font-weight: 600
    }

    .toc-drawer a:hover {
      background: var(--glass)
    }

    /* (MỚI) Nút Liên hệ (miniAppToggle) - góc phải dưới */
    .contact-fab {
      position: fixed;
      right: max(16px, env(safe-area-inset-right));
      bottom: 92px;
      z-index: var(--z-fab);
      width: 54px;
      height: 54px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      background: var(--surface);
      border: 1px solid var(--glass-border);
      box-shadow: 0 10px 28px rgba(0, 0, 0, .12);
      cursor: pointer;
    }

    /* (MỚI) Mobile: tăng chiều cao tối đa cho TOC */
    @media (max-width: 780px) {
      .toc-drawer {
        max-height: 70vh;
      }
    }

    /* -------------------------------------------------------- */


    /* ---------- FAQ (details) ---------- */
    .faq {
      margin: 30px 0
    }

    .faq details {
      background: var(--surface);
      border: 1px solid var(--glass-border);
      border-radius: 12px;
      padding: 12px 14px;
      margin-bottom: 10px;
    }

    .faq summary {
      cursor: pointer;
      list-style: none;
      font-weight: 800;
      outline: none;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }

    .faq summary::-webkit-details-marker {
      display: none
    }

    .faq details[open] {
      border-color: var(--accent)
    }

    .faq .answer {
      color: var(--muted);
      padding-top: 8px
    }

    /* animation */
    .faq details .answer {
      animation: fadeIn .22s ease
    }

    @keyframes fadeIn {
      from {
        opacity: 0;
        transform: translateY(4px)
      }

      to {
        opacity: 1;
        transform: none
      }
    }

    /* ---------- Helpers & responsive ---------- */
    main {
      padding-top: 84px
    }

    @media (max-width: 900px) {
      .nav-links {
        display: none
      }

      .hamburger {
        display: block
      }
    }

    /* Safari/iOS smooth + overscroll fix */
    body {
      -webkit-overflow-scrolling: touch;
      overscroll-behavior: contain;
    }

    /* MotoAI overlay blur fix (không làm mờ header/faq) */
    #motoai-overlay {
      isolation: isolate;
    }


    /* ===== CSS CHO FOOTER VÀ BOTTOM APP BAR MỚI ===== */
    /* Fallback variables (site anh đã có thì giữ nguyên) */
    :root {
      /* --accent:#0a84ff; --text:#0b0b0d; --footer-bg:rgba(255,255,255,.65); */
      /* Đã có ở trên */
      /* --glass-border:rgba(60,60,67,.18); */
      /* Đã có ở trên */
    }

    body.dark {
      /* --footer-bg:rgba(22,22,24,.65); --text:#eaeaea; --glass-border:rgba(255,255,255,.12); */
      /* Đã có ở trên */
    }

    /* ===== Footer Apple Glass Centered v2 (CODE ĐÃ NÂNG CẤP) ===== */
    footer.premium.app-footer {
      background: rgba(255, 255, 255, 0.85);
      color: var(--text);
      backdrop-filter: blur(22px) saturate(180%);
      -webkit-backdrop-filter: blur(22px) saturate(180%);
      border-top: 1px solid var(--glass-border);
      border-radius: 20px 20px 0 0;
      box-shadow: 0 -12px 45px rgba(0, 0, 0, 0.15);
      display: grid;
      /* (YÊU CẦU 3) Đổi minmax(240px) -> minmax(220px) để vừa 4 cột dễ hơn */
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 36px;
      padding: 56px 24px calc(56px + env(safe-area-inset-bottom));
      text-align: center;
    }

    body.dark footer.premium.app-footer {
      background: rgba(28, 28, 30, 0.9);
      box-shadow: 0 -12px 45px rgba(0, 0, 0, 0.7);
    }

    .app-footer h4 {
      margin: 0 0 14px;
      font-weight: 800;
      letter-spacing: .3px;
      color: var(--accent);
      text-transform: uppercase;
    }

    .app-footer p,
    .app-footer li,
    .app-footer a {
      color: var(--text);
      text-align: center;
    }

    .app-contact,
    .quick-links {
      list-style: none;
      margin: 0;
      padding: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .app-contact li,
    .quick-links li {
      margin: 8px 0;
      display: flex;
      align-items: center;
      gap: 8px;
      justify-content: center;
    }

    .app-contact i {
      width: 24px;
      text-align: center;
      color: var(--accent);
    }

    .social-row {
      display: flex;
      justify-content: center;
      gap: 14px;
      margin-top: 16px;
    }

    .social-row a {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      background: var(--accent);
      color: #fff;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 6px 18px rgba(0, 122, 255, 0.25);
      transition: transform 0.25s ease, box-shadow 0.25s ease;
    }

    .social-row a:hover {
      transform: translateY(-4px);
      box-shadow: 0 10px 25px rgba(0, 122, 255, 0.35);
    }

    .app-footer .author {
      margin-top: 18px;
      font-weight: 600;
      color: var(--muted);
    }

    /* ===== KẾT THÚC CSS NÂNG CẤP FOOTER v2 ===== */


    /* ===== Bottom App Bar (mobile) ===== */
    .bottom-appbar {
      position: fixed;
      left: 50%;
      transform: translateX(-50%);
      bottom: max(10px, env(safe-area-inset-bottom));
      width: min(680px, calc(100% - 24px));
      background: rgba(255, 255, 255, .92);
      color: #111;
      border: 1px solid var(--glass-border);
      border-radius: 16px;
      box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
      backdrop-filter: blur(16px) saturate(160%);
      -webkit-backdrop-filter: blur(16px) saturate(160%);
      z-index: 1650;
      display: none;
    }

    .bottom-appbar nav {
      display: flex;
      justify-content: space-between;
    }

    .bottom-appbar a {
      flex: 1;
      padding: 10px 6px;
      text-align: center;
      text-decoration: none;
      color: inherit;
      font-weight: 700;
      font-size: .9rem;
      display: flex;
      flex-direction: column;
      gap: 4px;
      align-items: center;
    }

    .bottom-appbar a i {
      font-size: 1.2rem;
    }

    .bottom-appbar a.active {
      color: var(--accent);
    }

    @media (max-width:780px) {
      .bottom-appbar {
        display: block;
      }

      /* chừa chỗ cho app bar */
      body {
        padding-bottom: 86px;
      }
    }

    /* Dark mode app bar */
    body.dark .bottom-appbar {
      background: rgba(28, 28, 30, .92);
      color: var(--text);
      box-shadow: 0 12px 28px rgba(0, 0, 0, .45);
    }

    /* ===== CSS MỚI ĐƯỢC THÊM VÀO ===== */
    /* ===== HERO MINI-APP (no image) ===== */
    .hero-mini {
      margin: 12px auto 28px;
    }

    .hero-mini .wrap {
      max-width: var(--maxw);
      margin: 0 auto;
      padding: 0 20px;
    }

    .hero-mini .card {
      position: relative;
      overflow: hidden;
      border-radius: 20px;
      background: linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(245, 245, 247, .78));
      border: 1px solid var(--glass-border);
      box-shadow: 0 20px 40px rgba(0, 0, 0, .08);
      backdrop-filter: blur(14px) saturate(150%);
      -webkit-backdrop-filter: blur(14px) saturate(150%);
      padding: clamp(18px, 3.2vw, 28px);
    }

    body.dark .hero-mini .card {
      background: linear-gradient(180deg, rgba(28, 28, 30, .78), rgba(35, 35, 37, .78));
      box-shadow: 0 22px 48px rgba(0, 0, 0, .35);
    }

    .hmini-grid {
      display: grid;
      gap: clamp(14px, 2.4vw, 22px);
      align-items: start;
      grid-template-columns: 1.2fr .8fr;
    }

    @media (max-width: 920px) {
      .hmini-grid {
        grid-template-columns: 1fr;
      }
    }

    .hmini-title {
      margin: 0 0 6px;
      font-size: clamp(22px, 4.2vw, 36px);
      line-height: 1.12;
      font-weight: 800;
      letter-spacing: .2px;
    }

    .hmini-sub {
      margin: 0 0 12px;
      color: var(--muted);
      font-weight: 600;
    }

    /* Segmented control: Ngày / Tuần / Tháng */
    .hmini-toggle {
      display: inline-flex;
      gap: 6px;
      padding: 4px;
      border-radius: 12px;
      border: 1px solid var(--glass-border);
      background: var(--surface);
      box-shadow: 0 8px 18px rgba(0, 0, 0, .06);
    }

    .hmini-toggle button {
      border: 0;
      background: transparent;
      padding: 8px 14px;
      border-radius: 10px;
      font-weight: 800;
      color: var(--muted);
      cursor: pointer;
    }

    .hmini-toggle button.active {
      background: var(--accent);
      color: #fff;
      box-shadow: 0 10px 24px rgba(10, 132, 255, .25);
    }

    /* Price line + badges */
    .hmini-price {
      margin: 10px 0 8px;
      font-weight: 800;
      font-size: clamp(16px, 2.6vw, 18px);
    }

    .hmini-badges {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin: 10px 0 14px;
    }

    .hmini-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 12px;
      border-radius: 999px;
      background: var(--glass);
      border: 1px solid var(--glass-border);
      font-weight: 700;
      font-size: .92rem;
    }

    .hmini-badge i {
      color: var(--accent);
      font-size: 1rem;
    }

    /* CTA row */
    .hmini-cta {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin: 12px 0 4px;
    }

    .hmini-btn {
      appearance: none;
      border: 0;
      cursor: pointer;
      text-decoration: none;
      padding: 12px 16px;
      border-radius: 12px;
      font-weight: 800;
      display: inline-flex;
      align-items: center;
      gap: 10px;
    }

    .hmini-btn i {
      font-size: 1.05rem;
    }

    .hmini-btn.primary {
      background: var(--accent);
      color: #fff;
      box-shadow: 0 12px 26px rgba(10, 132, 255, .25);
    }

    .hmini-btn.ghost {
      background: var(--surface);
      color: var(--text);
      border: 1px solid var(--glass-border);
    }

    /* MINI-APP tiles (bên phải) */
    .hmini-tiles {
      background: var(--surface);
      border: 1px solid var(--glass-border);
      border-radius: 16px;
      padding: clamp(12px, 2.6vw, 16px);
      box-shadow: 0 12px 28px rgba(0, 0, 0, .08);
    }

    body.dark .hmini-tiles {
      box-shadow: 0 14px 32px rgba(0, 0, 0, .35);
    }

    .hmini-tiles .grid {
      display: grid;
      gap: 10px;
      grid-template-columns: repeat(4, minmax(88px, 1fr));
    }

    @media (max-width: 540px) {
      .hmini-tiles .grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (min-width: 541px) and (max-width: 920px) {
      .hmini-tiles .grid {
        grid-template-columns: repeat(4, 1fr);
      }
    }

    .hmini-tile {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
      text-align: center;
      padding: 14px;
      border-radius: 14px;
      background: var(--surface);
      border: 1px solid var(--glass-border);
      font-weight: 800;
      transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
      box-shadow: 0 10px 20px rgba(0, 0, 0, .06);
    }

    .hmini-tile:hover {
      transform: translateY(-2px);
      box-shadow: 0 14px 28px rgba(0, 0, 0, .10);
      background: rgba(255, 255, 255, .66);
    }

    body.dark .hmini-tile:hover {
      background: rgba(28, 28, 30, .66);
    }

    .hmini-icon {
      width: 52px;
      height: 52px;
      border-radius: 14px;
      background: var(--glass);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 1.25rem;
      color: var(--accent);
    }

    .hmini-tile span {
      font-size: .92rem;
    }

    /* Soft divider */
    .hmini-soft {
      height: 1px;
      background: var(--glass-border);
      opacity: .7;
      margin: 12px 0;
    }

    /* Stats (nhỏ, dưới tiles) */
    .hmini-stats {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
      margin-top: 10px;
    }

    @media (max-width:540px) {
      .hmini-stats {
        grid-template-columns: 1fr 1fr;
      }
    }

    .hmini-stat {
      display: flex;
      gap: 10px;
      align-items: center;
      padding: 10px;
      border-radius: 12px;
      background: var(--glass);
      border: 1px solid var(--glass-border);
      font-weight: 700;
    }

    .hmini-stat i {
      width: 28px;
      height: 28px;
      border-radius: 8px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: var(--surface);
      color: var(--accent);
    }

    /* Appear animation (nhẹ) */
    .reveal {
      opacity: 0;
      transform: translateY(8px);
      transition: .5s ease;
    }

    .reveal.in {
      opacity: 1;
      transform: none;
    }

    /* ===== KẾT THÚC CSS MỚI ===== */

    /* ====== scoped styles (no conflict) ====== */
    .mapp-wrap {
      max-width: var(--maxw, 1100px);
      margin: 18px auto;
      padding: 0 16px;
    }

    .mapp-card {
      background: var(--surface, #fff);
      color: var(--text, #1d1d1f);
      border: 1px solid var(--glass-border, rgba(220, 220, 215, .6));
      border-radius: 18px;
      box-shadow: 0 12px 36px rgba(0, 0, 0, .06);
      padding: 20px;
      backdrop-filter: blur(8px) saturate(150%);
    }

    body.dark .mapp-card {
      box-shadow: 0 12px 36px rgba(0, 0, 0, .4);
    }

    .mapp-head {
      display: flex;
      gap: 14px;
      align-items: center;
    }

    .mapp-logo {
      width: 54px;
      height: 54px;
      border-radius: 12px;
      object-fit: cover;
      border: 1px solid var(--glass-border);
    }

    .mapp-h1 {
      margin: 0;
      font-size: clamp(22px, 4.8vw, 30px);
      line-height: 1.08;
      font-weight: 800;
    }

    .mapp-kicker {
      margin: 4px 0 0;
      color: var(--muted, #6e6e73);
      font-weight: 600;
    }

    .mapp-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin: 14px 0 6px
    }

    .mapp-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 14px;
      border-radius: 999px;
      text-decoration: none;
      font-weight: 800;
      border: 1px solid transparent;
    }

    .mapp-btn i {
      width: 18px;
      text-align: center
    }

    .mapp-btn.primary {
      background: var(--accent, #0a84ff);
      color: #fff;
      box-shadow: 0 8px 22px rgba(10, 132, 255, .16)
    }

    .mapp-btn.green {
      background: var(--accent-2, #2bc76f);
      color: #fff;
      box-shadow: 0 8px 22px rgba(43, 199, 127, .16)
    }

    .mapp-btn.ghost {
      background: transparent;
      border-color: var(--glass-border);
      color: inherit
    }

    .mapp-chips {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin: 8px 0 2px;
      padding: 0;
      list-style: none
    }

    .mapp-chips li {
      padding: 6px 10px;
      border-radius: 999px;
      background: rgba(0, 0, 0, .04);
      border: 1px solid var(--glass-border);
      font-weight: 700;
      font-size: .92rem
    }

    body.dark .mapp-chips li {
      background: rgba(255, 255, 255, .08)
    }

    .mapp-h2 {
      margin: 16px 0 8px;
      font-size: 1.25rem
    }

    .mapp-text {
      color: var(--muted, #6e6e73);
      margin: 6px 0 10px
    }

    .mapp-list {
      margin: 6px 0 0 18px
    }

    .mapp-list li {
      margin: 6px 0
    }

    .mapp-table-wrap {
      overflow: auto;
      border: 1px solid var(--glass-border);
      border-radius: 14px;
      background: rgba(255, 255, 255, .74);
      backdrop-filter: blur(10px) saturate(150%);
      margin-top: 8px;
    }

    body.dark .mapp-table-wrap {
      background: rgba(28, 28, 30, .74)
    }

    .mapp-table {
      min-width: 640px;
      width: 100%;
      border-collapse: collapse;
      text-align: center
    }

    .mapp-table th,
    .mapp-table td {
      padding: 12px 14px;
      border-bottom: 1px solid var(--glass-border)
    }

    .mapp-table th {
      background: rgba(0, 0, 0, .04);
      font-weight: 800
    }

    .mapp-table td:first-child {
      text-align: left;
      font-weight: 700
    }

    .mapp-table tr:hover td {
      background: rgba(10, 132, 255, .06)
    }

    .mapp-note {
      color: var(--muted, #6e6e73);
      margin-top: 8px
    }

    /* FAQ */
    .mapp-qa {
      border: 1px solid var(--glass-border);
      border-radius: 10px;
      padding: 10px 12px;
      margin: 8px 0;
      background: var(--surface, #fff)
    }

    .mapp-qa summary {
      cursor: pointer;
      font-weight: 800
    }

    .mapp-qa[open] {
      box-shadow: 0 8px 22px rgba(0, 0, 0, .06)
    }

    /* sticky mini action on mobile (won't clash with bottom app bar) */
    .mapp-sticky {
      display: none;
      position: sticky;
      bottom: 0;
      margin-top: 10px;
      padding: 10px;
      background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .02))
    }

    .mapp-sbtn {
      display: inline-flex;
      gap: 8px;
      align-items: center;
      padding: 10px 14px;
      border-radius: 12px;
      text-decoration: none;
      background: var(--accent, #0a84ff);
      color: #fff;
      font-weight: 800;
      margin-right: 8px
    }

    @media (max-width:780px) {
      .mapp-sticky {
        display: block;
      }
    }

    /* CSS TỪ KHỐI CHỌN XE */
    .sx-wrap {
      max-width: var(--maxw, 1100px);
      margin: 20px auto;
      padding: 0 16px
    }

    .sx-head {
      margin: 0 0 10px
    }

    .sx-desc {
      color: var(--muted, #6e6e73);
      margin: 6px 0 14px;
      font-weight: 600
    }

    .sx-grid {
      display: grid;
      gap: 12px;
      /* (CHỈNH SỬA) Đổi từ 4 cột -> 3 cột để khớp với yêu cầu 3 xe/hàng */
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    /* (CHỈNH SỬA) Bỏ 980px breakpoint, giữ 680px */
    @media (max-width:680px) {
      .sx-grid {
        grid-template-columns: repeat(2, 1fr)
      }
    }

    @media (max-width:480px) {
      .sx-grid {
        grid-template-columns: 1fr
      }
    }

    /* Thêm 1 cột cho mobile nhỏ */


    .sx-card {
      background: var(--surface, #fff);
      border: 1px solid var(--glass-border, rgba(220, 220, 215, .6));
      border-radius: 14px;
      overflow: hidden;
      box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
      transition: transform .15s ease, box-shadow .15s ease;
    }

    .sx-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 12px 28px rgba(0, 0, 0, .10)
    }

    .sx-thumb {
      position: relative;
      aspect-ratio: 1/1;
      background: var(--glass, rgba(0, 0, 0, .06));
    }

    .sx-thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .sx-badge {
      position: absolute;
      left: 10px;
      bottom: 10px;
      background: rgba(10, 132, 255, .9);
      color: #fff;
      font-weight: 800;
      padding: 6px 10px;
      border-radius: 999px;
      font-size: .85rem;
    }

    .sx-body {
      padding: 10px 12px
    }

    .sx-title {
      margin: 0 0 6px;
      font-size: 1.02rem;
      font-weight: 800
    }

    .sx-meta {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      color: var(--muted);
      font-weight: 700;
      font-size: .92rem
    }

    .sx-meta span {
      display: inline-flex;
      align-items: center;
      gap: 6px
    }

    .sx-meta i {
      color: var(--accent, #0a84ff)
    }

    .sx-cta {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      margin: 14px 0 0;
    }

    .sx-cta a {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 14px;
      border-radius: 12px;
      text-decoration: none;
      font-weight: 800;
      border: 1px solid var(--glass-border);
      background: var(--surface);
      color: inherit;
    }

    .sx-cta a.primary {
      background: var(--accent, #0a84ff);
      color: #fff;
      border-color: transparent;
      box-shadow: 0 10px 24px rgba(10, 132, 255, .18);
    }

    /* CSS TỪ KHỐI REVIEWS */
    .sx-rev {
      margin: 22px 0 0
    }

    .sx-rev h2 {
      margin: 0 0 10px
    }

    .sx-revlist {
      display: grid;
      gap: 12px;
      /* (CHỈNH SỬA) Đổi từ 2 cột -> 3 cột để khớp 3x2 */
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    @media (max-width:980px) {
      .sx-revlist {
        grid-template-columns: repeat(2, 1fr)
      }
    }

    /* Về 2 cột */
    @media (max-width:680px) {
      .sx-revlist {
        grid-template-columns: 1fr
      }
    }

    /* Về 1 cột */

    .sx-quote {
      background: var(--surface);
      border: 1px solid var(--glass-border);
      border-radius: 12px;
      padding: 12px 14px;
      box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
    }

    .sx-quote blockquote {
      margin: 0 0 8px;
      font-weight: 700
    }

    .sx-quote figcaption {
      color: var(--muted);
      font-weight: 700
    }

    /* GHI ĐÈ CSS CỤC BỘ ĐỂ PHÙ HỢP VỚI MINI-APP */
    /* Ghi đè .sx-wrap để lồng vào .mapp-card */
    .mapp-card .sx-wrap {
      max-width: 100%;
      margin: 20px 0;
      /* Giữ margin top/bottom */
      padding: 0;
      /* Xóa padding ngang */
    }

    .mapp-card .sx-head,
    .mapp-card .sx-rev h2 {
      font-size: 1.25rem;
      /* Giống .mapp-h2 */
      margin: 16px 0 8px;
    }

    .mapp-card .sx-desc {
      color: var(--muted, #6e6e73);
      margin: 6px 0 14px;
      font-weight: 600;
    }

    /* (YÊU CẦU 2) CSS CHO SAO ĐÁNH GIÁ */
    .sx-stars {
      color: #FFB400;
      /* Màu vàng gold */
      margin-bottom: 6px;
      font-size: 0.9rem;
    }

    .sx-stars i {
      margin-right: 2px;
      /* Khoảng cách giữa các sao */
    }

    /* (YÊU CẦU 3) Căn chỉnh lại .quick-links trong footer */
    .app-footer .quick-links {
      align-items: flex-start;
      /* Căn trái */
      max-width: 200px;
      /* Giới hạn chiều rộng 1 chút */
      margin: 0 auto;
      /* Căn giữa khối */
    }

    .app-footer .quick-links li {
      justify-content: flex-start;
      /* Căn trái text & icon */
      gap: 10px;
      /* Tăng khoảng cách cho icon */
    }

    .app-footer .quick-links i {
      width: 20px;
      text-align: center;
      color: var(--accent);
    }
