/* ============================================================
   APP GIÁ TỐT — Dedicated Mobile App Stylesheet (Chuyên biệt Mobile)
   Áp dụng tối ưu cho màn hình điện thoại (< 768px)
   ============================================================ */

@media screen and (max-width: 768px) {

  /* ─── 1. Khung Layout & Chống Tràn Màn Hình ─── */
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    position: relative;
    -webkit-text-size-adjust: 100%;
  }

  .page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }

  .main-content {
    flex: 1;
    padding-bottom: 96px !important; /* Đệm an toàn để không bị Bottom Bar che */
  }

  .container {
    padding-left: 14px !important;
    padding-right: 14px !important;
    max-width: 100% !important;
  }

  .section {
    padding: 28px 0 !important;
  }

  .section-sm {
    padding: 18px 0 !important;
  }

  .section-header {
    margin-bottom: 20px !important;
  }

  .section-title {
    font-size: 1.4rem !important;
  }

  .section-subtitle {
    font-size: 0.85rem !important;
  }

  /* ─── 2. Top App Bar (Thanh Menu Trên) ─── */
  .navbar {
    height: 56px !important;
    padding: 0 8px !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 900 !important;
    background: var(--bg-surface) !important;
    border-bottom: 1px solid var(--border) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
  }

  .navbar-container {
    height: 56px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 4px !important;
  }

  /* Ẩn thanh menu ngang trên PC */
  .navbar-nav {
    display: none !important;
  }

  .navbar-logo {
    gap: 5px !important;
    flex-shrink: 1 !important;
    min-width: 0 !important;
  }

  .logo-icon {
    width: 28px !important;
    height: 28px !important;
    flex-shrink: 0 !important;
  }

  .logo-text {
    font-size: 0.95rem !important;
    white-space: nowrap !important;
  }

  .navbar-actions {
    gap: 4px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
  }

  #navbar-user {
    gap: 4px;
    align-items: center;
  }

  #navbar-auth {
    gap: 4px;
    align-items: center;
  }

  #navbar-auth .btn {
    padding: 5px 10px !important;
    font-size: 0.78rem !important;
    border-radius: var(--radius-full) !important;
    white-space: nowrap !important;
  }

  .balance-chip {
    padding: 3px 4px 3px 8px !important;
    font-size: 0.75rem !important;
    border-radius: var(--radius-full) !important;
    max-width: 145px !important;
    gap: 4px !important;
    height: 30px !important;
    flex-shrink: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
  }

  .balance-icon-wrap svg {
    width: 13px !important;
    height: 13px !important;
  }

  .balance-amount {
    font-size: 0.74rem !important;
    font-weight: 800 !important;
    max-width: 82px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .balance-deposit-btn {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    margin-left: 1px !important;
  }

  .balance-deposit-btn svg {
    width: 9px !important;
    height: 9px !important;
  }

  .user-menu-btn {
    padding: 0 !important;
    gap: 0 !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
    border: none !important;
    background: transparent !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .user-menu-btn .avatar {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.85rem !important;
    flex-shrink: 0 !important;
    border: 1.5px solid var(--border-hover) !important;
  }

  .user-menu-btn #user-name,
  .user-menu-btn span:last-child {
    display: none !important; /* Ẩn chữ Tên và icon mũi tên để avatar luôn hiển thị trọn vẹn */
  }

  .theme-toggle-btn {
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
  }

  .cart-btn {
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
  }

  /* ─── 3. Floating Glass Island Bottom Tab Bar (Multi-Layer Glassmorphism) ─── */
  .mobile-bottom-nav {
    display: flex !important;
    position: fixed !important;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
    left: 14px !important;
    right: 14px !important;
    width: calc(100% - 28px) !important;
    max-width: 460px !important;
    margin: 0 auto !important;
    height: 66px !important;
    /* Layer 1 & 2: Background Blur + Transparency */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.02) 100%), rgba(11, 17, 32, 0.62) !important;
    backdrop-filter: blur(32px) saturate(210%) brightness(112%) !important;
    -webkit-backdrop-filter: blur(32px) saturate(210%) brightness(112%) !important;
    /* Layer 3: Viền sáng nhẹ & Refraction Border */
    border: 1.2px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: 28px !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), inset 0 1.5px 0 rgba(255, 255, 255, 0.35), inset 0 -1px 0 rgba(255, 255, 255, 0.08), 0 0 24px rgba(59, 130, 246, 0.15) !important;
    z-index: 1000 !important;
    padding: 0 6px !important;
    box-sizing: border-box !important;
  }

  [data-theme="light"] .mobile-bottom-nav {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.42) 100%), rgba(240, 244, 252, 0.52) !important;
    border: 1.2px solid rgba(255, 255, 255, 0.88) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.09), inset 0 1.5px 0 rgba(255, 255, 255, 0.98), inset 0 -1px 0 rgba(0, 0, 0, 0.05), 0 0 24px rgba(59, 130, 246, 0.08) !important;
  }

  .notch-container {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    width: 100% !important;
    height: 100% !important;
    align-items: center !important;
    justify-items: center !important;
    margin: 0 !important;
    padding: 0 2px !important;
    gap: 4px !important;
    box-sizing: border-box !important;
  }

  /* Layer 4: Layer Nhiều Tầng (Inner Glass Islands) */
  .bottom-tab-item {
    width: 100% !important;
    height: 54px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--text-muted) !important;
    text-decoration: none !important;
    border-radius: 20px !important;
    border: 1px solid transparent !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    gap: 2px !important;
    box-sizing: border-box !important;
    position: relative !important;
  }

  .bottom-tab-item:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
  }

  [data-theme="light"] .bottom-tab-item:hover {
    background: rgba(0, 0, 0, 0.03) !important;
    border-color: rgba(0, 0, 0, 0.05) !important;
  }

  .bottom-tab-item .tab-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 20px !important;
    height: 20px !important;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  }

  .bottom-tab-item .tab-icon svg {
    width: 20px !important;
    height: 20px !important;
  }

  .bottom-tab-item .tab-label {
    font-size: 0.65rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
    white-space: nowrap !important;
    line-height: 1 !important;
    transition: color 0.2s ease !important;
  }

  /* Active Glass Pill - Inner Layer Glass */
  .bottom-tab-item.active {
    color: var(--primary) !important;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.22), rgba(139, 92, 246, 0.14)) !important;
    border: 1px solid rgba(59, 130, 246, 0.4) !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(8px) !important;
  }

  [data-theme="light"] .bottom-tab-item.active {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(139, 92, 246, 0.1)) !important;
    border: 1px solid rgba(37, 99, 235, 0.3) !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
  }

  .bottom-tab-item.active .tab-icon {
    transform: scale(1.15) translateY(-2px) !important;
    color: var(--primary) !important;
    filter: drop-shadow(0 0 8px var(--primary-glow)) !important;
  }

  .bottom-tab-item.active .tab-label {
    color: var(--primary) !important;
    font-weight: 700 !important;
  }


  /* ─── 4. Lưới Sản Phẩm 2 Cột Đối Xứng (2-Column Grid) ─── */
  .products-grid, .products-grid-full {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  .product-card {
    border-radius: 14px !important;
    padding: 12px !important;
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    gap: 8px !important;
    height: auto !important;
  }

  .product-card-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    margin-bottom: 6px !important;
  }

  .product-logo-wrap {
    width: 44px !important;
    height: 44px !important;
    border-radius: 11px !important;
    flex-shrink: 0 !important;
  }

  .product-category-pill {
    font-size: 0.62rem !important;
    padding: 2px 6px !important;
  }

  .product-card-content {
    margin-bottom: 8px !important;
  }

  .product-card-title {
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    margin-bottom: 3px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .product-card-desc {
    font-size: 0.72rem !important;
    color: var(--text-muted) !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    margin-bottom: 4px !important;
    line-height: 1.35 !important;
  }

  .product-card-features {
    display: none !important;
  }

  .product-card-bottom {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding-top: 8px !important;
    gap: 6px !important;
    border-top: 1px solid var(--border) !important;
  }

  .product-price-info {
    display: flex !important;
    flex-direction: row !important;
    align-items: baseline !important;
    justify-content: space-between !important;
  }

  .product-price-label {
    font-size: 0.65rem !important;
  }

  .product-price-value {
    font-size: 0.95rem !important;
    font-weight: 800 !important;
  }

  .product-buy-btn {
    width: 100% !important;
    padding: 6px 10px !important;
    font-size: 0.78rem !important;
    border-radius: var(--radius-sm) !important;
    text-align: center !important;
    justify-content: center !important;
    gap: 4px !important;
  }

  /* ─── Page Title Headers on Mobile ─── */
  .page-title-wrap {
    gap: 4px !important;
  }

  .page-title-row,
  .wallet-page-header {
    gap: 8px !important;
  }

  .page-title-icon svg,
  .wallet-page-icon svg {
    width: 22px !important;
    height: 22px !important;
  }

  .page-title,
  .wallet-page-title,
  .page-title-text {
    font-size: 1.4rem !important;
    letter-spacing: -0.015em !important;
  }

  .page-title-desc {
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
  }

  /* ─── 5. Hero Section & Feature Cards ─── */
  .hero {
    padding: 20px 0 16px !important;
  }

  .hero-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  .hero-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .hero-badge {
    padding: 5px 12px !important;
    font-size: 0.76rem !important;
    gap: 5px !important;
    margin-bottom: 12px !important;
  }

  .hero-title {
    font-size: 1.85rem !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    margin-bottom: 10px !important;
    letter-spacing: -0.01em !important;
  }

  .hero-title-sub {
    font-size: 1.22rem !important;
    font-weight: 700 !important;
    color: var(--text-secondary) !important;
    margin-top: 4px !important;
    letter-spacing: 0 !important;
  }

  .hero-desc {
    font-size: 0.88rem !important;
    line-height: 1.55 !important;
    color: var(--text-muted) !important;
    margin-bottom: 18px !important;
  }

  .hero-actions {
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .hero-actions .btn {
    flex: 1 1 50% !important;
    padding: 10px 12px !important;
    font-size: 0.88rem !important;
    justify-content: center !important;
    white-space: nowrap !important;
  }

  .hero-stats {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
    margin-top: 18px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--border) !important;
    border-radius: 14px !important;
    padding: 12px 6px !important;
    text-align: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  [data-theme="light"] .hero-stats {
    background: rgba(0, 0, 0, 0.02) !important;
  }

  .hero-stat-value {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    color: var(--primary) !important;
  }

  .hero-stat-label {
    font-size: 0.68rem !important;
    color: var(--text-muted) !important;
    margin-top: 2px !important;
  }

  .hero-visual {
    display: none !important; /* Ẩn banner nổi 3D của PC để tối ưu tốc độ mobile */
  }

  .feature-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .feature-card {
    padding: 16px !important;
  }

  .trust-strip {
    padding: 12px 0 !important;
  }

  .trust-items {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  .trust-item {
    font-size: 0.78rem !important;
  }

  /* ─── 6. Modal chuyển thành Bottom Sheet ─── */
  .modal-backdrop {
    align-items: flex-end !important;
    padding: 0 !important;
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(8px) !important;
  }

  .modal {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 24px 24px 0 0 !important;
    max-height: 88vh !important;
    overflow-y: auto !important;
    margin: 0 !important;
    padding: 20px 16px 32px !important;
    animation: slideUpSheet 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
    border-bottom: none !important;
  }

  .modal::before {
    content: '' !important;
    display: block !important;
    width: 44px !important;
    height: 5px !important;
    border-radius: 3px !important;
    background: var(--border-hover) !important;
    margin: 0 auto 16px !important;
  }

  .modal-header {
    margin-bottom: 16px !important;
    padding-bottom: 12px !important;
  }

  .modal-title {
    font-size: 1.15rem !important;
  }

  .modal-footer {
    margin-top: 20px !important;
    padding-top: 14px !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  .modal-footer .btn {
    width: 100% !important;
    justify-content: center !important;
  }

  @keyframes slideUpSheet {
    from {
      transform: translateY(100%);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }

  /* ─── 7. Search & Filter Tabs ─── */
  .page-header-inner {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .search-bar {
    width: 100% !important;
    min-width: 0 !important;
    padding: 8px 14px !important;
  }

  .filter-tabs {
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    padding-bottom: 6px !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .filter-chip {
    white-space: nowrap !important;
    font-size: 0.8rem !important;
    padding: 5px 12px !important;
  }

  .price-chips-group {
    display: flex !important;
    align-items: center !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    padding-bottom: 4px !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    width: 100% !important;
  }
  .price-chips-group::-webkit-scrollbar {
    display: none !important;
  }

  .price-chip-btn {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 32px !important;
    padding: 6px 12px !important;
    font-size: 0.8rem !important;
  }

  .search-filter-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  .search-filter-bar .form-select {
    width: 100% !important;
  }

  /* ─── 8. Trang Chi Tiết Sản Phẩm (Product Detail Mobile) ─── */
  .product-detail-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
  }

  .product-main-col {
    display: contents !important;
  }

  /* Ẩn khung ảnh to độc lập trên mobile vì đã tích hợp logo vào header ngang */
  .product-main-col .product-image-card {
    display: none !important;
  }

  /* Khung Đặt Hàng & Header Sản Phẩm ở trên cùng */
  .product-side-col {
    order: 1 !important;
    width: 100% !important;
  }

  .buy-card {
    padding: 16px 14px !important;
    border-radius: 18px !important;
  }

  /* Header ngang chuẩn App Store: Logo bên trái, Tên + Mô tả + Sao bên phải */
  .product-header-block {
    display: flex !important;
    align-items: flex-start !important;
    gap: 14px !important;
    margin-bottom: 4px !important;
  }

  .product-header-thumb-wrap {
    display: block !important;
    flex-shrink: 0 !important;
  }

  .product-header-thumb {
    width: 72px !important;
    height: 72px !important;
    max-width: 72px !important;
    max-height: 72px !important;
    aspect-ratio: 1/1 !important;
    object-fit: contain !important;
    border-radius: 18px !important;
    background: var(--bg-elevated) !important;
    border: 1.5px solid var(--border) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25) !important;
    display: block !important;
  }

  [data-theme="light"] .product-header-thumb {
    background: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
  }

  .product-header-details {
    flex: 1 !important;
    min-width: 0 !important;
  }

  .product-status-row {
    margin-bottom: 4px !important;
  }

  .product-title-main {
    font-size: 1.18rem !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    margin-bottom: 4px !important;
    word-break: break-word !important;
    color: var(--text-primary) !important;
  }

  .product-note-desc {
    font-size: 0.82rem !important;
    color: var(--text-secondary) !important;
    line-height: 1.4 !important;
    margin-bottom: 5px !important;
    word-break: break-word !important;
  }

  .product-rating-row {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    margin-bottom: 2px !important;
    flex-wrap: wrap !important;
  }

  .stars-group {
    display: inline-flex !important;
    gap: 1.5px !important;
    color: #f59e0b !important;
    font-size: 0.95rem !important;
    line-height: 1 !important;
  }

  .rating-score {
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
  }

  .rating-badge {
    font-size: 0.7rem !important;
    padding: 1px 5px !important;
  }

  .product-header-divider {
    height: 1px !important;
    background: var(--border) !important;
    margin: 12px 0 16px !important;
  }

  .cycle-options {
    gap: 8px !important;
    margin-bottom: 16px !important;
  }

  .cycle-option {
    padding: 11px 12px !important;
    gap: 10px !important;
    border-radius: 12px !important;
  }

  .cycle-name {
    font-size: 0.92rem !important;
  }

  .cycle-note {
    font-size: 0.78rem !important;
    line-height: 1.4 !important;
  }

  .cycle-price {
    font-size: 1rem !important;
  }

  .cycle-discount {
    font-size: 0.72rem !important;
  }

  .note-section {
    margin-bottom: 14px !important;
  }

  .note-section label {
    font-size: 0.82rem !important;
    margin-bottom: 6px !important;
  }

  .price-summary {
    padding: 12px 14px !important;
    margin-bottom: 16px !important;
    border-radius: 12px !important;
  }

  .price-row {
    font-size: 0.85rem !important;
    margin-bottom: 6px !important;
  }

  .price-row:last-child {
    font-size: 1rem !important;
    padding-top: 6px !important;
  }

  .price-row:last-child span:last-child {
    font-size: 1.15rem !important;
  }

  .action-buttons .btn {
    padding: 12px !important;
    font-size: 0.92rem !important;
  }

  /* Khung Điều Khoản & Chính Sách ở dưới cùng */
  .product-desc-card {
    order: 2 !important;
    padding: 16px 14px !important;
    border-radius: 18px !important;
    margin-top: 0 !important;
  }

  .product-desc-card h3 {
    font-size: 0.92rem !important;
    margin-bottom: 10px !important;
  }

  .product-desc-card .desc-content {
    font-size: 0.85rem !important;
    line-height: 1.65 !important;
  }

  .breadcrumb {
    margin-bottom: 12px !important;
    font-size: 0.8rem !important;
    gap: 6px !important;
    white-space: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }
  .breadcrumb::-webkit-scrollbar {
    display: none !important;
  }

  /* ─── 9. Bảng Dữ Liệu Chống Tràn (Table Wrapper) ─── */
  .table-wrapper {
    border-radius: 12px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    border: 1px solid var(--border) !important;
    background: var(--bg-card) !important;
    margin-bottom: 20px !important;
  }

  table {
    min-width: 650px !important;
    width: 100% !important;
  }

  th, td {
    padding: 10px 12px !important;
    font-size: 0.82rem !important;
    white-space: nowrap !important;
  }

  /* ─── 10. Thống Kê & Admin Mobile Experience ─── */
  .admin-layout {
    display: block !important;
    grid-template-columns: 1fr !important;
    min-height: 100vh !important;
    background: var(--bg-base) !important;
  }

  .admin-sidebar {
    display: none !important;
  }

  .admin-content {
    padding: 16px 14px 84px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Admin Mobile Bottom Tab Bar (5 Tabs) */
  .admin-bottom-nav {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 60px !important;
    background: var(--bg-surface) !important;
    border-top: 1px solid var(--border) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    z-index: 900 !important;
    padding: 0 !important;
    padding-bottom: max(env(safe-area-inset-bottom, 4px), 4px) !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3) !important;
    box-sizing: border-box !important;
  }

  .admin-bottom-nav-container {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    align-items: center !important;
  }

  .admin-bottom-tab {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    color: var(--text-muted) !important;
    text-decoration: none !important;
    font-size: 0.7rem !important;
    font-weight: 500 !important;
    transition: var(--transition-fast) !important;
    height: 100% !important;
    position: relative !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .admin-bottom-tab .tab-icon {
    font-size: 1.15rem !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .admin-bottom-tab .tab-icon svg {
    width: 20px !important;
    height: 20px !important;
    stroke-width: 2 !important;
  }

  .admin-bottom-tab .tab-label {
    font-size: 0.65rem !important;
    font-weight: 600 !important;
    line-height: 1.1 !important;
  }

  .admin-bottom-tab.active {
    color: var(--primary) !important;
  }

  .admin-bottom-tab.active .tab-icon svg {
    stroke: var(--primary) !important;
  }

  .admin-bottom-tab.active::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 20% !important;
    right: 20% !important;
    height: 2.5px !important;
    background: var(--gradient-primary) !important;
    border-radius: 0 0 4px 4px !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.5) !important;
  }

  /* Admin Header & Title on Mobile */
  .admin-header,
  .admin-page-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    margin-bottom: 16px !important;
    padding-bottom: 14px !important;
    border-bottom: 1px solid var(--border) !important;
  }

  .admin-page-header-title,
  .admin-title {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
    font-size: 1.25rem !important;
    font-weight: 800 !important;
  }

  .admin-page-header-actions,
  #admin-user {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .admin-page-header-actions .btn,
  #admin-user .btn {
    flex: 1 1 calc(50% - 8px) !important;
    min-width: 140px !important;
    justify-content: center !important;
    font-size: 0.82rem !important;
    padding: 8px 10px !important;
    white-space: normal !important;
    text-align: center !important;
  }

  /* Modals on Mobile — Above bottom nav */
  .modal-backdrop {
    z-index: 1500 !important;
    padding: 12px !important;
    align-items: flex-end !important;
  }

  .modal {
    max-height: 88vh !important;
    max-width: 100% !important;
    margin-bottom: max(env(safe-area-inset-bottom, 12px), 12px) !important;
    border-radius: var(--radius-xl) !important;
    overflow-y: auto !important;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.6) !important;
  }

  .modal-footer {
    padding: 14px 16px !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }


  /* Search & Filter Bar */
  .search-filter-bar {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin-bottom: 14px !important;
    width: 100% !important;
  }

  .search-filter-bar .search-bar {
    width: 100% !important;
    min-width: 0 !important;
  }

  .search-filter-bar .form-select {
    width: 100% !important;
    padding: 9px 14px !important;
  }

  /* Stats Grid */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    margin-bottom: 16px !important;
  }

  .stat-card {
    padding: 12px !important;
    border-radius: 12px !important;
  }

  .stat-val, .stat-value {
    font-size: 1.25rem !important;
  }

  .recent-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  /* Table Touch Scroll */
  .table-wrapper {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    border-radius: var(--radius-md) !important;
    border: 1px solid var(--border) !important;
  }

  .table-wrapper table {
    min-width: 600px !important;
  }

  /* ─── 11. Trang Profile & Wallet ─── */
  .profile-layout {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .profile-header-card {
    flex-direction: column !important;
    text-align: center !important;
    padding: 18px !important;
  }

  .profile-avatar-large {
    width: 64px !important;
    height: 64px !important;
    font-size: 1.75rem !important;
  }

  .wallet-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .vietqr-card {
    padding: 16px !important;
  }

  .vietqr-image-wrapper img {
    max-width: 200px !important;
  }

  /* ─── 12. Chân trang Footer ─── */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    text-align: left !important;
  }

  .footer-bottom {
    flex-direction: column !important;
    text-align: center !important;
    gap: 10px !important;
  }
}
