/* Custom @font-face đè đường dẫn font nội bộ & ép font-display: swap */
@font-face {
  font-family: 'Font Awesome 6 Brands';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/fa-brands-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Font Awesome 6 Free';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/assets/fonts/fa-solid-900.woff2') format('woff2');
}

@font-face {
  font-family: 'bootstrap-icons';
  font-style: normal;
  font-weight: normal;
  font-display: swap;
  src: url('/assets/fonts/bootstrap-icons.woff2') format('woff2');
}

.hero-banner-container { background: #f7f3eb; position: relative; }
.hero-center-mask { background: radial-gradient(circle at 45% 40%, rgba(255,255,255,0.88) 0%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0.15) 100%); }
.btn-green-main { background: #0b634b; transition: background-color .25s ease; }
.btn-green-main:hover { background: #084c39; }
.btn-brush-green { background: #0d7a5f; border-radius: 9999px; box-shadow: 0 10px 25px -5px rgba(13,122,95,0.4); position: relative;contain: layout; box-sizing: border-box; }
.polaroid-card {
    background-color: #ffffff;
    padding: 12px 12px 28px 12px;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
    transform: rotate(var(--rot, 0deg)) scale(1);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), z-index 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.polaroid-card:hover {
    transform: rotate(var(--rot, 0deg)) scale(1.08) translateY(-6px) !important;
    z-index: 50 !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.22), 0 10px 10px -5px rgba(0, 0, 0, 0.1) !important;
}
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
img { image-rendering: -webkit-optimize-contrast; backface-visibility: hidden; }
main { content-visibility: auto; contain-intrinsic-size: 1000px; }
.custom-search-scroll::-webkit-scrollbar { width: 6px; }
.custom-search-scroll::-webkit-scrollbar-track { background: #fff7ed; border-radius: 8px; }
.custom-search-scroll::-webkit-scrollbar-thumb { background: #fdba74; border-radius: 8px; }
.custom-search-scroll::-webkit-scrollbar-thumb:hover { background: #f97316; }
.pka-role-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(15, 23, 42, 0.4); backdrop-filter: blur(4px); z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 12px; opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s ease; }
.pka-role-overlay.active { opacity: 1; visibility: visible; }
.pka-role-modal { width: 100%; max-width: 520px; background: #f8fafc; border: 1px solid #ffffff; border-radius: 24px; box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.12); overflow: hidden; transform: scale(0.95) translateY(10px); transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1); }
.pka-role-overlay.active .pka-role-modal { transform: scale(1) translateY(0); }
.pka-role-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 10px 18px; background: transparent; border-bottom: 1px solid #f1f5f9; }
.pka-role-header h3 { margin: 0; font-size: 13.5px; font-weight: 800; color: #1e293b; letter-spacing: 0.2px; display: flex; align-items: center; gap: 6px; }
.pka-role-header h3 i { color: #f59e0b; font-size: 15px; }
.pka-role-close { width: 28px; height: 28px; border-radius: 50%; background: #f1f5f9; color: #64748b; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; font-size: 12px; }
.pka-role-close:hover { background: #e2e8f0; color: #0f172a; }
.pka-role-body { padding: 20px 24px 24px 24px; display: flex; flex-direction: column; gap: 16px; }
.pka-role-card { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: #ffffff; border: 1px solid #e2e8f0; text-decoration: none !important; transition: all 0.25s ease; overflow: hidden; }
.pka-role-card:hover { transform: translateY(-1px); box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.05); }
.pka-role-card.c-user { border-left: 4px solid #d97706; }
.pka-role-card.c-user:hover { border-color: #d97706; }
.pka-role-card.c-partner { border-left: 4px solid #059669; }
.pka-role-card.c-partner:hover { border-color: #059669; }
.pka-role-icon { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; transition: all 0.25s ease; }
.c-user .pka-role-icon { background: #fef3c7; color: #d97706; }
.c-user:hover .pka-role-icon { background: #d97706; color: #ffffff; }
.c-partner .pka-role-icon { background: #e6f4ea; color: #059669; }
.c-partner:hover .pka-role-icon { background: #059669; color: #ffffff; }
.pka-role-info { flex-grow: 1; }
.pka-role-info h4 { margin: 0 0 2px 0; font-size: 13.5px; font-weight: 700; color: #0f172a; line-height: 1.3; transition: color 0.25s ease; }
.c-user:hover .pka-role-info h4 { color: #d97706; }
.c-partner:hover .pka-role-info h4 { color: #059669; }
.pka-role-info p { margin: 0; font-size: 11.5px; color: #64748b; line-height: 1.4; }
.pka-role-arrow { color: #cbd5e1; font-size: 14px; transition: transform 0.2s, color 0.2s; }
.c-user:hover .pka-role-arrow { transform: translateX(3px); color: #d97706; }
.c-partner:hover .pka-role-arrow { transform: translateX(3px); color: #059669; }
.pwa-ios-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; height: 100dvh; background: rgba(15, 23, 42, 0.5); backdrop-filter: blur(4px); z-index: 999999; display: flex; align-items: center; justify-content: center; padding: 10px; opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s ease; }
.pwa-ios-overlay.show { opacity: 1; visibility: visible; }
.pwa-ios-modal { width: 100%; max-width: 360px; max-height: 82vh; max-height: 82dvh; overflow-y: auto; background: #f8fafc; border-radius: 20px; padding: 12px 14px 14px 14px; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.2); transform: scale(0.92) translateY(15px); transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1); position: relative; display: flex; flex-direction: column; }
.pwa-ios-modal::-webkit-scrollbar { width: 0px; background: transparent; }
.pwa-ios-overlay.show .pwa-ios-modal { transform: scale(1) translateY(0); }
.pwa-drag-handle { width: 32px; height: 4px; background: #cbd5e1; border-radius: 10px; margin: 0 auto 6px auto; flex-shrink: 0; }
.pwa-title { font-size: 15px; font-weight: 800; color: #0f172a; margin-bottom: 2px; }
.pwa-subtitle { font-size: 11.5px; color: #64748b; margin: 0; }
.pwa-tab-wrapper { display: flex; background: #e2e8f0; padding: 3px; border-radius: 99px; gap: 4px; flex-shrink: 0; margin-top: 8px; }
.pwa-tab-btn { flex: 1; border: none; background: transparent; padding: 6px 8px; border-radius: 99px; font-size: 12px; font-weight: 700; color: #64748b; cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center; justify-content: center; }
.pwa-tab-btn.active { background: #d97706; color: #ffffff; box-shadow: 0 3px 8px rgba(217, 119, 6, 0.25); }
.pwa-tab-pane { display: none; margin-top: 8px; }
.pwa-tab-pane.active { display: block; }
.pwa-video-container { width: 100%; max-width: 200px; margin: 0 auto; border-radius: 16px; overflow: hidden; background: #000; border: 2px solid #1e293b; }
.pwa-video-element { width: 100%; max-height: 45dvh; object-fit: contain; display: block; border-radius: 12px; }
.btn-understand { display: block; width: 100%; max-width: 200px; margin: 10px auto 0 auto; background: #1e1b4b; color: #ffffff; border: none; border-radius: 999px; padding: 9px 16px; font-size: 13px; font-weight: 800; letter-spacing: 0.5px; cursor: pointer; text-align: center; transition: background 0.2s ease, transform 0.1s ease; flex-shrink: 0; }
.btn-understand:active { transform: scale(0.96); background: #0f172a; }
@keyframes pwaSwipe {
    0% { transform: translateX(-200%) skewX(-12deg); }
    30% { transform: translateX(300%) skewX(-12deg); }
    100% { transform: translateX(300%) skewX(-12deg); }
}

.animate-pwa-swipe {
    animation: pwaSwipe 3.5s infinite ease-in-out;
}