/* ==========================================================================
   Projukti Bari — Shared .pb-* components (BUG-003, 2026-11-29)
   Single source of truth for .pb-btn / .pb-note, used by BOTH layouts:
   - layouts/app (tools views: CV builders, card studio/gallery + cv-panels
     partial) — store.css has no .pb-* rules, so without this file the
     buttons render as native unstyled buttons/links.
   - layouts/public (flow/checkout views) — these rules were previously
     inline in that layout's <style> block; they now live here only.
   Rules copied VERBATIM from layouts/public.blade.php (2026-11-29); do not
   change colours/sizes here — flow views must render identically.
   Depends on CSS vars defined by both layouts: --orange, --navy, --muted
   (store.css :root and public.blade.php :root both define them with the
   same values: #E8650F / #1B2B52 / #5B6B8C).
   NOTE: only .pb-btn/.pb-note are shared. The other .pb-* rules
   (.pb-card, .pb-badge, .pb-table, ...) are used ONLY by layouts/public
   flow views and stay inline there — moving the whole inline block (which
   also sets :root/body/main/header values that conflict with store.css)
   would regress the storefront.
   ========================================================================== */
.pb-btn { display:inline-block; padding:12px 22px; border:none; border-radius:10px; background:var(--orange); color:#fff; font-size:15.5px; font-weight:700; cursor:pointer; text-decoration:none; text-align:center; }
.pb-btn:hover { filter:brightness(.95); }
.pb-btn.navy { background:var(--navy); }
.pb-btn.ghost { background:#fff; color:var(--navy); border:1.5px solid var(--navy); }
.pb-btn.block { display:block; width:100%; }
.pb-btn:disabled { opacity:.6; cursor:wait; }
.pb-note { font-size:13px; color:var(--muted); line-height:1.7; }

/* ==========================================================================
   BUG-043 (2026-11-30) — Shared flows header (.pb-top).
   One-row compact header mirroring the main layout's header
   (layouts/app): logo image + brand text, nav links, language toggle,
   hamburger below 860px — ~60px tall at 390px and at 1919px, instead of
   the old wrapping two-row (~180px) header. Used by layouts/public AND
   by the standalone /verify page via public/partials/flow-header.
   Scoped .pb-top* selectors ONLY — no element/:root rules — so loading
   this file in layouts/app (which already loads it) changes nothing
   there, and the BUG-028 desktop header is untouched. The header stays
   navy (the flows pages' identity); the flow nav links (Verify /
   Refund Center / Reseller Top-up) are NOT in the main header, so they
   live here. Breakpoint 860px (wider than the main header's 760px):
   the three Bengali links + toggle need ~760px, so they collapse
   earlier. No theme toggle: flow pages are light-only (their .pb-*
   styles are hardcoded light) and a toggle that changes nothing would
   be a dead control — dark mode for flow pages is separate work.
   The lang-toggle colour rules are needed here (not i18n.css): on the
   navy header the links would otherwise inherit the layout's
   `a { color:var(--navy) }` and be invisible; they used to be visible
   only because the toggle sat inside nav.pb-nav.
   ========================================================================== */
.pb-top { background:var(--navy); color:#fff; padding:0; position:sticky; top:0; z-index:100; box-shadow:0 2px 12px rgba(15,26,58,.25); }
.pb-top-in { max-width:960px; margin:0 auto; display:flex; align-items:center; gap:16px; flex-wrap:nowrap; padding:10px 20px; }
.pb-brand { display:flex; align-items:center; gap:10px; text-decoration:none; color:#fff; flex:none; }
.pb-brand img { width:38px; height:40px; object-fit:contain; display:block; }
.pb-brand-text strong { display:block; font-size:17px; letter-spacing:1px; color:#fff; line-height:1.15; }
.pb-brand-text small { display:block; font-size:10.5px; letter-spacing:1px; color:var(--gold); font-weight:600; line-height:1.2; }
.pb-nav { margin-left:auto; display:flex; gap:4px; flex-wrap:nowrap; }
.pb-nav a { color:#C9D6F2; text-decoration:none; font-size:14px; font-weight:600; padding:8px 12px; border-radius:8px; white-space:nowrap; }
.pb-nav a:hover, .pb-nav a.active { color:#fff; background:rgba(255,255,255,.12); }
.pb-header-actions { display:flex; align-items:center; gap:10px; margin-left:auto; flex:none; }
.pb-top .lang-toggle a { color:#C9D6F2; text-decoration:none; }
.pb-top .lang-toggle a.on { color:#fff; }
.pb-top .lang-toggle span { color:#C9D6F2; }
.pb-nav-toggle { display:none; background:transparent; border:1px solid rgba(255,255,255,.4); color:#fff; border-radius:8px; width:40px; height:40px; cursor:pointer; font-size:19px; line-height:1; flex:none; }
@media (max-width:860px) {
    .pb-top-in { padding:10px 16px; gap:10px; }
    .pb-brand-text strong { font-size:16px; }
    .pb-nav-toggle { display:block; }
    .pb-nav { display:none; position:absolute; top:100%; left:0; right:0; background:var(--navy); flex-direction:column; padding:10px 16px 16px; border-top:1px solid rgba(255,255,255,.14); box-shadow:0 12px 24px rgba(15,26,58,.35); margin:0; }
    .pb-nav.open { display:flex; }
    .pb-nav a { padding:11px 8px; border-bottom:1px solid rgba(255,255,255,.12); border-radius:0; }
    .pb-nav a:last-child { border-bottom:none; }
}

/* BUG-097: PWA install prompt bar — ported from the old site
   (.pwa-install). Fixed bottom bar, mobile only (hidden on
   desktop via the media query, and in app/standalone mode the
   script never shows it). Shown only when the App Install Prompt
   toggle is ON (Admin → Integrations → App & API). */
.pwa-install{position:fixed;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));z-index:350;background:#111D3A;color:#fff;border:1px solid rgba(212,160,74,.5);border-radius:16px;padding:13px 14px;display:none;align-items:center;gap:12px;box-shadow:0 16px 40px rgba(10,16,34,.4)}
.pwa-install.show{display:flex}
.pwa-install b{font-size:14.5px;display:block}
.pwa-install small{color:#B9C6E4;font-size:12.5px}
.pwa-install .go{background:#E8650F;color:#fff;border:0;font:inherit;font-weight:700;font-size:13.5px;padding:9px 14px;border-radius:10px;cursor:pointer;flex:none}
.pwa-install .x{background:none;border:0;color:#B9C6E4;font-size:19px;cursor:pointer;flex:none;padding:4px}
@media(min-width:821px){.pwa-install{display:none!important}}
