/**
 *                          ___                   _       _         _ 
 *                         / __)                 | |     | |       | |
 *     _ _ _ _ _ _ _ _ _ _| |__ _____  ____ _   _| |  _  | |__   __| |
 *    | | | | | | | | | (_   __|____ |/ ___) | | | |_/ ) |  _ \ / _  |
 *    | | | | | | | | | | | |  / ___ | |   | |_| |  _ ( _| |_) | (_| |
 *     \___/ \___/ \___(_)|_|  \_____|_|   |____/|_| \_|_)____/ \____|
 *                                                                    
 *
 * 	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; }
}

/* ------------------------------------------------------- the "More" sheet */
.aab-tabbar .aab-more {
    flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    border: 0; background: none; color: inherit; font: inherit; font-size: 11px; font-weight: 600; line-height: 1.1; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.aab-tabbar .aab-more i { font-size: 21px; line-height: 1; }
.aab-tabbar .aab-more:active { opacity: .7; }
html.aab-sheet-open .aab-tabbar .aab-more { color: var(--aab-theme); }
.aab-avatar { display: inline-grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; background: var(--aab-theme); color: #fff; font-weight: 800; font-size: 18px; line-height: 1; text-transform: uppercase; }
.aab-avatar-sm { width: 22px; height: 22px; font-size: 11px; }
.aab-sheet {
    position: fixed; z-index: 1039; inset: 0; display: flex; align-items: flex-end; justify-content: center;
    padding-bottom: calc(var(--aab-bar-h) + env(safe-area-inset-bottom, 0px));
    background: rgba(10, 12, 20, 0); transition: background .25s ease; font-family: inherit;
}
.aab-sheet.is-in { background: rgba(10, 12, 20, .5); }
.aab-sheet-panel {
    width: 100%; max-width: 520px; max-height: calc(100% - 24px); overflow-y: auto; overscroll-behavior: contain;
    padding: 6px 14px 16px; border-radius: 22px 22px 0 0; background: #fff; color: #14151a;
    box-shadow: 0 -18px 50px rgba(0, 0, 0, .25);
    transform: translateY(105%); transition: transform .26s cubic-bezier(.2, .8, .2, 1);
}
.aab-sheet.is-in .aab-sheet-panel { transform: none; }
[data-bs-theme="dark"] .aab-sheet-panel { background: #151824; color: #eef0f6; }
.aab-sheet-head { position: sticky; top: -6px; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 4px 10px; background: inherit; }
.aab-sheet-head b { font-size: 16px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aab-sheet-x { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(120, 125, 150, .16); color: inherit; font-size: 13px; cursor: pointer; }
.aab-who { display: flex; align-items: center; gap: 12px; padding: 6px 4px 12px; }
.aab-who-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.aab-who-text strong, .aab-who-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aab-who-text small { opacity: .65; font-size: 12.5px; }
.aab-rows { margin: 0 0 10px; border-radius: 16px; background: rgba(120, 125, 150, .1); overflow: hidden; }
.aab-rows form { margin: 0; }
.aab-row {
    display: flex; align-items: center; gap: 13px; width: 100%; min-height: 50px; padding: 0 14px;
    border: 0; border-bottom: 1px solid rgba(120, 125, 150, .16); background: none; color: inherit; text-decoration: none;
    font: inherit; font-size: 15px; font-weight: 600; text-align: start; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.aab-rows > :last-child, .aab-rows > :last-child .aab-row { border-bottom: 0; }
.aab-row:hover { text-decoration: none; color: inherit; }
.aab-row:active { background: rgba(120, 125, 150, .18); }
.aab-row > i:first-child { flex: 0 0 22px; font-size: 19px; color: var(--aab-theme); text-align: center; }
.aab-row > span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aab-row-go { flex: 0 0 auto; font-size: 13px; opacity: .45; }
[dir="rtl"] .aab-row .bi-chevron-right { transform: scaleX(-1); }
.aab-langs { padding: 12px 14px 14px; }
.aab-langs-title { display: block; margin-bottom: 9px; font-size: 13px; font-weight: 700; opacity: .7; }
.aab-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.aab-chips a { padding: 6px 12px; border-radius: 999px; background: rgba(120, 125, 150, .16); color: inherit; font-size: 13px; font-weight: 600; text-decoration: none; }
.aab-chips a.is-on { background: var(--aab-theme); color: #fff; }
html.aab-sheet-open { overflow: hidden; }
html.aab-no-bar .aab-sheet { padding-bottom: 0; }
