/* Paying us: the plans, Plan & billing, the checkout, the confirmation and
 * the states before it, the billing banner (the billing design, 23 October
 * 2026 — design/billing in the Claude Design hand-off).
 *
 * Its own file, for the reason the others are: shell.css is long enough that
 * a new class name in it is a collision waiting to happen. One prefix,
 * .xc-b, and every value the design's own: ink #15151C, primary #1C1CD2
 * (#2B2BE6 under the pointer), lavender #8F8FF7, page #F4F4F8, lines
 * #E6E6EE, success #0B7A6B on #DFF2EE, danger #A3261A on #FDECEC, warning
 * #9A5A08 on #FAEFD9. Poppins for headings, Hanken Grotesk for the rest,
 * JetBrains Mono for every price and number, IBM Plex Sans Arabic behind
 * each. 15px the smallest text a client reads; headings written lower case,
 * as the design writes them; one gradient on a screen — the glow behind
 * the featured plan — and never a gradient on a button, never WhatsApp
 * green. Logical properties only, so Arabic mirrors by itself; figures and
 * references are isolated (<bdi>, unicode-bidi) so they read the same both
 * ways. The layout follows the box it is in (container queries), so a
 * screen inside the app's panel and one on its own page fold alike, down to
 * 390px with nothing scrolling sideways.
 */

/* ── tokens ──────────────────────────────────────────────────────────── */

.xc-b {
    --b-ink: #15151C;
    --b-ink-2: #3A3A48;
    --b-ink-3: #55555F;
    --b-muted: #6B6B7B;
    --b-faint: #9A9AA8;
    --b-primary: #1C1CD2;
    --b-primary-hi: #2B2BE6;
    --b-lav: #8F8FF7;
    --b-tint: #ECEDFE;
    --b-sel: #F7F7FF;
    --b-page: #F4F4F8;
    --b-card: #FFFFFF;
    --b-soft: #F7F7FA;
    --b-hover: #FAFAFD;
    --b-line: #E6E6EE;
    --b-line-2: #ECECF2;
    --b-field: #DCDCE6;
    --b-ring: #E1E1EA;
    --b-dot: #C4C4D0;
    --b-dark: #0E0E22;
    --b-ok: #0B7A6B;
    --b-ok-bg: #DFF2EE;
    --b-ok-ink: #075A4F;
    --b-bad: #A3261A;
    --b-bad-bg: #FDECEC;
    --b-warn: #9A5A08;
    --b-warn-bg: #FAEFD9;
    --b-warn-ink: #7A4606;
    --b-grey-bg: #F1F1F4;
    --b-focus: 0 0 0 4px rgba(28, 28, 210, .12);
    --b-head: Poppins, 'IBM Plex Sans Arabic', sans-serif;
    --b-body: 'Hanken Grotesk', 'IBM Plex Sans Arabic', system-ui, sans-serif;
    --b-mono: 'JetBrains Mono', 'IBM Plex Sans Arabic', monospace;
    --b-ease: cubic-bezier(.2, .8, .2, 1);

    container-type: inline-size;
    container-name: xc-b;
    box-sizing: border-box;
    min-inline-size: 0;
    font-family: var(--b-body);
    font-size: 15px;
    line-height: 1.5;
    color: var(--b-ink);
}

/* The app's dark theme: the same page, on the app's own surfaces. */
[data-theme="dark"] .xc-b {
    --b-ink: #FFFFFF;
    --b-ink-2: rgba(255, 255, 255, .86);
    --b-ink-3: rgba(255, 255, 255, .76);
    --b-muted: rgba(255, 255, 255, .62);
    --b-faint: rgba(255, 255, 255, .42);
    --b-primary: #4B4BE6;
    --b-primary-hi: #6262F0;
    --b-tint: rgba(143, 143, 247, .16);
    --b-sel: rgba(143, 143, 247, .08);
    --b-page: var(--bg);
    --b-card: var(--surface);
    --b-soft: var(--surface-2);
    --b-hover: rgba(255, 255, 255, .03);
    --b-line: var(--line);
    --b-line-2: var(--line);
    --b-field: rgba(255, 255, 255, .18);
    --b-ring: rgba(255, 255, 255, .16);
    --b-dot: rgba(255, 255, 255, .3);
    --b-dark: #1B1B3A;
    --b-ok-bg: rgba(11, 122, 107, .22);
    --b-ok-ink: #7FD8C8;
    --b-bad-bg: rgba(163, 38, 26, .24);
    --b-warn-bg: rgba(154, 90, 8, .24);
    --b-warn-ink: #F2C27A;
    --b-grey-bg: rgba(255, 255, 255, .08);
}

.xc-b *,
.xc-b *::before,
.xc-b *::after { box-sizing: border-box; }

/* Resets at no weight (:where), so every component's own colour wins over them. */
:where(.xc-b) :where(button, input, select, textarea) { font: inherit; color: inherit; }

:where(.xc-b) a { color: var(--b-primary); text-decoration: none; }
:where(.xc-b) a:hover { color: var(--b-ink); }

/* Written lower case, as the design writes its headings: not the app's capital. */
.xc-b h1::first-letter,
.xc-b h2::first-letter,
.xc-b h3::first-letter { text-transform: none; }

[dir="rtl"] .xc-b * { letter-spacing: 0 !important; }
[dir="rtl"] .xc-b [data-flip] { transform: scaleX(-1); }

.xc-b-mono { font-family: var(--b-mono); font-feature-settings: "tnum" 1; }
.xc-b bdi,
.xc-b-num { unicode-bidi: isolate; }

