/**
 *                          ___                   _       _         _ 
 *                         / __)                 | |     | |       | |
 *     _ _ _ _ _ _ _ _ _ _| |__ _____  ____ _   _| |  _  | |__   __| |
 *    | | | | | | | | | (_   __|____ |/ ___) | | | |_/ ) |  _ \ / _  |
 *    | | | | | | | | | | | |  / ___ | |   | |_| |  _ ( _| |_) | (_| |
 *     \___/ \___/ \___(_)|_|  \_____|_|   |____/|_| \_|_)____/ \____|
 *                                                                    
 *
 * 	Author: MD OMAR FARUK
 * 	Author URI: www.faruk.bd
 * 	Author Contact: https://faruk.bd/#contact
 * 	Author Email: info@faruk.bd | farukmr@gmail.com
 * 	Copyright © 2026
 *                          ___                   _       _         _ 
 *                         / __)                 | |     | |       | |
 *     _ _ _ _ _ _ _ _ _ _| |__ _____  ____ _   _| |  _  | |__   __| |
 *    | | | | | | | | | (_   __|____ |/ ___) | | | |_/ ) |  _ \ / _  |
 *    | | | | | | | | | | | |  / ___ | |   | |_| |  _ ( _| |_) | (_| |
 *     \___/ \___/ \___(_)|_|  \_____|_|   |____/|_| \_|_)____/ \____|
 *                                                                    
 */
/*
 * App Builder: what the public site needs - the bottom tab bar the app
 * shows, the "Install the app" banner, and the "Get the app" page. Every
 * class starts with aab- and nothing leans on a theme, so it looks the same
 * under any of them.
 */

