.mak-app-shell .figma-mobile-frame { background: #f6f8f6; }
.mak-app-shell .figma-app-main-content { background: #f6f8f6; padding: 16px 18px calc(96px + env(safe-area-inset-bottom,0px)); overflow: visible; }
.mak-role-header { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 64px; min-height: 64px; width: 100%; margin: 0; padding: 8px 18px; background: #076837; color: #fff; box-sizing: border-box; border: none; }
.mak-role-heading { display: flex; align-items: center; gap: 16px; min-width: 0; }
.mak-role-heading strong { font-size: 16px; line-height: 1.4; font-weight: 800; letter-spacing: -0.2px; }
.mak-role-logo { height: 40px; width: auto; object-fit: contain; }
.mak-role-mascot-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 0;
  margin: 0;
  border-radius: 50%;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  flex: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.mak-role-mascot-btn:hover {
  transform: scale(1.12);
}
.mak-role-mascot-btn:active {
  transform: scale(0.94);
}
.mak-role-mascot-btn:focus-visible {
  outline: 2px solid #efb721;
  outline-offset: 2px;
}
.mak-role-mascot-pulse {
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  border: 2px solid rgba(251, 191, 36, 0.9);
  background: rgba(251, 191, 36, 0.18);
  pointer-events: none;
  animation: mak-hotline-pulse 2s infinite ease-out;
}
.mak-role-mascot-pulse-2 { animation-delay: 1s; }
.mak-role-mascot {
  width: 54px;
  height: 54px;
  object-fit: contain;
  display: block;
  flex: none;
  transform-origin: center bottom;
  animation: mak-hotline-shake 2.8s infinite ease-in-out;
}
.mak-role-mascot-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #fbbf24;
  color: #076837;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  border: 1.5px solid #076837;
  animation: mak-badge-bounce 2.8s infinite ease-in-out;
}
@keyframes mak-hotline-pulse {
  0% { transform: scale(0.9); opacity: 0.85; }
  100% { transform: scale(1.5); opacity: 0; }
}
@keyframes mak-hotline-shake {
  0%, 100% { transform: rotate(0deg); }
  4% { transform: rotate(12deg) scale(1.05); }
  8% { transform: rotate(-10deg) scale(1.05); }
  12% { transform: rotate(8deg); }
  16% { transform: rotate(-6deg); }
  20% { transform: rotate(3deg); }
  24% { transform: rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) { .mak-role-mascot-pulse, .mak-role-mascot, .mak-role-mascot-badge { animation: none; } }
@keyframes mak-badge-bounce {
  0%, 100% { transform: scale(1); }
  6% { transform: scale(1.22); }
  14% { transform: scale(1); }
}
.mak-role-back { display: grid; place-items: center; width: 36px; min-height: 44px; margin-left: -8px; color: #fff; flex: none; font-size: 22px; background: none; border: none; cursor: pointer; }
.mak-role-nav { position: fixed; z-index: 50; bottom: 0; left: 0; right: 0; max-width: 440px; margin-inline: auto; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); height: calc(66px + env(safe-area-inset-bottom,0px)); padding: 6px 4px env(safe-area-inset-bottom,0px); background: #fff; border-top: 1px solid #eef1ed; box-shadow: 0 -2px 10px rgba(0,0,0,0.03); }
.mak-role-tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 44px; min-width: 0; color: #7a8780; font-size: 10px; font-weight: 600; line-height: 1.3; text-decoration: none; }
.mak-role-tab-icon { position: relative; display: grid; place-items: center; width: 32px; height: 26px; font-size: 20px; }
.mak-tab-badge { position: absolute; top: -3px; right: 0; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 999px; background: #dc2626; color: #fff; font-size: 9px; font-weight: 800; line-height: 15px; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,0.25); border: 1.5px solid #fff; pointer-events: none; }
.mak-role-tab.active { color: #076837; font-weight: 800; }
.mak-role-tab-center { position: relative; justify-content: flex-end; padding-bottom: 5px; }
.mak-role-tab-center .mak-role-tab-icon { position: absolute; bottom: 24px; width: 44px; height: 44px; border-radius: 14px; background: #f6c03b; color: #163622; font-size: 20px; font-weight: 700; box-shadow: 0 4px 10px rgba(246, 192, 59, 0.3); }
.mak-role-tab:focus-visible, .mak-role-back:focus-visible { outline: 2px solid #efb721; outline-offset: 2px; border-radius: 8px; }
.mak-app-shell .figma-home-feed { display: grid; gap: 16px; }
.mak-app-shell .btn-card-scan-gold { min-height: 56px; border-radius: 16px; background: #ffc42e; box-shadow: none; font-size: 13px; }
.mak-app-shell .section-title-bar h2 { font-size: 16px; }
.mak-app-shell .figma-products-row { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.mak-app-shell .figma-products-row .product-card { min-width: 0; width: auto; }
.mak-app-shell .promo-banner-card { border-radius: 18px; box-shadow: none; }
.home-product-tile { min-width: 0; border: 1px solid #e8ebe7; border-radius: 14px; overflow: hidden; }
.home-product-tile .product-art-figma { height: 100px; padding: 8px; }
.home-product-tile .product-real-img { max-height: 84px; }
.home-product-tile > span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; padding: 8px; font-size: 10px; font-weight: 600; line-height: 1.5; }
@media(max-width:575.98px) {
  .mak-app-shell .figma-mobile-frame,
  .figma-mobile-frame {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    box-shadow: none !important;
    border-left: none !important;
    border-right: none !important;
  }
  .mak-role-header {
    width: 100% !important;
  }
  .mak-role-nav {
    max-width: 100% !important;
  }
}
@media(max-width:359px) { .mak-role-header { padding-inline: 14px; } .mak-role-heading { gap: 10px; } .mak-role-heading strong { font-size: 14px; } .mak-role-tab { font-size: 9px; } }
@supports (padding-top: env(safe-area-inset-top)) {
  .mak-role-header {
    padding-top: calc(8px + env(safe-area-inset-top, 0px));
    padding-left: calc(18px + env(safe-area-inset-left, 0px));
    padding-right: calc(18px + env(safe-area-inset-right, 0px));
    min-height: calc(64px + env(safe-area-inset-top, 0px));
  }
}


/* Slider sản phẩm nổi bật (trang chủ) */
.figma-feed-section { min-width: 0; }
.featured-slider { max-width: 100%; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding: 2px 2px 8px; margin: 0 -2px; scrollbar-width: none; }
.featured-slider::-webkit-scrollbar { display: none; }
.featured-slide { flex: 0 0 34%; max-width: 150px; scroll-snap-align: start; display: flex; flex-direction: column; border: 1px solid #e8ebe7; border-radius: 14px; background: #fff; overflow: hidden; text-decoration: none; color: inherit; }
.featured-slide-art { display: flex; align-items: center; justify-content: center; height: 128px; padding: 8px; background: #f6f8f5; }
.featured-slide-art img { max-width: 100%; max-height: 100%; object-fit: contain; }
.featured-slide-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; padding: 8px; font-size: 11px; font-weight: 600; line-height: 1.4; text-align: center; }
