:root {
    --pulse-navy: #0b1f66;
    --pulse-blue: #165dff;
    --pulse-cyan: #22d3ee;
    --pulse-ice: #f6faff;
    --pulse-line: #d9e3f0;
    --pulse-muted: #94a3b8;
}

.ps-pulse-mark {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    flex: 0 0 auto;
    background: #cbd5e1;
    -webkit-mask: url("../brand/pixsell-pulse.svg") center / contain no-repeat;
    mask: url("../brand/pixsell-pulse.svg") center / contain no-repeat;
    transition: background .18s ease, filter .18s ease, transform .18s ease;
}

.ps-pulse-mark.is-active,
.ps-pulse-mark--brand,
.ps-pulse-choice.is-active .ps-pulse-mark {
    background: linear-gradient(145deg, var(--pulse-blue) 15%, var(--pulse-cyan) 92%);
    filter: drop-shadow(0 .2rem .4rem rgba(22, 93, 255, .2));
}

.ps-pulse-card {
    position: relative;
    display: block;
    min-width: 0;
    margin-top: 1.5rem;
    padding: 1.25rem;
    overflow: hidden;
    border: 1px solid #bfdbfe;
    border-radius: 1rem;
    background: linear-gradient(145deg, #fff 0%, var(--pulse-ice) 100%);
    box-shadow: 0 1rem 2.5rem rgba(11, 31, 102, .08);
}

.ps-pulse-card::after {
    position: absolute;
    right: -3rem;
    bottom: -4.5rem;
    width: 11rem;
    height: 11rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(34, 211, 238, .15), rgba(34, 211, 238, 0) 68%);
    content: "";
    pointer-events: none;
}

