.node-family__action-row,
.node-family__restricted-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(190px, 0.9fr);
    align-items: stretch;
    gap: 14px;
    width: 100%;
    max-width: 530px;
    margin-top: 28px;
}

.node-family__action-row[hidden],
.node-family__restricted-row[hidden] {
    display: none;
}

.node-family__price {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 68px;
    padding: 12px 16px;
    border: 1px solid rgba(91, 55, 255, 0.14);
    border-radius: 14px;
    background:
        radial-gradient(circle at 92% 10%, rgba(105, 69, 255, 0.12), transparent 38%),
        rgba(255, 255, 255, 0.84);
    box-shadow:
        0 14px 32px rgba(45, 31, 102, 0.055),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.node-family__price[hidden] {
    display: none;
}

.node-family__price-copy {
    display: grid;
    gap: 6px;
}

.node-family__price-copy small,
.node-family__availability-copy small {
    color: #777b88;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.node-family__price-values {
    display: flex;
    align-items: baseline;
    gap: 11px;
}

.node-family__price-values s {
    color: #999ca7;
    font-size: 16px;
    font-weight: 500;
    text-decoration-color: #7660d9;
    text-decoration-thickness: 1.5px;
}

.node-family__price-values strong {
    color: #171820;
    font-size: 27px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.055em;
}

.node-family__preorder-button,
.node-family__patent-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 17px;
    min-width: 0;
    min-height: 68px;
    padding: 0 22px;
    color: #ffffff;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #101017 0%, #1a1928 100%);
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    box-shadow:
        0 13px 31px rgba(26, 21, 61, 0.17),
        0 0 27px rgba(91, 55, 255, 0.16);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        opacity 180ms ease;
}

.node-family__preorder-button[hidden] {
    display: none;
}

.node-family__preorder-button svg,
.node-family__patent-button svg {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 180ms ease;
}

.node-family__preorder-button:hover,
.node-family__patent-button:hover {
    transform: translateY(-2px);
    box-shadow:
        0 17px 39px rgba(26, 21, 61, 0.23),
        0 0 35px rgba(91, 55, 255, 0.23);
}

.node-family__preorder-button:hover svg {
    transform: translateX(4px);
}

.node-family__patent-button:hover svg {
    transform: translate(3px, -3px);
}

.node-family__availability {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    min-height: 68px;
    padding: 12px 16px;
    border: 1px solid rgba(91, 55, 255, 0.14);
    border-radius: 14px;
    background:
        radial-gradient(circle at 92% 10%, rgba(105, 69, 255, 0.12), transparent 38%),
        rgba(255, 255, 255, 0.84);
    box-shadow:
        0 14px 32px rgba(45, 31, 102, 0.055),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.node-family__availability-icon {
    display: grid;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #6842ef;
    border: 1px solid rgba(91, 55, 255, 0.13);
    border-radius: 12px;
    background: rgba(91, 55, 255, 0.065);
    box-shadow: 0 7px 18px rgba(73, 49, 171, 0.07);
}

.node-family__availability-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.node-family__availability-copy {
    display: grid;
    min-width: 0;
    gap: 5px;
}

.node-family__availability-copy strong {
    color: #191a22;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.22;
    letter-spacing: -0.025em;
}

.preorder-modal {
    width: min(620px, calc(100% - 28px));
    max-height: calc(100svh - 36px);
    margin: auto;
    padding: 0;
    overflow: visible;
    color: #171922;
    border: 0;
    border-radius: 24px;
    background: transparent;
}

.preorder-modal::backdrop {
    background: rgba(8, 7, 13, 0.58);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.preorder-modal__surface {
    position: relative;
    max-height: calc(100svh - 36px);
    overflow-y: auto;
    padding: 36px;
    border: 1px solid rgba(103, 62, 241, 0.16);
    border-radius: 24px;
    background:
        radial-gradient(circle at 90% 5%, rgba(128, 86, 255, 0.14), transparent 25%),
        #fbfafe;
    box-shadow: 0 34px 90px rgba(14, 10, 30, 0.34);
}

.preorder-modal__close {
    position: absolute;
    z-index: 2;
    top: 20px;
    right: 20px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(39, 31, 62, 0.09);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    cursor: pointer;
}

.preorder-modal__close span {
    position: absolute;
    width: 15px;
    height: 1.5px;
    background: #282a33;
}

.preorder-modal__close span:first-child {
    transform: rotate(45deg);
}

.preorder-modal__close span:last-child {
    transform: rotate(-45deg);
}

.preorder-modal__intro > p {
    color: #6e48f5;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.preorder-modal__intro h2 {
    margin-top: 14px;
    font-size: 42px;
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.preorder-modal__intro > span {
    display: block;
    max-width: 500px;
    margin-top: 14px;
    color: #73717d;
    font-size: 13px;
    line-height: 1.6;
}

.preorder-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.preorder-form .form-consent,
.preorder-form .form-submit,
.preorder-form .form-status {
    grid-column: 1 / -1;
}

@media (max-width: 1250px) {
    .node-family__action-row,
    .node-family__restricted-row {
        grid-template-columns: minmax(0, 1fr) minmax(170px, 0.85fr);
        gap: 11px;
    }

    .node-family__preorder-button,
    .node-family__patent-button {
        min-height: 64px;
        padding-right: 16px;
        padding-left: 16px;
    }
}

@media (max-width: 620px) {
    .node-family__action-row,
    .node-family__restricted-row {
        grid-template-columns: 1fr;
        gap: 11px;
    }

    .node-family__price {
        min-height: 64px;
    }

    .node-family__preorder-button,
    .node-family__patent-button {
        width: 100%;
        min-width: 0;
        min-height: 58px;
    }

    .node-family__availability {
        min-height: 68px;
        padding: 13px 14px;
    }

    .node-family__availability-copy strong {
        font-size: 14px;
    }

    .preorder-modal__surface {
        padding: 30px 20px 24px;
    }

    .preorder-modal__intro h2 {
        font-size: 36px;
    }

    .preorder-form {
        grid-template-columns: 1fr;
    }

    .preorder-form .form-consent,
    .preorder-form .form-submit,
    .preorder-form .form-status {
        grid-column: auto;
    }
}
