/* Ask Balqees application interface - 2026-11-07 */
.bq-app{--app-inset-top:env(safe-area-inset-top,0px);--app-inset-bottom:env(safe-area-inset-bottom,0px);height:auto;min-height:100vh;overflow:visible;--app-primary:#7b4d90;--app-text:#2e2635;--app-muted:#756b7e;--app-soft:#f1e8f6;--app-line:#eee9f1;--footer-h:calc(76px + var(--app-inset-bottom));--brand:var(--app-primary);--brand-2:#68417b;--muted:var(--app-muted);--ink:var(--app-text);--bg:#f7f6fa;--stroke:var(--app-line);background:var(--bg);color:var(--app-text);padding-bottom:calc(94px + var(--app-inset-bottom))!important;text-rendering:optimizeLegibility}
.bq-app a,.bq-app button{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.bq-app :is(a,button,input,select,textarea):focus-visible{outline:3px solid #7b4d90;outline-offset:3px}
.bq-app .app-topbar{height:calc(68px + var(--app-inset-top));padding:var(--app-inset-top) 0 0;display:block;background:#fff;border-bottom:1px solid var(--app-line);position:sticky;top:0;z-index:40;box-shadow:0 2px 12px rgba(55,30,75,.025)}
.bq-app .app-topbar__inner{display:grid;grid-template-columns:48px minmax(0,1fr) 48px;align-items:center;direction:ltr;max-width:520px;height:68px;width:100%;margin:0 auto;padding:0 16px;gap:8px}
.bq-app .app-topbar .brand{display:flex;justify-content:center;min-width:0;direction:rtl}
.bq-app .app-topbar .brand a{display:flex;align-items:center;justify-content:center;min-height:48px}
.bq-app .app-topbar .brand__logo{height:48px;width:132px;max-width:100%;border-radius:0;object-fit:contain;display:block}
.bq-app .app-topbar .icon-btn,.bq-app .app-topbar .site-header-filter{width:48px;height:48px;min-height:48px;border-radius:14px;border:1px solid var(--app-line);background:#f8f5fa;color:var(--app-primary);display:flex;align-items:center;justify-content:center;padding:0;cursor:pointer;text-decoration:none;transition:background .15s ease}
.bq-app .app-topbar .topbar__menu{justify-self:end}
.bq-app .app-topbar .site-header-filter{width:48px;gap:0;direction:rtl}
.bq-app .app-topbar :is(.icon-btn,.site-header-filter) svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.bq-app .app-topbar .site-header-filter circle{fill:#f8f5fa}
.bq-app .app-topbar :is(.icon-btn,.site-header-filter):hover{background:var(--app-soft)}
.bq-app #sideMenu .side-menu__btn:not(.ghost){background:var(--app-primary)!important;font-weight:700!important}
.bq-app .app-bottom-nav{position:fixed;inset:auto 0 0;z-index:35;height:var(--footer-h)!important;min-height:76px;padding:0 0 var(--app-inset-bottom)!important;background:var(--app-primary);border-top:1px solid rgba(255,255,255,.12);display:block;box-shadow:0 -4px 20px rgba(55,30,75,.12)}
.bq-app .app-bottom-nav__inner{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:center;direction:rtl;max-width:520px;height:76px;width:100%;margin:0 auto;padding:4px 8px;gap:0}
.bq-app .app-bottom-nav .app-nav-link{min-width:0;width:100%;height:64px;min-height:48px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:3px 0!important;border:0;border-radius:15px;background:transparent;color:#f4edf7;text-decoration:none;position:relative;transition:color .15s ease,transform .15s ease}
.bq-app .app-nav-icon{display:flex;align-items:center;justify-content:center;flex:0 0 32px;width:48px;height:32px;border-radius:12px;position:relative;transition:background .15s ease}
.bq-app .app-bottom-nav .app-nav-icon svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.bq-app .app-nav-label{font-size:12px;font-weight:500;line-height:16px;white-space:nowrap;letter-spacing:0}
.bq-app .app-nav-link[aria-current="page"]{color:#fff}
.bq-app .app-nav-link[aria-current="page"] .app-nav-icon{background:#fff;color:var(--app-primary)}
.bq-app .app-nav-link[aria-current="page"] .app-nav-label{font-weight:700}
.bq-app .app-nav-link--ask .app-nav-icon{width:44px;height:36px;flex-basis:36px;border-radius:13px;background:rgba(255,255,255,.16);color:#fff;border:1px solid rgba(255,255,255,.3);box-shadow:none}
.bq-app .app-nav-link--ask[aria-current="page"] .app-nav-icon{background:#68417b}
.bq-app .app-nav-link--ai .app-nav-icon{background:transparent;overflow:visible}
.bq-app .app-bottom-nav .app-nav-link--ai img{display:block;width:54px!important;height:57px!important;max-width:none;object-fit:contain;border:0;border-radius:0;background:none;margin:0;transform:translateY(-8px);filter:none;animation:none}
.bq-app .app-nav-link:active{transform:translateY(1px)}
.bq-app .app-nav-link:hover{color:#fff}
.bq-app .app-bottom-nav .app-nav-link:focus-visible{outline:2px solid #fff;outline-offset:-2px}
.bq-app .q-card__meta svg{width:18px;height:18px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.bq-app .q-card__meta .meta{gap:6px}
.bq-app .q-card__meta .meta-btn{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:36px;border:0;background:none;padding:4px 6px;color:var(--app-muted);font-family:inherit;font-size:13px}
.bq-app .ai-frame{height:calc(100vh - 68px - var(--footer-h) - 24px);height:calc(100dvh - 68px - var(--footer-h) - 24px)}
.bq-home .app>main.container{width:100%;max-width:520px!important;padding:16px 16px 20px!important;margin:0 auto!important}
.bq-home .section{margin-top:20px}
.bq-home .bq-banner-section{margin-top:0}
.bq-home .bq-banner{border:1px solid var(--app-line);border-radius:20px;background:#fff;box-shadow:0 3px 14px rgba(55,30,75,.035)}
.bq-home .bq-banner__slide{height:clamp(164px,44vw,216px);background:#fff}
.bq-home .bq-banner__slide img{object-fit:contain}
.bq-home .bq-banner__dots,.bq-home .bq-featured-dots{margin-top:10px;gap:6px;align-items:center;min-height:10px}
.bq-home :is(.bq-banner__dot,.bq-featured-dot){height:5px;width:5px;background:#d9cedf;padding:0;transition:width .15s ease,background .15s ease}
.bq-home :is(.bq-banner__dot,.bq-featured-dot).is-active{width:16px;background:var(--app-primary)}
.bq-home .section__head{min-height:44px;margin-bottom:10px;padding:0;gap:12px}
.bq-home .section__head h2{font-size:20px;font-weight:700;line-height:1.4;color:var(--app-text);margin:0}
.bq-home .section__head .link{display:flex;align-items:center;min-height:44px;font-size:13px;font-weight:500;color:var(--app-primary);white-space:nowrap}
.bq-home .q-card{background:#fff;border:1px solid var(--app-line);border-radius:20px;padding:16px;box-shadow:0 3px 14px rgba(55,30,75,.045)}
.bq-home .q-card--wide{margin-bottom:12px}
.bq-home .q-card--featured{background:#fcf9ff;border:1px solid #e2d4eb;box-shadow:0 3px 14px rgba(55,30,75,.035)}
.bq-home .q-card__top{align-items:center;gap:10px;margin-bottom:12px}
.bq-home .q-card .user{min-width:0;gap:9px}
.bq-home .q-card .user__name{font-size:15px!important;font-weight:700!important;color:var(--app-text)!important;line-height:1.4;overflow-wrap:anywhere}
.bq-home .q-card .user__title,.bq-home .q-card .user__title span{color:var(--app-muted)!important;font-size:12px;font-weight:400!important;line-height:1.5}
.bq-home .q-card .user__title .dot{display:none}
.bq-home .q-card :is(.user__avatar,.user__avatar img){border-radius:14px!important}
.bq-home .q-card .badge{font-size:12px;font-weight:500;color:#6a417d;background:#f1eaf6;border:0;line-height:1.5;padding:6px 9px;border-radius:10px;max-width:48%;white-space:normal;text-align:center}
.bq-home .q-card__text{font-size:17px;font-weight:400;line-height:28px;color:var(--app-text);margin:10px 0 14px}
.bq-home .q-card__meta{color:var(--app-muted);font-size:13px;font-weight:400;line-height:1.5;border-top:1px solid #f1edf4;margin-top:12px;padding-top:8px!important;padding-bottom:0!important}
.bq-home .q-card__meta .js-like-count{color:inherit}
.bq-home .cards-row{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;direction:rtl;padding:0 0 5px;scrollbar-width:none}
.bq-home .cards-row>.q-card-link{flex:0 0 100%;min-width:0;scroll-snap-align:start}
.bq-home .cards-row::-webkit-scrollbar{display:none}
@media(max-width:359px){.bq-app .app-topbar__inner{padding:0 12px;grid-template-columns:48px minmax(0,1fr) 48px;gap:6px}.bq-app .app-topbar .site-header-filter{width:48px}.bq-app .app-topbar .brand__logo{width:116px}.bq-app .app-nav-label{font-size:11px}.bq-home .app>main.container{padding:14px 12px 20px!important}.bq-home .q-card{padding:14px}.bq-home .section__head h2{font-size:19px}}
@media(prefers-reduced-motion:reduce){.bq-app .app-nav-link,.bq-app .app-nav-icon,.bq-app .app-topbar :is(.icon-btn,.site-header-filter){transition:none}}

/* Android app WebView already sits between the native system bars. */
.bq-app.bq-android-webview { --app-inset-top: 0px; --app-inset-bottom: 0px; }