.xc-b-sr {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* ── motion ──────────────────────────────────────────────────────────── */

@keyframes xb-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes xb-pop2 { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes xb-spin { to { transform: rotate(360deg); } }
@keyframes xb-draw { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } }
@keyframes xb-pop { 0% { opacity: 0; transform: scale(.6); } 60% { transform: scale(1.08); } 100% { opacity: 1; transform: none; } }
@keyframes xb-shake { 0%, 100% { transform: none; } 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@keyframes xb-ring { 0% { box-shadow: 0 0 0 0 rgba(11, 122, 107, .35); } 70% { box-shadow: 0 0 0 16px rgba(11, 122, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(11, 122, 107, 0); } }
@keyframes xb-breathe { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

.xc-b-in { animation: xb-up .5s var(--b-ease) both; }

@media (prefers-reduced-motion: reduce) {
    .xc-b *,
    .xc-b *::before,
    .xc-b *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ── type ────────────────────────────────────────────────────────────── */

.xc-b-h1 {
    margin: 0;
    font-family: var(--b-head);
    font-weight: 600;
    font-size: 34px;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.xc-b-h1--state { font-size: 30px; line-height: 1.2; }

.xc-b-lead { margin: 0; font-size: 16px; color: var(--b-muted); text-wrap: pretty; }

.xc-b-h2 {
    margin: 0;
    font-family: var(--b-head);
    font-weight: 600;
    font-size: 19px;
    letter-spacing: -0.01em;
}

.xc-b-head { display: flex; flex-direction: column; gap: 6px; max-inline-size: 560px; }

.xc-b-muted { color: var(--b-muted); }

/* ── buttons ─────────────────────────────────────────────────────────── */

.xc-b-btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    block-size: 48px;
    padding-inline: 18px;
    border: 0;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s, transform .2s;
}

.xc-b-btn:focus-visible { outline: 2px solid var(--b-lav); outline-offset: 3px; }

.xc-b a.xc-b-btn--primary,
.xc-b-btn--primary { background: var(--b-primary); color: #FFFFFF; }
.xc-b a.xc-b-btn--primary:hover,
.xc-b-btn--primary:hover { background: var(--b-primary-hi); color: #FFFFFF; transform: translateY(-1px); }

.xc-b a.xc-b-btn--ghost,
.xc-b-btn--ghost { background: var(--b-card); color: var(--b-ink); border: 1px solid var(--b-field); }
.xc-b a.xc-b-btn--ghost:hover,
.xc-b-btn--ghost:hover { border-color: var(--b-ink); color: var(--b-ink); }

.xc-b-btn--muted { background: transparent; color: var(--b-muted); border: 1px solid var(--b-ring); }
.xc-b-btn--muted:hover { color: var(--b-ink); border-color: var(--b-dot); }

.xc-b a.xc-b-btn--ink-line,
.xc-b-btn--ink-line { background: transparent; color: var(--b-ink); border: 1.5px solid var(--b-ink); }
.xc-b a.xc-b-btn--ink-line:hover,
.xc-b-btn--ink-line:hover { background: var(--b-ink); color: var(--b-card); }

.xc-b a.xc-b-btn--dark,
.xc-b-btn--dark { background: var(--b-ink); color: #FFFFFF; }
.xc-b a.xc-b-btn--dark:hover,
.xc-b-btn--dark:hover { background: #2A2A36; color: #FFFFFF; }

.xc-b-btn--block { inline-size: 100%; }
.xc-b-btn--lg { block-size: 50px; padding-inline: 22px; }
.xc-b-btn--md { block-size: 46px; }
.xc-b-btn--sm { block-size: 40px; padding-inline: 14px; border-radius: 10px; }
.xc-b-btn--xs { block-size: 38px; padding-inline: 10px; border-radius: 10px; gap: 6px; }

.xc-b-btn[disabled],
.xc-b-btn[aria-disabled="true"] { opacity: .4; cursor: not-allowed; transform: none; }

/* A link that reads as one: "Change", "Back to plans". */
.xc-b-link {
    appearance: none;
    border: 0;
    background: none;
    padding: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--b-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.xc-b-back {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-block: 6px;
    font-size: 15px;
    font-weight: 600;
}

.xc-b a.xc-b-back { color: var(--b-muted); }
.xc-b a.xc-b-back:hover { color: var(--b-ink); }

/* ── pills ───────────────────────────────────────────────────────────── */

.xc-b-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 1px 10px;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    background: var(--b-tint);
    color: var(--b-primary);
}

.xc-b-pill--ok { background: var(--b-ok-bg); color: var(--b-ok-ink); }
.xc-b-pill--warn { background: var(--b-warn-bg); color: var(--b-warn-ink); }
.xc-b-pill--grey { background: var(--b-grey-bg); color: var(--b-ink-3); }
.xc-b-pill--count { font-family: var(--b-mono); font-weight: 400; background: var(--b-page); color: var(--b-muted); padding: 0 10px; }

.xc-b-pill__dot { inline-size: 6px; block-size: 6px; border-radius: 50%; background: currentColor; }

/* ── cards ───────────────────────────────────────────────────────────── */

.xc-b-card {
    background: var(--b-card);
    border: 1px solid var(--b-line);
    border-radius: 22px;
    min-inline-size: 0;
}

.xc-b-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px;
    border-block-end: 1px solid var(--b-line-2);
}

.xc-b-notice {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--b-soft);
    color: var(--b-ink-2);
    font-size: 15px;
}

.xc-b-notice svg { flex: none; margin-block-start: 2px; }
.xc-b-notice[data-tone="bad"] { background: var(--b-bad-bg); color: var(--b-bad); }
.xc-b-notice[data-tone="warn"] { background: var(--b-warn-bg); color: var(--b-warn-ink); }
.xc-b-notice[data-tone="ok"] { background: var(--b-ok-bg); color: var(--b-ok-ink); }
.xc-b-notice strong { font-weight: 600; }

/* ── the plans ───────────────────────────────────────────────────────── */

.xc-b-plans { display: flex; flex-direction: column; gap: 28px; }

.xc-b-plans__top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

/* Monthly · Yearly — "save 20%": two radios, the ticked one dark. */
.xc-b-seg {
    display: flex;
    gap: 2px;
    padding: 4px;
    margin: 0;
    border: 1px solid var(--b-line);
    border-radius: 14px;
    background: var(--b-card);
    min-inline-size: 0;
}

.xc-b-seg label {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    color: var(--b-ink-3);
    cursor: pointer;
    transition: background .2s, color .2s;
}

.xc-b-seg input { position: absolute; opacity: 0; inline-size: 1px; block-size: 1px; pointer-events: none; }
.xc-b-seg label:has(input:checked) { background: var(--b-ink); color: var(--b-card); }
.xc-b-seg label:has(input:focus-visible) { outline: 2px solid var(--b-lav); outline-offset: 2px; }

.xc-b-seg__save {
    border-radius: 999px;
    padding: 1px 9px;
    font-size: 15px;
    font-weight: 600;
    background: var(--b-ok-bg);
    color: var(--b-ok-ink);
}

.xc-b-seg label:has(input:checked) .xc-b-seg__save { background: rgba(255, 255, 255, .16); color: inherit; }

.xc-b-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.xc-b-grid[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.xc-b-grid[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.xc-b-grid[data-count="1"] { grid-template-columns: minmax(0, 420px); }

.xc-b-plan {
    --p-fg: var(--b-ink);
    --p-sub: var(--b-muted);
    --p-line: var(--b-line-2);
    --p-metrics: var(--b-soft);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 26px 24px;
    border-radius: 24px;
    background: var(--b-card);
    color: var(--p-fg);
    border: 1px solid var(--b-line);
    box-shadow: 0 1px 2px rgba(14, 14, 40, .04);
    min-inline-size: 0;
    transition: transform .3s var(--b-ease);
}

.xc-b-plan:hover { transform: translateY(-4px); }

.xc-b-plan[data-current] {
    border-color: var(--b-primary);
    box-shadow: 0 0 0 1px var(--b-primary), 0 20px 40px -28px rgba(28, 28, 210, .45);
}

/* The featured plan: dark, and the one gradient on the screen behind it. */
.xc-b-plan[data-featured] {
    --p-fg: #FFFFFF;
    --p-sub: rgba(255, 255, 255, .72);
    --p-line: rgba(255, 255, 255, .12);
    --p-metrics: rgba(255, 255, 255, .06);
    background: #0E0E22;
    border-color: #0E0E22;
    box-shadow: 0 30px 60px -30px rgba(14, 14, 34, .6);
}

.xc-b-plan[data-featured]::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset-inline-end: -160px;
    inset-block-start: -190px;
    inline-size: 400px;
    block-size: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(28, 28, 210, .7), rgba(28, 28, 210, 0) 66%);
    pointer-events: none;
}

.xc-b-plan__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-block-size: 30px; }

.xc-b-plan__name {
    margin: 0;
    font-family: var(--b-head);
    font-weight: 600;
    font-size: 21px;
    letter-spacing: -0.015em;
}

.xc-b-plan__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 3px 11px;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    background: rgba(143, 143, 247, .2);
    color: #D4D4FF;
}

.xc-b-plan__badge[data-badge="current"] { background: var(--b-tint); color: var(--b-primary); }
.xc-b-plan[data-featured] .xc-b-plan__badge[data-badge="current"] { background: rgba(255, 255, 255, .14); color: #FFFFFF; }
.xc-b-plan:not([data-featured]) .xc-b-plan__badge[data-badge="featured"] { background: var(--b-tint); color: var(--b-primary); }

.xc-b-plan__desc { margin: -14px 0 0; font-size: 15px; line-height: 1.5; color: var(--p-sub); text-wrap: pretty; }

.xc-b-plan__price { display: flex; flex-direction: column; gap: 2px; min-block-size: 96px; }
.xc-b-plan__figure { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin: 0; }

.xc-b-plan__amount {
    font-family: var(--b-mono);
    font-weight: 500;
    font-size: 38px;
    line-height: 1.1;
    letter-spacing: -0.05em;
    unicode-bidi: isolate;
    direction: ltr;
}

.xc-b-plan__cur { font-family: var(--b-mono); font-size: 15px; font-weight: 500; }
.xc-b-plan__strike { font-family: var(--b-mono); font-size: 15px; color: var(--p-sub); text-decoration: line-through; unicode-bidi: isolate; direction: ltr; }
.xc-b-plan__per { font-size: 15px; color: var(--p-sub); }
.xc-b-plan__per strong { font-family: var(--b-mono); font-weight: 500; color: var(--p-fg); unicode-bidi: isolate; }

.xc-b-plan__custom {
    font-family: var(--b-head);
    font-weight: 600;
    font-size: 34px;
    line-height: 1.25;
    letter-spacing: -0.03em;
}

/* By the month, or by the year: only the period the toggle has ticked. */
.xc-b-plans:has(input[name="period"][value="monthly"]:checked) [data-when="yearly"],
.xc-b-plans:has(input[name="period"][value="yearly"]:checked) [data-when="monthly"] { display: none; }

@supports not selector(:has(*)) {
    .xc-b-plans [data-when="yearly"] { display: none; }
}

.xc-b-plan__metrics { display: flex; flex-direction: column; margin: 0; padding: 2px 14px; border-radius: 14px; background: var(--p-metrics); }
.xc-b-plan__metric { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-block: 8px; border-block-start: 1px solid var(--p-line); }
.xc-b-plan__metric:first-child { border-block-start: 0; }
.xc-b-plan__metric dt { font-size: 15px; color: var(--p-sub); }
.xc-b-plan__metric dd { margin: 0; font-family: var(--b-mono); font-size: 15px; font-weight: 500; white-space: nowrap; unicode-bidi: isolate; }

.xc-b-plan__act { display: flex; flex-direction: column; gap: 8px; }
.xc-b-plan__act .xc-b-btn { inline-size: 100%; }

/* The plan in force: said, in words, where the other cards have a button (26 October 2026) — nothing that looks pressable. */
.xc-b-plan__mine {
    margin: 0;
    min-block-size: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    color: var(--p-fg);
}

.xc-b-plan__note { margin: 0; font-size: 15px; color: var(--p-sub); text-align: center; }

.xc-b-plan__feats {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin: 0;
    padding: 20px 0 0;
    list-style: none;
    border-block-start: 1px solid var(--p-line);
}

.xc-b-plan__feats li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; }

.xc-b-check {
    flex: none;
    inline-size: 20px;
    block-size: 20px;
    margin-block-start: 1px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--b-tint);
    color: var(--b-primary);
}

.xc-b-plan[data-featured] .xc-b-check { background: rgba(143, 143, 247, .4); color: #FFFFFF; }

/* "Prices in MAD · Billing country: Morocco · Change" */
.xc-b-country {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px 10px;
    margin: 0;
    font-size: 15px;
    color: var(--b-muted);
}

.xc-b-country strong { font-weight: 600; color: var(--b-ink); }

.xc-b-menu { position: relative; display: inline-flex; }
.xc-b-menu > summary { list-style: none; cursor: pointer; }
.xc-b-menu > summary::-webkit-details-marker { display: none; }
.xc-b-menu > summary:focus-visible { outline: 2px solid var(--b-lav); outline-offset: 3px; border-radius: 4px; }

.xc-b-menu__panel {
    position: absolute;
    z-index: 41;
    inset-block-end: calc(100% + 10px);
    inset-inline-end: -16px;
    inline-size: 300px;
    max-inline-size: calc(100vw - 32px);
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    background: var(--b-card);
    border: 1px solid var(--b-line);
    border-radius: 16px;
    box-shadow: 0 24px 48px -16px rgba(14, 14, 40, .28);
    animation: xb-pop2 .2s ease both;
    text-align: start;
}

.xc-b-menu__panel .xc-b-select { block-size: 44px; }

/* "Need more AI credits?" */
.xc-b-need {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 18px 20px;
    background: var(--b-card);
    border: 1px solid var(--b-line);
    border-radius: 18px;
}

.xc-b-need__icon {
    flex: none;
    inline-size: 44px;
    block-size: 44px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--b-tint);
    color: var(--b-primary);
}

.xc-b-need__say { flex: 1; min-inline-size: 200px; display: flex; flex-direction: column; gap: 2px; }
.xc-b-need__say strong { font-weight: 600; font-size: 16px; }
.xc-b-need__say span { color: var(--b-muted); }
.xc-b-need .xc-b-btn--ghost { border-color: var(--b-field); }

/* A plan asked about, a change waiting for the renewal: a quiet line under the cards. */
.xc-b-asked {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 14px 18px;
    border-radius: 16px;
    background: var(--b-tint);
    color: var(--b-ink);
}

.xc-b-asked > span { flex: 1; min-inline-size: 200px; }
.xc-b-asked strong { font-weight: 600; }

/* ── Plan & billing ──────────────────────────────────────────────────── */

.xc-b-bill { display: flex; flex-direction: column; gap: 22px; }

.xc-b-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }

.xc-b-kpi {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px;
    background: var(--b-card);
    border: 1px solid var(--b-line);
    border-radius: 20px;
    min-inline-size: 0;
}

.xc-b-kpi__label { font-size: 15px; font-weight: 500; color: var(--b-muted); }
.xc-b-kpi__value { font-size: 23px; letter-spacing: -0.02em; line-height: 1.3; overflow-wrap: anywhere; }
.xc-b-kpi__value--plan { font-family: var(--b-head); font-weight: 600; }
.xc-b-kpi__value--date { font-family: var(--b-mono); font-weight: 500; }
.xc-b-kpi__sub { font-size: 15px; color: var(--b-muted); }

.xc-b-kpi--act {
    justify-content: center;
    gap: 10px;
    padding: 18px;
    background: #0E0E22;
    border-color: #0E0E22;
}

.xc-b-kpi--act .xc-b-btn { inline-size: 100%; block-size: 46px; }
.xc-b-kpi--act .xc-b-btn--on-dark { background: rgba(255, 255, 255, .06); color: #FFFFFF; border: 1px solid rgba(255, 255, 255, .18); }
.xc-b-kpi--act .xc-b-btn--on-dark:hover { background: rgba(255, 255, 255, .14); color: #FFFFFF; }

/* Billing details: read, and edited in place. */
.xc-b-details[data-editing] .xc-b-details__read,
.xc-b-details:not([data-editing]) .xc-b-details__edit,
.xc-b-details:not([data-editing]) [data-details-save],
.xc-b-details[data-editing] [data-details-start] { display: none; }

.xc-b-dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 32px;
    margin: 0;
    padding: 20px 22px 24px;
}

.xc-b-dl > div { display: flex; flex-direction: column; gap: 3px; min-inline-size: 0; }
.xc-b-dl dt { font-size: 15px; color: var(--b-muted); }
.xc-b-dl dd { margin: 0; font-size: 15px; font-weight: 500; white-space: pre-line; overflow-wrap: anywhere; }

.xc-b-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* The history: a table at width, stacked rows on a phone. */
.xc-b-hist { overflow: hidden; }
.xc-b-hist__head { display: flex; align-items: center; gap: 10px; padding: 18px 22px; }

.xc-b-row {
    display: grid;
    grid-template-columns: 120px minmax(0, 1.7fr) minmax(0, 1.2fr) 130px 118px 150px 72px;
    gap: 16px;
    align-items: center;
    padding: 14px 22px;
    border-block-start: 1px solid var(--b-line-2);
    transition: background .15s;
}

.xc-b-row:hover { background: var(--b-hover); }

.xc-b-row--head {
    padding-block: 10px;
    background: var(--b-soft);
    border-block: 1px solid var(--b-line-2);
    font-size: 15px;
    font-weight: 600;
    color: var(--b-muted);
}

.xc-b-row--head:hover { background: var(--b-soft); }

.xc-b-row__date { font-family: var(--b-mono); font-size: 15px; }
.xc-b-row__what { display: flex; flex-direction: column; gap: 1px; min-inline-size: 0; }
.xc-b-row__what strong { font-weight: 600; }
.xc-b-row__what > span { font-size: 15px; color: var(--b-muted); }
.xc-b-row__phone { display: none; align-items: center; gap: 8px; flex-wrap: wrap; margin-block-start: 4px; font-size: 15px; color: var(--b-muted); }
.xc-b-row__method { display: flex; align-items: center; gap: 8px; min-inline-size: 0; color: var(--b-ink); }
.xc-b-row__method svg { flex: none; color: var(--b-muted); }
.xc-b-row__method span { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xc-b-row__amount { font-family: var(--b-mono); font-weight: 500; text-align: end; white-space: nowrap; }
.xc-b-row__number { font-family: var(--b-mono); font-size: 15px; unicode-bidi: isolate; }
.xc-b-row__number:empty::before { content: "—"; color: var(--b-faint); }
.xc-b-row__pdf { justify-self: end; }
.xc-b-row .xc-b-btn--xs { border: 1px solid var(--b-ring); background: var(--b-card); color: var(--b-ink); }
.xc-b-row .xc-b-btn--xs:hover { border-color: var(--b-ink); }

.xc-b-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 56px 24px 64px;
    border-block-start: 1px solid var(--b-line-2);
    text-align: center;
    animation: xb-up .4s ease both;
}

.xc-b-empty__icon {
    inline-size: 64px;
    block-size: 64px;
    margin-block-end: 6px;
    border-radius: 20px;
    border: 1.5px dashed var(--b-dot);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--b-muted);
}

.xc-b-empty h3 { margin: 0; font-family: var(--b-head); font-weight: 600; font-size: 19px; }
.xc-b-empty p { margin: 0; max-inline-size: 340px; color: var(--b-muted); text-wrap: pretty; }

/* ── fields ──────────────────────────────────────────────────────────── */

.xc-b-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.xc-b-fields--pad { padding: 20px 22px 24px; animation: xb-up .3s ease both; }

.xc-b-field { display: flex; flex-direction: column; gap: 7px; min-inline-size: 0; }
.xc-b-field--wide { grid-column: 1 / -1; }
.xc-b-field__label { font-size: 15px; font-weight: 600; }
.xc-b-field__hint { font-size: 15px; color: var(--b-muted); }
.xc-b-field__err { font-size: 15px; font-weight: 500; color: var(--b-bad); }

.xc-b-input,
.xc-b-select {
    block-size: 48px;
    inline-size: 100%;
    padding-inline: 14px;
    border-radius: 12px;
    border: 1px solid var(--b-field);
    background: var(--b-card);
    font-size: 15px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.xc-b-input--mono { font-family: var(--b-mono); }

.xc-b-input:focus,
.xc-b-select:focus { border-color: var(--b-primary); box-shadow: var(--b-focus); }

.xc-b-input[aria-invalid="true"],
.xc-b-select[aria-invalid="true"] { border-color: var(--b-bad); }

.xc-b-select {
    appearance: none;
    -webkit-appearance: none;
    padding-inline-end: 40px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B6B7B' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

[dir="rtl"] .xc-b-select { background-position: left 14px center; }

/* "Save for next time": a box of the design's own, on a real checkbox. */
.xc-b-tick { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; font-size: 15px; font-weight: 500; cursor: pointer; }
.xc-b-tick input { position: absolute; opacity: 0; inline-size: 1px; block-size: 1px; }

.xc-b-tick__box {
    flex: none;
    inline-size: 22px;
    block-size: 22px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--b-card);
    box-shadow: inset 0 0 0 1.5px var(--b-dot);
    color: #FFFFFF;
    transition: background .15s;
}

.xc-b-tick__box svg { opacity: 0; }
.xc-b-tick input:checked + .xc-b-tick__box { background: var(--b-primary); box-shadow: none; }
.xc-b-tick input:checked + .xc-b-tick__box svg { opacity: 1; }
.xc-b-tick input:focus-visible + .xc-b-tick__box { outline: 2px solid var(--b-lav); outline-offset: 2px; }

/* ── the checkout ────────────────────────────────────────────────────── */

.xc-b-co { display: flex; flex-direction: column; gap: 18px; }

.xc-b-co__title { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.xc-b-balance {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    border-radius: 999px;
    padding: 6px 14px;
    background: var(--b-warn-bg);
    color: var(--b-warn-ink);
    font-size: 15px;
    font-weight: 600;
}

.xc-b-balance__dot { inline-size: 7px; block-size: 7px; border-radius: 50%; background: var(--b-warn); }
.xc-b-balance bdi { font-family: var(--b-mono); }

.xc-b-co__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    margin-block-start: 6px;
}

.xc-b-co__main { display: flex; flex-direction: column; gap: 16px; min-inline-size: 0; }

.xc-b-sec { display: flex; flex-direction: column; gap: 18px; padding: 24px; margin: 0; }
.xc-b-sec__title { display: flex; align-items: center; gap: 12px; }

.xc-b-step {
    flex: none;
    inline-size: 30px;
    block-size: 30px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--b-ink);
    color: var(--b-card);
    font-family: var(--b-mono);
    font-size: 15px;
}

/* A radio card: a pack of credits, or an amount of one's own. */
.xc-b-packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; border: 0; min-inline-size: 0; }

.xc-b-choice {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 16px;
    border-radius: 16px;
    background: var(--b-card);
    box-shadow: inset 0 0 0 1px var(--b-ring);
    text-align: start;
    cursor: pointer;
    transition: box-shadow .2s, background .2s;
}

.xc-b-choice > input { position: absolute; opacity: 0; inline-size: 1px; block-size: 1px; pointer-events: none; }
.xc-b-choice:has(> input:checked) { background: var(--b-sel); box-shadow: inset 0 0 0 2px var(--b-primary); }
.xc-b-choice:has(> input:focus-visible) { outline: 2px solid var(--b-lav); outline-offset: 2px; }

.xc-b-radio {
    flex: none;
    inline-size: 20px;
    block-size: 20px;
    border-radius: 50%;
    background: #FFFFFF;
    box-shadow: inset 0 0 0 1.5px var(--b-dot);
    transition: box-shadow .2s;
}

.xc-b-choice:has(> input:checked) .xc-b-radio { box-shadow: inset 0 0 0 6px var(--b-primary); }

.xc-b-choice__top { display: flex; justify-content: space-between; align-items: center; gap: 6px; min-block-size: 24px; margin-block-end: 8px; }
.xc-b-choice__credits { font-family: var(--b-mono); font-size: 24px; font-weight: 500; letter-spacing: -0.03em; unicode-bidi: isolate; }
.xc-b-choice__price { margin-block-start: 10px; font-family: var(--b-mono); font-size: 16px; font-weight: 500; }
.xc-b-choice > span:not([class]) { font-size: 15px; color: var(--b-muted); }
.xc-b-choice__rate { font-size: 15px; color: var(--b-muted); }

/* How to pay: two radio cards, the card and the bank transfer, each with its icon and one line. */
/* Side by side where each has room for its line; one under the other in a narrow column. */
.xc-b-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 10px; margin: 0; padding: 0; border: 0; min-inline-size: 0; }
.xc-b-methods[data-count="1"] { grid-template-columns: minmax(0, 1fr); }
.xc-b-method { flex-direction: row; align-items: center; gap: 14px; }
.xc-b-method__icon {
    flex: none;
    inline-size: 44px;
    block-size: 44px;
    border-radius: 12px;
    background: var(--b-soft);
    color: var(--b-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, color .2s;
}
.xc-b-choice:has(> input:checked) .xc-b-method__icon { background: var(--b-card); color: var(--b-primary); }
.xc-b-method__say { flex: 1; min-inline-size: 0; display: flex; flex-direction: column; gap: 2px; }
.xc-b-method__say strong { font-size: 16px; font-weight: 600; }
.xc-b-method__say span { font-size: 14px; color: var(--b-muted); text-wrap: pretty; }
.xc-b-method .xc-b-radio { align-self: flex-start; }
/* What belongs to one way of paying, while the other is chosen: gone, whatever display it has. */
[data-method-for][hidden] { display: none !important; }

.xc-b-own { gap: 12px; cursor: default; }
.xc-b-own__pick { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; cursor: pointer; align-self: flex-start; }
.xc-b-own__row { display: flex; gap: 12px 16px; align-items: center; flex-wrap: wrap; }

.xc-b-own__row .xc-b-input {
    flex: 1;
    min-inline-size: 180px;
    block-size: 50px;
    font-family: var(--b-mono);
    font-size: 18px;
}

.xc-b-own__price { display: flex; flex-direction: column; min-inline-size: 150px; }
.xc-b-own__price strong { font-family: var(--b-mono); font-size: 19px; font-weight: 500; animation: xb-pop2 .2s ease both; }
.xc-b-own__price span { font-size: 15px; color: var(--b-muted); }
.xc-b-own__price [data-own-hint][data-wrong] { color: var(--b-bad); }

/* The order's summary, beside the form and sticky; under it on a phone. */
.xc-b-sum {
    position: sticky;
    inset-block-start: 24px;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 1px 2px rgba(14, 14, 40, .04), 0 30px 60px -36px rgba(14, 14, 40, .25);
}

.xc-b-sum__part { padding: 18px 24px; border-block-start: 1px solid var(--b-line-2); display: flex; flex-direction: column; gap: 12px; }
.xc-b-sum__part:first-child { padding-block: 22px; gap: 16px; border-block-start: 0; }
.xc-b-sum__part:empty { display: none; }
.xc-b-sum__item { display: flex; gap: 14px; align-items: flex-start; }

.xc-b-sum__icon {
    flex: none;
    inline-size: 46px;
    block-size: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0E0E22;
}

.xc-b-sum__what { flex: 1; min-inline-size: 0; display: flex; flex-direction: column; gap: 3px; }
.xc-b-sum__name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.xc-b-sum__name strong { font-weight: 600; font-size: 17px; }
.xc-b-sum__period { font-family: var(--b-mono); font-size: 15px; color: var(--b-muted); }
.xc-b-sum__note { font-size: 15px; color: var(--b-muted); }

.xc-b-sum__line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; }
.xc-b-sum__line > span:first-child { color: var(--b-muted); }
.xc-b-sum__line > span:last-child { font-family: var(--b-mono); white-space: nowrap; }

.xc-b-sum__total { flex-direction: row; align-items: baseline; justify-content: space-between; }
.xc-b-sum__total > span { font-weight: 600; font-size: 17px; }

.xc-b-sum__total > strong {
    font-family: var(--b-mono);
    font-size: 26px;
    font-weight: 500;
    letter-spacing: -0.03em;
    white-space: nowrap;
    animation: xb-pop2 .25s ease both;
}

.xc-b-sum__foot { padding: 0 24px 24px; display: flex; flex-direction: column; gap: 14px; }
.xc-b-sum__renews { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--b-muted); }

