/* ==========================================================================
   NFTAMA public site (landing, help, blog, white paper, public safe page).
   Builds on the tokens/components of nx.css; everything here is scoped to body.nxp.
   ========================================================================== */

body.nxp {
    margin: 0;
    background: var(--nx-bg);
    color: var(--nx-text);
    font-family: var(--nx-font);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
body.nxp *, body.nxp *::before, body.nxp *::after { box-sizing: border-box; }
body.nxp a { color: var(--nx-gold); text-decoration: none; }
body.nxp img { max-width: 100%; }
body.nxp h1, body.nxp h2, body.nxp h3, body.nxp h4 { color: #fff; }
.nxp-wrap { width: min(1240px, calc(100% - 40px)); margin: 0 auto; position: relative; z-index: 1; }

/* ---------- Header ---------- */
.nxp-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(7, 8, 13, .7);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-bottom: 1px solid var(--nx-line);
}
.nxp-header__bar { display: flex; align-items: center; gap: 28px; height: 74px; }
.nxp-logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.nxp-logo img { width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 0 14px rgba(255, 190, 60, .45)); }
.nxp-logo span { font-family: var(--nx-display); font-weight: 700; font-size: 19px; letter-spacing: .14em; color: #fff; }
.nxp-logo span em { font-style: normal; background: var(--nx-gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nxp-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.nxp-nav a { padding: 9px 14px; border-radius: 10px; color: var(--nx-text-2) !important; font-weight: 700; font-size: 14px; transition: background .2s, color .2s; white-space: nowrap; }
.nxp-nav a:hover { color: #fff !important; background: rgba(255, 255, 255, .05); }
.nxp-nav a.is-active { color: var(--nx-gold) !important; }
.nxp-header__actions { display: flex; align-items: center; gap: 10px; }
.nxp-lang { display: inline-flex; padding: 3px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid var(--nx-line); }
.nxp-lang a { padding: 5px 9px; border-radius: 7px; font-size: 11.5px; font-weight: 900; color: var(--nx-muted) !important; letter-spacing: .06em; }
.nxp-lang a.is-active { background: rgba(255, 201, 77, .14); color: var(--nx-gold) !important; }
.nxp-burger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--nx-line-2); background: rgba(255, 255, 255, .03); color: #fff; font-size: 18px; cursor: pointer; }
.nxp-mobile-nav { display: none; }

/* ---------- Hero / page heading (also styles legacy public-hero__* classes) ---------- */
.nxp-page { padding: 56px 0 90px; }
.public-hero__intro { max-width: 860px; margin: 0 0 34px; }
.public-hero__eyebrow, .nxp-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 11.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--nx-gold);
}
.public-hero__eyebrow::before, .nxp-eyebrow::before { content: ''; width: 18px; height: 2px; border-radius: 2px; background: var(--nx-gold-grad); }
.public-hero__title {
    margin: 12px 0 0;
    font-family: var(--nx-display);
    font-weight: 700;
    font-size: clamp(30px, 4.2vw, 54px);
    line-height: 1.08;
    letter-spacing: -.015em;
    color: #fff;
}
.public-hero__text { margin-top: 16px; font-size: 17px; line-height: 1.65; color: var(--nx-text-2); max-width: 760px; }
.public-surface { display: block; }

/* ---------- Buttons (legacy public-btn mapped to nx-btn look) ---------- */
.public-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 0 20px; border-radius: 13px;
    font-family: var(--nx-font); font-size: 14px; font-weight: 800; cursor: pointer;
    border: 1px solid var(--nx-line-2); background: rgba(255, 255, 255, .06); color: #fff !important;
    transition: transform .2s var(--nx-ease), box-shadow .25s, background .2s, border-color .2s;
    white-space: nowrap; text-decoration: none !important;
}
.public-btn:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .25); }
.public-btn--primary { background: var(--nx-gold-grad); border-color: transparent; color: #1d1300 !important; box-shadow: 0 10px 30px -10px rgba(255, 150, 30, .85), inset 0 1px 0 rgba(255, 255, 255, .5); }
.public-btn--primary:hover { border-color: transparent; box-shadow: 0 14px 36px -8px rgba(255, 150, 30, .95); }
.public-btn--outline { background: transparent; }

/* ---------- Footer ---------- */
.nxp-footer { position: relative; z-index: 1; margin-top: 40px; border-top: 1px solid var(--nx-line); background: linear-gradient(180deg, rgba(10, 12, 19, .6), #06070b); }
.nxp-footer__grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 30px; padding: 56px 0 36px; }
.nxp-footer h4 { margin: 0 0 14px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--nx-dim); }
.nxp-footer a { display: block; padding: 4px 0; color: var(--nx-text-2) !important; font-size: 14px; font-weight: 600; cursor: pointer; }
.nxp-footer a:hover { color: var(--nx-gold) !important; }
.nxp-footer__brand p { color: var(--nx-muted); font-size: 14px; line-height: 1.6; max-width: 320px; margin: 14px 0 18px; }
.nxp-socials { display: flex; gap: 8px; }
.nxp-socials a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; padding: 0; background: rgba(255, 255, 255, .05); border: 1px solid var(--nx-line); font-size: 16px; transition: transform .2s, background .2s; }
.nxp-socials a:hover { transform: translateY(-2px); background: rgba(255, 201, 77, .12); }
.nxp-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 0 30px; border-top: 1px solid var(--nx-line); color: var(--nx-dim); font-size: 12.5px; font-weight: 600; }

