:root {
    --ink: #1b2430;
    --muted: #5f6b7a;
    --paper: #f4f5fa;
    --card: #ffffff;
    --line: #e0e3ef;
    --brand: #3f48cc;       /* BhadharaZW logo blue */
    --brand-2: #003085;     /* logo navy — links, labels */
    --brand-dark: #2f37ad;  /* hover */
    --brand-tint: #eceefb;
    --accent: #d9a441;      /* crest gold */
    --ok: #1e7a4c;
    --ok-bg: #e7f4ec;
    --bad: #b3352e;
    --bad-bg: #fbecea;
    --wait: #9a6a10;
    --wait-bg: #fdf3df;
    --radius: 14px;
}

html, body { background: var(--paper); color: var(--ink); }
body { font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 15.5px; display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }
h1, h2, .display-title { font-family: "Fraunces", Georgia, serif; letter-spacing: -0.01em; }
a { color: var(--brand-2); }

.sandbox-banner { background: var(--accent); color: #2b1d00; text-align: center; font-size: 13px; font-weight: 600; padding: 4px 8px; }

.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: var(--accent); display: grid; place-items: center; font-family: "Fraunces", serif; font-size: 22px; font-weight: 700; }
.brand-name { display: block; font-weight: 700; line-height: 1.1; }
.brand-sub { display: block; font-size: 12.5px; color: var(--muted); }
.brand-logo { height: 52px; width: auto; display: block; }
.nav-pill { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; font-size: 14px; background: var(--card); }
.nav-pill:hover { border-color: var(--brand-2); color: var(--brand); }
.nav-pill-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.nav-pill-dark:hover { color: #fff; background: #000; }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; padding: 18px 0; background: var(--card); }

/* hero / landing */
.hero { padding: 8px 0 28px; }
.hero h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 700; max-width: 18ch; }
.hero p { color: var(--muted); max-width: 54ch; font-size: 17px; }
.choice-card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-decoration: none; color: var(--ink); height: 100%; transition: transform .15s ease, box-shadow .15s ease, border-color .15s; }
.choice-card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(63,72,204,.10); border-color: var(--brand-2); color: var(--ink); }
.choice-card .icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); margin-bottom: 14px; }
.choice-card h2 { font-size: 22px; margin-bottom: 6px; }
.choice-card p { color: var(--muted); margin: 0; }
.methods-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.methods-strip span { font-size: 12.5px; padding: 5px 10px; border: 1px dashed var(--line); border-radius: 999px; color: var(--muted); background: var(--card); }

