.pwa-install-button { display: flex; align-items: center; gap: .65rem; border: 0; border-radius: 1rem; padding: .7rem .65rem; color: #fff; background: linear-gradient(135deg, #696cff 0%, #8068f5 52%, #9b63e8 100%); box-shadow: 0 8px 18px rgba(71, 73, 160, .24); text-align: left; transition: transform .2s ease, box-shadow .2s ease, filter .2s ease; cursor: pointer; }
.pwa-install-button:hover, .pwa-install-button:focus-visible { color: #fff; filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(71, 73, 160, .32); }
.pwa-install-button:focus-visible { outline: 3px solid rgba(105, 108, 255, .28); outline-offset: 2px; }
.pwa-install-icon { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; flex: 0 0 2.25rem; border-radius: .75rem; background: rgba(255, 255, 255, .2); font-size: 1.3rem; }
.pwa-install-copy { display: flex; min-width: 0; flex: 1 1 auto; flex-direction: column; line-height: 1.2; }
.pwa-install-copy strong { font-size: .82rem; font-weight: 800; white-space: nowrap; }
.pwa-install-copy small { margin-top: .25rem; color: rgba(255, 255, 255, .88); font-size: .68rem; white-space: nowrap; }
.pwa-install-arrow { flex: 0 0 auto; color: rgba(255, 255, 255, .78); font-size: 1.25rem; }

#layout-menu { display: flex !important; flex-direction: column !important; height: 100vh !important; }
#layout-menu > .menu-inner { flex: 1 1 auto !important; min-height: 0 !important; overflow-y: auto !important; -webkit-overflow-scrolling: touch !important; padding-bottom: 20px !important; }
#layout-menu > .sidebar-footer,
.vehicle-sidebar-footer { 
    flex: 0 0 auto !important; 
    margin-top: auto !important; 
    padding: .85rem .85rem calc(.85rem + env(safe-area-inset-bottom, 20px)) !important; 
    border-top: 1px solid rgba(105, 108, 255, .15) !important; 
    background: #ffffff !important; 
    position: sticky !important;
    bottom: 0 !important;
    z-index: 1050 !important;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05) !important;
}

@media (max-width: 1199.98px) {
    /* บนหน้าจอมือถือ/แท็บเล็ต: ให้เว้นระยะด้านล่างกันถูกบังจากแถบ Home Bar / Bottom Nav */
    #layout-menu > .sidebar-footer,
    .vehicle-sidebar-footer {
        padding-bottom: calc(env(safe-area-inset-bottom, 15px) + 20px) !important;
        margin-bottom: 0 !important;
    }
}

.sidebar-footer .pwa-install-button,
.vehicle-sidebar-footer .pwa-install-button { width: 100% !important; justify-content: center !important; }
@keyframes pwaInstallAppear { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .pwa-install-button { animation: none; transition: none; } }
.pwa-ios-help { display: grid; gap: .7rem; margin-top: .35rem; text-align: left; line-height: 1.55; }
.pwa-ios-step { display: flex; align-items: flex-start; gap: .7rem; padding: .7rem .75rem; border: 1px solid #ececf5; border-radius: .8rem; background: #fafaff; }
.pwa-ios-step-number { display: grid; place-items: center; width: 1.55rem; height: 1.55rem; flex: 0 0 1.55rem; border-radius: 50%; color: #fff; background: #696cff; font-size: .85rem; font-weight: 800; }
.pwa-ios-step p { margin: 0; color: #54566a; font-size: .95rem; }
.pwa-ios-step strong { color: #4d50c7; }
.pwa-ios-step strong i { font-size: 1.1rem; vertical-align: -.1rem; }
.pwa-ios-action { display: inline-block; margin-top: .2rem; padding: .12rem .4rem; border-radius: .35rem; background: #eeefff; }
