/* =========================================================================
   NOX Racket Match – racket finder page
   ========================================================================= */
.nox-finder {
	position: relative; overflow: hidden; isolation: isolate;
	min-height: calc(100vh - 120px);
	background: radial-gradient(ellipse at 80% 0%, rgba(255, 66, 56, .18), transparent 50%), var(--nox-ink);
	color: rgba(255, 255, 255, .82);
}
.nox-finder__bg {
	position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
	background-size: 48px 48px;
	-webkit-mask-image: linear-gradient(to bottom, #000, transparent 90%); mask-image: linear-gradient(to bottom, #000, transparent 90%);
}
.nox-finder__shell { padding-block: clamp(24px, 4vw, 56px) clamp(56px, 7vw, 96px); }
.nf-mono { font: 500 11px/1.4 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.nf-ico { width: 20px; height: 20px; flex: none; }
.nf-ico--back { transform: scaleX(-1); }
[dir="ltr"] .nf-ico--back { transform: none; }
.nf-dot { display: inline-block; width: 8px; height: 8px; margin-inline-end: 10px; border-radius: 50%; background: var(--nox-orange); box-shadow: 0 0 0 0 rgba(255, 66, 56, .6); animation: nf-pulse 1.6s infinite; vertical-align: middle; }
.nf-dot--ok { background: #3DDC84; box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); }
@keyframes nf-pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 66, 56, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 66, 56, 0); } }

/* ---------- Layout: HUD + stage ---------- */
.nf { display: grid; gap: 24px; }
@media (min-width: 1024px) { .nf { grid-template-columns: 300px minmax(0, 1fr); gap: 48px; align-items: start; } }
.nf-hud {
	display: grid; grid-template-columns: 96px 1fr; gap: 4px 16px; align-items: center;
	padding: 14px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .03);
	transition: opacity .4s var(--ease);
}
.nf-hud__head { grid-column: 1 / -1; display: flex; align-items: center; }
.nf-hud .nf-radar { grid-row: 2 / 4; width: 96px; height: 96px; }
.nf-hud__read { display: none; margin: 0; }
.nf-hud__count { display: flex; align-items: center; gap: 12px; margin: 0; }
.nf-hud__count b { font: 700 40px/1 var(--font-display); color: var(--nox-orange); min-width: 1.6ch; }
.nf-hud__count span { font-size: 13px; line-height: 1.3; }
@media (min-width: 1024px) {
	.nf-hud { position: sticky; top: calc(var(--header-h) + 24px); display: block; padding: 20px; }
	.nf-hud .nf-radar { width: 100%; height: auto; margin: 8px 0 12px; }
	.nf-hud__read { display: grid; gap: 0; border-top: 1px solid rgba(255, 255, 255, .1); }
	.nf-hud__read > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 14px; }
	.nf-hud__read dt { color: rgba(255, 255, 255, .5); }
	.nf-hud__read dd { margin: 0; color: var(--nox-white); font-weight: 500; text-align: end; }
	.nf-hud__count { margin-top: 18px; }
}
.nf.is-intro .nf-hud, .is-intro .nf-hud { opacity: .35; }

/* Radar */
.nf-radar { display: block; overflow: visible; }
.nf-radar__ring { fill: none; stroke: rgba(255, 255, 255, .12); }
.nf-radar__axis { stroke: rgba(255, 255, 255, .1); }
.nf-radar__shape { fill: rgba(255, 66, 56, .28); stroke: var(--nox-orange); stroke-width: 2; stroke-linejoin: round; }
.nf-radar__racket { fill: rgba(255, 255, 255, .14); stroke: rgba(255, 255, 255, .8); stroke-width: 1.5; stroke-dasharray: 4 3; }
.nf-radar__label { fill: rgba(255, 255, 255, .6); font: 500 12px var(--font-body); }
.nf-hud .nf-radar__label { font-size: 14px; }
@media (max-width: 1023px) { .nf-hud .nf-radar__label { display: none; } }

