.price-alert-cta {
    --alert-ink: #172033;
    --alert-muted: #647086;
    --alert-line: rgba(140, 108, 31, .2);
    --alert-link: #795b07;
    position: relative;
    overflow: hidden;
    padding: 28px 20px;
    border-top: 1px solid var(--border);
    background:
        radial-gradient(circle at 12% 0%, rgba(247, 226, 125, .25), transparent 31rem),
        linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
}

.price-alert-cta::before {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(140, 108, 31, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(140, 108, 31, .035) 1px, transparent 1px);
    background-size: 32px 32px;
    content: "";
    pointer-events: none;
    mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.price-alert-cta__shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(170px, 210px) minmax(0, 1fr);
    gap: clamp(20px, 3vw, 36px);
    align-items: center;
    max-width: 1180px;
    margin: 0 auto;
}

.price-alert-cta__telegram-mark {
    display: grid;
    width: 52px;
    height: 52px;
    margin-bottom: 10px;
    border-radius: 50%;
    background: linear-gradient(145deg, #2aabee, #1688c5);
    color: #fff;
    place-items: center;
    box-shadow: 0 8px 20px rgba(34, 158, 217, .22);
}

.price-alert-cta__telegram-mark svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.price-alert-cta__intro h2 {
    max-width: 210px;
    margin: 0;
    color: var(--alert-ink);
    font-size: clamp(21px, 2.2vw, 28px);
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: -.03em;
}

.price-alert-form {
    display: grid;
    grid-template-columns: minmax(330px, 1.25fr) minmax(260px, .75fr);
    grid-template-areas:
        "setup direction"
        "actions actions"
        "status status";
    gap: 12px 14px;
    align-items: end;
    padding: 16px;
    border: 1px solid var(--alert-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 14px 36px rgba(62, 49, 16, .09), 0 2px 8px rgba(62, 49, 16, .04);
    backdrop-filter: blur(12px);
}

.price-alert-form__group {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.price-alert-form__group:first-of-type {
    grid-area: setup;
}

.price-alert-form__group:nth-of-type(2) {
    grid-area: direction;
}

.price-alert-form__group legend {
    margin-bottom: 6px;
    color: var(--alert-ink);
    font-size: 13px;
    font-weight: 800;
}

.price-alert-form__asset-row {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(120px, .6fr);
    gap: 12px;
}

.price-alert-form__field {
    display: grid;
    min-width: 0;
    gap: 7px;
}

.price-alert-form__field > span:first-child {
    color: var(--alert-muted);
    font-size: 11px;
    font-weight: 700;
}

.price-alert-form select,
.price-alert-form input {
    width: 100%;
    min-height: 42px;
    border: 1px solid #dce1e8;
    border-radius: 10px;
    outline: 0;
    background: #fff;
    color: var(--alert-ink);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.price-alert-form select {
    padding: 0 14px 0 34px;
}

.price-alert-form input {
    padding: 0 14px;
}

.price-alert-form select:focus-visible,
.price-alert-form input:focus-visible {
    border-color: var(--gold-dark);
    box-shadow: 0 0 0 3px rgba(184, 134, 11, .14);
}

.price-alert-form input:disabled {
    cursor: not-allowed;
    background: #f5f6f8;
    color: #8991a0;
}

.price-alert-form__number {
    position: relative;
}

.price-alert-form__number input {
    direction: ltr;
    padding-inline-end: 34px;
    font-family: "IBM Plex Mono", monospace;
}

.price-alert-form__number bdi {
    position: absolute;
    top: 50%;
    inset-inline-end: 13px;
    color: var(--gold-dark);
    font-weight: 800;
    transform: translateY(-50%);
    pointer-events: none;
}

.price-alert-form__segments {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.price-alert-form__segments label {
    position: relative;
    cursor: pointer;
}

.price-alert-form__segments input {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 0;
    opacity: 0;
}

.price-alert-form__segments label > span {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid #dce1e8;
    border-radius: 11px;
    background: #fff;
    color: var(--alert-muted);
    font-size: 11px;
    font-weight: 800;
    transition: border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}

.price-alert-form__segments svg,
.price-alert-form button svg {
    width: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.price-alert-form__segments input:checked + span {
    border-color: var(--gold-dark);
    background: rgba(247, 226, 125, .16);
    color: var(--gold-dark);
    box-shadow: inset 0 0 0 1px rgba(140, 108, 31, .08);
}

.price-alert-form__segments input:focus-visible + span {
    box-shadow: 0 0 0 3px rgba(184, 134, 11, .18);
}

.price-alert-form button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 20px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #bea33f, #8c6c1f);
    color: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
    transition: filter .18s ease, transform .18s ease, box-shadow .18s ease;
}

.price-alert-form input[aria-invalid="true"] {
    border-color: #b4473a;
    box-shadow: 0 0 0 3px rgba(180, 71, 58, .12);
}

.price-alert-form button:focus-visible {
    outline: 3px solid rgba(34, 158, 217, .28);
    outline-offset: 3px;
}

.price-alert-form button:disabled {
    cursor: not-allowed;
    filter: grayscale(.2);
    opacity: .62;
}

.price-alert-form__telegram-button {
    width: 100%;
    background: linear-gradient(135deg, #229ed9, #1686bd) !important;
    box-shadow: 0 8px 20px rgba(34, 158, 217, .2);
}

.price-alert-form__telegram-button:not(:disabled):hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.price-alert-form__actions {
    grid-area: actions;
    display: grid;
    grid-template-columns: minmax(330px, 1.25fr) minmax(260px, .75fr);
    gap: 14px;
    align-items: center;
}

.price-alert-form__turnstile {
    display: flex;
    min-height: 0;
    align-items: center;
    justify-content: center;
    margin: 0;
    overflow: hidden;
}

.price-alert-form__turnstile .cf-turnstile {
    width: 100%;
}

.price-alert-form__status {
    grid-area: status;
    min-height: 18px;
    margin: 0;
    color: #a0362c;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

.price-alert-form__status:empty {
    min-height: 0;
    margin: 0;
}

html[data-theme="night"] .price-alert-cta {
    --alert-ink: #f1f4fa;
    --alert-muted: #aeb8ca;
    --alert-line: rgba(247, 226, 125, .17);
    --alert-link: #f7e27d;
    background:
        radial-gradient(circle at 12% 0%, rgba(184, 134, 11, .16), transparent 31rem),
        linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
}

html[data-theme="night"] .price-alert-form {
    background: rgba(23, 28, 39, .88);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

html[data-theme="night"] .price-alert-form select,
html[data-theme="night"] .price-alert-form input,
html[data-theme="night"] .price-alert-form__segments label > span {
    border-color: #394154;
    background: #222938;
    color: var(--alert-ink);
}

html[data-theme="night"] .price-alert-form input:disabled {
    background: #1c2230;
    color: #778196;
}

html[data-theme="night"] .price-alert-form__segments input:checked + span {
    border-color: rgba(247, 226, 125, .28);
    background: rgba(247, 226, 125, .08);
    color: var(--gold-light);
}

@media (max-width: 900px) {
    .price-alert-cta__shell {
        grid-template-columns: 1fr;
        gap: 12px;
        max-width: 760px;
    }

    .price-alert-cta__intro {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        text-align: center;
    }

    .price-alert-cta__telegram-mark {
        margin: 0;
    }

    .price-alert-cta__intro h2 {
        max-width: none;
        font-size: 23px;
    }
}

@media (max-width: 680px) {
    .price-alert-cta {
        padding: 16px 10px 22px;
    }

    .price-alert-cta__telegram-mark {
        width: 42px;
        height: 42px;
    }

    .price-alert-cta__telegram-mark svg {
        width: 23px;
        height: 23px;
    }

    .price-alert-cta__intro h2 {
        font-size: 18px;
    }

    .price-alert-form {
        grid-template-columns: 1fr;
        grid-template-areas:
            "setup"
            "direction"
            "actions"
            "status";
        gap: 8px;
        padding: 12px;
        border-radius: 16px;
    }

    .price-alert-form__asset-row {
        grid-template-columns: minmax(0, 1fr) 92px;
        gap: 8px;
    }

    .price-alert-form__segments label > span {
        gap: 4px;
        font-size: 10px;
    }

    .price-alert-form button {
        width: 100%;
    }

    .price-alert-form__actions {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .price-alert-form__turnstile {
        justify-content: flex-start;
        transform-origin: right center;
    }
}

.price-alert-form__status[data-kind="success"] {
    color: #22734a;
}

.price-alert-form__status[data-kind="pending"] {
    color: var(--alert-muted);
}

.price-alert-form__status a {
    color: var(--alert-link);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.price-alert-form__status a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
    border-radius: 2px;
}

html[data-theme="night"] .price-alert-form__status[data-kind="success"] {
    color: #71d09d;
}

@media (max-width: 360px) {
    .price-alert-cta {
        padding-inline: 0;
    }

    .price-alert-cta__intro {
        padding-inline: 8px;
    }

    .price-alert-form__turnstile {
        margin-inline: -14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .price-alert-form *,
    .price-alert-cta * {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
