/* Pro-Bestätigung nach dem Kauf (runtime/pro-welcome.js): kompakte Karte, ruhige Bestätigung */
html.pw-open, html.pw-open body { overflow: hidden; }
.pw-modal { position: fixed; inset: 0; z-index: 470; display: grid; place-items: center; padding: 16px; background: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(40, 46, 66, .32), rgba(3, 4, 8, .86)); -webkit-backdrop-filter: blur(18px) saturate(115%); backdrop-filter: blur(18px) saturate(115%); animation: pwFade .3s var(--ease) both; }
.pw-modal.is-closing { animation: pwFadeOut .2s ease both; }
.pw-card { position: relative; width: min(420px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; scrollbar-width: none; display: flex; flex-direction: column; align-items: center; padding: 34px 28px 22px; border-radius: 26px; text-align: center; outline: none; background: radial-gradient(120% 55% at 50% -12%, rgba(220, 226, 238, .16), transparent 62%), linear-gradient(180deg, #121521 0%, #0a0b12 100%); box-shadow: 0 60px 140px -30px rgba(0, 0, 0, .92), 0 0 0 1px rgba(220, 226, 238, .14), inset 0 1px 0 rgba(255, 255, 255, .09); animation: pwIn .55s var(--spring) both; }
.pw-card::-webkit-scrollbar { display: none; }
.pw-card::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(160deg, rgba(255, 255, 255, .55), rgba(220, 226, 238, .06) 42%, rgba(220, 226, 238, .3)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.pw-card.is-done::before { background: linear-gradient(160deg, rgba(255, 255, 255, .75), rgba(95, 212, 164, .14) 42%, rgba(220, 226, 238, .4)); }
.pw-card svg { flex: none; }
@keyframes pwFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pwFadeOut { to { opacity: 0; } }
@keyframes pwIn { from { opacity: 0; transform: translateY(14px) scale(.965); } to { opacity: 1; transform: none; } }

.pw-x { position: absolute; top: 14px; right: 14px; z-index: 2; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid rgba(220, 226, 238, .16); border-radius: 50%; background: rgba(255, 255, 255, .03); color: #9aa1b8; cursor: pointer; transition: color .2s, border-color .2s; }
.pw-x:hover { color: #fff; border-color: rgba(220, 226, 238, .45); }
.pw-x svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }

/* Emblem: Ring + Logo, beim Bestätigen Haken und kurzer Lichtkranz */
.pw-emblem { position: relative; display: grid; place-items: center; width: 96px; height: 96px; }
.pw-halo { position: absolute; inset: -18px; border-radius: 50%; background: radial-gradient(circle, rgba(220, 226, 238, .16), transparent 66%); opacity: .6; }
.pw-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.pw-ring circle { fill: none; stroke-width: 2.5; }
.pw-ring-bg { stroke: rgba(220, 226, 238, .12); }
.pw-ring-fg { stroke: #dce2ee; stroke-linecap: round; stroke-dasharray: 22 100; animation: pwSpin 1.4s linear infinite; transform-origin: 48px 48px; }
@keyframes pwSpin { to { transform: rotate(360deg); } }
.pw-core { position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(160deg, #20263a, #0d1017); box-shadow: inset 0 0 0 1px rgba(220, 226, 238, .18), 0 16px 40px -18px rgba(205, 220, 255, .55); }
.pw-core img { width: 30px; height: 30px; opacity: .9; transition: opacity .3s, transform .4s var(--ease); }
.pw-tick { position: absolute; width: 30px; height: 30px; fill: none; stroke: #07080c; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; }
.pw-sparks { position: absolute; inset: 0; pointer-events: none; }
.pw-sparks i { position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px rgba(255, 255, 255, .9); opacity: 0; transform: rotate(var(--a)) translateY(0); }

.is-done .pw-ring-fg { stroke: #5fd4a4; stroke-dasharray: 100 100; stroke-dashoffset: 100; animation: pwDraw .9s var(--ease) .05s forwards; transform: none; }
@keyframes pwDraw { to { stroke-dashoffset: 0; } }
.is-done .pw-core { background: linear-gradient(160deg, #ffffff, #e3e8f2 55%, #b9c1d3); box-shadow: 0 0 0 6px rgba(95, 212, 164, .08), 0 18px 46px -14px rgba(95, 212, 164, .55), inset 0 1px 0 #fff; animation: pwPop .6s var(--spring) .75s both; }
@keyframes pwPop { from { transform: scale(.82); } to { transform: none; } }
.is-done .pw-core img { opacity: 0; transform: scale(.6); transition-delay: .7s; }
.is-done .pw-tick { opacity: 1; animation: pwTick .45s var(--ease) .85s forwards; }
@keyframes pwTick { to { stroke-dashoffset: 0; } }
.is-done .pw-halo { background: radial-gradient(circle, rgba(95, 212, 164, .26), transparent 66%); animation: pwHalo 1.6s var(--ease) .8s both; }
@keyframes pwHalo { 0% { opacity: 0; transform: scale(.7); } 40% { opacity: 1; } 100% { opacity: .55; transform: none; } }
.is-done .pw-sparks i { animation: pwSpark .9s var(--ease) calc(.85s + var(--d)) both; }
@keyframes pwSpark { 0% { opacity: 0; transform: rotate(var(--a)) translateY(-30px) scale(.4); } 30% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-62px) scale(1); } }

.pw-kicker { display: inline-flex; align-items: center; gap: 7px; margin-top: 22px; font: 500 10px var(--mono); letter-spacing: .22em; text-transform: uppercase; color: #c9cfdd; }
.pw-kicker svg { width: 11px; height: 11px; fill: currentColor; }
.pw-card h2 { margin: 10px 0 0; font-size: 29px; font-weight: 740; font-stretch: 110%; letter-spacing: -.035em; line-height: 1.06; color: #fff; text-wrap: balance; }
.pw-sub { margin: 10px 0 0; max-width: 34ch; font-size: 13.5px; line-height: 1.55; color: #a3a9bf; text-wrap: balance; }

.pw-pills { list-style: none; margin: 22px 0 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.pw-pill { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; padding: 10px 4px 9px; border: 1px solid rgba(220, 226, 238, .1); border-radius: 13px; background: rgba(255, 255, 255, .02); transition: border-color .4s, background-color .4s; }
.pw-code { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(220, 226, 238, .2); font: 600 10.5px var(--mono); color: #c9cfdd; }
.pw-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; color: #a3a9bf; }
.pw-st { display: grid; place-items: center; width: 18px; height: 18px; color: #6c7389; }
.pw-st svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.is-wait .pw-pill, .is-slow .pw-pill { opacity: .7; }
.is-done .pw-pill { animation: pwUnlock .55s var(--spring) calc(1.05s + var(--i) * .12s) both; border-color: rgba(95, 212, 164, .32); background: linear-gradient(180deg, rgba(95, 212, 164, .1), rgba(95, 212, 164, .03)); }
.is-done .pw-code { border-color: rgba(95, 212, 164, .5); color: #fff; }
.is-done .pw-name { color: #e7ebf3; }
.is-done .pw-st { color: #5fd4a4; }
@keyframes pwUnlock { 0% { opacity: .55; transform: translateY(4px) scale(.96); border-color: rgba(220, 226, 238, .1); background: rgba(255, 255, 255, .02); } 60% { transform: translateY(-2px) scale(1.02); } 100% { opacity: 1; transform: none; } }

.pw-perks { list-style: none; margin: 16px 0 0; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 6px; text-align: left; }
.pw-perks li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 11px; background: rgba(255, 255, 255, .025); font-size: 12.5px; color: #d6dbe7; animation: pwRise .5s var(--ease) calc(1.6s + var(--i) * .1s) both; }
.pw-perks svg { width: 14px; height: 14px; fill: none; stroke: #5fd4a4; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@keyframes pwRise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.pw-actions { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 20px; }
.pw-cta { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; padding: 0 22px; border: 0; border-radius: 999px; background: linear-gradient(180deg, #ffffff 0%, #eef1f7 45%, #cdd4e2 100%); color: #07080c; font: 680 15px var(--sans); letter-spacing: -.01em; text-decoration: none; cursor: pointer; overflow: hidden; isolation: isolate; box-shadow: 0 18px 40px -18px rgba(205, 220, 255, .6), inset 0 1px 0 rgba(255, 255, 255, .9); transition: transform .2s var(--ease), box-shadow .25s; }
.pw-cta i { font-style: normal; transition: transform .25s var(--ease); }
.pw-cta:hover { box-shadow: 0 22px 50px -16px rgba(205, 220, 255, .78), inset 0 1px 0 #fff; }
.pw-cta:hover i { transform: translateX(3px); }
.pw-cta:active { transform: scale(.985); }
.pw-cta:focus-visible, .pw-later:focus-visible, .pw-x:focus-visible { outline: 2px solid #dce2ee; outline-offset: 3px; }
.is-done .pw-cta { animation: pwRise .5s var(--ease) 1.8s both; }
.is-done .pw-cta::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .8) 50%, transparent 70%); transform: translateX(-120%); animation: pwShine 1.1s var(--ease) 2.3s both; }
@keyframes pwShine { to { transform: translateX(120%); } }
.pw-cta--ghost { background: rgba(255, 255, 255, .04); color: #fff; box-shadow: inset 0 0 0 1px rgba(220, 226, 238, .3); }
.pw-cta--ghost:hover { box-shadow: inset 0 0 0 1px rgba(220, 226, 238, .6); }
.pw-later { min-height: 40px; padding: 0 14px; border: 0; background: none; color: #8f96ad; font: 500 13px var(--sans); cursor: pointer; }
.pw-later:hover { color: #fff; }
.pw-wait { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 10px 16px; border-radius: 999px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px rgba(220, 226, 238, .12); font: 500 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #b5bbcd; }
.pw-dots { display: inline-flex; gap: 4px; }
.pw-dots i { width: 4px; height: 4px; border-radius: 50%; background: #dce2ee; animation: pwDot 1.2s ease-in-out infinite; }
.pw-dots i:nth-child(2) { animation-delay: .15s; }
.pw-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes pwDot { 0%, 100% { opacity: .25; transform: none; } 40% { opacity: 1; transform: translateY(-2px); } }
.pw-fine { margin: 10px 0 0; font-size: 11px; color: #747b93; }
.pw-fine a { color: inherit; text-decoration: underline; text-decoration-color: rgba(116, 123, 147, .5); text-underline-offset: 3px; }
.pw-fine a:hover { color: #c9cfdd; }
.is-done .pw-fine { animation: pwRise .5s var(--ease) 1.9s both; }

@media (max-width: 480px) {
  .pw-modal { padding: 10px; place-items: end center; }
  .pw-card { padding: 30px 18px 18px; border-radius: 24px; }
  .pw-card h2 { font-size: 25px; }
  .pw-name { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .pw-modal, .pw-card, .pw-pill, .pw-perks li, .pw-cta, .pw-cta::after, .pw-fine, .pw-core, .pw-halo, .pw-sparks i, .pw-dots i { animation: none !important; }
  .pw-ring-fg { animation: none; }
  .is-done .pw-ring-fg { stroke-dashoffset: 0; }
  .is-done .pw-tick { stroke-dashoffset: 0; }
}