.xc-b-pay {
    appearance: none;
    border: 0;
    inline-size: 100%;
    block-size: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    background: var(--b-primary);
    color: #FFFFFF;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s, transform .2s, opacity .2s;
}

.xc-b a.xc-b-pay { color: #FFFFFF; }
.xc-b-pay:hover { background: var(--b-primary-hi); transform: translateY(-1px); color: #FFFFFF; }
.xc-b-pay:focus-visible { outline: 2px solid var(--b-lav); outline-offset: 3px; }
.xc-b-pay[aria-busy="true"] { cursor: progress; transform: none; }
.xc-b-pay[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.xc-b-pay:disabled, .xc-b-pay:disabled:hover { opacity: .5; cursor: not-allowed; transform: none; background: var(--b-primary); }

/* The service agreement: one line under the button, in place of "By paying, you agree…", the box before it. */
.xc-b-agree { display: flex; align-items: flex-start; justify-content: center; gap: 9px; margin: 0; font-size: 15px; line-height: 1.45; color: var(--b-muted); text-align: start; text-wrap: pretty; cursor: pointer; }
.xc-b-agree input { inline-size: 17px; block-size: 17px; margin: 2px 0 0; flex: none; accent-color: var(--b-primary); cursor: pointer; }
.xc-b-agree a { color: var(--b-primary); }
.xc-b-pay__spin { display: none; animation: xb-spin .8s linear infinite; }
.xc-b-pay[aria-busy="true"] .xc-b-pay__spin { display: block; }
.xc-b-co[data-shake] .xc-b-pay { animation: xb-shake .42s ease; }

.xc-b-fine { margin: 0; font-size: 15px; color: var(--b-muted); text-align: center; text-wrap: pretty; }
.xc-b-secure { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--b-muted); flex-wrap: wrap; }
.xc-b-secure svg { flex: none; color: var(--b-ok); }

.xc-b-cards { display: inline-flex; gap: 6px; direction: ltr; }

.xc-b-cards span {
    inline-size: 46px;
    block-size: 30px;
    border-radius: 6px;
    background: #FFFFFF;
    box-shadow: inset 0 0 0 1px #E1E1EA;
    display: flex;
    align-items: center;
    justify-content: center;
}

.xc-b-cards__visa { font-family: Poppins, sans-serif; font-style: italic; font-weight: 700; font-size: 15px; letter-spacing: -0.02em; color: #1A1F71; }
.xc-b-cards__mc i { inline-size: 17px; block-size: 17px; border-radius: 50%; background: #EB001B; }
.xc-b-cards__mc i + i { background: #F79E1B; margin-inline-start: -7px; mix-blend-mode: multiply; }

/* Renewal: the other plans and periods it may be for. */
.xc-b-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.xc-b-choices a { display: inline-flex; align-items: center; block-size: 40px; padding-inline: 14px; border-radius: 10px; border: 1px solid var(--b-field); background: var(--b-card); font-size: 15px; font-weight: 600; color: var(--b-ink); }
.xc-b-choices a:hover { border-color: var(--b-ink); color: var(--b-ink); }
.xc-b-choices a[aria-current="true"] { border-color: var(--b-primary); background: var(--b-sel); color: var(--b-primary); }

/* ── the page on its own: the checkout, and what follows it ──────────── */

/* The window scrolls here: the app's shell, which holds its own scrolling, is not on this page. */
html:has(.xc-b-focus),
html:has(.xc-b-focus) body { block-size: auto; min-block-size: 100%; overflow-y: auto; background: var(--b-page, #F4F4F8); }

.xc-b-focus {
    min-block-size: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--b-page);
}

.xc-b-bar {
    block-size: 64px;
    flex: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-inline: 36px;
    background: var(--b-card);
    border-block-end: 1px solid var(--b-line);
}

.xc-b-bar__brand { display: flex; align-items: center; gap: 9px; color: var(--b-ink); }
.xc-b a.xc-b-bar__brand { color: var(--b-ink); }
.xc-b-bar__brand span { font-family: Poppins, sans-serif; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.xc-b-bar__secure { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--b-muted); }
.xc-b-bar__secure svg { color: var(--b-ok); }

.xc-b-focus__main {
    flex: 1;
    inline-size: 100%;
    max-inline-size: 1180px;
    margin-inline: auto;
    padding: 28px 36px 72px;
    min-inline-size: 0;
}

/* In the app's panel: Plan & billing, the plans. */
.xc-b-app { padding: 8px 4px 40px; display: flex; flex-direction: column; gap: 24px; }

/* ── the confirmation ────────────────────────────────────────────────── */

.xc-b-done { max-inline-size: 600px; margin-inline: auto; padding-block: 20px; display: flex; flex-direction: column; gap: 22px; }
.xc-b-done__top { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }

.xc-b-mark {
    inline-size: 80px;
    block-size: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--b-ok-bg);
    animation: xb-pop .6s cubic-bezier(.2, .9, .3, 1.3) both;
}

.xc-b-mark > span {
    inline-size: 54px;
    block-size: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--b-ok);
    color: #FFFFFF;
    animation: xb-ring 1.6s .6s ease-out 2;
}

.xc-b-mark path[data-draw] { stroke-dasharray: 24; animation: xb-draw .45s .35s ease-out both; }
.xc-b-mark--bad { background: var(--b-bad-bg); animation-duration: .5s; }
.xc-b-mark--bad > span { background: var(--b-bad); animation: none; }

.xc-b-done__card { overflow: hidden; }

.xc-b-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--b-ok-bg);
    color: var(--b-ok-ink);
    font-weight: 600;
    font-size: 15px;
}

.xc-b-strip__dot { flex: none; inline-size: 8px; block-size: 8px; border-radius: 50%; background: var(--b-ok); animation: xb-breathe 1.8s ease-in-out infinite; }

.xc-b-facts { margin: 0; }
.xc-b-facts > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 20px; border-block-start: 1px solid var(--b-line-2); font-size: 15px; }
.xc-b-facts dt { color: var(--b-muted); }
.xc-b-facts dd { margin: 0; font-weight: 600; text-align: end; overflow-wrap: anywhere; }
.xc-b-facts dd.xc-b-mono { font-weight: 600; }

.xc-b-row-acts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ── a payment's states: confirming, not completed, held ─────────────── */

.xc-b-state { max-inline-size: 620px; margin-inline: auto; padding-block: 20px; display: flex; flex-direction: column; gap: 20px; }

.xc-b-state__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding: 56px 28px 44px;
    border-radius: 24px;
}