:root { --aab-theme: #5b4bff; --aab-bar-h: 62px; }

/* --------------------------------------------------------- inside the app */
html.is-app body { padding-bottom: calc(var(--aab-bar-h) + env(safe-area-inset-bottom, 0px)); }
html.is-app.aab-no-bar body { padding-bottom: 0; }
html.is-app.aab-hide-header .site-header,
html.is-app.aab-hide-header .nv-header { display: none !important; }
html.is-app .aab-install { display: none !important; }
/* an app has no use for a tall footer: keep the legal line, drop the columns */
html.is-app .site-footer .row,
html.is-app .site-footer hr,
html.is-app .nv-cta,
html.is-app .nv-footer-grid { display: none !important; }
html.is-app .nv-footer { margin-top: 16px; border-radius: 0; padding-top: 4px; }
html.is-app .nv-footer-bottom { border-top: 0; }
html.is-app .site-footer .container { padding-top: 1rem !important; padding-bottom: 1rem !important; }

.aab-tabbar {
    position: fixed; z-index: 1040; left: 0; right: 0; bottom: 0;
    display: flex; align-items: stretch; justify-content: space-around;
    height: calc(var(--aab-bar-h) + env(safe-area-inset-bottom, 0px));
    padding: 0 6px env(safe-area-inset-bottom, 0px);
    background: rgba(255, 255, 255, .94); color: #5a6072;
    border-top: 1px solid rgba(20, 21, 26, .09);
    -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
    font-family: inherit;
}
[data-bs-theme="dark"] .aab-tabbar { background: rgba(18, 20, 30, .94); color: #9aa0b6; border-top-color: rgba(255, 255, 255, .08); }
.aab-tabbar a {
    flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    color: inherit; text-decoration: none; font-size: 11px; font-weight: 600; line-height: 1.1;
    -webkit-tap-highlight-color: transparent;
}
.aab-tabbar a i { font-size: 21px; line-height: 1; }
.aab-tabbar a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
.aab-tabbar a.is-on { color: var(--aab-theme); }
.aab-tabbar a.is-on i { transform: translateY(-1px); }
.aab-tabbar a:active { opacity: .7; }

/* --------------------------------------------------------- install banner */
.aab-install {
    position: fixed; z-index: 1045; left: 12px; right: 12px; bottom: 12px; margin: 0 auto; max-width: 460px;
    display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px;
    border-radius: 18px; background: #14151a; color: #fff;
    box-shadow: 0 18px 46px rgba(0, 0, 0, .34);
    transform: translateY(140%); transition: transform .32s cubic-bezier(.2, .8, .2, 1);
    font-family: inherit;
}
.aab-install.is-in { transform: none; }
.aab-install img { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; }
.aab-install-text { flex: 1 1 auto; min-width: 0; display: grid; line-height: 1.25; }
.aab-install-text b { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aab-install-text span { font-size: 12px; opacity: .78; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.aab-install button { border: 0; font: inherit; cursor: pointer; }
.aab-install-go { flex: 0 0 auto; padding: 9px 16px; border-radius: 999px; background: var(--aab-theme); color: #fff; font-size: 13px; font-weight: 700; }
.aab-install-x { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 18px; line-height: 1; }

/* ------------------------------------------------------ "Get the app" page */
.aab-get { display: grid; gap: 18px; }
.aab-hero { display: flex; align-items: center; gap: 18px; padding: 22px; border-radius: 22px; color: #fff; background: linear-gradient(120deg, var(--aab-theme), color-mix(in srgb, var(--aab-theme) 55%, #000)); }
.aab-hero img { flex: 0 0 84px; width: 84px; height: 84px; border-radius: 22px; box-shadow: 0 12px 30px rgba(0, 0, 0, .28); background: #fff; }
.aab-hero h2 { margin: 0 0 6px; font-size: clamp(1.25rem, 3vw, 1.7rem); font-weight: 800; line-height: 1.2; color: #fff; }
.aab-hero p { margin: 0; opacity: .92; }
.aab-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.aab-way { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 18px; border: 1px solid rgba(128, 132, 150, .28); background: rgba(128, 132, 150, .06); }
.aab-way h3 { display: flex; align-items: center; gap: .55rem; margin: 0; font-size: 1.06rem; font-weight: 800; }
.aab-way h3 i { color: var(--aab-theme); font-size: 1.2em; }
.aab-way p { margin: 0; opacity: .85; font-size: .95rem; }
.aab-way ol { margin: 0; padding-inline-start: 1.35rem; list-style: decimal; font-size: .93rem; }
.aab-way ol li { display: list-item; margin-bottom: 5px; padding-inline-start: .15rem; }
.aab-way ol li::before { content: none; }
.aab-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .7rem 1.2rem; border: 0; border-radius: 999px; background: var(--aab-theme); color: #fff !important; font: inherit; font-weight: 700; text-decoration: none !important; cursor: pointer; }
.aab-btn:hover { filter: brightness(1.07); }
.aab-btn-line { background: transparent; color: inherit !important; box-shadow: inset 0 0 0 1.5px rgba(128, 132, 150, .5); }
.aab-way .aab-btn { align-self: flex-start; margin-top: auto; }
.aab-way small { opacity: .7; }
.aab-installed { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; color: #12805c; }
[data-bs-theme="dark"] .aab-installed { color: #3fd09e; }
.aab-qr { display: flex; align-items: center; gap: 18px; padding: 18px 20px; border-radius: 18px; border: 1px dashed rgba(128, 132, 150, .45); }
.aab-qr-box { flex: 0 0 132px; width: 132px; height: 132px; padding: 8px; border-radius: 14px; background: #fff; }
.aab-qr-box svg { width: 100%; height: 100%; display: block; }
.aab-qr p { margin: 0; opacity: .85; }
@media (max-width: 575.98px) {
    .aab-hero { flex-direction: column; text-align: center; padding: 20px 16px; }
    .aab-qr { flex-direction: column; text-align: center; }
    .aab-way .aab-btn { align-self: stretch; }
}
@media (display-mode: standalone) {
    .aab-install { display: none !important; }
}