.ps-pulse-card--registered {
    border-color: #a7f3d0;
    background: linear-gradient(145deg, #fff 0%, #ecfdf5 100%);
}

.ps-pulse-card--waiting {
    border-color: #fde68a;
    background: linear-gradient(145deg, #fff 0%, #fffbeb 100%);
    box-shadow: none;
}

.ps-pulse-card__head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: .75rem;
    min-width: 0;
}

.ps-pulse-card__icon {
    display: grid;
    width: 3rem;
    height: 3rem;
    flex: 0 0 3rem;
    place-items: center;
    border: 1px solid rgba(22, 93, 255, .12);
    border-radius: .9rem;
    background: #fff;
    box-shadow: 0 .45rem 1.2rem rgba(11, 31, 102, .09);
}

.ps-pulse-card__icon .ps-pulse-mark {
    width: 1.9rem;
    height: 1.9rem;
}

.ps-pulse-card__content {
    position: relative;
    z-index: 1;
    min-width: 0;
    margin-top: .9rem;
}

.ps-pulse-eyebrow {
    min-width: 0;
    margin: 0 !important;
    color: var(--pulse-blue) !important;
    font-size: .7rem !important;
    font-weight: 800 !important;
    letter-spacing: .13em;
    line-height: 1.3 !important;
    text-transform: uppercase;
}

.ps-pulse-card h2 {
    margin: 0;
    color: #0f172a;
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.35;
}

.ps-pulse-card__content > p {
    margin: .45rem 0 0;
    color: #64748b;
    font-size: .86rem;
    line-height: 1.58;
}

.ps-pulse-form {
    min-width: 0;
    margin-top: 1rem;
}

.ps-pulse-form fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.ps-pulse-picker {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
    gap: .28rem;
    padding: .35rem;
    border: 1px solid var(--pulse-line);
    border-radius: 1rem;
    background: rgba(255, 255, 255, .92);
}

.ps-pulse-choice {
    position: relative;
    display: grid;
    width: 100%;
    min-width: 0;
    min-height: 2.75rem;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    place-items: center;
    border-radius: .72rem;
    transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.ps-pulse-choice:hover,
.ps-pulse-choice:focus-within {
    background: #eff6ff;
    box-shadow: inset 0 0 0 1px #bfdbfe;
    transform: translateY(-1px);
}

.ps-pulse-choice:focus-within {
    outline: 3px solid rgba(22, 93, 255, .22);
    outline-offset: 2px;
}

.ps-pulse-choice input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.ps-pulse-choice .ps-pulse-mark {
    width: clamp(1.35rem, 66%, 1.9rem);
    height: clamp(1.35rem, 66%, 1.9rem);
}

.ps-pulse-choice.is-active .ps-pulse-mark {
    transform: scale(1.06);
}

.ps-pulse-output {
    display: block;
    min-height: 1.25rem;
    margin-top: .6rem;
    color: var(--pulse-navy);
    font-size: .76rem;
    font-weight: 800;
    line-height: 1.4;
}

.ps-pulse-error {
    margin: .45rem 0 0;
    color: #b91c1c;
    font-size: .8rem;
    font-weight: 700;
}

.ps-pulse-submit {
    display: inline-flex;
    width: 100%;
    min-height: 2.85rem;
    align-items: center;
    justify-content: center;
    margin-top: .85rem;
    padding: .72rem 1.2rem;
    border: 0;
    border-radius: .8rem;
    background: linear-gradient(100deg, var(--pulse-navy), var(--pulse-blue));
    color: #fff;
    cursor: pointer;
    font-size: .87rem;
    font-weight: 800;
    box-shadow: 0 .6rem 1.2rem rgba(22, 93, 255, .2);
    transition: box-shadow .18s ease, transform .18s ease;
}

.ps-pulse-submit:hover {
    box-shadow: 0 .8rem 1.5rem rgba(22, 93, 255, .28);
    transform: translateY(-1px);
}

.ps-pulse-submit:focus-visible {
    outline: 3px solid rgba(22, 93, 255, .28);
    outline-offset: 3px;
}

.ps-pulse-display {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .3rem;
    margin-top: .85rem;
}

.ps-pulse-display strong {
    margin-left: .3rem;
    color: var(--pulse-navy);
    font-size: .82rem;
}

.ps-pulse-public {
    display: inline-grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: .75rem;
    margin-top: 1rem;
    padding: .7rem .9rem;
    border: 1px solid #bfdbfe;
    border-radius: 1rem;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 .65rem 1.7rem rgba(11, 31, 102, .08);
    text-align: left;
}

.ps-pulse-public__badge {
    display: grid;
    width: 2.65rem;
    height: 2.65rem;
    place-items: center;
    border-radius: .8rem;
    background: linear-gradient(145deg, #eff6ff, #ecfeff);
}

.ps-pulse-public__badge .ps-pulse-mark {
    width: 1.8rem;
    height: 1.8rem;
}

.ps-pulse-public__topline {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .35rem;
}

.ps-pulse-public__topline strong {
    color: var(--pulse-navy);
    font-size: 1rem;
    font-weight: 850;
}

.ps-pulse-public__topline span,
.ps-pulse-public__meta {
    color: #64748b;
    font-size: .72rem;
    font-weight: 700;
}

.ps-pulse-public__marks {
    display: flex;
    gap: .13rem;
    margin-top: .2rem;
}

.ps-pulse-public__marks .ps-pulse-mark {
    width: .95rem;
    height: .95rem;
}

.ps-pulse-public__meta {
    display: block;
    margin-top: .18rem;
}

.ps-pulse-seller {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .7rem;
    margin-top: 1rem;
    padding: .9rem 1rem;
    border: 1px solid #bfdbfe;
    border-radius: .8rem;
    background: #f8fbff;
}

.ps-pulse-seller__marks {
    display: flex;
    gap: .2rem;
}

.ps-pulse-seller__marks .ps-pulse-mark {
    width: 1.3rem;
    height: 1.3rem;
}

.ps-pulse-seller strong {
    color: var(--pulse-navy);
    font-size: .88rem;
}

.ps-pulse-seller span:last-child {
    color: #64748b;
    font-size: .78rem;
}

@media (max-width: 640px) {
    .ps-pulse-card {
        padding: 1.05rem;
    }

    .ps-pulse-card__icon {
        width: 2.8rem;
        height: 2.8rem;
        flex-basis: 2.8rem;
    }

    .ps-pulse-choice {
        min-height: 2.55rem;
    }

    .ps-pulse-public {
        width: 100%;
    }
}

@media (max-width: 380px) {
    .ps-pulse-picker {
        gap: .18rem;
        padding: .28rem;
    }

    .ps-pulse-choice {
        min-height: 2.3rem;
    }

    .ps-pulse-choice .ps-pulse-mark {
        width: 1.35rem;
        height: 1.35rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ps-pulse-mark,
    .ps-pulse-choice,
    .ps-pulse-submit {
        transition: none;
    }
}
