.po {
    --po-ink: var(--cd-ink, var(--co-pd2-ink, #0f172a));
    --po-muted: var(--cd-ink-muted, var(--co-pd2-ink-muted, #64748b));
    --po-line: var(--cd-border, var(--co-pd2-border, rgba(15, 23, 42, 0.1)));
    --po-brand: var(--co-pd2-accent, var(--cd-accent, #363d4b));
    --po-brand-ink: #f8fafc;
    --po-card: #10161e;
    --po-card-ink: #eef3f8;
    --po-card-muted: #a9b6c6;
    --po-card-line: rgba(214, 226, 240, 0.16);
    max-width: 1120px;
    color: var(--po-ink);
}

.po-head {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 32px;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 22px;
}

.po-plan {
    margin: 0 0 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--po-muted);
}

.po-head h2 {
    margin: 0 0 4px;
    font-size: 1.75rem;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--po-ink);
}

.po-head p {
    margin: 0;
    color: var(--po-muted);
    max-width: 56ch;
}

.po-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.po .chip {
    border: 1px solid var(--po-line);
    background: transparent;
    color: var(--po-ink);
    padding: 7px 14px;
    border-radius: 999px;
    font: inherit;
    font-size: 0.875rem;
    cursor: pointer;
}

.po .chip:hover,
.po .chip[aria-pressed="true"] {
    background: var(--po-brand);
    border-color: var(--po-brand);
    color: var(--po-brand-ink);
}

.po :focus-visible {
    outline: 3px solid var(--po-brand);
    outline-offset: 2px;
}

.po-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.po .offer {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--po-card-line);
    border-radius: 20px;
    background: var(--po-card);
    color: var(--po-card-ink);
    box-shadow: 0 18px 40px rgba(6, 10, 16, 0.22);
    isolation: isolate;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.po .offer[hidden] {
    display: none;
}

.po .offer::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.55), transparent 32%, transparent 68%, rgba(170, 198, 230, 0.45));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 4;
    opacity: 0.72;
}

.po .offer::after {
    content: "";
    position: absolute;
    inset: -20% -40%;
    background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.16) 50%, transparent 60%);
    transform: translateX(-70%);
    pointer-events: none;
    z-index: 3;
}

.po .offer:hover {
    transform: translateY(-4px);
    border-color: rgba(214, 226, 240, 0.34);
    box-shadow: 0 26px 54px rgba(6, 10, 16, 0.34);
}

.po .offer:hover::after {
    animation: po-sheen 0.9s ease;
}

.po .offer.featured {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.po .stage {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 18% 0%, rgba(126, 164, 214, 0.38), transparent 46%),
        linear-gradient(155deg, #243246 0%, #10161e 72%);
}

.po .featured .stage {
    height: 340px;
    min-height: 340px;
}

.po .featured .stage img {
    object-position: center 38%;
}

.po .stage img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 54% 32%;
    transform: scale(1.08);
    transition: transform 0.9s ease;
    animation: po-drift 16s ease-in-out infinite alternate;
}

.po .offer:hover .stage img {
    animation: none;
    transform: scale(1.16);
}

.po .stage::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 12, 18, 0.08) 0%, rgba(8, 12, 18, 0.02) 42%, #10161e 100%);
    z-index: 1;
    pointer-events: none;
}

.po .offer:not(.featured) .stage::before {
    background: linear-gradient(180deg, rgba(8, 12, 18, 0.05) 20%, rgba(16, 22, 30, 0.55) 72%, #10161e);
}

.po .stage::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 78%);
    z-index: 1;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.po .stage-mark,
.po .badge {
    position: absolute;
    z-index: 2;
    top: 16px;
}

