.plan-upsell,
.selling {
    --sell-coral: #F2683F;
    --sell-coral-deep: #E2483A;
    --sell-gold: #F4B43A;
    --sell-gold-deep: #E59A1E;
    --sell-green: #2E7D45;
    --sell-green-bright: #3E9F5A;
    --sell-green-soft: #E4F2E7;
    --sell-green-ink: #2E7D45;
    --sell-on-green: #FFFFFF;
    --sell-paper: #FFFFFF;
    --sell-cream: #F6F1E8;
    --sell-hairline: #EFE8DD;
    --sell-muted: #9B948A;
    --sell-ribbon: linear-gradient(90deg, var(--sell-coral), var(--sell-gold), var(--sell-green-bright));
    --sell-price: linear-gradient(135deg, var(--sell-coral-deep), #F39A2E);
    --sell-cta: linear-gradient(180deg, var(--sell-green-bright) 0%, var(--sell-green) 100%);
    --sell-cta-glow: 0 12px 26px rgba(46, 125, 69, 0.36);
    --sell-card-shadow: 0 12px 30px rgba(31, 26, 20, 0.08);
    --sell-pill-shadow: 0 6px 16px rgba(31, 26, 20, 0.08);
    --sell-alert-start: #CF4130;
    --sell-alert-end: #B5322B;
    --sell-alert: linear-gradient(135deg, var(--sell-alert-start) 0%, var(--sell-alert-end) 100%);
    --sell-on-gold: #1F1F1F;
    --sell-peach: #FFF4EA;
    --sell-peach-deep: #FFE4D4;
    --sell-peach-ink: #5C5750;
}

:root[data-theme="dark"] .plan-upsell,
:root[data-theme="dark"] .selling {
    --sell-green-soft: rgba(62, 159, 90, 0.18);
    --sell-green-ink: #8FD6A2;
    --sell-cream: #2A3244;
    --sell-hairline: #333B4E;
    --sell-muted: #7E8595;
    --sell-card-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    --sell-pill-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.sell-surface {
    background:
        radial-gradient(120% 32% at 50% 0%, rgba(255, 205, 140, 0.55), transparent 70%),
        linear-gradient(180deg, #FFF7EC 0%, #FDEBDD 100%);
    color: var(--text-primary);
}

:root[data-theme="dark"] .sell-surface {
    background:
        radial-gradient(120% 32% at 50% 0%, rgba(244, 180, 58, 0.2), transparent 70%),
        radial-gradient(80% 40% at 50% 100%, rgba(242, 104, 63, 0.14), transparent 72%),
        var(--bg-primary);
}

.sell-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: var(--bg-surface);
    box-shadow: var(--sell-card-shadow);
}

.sell-card.sell-ribbon {
    padding-top: 18px;
}

.sell-ribbon::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--sell-ribbon);
}