/* Steps bar */
.nf-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 0 0 28px; padding: 0; list-style: none; }
.nf-steps li { position: relative; padding-top: 12px; font-size: 13px; color: rgba(255, 255, 255, .4); }
.nf-steps li::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px; background: rgba(255, 255, 255, .14); }
.nf-steps li::after { content: ""; position: absolute; inset-inline-start: 0; top: 0; height: 3px; width: 0; background: var(--nox-orange); transition: width .5s var(--ease); }
.nf-steps li.is-done::after, .nf-steps li.is-now::after { width: 100%; }
.nf-steps li.is-now { color: var(--nox-white); }
.nf-steps li.is-done { color: rgba(255, 255, 255, .7); }
.nf-steps .nf-mono { display: block; margin-bottom: 2px; }
@media (max-width: 599px) { .nf-steps li { font-size: 0; } .nf-steps .nf-mono { font-size: 10px; } }
.is-intro .nf-steps, .is-results .nf-steps { visibility: hidden; height: 0; margin: 0; overflow: hidden; }

/* Screen transitions */
.nf-screen { outline: none; transition: opacity .22s var(--ease), transform .22s var(--ease); }
.nf-screen.is-leaving { opacity: 0; transform: translateY(-10px); }
.nf-screen.is-entering { opacity: 0; transform: translateY(14px); transition: none; }

/* Typography */
.nf-q { margin: 0 0 10px; display: flex; align-items: center; }
.nf-title { margin: 0 0 12px; color: var(--nox-white); font-size: clamp(28px, 4vw, 48px); font-weight: 700; letter-spacing: -.015em; line-height: 1.08; outline: none; }
.nf-title--xl { font-size: clamp(40px, 6.4vw, 84px); line-height: 1; }
.nf-sub { max-width: 60ch; margin: 0 0 28px; font-size: clamp(15px, 1.4vw, 18px); color: rgba(255, 255, 255, .72); }

/* ---------- Intro ---------- */
.nf-intro { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .nf-intro { grid-template-columns: 1.1fr .9fr; min-height: 560px; } }
.nf-intro__facts { display: flex; gap: 28px; margin: 0 0 32px; padding: 0; list-style: none; }
.nf-intro__facts li { display: grid; font-size: 13px; color: rgba(255, 255, 255, .6); }
.nf-intro__facts b { font-size: 28px; font-weight: 500; color: var(--nox-white); letter-spacing: 0; }
.nf-intro__media { position: relative; margin: 0; aspect-ratio: 1; overflow: hidden; border: 1px solid rgba(255, 255, 255, .12); }
.nf-intro__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05); }
.nf-intro__media figcaption { position: absolute; bottom: 14px; inset-inline-start: 14px; padding: 8px 10px; background: rgba(13, 12, 12, .7); color: var(--nox-white); }
.nf-scanline {
	position: absolute; z-index: 2; inset-inline: 0; height: 2px; top: 0;
	background: var(--nox-orange); box-shadow: 0 0 18px 4px rgba(255, 66, 56, .55);
	animation: nf-scanline 3.2s ease-in-out infinite alternate;
}
@keyframes nf-scanline { to { top: 100%; } }
.nf-intro__media::before, .nf-intro__media::after {
	content: ""; position: absolute; z-index: 3; width: 22px; height: 22px; border: 2px solid var(--nox-orange);
}
.nf-intro__media::before { top: 10px; inset-inline-end: 10px; border-bottom: 0; border-inline-start: 0; }
.nf-intro__media::after { bottom: 10px; inset-inline-start: 10px; border-top: 0; border-inline-end: 0; }