.xc-b-state__card--fail { padding-block: 48px 32px; }

.xc-b-spinner { position: relative; inline-size: 88px; block-size: 88px; margin-block-end: 6px; }
.xc-b-spinner > svg:first-child { position: absolute; inset: 0; animation: xb-spin 1.1s linear infinite; }
.xc-b-spinner > svg:last-child { position: absolute; inset-block-start: 30px; inset-inline-start: 30px; }

.xc-b-state__sub { margin: 0; font-size: 16px; color: var(--b-ink-3); max-inline-size: 460px; text-wrap: pretty; }
.xc-b-state__card--fail .xc-b-state__sub { color: var(--b-ink-2); max-inline-size: 440px; }

.xc-b-amount {
    display: inline-flex;
    border-radius: 999px;
    padding: 7px 14px;
    background: var(--b-page);
    font-family: var(--b-mono);
    font-size: 15px;
    color: var(--b-ink-3);
}

.xc-b-state .xc-b-notice { inline-size: 100%; text-align: start; }

/* ── by transfer: what to send, where, with which reference ─────────── */

.xc-b-bt__icon {
    inline-size: 64px;
    block-size: 64px;
    border-radius: 20px;
    background: var(--b-dark);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: xb-pop .5s cubic-bezier(.2, .9, .3, 1.3) both;
}
.xc-b-bt__rows { overflow: hidden; }
.xc-b-bt__row { display: flex; align-items: center; gap: 12px; padding: 15px 20px; border-block-start: 1px solid var(--b-line-2); }
.xc-b-bt__row:first-child { border-block-start: 0; }
.xc-b-bt__row[data-bt-ref] { background: var(--b-sel); }
.xc-b-bt__say { flex: 1; min-inline-size: 0; display: flex; flex-direction: column; gap: 3px; }
.xc-b-bt__label { font-size: 14px; color: var(--b-muted); }
.xc-b-bt__value { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.xc-b-bt__value.xc-b-mono { font-family: var(--b-mono); font-weight: 500; }
.xc-b-bt__about { font-family: inherit; font-size: 14px; font-weight: 400; color: var(--b-muted); white-space: nowrap; }
.xc-b-bt__row[data-bt-ref] .xc-b-bt__value { color: var(--b-primary); font-size: 18px; }
.xc-b-bt__copy[data-copied] { border-color: var(--b-ok); color: var(--b-ok-ink); }

/* ── the billing banner: one at a time, above every screen ───────────── */

.xc-b-banner {
    --bn-bg: #FFF7E8;
    --bn-bd: #F1DCAE;
    --bn-fg: #15151C;
    --bn-ibg: #FBE6BC;
    --bn-ifg: #8A5300;
    --bn-btn: #15151C;
    --bn-btn-fg: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 12px 14px;
    border-radius: 16px;
    background: var(--bn-bg);
    border: 1px solid var(--bn-bd);
    color: var(--bn-fg);
    font-family: 'Hanken Grotesk', 'IBM Plex Sans Arabic', system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.45;
    animation: xb-pop2 .35s ease both;
    container-type: normal;
}

.xc-b-banner[data-tone="grace"] { --bn-bg: #FDEEEC; --bn-bd: #F3CBC4; --bn-ibg: #F9D5CE; --bn-ifg: #A3261A; --bn-btn: #A3261A; }
.xc-b-banner[data-tone="restricted"] { --bn-bg: #15151C; --bn-bd: #15151C; --bn-fg: #FFFFFF; --bn-ibg: rgba(255, 255, 255, .1); --bn-ifg: #FF8A7A; --bn-btn: #FFFFFF; --bn-btn-fg: #15151C; }
.xc-b-banner[data-tone="low"] { --bn-bg: #ECEDFE; --bn-bd: #D5D6FB; --bn-ibg: #D9DAFC; --bn-ifg: #1C1CD2; --bn-btn: #1C1CD2; }
.xc-b-banner[hidden] { display: none; }

.xc-b-banner__icon {
    flex: none;
    inline-size: 38px;
    block-size: 38px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bn-ibg);
    color: var(--bn-ifg);
}

.xc-b-banner__say { flex: 1; min-inline-size: 200px; }
.xc-b-banner__say strong { font-weight: 600; }
.xc-b-banner__acts { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }

.xc-b-banner__go {
    display: inline-flex;
    align-items: center;
    block-size: 40px;
    padding-inline: 16px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    background: var(--bn-btn);
    color: var(--bn-btn-fg);
    text-decoration: none;
    transition: transform .2s;
}

.xc-b-banner__go:hover { transform: translateY(-1px); color: var(--bn-btn-fg); }
.xc-b-banner__go:focus-visible,
.xc-b-banner__x:focus-visible { outline: 2px solid #8F8FF7; outline-offset: 2px; }

.xc-b-banner__x {
    appearance: none;
    border: 0;
    inline-size: 40px;
    block-size: 40px;
    border-radius: 10px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bn-fg);
    cursor: pointer;
}

.xc-b-banner__x:hover { background: rgba(14, 14, 40, .06); }

/* ── narrower boxes ──────────────────────────────────────────────────── */

@container xc-b (max-width: 1080px) {
    .xc-b-grid,
    .xc-b-grid[data-count="3"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .xc-b-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .xc-b-row { grid-template-columns: 110px minmax(0, 1.6fr) minmax(0, 1.2fr) 120px 112px 72px; }
    .xc-b-row > [data-col="invoice"] { display: none; }
}

@container xc-b (max-width: 760px) {
    .xc-b-h1 { font-size: 26px; }
    .xc-b-grid,
    .xc-b-grid[data-count],
    .xc-b-co__grid,
    .xc-b-fields,
    .xc-b-packs,
    .xc-b-methods,
    .xc-b-dl { grid-template-columns: minmax(0, 1fr); }
    .xc-b-field--wide { grid-column: auto; }
    .xc-b-sum { position: static; }
    .xc-b-plan,
    .xc-b-sec { padding: 20px; }
    .xc-b-kpi--act { grid-column: 1 / -1; }
    .xc-b-row { grid-template-columns: minmax(0, 1fr) auto auto; padding: 14px 16px; }
    .xc-b-row--head,
    .xc-b-row > [data-col="date"],
    .xc-b-row > [data-col="method"],
    .xc-b-row > [data-col="status"],
    .xc-b-row > [data-col="invoice"] { display: none; }
    .xc-b-row__phone { display: flex; }
    .xc-b-plans__top,
    .xc-b-row-acts,
    .xc-b-co__title { flex-direction: column; align-items: stretch; }
    .xc-b-row-acts .xc-b-btn { inline-size: 100%; }
    .xc-b-card__head,
    .xc-b-hist__head,
    .xc-b-dl,
    .xc-b-fields--pad { padding-inline: 16px; }
}

@container xc-b (max-width: 420px) {
    .xc-b-kpis { grid-template-columns: minmax(0, 1fr); }
}

/* The page on its own, by the window: its bar and its margins. */
@media (max-width: 760px) {
    .xc-b-bar { padding-inline: 16px; }
    .xc-b-bar__secure span { display: none; }
    .xc-b-focus__main { padding: 16px 16px 48px; }
}

/* Old browsers without container queries: the same, by the window. */
@supports not (container-type: inline-size) {
    @media (max-width: 760px) {
        .xc-b-grid,
        .xc-b-co__grid,
        .xc-b-fields,
        .xc-b-packs,
        .xc-b-dl,
        .xc-b-kpis { grid-template-columns: minmax(0, 1fr); }
        .xc-b-sum { position: static; }
    }
}

/* ── the plans' own screen (26 October 2026) ─────────────────────────────
 *
 * screens/plans, in layout/customer/overlay: over the whole app, after
 * ChatGPT's "Upgrade" screen. The whole page, not a box in the middle of
 * it (the owner, 26 October 2026): what is on it no wider than 1240px and
 * from the top, ✕ held at the top. "choose your plan" and one line,
 * Plans | Setup & onboarding, then four cards — on a laptop's screen (1366 ×
 * 768) all of each card, its button and its top features, without
 * scrolling: the cards here are the billing design's, drawn tighter. On a
 * phone they stack and scroll, and ✕ stays where it is.
 *
 * Its own prefix, .xc-plans. It was the Studio preview's (xc-pv), its
 * chat line (agent.css, modules/chat.js): every stylesheet is on every page,
 * so the screen's full-window rules landed on each line of the preview, and
 * the line's 88% width on the screen (26 October 2026).
 */

.xc-plans-body { margin: 0; background: #F4F4F8; }

.xc-plans {
    /* 0px on a laptop's window (1366 × 768: about 640px inside the browser), 1px from about 960px (1920 × 1080):
       what everything grows by (below). */
    --t: clamp(0px, calc((100vh - 640px) / 320), 1px);
    position: fixed;
    inset: 0;
    overflow-y: auto;
    /* A scrollbar, when there is one, takes the same room on both sides: what is on the page stays in the middle. */
    scrollbar-gutter: stable both-edges;
    overscroll-behavior: contain;
    background: #F4F4F8;
}

[data-theme="dark"] .xc-plans-body,
[data-theme="dark"] .xc-plans { background: var(--bg); }

.xc-plans [hidden] { display: none !important; }

/* The page itself, edge to edge; what is on it no wider than 1400px, in the middle of its width — and of its
   height, when there is room to spare (26 October 2026, after ChatGPT's plans page). Taller than the window,
   it starts at the top: the sheet grows, and nothing above the title is ever cut. */
.xc-plans__sheet {
    min-block-size: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding-block: 18px 28px;
    padding-inline: max(28px, calc((100% - 1400px) / 2));
    background: var(--b-page);
    outline: none;
}

/* ✕: fixed at the top, so it is there wherever the page is scrolled to — on a card going under it too. */
.xc-plans__close {
    position: fixed;
    z-index: 2;
    inset-block-start: 16px;
    inset-inline-end: 16px;
    inline-size: 40px;
    block-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #FFFFFF;
    box-shadow: 0 0 0 1px #E1E1EA, 0 2px 8px rgba(14, 14, 40, .08);
    color: #15151C;
    transition: background .2s;
}

.xc-plans__close:hover { background: #ECEDFE; color: #15151C; }
.xc-plans__close:focus-visible { outline: 2px solid #8F8FF7; outline-offset: 3px; }
[data-theme="dark"] .xc-plans__close { background: var(--surface); box-shadow: 0 0 0 1px rgba(255, 255, 255, .16); color: #FFFFFF; }
[data-theme="dark"] .xc-plans__close:hover { background: var(--surface-2); color: #FFFFFF; }

.xc-plans__head { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }

.xc-plans__title {
    margin: 0;
    font-family: var(--b-head);
    font-weight: 600;
    font-size: 26px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    outline: none;
}

.xc-plans__lead { margin: 0; max-inline-size: 640px; font-size: 15px; color: var(--b-muted); text-wrap: pretty; }

/* Plans | Setup & onboarding: a grey track, the one open on white — not the period's dark toggle under it. */
.xc-plans__tabs {
    display: inline-flex;
    gap: 2px;
    margin-block-start: 10px;
    padding: 4px;
    border-radius: 999px;
    background: var(--b-grey-bg);
    box-shadow: inset 0 0 0 1px var(--b-line);
}

.xc-plans__tab {
    padding: 6px 18px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    white-space: nowrap;
    color: var(--b-ink-3);
    transition: background .2s, color .2s;
}

.xc-plans__tab:hover { color: var(--b-ink); }
.xc-plans__tab[aria-selected="true"] { background: var(--b-card); color: var(--b-ink); box-shadow: 0 1px 3px rgba(14, 14, 40, .12); }
.xc-plans__tab:focus-visible { outline: 2px solid var(--b-lav); outline-offset: 2px; }

.xc-plans__panel { display: flex; flex-direction: column; gap: 14px; }
.xc-plans .xc-b-plans { gap: 14px; }

.xc-plans__periods { justify-content: center; align-items: center; gap: 12px 16px; }

/* No billing country yet: beside the period, small, with the way to set it. */
.xc-plans__nocountry {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 18px;
    background: var(--b-warn-bg);
    color: var(--b-warn-ink);
    font-size: 15px;
    line-height: 1.35;
    text-wrap: pretty;
}

.xc-plans__nocountry svg { flex: none; }
.xc-plans__nocountry a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.xc-plans__nocountry a:hover { color: inherit; }
.xc-plans .xc-b-seg label { padding: 5px 16px; }
.xc-plans .xc-b-notice { align-self: center; }

/* The cards, tighter than on a page: the same parts, less air. */
.xc-plans .xc-b-grid { gap: 14px; }
.xc-plans .xc-b-plan { gap: 12px; padding: 16px 16px 18px; border-radius: 20px; }
.xc-plans .xc-b-plan:hover { transform: none; }
.xc-plans .xc-b-plan__head { min-block-size: 28px; }
.xc-plans .xc-b-plan__name { font-size: 19px; }
.xc-plans .xc-b-plan__price { min-block-size: 58px; }
.xc-plans .xc-b-plans:has(input[name="period"][value="yearly"]:checked) .xc-b-plan__price { min-block-size: 80px; }
.xc-plans .xc-b-plan__amount { font-size: 32px; }

/* "Custom", "Free": a word where a figure would be, as large as the figures beside it. */
.xc-plans .xc-b-plan__custom { font-size: 32px; line-height: 1.1; }
.xc-plans .xc-plans__onrequest { font-size: 24px; line-height: 1.2; }
.xc-plans .xc-b-plan__metrics { padding: 0 10px; border-radius: 12px; }
.xc-plans .xc-b-plan__metric { padding-block: 4px; }
.xc-plans .xc-b-plan__metric dt { white-space: nowrap; }
.xc-plans .xc-b-plan__act .xc-b-btn { block-size: auto; min-block-size: 44px; padding-block: 8px; white-space: normal; text-align: center; }
.xc-plans .xc-b-plan__feats { gap: 6px; padding-block-start: 12px; }

/* Under the cards, one strip: the currency and the billing country, and more AI credits. On a phone the two
   are what they were, one under the other. */
.xc-plans__foot { display: contents; }

/* "See all features": under the cards, every feature against every plan, and the sizes. */
.xc-plans__all { display: block; }

.xc-plans__allopen {
    inline-size: fit-content;
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid var(--b-field);
    background: var(--b-card);
    font-size: 15px;
    font-weight: 600;
    color: var(--b-ink);
    list-style: none;
    cursor: pointer;
}

.xc-plans__allopen::-webkit-details-marker { display: none; }

.xc-plans__chev { flex: none; transition: transform .2s; }
.xc-plans__all[open] > .xc-plans__allopen .xc-plans__chev { transform: rotate(180deg); }
.xc-plans__allopen:hover { border-color: var(--b-ink); }
.xc-plans__allopen:focus-visible { outline: 2px solid var(--b-lav); outline-offset: 3px; }

.xc-plans__comparewrap {
    margin-block-start: 14px;
    overflow-x: auto;
    border: 1px solid var(--b-line);
    border-radius: 18px;
    background: var(--b-card);
}

.xc-plans__compare { inline-size: 100%; min-inline-size: 640px; border-collapse: collapse; font-size: 15px; }
.xc-plans__compare th,
.xc-plans__compare td { padding: 10px 14px; text-align: center; border-block-end: 1px solid var(--b-line-2); }
.xc-plans__compare thead th { font-family: var(--b-head); font-weight: 600; background: var(--b-soft); }
.xc-plans__compare th[scope="row"] { text-align: start; font-weight: 500; }
.xc-plans__compare td { font-family: var(--b-mono); font-weight: 500; unicode-bidi: isolate; }
.xc-plans__compare td[data-lacks] { color: var(--b-faint); }
.xc-plans__compare td .xc-b-check { margin-inline: auto; }
.xc-plans__compare tbody tr:last-child > * { border-block-end: 0; }

/* The sizes, inside the comparison: the app's table, at the screen's 15px. */
.xc-plans .xc-pb__sizes { margin-block-start: 14px; padding: 16px 18px; border-color: var(--b-line); border-radius: 18px; background: var(--b-card); }
.xc-plans .xc-pb__sizeshead strong,
.xc-plans .xc-pb__sizeshead span,
.xc-plans .xc-pb__sizetable,
.xc-plans .xc-pb__sizetable thead th,
.xc-plans .xc-seg label,
.xc-plans .xc-pb__sizetable small { font-size: 15px; }

.xc-plans__fine { font-size: 15px; }
.xc-plans .xc-b-fine + .xc-b-fine { margin-block-start: -10px; }

/* Setup and onboarding: a card each, as the plans are. */
.xc-plans__setup { display: flex; flex-direction: column; gap: 16px; }
/* A package's price, drawn as a plan's: "From" small before the figure. */
.xc-plans__from { font-size: 15px; font-weight: 500; color: var(--p-sub); }

.xc-plans__packstate {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 12px;
    border-radius: 12px;
    background: var(--b-grey-bg);
    font-size: 15px;
    line-height: 1.35;
}

.xc-plans__packstate strong { font-weight: 600; }
.xc-plans__packstate span { color: var(--b-muted); }
.xc-plans__packstate[data-setup-state="waiting"] { background: var(--b-warn-bg); color: var(--b-warn-ink); }
.xc-plans__packstate[data-setup-state="quoted"] { background: var(--b-tint); color: var(--b-primary); }
.xc-plans__packstate:is([data-setup-state="paid"], [data-setup-state="in_progress"], [data-setup-state="delivered"]) { background: var(--b-ok-bg); color: var(--b-ok-ink); }
.xc-plans .xc-plans__pack { gap: 10px; }
.xc-plans__pack .xc-b-plan__act form { display: flex; flex-direction: column; }

/* "See everything included": a package's lines after its first four, under them. */
.xc-plans__incl { margin-block-start: -4px; }

.xc-plans__inclopen {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding-inline-start: 30px;
    font-size: 15px;
    font-weight: 600;
    color: var(--b-primary);
    list-style: none;
    cursor: pointer;
}

.xc-plans__inclopen::-webkit-details-marker { display: none; }
.xc-plans__inclopen:hover { color: var(--b-ink); }
.xc-plans__inclopen:focus-visible { outline: 2px solid var(--b-lav); outline-offset: 3px; border-radius: 4px; }
.xc-plans__incl[open] > .xc-plans__inclopen .xc-plans__chev { transform: rotate(180deg); }
.xc-plans__inclrest { padding-block-start: 8px; border-block-start: 0; }

/* How long it takes, at the foot of the card whatever is open above it. */
.xc-plans__packtime { margin: auto 0 0; font-size: 15px; color: var(--p-sub); }

/* Bigger as the window is taller (26 October 2026): the whole screen — title, tabs, period, cards, "See all
   features", the strip under them — fits a 1366 × 768 laptop's window at the sizes where --t is 0, and grows
   to about 40px prices and more air by 1920 × 1080's. Each card is as tall as its content, all four as tall
   as the tallest; the page is centred in what is left (the sheet, above). */
@media (min-width: 641px) {
    .xc-plans__sheet { gap: calc(10px + var(--t) * 8); padding-block: calc(10px + var(--t) * 14) calc(12px + var(--t) * 16); }
    .xc-plans__title { font-size: calc(24px + var(--t) * 4); }
    .xc-plans__tabs { margin-block-start: calc(6px + var(--t) * 6); }
    .xc-plans__tab { padding-block: calc(4px + var(--t) * 3); }
    .xc-plans__panel,
    .xc-plans .xc-b-plans { gap: calc(10px + var(--t) * 8); }
    .xc-plans .xc-b-seg label { padding-block: calc(4px + var(--t) * 2); }
    .xc-plans .xc-b-grid { gap: 24px; }
    .xc-plans .xc-b-plan { gap: calc(8px + var(--t) * 10); padding: calc(12px + var(--t) * 14) calc(16px + var(--t) * 8) calc(12px + var(--t) * 16); border-radius: 22px; }
    .xc-plans .xc-plans__pack { gap: calc(8px + var(--t) * 8); }
    .xc-plans .xc-b-plan__head { min-block-size: 26px; }
    .xc-plans .xc-b-plan__name { font-size: calc(19px + var(--t) * 3); }
    .xc-plans .xc-b-plan__amount,
    .xc-plans .xc-b-plan__custom { font-size: calc(28px + var(--t) * 12); }
    .xc-plans .xc-plans__onrequest { font-size: calc(22px + var(--t) * 6); }
    .xc-plans .xc-b-plan__price { min-block-size: calc(52px + var(--t) * 16); }
    .xc-plans .xc-b-plans:has(input[name="period"][value="yearly"]:checked) .xc-b-plan__price { min-block-size: calc(74px + var(--t) * 18); }
    .xc-plans .xc-b-plan__metric { padding-block: calc(2px + var(--t) * 5); }
    .xc-plans .xc-b-plan__metric dt,
    .xc-plans .xc-b-plan__metric dd,
    .xc-plans .xc-b-plan__feats li { line-height: 1.35; }
    .xc-plans .xc-b-plan__act .xc-b-btn,
    .xc-plans .xc-b-plan__mine { min-block-size: calc(38px + var(--t) * 8); }
    .xc-plans .xc-b-plan__feats { gap: calc(4px + var(--t) * 8); padding-block-start: calc(8px + var(--t) * 10); }
    .xc-plans__allopen { padding-block: calc(5px + var(--t) * 3); }

    /* The strip: the billing line at its start, the credits at its end, on one line while they fit. */
    .xc-plans__foot {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 8px 24px;
        padding: calc(8px + var(--t) * 4) calc(10px + var(--t) * 4) calc(8px + var(--t) * 4) 20px;
        border: 1px solid var(--b-line);
        border-radius: 18px;
        background: var(--b-card);
    }

    .xc-plans__foot .xc-b-country { justify-content: flex-start; }
    .xc-plans__foot .xc-b-need { flex: 0 1 auto; gap: 12px; padding: 0; border: 0; border-radius: 0; background: none; }
    .xc-plans__foot .xc-b-need__icon { inline-size: 34px; block-size: 34px; border-radius: 10px; }
    .xc-plans__foot .xc-b-need__say { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 6px; }
    .xc-plans__foot .xc-b-btn--md { block-size: 40px; }
}

/* Wide enough for both on one line: the period beside the tabs, at the end of their row — the cards a row
   higher. Drawn there from the plans' own form, where it belongs (its radios go with "Choose"); only a row
   that has a period moves. */
@media (min-width: 1100px) {
    .xc-plans .xc-plans__periods:has(.xc-b-seg) {
        justify-content: flex-end;
        align-items: center;
        block-size: calc(36px + var(--t) * 6);
        margin-block-start: calc(-46px - var(--t) * 14);
        pointer-events: none;
    }

    .xc-plans .xc-plans__periods:has(.xc-b-seg) > * { pointer-events: auto; }

    /* The strip on one line: what does not fit wraps inside its part, not onto a line of its own. */
    .xc-plans__foot { flex-wrap: nowrap; }
    .xc-plans__foot > * { flex: 0 1 auto; min-inline-size: 0; }
}

/* Narrower windows: two cards a row comes from the box (the container rules above). A phone: the cards one
   under the other, room above the title for ✕. */
@media (max-width: 640px) {
    .xc-plans__sheet { padding: 64px 16px 28px; }
    .xc-plans__close { inset-block-start: 12px; inset-inline-end: 12px; }
    .xc-plans__title { font-size: 24px; }
    .xc-plans__tabs { inline-size: 100%; }
    .xc-plans__tab { flex: 1; padding-inline: 10px; text-align: center; }
    .xc-plans .xc-b-plan__price,
    .xc-plans .xc-b-plans:has(input[name="period"][value="yearly"]:checked) .xc-b-plan__price { min-block-size: 0; }
}

/* The rail's way to it (layout/partials/rail): the arrow and "Upgrade", lifted off the dark rail as the search is, beside where the plan stands. */
.xc-railup { display: flex; align-items: center; gap: 8px; min-inline-size: 0; padding-inline: 0 2px; }

.xc-railup__btn {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(var(--rail-ink), .12);
    box-shadow: inset 0 0 0 1px rgba(var(--rail-ink), .24);
    color: var(--rail-text);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s;
}

.xc-railup__btn:hover { background: rgba(var(--rail-ink), .2); color: var(--rail-text); }
.xc-railup__btn:focus-visible { outline: 2px solid #8F8FF7; outline-offset: 2px; }
.xc-railup .xc-planpill { min-inline-size: 0; color: color-mix(in srgb, rgb(var(--tint)) 40%, #FFFFFF); background: rgba(var(--tint), .26); box-shadow: inset 0 0 0 1px rgba(var(--tint), .42); }