.sell-tile {
    display: grid;
    place-items: center;
    flex: none;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    color: #FFFFFF;
    background: linear-gradient(145deg, #4DB36B, var(--sell-green));
    box-shadow: 0 4px 10px rgba(46, 125, 69, 0.26);
}

.sell-tile.is-coral {
    background: linear-gradient(145deg, #FF9A62, var(--sell-coral-deep));
    box-shadow: 0 4px 10px rgba(226, 92, 52, 0.26);
}

.sell-tile.is-gold {
    background: linear-gradient(145deg, #F8C85A, var(--sell-gold-deep));
    box-shadow: 0 4px 10px rgba(229, 154, 30, 0.28);
}

.sell-tile svg {
    width: 17px;
    height: 17px;
}

.sell-price {
    background: var(--sell-price);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--sell-coral);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.sell-was {
    color: var(--sell-muted);
    text-decoration: line-through;
    text-decoration-color: rgba(242, 104, 63, 0.75);
    text-decoration-thickness: 1.5px;
}

.sell-cta {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 58px;
    padding: 8px 20px;
    box-sizing: border-box;
    border: 0;
    border-radius: 999px;
    background: var(--sell-cta);
    box-shadow: var(--sell-cta-glow);
    color: #FFFFFF;
    font: inherit;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.sell-cta:disabled {
    opacity: 0.6;
    cursor: default;
}

.sell-cta svg {
    width: 20px;
    height: 20px;
    flex: none;
}

.sell-cta-sub {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
}

.sell-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 52px;
    padding: 8px 20px;
    box-sizing: border-box;
    border: 0;
    border-radius: 999px;
    background: var(--bg-surface);
    box-shadow: var(--sell-pill-shadow);
    color: var(--text-primary);
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.sell-pill:disabled {
    opacity: 0.6;
    cursor: default;
}

.sell-pill .sell-cta-sub {
    color: var(--text-secondary);
}

.sell-link {
    border: 0;
    background: none;
    padding: 6px;
    font: inherit;
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: underline;
    cursor: pointer;
}

.sell-safe-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--sell-green-soft);
    color: var(--sell-green-ink);
    font-size: 15px;
    font-weight: 700;
}

.sell-safe-pill svg {
    width: 16px;
    height: 16px;
    flex: none;
}

.sell-note {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--sell-cream);
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.4;
}

.sell-note svg {
    width: 16px;
    height: 16px;
    flex: none;
    margin-top: 2px;
}

.sell-medal {
    position: relative;
    display: grid;
    place-items: center;
    width: 96px;
    height: 96px;
    border-radius: 999px;
    color: #FFFFFF;
    background: linear-gradient(145deg, #5BC27A, var(--sell-green));
    box-shadow: 0 16px 34px rgba(46, 125, 69, 0.38), inset 0 2px 0 rgba(255, 255, 255, 0.35);
}

.sell-medal.is-coral {
    width: 78px;
    height: 78px;
    background: linear-gradient(145deg, #FF9A62, var(--sell-coral-deep));
    box-shadow: 0 12px 26px rgba(226, 72, 58, 0.32), inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

.sell-medal.is-gold {
    width: 78px;
    height: 78px;
    background: linear-gradient(145deg, #F8C85A, var(--sell-gold-deep));
    box-shadow: 0 12px 26px rgba(229, 154, 30, 0.32), inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

.sell-medal svg {
    width: 46%;
    height: 46%;
}

.sell-stage {
    position: relative;
    display: grid;
    place-items: center;
    align-self: center;
    width: 168px;
    height: 168px;
}

.sell-stage.is-calm {
    width: 108px;
    height: 108px;
}

.sell-halo {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(242, 104, 63, 0.3) 38%, transparent 70%);
}

.sell-halo.is-gold {
    background: radial-gradient(circle, rgba(244, 180, 58, 0.35) 38%, transparent 70%);
}

.sell-rays {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: 999px;
    background: repeating-conic-gradient(rgba(244, 180, 58, 0.32) 0deg 10deg, transparent 10deg 30deg);
    -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 70%);
    mask-image: radial-gradient(circle, #000 30%, transparent 70%);
}

.sell-ring {
    position: absolute;
    width: 104px;
    height: 104px;
    border-radius: 999px;
    border: 3px solid rgba(62, 159, 90, 0.45);
    opacity: 0;
}

.sell-sparkle {
    position: absolute;
    fill: var(--sell-gold);
}

.sell-confetti {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 340px;
    overflow: hidden;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
}

.sell-confetti i {
    position: absolute;
    top: -14px;
    width: 8px;
    height: 12px;
    border-radius: 2px;
    opacity: 0;
}

.sell-confetti i:nth-child(3n + 1) { background: var(--sell-coral); }
.sell-confetti i:nth-child(3n + 2) { background: var(--sell-gold); width: 6px; height: 6px; border-radius: 99px; }
.sell-confetti i:nth-child(3n) { background: var(--sell-green-bright); }
.sell-confetti i:nth-child(1) { left: 8%; }
.sell-confetti i:nth-child(2) { left: 17%; }
.sell-confetti i:nth-child(3) { left: 26%; }
.sell-confetti i:nth-child(4) { left: 35%; }
.sell-confetti i:nth-child(5) { left: 44%; }
.sell-confetti i:nth-child(6) { left: 55%; }
.sell-confetti i:nth-child(7) { left: 64%; }
.sell-confetti i:nth-child(8) { left: 73%; }
.sell-confetti i:nth-child(9) { left: 82%; }
.sell-confetti i:nth-child(10) { left: 91%; }

@media (prefers-reduced-motion: no-preference) {
    .sell-cta:not(:disabled)::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: -40%;
        width: 30%;
        background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
        transform: skewX(-18deg);
        animation: sell-shine 3.2s ease-in-out 1s infinite;
    }

    .sell-rise {
        animation: sell-rise 0.45s ease-out both;
    }

    .sell-pop {
        animation: sell-pop 0.6s cubic-bezier(0.2, 1.5, 0.4, 1) both;
    }

    .sell-halo {
        animation: sell-breathe 2.8s ease-in-out infinite;
    }

    .sell-rays {
        animation: sell-spin 18s linear infinite;
    }

    .sell-ring {
        animation: sell-ring 2.6s ease-out infinite;
    }

    .sell-sparkle {
        animation: sell-twinkle 2.2s ease-in-out infinite;
    }

    .sell-confetti i {
        animation: sell-fall 3.4s cubic-bezier(0.3, 0.6, 0.5, 1) infinite;
    }

    .sell-confetti i:nth-child(2n) { animation-delay: 0.9s; }
    .sell-confetti i:nth-child(3n) { animation-delay: 1.7s; }
    .sell-confetti i:nth-child(4n) { animation-delay: 0.4s; }
    .sell-confetti i:nth-child(5n) { animation-delay: 2.3s; }
    .sell-confetti i:nth-child(7n) { animation-delay: 2.8s; }
}

.sell-spin {
    animation: sell-spin 1s linear infinite;
}

.sell-cta:focus-visible,
.sell-pill:focus-visible,
.sell-link:focus-visible {
    outline: 3px solid var(--sell-green);
    outline-offset: 3px;
}

:root[data-theme="dark"] .sell-cta:focus-visible,
:root[data-theme="dark"] .sell-pill:focus-visible,
:root[data-theme="dark"] .sell-link:focus-visible {
    outline-color: var(--sell-gold);
}

@keyframes sell-shine {
    0% { left: -40%; }
    45%, 100% { left: 130%; }
}

@keyframes sell-rise {
    from { transform: translateY(10px); opacity: 0; }
    to { transform: none; opacity: 1; }
}

@keyframes sell-pop {
    from { transform: scale(0.45); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes sell-breathe {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.55; }
}

@keyframes sell-spin {
    to { transform: rotate(360deg); }
}

@keyframes sell-ring {
    0% { transform: scale(0.8); opacity: 0.6; }
    100% { transform: scale(1.45); opacity: 0; }
}

@keyframes sell-twinkle {
    0%, 100% { transform: scale(0.7); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
}

@keyframes sell-fall {
    0% { transform: translateY(0) rotate(0); opacity: 0; }
    8% { opacity: 0.95; }
    50% { opacity: 0.95; }
    100% { transform: translateY(330px) rotate(540deg); opacity: 0; }
}

.purchase-modal.tutorial-paywall.pw-modal .purchase-modal-content {
    background:
        radial-gradient(120% 9% at 50% 2%, rgba(255, 205, 140, 0.78), rgba(255, 205, 140, 0) 70%),
        radial-gradient(100% 6% at 50% 34%, rgba(255, 190, 165, 0.35), rgba(255, 190, 165, 0) 70%),
        radial-gradient(100% 6% at 50% 78%, rgba(255, 205, 140, 0.32), rgba(255, 205, 140, 0) 70%),
        linear-gradient(180deg, #FFF7EC 0%, #FDEBDD 100%);
}

:root[data-theme="dark"] .purchase-modal.tutorial-paywall.pw-modal .purchase-modal-content {
    background:
        radial-gradient(120% 9% at 50% 2%, rgba(244, 180, 58, 0.2), transparent 70%),
        radial-gradient(80% 10% at 50% 100%, rgba(242, 104, 63, 0.14), transparent 72%),
        var(--bg-primary);
}

.purchase-modal.tutorial-paywall.pw-modal .paywall-hero,
.purchase-modal.tutorial-paywall.pw-modal .tutorial-paywall-trust {
    display: none;
}

.pw-page {
    padding-bottom: 8px;
    color: var(--text-primary);
}

.pw-page > * + * {
    margin-top: 24px;
}

.pw-page a {
    color: var(--text-secondary);
}

.pw-title {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.pw-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 12px;
    overflow: hidden;
    text-align: center;
}

.pw-stage {
    position: relative;
    display: grid;
    place-items: center;
    width: 210px;
    height: 140px;
}

.pw-rays {
    position: absolute;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: repeating-conic-gradient(from 0deg, rgba(255, 196, 92, 0.4) 0deg 10deg, rgba(255, 196, 92, 0) 10deg 24deg);
    -webkit-mask-image: radial-gradient(circle, #000 18%, transparent 68%);
    mask-image: radial-gradient(circle, #000 18%, transparent 68%);
}

.pw-confetti {
    position: absolute;
    top: -28px;
    left: -60px;
    right: -60px;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 100%);
}

.pw-confetti i {
    position: absolute;
    top: 0;
    width: 8px;
    height: 12px;
    border-radius: 2px;
    opacity: 0;
}

.pw-confetti i:nth-child(1) { left: 6%; background: #F2683F; }
.pw-confetti i:nth-child(2) { left: 16%; width: 7px; height: 7px; border-radius: 50%; background: #F4B43A; }
.pw-confetti i:nth-child(3) { left: 27%; background: #3E9F5A; }
.pw-confetti i:nth-child(4) { left: 36%; width: 6px; height: 6px; border-radius: 50%; background: #6FA8DC; }
.pw-confetti i:nth-child(5) { left: 46%; width: 10px; height: 6px; background: #8A569C; }
.pw-confetti i:nth-child(6) { left: 57%; background: #F4B43A; }
.pw-confetti i:nth-child(7) { left: 66%; width: 7px; height: 7px; border-radius: 50%; background: #F2683F; }
.pw-confetti i:nth-child(8) { left: 75%; width: 10px; height: 6px; background: #6FA8DC; }
.pw-confetti i:nth-child(9) { left: 84%; background: #3E9F5A; }
.pw-confetti i:nth-child(10) { left: 93%; width: 6px; height: 6px; border-radius: 50%; background: #8A569C; }

.pw-spark {
    position: absolute;
    color: var(--sell-gold);
}

.pw-spark-a { top: 4px; left: 30px; }
.pw-spark-b { right: 30px; bottom: 8px; }
.pw-spark-c { top: 18px; right: 40px; }

.pw-medal {
    position: relative;
    display: grid;
    place-items: center;
    width: 100px;
    height: 100px;
    border-radius: 30px;
    color: #FFFFFF;
    background: linear-gradient(145deg, #FF9A62 0%, #F2683F 52%, #E2483A 100%);
    box-shadow: 0 18px 34px rgba(226, 92, 52, 0.42), inset 0 3px 8px rgba(255, 255, 255, 0.45), inset 0 -6px 12px rgba(120, 30, 10, 0.18);
    transform: rotate(-6deg);
}

.pw-ring {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    border: 2px solid rgba(242, 104, 63, 0.55);
    opacity: 0;
    pointer-events: none;
}

.pw-headline {
    margin: 8px 0 0;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.pw-hl {
    padding: 0 6px;
    border-radius: 8px;
    background: var(--sell-green-soft);
    color: var(--sell-green-ink);
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.pw-discount {
    margin-top: 8px;
    font-size: 76px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.045em;
    background: linear-gradient(135deg, #E2483A 0%, #F2683F 45%, #F39A2E 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--sell-coral);
    filter: drop-shadow(0 8px 18px rgba(242, 104, 63, 0.28));
}

.pw-tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-gap: 10px;
    gap: 10px;
}

.pw-tile {
    display: flex;
    flex-direction: column;
    padding: 14px;
    border-radius: 18px;
    background: var(--bg-surface);
    box-shadow: var(--sell-card-shadow);
}

.pw-tile > * + * {
    margin-top: 6px;
}

.pw-tile-icon {
    width: 40px;
    height: 40px;
    border-radius: 13px;
}

.pw-tile-icon svg {
    width: 22px;
    height: 22px;
}

.sell-tile.is-violet {
    background: linear-gradient(145deg, #A877BA, #7A4A8C);
    box-shadow: 0 4px 10px rgba(122, 74, 140, 0.3);
}

.pw-tile-title {
    font-size: 15px;
    font-weight: 700;
}

.pw-tile-sub {
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-secondary);
}

.pw-applied {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 9px 12px;
    border: 1px solid rgba(62, 159, 90, 0.35);
    border-radius: 14px;
    background: var(--sell-green-soft);
    color: var(--sell-green-ink);
    font-size: 13px;
    font-weight: 700;
}

.pw-applied-check {
    display: grid;
    place-items: center;
    flex: none;
    width: 22px;
    height: 22px;
    margin-inline-end: 10px;
    border-radius: 999px;
    background: var(--sell-green);
    color: #FFFFFF;
}

.pw-applied-check svg {
    width: 14px;
    height: 14px;
}

.pw-plans > * + * {
    margin-top: 12px;
}

.pw-plan-wrap {
    overflow: hidden;
    border: 2px solid rgba(62, 159, 90, 0.35);
    border-radius: 20px;
    background: var(--bg-surface);
    box-shadow: var(--sell-card-shadow);
}

.pw-plan-wrap.is-selected {
    border-color: var(--sell-green);
    box-shadow: 0 14px 32px rgba(46, 125, 69, 0.24);
}

.pw-plan-badge {
    display: block;
    padding: 5px 8px;
    background: linear-gradient(90deg, var(--sell-green), var(--sell-green-bright));
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-align: center;
}

.pw-plan {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 68px;
    padding: 12px 14px;
    box-sizing: border-box;
    border: 2px solid transparent;
    border-radius: 20px;
    background: var(--bg-surface);
    box-shadow: 0 8px 22px rgba(31, 26, 20, 0.06);
    color: var(--text-primary);
    font: inherit;
    text-align: start;
    cursor: pointer;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.pw-plan.is-selected {
    border-color: var(--sell-green);
    box-shadow: 0 12px 28px rgba(46, 125, 69, 0.2);
}

.pw-plan-wrap .pw-plan,
.pw-plan-wrap .pw-plan.is-selected {
    min-height: 72px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.pw-radio {
    display: grid;
    place-items: center;
    flex: none;
    box-sizing: border-box;
    width: 24px;
    height: 24px;
    margin-inline-end: 12px;
    border: 1.6px solid #CFC8BC;
    border-radius: 999px;
    background: var(--bg-surface);
    color: #FFFFFF;
    transition: background 0.2s ease;
}

.pw-radio svg {
    opacity: 0;
}

.pw-plan.is-selected .pw-radio {
    border-color: transparent;
    background: linear-gradient(145deg, #4DB36B, var(--sell-green));
    box-shadow: 0 4px 10px rgba(46, 125, 69, 0.35);
}

.pw-plan.is-selected .pw-radio svg {
    opacity: 1;
}

:root[data-theme="dark"] .pw-radio {
    border-color: #4A5163;
}

.pw-plan-main {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.pw-plan-label {
    font-size: 16px;
    font-weight: 700;
}

.pw-plan-sub,
.pw-plan-then {
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.35;
    color: var(--text-secondary);
}

.pw-plan-side {
    display: flex;
    flex: none;
    align-items: baseline;
    margin-inline-start: 10px;
    white-space: nowrap;
}

.pw-discount,
.pw-plan-side {
    direction: ltr;
    unicode-bidi: isolate;
}

.pw-plan-price {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.pw-plan-wrap .pw-plan-price {
    font-size: 22px;
    letter-spacing: -0.02em;
    background: var(--sell-price);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--sell-coral);
}

.pw-plan-unit {
    margin-inline-start: 1px;
    font-size: 11px;
    color: var(--text-secondary);
}

.pw-refund-line {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--sell-green-ink);
    text-align: center;
}

.pw-refund-line svg {
    flex: none;
    margin-inline-end: 6px;
}

.pw-pay-area {
    margin-top: 12px;
}

.pw-pay {
    gap: 0;
}

.pw-pay + .pw-pay {
    margin-top: 12px;
}

.pw-pay > svg {
    flex: none;
    margin-inline-end: 10px;
}

.pw-pay-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    line-height: 1.2;
}

.pw-pay-label {
    overflow-wrap: anywhere;
}

.pw-refund-card {
    padding: 22px 20px 20px;
    border-radius: 24px;
}

.pw-refund-card > * + * {
    margin-top: 10px;
}

.pw-refund-icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
}

.pw-refund-icon svg {
    width: 26px;
    height: 26px;
}

.pw-refund-title {
    margin: 12px 0 0;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.pw-refund-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: var(--text-secondary);
}

.pw-refund-point {
    display: flex;
    align-items: center;
    font-size: 14px;
    line-height: 1.4;
}

.pw-refund-check {
    flex: none;
    margin-inline-end: 8px;
    color: var(--sell-green-bright);
}

.pw-refund-link {
    display: inline-block;
    font-size: 13px;
}

.pw-compare {
    overflow: hidden;
    border-radius: 20px;
    background: var(--bg-surface);
    box-shadow: var(--sell-card-shadow);
    font-size: 13px;
}

.pw-compare-head,
.pw-compare-row {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) minmax(0, 1fr);
}

.pw-compare-head {
    background: var(--sell-cream);
    font-weight: 700;
}

.pw-compare-row {
    border-top: 1px solid var(--sell-hairline);
}

.pw-compare-cell {
    padding: 11px 10px;
    overflow-wrap: anywhere;
}

.pw-compare-tutor-head,
.pw-compare-tutor {
    color: var(--text-secondary);
}

.pw-compare-dara-head {
    padding-top: 7px;
    padding-bottom: 7px;
    background: var(--sell-green-soft);
}

.pw-compare-chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--sell-green);
    color: #FFFFFF;
}

.pw-compare-chip svg {
    margin-inline-end: 5px;
    color: #F8D477;
}

.pw-compare-label {
    font-size: 11px;
    color: var(--text-secondary);
}

.pw-compare-dara {
    background: var(--sell-green-soft);
    color: var(--sell-green-ink);
    font-weight: 700;
}

.pw-review {
    display: flex;
    padding: 14px 16px;
    border-radius: 18px;
    background: var(--bg-surface);
    box-shadow: var(--sell-card-shadow);
}

.pw-review + .pw-review {
    margin-top: 12px;
}

.pw-review-icon {
    flex: none;
    margin-top: 2px;
    margin-inline-end: 12px;
    color: var(--sell-coral);
}

.pw-review-text {
    font-size: 15px;
    line-height: 1.45;
}

.pw-rating {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    border-radius: 22px;
    background: var(--bg-surface);
    box-shadow: var(--sell-card-shadow);
}

.pw-rating-value {
    flex: none;
    font-size: 52px;
    line-height: 1;
    letter-spacing: -0.03em;
}

.pw-rating-side {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin-inline-start: 16px;
}

.pw-stars {
    position: relative;
    display: block;
    width: 100px;
    height: 18px;
    direction: ltr;
}

.pw-stars-base,
.pw-stars-fill {
    display: block;
    height: 18px;
    white-space: nowrap;
}

.pw-stars-fill {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    color: #E0A21B;
}

.pw-stars-base {
    color: #D9D1C3;
}

.pw-star {
    display: inline-block;
    margin-inline-end: 2px;
    vertical-align: top;
    fill: currentColor;
}

:root[data-theme="dark"] .pw-stars-base {
    color: #4A5163;
}

.pw-rating-caption {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--text-secondary);
}

.pw-reasons {
    display: flex;
    flex-wrap: wrap;
}

.pw-reason {
    display: inline-flex;
    align-items: center;
    margin: 0 8px 8px 0;
    padding: 7px 13px;
    padding-inline-start: 10px;
    border-radius: 999px;
    background: var(--bg-surface);
    box-shadow: var(--sell-pill-shadow);
    font-size: 13px;
    font-weight: 600;
}

[dir="rtl"] .pw-reason {
    margin: 0 0 8px 8px;
}

.pw-reason-dot {
    flex: none;
    width: 8px;
    height: 8px;
    margin-inline-end: 6px;
    border-radius: 50%;
}

.pw-reason:nth-child(1) .pw-reason-dot { background: #3E9F5A; }
.pw-reason:nth-child(2) .pw-reason-dot { background: #F2683F; }
.pw-reason:nth-child(3) .pw-reason-dot { background: #F4B43A; }
.pw-reason:nth-child(4) .pw-reason-dot { background: #8A569C; }
.pw-reason:nth-child(5) .pw-reason-dot { background: #6FA8DC; }

.pw-included-row {
    display: flex;
    align-items: flex-start;
    font-size: 15px;
    line-height: 1.4;
}

.pw-included-row + .pw-included-row {
    margin-top: 10px;
}

.pw-included-icon {
    flex: none;
    margin-inline-end: 10px;
    color: var(--sell-green-bright);
}

.pw-included-text strong {
    font-weight: 700;
}

.pw-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--sell-hairline);
    text-align: center;
}

.pw-footer > * + * {
    margin-top: 12px;
}

.pw-footer-logo {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    background: linear-gradient(145deg, #FF9A62 0%, #F2683F 52%, #E2483A 100%);
    box-shadow: 0 8px 18px rgba(226, 92, 52, 0.32);
    color: #FFFFFF;
    font-size: 22px;
    font-weight: 800;
}

.pw-footer-copy {
    font-size: 14px;
    font-weight: 600;
}

.pw-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 13px;
}

.pw-footer-link {
    margin: 4px 8px;
}

.pw-footer-support {
    font-size: 13px;
    color: var(--text-secondary);
}

.pw-footer-payment {
    font-size: 12px;
    line-height: 1.5;
    color: var(--sell-muted);
}

.pw-footer-operator {
    font-size: 11px;
    line-height: 1.5;
    color: var(--sell-muted);
}

.pw-plan-wrap.pw-kbd-focus {
    outline: 3px solid var(--sell-green);
    outline-offset: 3px;
}

:root[data-theme="dark"] .pw-plan-wrap.pw-kbd-focus {
    outline-color: var(--sell-gold);
}

.pw-plan-wrap .pw-plan.pw-kbd-focus {
    outline: none;
}

.pw-plan.pw-kbd-focus,
.pw-pay:focus-visible {
    outline: 3px solid var(--sell-green);
    outline-offset: 3px;
}

:root[data-theme="dark"] .pw-plan.pw-kbd-focus,
:root[data-theme="dark"] .pw-pay:focus-visible {
    outline-color: var(--sell-gold);
}

.pw-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    white-space: nowrap;
    border: 0;
    clip: rect(0, 0, 0, 0);
}

@media (prefers-reduced-motion: no-preference) {
    .pw-medal {
        animation: pw-pop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both, pw-float 3.4s ease-in-out 0.8s infinite;
    }

    .pw-ring {
        animation: pw-ping 2.6s ease-out 0.9s infinite;
    }

    .pw-ring-2 {
        animation-delay: 2.2s;
    }

    .pw-rays {
        animation: sell-spin 28s linear infinite;
    }

    .pw-spark {
        animation: sell-twinkle 2.2s ease-in-out infinite;
    }

    .pw-spark-b { animation-delay: 1.1s; }
    .pw-spark-c { animation-delay: 0.6s; }

    .pw-confetti i {
        animation: pw-fall 3.6s linear infinite;
    }

    .pw-confetti i:nth-child(2n) { animation-duration: 4.4s; }
    .pw-confetti i:nth-child(3n) { animation-duration: 3.1s; }
    .pw-confetti i:nth-child(1) { animation-delay: 0.2s; }
    .pw-confetti i:nth-child(2) { animation-delay: 1.4s; }
    .pw-confetti i:nth-child(3) { animation-delay: 0.7s; }
    .pw-confetti i:nth-child(4) { animation-delay: 2.3s; }
    .pw-confetti i:nth-child(5) { animation-delay: 0.1s; }
    .pw-confetti i:nth-child(6) { animation-delay: 1.9s; }
    .pw-confetti i:nth-child(7) { animation-delay: 0.9s; }
    .pw-confetti i:nth-child(8) { animation-delay: 2.8s; }
    .pw-confetti i:nth-child(9) { animation-delay: 0.4s; }
    .pw-confetti i:nth-child(10) { animation-delay: 1.6s; }

    .pw-discount {
        animation: pw-pop-text 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
    }

    .pw-applied-check {
        animation: pw-pop-text 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.6s both;
    }
}

@keyframes pw-pop {
    0% { transform: scale(0.4) rotate(-20deg); opacity: 0; }
    100% { transform: scale(1) rotate(-6deg); opacity: 1; }
}

@keyframes pw-float {
    0%, 100% { transform: translateY(0) rotate(-6deg); }
    50% { transform: translateY(-6px) rotate(4deg); }
}

@keyframes pw-ping {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.7); opacity: 0; }
}

@keyframes pw-fall {
    0% { transform: translateY(-16px) rotate(0deg); opacity: 0; }
    12% { opacity: 1; }
    50% { opacity: 1; }
    100% { transform: translateY(160px) rotate(540deg); opacity: 0; }
}

@keyframes pw-pop-text {
    0% { transform: scale(0.6); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.pw-modal #purchase-step-method .purchase-method-prompt {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.015em;
}

.pw-modal #purchase-step-method .purchase-method-footer {
    display: none;
}

.pay-card-page {
    color: var(--text-primary);
}

.pay-card-page > * + * {
    margin-top: 16px;
}

.pay-summary {
    padding: 18px 16px 14px;
}

.pay-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 8px;
    font-size: 15px;
}

.pay-summary-row:first-child {
    margin-top: 0;
}

.pay-summary-plan-name {
    min-width: 0;
}

.pay-change-plan {
    padding: 6px 2px;
}

.pay-chip {
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--sell-green-soft);
    color: var(--sell-green-ink);
    font-weight: 700;
}

.pay-summary-sep {
    height: 1px;
    margin: 10px 0 4px;
    background: var(--sell-hairline);
}

.pay-summary-today-label {
    font-size: 17px;
    font-weight: 700;
}

.pay-summary-price {
    font-size: 28px;
    line-height: 1.15;
}

.pay-summary-then {
    font-size: 14px;
    color: var(--text-secondary);
}

.pay-panel {
    margin-top: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 20px;
    background: var(--bg-surface);
    box-shadow: var(--shadow-sm);
}

.pay-panel:first-child {
    margin-top: 0;
}

.pay-panel.is-open {
    border-color: var(--sell-green);
    box-shadow: var(--shadow-md);
}

.pay-panel-head {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 58px;
    padding: 10px 16px;
    box-sizing: border-box;
    border: 0;
    background: transparent;
    font: inherit;
    color: inherit;
    text-align: start;
    cursor: pointer;
}

.pay-panel-head:disabled {
    cursor: default;
}

.pay-panel-head:focus-visible {
    outline: 3px solid var(--sell-green);
    outline-offset: -3px;
}

:root[data-theme="dark"] .pay-panel-head:focus-visible {
    outline-color: var(--sell-gold);
}

.pay-panel.is-locked:not(.is-open) {
    opacity: 0.55;
}

.pay-radio {
    display: grid;
    place-items: center;
    flex: none;
    width: 22px;
    height: 22px;
    margin-inline-end: 12px;
    box-sizing: border-box;
    border: 1.6px solid var(--border-color);
    border-radius: 999px;
    background: var(--bg-surface);
    color: #FFFFFF;
}

.pay-panel.is-open .pay-radio {
    border: 0;
    background: linear-gradient(145deg, var(--sell-green-bright), var(--sell-green));
    box-shadow: var(--sell-pill-shadow);
}

.pay-radio-check {
    display: none;
}

.pay-panel.is-open .pay-radio-check {
    display: block;
}

.pay-panel-tile {
    width: 36px;
    height: 36px;
    margin-inline-end: 12px;
    border-radius: 11px;
}

.pay-panel-tile svg {
    width: 19px;
    height: 19px;
}

.pay-panel-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.pay-panel-title {
    font-size: 16px;
    font-weight: 600;
}

.pay-panel-sub {
    font-size: 13px;
    color: var(--text-secondary);
}

.pay-panel-body {
    padding: 0 16px 16px;
}

.pay-panel-body > * + * {
    margin-top: 10px;
}

.pay-panel-body .pay-plate {
    margin: 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--sell-cream);
    font-size: 13px;
    line-height: 1.4;
}

.pay-panel-body .yookassa-widget,
.pay-panel-body .stripe-checkout {
    margin-top: 0;
}

.pay-disclosure {
    margin: 16px 0 0;
    padding: 0 6px;
    text-align: center;
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-secondary);
}

.pay-secure {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    color: var(--sell-muted);
}

.pay-secure-badge {
    display: inline-flex;
    align-items: center;
    margin: 0 14px;
    color: var(--sell-green-ink);
    font-weight: 600;
}

.pay-secure-badge svg {
    margin-inline-end: 5px;
}

.pay-receipt {
    display: flex;
    flex-direction: column;
}

.pay-receipt > * + * {
    margin-top: 16px;
}

.pay-receipt-tile {
    width: 64px;
    height: 64px;
    align-self: center;
    margin-top: 24px;
    border-radius: 20px;
}

.pay-receipt-tile svg {
    width: 30px;
    height: 30px;
}

.receipt-email-title {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.015em;
    text-align: center;
}

.pay-receipt-card {
    padding: 16px;
}

.pay-receipt-card > * + * {
    margin-top: 8px;
}

.pay-receipt .receipt-email-input {
    height: 52px;
    box-sizing: border-box;
    padding: 0 16px;
    border: 1.6px solid var(--sell-hairline);
    border-radius: 16px;
    background: var(--bg-surface);
}

.pay-receipt .receipt-email-input.invalid {
    border-color: var(--accent-danger);
}

.pay-receipt .receipt-email-continue.sell-cta,
.pay-receipt .receipt-email-continue.sell-cta:hover {
    min-height: 58px;
    padding: 8px 20px;
    color: #FFFFFF;
    background: var(--sell-cta);
    border-radius: 999px;
    font-size: 17px;
    font-weight: 700;
}

.pw-pending-plate {
    margin: 12px 0;
}

.pay-plate {
    display: flex;
    align-items: center;
    font-size: 14px;
    line-height: 1.4;
    text-align: start;
}

.pay-plate svg {
    flex: none;
    margin-inline-end: 10px;
}

.pay-sbp {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    color: var(--text-primary);
    text-align: center;
}

.pay-sbp > * + * {
    margin-top: 14px;
}

.pay-sbp-stage {
    position: relative;
    display: grid;
    place-items: center;
    height: 120px;
    margin-bottom: 28px;
}

.pay-sbp-wave {
    position: absolute;
    width: 112px;
    height: 112px;
    border-radius: 999px;
    border: 3px solid rgba(62, 159, 90, 0.4);
    opacity: 0;
}

.pay-sbp-wave.is-late {
    border-color: rgba(244, 180, 58, 0.45);
}

.pay-sbp-halo {
    position: absolute;
    width: 128px;
    height: 128px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 205, 140, 0.6) 30%, transparent 70%);
}

.pay-sbp-phone {
    position: relative;
    display: grid;
    place-items: center;
    width: 64px;
    height: 100px;
    border-radius: 16px;
    background: linear-gradient(160deg, var(--sell-green-bright), var(--sell-green));
    box-shadow: 0 14px 30px rgba(46, 125, 69, 0.36), inset 0 2px 0 rgba(255, 255, 255, 0.3);
    transform: rotate(-6deg);
}

.pay-sbp-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 76px;
    border-radius: 10px;
    background: var(--sell-paper);
    color: var(--sell-green);
}

.pay-sbp-bar {
    display: block;
    width: 28px;
    height: 4px;
    margin-top: 5px;
    border-radius: 4px;
    background: var(--sell-green-soft);
}

.pay-sbp-bar.is-short {
    width: 20px;
}

.pay-sbp-coin {
    position: relative;
    grid-area: 1 / 1;
    justify-self: center;
    align-self: start;
    margin-top: 10px;
    margin-inline-start: 44px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: linear-gradient(145deg, var(--sell-gold), var(--sell-gold-deep));
    box-shadow: 0 6px 14px rgba(229, 154, 30, 0.35);
    color: var(--sell-on-green);
    font-size: 14px;
    font-weight: 800;
}

.pay-sbp .pay-sbp-title {
    margin: 0;
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--text-primary);
}

.pay-sbp .pay-sbp-title:focus {
    outline: none;
}

.pay-sbp-amount {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 16px 14px;
    text-align: start;
}

.pay-sbp-amount-label {
    display: flex;
    align-items: center;
    min-width: 0;
    font-size: 15px;
    color: var(--text-secondary);
}

.pay-sbp-amount-label .sell-tile {
    margin-inline-end: 10px;
}

.pay-sbp-price {
    margin-inline-start: 12px;
    font-size: 28px;
    white-space: nowrap;
}

.pay-sbp .sbp-open-bank.sell-cta,
.pay-sbp .sbp-open-bank.sell-cta:hover {
    gap: 0;
    min-height: 58px;
    padding: 8px 20px;
    border-radius: 999px;
    background: var(--sell-cta);
    color: var(--sell-on-green);
    font-size: 17px;
    font-weight: 700;
}

.pay-sbp .sbp-open-bank svg,
.pay-failed .sell-cta svg {
    margin-inline-end: 10px;
}

.pay-sbp > .pay-sbp-hint {
    margin-top: 10px;
    padding: 0 8px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-secondary);
}

.pay-sbp-waiting {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 999px;
    background: var(--sell-green-soft);
    color: var(--sell-green-ink);
    font-size: 15px;
    font-weight: 600;
}

.pay-sbp-waiting svg {
    flex: none;
    margin-inline-end: 10px;
}

.pay-sbp-qrcard {
    display: flex;
    align-items: center;
    padding: 14px;
    text-align: start;
}

.pay-sbp .sbp-qr {
    flex: none;
    margin-inline-end: 14px;
    padding: 6px;
    border-radius: 12px;
    background: var(--sell-paper);
}

.pay-sbp .sbp-qr svg {
    width: 100px;
    height: 100px;
}

.pay-sbp-qr-side {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pay-sbp-desktop {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
}

.pay-sbp-desktop-tile {
    width: 26px;
    height: 26px;
    margin-inline-end: 8px;
    border-radius: 8px;
}

.pay-sbp-desktop-tile svg {
    width: 14px;
    height: 14px;
}

.pay-sbp-qr-side .sbp-qr-hint {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--text-secondary);
}

.pay-sbp > .pay-sbp-other {
    margin-top: 6px;
}

.payment-failed.pay-failed-host {
    margin-top: 0;
    padding: 0;
    border-radius: 0;
    background: none;
    display: block;
}

.payment-failed.pay-failed-host.hidden {
    display: none;
}

.pay-failed {
    display: flex;
    flex-direction: column;
    padding-top: 8px;
    color: var(--text-primary);
    text-align: center;
}

.pay-failed > * + * {
    margin-top: 14px;
}

.pay-failed .payment-failed-title {
    margin: 14px 0 0;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--text-primary);
}

.pay-failed .payment-failed-title:focus {
    outline: none;
}

.pay-failed-lead {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pay-failed-lead > * + * {
    margin-top: 10px;
}

.pay-failed-declined {
    margin: 0;
    font-size: 16px;
    line-height: 1.45;
}

.pay-failed-card {
    padding: 20px 16px 16px;
    text-align: start;
    font-size: 15px;
    line-height: 1.4;
}

.pay-failed-card > * + * {
    margin-top: 12px;
}

.pay-failed-what,
.pay-failed-reason-title {
    font-size: 16px;
    font-weight: 700;
}

.pay-failed-what {
    display: block;
}

.pay-failed-tip {
    display: flex;
    align-items: flex-start;
}

.pay-failed-tip .sell-tile,
.pay-failed-reason-head .sell-tile {
    margin-inline-end: 12px;
}

.pay-failed-tip-text {
    min-width: 0;
    padding-top: 5px;
}

.pay-failed .payment-failed-tips {
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 15px;
    line-height: 1.4;
    color: var(--text-primary);
}

.pay-failed .payment-failed-tips > li + li {
    margin-top: 14px;
}

.pay-failed-reason-head {
    display: flex;
    align-items: center;
}

.pay-failed-reason {
    margin: 0;
    line-height: 1.45;
}

.pay-failed-note svg {
    color: var(--sell-green-ink);
}

.pay-failed-note span {
    min-width: 0;
}

.pay-failed-mailed {
    justify-content: center;
    text-align: start;
}

.pay-failed-mailed:empty {
    margin: 0;
    padding: 0;
}

.pay-failed-mailed svg {
    color: var(--sell-green-ink);
}

.pay-failed-mailed > span {
    min-width: 0;
}

.pay-failed-mailed-address {
    font-weight: 600;
    color: var(--text-primary);
    overflow-wrap: anywhere;
}

.pay-failed-actions {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
}

.pay-failed-actions > * + * {
    margin-top: 12px;
}

.pay-failed .sell-cta,
.pay-failed .sell-cta:hover {
    gap: 0;
    border: 0;
    border-radius: 999px;
    background: var(--sell-cta);
    color: var(--sell-on-green);
}

.pay-failed .sell-pill,
.pay-failed .sell-pill:hover {
    gap: 0;
    border: 0;
    border-radius: 999px;
    background: var(--bg-surface);
    color: var(--text-primary);
}

.pay-failed .sell-pill svg {
    flex: none;
    width: 17px;
    height: 17px;
    margin-inline-end: 8px;
}

.pay-failed-pill-icon.is-green {
    color: var(--sell-green-ink);
}

.pay-failed-pill-icon.is-coral {
    color: var(--sell-coral-deep);
}

.pay-failed-link {
    align-self: center;
    min-height: 44px;
}

@media (prefers-reduced-motion: no-preference) {
    .pay-sbp-wave {
        animation: pay-sbp-wave 2.4s ease-out infinite;
    }

    .pay-sbp-wave.is-late {
        animation-delay: 1.2s;
    }

    .pay-sbp-phone {
        animation: pay-sbp-float 3s ease-in-out infinite;
    }

    .pay-failed-lead.sell-rise {
        animation-delay: 0.06s;
    }

    .pay-failed-card.sell-rise {
        animation-delay: 0.12s;
    }
}

@keyframes pay-sbp-wave {
    0% { transform: scale(0.7); opacity: 0.7; }
    100% { transform: scale(1.5); opacity: 0; }
}

@keyframes pay-sbp-float {
    0%, 100% { transform: translateY(0) rotate(-6deg); }
    50% { transform: translateY(-6px) rotate(-6deg); }
}

#auth-step-confirm .confirm-tile {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    align-self: center;
    margin: 4px 0;
    box-shadow: 0 10px 22px rgba(226, 92, 52, 0.3);
}

#auth-step-confirm .confirm-tile svg {
    width: 28px;
    height: 28px;
}

#auth-step-confirm .auth-sheet-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin: 4px 0;
    word-break: break-word;
    overflow-wrap: anywhere;
}

#auth-step-confirm .auth-sheet-subtitle {
    font-size: 15px;
    line-height: 1.45;
}

#auth-confirm-sent-to {
    font-size: 14px;
    padding: 10px 12px;
    border-radius: 14px;
    background: var(--sell-cream);
    color: var(--text-primary);
    word-break: break-word;
    overflow-wrap: anywhere;
}

#auth-step-confirm .auth-field input {
    min-height: 52px;
    padding: 0 16px;
    border: 1.6px solid var(--text-secondary);
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    box-sizing: border-box;
}

#auth-step-confirm .confirm-divider {
    height: 1px;
    margin: 4px 0;
    background: var(--sell-hairline);
}

[dir="rtl"] #auth-step-confirm .auth-field .auth-code-input {
    direction: ltr;
}

#auth-step-confirm .auth-field input:focus {
    border-color: var(--sell-green);
}

