/* pixxsuite.com — billing pages: pricing, checkout modal, My Plan, support (on top of shared/pixx.css + hub.css) */
.hub-nav a.on { background: rgba(var(--acc-rgb), .18); color: #fff !important; }
.bill-main { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 clamp(14px, 3vw, 40px) 40px; }
.bill-main.narrow { max-width: 820px; }
.bill-hero { padding: clamp(28px, 4vw, 54px) 0 18px; max-width: 860px; }
.bill-hero.compact { padding: 14px 0 12px; }
.bill-hero h1 { font-size: clamp(28px, 3.6vw, 48px); line-height: 1.06; letter-spacing: -.03em; margin: 0 0 12px; background: linear-gradient(90deg, #fff 30%, #c9b6ff 65%, #f0a6fb); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bill-hero.compact h1 { font-size: clamp(24px, 2.6vw, 34px); }
.bill-hero p { font-size: 15.5px; line-height: 1.6; margin: 0; }
.bill-hero h1:focus { outline: none; }
.bill-back { margin-top: 18px; }
.bill-note { display: block; margin: 12px 0 0; padding: 9px 12px; border-radius: 12px; background: rgba(var(--acc-rgb), .1); border: 1px solid rgba(var(--acc-rgb), .3); font-size: 13px; color: #d9dcef; }
.bill-note > span:first-child { display: inline-flex; vertical-align: -4px; margin-right: 6px; }
.bill-note.good { background: rgba(61,220,151,.08); border-color: rgba(61,220,151,.35); }
.bill-note.bad { background: rgba(255,93,115,.08); border-color: rgba(255,93,115,.4); color: #ffc2cb; }
.bill-err { color: #ff9aa9; font-weight: 600; } .bill-good { color: var(--good); font-weight: 600; }

/* ---------- plans ---------- */
.bill-plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; margin-top: 8px; }
.bill-plan { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px 20px 20px; border-radius: 22px; background: linear-gradient(170deg, rgba(255,255,255,.055), rgba(255,255,255,.015)); border: 1px solid var(--line2); overflow: hidden; }
.bill-plan::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--acc), var(--acc2)); opacity: .8; }
.bill-plan[data-plan=unlimited] { border-color: rgba(var(--acc-rgb), .55); background: linear-gradient(170deg, rgba(var(--acc-rgb), .14), rgba(var(--acc2-rgb), .04)); }
.bill-plan.chosen { box-shadow: 0 0 0 2px var(--good), 0 14px 40px rgba(61,220,151,.12); }
/* "✓ Package selected" / "✓ Current plan": a calm green success state (still clickable: continues / opens My Plan) */
.pxs-app .btn.bill-cta-selected, .pxs-app .btn.bill-cta-current { background: rgba(61,220,151,.16); border: 1px solid rgba(61,220,151,.55); color: #c9ffe6; box-shadow: none; }
.pxs-app .btn.bill-cta-selected:hover:not(:disabled), .pxs-app .btn.bill-cta-current:hover { background: rgba(61,220,151,.24); filter: none; }
.bill-plan h3 { margin: 0; font-size: 19px; letter-spacing: -.02em; }
.bill-blurb { margin: 0; color: var(--muted); font-size: 13px; min-height: 2.8em; }
.bill-price { display: flex; align-items: baseline; gap: 4px; margin: 4px 0; }
.bill-amt { font-size: 40px; font-weight: 800; letter-spacing: -.03em; color: #fff; }
.bill-per { color: var(--muted); font-size: 13px; font-weight: 600; }
.bill-rows { display: flex; flex-direction: column; margin: 4px 0 8px; font-size: 13.5px; border-top: 1px solid var(--line); }
.bill-rows dt { color: var(--dim); font-weight: 700; font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; padding-top: 9px; }
.bill-rows dd { margin: 2px 0 0; padding-bottom: 9px; color: #d9dfe9; border-bottom: 1px solid var(--line); }
.bill-cta { margin-top: auto; height: 42px !important; width: 100%; font-size: 14px; text-decoration: none; }
.bill-disclose { margin: 16px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--muted); max-width: 980px; }
.bill-faq { margin: 34px 0 0; max-width: 900px; }
.bill-faq h2 { font-size: 20px; margin: 0 0 8px; }

/* ---------- picker ---------- */
.bill-picker { display: flex; flex-direction: column; gap: 10px; }
.bill-picker-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.bill-search { width: 260px !important; max-width: 100%; }
.bill-count { font-size: 14px; color: #d9dcef; }
.bill-count b { color: #fff; }
.bill-hintbox { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 10px 12px; border-radius: 12px; border: 1px dashed rgba(var(--acc2-rgb), .5); background: rgba(var(--acc2-rgb), .06); font-size: 13px; color: #d4dbe6; }
.bill-hintbox .ico { color: var(--acc2); margin-top: 2px; }
.bill-apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.pxs-app .bill-app { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 40px 12px 12px; min-height: 64px; border-radius: 14px; text-align: left; border: 1px solid var(--line2); background: rgba(255,255,255,.03); transition: border-color .12s, background .12s, transform .12s; }
.pxs-app .bill-app:hover { border-color: color-mix(in srgb, var(--tile-acc) 60%, transparent); }
.pxs-app .bill-app.on { border-color: var(--tile-acc); background: linear-gradient(135deg, color-mix(in srgb, var(--tile-acc) 22%, transparent), color-mix(in srgb, var(--tile-acc2) 8%, transparent)); }
.pxs-app .bill-app.dis { opacity: .42; cursor: not-allowed; }
.pxs-app .bill-app.hl:not(.on) { box-shadow: 0 0 0 2px color-mix(in srgb, var(--tile-acc) 70%, transparent); }
.bill-app-mark { flex: none; display: inline-flex; }
.bill-app-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.bill-app-txt b { font-size: 14px; color: #fff; }
.bill-app-txt span { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.bill-check { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line2); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; color: #0b0b12; }
.bill-app.on .bill-check { background: var(--tile-acc); border-color: var(--tile-acc); }
.bill-stickybar { position: sticky; bottom: 0; z-index: 4; display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 16px calc(12px + var(--safe-b)); border-radius: 16px 16px 0 0; background: rgba(20,22,34,.95); border: 1px solid var(--line2); backdrop-filter: blur(12px); font-size: 14px; }
.bill-stickybar .btn { height: 42px; padding: 0 22px; }

/* ---------- review ---------- */
.bill-card { padding: clamp(18px, 2.4vw, 26px); border-radius: 20px; background: linear-gradient(180deg, rgba(28,41,64,.82), rgba(20,21,32,.9)); border: 1px solid var(--line2); box-shadow: var(--shadow); margin-top: 8px; }
.bill-card h1 { font-size: 24px; margin: 0 0 8px; letter-spacing: -.02em; }
.bill-gate { max-width: 560px; }
.bill-reviewcard { max-width: 760px; }
.bill-review { display: flex; flex-direction: column; gap: 14px; max-width: 680px; }
.bill-sum { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.bill-sum-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.bill-sum-row:last-child { border-bottom: 0; }
.bill-sum-row > span:first-child { color: var(--muted); flex: none; }
.bill-sum-row.total { background: rgba(var(--acc-rgb), .1); font-size: 16px; }
.bill-sum .bill-note { margin: 8px 12px 12px; }
.bill-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.bill-myplan .bill-chips { justify-content: flex-start; }
.bill-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 4px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(255,255,255,.04); font-size: 12px; font-weight: 600; color: #e6e8f2; }
.bill-chip > span { display: inline-flex; }
.pxs-app button.bill-chip.app { padding: 4px 10px 4px 5px; }
.pxs-app button.bill-chip.app:hover { border-color: rgba(var(--acc-rgb), .6); }
.bill-promo { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bill-promobox { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; border: 1px dashed rgba(var(--acc-rgb), .55); background: rgba(var(--acc-rgb), .07); }
.bill-promolbl { display: block; font-weight: 700; margin-bottom: 8px; color: #fff; }
.bill-compnote { color: var(--good); }
.bill-badge.comp { background: rgba(61, 220, 151, .16); color: var(--good); border-color: rgba(61, 220, 151, .45); }
.bill-promo .text { width: 180px; text-transform: uppercase; }
.bill-consent { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(255,255,255,.03); font-size: 13px; line-height: 1.55; color: #d4dbe6; cursor: pointer; }
.bill-consent input { margin-top: 3px; flex: none; width: 18px; height: 18px; }
.bill-pay { height: 46px !important; padding: 0 26px !important; font-size: 15px !important; align-self: flex-start; }
.bill-fine { display: block; margin: 4px 0 0; font-size: 12px; line-height: 1.55; color: var(--muted); }
.bill-fine .ico { vertical-align: -2px; margin-right: 4px; }
.bill-hintline { color: var(--muted); font-size: 12px; font-weight: 400; }

/* ---------- status / success ---------- */
.bill-status { max-width: 760px; margin: 30px auto 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bill-status .bill-openapps { width: 100%; margin-top: 12px; text-align: left; }
.bill-spin { width: 40px; height: 40px; border-radius: 50%; border: 3px solid rgba(255,255,255,.12); border-top-color: var(--acc); animation: bill-spin .8s linear infinite; margin: 10px auto; }
@keyframes bill-spin { to { transform: rotate(360deg); } }
.bill-ok { width: 54px; height: 54px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 800; color: #052; background: var(--good); box-shadow: 0 10px 30px rgba(61,220,151,.35); }

/* ---------- checkout modal ---------- */
.bill-co-ov { position: fixed; inset: 0; z-index: 75; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(5,6,10,.7); backdrop-filter: blur(6px); animation: pxs-fade .14s; }
html.bill-co-open, html.bill-co-open body { overflow: hidden; }
.bill-co { width: min(640px, 100%); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; border-radius: 20px; background: #fff; color: #1a1d29; box-shadow: 0 30px 90px rgba(0,0,0,.6); overflow: hidden; animation: pxs-rise .18s; }
.bill-co-head { display: flex; align-items: center; gap: 8px; padding: 12px 12px 12px 18px; border-bottom: 1px solid #e6e8ef; background: #f7f8fb; }
.bill-co-head h2 { margin: 0; font-size: 15px; color: #1a1d29; }
.bill-co-head .ico { color: #635bff; }
.pxs-app .bill-co-head .ibtn { color: #4b5064; } .pxs-app .bill-co-head .ibtn:hover { background: #e9ebf2; color: #111; }
.bill-co-body { padding: 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; min-height: 240px; }
.bill-co-body .muted { color: #5b6275; }
.bill-co-body .bill-note { background: #f1f0ff; border-color: #c9c5ff; color: #2d2a6b; }
.bill-co-body .field.col > span { color: #3b4154; }
.bill-co-body .text { background: #fff; border: 1px solid #d5d8e3; color: #111; height: 40px; }
.bill-co-body .bill-err { color: #c0213b; }
.bill-co-mount { min-height: 420px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- my plan ---------- */
.acct-page.wide { max-width: 860px; }
.bill-myplan-wrap { margin-top: 26px; }
.bill-myplan-wrap > h2 { font-size: 20px; margin: 0 0 10px; }
.bill-mp-head { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.bill-mp-head h3 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.bill-badge { padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(var(--acc-rgb), .18); border: 1px solid rgba(var(--acc-rgb), .45); color: #fff; }
.bill-badge.active { background: rgba(61,220,151,.14); border-color: rgba(61,220,151,.45); color: #b9f5d8; }
.bill-badge.cancelling { background: rgba(255,181,71,.14); border-color: rgba(255,181,71,.5); color: #ffe2b0; }
.bill-badge.past_due, .bill-badge.unpaid, .bill-badge.incomplete { background: rgba(255,93,115,.14); border-color: rgba(255,93,115,.5); color: #ffc2cb; }
.bill-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 11px 14px; margin: 0 0 10px; border-radius: 14px; border: 1px solid rgba(var(--acc-rgb), .4); background: rgba(var(--acc-rgb), .1); font-size: 13.5px; }
.bill-banner.warn { border-color: rgba(255,181,71,.5); background: rgba(255,181,71,.1); color: #ffe2b0; }
.bill-banner.bad { border-color: rgba(255,93,115,.55); background: rgba(255,93,115,.1); color: #ffc2cb; }
.bill-banner.good { border-color: rgba(61,220,151,.5); background: rgba(61,220,151,.1); color: #c9f5e0; }
.bill-note.warn { background: rgba(255,181,71,.08); border-color: rgba(255,181,71,.4); color: #ffe2b0; }
.bill-list { margin: 8px 0 10px; padding-left: 20px; display: grid; gap: 5px; font-size: 13px; color: #d9dcef; }
.bill-refundline b { color: #fff; }
.bill-mp-actions { margin-top: 16px; }
.bill-meter { margin-top: 6px; display: flex; flex-direction: column; gap: 6px; }
.bill-bar { height: 8px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; }
.bill-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--acc), var(--acc2)); transition: width .3s; }
.bill-meter.p80 .bill-bar i { background: #ffb547; } .bill-meter.p95 .bill-bar i { background: #ff8a3d; } .bill-meter.p100 .bill-bar i { background: var(--bad); }
.bill-chooser { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.pxs-overlay .bill-choose, .pxs-app .bill-choose { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 14px; border: 1px solid var(--line2); background: rgba(255,255,255,.03); text-align: left; cursor: pointer; color: var(--text); font: 13px var(--font); }
.bill-choose b { font-size: 14px; } .bill-choose.cur { border-style: dashed; }
.bill-choose.on { border-color: var(--acc); background: rgba(var(--acc-rgb), .16); }
.bill-editdlg .bill-apps { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); max-height: 46vh; overflow-y: auto; padding: 2px; }
.bill-editdlg .pxs-modal { max-width: 980px; }
.pxs-overlay .bill-picker .seg { display: inline-flex; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 10px; padding: 2px; gap: 2px; flex-wrap: wrap; }
.pxs-overlay .bill-picker .seg button { height: 26px; padding: 0 9px; border-radius: 8px; color: var(--muted); background: none; border: 0; font: 12px var(--font); cursor: pointer; }
.pxs-overlay .bill-picker .seg button.on { background: var(--panel3); color: #fff; }

/* ---------- support ---------- */
.bill-support { max-width: 760px; display: flex; flex-direction: column; }
.bill-support textarea.text { min-height: 150px; font: 14px/1.5 var(--font); }
.bill-support .btn.primary { align-self: flex-start; height: 42px; padding: 0 22px; }
.bill-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bill-formmsg { min-height: 0; margin: 0 0 10px; font-size: 13px; }
.bill-formmsg:empty { display: none; } .bill-formmsg.bad { color: #ff9aa9; font-weight: 600; }

/* ---------- footer ---------- */
.hub-foot2 { width: 100%; max-width: 1240px; margin: 40px auto 0; padding: 16px clamp(14px, 3vw, 40px) calc(24px + var(--safe-b)); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.hub-foot-links { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13px; }
.hub-foot-links a { color: #c8c8d8 !important; text-decoration: none; } .hub-foot-links a:hover { color: #fff !important; text-decoration: underline; }
.legal-billing { margin: 26px 0 0; padding: 14px 18px; border-radius: 14px; border: 1px dashed rgba(255,181,71,.6); background: rgba(255,181,71,.06); }
.legal-billing h2 { margin-top: 0 !important; color: #ffcf85 !important; }

@media (max-width: 1100px) { .bill-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bill-chooser { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .bill-plans, .bill-chooser { grid-template-columns: minmax(0, 1fr); }
  .bill-apps { grid-template-columns: minmax(0, 1fr); }
  .bill-search { width: 100% !important; }
  .bill-picker-bar .seg { overflow-x: auto; max-width: 100%; flex-wrap: nowrap; }
  .bill-sum-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .bill-chips { justify-content: flex-start; }
  .grid2 { grid-template-columns: minmax(0, 1fr); }
  .bill-co-ov { padding: 0; align-items: stretch; }
  .bill-co { width: 100%; max-height: none; height: 100dvh; border-radius: 0; }
  .bill-pay { width: 100%; }
  .bill-stickybar { margin-left: -14px; margin-right: -14px; border-radius: 0; }
  /* phones: the nav becomes a scrollable second row under the brand */
  .hub-top { flex-wrap: wrap; row-gap: 6px; }
  .hub-nav { display: flex !important; order: 10; width: 100%; margin-left: 0; overflow-x: auto; scrollbar-width: none; }
  .hub-nav::-webkit-scrollbar { display: none; }
  .hub-nav a { white-space: nowrap; padding: 6px 9px; }
}
@media (prefers-reduced-motion: reduce) { .bill-spin { animation-duration: 2.4s; } }
