.premium-page {
    --club-text: #f6f8fb;
    --club-muted: #94a3b8;
    --club-soft: #cbd5e1;
    --club-line: rgba(255, 255, 255, 0.09);
    --club-line-strong: rgba(255, 255, 255, 0.15);
    --club-card: #111821;
    --club-card-premium: #121c2b;
    --club-surface: rgba(255, 255, 255, 0.045);
    --club-blue: #4c8ff8;
    --club-blue-strong: #2f75e8;
    --club-blue-soft: #9cc3ff;
    --club-gold: #e8c96f;
    --club-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);

    position: relative;
    width: min(100%, 1220px);
    margin: 72px auto 0;
    padding: 34px 24px 96px;
    isolation: isolate;
}

.premium-page::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -150px;
    left: 50%;
    width: min(900px, 95vw);
    height: 460px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(55, 116, 214, 0.14), transparent 68%);
    transform: translateX(-50%);
    pointer-events: none;
}

.premium-hero {
    margin-bottom: 44px;
}

.premium-club-hero {
    display: flex;
    justify-content: center;
}

.premium-club-hero__copy {
    width: min(100%, 820px);
    text-align: center;
}

.premium-club-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border: 1px solid rgba(129, 171, 235, 0.18);
    border-radius: 999px;
    background: rgba(64, 116, 190, 0.08);
    color: #a9c8f6;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.premium-title {
    max-width: 780px;
    margin: 18px auto 0;
    color: var(--club-text);
    font-size: clamp(38px, 5.3vw, 64px);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.premium-subtitle {
    max-width: 620px;
    margin: 20px auto 0;
    color: var(--club-muted);
    font-size: 16px;
    line-height: 1.65;

}

.premium-plans {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.tariff-card {
    min-width: 0;
    display: flex;
}

.tariff-card__surface {
    position: relative;
    width: 100%;
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 28px;
    overflow: hidden;
    border: 1px solid var(--club-line);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 32%),
        var(--club-card);
    box-shadow: var(--club-shadow);
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.tariff-card__surface::before {
    content: "";
    position: absolute;
    inset: 0 24px auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.36), transparent);
    opacity: 0.6;
    pointer-events: none;
}

.tariff-card__surface::after {
    content: "";
    position: absolute;
    z-index: 0;
    top: -140px;
    right: -120px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(80, 137, 229, 0.1), transparent 69%);
    pointer-events: none;
}

.tariff-card--premium .tariff-card__surface {
    border-color: rgba(88, 143, 226, 0.28);
    background:
        linear-gradient(180deg, rgba(76, 143, 248, 0.065), transparent 38%),
        var(--club-card-premium);
    box-shadow:
        0 28px 72px rgba(0, 0, 0, 0.34),
        0 0 0 1px rgba(64, 126, 221, 0.04);
}

.tariff-card--premium .tariff-card__surface::after {
    background: radial-gradient(circle, rgba(76, 143, 248, 0.16), transparent 69%);
}

@media (hover: hover) {
    .tariff-card:hover .tariff-card__surface {
        transform: translateY(-4px);
        border-color: rgba(121, 160, 218, 0.25);
        box-shadow: 0 30px 76px rgba(0, 0, 0, 0.38);
    }

    .tariff-card--premium:hover .tariff-card__surface {
        border-color: rgba(92, 154, 248, 0.46);
    }
}

.tariff-card__topline,
.tariff-card__headline,
.tariff-card__content,
.tariff-card__footer {
    position: relative;
    z-index: 1;
}