:root[data-theme="dark"] #auth-step-confirm .auth-field input:focus {
    border-color: var(--text-primary);
}

#auth-step-confirm .auth-field .auth-code-input {
    min-height: 56px;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.4em;
    text-indent: 0.4em;
    text-align: center;
}

#auth-step-confirm .sell-cta {
    margin-top: 4px;
}

#auth-step-confirm .confirm-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#auth-step-confirm .sell-link {
    align-self: center;
    min-height: 44px;
    padding: 10px;
    -webkit-tap-highlight-color: transparent;
}

#auth-step-confirm .confirm-links .sell-link {
    margin: 0 8px;
}

.pay-success {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 -16px;
    padding: 24px 20px 48px;
    color: var(--text-primary);
    text-align: center;
}

.pay-success-hero {
    display: flex;
    justify-content: center;
    width: 100%;
}

.pay-success .sell-confetti {
    top: -24px;
}

.pay-success-spark {
    stroke: currentColor;
}

.pay-success-spark.is-a {
    top: 22px;
    right: 26px;
    color: var(--sell-gold);
    fill: var(--sell-gold);
}

.pay-success-spark.is-b {
    bottom: 30px;
    left: 24px;
    color: var(--sell-coral);
    fill: var(--sell-coral);
}

.pay-success-spark.is-c {
    top: 40px;
    left: 30px;
    color: var(--sell-green-bright);
    fill: var(--sell-green-bright);
}