/* ---------- Level slider ---------- */
.nf-level { margin-bottom: 8px; padding: clamp(20px, 3vw, 36px); border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .03); }
.nf-level__read { display: flex; align-items: center; gap: clamp(16px, 3vw, 32px); min-height: 120px; }
.nf-level__num { flex: none; min-width: 2.2ch; font-size: clamp(64px, 10vw, 120px); line-height: 1; font-weight: 500; color: var(--nox-orange); letter-spacing: -.04em; }
.nf-level__desc { margin: 0; font: 600 clamp(18px, 2.2vw, 26px)/1.3 var(--font-display); color: var(--nox-white); }
.nf-level__slider { margin-top: 28px; direction: ltr; }
[dir="rtl"] .nf-level__slider { direction: rtl; }
.nf-level input[type="range"] {
	-webkit-appearance: none; appearance: none; width: 100%; height: 36px; margin: 0; padding: 0;
	background: transparent; border: 0; box-shadow: none; cursor: pointer; --fill: 33%;
}
.nf-level input[type="range"]:focus { box-shadow: none; }
.nf-level input[type="range"]::-webkit-slider-runnable-track {
	height: 4px; background: linear-gradient(to left, var(--nox-orange) var(--fill), rgba(255, 255, 255, .15) var(--fill));
}
[dir="ltr"] .nf-level input[type="range"]::-webkit-slider-runnable-track { background: linear-gradient(to right, var(--nox-orange) var(--fill), rgba(255, 255, 255, .15) var(--fill)); }
.nf-level input[type="range"]::-moz-range-track { height: 4px; background: rgba(255, 255, 255, .15); }
.nf-level input[type="range"]::-moz-range-progress { height: 4px; background: var(--nox-orange); }
.nf-level input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none; width: 28px; height: 28px; margin-top: -12px; border-radius: 0;
	background: var(--nox-ink); border: 2px solid var(--nox-orange); box-shadow: 0 0 0 6px rgba(255, 66, 56, .18);
	transform: rotate(45deg);
}
.nf-level input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 0; background: var(--nox-ink); border: 2px solid var(--nox-orange); transform: rotate(45deg); }
.nf-level input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 6px rgba(255, 66, 56, .45); }
.nf-level__ticks { display: flex; justify-content: space-between; margin-top: 8px; padding-inline: 4px; font: 500 13px var(--font-mono); color: rgba(255, 255, 255, .7); }
.nf-level__ticks .is-half { color: rgba(255, 255, 255, .3); font-size: 11px; }
.nf-level__terms { margin: 24px 0 0; color: rgba(255, 255, 255, .35); }

/* ---------- Option cards ---------- */
.nf-opts { display: grid; gap: 12px; margin-bottom: 8px; }
@media (min-width: 700px) { .nf-opts--3 { grid-template-columns: repeat(3, 1fr); } .nf-opts--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .nf-opts--4 { grid-template-columns: repeat(4, 1fr); } }
.nf-opt {
	position: relative; display: flex; flex-direction: column; align-items: stretch; width: 100%; padding: 0; overflow: hidden;
	border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .03); color: inherit;
	text-align: start; cursor: pointer; transition: border-color .2s, background-color .2s, transform .2s var(--ease);
}
.nf-opt:hover { border-color: rgba(255, 255, 255, .4); transform: translateY(-2px); }
.nf-opt.is-on { border-color: var(--nox-orange); background: rgba(255, 66, 56, .1); box-shadow: inset 0 0 0 1px var(--nox-orange); }
.nf-opt__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #222; }
.nf-opt__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; filter: grayscale(.6) brightness(.85); transition: filter .4s, transform .6s var(--ease); }
.nf-opt:hover .nf-opt__img img, .nf-opt.is-on .nf-opt__img img { filter: none; transform: scale(1.04); }
.nf-opt__body { display: grid; gap: 4px; padding: 18px; }
.nf-opt__ico { width: 28px; height: 28px; margin-bottom: 8px; color: var(--nox-orange); }
.nf-opt__t { font: 600 20px/1.2 var(--font-display); color: var(--nox-white); }
.nf-opt__k { color: var(--nox-orange); letter-spacing: .06em; }
.nf-opt__d { font-size: 14px; color: rgba(255, 255, 255, .62); }
.nf-opt__check {
	position: absolute; top: 12px; inset-inline-end: 12px; display: grid; place-items: center; width: 26px; height: 26px;
	border: 1px solid rgba(255, 255, 255, .35); color: transparent; transition: background-color .2s, color .2s, border-color .2s;
}
.nf-opt__check .nf-ico { width: 16px; height: 16px; }
.nf-opt.is-on .nf-opt__check { background: var(--nox-orange); border-color: var(--nox-orange); color: var(--nox-ink); }
.nf-opt--img.is-on::after {
	content: "SELECTED"; position: absolute; top: 12px; inset-inline-start: 12px; padding: 5px 8px;
	background: var(--nox-orange); color: var(--nox-ink); font: 500 10px var(--font-mono); letter-spacing: .14em;
}

/* Tooltips */
.nf-help { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 0; font-size: 14px; color: rgba(255, 255, 255, .6); }
.nf-tip {
	display: inline-grid; place-items: center; width: 24px; height: 24px; padding: 0;
	border: 1px solid rgba(255, 255, 255, .4); border-radius: 50%; background: none; color: var(--nox-white);
	font: 600 13px/1 var(--font-mono); cursor: pointer;
}
.nf-tip[aria-expanded="true"], .nf-tip:hover { background: var(--nox-orange); border-color: var(--nox-orange); color: var(--nox-ink); }
.nf-tip-pop { flex-basis: 100%; padding: 12px 14px; border-inline-start: 2px solid var(--nox-orange); background: rgba(255, 255, 255, .06); color: var(--nox-white); font-size: 14px; animation: nf-in .25s var(--ease); }
@keyframes nf-in { from { opacity: 0; transform: translateY(-4px); } }