.tariff-card__topline {
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.tariff-card__badge,
.tariff-card__accent {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tariff-card__badge {
    border: 1px solid var(--club-line);
    background: rgba(255, 255, 255, 0.055);
    color: var(--club-soft);
}

.tariff-card__accent {
    margin-left: auto;
    border: 1px solid rgba(232, 201, 111, 0.24);
    background: rgba(232, 201, 111, 0.11);
    color: var(--club-gold);
}

.tariff-card__headline {
    display: grid;
    gap: 10px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--club-line);
}

.tariff-card__headline h2 {
    margin: 0;
    color: var(--club-text);
    font-size: clamp(25px, 2.5vw, 32px);
    font-weight: 760;
    line-height: 1.1;
    letter-spacing: -0.035em;
    overflow-wrap: anywhere;
}

.tariff-card__subtitle {
    margin: -2px 0 2px;
    color: var(--club-muted);
    font-size: 14px;
    line-height: 1.55;
}

.tariff-card__price-line {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 2px;
}

.tariff-card__price {
    color: var(--club-text);
    font-size: 27px;
    font-weight: 780;
    line-height: 1;
    letter-spacing: -0.025em;
}

.tariff-card__caption {
    color: var(--club-muted);
    font-size: 13px;
    line-height: 1.4;
}

.tariff-card__content {
    display: grid;
    gap: 20px;
}

.tariff-card__features {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tariff-card__feature {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    color: #d7e0ec;
    font-size: 14px;
    line-height: 1.5;
}

.tariff-card__feature-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: -1px;
    border: 1px solid rgba(91, 151, 242, 0.21);
    border-radius: 7px;
    background: rgba(76, 143, 248, 0.09);
    color: var(--club-blue-soft);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.tariff-card__feature--check .tariff-card__feature-icon::before {
    content: "✓";
}

.tariff-card__feature--accent .tariff-card__feature-icon {
    border-color: rgba(232, 201, 111, 0.22);
    background: rgba(232, 201, 111, 0.09);
    color: var(--club-gold);
}

.tariff-card__feature--accent .tariff-card__feature-icon::before {
    content: "✦";
}

.tariff-card__feature--muted {
    color: #8795a7;
}

.tariff-card__feature--muted .tariff-card__feature-icon {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.035);
    color: #8492a5;
}

.tariff-card__feature--muted .tariff-card__feature-icon::before {
    content: "−";
}

.tariff-card__body {
    padding-top: 18px;
    border-top: 1px solid var(--club-line);
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.tariff-card__body > :first-child {
    margin-top: 0;
}

.tariff-card__body > :last-child {
    margin-bottom: 0;
}

.tariff-card__body p {
    margin: 0 0 12px;
}

.tariff-card__body h2,
.tariff-card__body h3,
.tariff-card__body h4 {
    margin: 18px 0 8px;
    color: var(--club-text);
    font-size: 15px;
    line-height: 1.35;
}

.tariff-card__body ul,
.tariff-card__body ol {
    margin: 10px 0;
    padding-left: 20px;
}

.tariff-card__body li + li {
    margin-top: 7px;
}

.tariff-card__body strong {
    color: var(--club-text);
}

.tariff-card__body a {
    color: #9bc4ff;
    text-underline-offset: 3px;
}

.tariff-card__body blockquote {
    margin: 14px 0;
    padding: 10px 12px;
    border-left: 2px solid var(--club-blue);
    border-radius: 0 8px 8px 0;
    background: rgba(76, 143, 248, 0.06);
}

.tariff-card__footer {
    display: grid;
    gap: 11px;
    margin-top: auto;
    padding-top: 4px;
}

.tariff-card__checkout-form {
    display: grid;
    gap: 12px;
}

.tariff-card__agreement {
    display: grid;
    grid-template-columns: 17px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
    color: var(--club-muted);
    font-size: 12px;
    line-height: 1.45;
    cursor: pointer;
}

.tariff-card__agreement input {
    width: 16px;
    height: 16px;
    margin: 1px 0 0;
    accent-color: var(--club-blue);
}

.tariff-card__agreement a {
    color: #9bc4ff;
    text-underline-offset: 2px;
}

.tariff-card__button {
    width: 100%;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 0 18px;
    border: 1px solid var(--club-line-strong);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.055));
    color: #f8fafc;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 12px 26px rgba(0, 0, 0, 0.2);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    position: relative;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform 160ms ease,
        border-color 160ms ease,
        filter 160ms ease,
        box-shadow 160ms ease;
}