.pay-success .pay-success-title {
    margin: 18px 0 0;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--text-primary);
}

.pay-success .pay-success-title:focus {
    outline: none;
}

.pay-success-until {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    margin: 18px 0 0;
    padding: 8px 16px;
    box-sizing: border-box;
    border-radius: 999px;
    background: var(--sell-paper);
    box-shadow: var(--sell-pill-shadow);
    font-size: 15px;
    font-weight: 600;
    color: var(--sell-green-ink);
}

:root[data-theme="dark"] .pay-success-until {
    background: var(--bg-surface);
}

.pay-success-until svg,
.pay-success-receipt svg {
    flex: none;
    margin-inline-end: 7px;
}

.pay-success-receipt {
    display: inline-flex;
    align-items: center;
    margin: 14px 0 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.pay-success .pay-success-cta {
    margin-top: 28px;
}

.pay-review-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.pay-review .pay-review-text {
    margin: 20px 4px 0;
    font-size: 17px;
    line-height: 1.45;
    color: var(--text-primary);
}

.pay-review .pay-review-text:focus {
    outline: none;
}

.pay-success .pay-success-cta svg {
    margin-inline-start: 2px;
}

[dir="rtl"] .pay-success-cta svg {
    transform: scaleX(-1);
}

.home-topbar .balance-container.empty.is-issue {
    max-width: 290px;
    padding: 9px 14px 9px 9px;
    border-radius: 18px;
    background: var(--sell-alert);
    box-shadow: 0 8px 20px rgba(226, 72, 58, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
    white-space: normal;
    text-align: start;
}

[dir="rtl"] .home-topbar .balance-container.empty.is-issue {
    padding: 9px 9px 9px 14px;
}

.balance-container.is-issue .balance-info {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 10px;
}

.balance-issue-icon,
.balance-issue-chevron {
    display: none;
}

.balance-container.is-issue .balance-issue-icon {
    position: relative;
    display: grid;
    place-items: center;
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #FFFFFF;
    color: var(--sell-coral-deep);
}

.balance-issue-ping {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    opacity: 0;
}

.balance-container.is-issue .balance-issue-chevron {
    display: block;
    grid-column: 3;
    grid-row: 1 / span 2;
    opacity: 0.9;
}

[dir="rtl"] .balance-issue-chevron svg {
    transform: scaleX(-1);
}

.balance-container.is-issue .balance-amount {
    grid-column: 2;
    grid-row: 1;
    font-size: 14px;
    font-weight: 800;
    color: #FFFFFF;
}

.home-topbar .balance-container.is-issue .balance-message {
    display: block;
    grid-column: 2;
    grid-row: 2;
    margin-top: 1px;
    font-size: 12px;
    line-height: 1.35;
    color: #FFFFFF;
    opacity: 0.95;
}

.home-issue-tile {
    display: none;
}

.home-pay-card.selling.is-issue {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 14px;
    padding: 20px 18px 18px;
    border: 1.5px solid rgba(242, 104, 63, 0.22);
    border-radius: 24px;
    background:
        radial-gradient(90% 80% at 100% 0%, rgba(255, 205, 140, 0.55), rgba(255, 205, 140, 0) 60%),
        linear-gradient(160deg, var(--sell-peach) 0%, var(--sell-peach-deep) 100%);
    box-shadow: 0 14px 30px rgba(226, 72, 58, 0.14);
}

.home-pay-card.selling.is-issue.hidden {
    display: none;
}

:root[data-theme="dark"] .home-pay-card.selling.is-issue {
    border-color: rgba(242, 104, 63, 0.4);
    background:
        radial-gradient(90% 80% at 100% 0%, rgba(244, 180, 58, 0.16), rgba(244, 180, 58, 0) 60%),
        var(--bg-surface);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
}

.home-pay-card.selling.is-issue::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 5px;
    background: var(--sell-ribbon);
}

.home-pay-card.is-issue .home-issue-tile {
    position: relative;
    display: grid;
    place-items: center;
    grid-column: 1;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--sell-alert);
    box-shadow: 0 8px 18px rgba(226, 72, 58, 0.32), inset 0 2px 0 rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
}

