/* Sapyyn homepage. Identity from the original sapyyn.com (ultramarine, smile
   gold, referral red) with a calmer, more editorial layout. Scoped to .hx. */

.hx {
    --hx-ultra: #1b14b5;
    --hx-ultra-deep: #130d8c;
    --hx-midnight: #0e0a52;
    --hx-gold: #ffc940;
    --hx-gold-deep: #f2b100;
    --hx-red: #e0283e;
    --hx-red-deep: #c01b30;
    --hx-enamel: #f6f7fd;
    --hx-paper: #ffffff;
    --hx-haze: #d9dcf3;
    --hx-ink: #16133f;
    --hx-ink-soft: #4a4874;
    --hx-serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
    --hx-sans: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --hx-radius: 22px;

    margin-inline: calc(var(--bs-gutter-x, 1.5rem) * -0.5);
    background: var(--hx-enamel);
    color: var(--hx-ink);
    font-family: var(--hx-sans);
    font-size: 1.0625rem;
    line-height: 1.6;
    overflow-x: clip;
}

[data-theme="dark"] .hx {
    --hx-enamel: #0d0b2e;
    --hx-paper: #17143f;
    --hx-haze: #2c2866;
    --hx-ink: #eef0ff;
    --hx-ink-soft: #b5b8e3;
}