.tariff-card--premium .tariff-card__button,
.tariff-card--public .tariff-card__button {
    border-color: rgba(106, 162, 247, 0.38);
    background: linear-gradient(180deg, #4b91fb, var(--club-blue-strong));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 15px 32px rgba(36, 102, 204, 0.25);
}

.tariff-card__button--ghost {
    background: rgba(255, 255, 255, 0.045);
    box-shadow: none;
}

.tariff-card__button-arrow {
    flex: 0 0 auto;
    font-size: 19px;
    font-weight: 400;
    line-height: 1;
    transition: transform 160ms ease;
    position: absolute;
    right: 18px;
}

@media (hover: hover) {
    .tariff-card__button:hover {
        transform: translateY(-1px);
        border-color: rgba(134, 177, 240, 0.38);
        filter: brightness(1.045);
    }

    .tariff-card__button:hover .tariff-card__button-arrow {
        transform: translateX(3px);
    }
}

.tariff-card__button:active {
    transform: translateY(0);
}

.tariff-card__button:focus-visible,
.tariff-card__agreement input:focus-visible,
.tariff-card__body a:focus-visible,
.tariff-card__agreement a:focus-visible {
    outline: 2px solid rgba(126, 177, 255, 0.92);
    outline-offset: 3px;
}

.tariff-card__button-note {
    margin: 0;
    padding: 0 8px;
    color: #7f8da0;
    font-size: 11px;
    line-height: 1.45;
    text-align: center;
}

.premium-empty {
    grid-column: 1 / -1;
    padding: 26px;
    border: 1px solid var(--club-line);
    border-radius: 20px;
    background: var(--club-card);
    color: var(--club-soft);
    text-align: center;
}

/* Page shown while club enrollment is closed. */
.club-waitlist-page {
    padding-bottom: 80px;
}

.club-waitlist-hero {
    margin-bottom: 28px;
}

.club-waitlist-layout {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 24px;
    align-items: start;
}

.club-waitlist-section {
    display: grid;
    gap: 14px;
    padding: 24px;
    border: 1px solid var(--club-line);
    border-radius: 22px;
    background: var(--club-card);
    box-shadow: var(--club-shadow);
}

.club-waitlist-section h2 {
    margin: 0;
    color: var(--club-text);
    font-size: 24px;
}

.club-waitlist-section p {
    margin: 0;
    color: var(--club-muted);
    line-height: 1.7;
}

.club-waitlist-embed {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
}

.club-waitlist-embed iframe,
.club-waitlist-embed-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.club-waitlist-embed-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: var(--club-muted);
    text-align: center;
}

.club-waitlist-link {
    display: inline-flex;
    width: fit-content;
    color: #8dbbff;
    font-weight: 600;
    text-decoration: none;
}

.club-waitlist-link:hover {
    color: #b5d3ff;
}

.club-waitlist-form {
    display: grid;
    gap: 14px;
}

.club-waitlist-field {
    display: grid;
    gap: 8px;
}

.club-waitlist-field label {
    color: var(--club-soft);
    font-size: 14px;
    font-weight: 600;
}

.club-waitlist-field input,
.club-waitlist-field textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--club-line);
    border-radius: 14px;
    outline: none;
    background: rgba(255, 255, 255, 0.035);
    color: var(--club-text);
    font: inherit;
}

.club-waitlist-field textarea {
    min-height: 132px;
    resize: vertical;
}

.club-waitlist-field input::placeholder,
.club-waitlist-field textarea::placeholder {
    color: #768396;
}

.club-waitlist-field input:focus,
.club-waitlist-field textarea:focus {
    border-color: rgba(90, 151, 244, 0.55);
    box-shadow: 0 0 0 3px rgba(76, 143, 248, 0.1);
}

.club-waitlist-submit {
    width: 100%;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 6px;
    padding: 0 18px;
    border: 1px solid rgba(106, 162, 247, 0.38);
    border-radius: 14px;
    background: linear-gradient(180deg, #4b91fb, var(--club-blue-strong));
    color: #fff;
    box-shadow: 0 15px 32px rgba(36, 102, 204, 0.25);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 160ms ease, filter 160ms ease;
}

.club-waitlist-submit:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
}

.club-waitlist-submit:active {
    transform: translateY(0);
}

.club-waitlist-submit:focus-visible {
    outline: 2px solid rgba(143, 188, 255, 0.8);
    outline-offset: 3px;
}

.club-waitlist-success {
    padding: 14px 16px;
    border: 1px solid rgba(34, 197, 94, 0.24);
    border-radius: 14px;
    background: rgba(34, 197, 94, 0.12);
    color: #c8f3d6;
}

body[data-site-theme="white"] .premium-page {
    --club-text: #111827;
    --club-muted: #667085;
    --club-soft: #344054;
    --club-line: rgba(15, 23, 42, 0.1);
    --club-line-strong: rgba(15, 23, 42, 0.16);
    --club-card: #ffffff;
    --club-card-premium: #f6f9ff;
    --club-surface: rgba(15, 23, 42, 0.035);
    --club-blue-soft: #326fc9;
    --club-gold: #8a6712;
    --club-shadow: 0 22px 60px rgba(15, 23, 42, 0.09);
}