.home-issue-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    box-sizing: border-box;
    border: 2px solid var(--sell-peach);
    border-radius: 999px;
    background: var(--sell-gold);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    color: var(--sell-on-gold);
}

:root[data-theme="dark"] .home-issue-badge {
    border-color: var(--bg-surface);
}

[dir="rtl"] .home-issue-badge {
    right: auto;
    left: -5px;
}

.home-pay-card.selling.is-issue .exhausted-prompt {
    grid-column: 2;
    text-align: start;
}

.home-pay-card.selling.is-issue .exhausted-prompt-title {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.25;
    color: var(--text-primary);
}

.home-pay-card.selling.is-issue .exhausted-prompt-sub {
    margin-top: 3px;
    font-size: 13.5px;
    line-height: 1.4;
    color: var(--sell-peach-ink);
    opacity: 1;
}

:root[data-theme="dark"] .home-pay-card.selling.is-issue .exhausted-prompt-title {
    color: var(--text-primary);
}

:root[data-theme="dark"] .home-pay-card.selling.is-issue .exhausted-prompt-sub {
    color: var(--text-secondary);
}

.home-pay-card.selling.is-issue .subscribe-btn.sell-cta {
    grid-column: 1 / -1;
    min-height: 54px;
    margin-top: 16px;
    padding: 8px 20px;
    border-radius: 999px;
    background: var(--sell-cta);
    box-shadow: var(--sell-cta-glow);
    color: #FFFFFF;
    font-size: 17px;
    font-weight: 700;
}

@media (prefers-reduced-motion: no-preference) {
    .pay-success-spark.is-b {
        animation-delay: 0.8s;
    }

    .pay-success-spark.is-c {
        animation-delay: 1.4s;
    }

    .pay-success-until.sell-rise {
        animation-delay: 0.08s;
    }

    .balance-issue-ping {
        animation: balance-issue-ping 2s ease-out infinite;
    }

    .home-pay-card.is-issue .home-issue-tile {
        animation: home-issue-nudge 3.6s ease-in-out infinite;
    }
}

@keyframes balance-issue-ping {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.9); opacity: 0; }
}

@keyframes home-issue-nudge {
    0%, 80%, 100% { transform: rotate(0); }
    84% { transform: rotate(-8deg); }
    88% { transform: rotate(7deg); }
    92% { transform: rotate(-4deg); }
}
