/* opsync-internal/showcase-hub/billing.css: a copy of opsync-platform/packages/hub-core/src/styles/billing.css for the demo Billing page (billing.js). */
/* The client's Billing page, from docs/shared/plans/2026-11-02-client-billing-mockup.html. The paper keeps its own
   fixed colours, so it stays light in both themes. Past receipts sit on the hub's page and use the hub's colours.
   Load after hub-ui.css. */
.billing{ display:grid; gap:24px; max-width:560px; }
.rc{ position:relative; box-sizing:border-box; width:100%; max-width:340px; margin:0 auto; background:#f6f5f1; color:#141110; padding:24px 22px 34px;
  filter:drop-shadow(0 18px 30px rgba(0,0,0,.55));
  --z:9px;
  -webkit-mask:conic-gradient(from -45deg at bottom,#0000,#000 1deg 89deg,#0000 90deg) bottom/calc(2*var(--z)) 51% repeat-x,linear-gradient(#000 0 0) top/100% calc(100% - var(--z)) no-repeat;
  mask:conic-gradient(from -45deg at bottom,#0000,#000 1deg 89deg,#0000 90deg) bottom/calc(2*var(--z)) 51% repeat-x,linear-gradient(#000 0 0) top/100% calc(100% - var(--z)) no-repeat; }
/* This month's AI usage: the same paper as the receipt, with no torn edge, because it is not a bill yet. */
.billing-usage{ box-sizing:border-box; width:100%; max-width:340px; margin:0 auto; background:#f6f5f1; color:#141110; padding:14px 22px; font-size:13.5px; line-height:1.45; font-variant-numeric:tabular-nums; }
.billing-usage p{ margin:0; }
.rc-brand{ text-align:center; font-weight:600; letter-spacing:-.02em; font-size:18px; }
.rc-meta{ text-align:center; color:#6f6a66; font-size:12.5px; margin-top:3px; }
.rc-dash{ border-top:1.5px dashed #c9c5bf; margin:15px 0; }
.rc-line{ display:flex; justify-content:space-between; gap:12px; font-size:14px; padding:3px 0; font-variant-numeric:tabular-nums; }
.rc-line span:first-child{ color:#6f6a66; }
.rc-line .rc-late{ color:#b3261e; font-weight:600; }
.rc-total{ display:flex; justify-content:space-between; align-items:baseline; gap:12px; font-weight:600; }
.rc-total b{ font-size:28px; font-weight:600; letter-spacing:-.03em; font-variant-numeric:tabular-nums; }
.rc-act{ margin-top:18px; min-height:64px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7px; text-align:center; }
.rc-btn{ width:100%; background:#141110; color:#fff; border:0; border-radius:10px; padding:13px; font:inherit; font-size:15px; font-weight:500; cursor:pointer; transition:transform .14s,background .14s; }
.rc-btn:hover:not(:disabled){ transform:translateY(-1px); background:#2b2622; }
.rc-btn:disabled, .rc-link:disabled{ opacity:.55; cursor:default; }
.rc-note{ font-size:12.5px; color:#6f6a66; }
.rc-link{ background:none; border:0; font:inherit; font-size:12.5px; color:#6f6a66; text-decoration:underline; cursor:pointer; padding:0; }
.rc-download{ font-size:14px; font-weight:500; color:#141110; text-decoration:underline; }
.rc-verifying{ display:flex; align-items:center; gap:9px; font-weight:500; font-size:15px; color:#8a5a00; }
.rc-spin{ width:15px; height:15px; border-radius:50%; border:2px solid #e3c98a; border-top-color:#8a5a00; animation:rc-sp 1s linear infinite; }
@keyframes rc-sp{ to{ transform:rotate(360deg); } }
.rc-paid{ display:flex; align-items:center; gap:10px; font-size:18px; font-weight:600; color:#0a7a45; animation:rc-pop .35s cubic-bezier(.22,1,.36,1); }
.rc-tick{ width:30px; height:30px; border-radius:50%; background:#0a7a45; color:#fff; display:grid; place-items:center; font-size:17px; }
@keyframes rc-pop{ from{ transform:scale(.7); opacity:0; } to{ transform:none; opacity:1; } }
.rc-nope{ font-size:12.5px; color:#b3261e; }
.rc-up{ position:relative; width:100%; box-sizing:border-box; display:block; border:1.5px dashed #b9b4ad; border-radius:10px; padding:11px; font-size:14px; font-weight:500; color:#3b3532; cursor:pointer; }
.rc-up:hover{ background:#ece9e2; }
.rc-up:focus-within{ outline:2px solid #141110; outline-offset:2px; }
.rc-up.rc-busy{ opacity:.55; cursor:default; }
/* Out of sight but still reachable from a keyboard, which display:none would not be. */
.rc-up input{ position:absolute; width:1px; height:1px; opacity:0; overflow:hidden; }
.rc-shot{ width:100%; max-height:170px; object-fit:contain; border-radius:8px; border:1px solid #d9d5ce; background:#fff; display:block; }
.rc-hist-t{ font-size:13px; color:var(--muted); margin-bottom:6px; }
.rc-row{ display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:10px; padding:10px 0; border-top:1px solid var(--rowline); font-size:14px; font-variant-numeric:tabular-nums; }
.rc-row > :last-child{ text-align:right; }
.rc-ok{ color:#0a7a45; font-size:12.5px; }
html[data-theme="dark"] .rc-ok{ color:#00ff88; }
.rc-off{ color:var(--muted); font-size:12.5px; }
@media (prefers-reduced-motion:reduce){ .rc-spin, .rc-paid{ animation:none; } .rc-btn{ transition:none; } }

/* ---- The demo's layout (2026-11-16, Yassin: "a lot of empty spaces ... add anything useful"). Demo only: the receipt
   on the left (it stays in view while the right column scrolls), the status, steps, plan, usage and history on the
   right. One column on a phone. ---- */
.billing.bl-grid{ max-width:1080px; grid-template-columns:minmax(300px,360px) minmax(0,1fr); align-items:start; gap:28px; }
.bl-left{ position:sticky; top:84px; display:grid; gap:12px; }
.bl-left .rc{ margin:0; max-width:none; }
.bl-right{ display:grid; gap:16px; min-width:0; }
.bl-back{ justify-self:start; background:none; border:0; padding:4px 0; font:500 13px/1 var(--sans); color:var(--muted); cursor:pointer; }
.bl-back:hover{ color:var(--ink); }
.bl-kpis{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.bl-kpis .kpi{ display:flex; flex-direction:column; gap:6px; }
.bl-kv{ margin-top:4px; }
.bl-kd{ font-size:19px; letter-spacing:-.02em; margin-top:2px; }
.bl-ks{ font-size:12px; color:var(--muted); }
.bl-panel{ padding:16px 18px; }
.bl-panel .lead-title{ display:flex; align-items:center; gap:8px; }
.bl-plan{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.bl-sub{ font-weight:600; font-size:14px; margin-bottom:8px; }
.bl-list{ list-style:none; margin:0; padding:0; display:grid; gap:7px; }
.bl-list li{ display:flex; align-items:center; gap:8px; font-size:13.5px; }
.bl-list .ni{ width:15px; height:15px; flex:none; color:var(--tag-green-dot, #0a7a45); }
.bl-tag{ font:600 10px/1 var(--sans); letter-spacing:.04em; text-transform:uppercase; padding:3px 6px; border-radius:999px;
  color:#cb1f12; background:rgba(203,31,18,.11); white-space:nowrap; }
.bl-muted{ margin:0; font-size:13px; color:var(--muted); line-height:1.5; }
.bl-line{ margin:0 0 6px; font-size:13.5px; line-height:1.5; }
.bl-steps{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.bl-steps li{ display:flex; gap:10px; align-items:flex-start; opacity:.55; transition:opacity .3s; }
.bl-steps li.now, .bl-steps li.done{ opacity:1; }
.bl-steps b{ display:block; font-size:13.5px; font-weight:600; margin-bottom:3px; }
.bl-steps li div span{ font-size:12.5px; color:var(--muted); line-height:1.45; }
.bl-n{ flex:none; width:24px; height:24px; border-radius:50%; display:grid; place-items:center; font:600 12px/1 var(--sans);
  border:1.5px solid var(--line); color:var(--muted); transition:background .3s, color .3s, border-color .3s; }
.bl-steps li.now .bl-n{ border-color:var(--ink); color:var(--ink); }
.bl-steps li.done .bl-n{ background:var(--tag-green-dot, #0a7a45); border-color:transparent; color:#fff; }
.bl-hist{ display:grid; }
.bl-row{ display:grid; grid-template-columns:1fr auto auto; align-items:center; gap:14px; width:100%; padding:10px 8px; margin:0 -8px; box-sizing:content-box;
  background:none; border:0; border-top:1px solid var(--rowline, var(--line)); font:inherit; font-size:14px; color:inherit; text-align:left; cursor:pointer; border-radius:8px; transition:background .15s; }
.bl-row:first-child{ border-top:0; }
.bl-row:hover, .bl-row.on{ background:var(--hoverbg, color-mix(in srgb, currentColor 6%, transparent)); }
.bl-amt{ color:var(--muted); font-variant-numeric:tabular-nums; }
.bl-help{ margin-top:12px; }
@media (max-width:1100px){ .bl-steps{ grid-template-columns:1fr 1fr; } }
@media (max-width:900px){
  .billing.bl-grid{ grid-template-columns:1fr; }
  .bl-left{ position:static; }
  .bl-left .rc{ max-width:360px; margin:0 auto; width:100%; }
}
@media (max-width:560px){ .bl-kpis{ grid-template-columns:1fr 1fr; } .bl-kpis .kpi:last-child{ display:none; } .bl-plan, .bl-steps{ grid-template-columns:1fr; } }
#bill-state .seg-btn{ font:500 12.5px/1 var(--sans); letter-spacing:0; text-transform:none; padding:7px 14px; }