.hx h1, .hx h2, .hx h3 {
    font-family: var(--hx-serif);
    font-weight: 600;
    letter-spacing: -0.012em;
    color: inherit;
}
.hx h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1.1; margin: 0 0 1rem; max-width: 22ch; }
.hx h3 { font-size: 1.35rem; line-height: 1.2; margin: 0 0 .5rem; }
:where(.hx) p { margin: 0 0 1rem; }
.hx a { color: var(--hx-ultra); text-underline-offset: .2em; }
[data-theme="dark"] .hx a { color: #a9b0ff; }

.hx-wrap { width: min(1180px, 100% - 3rem); margin-inline: auto; position: relative; }
.hx-fine { font-size: .875rem; color: var(--hx-ink-soft); }

/* Buttons */
.hx-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 3rem; padding: .75rem 1.6rem; border-radius: 999px;
    font-family: var(--hx-sans); font-weight: 700; font-size: 1rem; line-height: 1;
    text-decoration: none; border: 2px solid transparent; cursor: pointer;
    transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.hx-btn:focus-visible { outline: 3px solid var(--hx-gold); outline-offset: 3px; }
.hx-btn--gold { background: var(--hx-gold); color: var(--hx-midnight) !important; box-shadow: 0 6px 0 var(--hx-gold-deep); }
.hx-btn--gold:hover { background: #ffd666; transform: translateY(-1px); }
.hx-btn--gold:active { transform: translateY(3px); box-shadow: 0 3px 0 var(--hx-gold-deep); }
.hx-btn--ghost { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.55); }
.hx-btn--ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.hx-btn--red { background: var(--hx-red); color: #fff !important; box-shadow: 0 6px 0 var(--hx-red-deep); }
.hx-btn--red:hover { background: #ea3a4f; transform: translateY(-1px); }
.hx-btn--red:active { transform: translateY(3px); box-shadow: 0 3px 0 var(--hx-red-deep); }
.hx-btn--line { background: transparent; color: var(--hx-ultra) !important; border-color: var(--hx-haze); }
.hx-btn--line:hover { border-color: var(--hx-ultra); }

/* Waves borrowed from the original site */
.hx-wave { display: block; width: 100%; height: 70px; position: absolute; left: 0; bottom: -1px; fill: var(--hx-enamel); }
.hx-wave--top { top: -1px; bottom: auto; }

/* Hero */
.hx-hero {
    position: relative; color: #fff; padding: 4.5rem 0 9rem;
    background:
        radial-gradient(60% 80% at 85% 20%, #3a2fe0 0%, transparent 60%),
        linear-gradient(160deg, var(--hx-ultra) 0%, var(--hx-ultra-deep) 100%);
}
.hx-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3.5rem; align-items: center; }
.hx-hero-lede { font-weight: 600; color: var(--hx-gold); margin-bottom: 1.1rem; }
.hx-hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); line-height: 1.02; margin: 0 0 1.4rem; max-width: 14ch; font-weight: 600; }
.hx-hero-sub { font-size: 1.2rem; line-height: 1.55; color: rgba(255,255,255,.86); max-width: 46ch; margin-bottom: 2rem; }
.hx-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hx-hero-fine { margin-top: 1.25rem; font-size: .92rem; color: rgba(255,255,255,.7); }
.hx-cross { position: absolute; fill: rgba(255,255,255,.12); pointer-events: none; }
.hx-cross--a { width: 70px; top: 3rem; left: 46%; }
.hx-cross--b { width: 38px; bottom: 7.5rem; left: 8%; }

/* Phone conversation */
.hx-phone { margin: 0; justify-self: center; width: min(380px, 100%); }
.hx-phone-body {
    background: #fff; color: #1d1a3d; border-radius: 40px; padding: 1.1rem 1rem 1.4rem;
    border: 10px solid #0b0840; box-shadow: 0 40px 80px -30px rgba(5, 2, 60, .7), 0 0 0 1px rgba(255,255,255,.08);
}
.hx-phone-head { display: flex; align-items: center; gap: .65rem; padding: .3rem .4rem .9rem; border-bottom: 1px solid #ececf6; margin-bottom: .9rem; }
.hx-phone-head strong { display: block; font-size: .98rem; }
.hx-phone-head span { font-size: .78rem; color: #6b6a8c; }
.hx-phone-avatar { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--hx-ultra); color: #fff; font-family: var(--hx-serif); font-weight: 700; }
.hx-thread { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; font-size: .9rem; line-height: 1.4; }
.hx-thread li { max-width: 84%; padding: .55rem .8rem; border-radius: 18px; }
.hx-thread .me { align-self: flex-end; background: var(--hx-ultra); color: #fff; border-bottom-right-radius: 6px; font-weight: 600; }
.hx-thread .bot { align-self: flex-start; background: #eef0fb; border-bottom-left-radius: 6px; }
.hx-thread .hx-done { background: #e6f6ec; color: #135e33; font-weight: 600; }
.hx-thread.is-playing li { opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .35s ease; }
.hx-thread.is-playing li.is-in { opacity: 1; transform: none; }
.hx-phone figcaption { text-align: center; font-size: .78rem; color: rgba(255,255,255,.6); margin-top: .9rem; }

/* Quick Referral */
.hx-quick { position: relative; margin-top: -6rem; z-index: 2; }
.hx-quick-card {
    display: grid; grid-template-columns: 1.1fr .9fr; overflow: hidden;
    background: var(--hx-paper); border-radius: var(--hx-radius);
    box-shadow: 0 30px 60px -35px rgba(14, 10, 82, .45); border: 1px solid var(--hx-haze);
}
.hx-quick-copy { padding: 3rem 3.2rem; }
.hx-quick h2 { color: var(--hx-red); font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 700; margin-bottom: .6rem; }
.hx-quick-copy > p { color: var(--hx-ink-soft); max-width: 40ch; }
.hx-code { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin: 1.6rem 0 1.2rem; }
.hx-code fieldset { border: 0; margin: 0; padding: 0; }
.hx-code-boxes { display: flex; gap: .55rem; }
.hx-code-boxes input {
    width: 3.3rem; height: 4rem; text-align: center; font: 600 1.7rem var(--hx-serif);
    color: var(--hx-ink); background: var(--hx-enamel); border: 2px solid var(--hx-haze); border-radius: 14px;
    caret-color: var(--hx-red);
}
.hx-code-boxes input:focus { outline: none; border-color: var(--hx-red); background: var(--hx-paper); box-shadow: 0 0 0 4px rgba(224, 40, 62, .14); }
.hx-code .hx-btn--red { min-height: 4rem; padding-inline: 2rem; border-radius: 14px; }
.hx-quick-help { font-size: .92rem; color: var(--hx-ink-soft); margin: 0; }
.hx-quick-photo { position: relative; min-height: 100%; }
.hx-quick-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Four ways */
.hx-ways { position: relative; background: var(--hx-ultra); color: #fff; padding: 8rem 0 9rem; margin-top: 5rem; }
.hx-ways h2 { color: #fff; margin-bottom: 3rem; }
.hx-ways-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem; }
.hx-ways article { text-align: left; }
.hx-ways h3 { color: #fff; font-size: 1.3rem; }
.hx-ways p { color: rgba(255,255,255,.78); font-size: 1rem; }
.hx-medal {
    display: grid; place-items: center; width: 5.5rem; height: 5.5rem; border-radius: 50%;
    background: rgba(255,255,255,.08); border: 3px solid var(--hx-gold); margin-bottom: 1.4rem;
}
.hx-medal svg { width: 2.3rem; height: 2.3rem; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Steps */
.hx-steps { padding: 6rem 0; }
.hx-steps-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 4rem; align-items: start; }
.hx-steps-intro p { color: var(--hx-ink-soft); max-width: 42ch; }
.hx-line { font-weight: 600; color: var(--hx-ink) !important; }
.hx-line a { font-family: var(--hx-serif); font-size: 1.6rem; display: block; text-decoration: none; }
.hx-steps-list { list-style: none; counter-reset: hx; margin: 0; padding: 0; border-left: 3px solid var(--hx-haze); }
.hx-steps-list li { counter-increment: hx; position: relative; padding: 0 0 2rem 2.6rem; }
.hx-steps-list li:last-child { padding-bottom: 0; }
.hx-steps-list li::before {
    content: counter(hx); position: absolute; left: -1.15rem; top: -.1rem;
    width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%;
    background: var(--hx-gold); color: var(--hx-midnight); font: 700 1rem var(--hx-serif);
}
.hx-steps-list li:last-child::before { background: var(--hx-red); color: #fff; }
.hx-steps-list strong { display: block; font-size: 1.15rem; margin-bottom: .2rem; }
.hx-steps-list span { color: var(--hx-ink-soft); }

/* Roles */
.hx-roles { padding: 2rem 0 6rem; }
.hx-roles h2 { max-width: 26ch; margin-bottom: 2.5rem; }
.hx-roles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.hx-roles article { background: var(--hx-paper); border-radius: var(--hx-radius); overflow: hidden; border: 1px solid var(--hx-haze); display: flex; flex-direction: column; }
.hx-roles article > img { width: 100%; height: 220px; object-fit: cover; object-position: center 25%; }
.hx-roles article > div:last-child { padding: 1.5rem 1.6rem 1.8rem; }
.hx-roles p { color: var(--hx-ink-soft); font-size: 1rem; }
.hx-roles a { font-weight: 700; }
.hx-smile { height: 220px; display: grid; place-items: center; background: var(--hx-gold); color: var(--hx-midnight); }
.hx-smile svg { width: 45%; }

/* Trust */
.hx-trust { background: var(--hx-paper); border-block: 1px solid var(--hx-haze); padding: 4rem 0; }
.hx-trust-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: start; }
.hx-trust h2 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); margin: 0; }
.hx-trust ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .9rem; }
.hx-trust li { padding-left: 1.6rem; position: relative; color: var(--hx-ink-soft); }
.hx-trust li::before { content: ""; position: absolute; left: 0; top: .55em; width: .65rem; height: .65rem; border-radius: 50%; background: var(--hx-ultra); }
.hx-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2.5rem; }
.hx-metrics div { display: flex; flex-direction: column; }
.hx-metrics strong { font: 600 2.2rem var(--hx-serif); color: var(--hx-ultra); }

/* Pricing */
.hx-pricing { padding: 6rem 0; }
.hx-pricing-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 2rem; }
.hx-pricing-head h2 { margin: 0; }
.hx-pricing-head a { font-weight: 700; }
.hx-pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; margin-bottom: 1.5rem; }
.hx-pricing article { background: var(--hx-paper); border: 1px solid var(--hx-haze); border-radius: var(--hx-radius); padding: 2rem; display: flex; flex-direction: column; }
.hx-pricing article.is-featured { background: var(--hx-ultra); color: #fff; border-color: var(--hx-ultra); }
.hx-pricing h3 { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: 1.5rem; }
.hx-pricing h3 span { font: 700 .78rem var(--hx-sans); background: var(--hx-gold); color: var(--hx-midnight); padding: .3rem .65rem; border-radius: 999px; }
.hx-aud { color: var(--hx-ink-soft); font-size: .95rem; }
.hx-price { margin: .4rem 0 0 !important; }
.hx-price strong { font: 600 3rem var(--hx-serif); }
.hx-annual { font-size: .88rem; color: var(--hx-ink-soft); }
.hx-pricing ul { list-style: none; padding: 0; margin: 1rem 0 1.6rem; display: grid; gap: .55rem; font-size: .98rem; }
.hx-pricing li { padding-left: 1.5rem; position: relative; }
.hx-pricing li::before { content: ""; position: absolute; left: 0; top: .45em; width: .8rem; height: .45rem; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); color: var(--hx-ultra); }
.hx-pricing .is-featured li::before { color: var(--hx-gold); }
.hx-pricing .is-featured .hx-aud, .hx-pricing .is-featured .hx-annual { color: rgba(255,255,255,.75); }
.hx-pricing article .hx-btn { margin-top: auto; }
[data-theme="dark"] .hx-pricing article.is-featured { background: #2a21d6; }

/* Join */
.hx-join { padding: 0 0 5rem; }
.hx-join-form {
    background: var(--hx-midnight); color: #fff; border-radius: var(--hx-radius);
    padding: 2.4rem 2.6rem; display: grid; grid-template-columns: 1fr auto; gap: 1.2rem 2rem; align-items: center;
}
.hx-join-form h2 { color: #fff; font-size: 1.8rem; margin: 0; max-width: none; }
.hx-join-roles { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.1rem; align-items: center; }
.hx-join-roles legend { float: left; width: auto; margin: 0 .4rem 0 0; font-size: 1rem; font-weight: 600; color: rgba(255,255,255,.75); }
.hx-join-roles label { display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; }
.hx-join-roles input { accent-color: var(--hx-gold); width: 1.05rem; height: 1.05rem; }
.hx-join-fields { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.3fr auto; gap: .8rem; }
.hx-join-fields input {
    min-height: 3rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.08); color: #fff; padding: 0 1.2rem; font: inherit;
}
.hx-join-fields input::placeholder { color: rgba(255,255,255,.6); }
.hx-join-fields input:focus { outline: 2px solid var(--hx-gold); outline-offset: 1px; }
.hx-mission { text-align: center; margin-top: 2.5rem; font: 500 1.4rem var(--hx-serif); color: var(--hx-ink-soft); }

/* Responsive */
@media (max-width: 991.98px) {
    .hx-hero { padding: 3rem 0 8rem; }
    .hx-hero-grid, .hx-quick-card, .hx-steps-grid, .hx-trust-grid { grid-template-columns: 1fr; }
    .hx-hero-grid { gap: 2.5rem; }
    .hx-quick-photo { min-height: 220px; order: -1; }
    .hx-ways-grid, .hx-metrics { grid-template-columns: repeat(2, 1fr); }
    .hx-roles-grid, .hx-pricing-grid { grid-template-columns: 1fr; }
    .hx-join-form { grid-template-columns: 1fr; }
    .hx-join-fields { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
    .hx-wrap { width: calc(100% - 2rem); }
    .hx-quick-copy { padding: 2rem 1.4rem; }
    .hx-code-boxes { gap: .4rem; }
    .hx-code-boxes input { width: calc((100vw - 7.2rem) / 6); max-width: 3.3rem; height: 3.5rem; font-size: 1.45rem; }
    .hx-code .hx-btn--red { width: 100%; min-height: 3.4rem; }
    .hx-ways { padding: 6rem 0 7rem; }
    .hx-ways-grid { grid-template-columns: 1fr; gap: 2rem; }
    .hx-join-form { padding: 2rem 1.4rem; }
    .hx-metrics { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .hx-btn, .hx-thread li { transition: none !important; }
}

/* Quick Referral landing */
.hx-qr-hero { padding: 4rem 0 8rem; }
.hx-qr-hero h1 { max-width: 20ch; font-size: clamp(2.4rem, 4.6vw, 3.8rem); }
.hx-qr .hx-quick { padding-bottom: 5rem; }
.hx-qr-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.hx-qr-panel { background: var(--hx-paper); border: 1px solid var(--hx-haze); border-radius: var(--hx-radius); padding: 2.4rem; box-shadow: 0 30px 60px -40px rgba(14,10,82,.45); }
.hx-qr-panel h2 { font-size: 1.9rem; }
.hx-qr-panel p { color: var(--hx-ink-soft); }
.hx-qr-note { margin-top: 1.5rem; text-align: center; }
@media (max-width: 767.98px) { .hx-qr-choices { grid-template-columns: 1fr; } .hx-qr-panel { padding: 1.8rem 1.4rem; } }

/* Referring-dentist QR form */
.hx-rf-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 1.25rem; align-items: start; }
.hx-rf-office dl { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; margin: 0 0 1rem; }
.hx-rf-office dt { font-weight: 600; color: var(--hx-ink-soft); font-size: .92rem; }
.hx-rf-office dd { margin: 0; }
.hx-rf-form .form-label { font-weight: 600; font-size: .95rem; }
.hx-rf-form .form-control, .hx-rf-form .form-select { min-height: 2.9rem; border-radius: 12px; }
.hx-reasons { display: flex; flex-wrap: wrap; gap: .5rem; }
.hx-reasons label { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .8rem; border: 1px solid var(--hx-haze); border-radius: 999px; cursor: pointer; font-size: .95rem; }
.hx-reasons label:has(input:checked) { border-color: var(--hx-ultra); background: rgba(27, 20, 181, .07); }
.hx-reasons input { accent-color: var(--hx-ultra); }
.hx-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 991.98px) { .hx-rf-grid { grid-template-columns: 1fr; } }

/* Hero email sign-up */
.hx-signup { display: flex; gap: .5rem; max-width: 520px; padding: .4rem; background: #fff; border-radius: 999px; box-shadow: 0 20px 40px -20px rgba(5,2,60,.6); }
.hx-signup input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 1.1rem; font: 500 1.02rem var(--hx-sans); color: #16133f; }
.hx-signup input:focus { outline: none; }
.hx-signup:focus-within { box-shadow: 0 0 0 3px var(--hx-gold), 0 20px 40px -20px rgba(5,2,60,.6); }
.hx-signup .hx-btn { box-shadow: none; }
.hx-hero-fine a { color: #fff; font-weight: 600; }
@media (max-width: 575.98px) {
    .hx-signup { flex-direction: column; border-radius: 20px; padding: .6rem; }
    .hx-signup input { min-height: 3rem; }
}
@media (max-width: 767.98px) { .hx-cross { display: none; } }
.hx-qr-panel h2 { color: var(--hx-ink); font-weight: 600; }

/* Sign-in, sign-up and account recovery pages share the homepage identity. */
.hx-auth { min-height: calc(100vh - 140px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.hx-auth-side {
    background: var(--hx-ultra);
    background-image: radial-gradient(120% 80% at 0% 100%, var(--hx-ultra-deep) 0%, transparent 60%),
                      radial-gradient(60% 50% at 100% 0%, rgba(255, 201, 64, .18) 0%, transparent 70%);
    color: #fff;
    padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4.5rem);
    display: flex; flex-direction: column; justify-content: center;
}
.hx-auth-side h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.05; margin: 0 0 1rem; max-width: 14ch; }
.hx-auth-side p { color: rgba(255, 255, 255, .82); max-width: 38ch; }
.hx-auth-side .hx-auth-points { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .75rem; }
.hx-auth-side .hx-auth-points li { display: flex; gap: .75rem; align-items: flex-start; color: rgba(255, 255, 255, .9); }
.hx-auth-side .hx-auth-points i { color: var(--hx-gold); font-size: 1.15rem; line-height: 1.4; }
.hx-auth-main { display: flex; align-items: center; justify-content: center; padding: clamp(2rem, 5vw, 4rem) 1rem; }
.hx-auth-card {
    width: min(440px, 100%);
    background: var(--hx-paper);
    border: 1px solid var(--hx-haze);
    border-radius: var(--hx-radius);
    padding: clamp(1.75rem, 4vw, 2.75rem);
    box-shadow: 0 24px 60px -32px rgba(14, 10, 82, .35);
}
.hx-auth-card--wide { width: min(620px, 100%); }
.hx-auth-card h2 { font-size: 2rem; margin-bottom: .35rem; }
.hx-auth-card .hx-auth-sub { color: var(--hx-ink-soft); margin-bottom: 1.75rem; }
.hx-auth-card .form-label { font-weight: 600; font-size: .95rem; color: var(--hx-ink); }
.hx-auth-card .form-control {
    border-radius: 12px; border: 1.5px solid var(--hx-haze); padding: .75rem .95rem; font-size: 1rem;
    background: var(--hx-paper); color: var(--hx-ink);
}
.hx-auth-card .form-control:focus { border-color: var(--hx-ultra); box-shadow: 0 0 0 4px rgba(27, 20, 181, .14); }
.hx-auth-card .hx-code-input { font-size: 1.6rem; letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; }
.hx-auth-card .hx-btn { width: 100%; justify-content: center; }
.hx-auth-card .hx-auth-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: .95rem; }
.hx-auth-card .hx-auth-alt { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--hx-haze); text-align: center; font-size: .95rem; }
.hx-auth-card .hx-pw-wrap { position: relative; }
.hx-auth-card .hx-pw-toggle {
    position: absolute; right: .5rem; top: 50%; transform: translateY(-50%);
    background: none; border: 0; color: var(--hx-ink-soft); padding: .35rem .5rem; border-radius: 8px;
}
.hx-auth-card .hx-pw-toggle:focus-visible { outline: 3px solid var(--hx-gold); }
.hx-auth-or { display: flex; align-items: center; gap: .75rem; color: var(--hx-ink-soft); font-size: .875rem; margin: 1.25rem 0; }
.hx-auth-or::before, .hx-auth-or::after { content: ""; flex: 1; height: 1px; background: var(--hx-haze); }
.hx-auth .alert { border-radius: 12px; }
@media (max-width: 899.98px) {
    .hx-auth { grid-template-columns: 1fr; min-height: 0; }
    .hx-auth-side { padding-block: 2.25rem; }
    .hx-auth-side h1 { font-size: 2rem; }
    .hx-auth-side .hx-auth-points { display: none; }
}

/* Account security page */
.hx-sec { padding: clamp(2rem, 5vw, 3.5rem) 0 4rem; }
.hx-sec h1 { font-size: clamp(2rem, 3.6vw, 2.8rem); margin-bottom: .35rem; }
.hx-sec-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); margin-top: 2rem; }
.hx-sec-card { background: var(--hx-paper); border: 1px solid var(--hx-haze); border-radius: var(--hx-radius); padding: 1.75rem; }
.hx-sec-card h2 { font-size: 1.5rem; margin-bottom: .35rem; max-width: none; }
.hx-sec-state { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .9rem; border-radius: 999px; padding: .25rem .75rem; margin-bottom: 1rem; }
.hx-sec-state--on { background: #e3f6ea; color: #0f6b35; }
.hx-sec-state--off { background: #fdebed; color: #a3162a; }
[data-theme="dark"] .hx-sec-state--on { background: #123d27; color: #9ef0bf; }
[data-theme="dark"] .hx-sec-state--off { background: #4a1420; color: #ffb3bf; }
.hx-sec-card .form-control { border-radius: 12px; border: 1.5px solid var(--hx-haze); background: var(--hx-paper); color: var(--hx-ink); }
.hx-codes { columns: 2; list-style: none; padding: 1rem 1.25rem; margin: 0 0 1rem; background: var(--hx-enamel); border-radius: 14px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1rem; }
.hx-codes li { padding: .2rem 0; }
.hx-qr-setup { display: flex; gap: 1.25rem; align-items: flex-start; flex-wrap: wrap; margin: 1rem 0; }
.hx-qr-setup img { width: 168px; height: 168px; border-radius: 12px; border: 1px solid var(--hx-haze); background: #fff; padding: 8px; }
.hx-key { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; font-size: .9rem; background: var(--hx-enamel); padding: .5rem .75rem; border-radius: 10px; display: inline-block; }
.hx-passkeys { list-style: none; padding: 0; margin: 0 0 1rem; }
.hx-passkeys li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--hx-haze); }
.hx-passkeys li:last-child { border-bottom: 0; }
.hx-sec-card .hx-btn { padding-block: .6rem; }
.hx-btn--ultra { background: var(--hx-ultra); color: #fff !important; box-shadow: 0 6px 0 var(--hx-midnight); }
.hx-btn--ultra:hover { background: #2a22d0; transform: translateY(-1px); }
.hx-btn--ultra:active { transform: translateY(3px); box-shadow: 0 3px 0 var(--hx-midnight); }
.hx-perm-table { --bs-table-bg: transparent; color: var(--hx-ink); font-size: .95rem; }
.hx-perm-table thead th { font-weight: 600; font-size: .85rem; vertical-align: bottom; border-bottom-color: var(--hx-haze); }
.hx-perm-table tbody th { font-weight: 600; min-width: 220px; }
.hx-perm-table td, .hx-perm-table th { border-color: var(--hx-haze); }
.hx-perm-table .form-check-input { width: 1.25rem; height: 1.25rem; }