.po .stage-mark {
    left: 16px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(10, 14, 20, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
    font-weight: 700;
    letter-spacing: 0.04em;
}

.po .badge {
    right: 16px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(10, 14, 20, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.po .panel {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    padding: 22px 22px 20px;
}

.po .featured .panel {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.75fr);
    column-gap: 32px;
    row-gap: 8px;
    align-content: start;
    padding: 4px 28px 26px;
}

.po .featured .who,
.po .featured h3,
.po .featured > .panel > p:not(.side-label),
.po .featured .facts {
    grid-column: 1;
}

.po .featured .foot {
    grid-column: 1 / -1;
    justify-content: flex-start;
    margin-top: 10px;
}

.po .featured .side-label,
.po .featured .steps,
.po .featured .expiry {
    grid-column: 2;
}

.po .featured .side-label {
    grid-row: 1;
    margin-top: 6px;
}

.po .featured .steps {
    grid-row: 2 / span 4;
}

.po .who {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: baseline;
    line-height: 1.2;
}

.po .who strong {
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.po .who span {
    color: var(--po-card-muted);
    font-size: 0.8rem;
}

.po .offer h3 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.25;
    letter-spacing: -0.03em;
    color: var(--po-card-ink);
}

.po .featured h3 {
    font-size: clamp(1.55rem, 2.4vw, 2.05rem);
    max-width: 16ch;
}

.po .offer p {
    margin: 0;
    color: var(--po-card-muted);
    font-size: 0.94rem;
}

.po .featured .offer p,
.po .featured > .panel > p {
    max-width: 46ch;
}

.po .facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 2px 0 0;
}

.po .facts div {
    min-width: 0;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--po-card-line);
}

.po .facts dt {
    color: var(--po-card-muted);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.po .facts dd {
    margin: 2px 0 0;
    font-size: 0.88rem;
    font-weight: 600;
}

.po p.side-label {
    margin: 6px 0 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--po-card-muted);
}

.po .steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.po .steps li {
    display: grid;
    grid-template-columns: 1.7rem minmax(0, 1fr);
    gap: 2px 10px;
    align-items: start;
    color: var(--po-card-muted);
    font-size: 0.9rem;
}

.po .steps li span {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.po .steps small {
    color: var(--po-card-muted);
    font-size: 0.82rem;
}

.po .steps li::before {
    content: counter(po-step, decimal-leading-zero);
    counter-increment: po-step;
    color: #d5e2f0;
    font-variant-numeric: tabular-nums;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
}

.po .steps {
    counter-reset: po-step;
}

.po .steps b {
    color: var(--po-card-ink);
    font-weight: 600;
}

.po .expiry {
    display: grid;
    gap: 6px;
    color: var(--po-card-muted);
    font-size: 0.8rem;
}

.po .bar {
    height: 4px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.po .bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #8ea4be, #e8eef6);
}

.po .foot {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: auto;
    padding-top: 6px;
}

.po .code {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 6px 8px 6px 12px;
    border: 1px dashed rgba(214, 226, 240, 0.45);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--po-card-ink);
}

.po .code-k,
.po .code-hint {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--po-card-muted);
}

.po .code-v {
    font: 600 0.92rem ui-monospace, SFMono-Regular, Menlo, monospace;
    letter-spacing: 0.04em;
    cursor: pointer;
    user-select: text;
    -webkit-user-select: text;
}

.po .code-v:hover,
.po .code-v:focus-visible {
    color: #ffffff;
}

.po .code:hover {
    background: rgba(255, 255, 255, 0.08);
}

.po .btn {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    border-radius: 999px;
    background: #eef3f8;
    color: #10161e;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.po .btn span {
    display: inline-block;
    transition: transform 0.25s ease;
}

.po .btn:hover {
    background: #ffffff;
    color: #10161e;
}

.po .btn:hover span {
    transform: translateX(3px);
}

.po .note,
.po-empty p {
    margin: 0;
    color: var(--po-muted);
}

.po .note {
    margin-top: 18px;
    font-size: 0.8rem;
}

.po-empty {
    padding: 28px 22px;
    border: 1px solid var(--po-line);
    border-radius: 18px;
}

.po-empty h3 {
    margin: 0 0 6px;
}

.po .sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

@keyframes po-sheen {
    from { transform: translateX(-70%); }
    to { transform: translateX(70%); }
}

@keyframes po-drift {
    from { transform: scale(1.08) translate3d(0, 0, 0); }
    to { transform: scale(1.14) translate3d(-1.2%, -1%, 0); }
}

@media (max-width: 900px) {
    .po-grid {
        grid-template-columns: 1fr 1fr;
    }

    .po .featured .stage {
        height: 220px;
        min-height: 220px;
    }

    .po .featured .panel {
        display: flex;
        padding: 8px 20px 22px;
    }
}

@media (max-width: 640px) {
    .po-grid {
        grid-template-columns: 1fr;
    }

    .po .btn {
        margin-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .po .offer,
    .po .offer::after,
    .po .stage img,
    .po .btn span {
        animation: none !important;
        transition: none !important;
    }

    .po .offer:hover {
        transform: none;
    }
}
