/* Bold promotion strip + offer poster. Shared by the public homepage (#pwPromo) and the signed-in workspace (#pwWorkspaceOffers). */
@property --pwp-spin { syntax: '<angle>'; inherits: false; initial-value: 0deg }
.pwp-bar, .pwp-dialog {
  --pwp-accent: #ffad73;
  --pwp-deep: color-mix(in srgb, var(--pwp-accent) 52%, #3a1204);
  --pwp-ink: #1d0d05;
  color: #fff7ef;
}
.pwp-bar[data-theme=gold], .pwp-dialog[data-theme=gold] { --pwp-accent: #ffd35e }
.pwp-bar[data-theme=violet], .pwp-dialog[data-theme=violet] { --pwp-accent: #d3a6ff }
.pwp-bar[data-theme=dark], .pwp-dialog[data-theme=dark] { --pwp-accent: #f2d5bd }

/* ───────── the strip ───────── */
.pwp-bar {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  min-block-size: 58px;
  padding: 8px 56px;
  background:
    radial-gradient(ellipse 60% 190% at 50% 175%, color-mix(in srgb, var(--pwp-accent) 55%, #1a0b10), transparent 100%),
    linear-gradient(180deg, #1c1219, #130c12);
  font-size: .9375rem;
  font-weight: 650;
  line-height: 1.3;
  text-align: center;
}
/* moving hazard stripes */
.pwp-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(115deg, color-mix(in srgb, var(--pwp-accent) 13%, transparent) 0 12px, transparent 12px 26px);
  -webkit-mask: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
  mask: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
}
/* flowing light line */
.pwp-bar::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  block-size: 3px;
  background: linear-gradient(90deg, transparent 0, var(--pwp-accent) 22%, #fff 50%, var(--pwp-accent) 78%, transparent 100%) 0 0 / 220% 100%;
}
#pwPromo { position: sticky; inset-block-start: 0; z-index: 70 }
.pwp-in {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 16px;
  max-inline-size: 100%;
  min-inline-size: 0;
}
.pwp-text { overflow-wrap: anywhere; color: #fff0e6; font-weight: 650; text-shadow: 0 1px 10px #0008 }

/* the highlight is a notched ticket */
.pwp-bar .pwp-value {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  padding: 7px 20px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--pwp-accent) 72%, #fff), var(--pwp-accent) 55%, color-mix(in srgb, var(--pwp-accent) 80%, #b24a12));
  color: var(--pwp-ink);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.05;
  text-transform: uppercase;
  white-space: nowrap;
  transform: rotate(-2.5deg);
  -webkit-mask: radial-gradient(circle 6px at 0 50%, #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 6px at 100% 50%, #0000 97%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 6px at 0 50%, #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 6px at 100% 50%, #0000 97%, #000) right / 51% 100% no-repeat;
}
.pwp-bar .pwp-value::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, #ffffffb0 50%, transparent 65%);
  transform: translateX(-130%);
}

.pwp-count { color: var(--pwp-accent); font-variant-numeric: tabular-nums; white-space: nowrap }
.pwp-bar .pwp-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border: 1px solid color-mix(in srgb, var(--pwp-accent) 45%, transparent);
  border-radius: 8px;
  background: #0f090fd0;
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .04em;
}
.pwp-bar .pwp-count::before, .pwp-deadline::before {
  content: "";
  inline-size: 8px;
  block-size: 8px;
  border-radius: 50%;
  background: #ff4d4d;
  box-shadow: 0 0 0 0 #ff4d4d99, 0 0 8px #ff4d4d;
  flex: none;
}

/* CTA */
.pwp-bar .pwp-cta, .pwp-dialog .pwp-cta {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-block-size: 40px;
  padding: 7px 20px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--pwp-accent) 70%, #fff), var(--pwp-accent));
  color: var(--pwp-ink);
  font: inherit;
  font-weight: 900;
  letter-spacing: .01em;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--pwp-accent) 70%, transparent), 0 6px 18px -6px color-mix(in srgb, var(--pwp-accent) 80%, transparent);
  transition: transform .18s cubic-bezier(.3, 1.6, .5, 1), filter .18s;
}
.pwp-bar .pwp-cta::before, .pwp-dialog .pwp-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 38%, #fff9 50%, transparent 62%);
  transform: translateX(-130%);
}
.pwp-bar .pwp-cta::after, .pwp-dialog .pwp-cta::after { content: '→'; font-weight: 900; font-size: 1.15em; transition: transform .2s }
[dir=rtl] .pwp-cta::after { content: '←' }
.pwp-bar .pwp-cta:hover, .pwp-dialog .pwp-cta:hover { transform: translateY(-2px) scale(1.04); filter: brightness(1.08) }
.pwp-bar .pwp-cta:hover::after, .pwp-dialog .pwp-cta:hover::after { transform: translateX(5px) }
[dir=rtl] .pwp-cta:hover::after { transform: translateX(-5px) }
.pwp-bar .pwp-cta:active, .pwp-dialog .pwp-cta:active { transform: scale(.97) }

.pwp-bar .pwp-x, .pwp-dialog .pwp-x {
  position: absolute;
  inset-inline-end: 8px;
  inset-block-start: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #e9d8cf;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s, transform .25s;
}
.pwp-bar .pwp-x:hover, .pwp-dialog .pwp-x:hover { background: #ffffff1f; color: #fff }
.pwp-dialog .pwp-x:hover { transform: rotate(90deg) }
.pwp-bar :focus-visible, .pwp-dialog :focus-visible { outline: 2px solid #fff; outline-offset: 3px }

/* ───────── the poster ───────── */
.pwp-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  inline-size: min(560px, calc(100vw - 24px));
  max-block-size: calc(100dvh - 24px);
  box-sizing: border-box;
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: transparent;
  box-shadow: 0 30px 90px #000c, 0 0 90px -20px color-mix(in srgb, var(--pwp-accent) 70%, transparent);
  overflow: hidden auto;
  color-scheme: dark;
}
.pwp-dialog::backdrop {
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, #ff6a1f 22%, #08060a), #060408f2 70%);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.pwp-dialog-in {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  justify-items: start;
  gap: 14px;
  padding: clamp(26px, 6vw, 46px);
  border-radius: 28px;
  background:
    radial-gradient(ellipse 90% 60% at 20% -8%, color-mix(in srgb, var(--pwp-accent) 42%, transparent), transparent 70%),
    radial-gradient(ellipse 70% 50% at 100% 110%, color-mix(in srgb, var(--pwp-accent) 30%, transparent), transparent 70%),
    linear-gradient(160deg, #20131a, #110b13 60%, #170d12);
}
/* spinning light ring border */
.pwp-dialog-in::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from var(--pwp-spin), transparent 0 55%, var(--pwp-accent) 80%, #fff 90%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
/* floating sparks + hazard band */
.pwp-dialog-in::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle 3px at 12% 70%, var(--pwp-accent) 98%, transparent),
    radial-gradient(circle 2px at 82% 24%, #fff 98%, transparent),
    radial-gradient(circle 4px at 90% 78%, var(--pwp-accent) 98%, transparent),
    radial-gradient(circle 2px at 40% 90%, #fff 98%, transparent),
    radial-gradient(circle 3px at 66% 12%, var(--pwp-accent) 98%, transparent),
    repeating-linear-gradient(115deg, color-mix(in srgb, var(--pwp-accent) 8%, transparent) 0 14px, transparent 14px 30px);
  opacity: .8;
}
.pwp-dialog .pwp-x { inset-block-start: 14px; inset-inline-end: 14px; transform: none; background: #ffffff14 }
.pwp-mark {
  margin-block-end: 2px;
  inline-size: 52px;
  block-size: 52px;
  padding: 4px;
  border-radius: 16px;
  background: #ffffff10;
  box-shadow: 0 0 0 1px #ffffff22, 0 0 28px -4px color-mix(in srgb, var(--pwp-accent) 80%, transparent);
}
.pwp-dialog p, .pwp-dialog h2 { margin: 0 }
/* the big number / word: extruded, shiny, tilted */
.pwp-dialog-value {
  max-inline-size: 100%;
  padding-block: .04em .08em;
  background: linear-gradient(100deg, var(--pwp-accent) 0%, #fff 22%, var(--pwp-accent) 44%, color-mix(in srgb, var(--pwp-accent) 75%, #b24a12) 100%) 0 0 / 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-size: clamp(2.8rem, 13vw, 5.6rem);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: .98;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  transform: rotate(-3deg);
  transform-origin: left bottom;
  filter: drop-shadow(0 2px 0 var(--pwp-deep)) drop-shadow(0 5px 0 color-mix(in srgb, var(--pwp-deep) 70%, #000)) drop-shadow(0 18px 20px #000a);
}
[dir=rtl] .pwp-dialog-value { transform: rotate(3deg); transform-origin: right bottom }
.pwp-dialog h2 {
  color: #fff7ef;
  font-size: clamp(1.45rem, 4.2vw, 2.15rem);
  font-weight: 850;
  letter-spacing: -.03em;
  line-height: 1.12;
  overflow-wrap: anywhere;
}
#pwOfferDetail { color: #ead9d2; font-size: 1.02rem; line-height: 1.55; overflow-wrap: anywhere }
.pwp-deadline {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid color-mix(in srgb, var(--pwp-accent) 45%, transparent);
  border-radius: 12px;
  background: #0f090fcc;
  color: #ead9d2;
  font-size: .95rem;
}
.pwp-deadline .pwp-count { font-size: 1.15rem; font-weight: 900; letter-spacing: .05em }
.pwp-dialog .pwp-cta {
  inline-size: 100%;
  min-block-size: 56px;
  margin-block-start: 8px;
  border-radius: 16px;
  font-size: 1.1rem;
  box-sizing: border-box;
}
.pwp-bar[hidden], .pwp-bar [hidden], .pwp-dialog [hidden] { display: none }

/* ───────── motion ───────── */
@media (prefers-reduced-motion: no-preference) {
  .pwp-bar::before { animation: pwp-stripes 2.6s linear infinite }
  .pwp-bar::after { animation: pwp-flow 3.2s linear infinite }
  .pwp-bar .pwp-value { animation: pwp-wobble 3.6s ease-in-out infinite }
  .pwp-bar .pwp-value::after { animation: pwp-sheen 3.4s ease-in-out 1s infinite }
  .pwp-bar .pwp-cta { animation: pwp-ring 2.6s ease-out 1.4s infinite }
  .pwp-bar .pwp-cta::before, .pwp-dialog .pwp-cta::before { animation: pwp-sheen 3s ease-in-out .6s infinite }
  .pwp-bar .pwp-count::before, .pwp-deadline::before { animation: pwp-blink 1.2s ease-in-out infinite }
  .pwp-bar:not([hidden]) .pwp-in > * { animation: pwp-rise .5s cubic-bezier(.2, 1.3, .4, 1) both }
  .pwp-bar:not([hidden]) .pwp-in > :nth-child(2) { animation-delay: .06s }
  .pwp-bar:not([hidden]) .pwp-in > :nth-child(3) { animation-delay: .12s }
  .pwp-bar:not([hidden]) .pwp-in > :nth-child(4) { animation-delay: .18s }

  .pwp-dialog[open] { animation: pwp-pop .55s cubic-bezier(.2, 1.25, .35, 1) both }
  .pwp-dialog[open]::backdrop { animation: pwp-fade .35s ease-out both }
  .pwp-dialog[open] .pwp-dialog-in::before { animation: pwp-spin 4.5s linear infinite }
  .pwp-dialog[open] .pwp-dialog-in::after { animation: pwp-float 5s ease-in-out infinite alternate }
  .pwp-dialog[open] .pwp-dialog-value { animation: pwp-slam .7s cubic-bezier(.2, 1.4, .35, 1) .12s both, pwp-shine 3.8s linear 1s infinite }
  .pwp-dialog[open] .pwp-mark { animation: pwp-drop .6s cubic-bezier(.2, 1.5, .4, 1) .05s both }
  .pwp-dialog[open] h2 { animation: pwp-rise .5s ease-out .3s both }
  .pwp-dialog[open] #pwOfferDetail { animation: pwp-rise .5s ease-out .4s both }
  .pwp-dialog[open] .pwp-deadline { animation: pwp-rise .5s ease-out .5s both }
  .pwp-dialog[open] .pwp-cta { animation: pwp-rise .5s ease-out .55s both, pwp-ring 2.4s ease-out 1.4s infinite }
}
@keyframes pwp-stripes { to { background-position: 26px 0 } }
@keyframes pwp-flow { to { background-position: -220% 0 } }
@keyframes pwp-wobble { 0%, 100% { transform: rotate(-2.5deg) } 50% { transform: rotate(-1deg) scale(1.04) } }
@keyframes pwp-sheen { 0%, 62% { transform: translateX(-130%) } 100% { transform: translateX(130%) } }
@keyframes pwp-ring { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--pwp-accent) 75%, transparent), 0 6px 18px -6px color-mix(in srgb, var(--pwp-accent) 80%, transparent) } 70%, 100% { box-shadow: 0 0 0 16px transparent, 0 6px 18px -6px color-mix(in srgb, var(--pwp-accent) 80%, transparent) } }
@keyframes pwp-blink { 50% { opacity: .35 } }
@keyframes pwp-rise { from { opacity: 0; transform: translateY(14px) } to { opacity: 1; transform: none } }
@keyframes pwp-pop { from { opacity: 0; transform: translateY(24px) scale(.86) rotate(-1.5deg) } to { opacity: 1; transform: none } }
@keyframes pwp-fade { from { opacity: 0 } }
@keyframes pwp-spin { to { --pwp-spin: 360deg } }
@keyframes pwp-float { from { transform: translateY(0) } to { transform: translateY(-14px) } }
@keyframes pwp-slam { from { opacity: 0; transform: rotate(-9deg) scale(1.9) } 60% { opacity: 1 } to { opacity: 1; transform: rotate(-3deg) scale(1) } }
@keyframes pwp-shine { to { background-position: -250% 0 } }
@keyframes pwp-drop { from { opacity: 0; transform: translateY(-26px) scale(.5) } to { opacity: 1; transform: none } }

/* the public navigation follows the measured height of the strip */
html:has(#pwPromo:not([hidden])) { scroll-padding-top: calc(92px + var(--pwp-height, 58px)) }
.fx-body:has(#pwPromo:not([hidden])) .fx-nav { top: calc(14px + var(--pwp-height, 58px)) }

@media (max-width: 720px) {
  .pwp-bar { padding-inline: 40px; font-size: .8125rem; min-block-size: 52px }
  .pwp-bar .pwp-x { inset-inline-end: 1px }
  .pwp-in { gap: 6px 10px }
  .pwp-bar .pwp-value { padding: 5px 14px; font-size: .95rem }
  .pwp-bar .pwp-cta { min-block-size: 34px; padding: 4px 14px }
  html:has(.fx-body #pwPromo) { overflow-x: clip }
  /* the homepage strip is one row on phones: the ticket carries the offer, the full sentence stays for screen readers */
  #pwPromo { min-block-size: 50px; padding-block: 6px }
  #pwPromo .pwp-in { flex-wrap: nowrap }
  #pwPromo .pwp-text { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap }
  .fx-body:has(#pwPromo:not([hidden])) .fx-nav { top: calc(8px + var(--pwp-height, 50px)) }
  .pwp-dialog-in { padding: 24px 20px 26px }
}
@media (max-width: 360px) {
  .fx-body:has(#pwPromo) .fx-nav .nav-in { padding-inline: 8px; gap: 6px }
  .fx-body:has(#pwPromo) .fx-nav .brand { gap: 6px }
  .fx-body:has(#pwPromo) .fx-nav .langs a { padding-inline: 5px }
}

[dir=rtl] .pwp-value, [dir=rtl] .pwp-dialog-value, [dir=rtl] .pwp-dialog h2, :lang(ar) .pwp-value, :lang(ar) .pwp-dialog-value, :lang(ar) .pwp-dialog h2 { letter-spacing: 0; text-transform: none }

/* tighter strip so the ticket, sentence and button share one row on laptops */
.pwp-bar { padding-inline: 48px }
.pwp-in { gap: 6px 12px }
.pwp-bar .pwp-value { padding: 6px 16px; font-size: clamp(1rem, 1.25vw, 1.2rem) }
.pwp-text { font-size: .9rem }
.pwp-bar .pwp-cta { padding: 6px 16px }
@media (max-width: 720px) {
  .pwp-bar { padding-inline: 40px }
  .pwp-bar .pwp-value { padding: 5px 14px; font-size: .95rem }
  .pwp-text { font-size: .8125rem }
  .pwp-bar .pwp-cta { padding: 4px 14px }
}

/* Direct upgrade: the button turns into a working state while the secure payment page opens. */
.pwp-dialog .pwp-cta.is-busy { pointer-events: none; filter: saturate(.85) brightness(.95) }
.pwp-dialog .pwp-cta.is-busy::after {
  content: ''; inline-size: 1em; block-size: 1em; border-radius: 50%;
  border: 3px solid currentColor; border-inline-end-color: transparent; transform: none;
}
@media (prefers-reduced-motion: no-preference) {
  .pwp-dialog .pwp-cta.is-busy::after { animation: pwp-busy .7s linear infinite }
  @keyframes pwp-busy { to { transform: rotate(360deg) } }
}
