/* Public demo client portal (/client-portal/demo): sticky demo banner, toasts, closing CTA, demo payment screen.
   Loaded on top of the real client styles (pay.css / work-public.css). */
.dp-bar { position: sticky; top: 0; z-index: 50; color: #fff; font: 600 14px/1.35 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: linear-gradient(100deg, #6c2bf2 0%, #a22fd0 38%, #e9388e 70%, #ff5a1f 100%); background-size: 180% 100%; animation: dp-flow 12s ease-in-out infinite alternate;
  box-shadow: 0 10px 30px -18px rgba(60, 20, 120, .8); }
@keyframes dp-flow { to { background-position: 100% 0; } }
.dp-bar__in { max-width: 1080px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; }
.dp-bar__back { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: #fff; text-decoration: none; font-weight: 800; background: rgba(255,255,255,.18); }
.dp-bar__back:hover { background: rgba(255,255,255,.3); }
.dp-bar__pill { flex: none; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 99px; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.35); position: relative; }
.dp-bar__pill::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #fff; margin-right: 6px; vertical-align: 1px; animation: dp-blink 1.8s infinite; }
@keyframes dp-blink { 50% { opacity: .3; } }
.dp-bar__txt { margin: 0; flex: 1; min-width: 0; } .dp-bar__txt span { opacity: .92; font-weight: 500; }
.dp-bar__cta { flex: none; padding: 9px 16px; border-radius: 12px; background: #fff; color: #5b1fd6; font-weight: 800; text-decoration: none; white-space: nowrap; box-shadow: 0 10px 22px -12px rgba(0,0,0,.5); transition: transform .2s, box-shadow .2s; }
.dp-bar__cta:hover { transform: translateY(-1px); box-shadow: 0 14px 26px -12px rgba(0,0,0,.55); }
@media (max-width: 760px) { .dp-bar__long { display: none; } }
@media (max-width: 520px) {
  .dp-bar { font-size: 12.5px; } .dp-bar__in { padding: 8px 12px; gap: 8px; } .dp-bar__pill { display: none; }
  .dp-bar__cta { padding: 8px 12px; font-size: 13px; } .dp-bar__back { width: 28px; height: 28px; }
}
/* toasts */
.dp-toast { position: fixed; left: 50%; bottom: 20px; z-index: 60; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px); display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 16px; color: #fff; font: 600 14px/1.4 "Plus Jakarta Sans", system-ui, sans-serif; background: rgba(27, 23, 51, .92); backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px -18px rgba(0,0,0,.6); animation: dp-toast .45s cubic-bezier(.2,.9,.2,1.2) both; }
.dp-toast::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, #e9388e, #ff5a1f); box-shadow: 0 0 0 4px rgba(233,56,142,.25); }
.dp-toast.is-out { animation: dp-toast-out .3s ease-in both; }
@keyframes dp-toast { from { opacity: 0; transform: translate(-50%, 16px) scale(.96); } }
@keyframes dp-toast-out { to { opacity: 0; transform: translate(-50%, 10px); } }
/* closing CTA card */
.dp-end { position: relative; overflow: hidden; border-radius: 24px; padding: 28px 24px; color: #fff; text-align: center; font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  background: radial-gradient(500px 220px at 85% 0%, rgba(255,90,31,.55), transparent 70%), radial-gradient(500px 260px at 10% 100%, rgba(233,56,142,.55), transparent 70%), #2a1257; }
.dp-end h2 { margin: 0 0 8px; font-size: clamp(20px, 4vw, 26px); letter-spacing: -.02em; line-height: 1.2; }
.dp-end p { margin: 0 auto 18px; max-width: 520px; color: rgba(255,255,255,.82); font-size: 14.5px; }
.dp-end__btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.dp-end__cta, .dp-end__ghost { padding: 13px 18px; border-radius: 14px; font-weight: 800; text-decoration: none; font-size: 15px; }
.dp-end__cta { color: #fff; background: linear-gradient(110deg, #6c2bf2, #e9388e 60%, #ff5a1f); box-shadow: 0 16px 30px -14px #e9388e; }
.dp-end__ghost { color: #fff; border: 1px solid rgba(255,255,255,.35); }
.dp-end__ghost:hover { background: rgba(255,255,255,.1); }
.dp-end__spark { position: absolute; width: 180px; height: 180px; right: -50px; top: -60px; border-radius: 50%; border: 1px dashed rgba(255,255,255,.25); animation: dp-spin 30s linear infinite; }
@keyframes dp-spin { to { transform: rotate(360deg); } }
/* order page: the work page uses its own font; keep the banner and card in the brand font */
.wp ~ .dp-toast, .wp .dp-end { font-family: "Plus Jakarta Sans", system-ui, sans-serif; }
/* demo payment screen */
.dp-paid { text-align: center; padding-top: 40px; }
.dp-paid__tick { display: block; width: 84px; height: 84px; margin: 0 auto 10px; }
.dp-paid__tick svg { width: 100%; height: 100%; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.dp-paid__tick circle { stroke: #16a34a; stroke-width: 3; fill: #dcfce7; stroke-dasharray: 151; stroke-dashoffset: 151; animation: dp-draw .7s ease-out forwards; }
.dp-paid__tick path { stroke: #15803d; stroke-width: 4; stroke-dasharray: 40; stroke-dashoffset: 40; animation: dp-draw .45s .55s ease-out forwards; }
@keyframes dp-draw { to { stroke-dashoffset: 0; } }
.dp-paid__k { display: block; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #15803d; }
.dp-paid__amt { display: block; font-size: clamp(38px, 10vw, 54px); letter-spacing: -.04em; line-height: 1.1; margin-top: 4px; font-variant-numeric: tabular-nums; }
.dp-paid__to { margin: 6px 0 18px; color: var(--mut); }
.dp-paid__steps { list-style: none; margin: 0 auto; padding: 0; max-width: 520px; display: grid; gap: 8px; text-align: left; }
.dp-paid__steps li { padding: 12px 14px; border-radius: 14px; background: #faf8ff; border: 1px solid var(--line); font-size: 14px; color: #48435f; }
.dp-paid__steps b { color: var(--ink); }
.dp-paid__burst { position: absolute; left: 50%; top: 82px; width: 0; height: 0; }
.dp-paid__burst i { position: absolute; width: 8px; height: 14px; border-radius: 3px; opacity: 0; animation: dp-burst 1.1s .5s cubic-bezier(.15,.7,.3,1) forwards; }
.dp-paid__burst i:nth-child(odd) { background: #e9388e; } .dp-paid__burst i:nth-child(even) { background: #6c2bf2; } .dp-paid__burst i:nth-child(3n) { background: #ff5a1f; }
.dp-paid__burst i:nth-child(1) { --x: -120px; --y: -40px; --r: -40deg; } .dp-paid__burst i:nth-child(2) { --x: 120px; --y: -50px; --r: 50deg; }
.dp-paid__burst i:nth-child(3) { --x: -90px; --y: 50px; --r: 120deg; } .dp-paid__burst i:nth-child(4) { --x: 95px; --y: 45px; --r: -110deg; }
.dp-paid__burst i:nth-child(5) { --x: -150px; --y: 10px; --r: 200deg; } .dp-paid__burst i:nth-child(6) { --x: 150px; --y: 5px; --r: -200deg; }
.dp-paid__burst i:nth-child(7) { --x: -40px; --y: -70px; --r: 80deg; } .dp-paid__burst i:nth-child(8) { --x: 45px; --y: -75px; --r: -80deg; }
@keyframes dp-burst { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--r)); } }
@media (prefers-reduced-motion: reduce) {
  .dp-bar, .dp-bar__pill::before, .dp-end__spark, .dp-toast, .dp-paid__burst i { animation: none !important; }
  .dp-paid__tick circle, .dp-paid__tick path { animation: none !important; stroke-dashoffset: 0; }
}
/* QA app-responsive 2026-11-22: back arrow keeps its small look but gets a 44px touch area */
.dp-bar__back { position: relative; } .dp-bar__back::after { content: ""; position: absolute; inset: -8px; }