/* panels / forms */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.panel + .panel { margin-top: 18px; }
.panel h1 { font-size: 28px; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 11.5px; font-weight: 700; color: var(--brand-2); }
.form-label { font-weight: 600; font-size: 14px; }
.form-control, .form-select { border-radius: 10px; border-color: var(--line); padding: 10px 12px; }
.form-control:focus, .form-select:focus { border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(63,72,204,.15); }
.btn-brand { background: var(--brand); color: #fff; border: none; border-radius: 10px; padding: 11px 20px; font-weight: 600; }
.btn-brand:hover, .btn-brand:focus { background: var(--brand-dark); color: #fff; }
.btn-ghost { border: 1px solid var(--line); border-radius: 10px; background: var(--card); padding: 10px 16px; }
.field-validation-error { color: var(--bad); font-size: 13px; }
.input-validation-error { border-color: var(--bad) !important; }
.validation-summary-errors ul { margin: 0; padding-left: 18px; }

/* account statement */
.balance-box { background: var(--brand); color: #fff; border-radius: var(--radius); padding: 22px; }
.balance-box .label { opacity: .8; font-size: 13px; }
.balance-box .value { font-family: "Fraunces", serif; font-size: 34px; font-weight: 700; }
.balance-box .meta { display: flex; gap: 18px; font-size: 13px; opacity: .85; margin-top: 6px; flex-wrap: wrap; }
.mini-table { width: 100%; font-size: 14px; }
.mini-table td { padding: 6px 0; border-bottom: 1px solid var(--line); }
.mini-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; }

/* checkout */
.summary-card { background: #fafbfe; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 20px; }
.summary-card .amount { font-family: "Fraunces", serif; font-size: 26px; font-weight: 700; white-space: nowrap; }
.method-list { display: grid; gap: 10px; }
.method { position: relative; display: block; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 14px 48px; cursor: pointer; background: var(--card); transition: border-color .12s, background .12s; }
.method input[type=radio] { position: absolute; left: 18px; top: 18px; accent-color: var(--brand); width: 18px; height: 18px; }
.method .name { font-weight: 600; }
.method .hint { font-size: 13px; color: var(--muted); }
.method:has(input:checked) { border-color: var(--brand); background: #f4f5fd; box-shadow: inset 0 0 0 1px var(--brand); }
.method.recommended .name::after { content: "Recommended"; margin-left: 8px; font-size: 11px; font-weight: 700; color: var(--brand); background: #e1e4f8; padding: 2px 7px; border-radius: 999px; }

.spinner-ring { width: 64px; height: 64px; border-radius: 50%; border: 5px solid #e1e4f8; border-top-color: var(--brand); animation: spin 1s linear infinite; margin: 8px auto 18px; }
@keyframes spin { to { transform: rotate(360deg); } }
.code-box { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 38px; letter-spacing: .25em; font-weight: 700; background: #fafbfe; border: 2px dashed var(--accent); border-radius: 12px; padding: 14px; text-align: center; }

.result-icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; font-size: 34px; font-weight: 700; }
.result-icon.ok { background: var(--ok-bg); color: var(--ok); }
.result-icon.bad { background: var(--bad-bg); color: var(--bad); }
.result-icon.wait { background: var(--wait-bg); color: var(--wait); }
.receipt dl { display: grid; grid-template-columns: 160px 1fr; gap: 8px 16px; margin: 0; }
.receipt dt { color: var(--muted); font-weight: 500; }
.receipt dd { margin: 0; font-weight: 600; }

/* status badges */
.status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.status-paid { background: var(--ok-bg); color: var(--ok); }
.status-failed { background: var(--bad-bg); color: var(--bad); }
.status-pending { background: var(--wait-bg); color: var(--wait); }

/* admin */
.admin-nav { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); }
.admin-nav a { padding: 9px 14px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.admin-nav a.active, .admin-nav a:hover { color: var(--brand); border-bottom-color: var(--brand); }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; height: 100%; }
.stat .label { font-size: 12.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.stat .value { font-family: "Fraunces", serif; font-size: 28px; font-weight: 700; }
.table-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
.table-wrap table { margin: 0; font-size: 14px; }
.table-wrap th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; background: #fafbfe; white-space: nowrap; }
.table-wrap td { vertical-align: middle; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
pre.payload { background: #10161d; color: #d5e2ee; border-radius: 10px; padding: 12px; font-size: 12px; max-height: 260px; overflow: auto; white-space: pre-wrap; word-break: break-all; }

@media print {
    .site-header, .site-footer, .sandbox-banner, .no-print { display: none !important; }
    body, html { background: #fff; }
    .panel { border: none; }
}

/* ---------------------------------------------------------------- help pages */
.help-hero h1 { font-size: 30px; }
.help-tabs { display: inline-flex; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.help-tabs a { padding: 6px 14px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px; }
.help-tabs a.active { background: var(--brand); color: #fff; }
.help-search { max-width: 280px; }
.help-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; align-items: start; }
.help-toc { position: sticky; top: 16px; font-size: 14px; }
.help-toc a { display: block; padding: 5px 10px; border-left: 2px solid var(--line); color: var(--muted); text-decoration: none; }
.help-toc a:hover { color: var(--brand); border-left-color: var(--brand-2); }
.help-section { scroll-margin-top: 16px; }
.help-section > h2 { font-size: 21px; margin-top: 0; margin-bottom: 10px; }
.help-toc a[hidden], .help-section[hidden], .help-section details[hidden] { display: none !important; }
.help-section h3 { font-size: 16px; margin-top: 18px; margin-bottom: 6px; }
.help-section p, .help-section li { line-height: 1.6; }
.help-steps { counter-reset: step; list-style: none; padding-left: 0; }
.help-steps > li { counter-increment: step; position: relative; padding-left: 40px; margin-bottom: 12px; }
.help-steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
    background: var(--brand); color: #fff; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.help-table { width: 100%; font-size: 14.5px; border-collapse: collapse; }
.help-table th, .help-table td { border-bottom: 1px solid var(--line); padding: 8px 10px 8px 0; vertical-align: top; text-align: left; }
.help-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.help-note { background: var(--wait-bg); border-left: 3px solid var(--accent); padding: 10px 14px; border-radius: 8px; font-size: 14.5px; margin: 12px 0; }
.help-warn { background: var(--bad-bg); border-left: 3px solid var(--bad); padding: 10px 14px; border-radius: 8px; font-size: 14.5px; margin: 12px 0; }
.help-section details { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; background: var(--card); }
.help-section details summary { font-weight: 600; cursor: pointer; }
.help-section details[open] summary { margin-bottom: 6px; }
.help-ui { font-weight: 600; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; font-size: 13.5px; white-space: nowrap; }
@media (max-width: 860px) {
    .help-layout { grid-template-columns: 1fr; }
    .help-toc { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
    .help-toc a { border-left: 0; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
    .help-search { max-width: none; width: 100%; }
}

/* pay bills */
.biller-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.biller-tile { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: inherit; font-weight: 600; transition: border-color .12s, background .12s; }
.biller-tile:hover, .biller-tile:focus { border-color: var(--brand); background: #f4f5fd; color: inherit; }
.biller-tile[hidden] { display: none !important; }
.biller-icon { width: 38px; height: 38px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--brand-tint); font-size: 18px; }
.biller-name { line-height: 1.25; }
.detail-list { display: grid; grid-template-columns: minmax(120px, 42%) 1fr; gap: 6px 14px; margin: 0; font-size: 14px; }
.detail-list dt { font-weight: 500; opacity: .8; }
.detail-list dd { margin: 0; font-weight: 600; word-break: break-word; }
.token-box { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 20px; letter-spacing: .08em; font-weight: 700; background: #fafbfe; border: 2px dashed var(--accent); border-radius: 12px; padding: 12px 14px; word-break: break-all; }
@media (max-width: 575px) { .receipt dl { grid-template-columns: 1fr; gap: 2px; } .receipt dd { margin-bottom: 8px; } }
pre.zb-log-body { max-height: 70vh; }

/* ---------------------------------------------------------------- phones */
.help-layout > * { min-width: 0; }               /* long tables / code can't widen the page */
.help-section code, .detail-list dd, .mini-table td { overflow-wrap: anywhere; }
@media (max-width: 860px) {
    .help-table { display: block; overflow-x: auto; }
    .help-table code { overflow-wrap: normal; white-space: nowrap; }   /* the table scrolls instead */
}
@media (max-width: 575.98px) {
    body { font-size: 15px; }
    /* header: brand on top, the menu as one row that scrolls sideways */
    .site-header nav { flex-wrap: wrap; row-gap: 10px; padding-top: 12px !important; padding-bottom: 10px !important; }
    .site-nav { width: 100%; flex-wrap: nowrap !important; justify-content: flex-start !important; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
    .site-nav::-webkit-scrollbar, .admin-nav::-webkit-scrollbar { display: none; }
    .nav-pill { white-space: nowrap; padding: 6px 12px; font-size: 13.5px; }
    .brand-mark { width: 36px; height: 36px; font-size: 20px; }
    main.container { padding-top: 1.25rem !important; padding-bottom: 1.75rem !important; }
    .hero { padding-bottom: 18px; }
    .hero p { font-size: 15.5px; }
    .panel { padding: 18px 16px; }
    .panel h1 { font-size: 24px; }
    .choice-card { padding: 20px; }
    .summary-card { padding: 14px; }
    .summary-card .amount { font-size: 21px; white-space: normal; text-align: right; }
    .balance-box .value { font-size: 28px; }
    .code-box { font-size: 28px; letter-spacing: .12em; padding: 12px 8px; overflow-wrap: anywhere; }
    .token-box { font-size: 17px; }
    .admin-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .admin-nav a { white-space: nowrap; padding: 9px 12px; }
    .help-ui { white-space: normal; }
    .help-hero h1 { font-size: 25px; }
    .stat .value { font-size: 24px; }
}

/* ---------------------------------------------------------------- check a payment / support */
.nav-pill-check { border-color: var(--brand); color: var(--brand); font-weight: 600; }
.btn-whatsapp { background: #1f8f4e; border-color: #1f8f4e; color: #fff; }
.btn-whatsapp:hover, .btn-whatsapp:focus { background: #187a41; border-color: #187a41; color: #fff; }
.ref-big { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 22px; font-weight: 700; letter-spacing: .04em; color: var(--brand-2); overflow-wrap: anywhere; }
.support-box hr { border-color: var(--line); opacity: 1; margin: 14px 0; }
.lookup-item { border-left: 4px solid var(--line); }
.lookup-item.lookup-paid { border-left-color: var(--ok); }
.lookup-item.lookup-failed, .lookup-item.lookup-refunding, .lookup-item.lookup-refunded { border-left-color: var(--bad); }
.lookup-item.lookup-waiting, .lookup-item.lookup-confirming { border-left-color: var(--wait); }
.lookup-amount { font-weight: 700; font-size: 18px; white-space: nowrap; }
.footer-contact a { color: var(--brand-2); }
@media (max-width: 575.98px) {
    .brand-logo { height: 42px; }
    .ref-big { font-size: 19px; }
}
.btn-brand.btn-sm { padding: 6px 14px; font-size: 14px; }
.check-strip { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 16px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.check-strip:hover { border-color: var(--brand); color: var(--ink); }
.check-strip-icon { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); }
.check-strip-go { font-size: 28px; color: var(--brand); line-height: 1; }

/* ---------------------------------------------------------------- receipt branding */
.receipt-brand { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.receipt-brand img { height: 52px; width: auto; }
.receipt-brand-contact { text-align: right; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
@media (max-width: 575.98px) { .receipt-brand img { height: 42px; } .receipt-brand-contact { font-size: 11.5px; } }
@media print { .receipt-brand img { height: 56px; } }

/* ---------------------------------------------------------------- dashboard */
.dash-filters .form-select, .dash-filters .form-control { width: auto; }
.dash-custom { display: inline-flex; gap: 6px; }
.dash-custom.d-none { display: none !important; }
.dash-panel { padding: 18px 20px; }
.stat-sm .value { font-size: 22px; }
.delta-up { color: var(--ok); font-weight: 600; }
.delta-down { color: var(--bad); font-weight: 600; }
.trend { width: 100%; height: auto; display: block; }
.trend-grid { stroke: var(--line); stroke-width: 1; }
.trend-base { stroke: #b9bfd3; stroke-width: 1; }
.trend-axis { fill: var(--muted); font-size: 11px; font-family: inherit; }
.trend-fill { fill: var(--brand); }
.trend-hit { fill: transparent; }
.trend-bar:hover .trend-fill { fill: var(--brand-dark); }
.trend-bar:hover .trend-hit { fill: rgba(63,72,204,.06); }
.bar-list { display: grid; gap: 12px; }
/* name and value on one line, the bar under them — long names are never cut off */
.bar-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 5px; align-items: baseline; font-size: 14px; }
.bar-name { min-width: 0; }
.bar-track { grid-column: 1 / -1; height: 8px; background: var(--brand-tint); border-radius: 0 4px 4px 0; overflow: hidden; }
.bar-fill { height: 100%; background: var(--brand); border-radius: 0 4px 4px 0; }
.bar-value { white-space: nowrap; text-align: right; font-size: 13.5px; }
.seg-bar { display: flex; gap: 2px; height: 16px; border-radius: 4px; overflow: hidden; margin-bottom: 12px; }
.seg { min-width: 3px; }
.seg-ok { background: var(--ok); }
.seg-bad { background: var(--bad); }
.seg-wait { background: var(--wait); }
.seg-refund { background: #7a5c99; }
.seg-idle { background: #b9bfd3; }
.seg-legend { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px 14px; font-size: 13.5px; }
.seg-key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: baseline; }
.trend-wrap { overflow-x: auto; }
@media (max-width: 575.98px) {
    .dash-filters { width: 100%; }
    /* the chart keeps a readable size and scrolls sideways inside its panel */
    .trend { min-width: 620px; }
    .trend-axis { font-size: 13px; }
    .trend-minor { display: none; }
    .stat .value { font-size: 20px; }
}

/* Resolution panel (paid but not applied at the biller) */
.badge-overdue { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .03em; color: #fff; background: #b42318; padding: 2px 8px; border-radius: 999px; vertical-align: middle; }
.resolution.is-overdue { border-left: 4px solid #b42318; }
.resolution .timeline li { position: relative; padding: 0 0 12px 18px; border-left: 2px solid var(--line); margin-left: 4px; }
.resolution .timeline li::before { content: ""; position: absolute; left: -6px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.resolution .timeline li.tl-note::before { background: var(--brand); }
.resolution .timeline li.tl-escalated::before { background: #b42318; }
.resolution .timeline li.tl-case::before { background: var(--brand-2); }
.resolution .tl-text { white-space: pre-wrap; overflow-wrap: anywhere; }

/* WhatsApp simulator (Admin → WhatsApp → Simulator) */
.wa-sim-wrap { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 420px); gap: 24px; align-items: start; }
@media (max-width: 767px) { .wa-sim-wrap { grid-template-columns: minmax(0, 1fr); } }
.wa-phone { border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: #efeae2; display: flex; flex-direction: column; height: min(720px, 80vh); }
.wa-head { display: flex; gap: 10px; align-items: center; background: #075e54; color: #fff; padding: 10px 14px; }
.wa-head .small { opacity: .8; }
.wa-avatar { width: 36px; height: 36px; border-radius: 50%; background: #fff; object-fit: contain; padding: 3px; }
.wa-chat { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.wa-empty { margin: auto; color: #54656f; font-size: 14px; }
.wa-msg { display: flex; flex-direction: column; max-width: 86%; }
.wa-msg.wa-in { align-self: flex-start; }
.wa-msg.wa-out { align-self: flex-end; }
.wa-bubble { background: #fff; border-radius: 8px; padding: 6px 9px 4px; font-size: 14px; line-height: 1.4; color: #111b21; box-shadow: 0 1px .5px rgba(0,0,0,.13); overflow-wrap: anywhere; }
.wa-out .wa-bubble { background: #d9fdd3; }
.wa-bubble a { color: #027eb5; }
.wa-time { text-align: right; font-size: 11px; color: #667781; margin-top: 2px; }
.wa-tapped { font-style: italic; }
.wa-buttons { display: flex; flex-direction: column; gap: 3px; margin-top: 3px; }
.wa-button { display: block; width: 100%; background: #fff; border: 0; border-radius: 8px; padding: 8px; color: #027eb5; font-size: 14px; font-weight: 600; text-align: center; box-shadow: 0 1px .5px rgba(0,0,0,.13); cursor: pointer; list-style: none; }
.wa-button::-webkit-details-marker { display: none; }
.wa-list { margin-top: 3px; }
.wa-rows { background: #fff; border-radius: 8px; margin-top: 3px; overflow: hidden; box-shadow: 0 1px .5px rgba(0,0,0,.13); }
.wa-row { display: block; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid #e9edef; padding: 8px 12px; cursor: pointer; }
.wa-rows form:first-child .wa-row { border-top: 0; }
.wa-row:hover, .wa-button:hover { background: #f5f6f6; }
.wa-row-title { display: block; font-size: 14px; color: #111b21; }
.wa-row-desc { display: block; font-size: 12.5px; color: #667781; }
.wa-compose { display: flex; gap: 8px; padding: 8px; background: #f0f2f5; }
.wa-log-text { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 520px; }

/* Receipt: waiting for the bill payment (countdown to the proof of payment) */
.post-wait { text-align: left; max-width: 420px; margin: 0 auto; }
.post-wait-time { font-size: 15px; margin-bottom: 8px; text-align: center; }
.post-wait-bar { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 14px; }
.post-wait-bar > div { height: 100%; background: var(--brand); border-radius: 999px; transition: width 1s linear; }
.post-steps { list-style: none; padding: 0; margin: 0; }
.post-steps li { position: relative; padding: 4px 0 4px 28px; color: var(--muted, #6b7280); font-size: 14px; }
.post-steps li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); background: #fff; }
.post-steps li.done { color: inherit; }
.post-steps li.done::before { background: var(--brand); border-color: var(--brand); }
.post-steps li.now { color: inherit; font-weight: 600; }
.post-steps li.now::before { border-color: var(--brand); animation: post-pulse 1.2s ease-in-out infinite; }
@keyframes post-pulse { 50% { box-shadow: 0 0 0 5px rgba(0, 0, 0, .06); } }
@media (prefers-reduced-motion: reduce) { .post-steps li.now::before { animation: none; } .post-wait-bar > div { transition: none; } }

/* Company endorsement: "BhadharaZW by Binary Software" */
.brand { flex-direction: column; align-items: flex-start; gap: 0; }
.brand .brand-sub { font-size: 11.5px; letter-spacing: .02em; margin-top: 2px; }
.footer-company { display: inline-flex; align-items: center; gap: 8px; }
.footer-company img { height: 27px; width: auto; }
.receipt-issuer { font-size: 12px; color: var(--muted); text-align: center; margin-top: 14px; }
.about-logo { height: 72px; width: auto; }
.legal-doc h2 { font-size: 1.15rem; margin-top: 1.5rem; }
.legal-doc h3 { font-size: 1rem; margin-top: 1rem; }
.legal-doc ul { padding-left: 1.2rem; }
.terms-note { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 10px; }

/* "Add to home screen" bar (phones) */
.install-app { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin: 16px 0; box-shadow: 0 6px 18px rgba(0,48,133,.06); }
.install-app img { border-radius: 10px; flex: none; }

/* My bills (Pay again) */
.my-bills { display: grid; gap: 12px; }
.my-bills-row { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.my-bill { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.my-bill-title { font-weight: 700; color: var(--brand-2); }
.my-bill-token { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; background: var(--brand-tint); border-radius: 8px; padding: 6px 10px; }
.my-bill-token strong { letter-spacing: .5px; }
.my-links { display: flex; flex-wrap: wrap; gap: 8px; }
.my-links a { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 14px; text-decoration: none; font-weight: 600; font-size: 14px; }
.my-links a:hover { border-color: var(--brand-2); }
/* Service status */
.service-ok { color: var(--ok); } .service-slow { color: var(--wait); } .service-down { color: var(--bad); }
.lang-switch { display: inline-flex; gap: 4px; font-size: 13px; }
.lang-switch button { background: none; border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; color: var(--muted); }
.lang-switch button[aria-pressed="true"] { border-color: var(--brand-2); color: var(--brand-2); font-weight: 700; }