/* Nav */
.nf-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); }
.nf-back, .nf-skip {
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px;
	border: 0; background: none; color: rgba(255, 255, 255, .7); font: 500 15px var(--font-body); cursor: pointer;
}
.nf-back:hover, .nf-skip:hover { color: var(--nox-white); }
.nf-next:disabled { opacity: .35; cursor: not-allowed; }
.nf-next:disabled:hover { background: var(--nox-orange); border-color: var(--nox-orange); }

/* ---------- Analysis ---------- */
.nf-scan { display: grid; gap: 32px; align-items: center; min-height: 480px; }
@media (min-width: 900px) { .nf-scan { grid-template-columns: .9fr 1.1fr; } }
.nf-scan__viz { position: relative; width: min(100%, 380px); aspect-ratio: 1; margin-inline: auto; display: grid; place-items: center; }
.nf-scan__rings { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.nf-scan__rings circle { fill: none; transform-origin: 100px 100px; }
.nf-scan__rings .r1 { stroke: rgba(255, 255, 255, .25); stroke-dasharray: 2 6; animation: nox-spin 12s linear infinite; }
.nf-scan__rings .r2 { stroke: var(--nox-orange); stroke-width: 2; stroke-dasharray: 120 400; animation: nox-spin 2.4s linear infinite; }
.nf-scan__rings .r3 { stroke: rgba(255, 255, 255, .15); stroke-width: 1; stroke-dasharray: 40 12; animation: nox-spin 6s linear infinite reverse; }
@keyframes nox-spin { to { transform: rotate(360deg); } }
.nf-scan__sweep { position: absolute; inset: 8%; border-radius: 50%; background: conic-gradient(from 0deg, rgba(255, 66, 56, .35), transparent 25%); animation: nox-spin 1.8s linear infinite; }
.nf-scan__racket { position: relative; z-index: 1; width: 52%; height: 64%; object-fit: contain; filter: drop-shadow(0 0 30px rgba(255, 66, 56, .35)); transition: transform .4s var(--ease); }
.nf-scan__racket.is-lock { transform: scale(1.12); }
.nf-scan__pct { position: absolute; bottom: -6px; inset-inline-start: 50%; transform: translateX(-50%); padding: 6px 12px; background: var(--nox-orange); color: var(--nox-ink); font-size: 14px; }
[dir="rtl"] .nf-scan__pct { transform: translateX(50%); }
.nf-scan__pct b { font-weight: 500; }
.nf-log { display: grid; gap: 10px; margin: 20px 0 24px; padding: 0; list-style: none; min-height: 250px; }
.nf-log li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--nox-white); animation: nf-in .3s var(--ease); }
.nf-log li .nf-mono { color: var(--nox-orange); letter-spacing: .04em; }
.nf-log li i { display: inline-grid; color: #3DDC84; }
.nf-log li i .nf-ico { width: 16px; height: 16px; }

/* ---------- Results ---------- */
.nf-profile { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; }
.nf-profile li { padding: 6px 12px; border: 1px solid rgba(255, 255, 255, .2); font-size: 14px; color: var(--nox-white); }
.nf-cards { display: grid; gap: 16px; }
@media (min-width: 900px) { .nf-cards { grid-template-columns: 1fr 1fr; } .nf-card--feat { grid-column: 1 / -1; } }
.nf-card {
	position: relative; display: grid; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .03);
	animation: nf-card-in .7s var(--ease) both; animation-delay: calc(var(--i) * .16s + .1s);
}
@keyframes nf-card-in { from { opacity: 0; transform: translateY(30px) scale(.98); } }
.nf-card--feat { border-color: var(--nox-orange); box-shadow: 0 0 0 1px var(--nox-orange), 0 30px 80px rgba(255, 66, 56, .12); }
@media (min-width: 900px) { .nf-card--feat { grid-template-columns: .85fr 1.15fr; } .nf-card--feat .nf-card__head { grid-column: 1 / -1; } }
.nf-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.nf-card--feat .nf-card__head { background: var(--nox-orange); border-color: var(--nox-orange); }
.nf-card--feat .nf-card__head .nf-mono { color: var(--nox-ink); }
.nf-card__label { font: 600 15px var(--font-display); color: var(--nox-white); }
.nf-card--feat .nf-card__label { color: var(--nox-ink); }
.nf-card__media { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; background: radial-gradient(circle at 50% 55%, rgba(255, 255, 255, .1), transparent 60%); }
.nf-card--feat .nf-card__media { aspect-ratio: auto; min-height: 360px; }
.nf-card__media > img { position: relative; z-index: 1; width: 52%; max-height: 82%; object-fit: contain; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .5)); }
.nf-ring { position: absolute; width: 74%; aspect-ratio: 1; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .2); animation: nox-spin 30s linear infinite; }
.nf-match { position: absolute; z-index: 2; top: 14px; inset-inline-end: 14px; width: 84px; height: 84px; transform: rotate(-90deg); }
.nf-match circle { fill: rgba(13, 12, 12, .7); stroke: rgba(255, 255, 255, .15); stroke-width: 6; }
.nf-match .nf-match__val {
	fill: none; stroke: var(--nox-orange); stroke-linecap: butt;
	stroke-dasharray: 276.5; stroke-dashoffset: 276.5; animation: nf-ring 1.2s var(--ease) forwards; animation-delay: calc(var(--i, 0) * .18s + .4s);
}
.nf-card { --i: 0; }
@keyframes nf-ring { to { stroke-dashoffset: calc(276.5 - 276.5 * var(--pct) / 100); } }
.nf-match__num { position: absolute; z-index: 3; top: 14px; inset-inline-end: 14px; width: 84px; height: 84px; display: grid; place-content: center; text-align: center; color: var(--nox-white); font: 600 22px/1 var(--font-display); }
.nf-match__num > span { display: block; direction: ltr; }
.nf-match__num small { display: block; margin-top: 2px; font-size: 8px; color: rgba(255, 255, 255, .6); }
.nf-card__body { display: flex; flex-direction: column; gap: 10px; padding: 20px; }
.nf-card__name { margin: 0; font-size: clamp(18px, 2vw, 24px); text-transform: uppercase; line-height: 1.2; }
.nf-card__name a { color: var(--nox-white); text-decoration: none; }
.nf-card__name a:hover { color: var(--nox-orange); }
.nf-card__price { display: flex; align-items: center; gap: 10px; margin: 0; font: 600 20px var(--font-body); color: var(--nox-white); }
.nf-badge { padding: 4px 8px; font: 500 11px var(--font-mono); letter-spacing: .08em; background: rgba(255, 255, 255, .12); color: var(--nox-white); }
.nf-badge--ok { background: rgba(61, 220, 132, .16); color: #3DDC84; }
.nf-badge--soon { background: var(--nox-yellow); color: var(--nox-ink); }
.nf-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.nf-chips li { padding: 5px 10px; border: 1px solid rgba(255, 255, 255, .16); font-size: 13px; }
.nf-card__why ul { display: grid; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.nf-card__why li > span { flex: 1; }
.nf-card__why li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--nox-white); }
.nf-card__why .nf-ico { width: 18px; height: 18px; margin-top: 2px; color: var(--nox-orange); }
.nf-card__compare { display: flex; align-items: center; gap: 16px; }
.nf-card__compare .nf-radar { width: 200px; height: 200px; flex: none; }
.nf-legend { display: grid; gap: 6px; margin: 0; font-size: 13px; }
.nf-legend span { display: inline-block; width: 18px; height: 10px; margin-inline-end: 6px; vertical-align: middle; }
.nf-legend__you { background: rgba(255, 66, 56, .4); border: 2px solid var(--nox-orange); }
.nf-legend__racket { background: rgba(255, 255, 255, .14); border: 1.5px dashed rgba(255, 255, 255, .8); }
.nf-card__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 8px; }
.nf-after { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 32px; }
.nf-link { color: rgba(255, 255, 255, .7); }
.nf-link:hover { color: var(--nox-white); }
@media (max-width: 599px) { .nf-card__compare { flex-direction: column; align-items: flex-start; } }

@media (prefers-reduced-motion: reduce) {
	.nf-card, .nf-match .nf-match__val, .nf-scanline, .nf-scan__sweep, .nf-scan__rings circle, .nf-ring, .nf-dot { animation: none !important; }
	.nf-match .nf-match__val { stroke-dashoffset: calc(276.5 - 276.5 * var(--pct) / 100); }
}
