/* ==========================================================================
   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/app in flow mode (flow/checkout views) — these rules were
     previously inline in the deleted layouts/public <style> block;
     they now live here only (Task 5 block at the end of this file).
   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 (Task 5, 2026-11-30): the other .pb-* rules (.pb-card,
   .pb-badge, .pb-table, ...) used to stay inline in layouts/public;
   they now live in the Task 5 block at the end of this file, scoped
   to body.pb-flow (see there) — layouts/public is deleted and the
   single layouts/app.blade.php serves both storefront and flow views.
   ========================================================================== */
.pb-btn { display:inline-block; padding:13px 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; } /* BUG-117: 12px→13px vertical, 43px→~45px tall */
.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:12px; text-decoration:none; color:#fff; flex:none; padding:2px 0; } /* BUG-117: 40px→44px tall hit area */
.pb-brand img { width:auto; height:40px; object-fit:contain; display:block; } /* LOGO-FAQ-FIX 2026-12-03: transparent fox mark (logo/mark.webp), uniform 40px — the old 38×40 attrs on the square 64×64 tile stretched it slightly. */
.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:11px 12px; border-radius:8px; white-space:nowrap; line-height:1.7; } /* BUG-117: 8px→11px vertical, ~40px→~46px tall; line-height:1.7 — /account renders lang="en" (Inter, normal ~1.21) so its nav links measured 39px without it, while bn pages were ~46px */
.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:44px; height:44px; cursor:pointer; font-size:19px; line-height:1; flex:none; } /* BUG-117: 40px→44px */
/* BUG-116: the lang-toggle row inside the open dropdown — hidden by
   default (desktop and >400px keep the toggle in the header actions). */