body[data-site-theme="white"] .premium-club-hero__eyebrow {
    border-color: rgba(47, 117, 232, 0.16);
    background: rgba(47, 117, 232, 0.06);
    color: #326fc9;
}

body[data-site-theme="white"] .tariff-card__surface {
    background:
        linear-gradient(180deg, rgba(47, 117, 232, 0.025), transparent 34%),
        var(--club-card);
}

body[data-site-theme="white"] .tariff-card--premium .tariff-card__surface {
    background:
        linear-gradient(180deg, rgba(47, 117, 232, 0.06), transparent 42%),
        var(--club-card-premium);
}

body[data-site-theme="white"] .tariff-card__feature {
    color: #344054;
}

body[data-site-theme="white"] .tariff-card__feature--muted,
body[data-site-theme="white"] .tariff-card__button-note {
    color: #7a8699;
}

body[data-site-theme="white"] .tariff-card__body {
    color: #475467;
}

body[data-site-theme="white"] .tariff-card__button:not(.tariff-card__button--ghost) {
    color: #fff;
}

body[data-site-theme="white"] .tariff-card__button--ghost {
    background: #f6f7f9;
    color: #1f2937;
}

body[data-site-theme="white"] .club-waitlist-field input,
body[data-site-theme="white"] .club-waitlist-field textarea {
    background: #fff;
}