/* ---------- Generic sections ---------- */
.nxp-section { padding: 70px 0; position: relative; }
.nxp-section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.nxp-section__title { margin: 10px 0 0; font-family: var(--nx-display); font-size: clamp(26px, 3vw, 38px); font-weight: 700; line-height: 1.12; color: #fff; max-width: 760px; }
.nxp-section__lead { margin: 12px 0 0; color: var(--nx-muted); font-size: 16px; line-height: 1.6; max-width: 640px; }

/* ---------- Landing hero ---------- */
.nxp-hero { position: relative; padding: 70px 0 40px; overflow: hidden; }
.nxp-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; }
.nxp-hero__title { margin: 16px 0 0; font-family: var(--nx-display); font-weight: 800; font-size: clamp(38px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -.02em; color: #fff; }
.nxp-hero__title span { background: var(--nx-gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nxp-hero__lead { margin: 22px 0 0; font-size: 18px; line-height: 1.65; color: var(--nx-text-2); max-width: 560px; }
.nxp-hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.nxp-hero__proof { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 38px; }
.nxp-hero__proof div b { display: block; font-family: var(--nx-display); font-size: 26px; color: #fff; font-variant-numeric: tabular-nums; }
.nxp-hero__proof div span { color: var(--nx-muted); font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.nxp-stage { position: relative; height: 520px; }
.nxp-stage__vault { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); --s: 280px; z-index: 2; }
.nxp-stage__card { position: absolute; width: 168px; z-index: 1; animation: nxp-float 7s ease-in-out infinite; }
.nxp-stage__card .nx-safe__body { display: none; }
.nxp-stage__card .nx-safe__art { margin: 6px; }
.nxp-stage__card:nth-of-type(2) { left: 2%; top: 0; rotate: -12deg; animation-delay: -1s; }
.nxp-stage__card:nth-of-type(3) { right: 2%; top: 20px; rotate: 10deg; animation-delay: -3s; }
.nxp-stage__card:nth-of-type(4) { left: 6%; bottom: 10px; rotate: 8deg; animation-delay: -5s; width: 150px; }
.nxp-stage__card:nth-of-type(5) { right: 6%; bottom: 0; rotate: -7deg; animation-delay: -2s; width: 150px; }
@keyframes nxp-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
.nxp-feature .nx-class__fan { height: 170px; margin-bottom: 18px; }
.nxp-feature .nx-class__card { width: 120px; height: 140px; }
.nxp-ticker { margin-top: 18px; display: inline-flex; align-items: center; gap: 12px; padding: 10px 16px 10px 12px; border-radius: 999px; background: rgba(255, 255, 255, .04); border: 1px solid var(--nx-line-2); font-weight: 700; font-size: 13.5px; color: var(--nx-text-2); }
.nxp-ticker b { color: #fff; font-variant-numeric: tabular-nums; }

/* steps */
.nxp-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: nxpstep; }
.nxp-step { position: relative; padding: 24px 22px; border-radius: 22px; background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012)); border: 1px solid var(--nx-line); counter-increment: nxpstep; transition: transform .3s var(--nx-ease), border-color .3s; }
.nxp-step:hover { transform: translateY(-4px); border-color: rgba(255, 201, 77, .3); }
.nxp-step::before { content: '0' counter(nxpstep); position: absolute; right: 18px; top: 14px; font-family: var(--nx-display); font-size: 40px; font-weight: 800; color: rgba(255, 255, 255, .05); }
.nxp-step i { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; background: var(--nx-gold-soft); color: var(--nx-gold); font-size: 20px; }
.nxp-step h3 { margin: 18px 0 8px; font-size: 17px; font-weight: 800; }
.nxp-step p { margin: 0; color: var(--nx-muted); font-size: 14px; line-height: 1.6; }

/* features */
.nxp-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.nxp-feature { padding: 26px; border-radius: 22px; background: radial-gradient(120% 100% at 0% 0%, var(--nxp-glow, rgba(255, 180, 50, .14)), transparent 55%), rgba(255, 255, 255, .025); border: 1px solid var(--nx-line); }
.nxp-feature--violet { --nxp-glow: rgba(155, 107, 255, .2); }
.nxp-feature--cyan { --nxp-glow: rgba(63, 224, 255, .16); }
.nxp-feature img { width: 100%; height: 170px; object-fit: cover; border-radius: 16px; margin-bottom: 18px; }
.nxp-feature h3 { margin: 0 0 8px; font-size: 18px; font-weight: 800; }
.nxp-feature p { margin: 0; color: var(--nx-muted); font-size: 14.5px; line-height: 1.6; }

/* cta band */
.nxp-cta { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: center; padding: 44px; border-radius: 30px; background: radial-gradient(70% 140% at 100% 0%, rgba(255, 170, 40, .3), transparent 60%), radial-gradient(60% 120% at 0% 100%, rgba(124, 77, 255, .22), transparent 60%), linear-gradient(160deg, #171c2b, #0d1018); border: 1px solid rgba(255, 196, 77, .25); }
.nxp-cta h2 { margin: 0; font-family: var(--nx-display); font-size: clamp(24px, 3vw, 36px); line-height: 1.15; }
.nxp-cta p { margin: 10px 0 0; color: var(--nx-text-2); font-size: 16px; }

/* ---------- Article / prose (blog post, help, white paper) ---------- */
.nxp-prose { font-size: 16.5px; line-height: 1.8; color: var(--nx-text-2); }
.nxp-prose h1, .nxp-prose h2, .nxp-prose h3, .nxp-prose h4 { font-family: var(--nx-display); color: #fff; line-height: 1.25; letter-spacing: -.005em; }
.nxp-prose h2 { font-size: 25px; margin: 42px 0 14px; }
.nxp-prose h3 { font-size: 19px; margin: 30px 0 10px; }
.nxp-prose h4 { font-size: 16px; margin: 24px 0 8px; }
.nxp-prose p { margin: 0 0 16px; }
.nxp-prose a { color: var(--nx-gold); text-decoration: underline; text-decoration-color: rgba(255, 201, 77, .4); text-underline-offset: 3px; }
.nxp-prose ul, .nxp-prose ol { margin: 0 0 18px; padding-left: 22px; }
.nxp-prose li { margin-bottom: 8px; }
.nxp-prose li::marker { color: var(--nx-gold); font-weight: 800; }
.nxp-prose strong, .nxp-prose b { color: #fff; }
.nxp-prose blockquote { margin: 22px 0; padding: 16px 20px; border-left: 3px solid var(--nx-gold); border-radius: 0 14px 14px 0; background: var(--nx-gold-soft); color: var(--nx-text); }
.nxp-prose img { border-radius: 16px; height: auto; margin: 10px 0; }
.nxp-prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14.5px; }
.nxp-prose th, .nxp-prose td { padding: 10px 12px; border-bottom: 1px solid var(--nx-line); text-align: left; }
.nxp-prose th { color: var(--nx-dim); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.nxp-prose code { font-family: ui-monospace, Menlo, monospace; font-size: 13.5px; color: var(--nx-gold); background: rgba(255, 201, 77, .08); padding: 2px 6px; border-radius: 6px; word-break: break-all; }
.nxp-prose hr { border: 0; height: 1px; background: var(--nx-line); margin: 30px 0; }

/* ---------- Layout with side TOC ---------- */
.nxp-doc { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; }
.nxp-toc { position: sticky; top: 96px; padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.nxp-toc a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px; color: var(--nx-text-2) !important; font-size: 13.5px; font-weight: 700; }
.nxp-toc a i { width: 18px; text-align: center; color: var(--nx-muted); }
.nxp-toc a:hover { background: rgba(255, 255, 255, .045); color: #fff !important; }
.nxp-toc a.is-active { background: rgba(255, 201, 77, .12); color: var(--nx-gold) !important; }
.nxp-toc a.is-active i { color: var(--nx-gold); }
.nxp-doc__body { padding: 34px 40px; }


/* ---------- Help center content (legacy help-* markup) ---------- */
.help-page-content { min-width: 0; display: grid; gap: 18px; font-size: 15.5px; }
.help-panel, .help-card, .help-feedback-side { padding: 26px 28px; border-radius: 22px; background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .015)); border: 1px solid var(--nx-line); box-shadow: var(--nx-shadow); }
.help-panel--accent { background: radial-gradient(120% 120% at 100% 0%, rgba(255, 180, 50, .14), transparent 55%), rgba(255, 255, 255, .03); border-color: rgba(255, 196, 77, .25); }
.help-panel__title, .help-card__title, .help-feedback-side h3 { margin: 0 0 12px !important; font-family: var(--nx-display); font-size: 20px !important; color: #fff; }
.help-card__title { font-size: 16px !important; }
.help-panel > :last-child, .help-card > :last-child { margin-bottom: 0; }
.help-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.help-step-list { display: grid; gap: 12px; }
.help-step { display: flex; gap: 16px; align-items: flex-start; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, .03); border: 1px solid var(--nx-line); }
.help-step__num { flex-shrink: 0; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--nx-gold-grad); color: #1d1300; font-weight: 900; }
.help-callout { padding: 20px 24px; border-radius: 20px; background: rgba(155, 107, 255, .08); border: 1px solid rgba(155, 107, 255, .28); }
.help-callout__title { font-weight: 900; color: #c9b2ff; margin-bottom: 8px; letter-spacing: .04em; text-transform: uppercase; font-size: 12.5px; }
.help-callout p:last-child { margin-bottom: 0; }
.help-inline-note { padding: 12px 16px; border-radius: 12px; background: var(--nx-gold-soft); border: 1px solid rgba(255, 201, 77, .25); color: var(--nx-text); margin: 12px 0; }
.help-feedback-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 16px; }
.help-feedback-points { display: grid; gap: 8px; margin: 14px 0 18px; }
.help-feedback-point { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--nx-line); }
.help-feedback-point::before { content: '\f00c'; font-family: 'Font Awesome 5 Free'; font-weight: 900; color: var(--nx-green); }
.help-feedback-cta { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 14px; background: var(--nx-gold-grad); color: #1d1300; font-family: var(--nx-font); font-weight: 800; font-size: 15px; cursor: pointer; box-shadow: 0 12px 30px -10px rgba(255, 150, 30, .85); }
@media (max-width: 760px) { .help-card-grid, .help-feedback-grid { grid-template-columns: 1fr; } .help-panel, .help-card, .help-feedback-side { padding: 20px; } }

/* ---------- Blog ---------- */
.nxp-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.nxp-post-feature { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0; margin-bottom: 26px; overflow: hidden; }
.nxp-post-feature .nx-post__media { aspect-ratio: auto; min-height: 340px; }
.nxp-post-feature .nx-post__body { padding: 34px; display: flex; flex-direction: column; justify-content: center; }
.nxp-post-feature .nx-post__title { font-family: var(--nx-display); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; }
.nxp-post-feature .nx-post__excerpt { font-size: 15.5px; }
.nxp-article { width: min(820px, 100%); margin: 0 auto; }
.nxp-article__cover { width: 100%; border-radius: 26px; overflow: hidden; margin: 26px 0 34px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9); border: 1px solid var(--nx-line); }
.nxp-article__cover img { display: block; width: 100%; }
.nxp-article__meta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; color: var(--nx-muted); font-size: 13.5px; font-weight: 700; }
.nxp-share { display: flex; gap: 8px; flex-wrap: wrap; }


.nxp-read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; background: var(--nx-gold-grad); transform: scaleX(0); transform-origin: 0 50%; box-shadow: 0 0 12px rgba(255, 180, 50, .8); }
.nxp-article .public-hero__title { font-size: clamp(28px, 3.6vw, 44px); }


.nxp-wp-choice { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 30px; color: var(--nx-text) !important; transition: transform .3s var(--nx-ease), border-color .3s; }
.nxp-wp-choice:hover { transform: translateY(-4px); }
.nxp-wp-choice p { margin: 8px 0 18px; font-size: 15px; line-height: 1.6; }
.nxp-wp-choice__icon { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: var(--nx-gold-soft); color: var(--nx-gold); font-size: 26px; margin-bottom: 14px; }
.nxp-toc[data-nxp-toc] { max-height: calc(100vh - 120px); overflow-y: auto; scrollbar-width: thin; }
.nxp-toc[data-nxp-toc] a { display: block; font-size: 13px; line-height: 1.35; }
.nxp-article-body h2 { scroll-margin-top: 96px; }
.nxp-article-body pre { overflow-x: auto; padding: 14px 16px; border-radius: 14px; background: rgba(0, 0, 0, .35); border: 1px solid var(--nx-line); }
.nxp-article-body table { display: block; overflow-x: auto; }


/* ---------- Public safe page ---------- */
.nxp-safe-page { display: grid; grid-template-columns: minmax(280px, 440px) minmax(0, 1fr); gap: 50px; align-items: center; }
.nxp-safe-page__art { position: relative; }
.nxp-safe-page__rays { position: absolute; inset: -20%; background: repeating-conic-gradient(from 0deg, rgba(255, 201, 77, .1) 0 8deg, transparent 8deg 22deg); border-radius: 50%; mask-image: radial-gradient(circle, #000 20%, transparent 68%); -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 68%); animation: nx-rays 30s linear infinite; }
.nxp-safe-page__art .nx-safe { box-shadow: 0 50px 100px -40px rgba(255, 160, 40, .6); }
.nxp-safe-page__art .nx-safe__weight b { font-size: 28px; }
.nxp-safe-page__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.nxp-safe-page__stats .nx-perk b { font-size: 19px; }
@media (max-width: 900px) { .nxp-safe-page { grid-template-columns: 1fr; gap: 30px; } .nxp-safe-page__art { max-width: 380px; margin: 0 auto; width: 100%; } .nxp-safe-page__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }


/* ---------- Account access card ---------- */
.nxp-auth { position: relative; width: min(480px, 100%); margin: 30px auto 0; padding: 40px 36px 34px; border-radius: 28px; text-align: left; background: radial-gradient(120% 60% at 50% 0%, rgba(255, 170, 40, .16), transparent 60%), linear-gradient(180deg, #171b28, #0f131c); border: 1px solid var(--nx-line-2); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .95); }
.nxp-auth__vault { margin: -100px auto 18px; }
.nxp-auth__title { margin: 10px 0 0; font-family: var(--nx-display); font-size: 28px; color: #fff; }
.nxp-auth__lead { margin: 10px 0 20px; color: var(--nx-muted); font-size: 14.5px; line-height: 1.6; }
.nxp-auth__form { display: grid; gap: 10px; margin: 0; }
.nxp-auth__form .nx-input { margin-bottom: 6px; }
.nxp-auth__form ul { list-style: none; margin: 0; padding: 0; color: var(--nx-red); font-size: 13px; }
.nxp-auth__form .nx-btn { margin-top: 8px; }
.nx-input { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--nx-line-2); background: rgba(0, 0, 0, .3); color: #fff; font-family: var(--nx-font); font-size: 15px; font-weight: 600; }
.nx-input:focus { outline: none; border-color: rgba(255, 201, 77, .6); box-shadow: 0 0 0 4px rgba(255, 201, 77, .12); }

/* ---------- Modals (login / signup / ask) ---------- */
body.nxp .modal-bg { display: none; position: fixed; inset: 0; z-index: 60; cursor: pointer; background: rgba(3, 4, 8, .78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
body.nxp .modal {
    display: none; position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1070;
    width: 480px; max-width: calc(100% - 32px); max-height: calc(100vh - 32px); overflow-y: auto;
    padding: 36px 36px 30px; border-radius: 26px; color: var(--nx-text); font-family: var(--nx-font);
    background: radial-gradient(120% 60% at 50% 0%, rgba(255, 170, 40, .16), transparent 60%), linear-gradient(180deg, #171b28, #0f131c);
    border: 1px solid var(--nx-line-2); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .95);
}
body.nxp .modal-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; padding: 0; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--nx-line-2); background: rgba(255, 255, 255, .04); cursor: pointer; transition: transform .2s; }
body.nxp .modal-close img { width: 14px; height: 14px; filter: invert(1); }
body.nxp .modal-close:hover { transform: rotate(90deg); }
body.nxp .modal-title { margin: 0 0 22px; font-family: var(--nx-display); font-size: 26px; line-height: 1.2; font-weight: 700; text-align: left; text-transform: none; letter-spacing: 0; color: #fff; white-space: normal; }
body.nxp .modal .label { display: block; margin: 0 0 7px; font-family: var(--nx-font); font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--nx-muted); }
body.nxp .modal .input, body.nxp .modal input[type="text"], body.nxp .modal input[type="email"], body.nxp .modal input[type="password"], body.nxp .modal textarea {
    display: block; width: 100%; height: 48px; margin: 0 0 16px; padding: 0 14px; border-radius: 12px;
    border: 1px solid var(--nx-line-2); background: rgba(0, 0, 0, .3); color: #fff; font-family: var(--nx-font); font-size: 15px; font-weight: 600;
}
body.nxp .modal textarea { height: 120px; padding: 12px 14px; }
body.nxp .modal .input:focus, body.nxp .modal input:focus, body.nxp .modal textarea:focus { outline: none; border-color: rgba(255, 201, 77, .6); box-shadow: 0 0 0 4px rgba(255, 201, 77, .12); }
body.nxp .modal .btn, body.nxp .modal input[type="submit"], body.nxp .modal button[type="submit"] {
    display: flex; align-items: center; justify-content: center; width: 100%; height: 52px; margin: 16px 0 0;
    border: 0; border-radius: 14px; background: var(--nx-gold-grad); color: #1d1300; font-family: var(--nx-font);
    font-size: 15px; font-weight: 800; letter-spacing: .01em; text-transform: none; cursor: pointer;
    box-shadow: 0 12px 30px -10px rgba(255, 150, 30, .85);
}
body.nxp .modal .link { color: var(--nx-gold); text-decoration: none; font-size: 13.5px; font-weight: 700; cursor: pointer; }
body.nxp .modal-line { display: flex; justify-content: flex-end; }
body.nxp .modal-footer { margin: 22px 0 0; text-align: center; font-size: 14px; color: var(--nx-muted); font-family: var(--nx-font); }
body.nxp .modal .g-recaptcha { transform-origin: 0 0; }
body.nxp .modal [class*="__error"] { border-radius: 12px; }

/* ---------- Flash on public pages ---------- */
.nxp-flashes { display: grid; gap: 10px; margin: 20px 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .nxp-nav { display: none; }
    .nxp-burger { display: inline-grid; place-items: center; }
    .nxp-header__bar { justify-content: space-between; gap: 12px; }
    .nxp-mobile-nav { position: absolute; left: 0; right: 0; top: 100%; padding: 12px 20px 20px; background: rgba(10, 12, 19, .97); border-bottom: 1px solid var(--nx-line); }
    .nxp-header.is-open .nxp-mobile-nav { display: grid; gap: 4px; }
    .nxp-mobile-nav a { padding: 12px 14px; border-radius: 12px; color: var(--nx-text) !important; font-weight: 700; background: rgba(255, 255, 255, .03); }
    .nxp-hero__grid { grid-template-columns: 1fr; }
    .nxp-stage { height: 420px; }
    .nxp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nxp-features, .nxp-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nxp-footer__grid { grid-template-columns: 1fr 1fr; }
    .nxp-doc { grid-template-columns: 1fr; }
    .nxp-toc { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; }
    .nxp-toc a { white-space: nowrap; }
    .nxp-post-feature { grid-template-columns: 1fr; }
    .nxp-post-feature .nx-post__media { min-height: 220px; }
}
@media (max-width: 680px) {
    .nxp-wrap { width: calc(100% - 28px); }
    .nxp-header__actions .public-btn--outline, .nxp-header__actions .nxp-lang { display: none; }
    .nxp-header__actions .public-btn { min-height: 38px; padding: 0 14px; font-size: 13px; }
    .nxp-logo span { display: none; }
    .nxp-page { padding: 34px 0 60px; }
    .nxp-hero { padding: 40px 0 20px; }
    .nxp-stage { height: 340px; }
    .nxp-stage__vault { --s: 200px; }
    .nxp-stage__card { width: 128px !important; }
    .nxp-steps, .nxp-features, .nxp-posts { grid-template-columns: 1fr; }
    .nxp-section { padding: 46px 0; }
    .nxp-cta { grid-template-columns: 1fr; padding: 28px; }
    .nxp-footer__grid { grid-template-columns: 1fr 1fr; padding-top: 40px; }
    .nxp-footer__brand { grid-column: span 2; }
    .nxp-doc__body { padding: 24px 18px; }
    body.nxp .modal { padding: 28px 20px 24px; }
}
.help-page-content .nx-grid--safes { grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); }