.pb-nav-lang { display: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-116 (2026-11-30): at 320px the flow header itself overflowed
   (body 378px — brand ~228px set by the tagline + 72px toggle + 40px
   hamburger + gaps vs 288px content width). The breakpoint is 400px,
   not 320px, because the overflow threshold is ~385px. At ≤400px the
   header lang-toggle hides; the toggle reappears as a row inside the
   open dropdown, so language switching stays reachable. After the fix
   at 320px: brand 203 + hamburger 44 + gaps ≈ 267 ≤ 288px, one row,
   ~60px.
   LOGO-FAQ-FIX follow-up (2026-12-03, blueprint §1.4 amendment): the
   tagline hide moved OUT of this block to ≤480px (see below) — the
   tagline is 217px wide, so at 401–440px the brand was 267.2px and the
   row overflowed (scrollWidth 444 at a 401px viewport; hamburger
   off-screen at x=400–444). Hiding the tagline at ≤480px shrinks the
   brand to ~190–202px, so the row fits (202 + 10 + 151 = 363 ≤ 369px
   content width at 401px). */
@media (max-width:480px) {
    .pb-brand-text small { display:none; }
}
@media (max-width:400px) {
    .pb-header-actions .lang-toggle { display:none; }
    .pb-nav .pb-nav-lang { display:block; padding:12px 8px 4px; border-top:1px solid rgba(255,255,255,.12); }
}

/* MOBILE FIXES 2026-12-04 (blueprint §2): the PWA install bar rules
   lived here and are deleted with the removed partial. Manifest,
   sw.js and favicons are kept. */


/* ==========================================================================
   TASK 5 (2026-11-30) — Unified public layout: the whole inline <style>
   block from the deleted layouts/public.blade.php now lives here, so the
   single layouts/app.blade.php serves flow/checkout views too.
   Moved VERBATIM except the five unscoped selectors, which are scoped to
   `body.pb-flow` (the class the unified layout puts on <body> for flow
   views) so the storefront can never inherit them:
   - `:root` vars -> `body.pb-flow` vars (store.css :root keeps --bg
     #F7F8FC / --text #14213F for the storefront; the flow values
     #F4F6FB / #1B2B52 apply only under body.pb-flow).
   - `*` box-sizing -> `body.pb-flow, body.pb-flow *` (flow pages do
     not load store.css, which is where the storefront gets it).
   - `body` -> `body.pb-flow` (flex column, light bg, flow font stack).
   - `a` -> `:where(body.pb-flow) a` — :where() keeps the original
     (0,0,1) specificity, so .pb-nav a / footer.pb-foot a still win
     exactly as they did when this rule sat above pb-shared.css.
   - `main` -> `:where(body.pb-flow) main` (960px flow column).
   Every other rule (.pb-card, .pb-badge, .pb-table, .pb-foot, ...)
   was already class-scoped and is byte-identical to the inline
   original. Flow pages do NOT load store.css/store.js (the unified
   layout skips them in flow mode), so no storefront rule can restyle
   a flow page, and the flow rules can never touch the storefront
   (no body.pb-flow there). BUG-014 / BUG-041 / BUG-065 rules live
   in this block; their tests now read this file, not the layout.
   ========================================================================== */
        body.pb-flow { --navy:#1B2B52; --ink:#111D3A; --gold:#D4A04A; --orange:#C2410C; --bg:#F4F6FB; --card:#fff; --text:#1B2B52; --muted:#5B6B8C; --border:#E2E8F0; --danger:#C0392B; --ok:#1E7A4C; }
        body.pb-flow, body.pb-flow * { box-sizing:border-box; }
        body.pb-flow { margin:0; font-family:'Hind Siliguri','Inter',system-ui,-apple-system,'Segoe UI',sans-serif; background:var(--bg); color:var(--text); min-height:100vh; display:flex; flex-direction:column; }
        :where(body.pb-flow) a { color:var(--navy); }
        /* BUG-043: the header rules moved to css/pb-shared.css (scoped
           .pb-top* selectors, shared with /verify via the flow-header
           partial). The old rules wrapped to two rows (~180px) at 390px. */
        :where(body.pb-flow) main { flex:1; width:100%; max-width:960px; margin:0 auto; padding:24px 16px 40px; }
        .pb-card { background:var(--card); border:1px solid var(--border); border-radius:16px; padding:24px 22px; box-shadow:0 10px 30px rgba(27,43,82,.07); margin-bottom:20px; }
        .pb-card h1, .pb-card h2 { margin:0 0 8px; color:var(--navy); }
        .pb-card h1 { font-size:24px; } .pb-card h2 { font-size:19px; }
        .pb-lead { color:var(--muted); font-size:14.5px; line-height:1.7; margin:0 0 16px; }
        .pb-badge { display:inline-block; padding:4px 12px; border-radius:20px; font-size:12.5px; font-weight:700; background:#FFF4DD; color:#7A5A10; border:1px solid rgba(212,160,74,.4); }
        .pb-badge.navy { background:var(--navy); color:#fff; border-color:var(--navy); }
        .pb-badge.green { background:#E7F5EC; color:var(--ok); border-color:#BFE3CC; }
        .pb-badge.red { background:#FDECEA; color:var(--danger); border-color:#F5C6C0; }
        .pb-badge.gray { background:#EEF1F6; color:var(--muted); border-color:var(--border); }
        .pb-kv { display:grid; grid-template-columns:150px 1fr; gap:8px 12px; font-size:15px; margin:12px 0; }
        .pb-kv dt { color:var(--muted); } .pb-kv dd { margin:0; font-weight:600; }
        /* G-30: customer dashboard quick-link cards (4-col desktop / 2-col ≤768px). Inline SVG icons only — no icon font classes exist. */
        .pb-quick-grid { display:grid; grid-template-columns:repeat(4, 1fr); gap:12px; margin-bottom:20px; }
        .pb-quick-card { display:flex; flex-direction:column; align-items:center; gap:8px; padding:18px 10px; background:var(--card); border:1px solid var(--border); border-radius:16px; box-shadow:0 10px 30px rgba(27,43,82,.07); color:var(--navy); font-size:14.5px; font-weight:700; text-align:center; text-decoration:none; }
        .pb-quick-card:hover { border-color:var(--gold); }
        .pb-quick-icon { display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; border-radius:12px; background:#FFF4DD; color:#7A5A10; }
        .pb-quick-icon svg { width:22px; height:22px; }
        @media (max-width:768px) { .pb-quick-grid { grid-template-columns:repeat(2, 1fr); } }
        label.pb-fl { display:block; font-size:14px; font-weight:600; margin:16px 0 6px; }
        .pb-fi { width:100%; padding:12px 13px; border:1.5px solid var(--border); border-radius:10px; font-size:15px; color:var(--text); font-family:inherit; background:#fff; }
        .pb-fi:focus { outline:none; border-color:var(--gold); box-shadow:0 0 0 3px rgba(212,160,74,.25); }
        .pb-fi.en { font-family:ui-monospace,Menlo,Consolas,monospace; }
        .pb-help { font-size:12.5px; color:var(--muted); margin:5px 0 0; line-height:1.6; }
        .pb-alert { border-radius:12px; padding:14px 16px; font-size:14.5px; margin:0 0 16px; line-height:1.6; }
        .pb-alert.err { background:#FDECEA; border:1px solid #F5C6C0; color:#8E2318; }
        .pb-alert.ok { background:#E7F5EC; border:1px solid #BFE3CC; color:#14532D; }
        .pb-alert.info { background:#EAF0FB; border:1px solid #C6D6F2; color:var(--navy); }
        .pb-steps { display:flex; gap:0; margin:18px 0; overflow-x:auto; }
        .pb-step { flex:1; min-width:110px; text-align:center; position:relative; padding-top:26px; font-size:13px; font-weight:600; color:var(--muted); }
        .pb-step::before { content:''; position:absolute; top:8px; left:50%; transform:translateX(-50%); width:18px; height:18px; border-radius:50%; background:#fff; border:2px solid var(--border); z-index:1; }
        .pb-step::after { content:''; position:absolute; top:16px; left:-50%; width:100%; height:2px; background:var(--border); }
        .pb-step:first-child::after { display:none; }
        .pb-step.done { color:var(--navy); } .pb-step.done::before { background:var(--ok); border-color:var(--ok); }
        .pb-step.now { color:var(--orange); } .pb-step.now::before { background:var(--orange); border-color:var(--orange); box-shadow:0 0 0 4px rgba(232,101,15,.2); }
        .pb-step.bad::before { background:var(--danger); border-color:var(--danger); }
        .pb-table { width:100%; border-collapse:collapse; font-size:14.5px; }
        /* BUG-014: public flow-table scroll wrapper — deliberately distinct
           from the ADMIN .pb-twrap in pba-admin.css (BUG-013); the two must
           never be confused. Plain wrapper scrolls only if content
           overflows; --wide also floors 4+ column tables at 520px so they
           scroll instead of squeezing at 390px. 2–3 col tables keep full
           width (no forced min-width, no needless scroll). */
        .pb-ftwrap { overflow-x:auto; -webkit-overflow-scrolling:touch; }
        /* Refund deduction table wrapper (refund/index): same contained
           horizontal scrolling as .pb-ftwrap. */
        .refund-table-wrap { overflow-x:auto; overscroll-behavior-x:contain; -webkit-overflow-scrolling:touch; }
        /* Contain horizontal overscroll on the flow scrollers so an edge
           swipe rubber-bands the inner table/strip, never the page.
           (Kept as a separate rule so the exact .pb-ftwrap line above —
           asserted verbatim by Bug014 — stays untouched.) */
        .pb-steps, .pb-ftwrap { overscroll-behavior-x:contain; }
        .pb-ftwrap--wide .pb-table { min-width:520px; }
        .pb-table th, .pb-table td { padding:10px 8px; border-bottom:1px solid var(--border); text-align:left; }
        .pb-table th { color:var(--muted); font-size:13px; }
        .pb-table td.num, .pb-table th.num { text-align:right; }
        .pb-total { font-size:17px; font-weight:800; color:var(--navy); }
        .pb-check { display:flex; gap:10px; align-items:flex-start; margin-top:16px; cursor:pointer; font-weight:600; font-size:14px; line-height:1.6; }
        .pb-check input { width:19px; height:19px; accent-color:var(--orange); margin-top:3px; flex:none; }
        /* BUG-014: flex-wrap + smaller cells — 4×74px + gaps was 326px vs
           ~314px content width at 390px, overflowing ~12px. 4×70+3×10=310px
           fits; wrap is belt-and-braces for long Bengali labels. */
        .pb-count { display:flex; gap:10px; justify-content:center; margin:14px 0 4px; flex-wrap:wrap; }
        .pb-count div { background:var(--navy); color:#fff; border-radius:12px; padding:12px 10px; min-width:70px; text-align:center; }
        .pb-count b { display:block; font-size:26px; line-height:1.1; }
        .pb-count span { font-size:12px; color:#C9D6F2; }
        .pb-tabs { display:flex; gap:8px; margin-bottom:18px; }
        .pb-tabs a { flex:1; text-align:center; padding:12px; border-radius:10px; border:1.5px solid var(--border); background:#fff; font-weight:700; text-decoration:none; color:var(--navy); font-size:15px; }
        .pb-tabs a.active { background:var(--navy); color:#fff; border-color:var(--navy); }
        .pb-pills { display:flex; gap:8px; flex-wrap:wrap; margin:10px 0; }
        .pb-pill { padding:5px 12px; border-radius:20px; font-size:13px; font-weight:700; background:#EEF1F6; color:var(--muted); border:1px solid var(--border); }
        .pb-pill.on { background:#E7F5EC; color:var(--ok); border-color:#BFE3CC; }
        .pb-pill.now { background:#FDEEDD; color:#9A3E00; border-color:#F5C99B; }
        /* BUG-065: compact adaptation of the main footer's 4-column
           footer (layouts/app .site-footer — ink background, white
           headings, gold presence, pay badges, bottom bar). Flow
           pages are transactional and max-width 960px, so this is
           3 columns, not 4: brand / Tools / Policies & Contact —
           no Quick Links column (the flow header already links Home
           via the logo plus Verify / Refund / Reseller Top-up).
           Scoped to footer.pb-foot and its descendants only, so no
           flow view's own styles are touched. The overflow-wrap
           guard (BUG-041) lives on the footer links + bottom text
           so long email/phone tokens break instead of overflowing
           at 390px. */
        footer.pb-foot { background:var(--ink); color:#C9D6F2; font-size:14px; line-height:1.7; }
        footer.pb-foot a { color:#C9D6F2; text-decoration:none; overflow-wrap:break-word; }
        footer.pb-foot a:hover { color:#fff; }
        .pb-foot-in { max-width:960px; margin:0 auto; padding:36px 16px 28px; display:grid; grid-template-columns:1.3fr .9fr 1.2fr; gap:28px; }
        .pb-foot-brand strong { display:block; color:#fff; font-size:17px; letter-spacing:.06em; }
        .pb-foot-brand small { display:block; color:var(--gold); font-size:12.5px; font-weight:700; margin:2px 0 12px; }
        .pb-foot-brand p { margin:0 0 10px; }
        .pb-foot-presence { color:var(--gold); font-weight:700; }
        .pb-foot-col h4 { color:#fff; font-size:15px; margin:0 0 12px; }
        .pb-foot-col ul { list-style:none; margin:0; padding:0; }
        .pb-foot-col li { margin-bottom:9px; }
        .pb-foot-contact li { display:flex; gap:10px; padding:8px 0; border-bottom:1px solid rgba(255,255,255,.12); margin-bottom:0; }
        .pb-foot-contact li span { color:#8FA3CC; flex:none; min-width:78px; }
        .pb-foot-pay { display:flex; gap:8px; flex-wrap:wrap; margin-top:16px; }
        .pb-foot-pay span { border:1px solid rgba(255,255,255,.3); border-radius:6px; padding:4px 10px; font-size:12.5px; font-weight:700; color:#fff; }
        .pb-foot-bottom { border-top:1px solid rgba(255,255,255,.12); }
        .pb-foot-bottom-in { max-width:960px; margin:0 auto; padding:16px; display:flex; justify-content:space-between; gap:10px 20px; flex-wrap:wrap; font-size:13px; }
        .pb-foot-bottom p { margin:0; overflow-wrap:break-word; }
        @media (max-width:560px){ .pb-kv{grid-template-columns:1fr; gap:2px;} .pb-kv dd{margin-bottom:8px;}
            /* BUG-014: tighten the countdown cells at phone width so all
               four stay on one row (4×64+3×8=280px ≤ ~314px at 390px). */
            .pb-count { gap:8px; }
            .pb-count div { min-width:64px; padding:10px 6px; }
            .pb-count b { font-size:22px; }
            /* BUG-065: the 3-column footer stacks to one column at
               phone width (390px content width ~358px — the contact
               rows are label ~78px + value, so nothing runs to the
               right edge; the old single-line footer was the one
               that clipped, mobile-check defect #3). */
            .pb-foot-in { grid-template-columns:1fr; gap:22px; padding:28px 16px 22px; }
            .pb-foot-bottom-in { flex-direction:column; }
            /* BUG-117: flow footer links were ~23.8px tall inline rows at
               phone width — make them block rows with 11px padding (≈46px)
               at ≤560px. The list links get the padding directly. The
               contact rows are flex rows, so padding the ROW does not make
               the LINK taller (stretch only fills the content box) — the
               contact LINK itself gets the 11px padding instead, the row
               padding drops to 0, and align-items:center keeps the label
               vertically centred with the link text. The bottom-bar legal
               links stay inline. */
            .pb-foot-col ul:not(.pb-foot-contact) a { display:block; padding:11px 0; }
            .pb-foot-contact li { padding:0; align-items:center; }
            .pb-foot-contact a { display:block; padding:11px 0; }
            /* BUG-041: on short flows pages at mobile width the footer sits at
               the viewport bottom, where the fixed 60px Priya launcher
               (bottom:18px, so it covers the bottom 78px) hid the last line —
               "Japan" showed as "Ja". 96px bottom padding lifts the last
               line ~18px clear of the launcher when scrolled to the bottom,
               so the whole "Serving clients across Bangladesh, Malaysia &
               Japan." line is visible. The contact line already wraps at
               spaces; the overflow-wrap guard above keeps the long
               email/phone tokens from overflowing instead. */
            footer.pb-foot { padding-bottom:96px; } }