@media (max-width: 1080px) {
    .premium-plans {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .club-waitlist-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .premium-page {
        margin-top: 54px;
        padding: 24px 14px 72px;
    }

    .premium-page::before {
        top: -120px;
        height: 360px;
    }

    .premium-hero {
        margin-bottom: 30px;
    }

    .premium-title {
        font-size: clamp(36px, 11vw, 48px);
        line-height: 1.02;
    }

    .premium-subtitle {
        margin-top: 16px;
        font-size: 15px;
    }

    .premium-plans {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .tariff-card__surface {
        gap: 20px;
        padding: 24px 20px;
        border-radius: 21px;
    }

    .tariff-card__headline h2 {
        font-size: 27px;
    }

    .tariff-card__price {
        font-size: 25px;
    }

    .club-waitlist-section {
        padding: 19px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tariff-card__surface,
    .tariff-card__button,
    .tariff-card__button-arrow,
    .club-waitlist-submit {
        transition: none;
    }
}

/* Club plans: the surrounding page and its background keep their existing design. */
.premium-plans {
    gap: 14px;
}

.premium-plans:has(> .tariff-card:nth-child(4)) {
    position: relative;
    left: 50%;
    width: min(1700px, calc(100vw - 64px));
    transform: translateX(-50%);
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.premium-plans:has(> .tariff-card:nth-child(5)) {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.tariff-card__surface {
    gap: 0;
    padding: 20px 21px 19px;
    border-color: rgba(91, 135, 191, 0.29);
    border-radius: 19px;
    background: linear-gradient(145deg, rgba(23, 59, 110, 0.37), transparent 53%), #0a1525;
    box-shadow: 0 19px 48px rgba(0, 0, 0, 0.26);
}

.tariff-card__surface::before {
    inset: 0 18px auto;
    background: linear-gradient(90deg, transparent, rgba(147, 196, 255, 0.26), transparent);
}

.tariff-card__surface::after {
    top: -120px;
    right: -115px;
    background: radial-gradient(circle, rgba(38, 118, 234, 0.18), transparent 70%);
}

.tariff-card--premium .tariff-card__surface {
    border-color: rgba(84, 148, 234, 0.42);
    background: linear-gradient(145deg, rgba(24, 78, 147, 0.37), transparent 58%), #0a1729;
    box-shadow: 0 19px 48px rgba(0, 0, 0, 0.26);
}

.tariff-card--basic .tariff-card__surface {
    border-color: rgba(111, 202, 150, 0.5);
    background: linear-gradient(155deg, rgba(43, 123, 87, 0.25), transparent 59%), #0b1a22;
    box-shadow: 0 19px 48px rgba(0, 0, 0, 0.26), inset 0 0 35px rgba(53, 157, 105, 0.045);
}

.tariff-card--basic .tariff-card__surface::after {
    background: radial-gradient(circle, rgba(59, 184, 110, 0.19), transparent 70%);
}

.tariff-card--featured .tariff-card__surface,
.tariff-card--premium.tariff-card--featured .tariff-card__surface {
    border-color: #dfbb61;
    background: linear-gradient(165deg, rgba(136, 101, 31, 0.12), transparent 53%), #10191f;
    box-shadow: 0 0 0 1px rgba(241, 207, 119, 0.15), 0 20px 52px rgba(0, 0, 0, 0.32), 0 0 32px rgba(227, 178, 76, 0.12);
}

.tariff-card--featured .tariff-card__surface::after {
    background: radial-gradient(circle, rgba(223, 180, 78, 0.19), transparent 70%);
}

.tariff-card__topline {
    min-height: 29px;
    margin-bottom: 18px;
}

.tariff-card__badge,
.tariff-card__accent {
    min-height: 28px;
    padding: 0 10px;
    font-size: 11px;
    letter-spacing: 0.015em;
    text-transform: none;
}

.tariff-card__badge {
    max-width: 55%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border-color: rgba(88, 158, 248, 0.36);
    background: rgba(19, 96, 205, 0.2);
    color: #c6e0ff;
}

.tariff-card--basic .tariff-card__badge {
    border-color: rgba(107, 203, 148, 0.41);
    background: rgba(53, 156, 99, 0.18);
    color: #c5f5d6;
}

.tariff-card__accent {
    font-weight: 800;
}

.tariff-card--featured .tariff-card__accent {
    border-color: rgba(246, 211, 118, 0.85);
    background: linear-gradient(180deg, #ffecad, #e3af38);
    color: #2d2107;
    box-shadow: 0 5px 17px rgba(229, 179, 62, 0.2);
}

.tariff-card__headline {
    display: block;
    padding-bottom: 0;
    border: 0;
}

.tariff-card__headline h2 {
    font-size: clamp(25px, 2vw, 32px);
    font-weight: 800;
    line-height: 1.05;
}

.tariff-card__subtitle {
    min-height: 4.8em;
    margin: 12px 0 0;
    font-size: 13px;
    line-height: 1.6;
}

.tariff-card__content {
    display: block;
    margin-top: 16px;
    padding-top: 17px;
    border-top: 1px solid rgba(170, 197, 230, 0.12);
}

.tariff-card__features {
    gap: 11px;
}

.tariff-card__feature {
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 9px;
    font-size: 13px;
    line-height: 1.43;
}

.tariff-card__feature-icon {
    width: 17px;
    height: 17px;
    margin-top: 1px;
    border-color: #58a0ff;
    border-radius: 6px;
    background: rgba(35, 108, 222, 0.11);
    font-size: 11px;
}

.tariff-card--basic .tariff-card__feature--check .tariff-card__feature-icon {
    border-color: #65c98f;
    background: rgba(57, 150, 96, 0.13);
    color: #9ae8af;
}

.tariff-card__body {
    margin-top: 17px;
    font-size: 13px;
}

.tariff-card__footer {
    gap: 10px;
    padding-top: 30px;
}

.tariff-card__price-line {
    gap: 8px;
    margin: 0;
}

.tariff-card__price {
    font-size: clamp(27px, 2.15vw, 34px);
    font-weight: 850;
}

.tariff-card--featured .tariff-card__price {
    color: #f0c45a;
}

.tariff-card__caption {
    font-size: 13px;
}

.tariff-card__button,
.tariff-card--premium .tariff-card__button,
.tariff-card--public .tariff-card__button {
    min-height: 48px;
    border-color: #438bf1;
    border-radius: 11px;
    background: linear-gradient(180deg, #378ff8, #0961dd);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.21), 0 12px 24px rgba(13, 86, 203, 0.22);
}

.tariff-card--basic .tariff-card__button {
    border-color: #4ba878;
    background: linear-gradient(180deg, #51b879, #237c52);
    box-shadow: 0 12px 24px rgba(24, 119, 65, 0.18);
}

.tariff-card--featured .tariff-card__button,
.tariff-card--premium.tariff-card--featured .tariff-card__button {
    border-color: #e7ba4a;
    background: linear-gradient(180deg, #ffebaa, #e3ae36);
    color: #271e0a;
    box-shadow: 0 12px 26px rgba(189, 133, 25, 0.22);
}

.tariff-card__button--ghost,
.tariff-card--basic .tariff-card__button--ghost,
.tariff-card--featured .tariff-card__button--ghost {
    border-color: rgba(131, 171, 224, 0.35);
    background: rgba(255, 255, 255, 0.07);
    color: #f8fafc;
    box-shadow: none;
}

.tariff-card__button-note {
    font-size: 11px;
}

body[data-site-theme="white"] .tariff-card__surface,
body[data-site-theme="white"] .tariff-card--premium .tariff-card__surface {
    background: linear-gradient(160deg, #edf5ff, #fff 58%);
}

body[data-site-theme="white"] .tariff-card--basic .tariff-card__surface {
    border-color: #8acba6;
    background: linear-gradient(160deg, #e7f8ee, #fff 58%);
}

body[data-site-theme="white"] .tariff-card--featured .tariff-card__surface {
    border-color: #cda54c;
    background: linear-gradient(160deg, #fff6dd, #fff 58%);
}

body[data-site-theme="white"] .tariff-card__badge {
    color: #1956a0;
}

body[data-site-theme="white"] .tariff-card--basic .tariff-card__badge {
    color: #226440;
}

body[data-site-theme="white"] .tariff-card__button:not(.tariff-card__button--ghost) {
    color: #fff;
}

body[data-site-theme="white"] .tariff-card--featured .tariff-card__button:not(.tariff-card__button--ghost) {
    color: #271e0a;
}

body[data-site-theme="white"] .tariff-card__button--ghost {
    color: #344054;
}

@media (max-width: 1350px) {
    .premium-plans:has(> .tariff-card:nth-child(4)) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1080px) {
    .premium-plans:has(> .tariff-card:nth-child(4)) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .premium-plans:has(> .tariff-card:nth-child(4)) {
        width: calc(100vw - 28px);
        grid-template-columns: 1fr;
    }

    .tariff-card__surface {
        padding: 23px 21px 20px;
    }

    .tariff-card__subtitle {
        min-height: 0;
    }
}

/* Optional per-tariff colors from the admin. Undefined variables keep the theme. */
.tariff-card[style*="--tariff-border:"] .tariff-card__surface {
    border-color: var(--tariff-border);
}

.tariff-card[style*="--tariff-background:"] .tariff-card__surface {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), transparent 65%), var(--tariff-background);
}

.tariff-card[style*="--tariff-text:"] .tariff-card__headline h2,
.tariff-card[style*="--tariff-text:"] .tariff-card__subtitle,
.tariff-card[style*="--tariff-text:"] .tariff-card__feature,
.tariff-card[style*="--tariff-text:"] .tariff-card__body,
.tariff-card[style*="--tariff-text:"] .tariff-card__body strong,
.tariff-card[style*="--tariff-text:"] .tariff-card__body h2,
.tariff-card[style*="--tariff-text:"] .tariff-card__body h3,
.tariff-card[style*="--tariff-text:"] .tariff-card__body h4,
.tariff-card[style*="--tariff-text:"] .tariff-card__price,
.tariff-card[style*="--tariff-text:"] .tariff-card__caption,
.tariff-card[style*="--tariff-text:"] .tariff-card__button-note {
    color: var(--tariff-text);
}

.tariff-card[style*="--tariff-button:"] .tariff-card__button:not(.tariff-card__button--ghost) {
    border-color: var(--tariff-button);
    background: var(--tariff-button);
}

.tariff-card[style*="--tariff-button-text:"] .tariff-card__button:not(.tariff-card__button--ghost) {
    color: var(--tariff-button-text);
}


.tariff-card__note-top {
    margin: 8px 0 0;
    color: #7f8da0;
    font-size: 11px;
    line-height: 1.45;
}

.tariff-card__footer .tariff-card__button-note {
    display: none;
}


.tariff-card--basic .tariff-card__button--ghost {
    background: linear-gradient(180deg, #3ecf8e, #1e8a5c);
    border-color: #2f9e6b;
    color: #ffffff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 15px 32px rgba(30, 138, 92, 0.28);
    backdrop-filter: none;
}

@media (hover: hover) {
    .tariff-card--basic .tariff-card__button--ghost:hover {
        transform: translateY(-1px);
        border-color: rgba(90, 200, 150, 0.5);
        filter: brightness(1.045);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.22),
            0 15px 32px rgba(30, 138, 92, 0.35);
    }
}