/* Fuka Rack Studio — استودیوی طراحی رک فوکا */
@font-face {
	font-family: 'FukaVazir';
	src: url('../fonts/Vazirmatn-wght.woff2') format('woff2-variations'), url('../fonts/Vazirmatn-wght.woff2') format('woff2');
	font-weight: 100 900;
	font-display: swap;
}

.fst-root {
	--st-accent: #fdc60a;
	--st-accent2: #ffdb4d;
	--st-ink: #16181c;
	--st-ink2: #4b525d;
	--st-mute: #858b95;
	--st-line: rgba(22, 24, 28, .09);
	--st-bg: #f5f2ea;
	--st-card: #ffffff;
	--st-dark: #121418;
	--st-ok: #1c9a5b;
	--st-bad: #d0402f;
	--st-warn: #b97a00;
	--st-r: 18px;
	--st-top: 64px;
	--st-shadow: 0 1px 2px rgba(20, 18, 10, .05), 0 10px 30px -12px rgba(20, 18, 10, .18);
	font-family: 'FukaVazir', Vazirmatn, IRANSans, Tahoma, sans-serif;
	color: var(--st-ink);
	direction: rtl;
	-webkit-font-smoothing: antialiased;
}
:where(.fst-root) *, :where(.fst-root) *::before, :where(.fst-root) *::after { box-sizing: border-box; }
:where(.fst-root) :where(button, input, select, textarea) { font: inherit; color: inherit; }
:where(.fst-root) :where(h1, h2, h3) { margin: 0; line-height: 1.35; }
:where(.fst-root) p { margin: 0; }
.fst-ic { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.fst-offcanvas { position: fixed; left: -12000px; top: 0; pointer-events: none; }
.fst-muted { color: var(--st-mute); }
.fst-muted.sm { font-size: 12.5px; line-height: 1.8; }
html.fst-lock { overflow: hidden; }

.fst-app { min-height: 100vh; background: var(--st-bg); display: flex; flex-direction: column; }

/* ---------------------------------------------------------------- دکمه‌ها */
.fst-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 7px;
	min-height: 40px; padding: 0 16px; border-radius: 12px; cursor: pointer;
	border: 1px solid var(--st-line); background: #fff; color: var(--st-ink);
	font-size: 13.5px; font-weight: 600; text-decoration: none; white-space: nowrap;
	transition: transform .12s, box-shadow .15s, background .15s;
}
.fst-btn:hover { box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .25); transform: translateY(-1px); }
.fst-btn.primary { background: var(--st-accent); border-color: transparent; color: #1b1606; box-shadow: 0 6px 18px -8px rgba(253, 198, 10, .9); }
.fst-btn.primary:hover { background: var(--st-accent2); }
.fst-btn.ghost { background: transparent; }
.fst-btn.big { min-height: 52px; font-size: 15px; border-radius: 14px; }
.fst-btn.sm { min-height: 32px; padding: 0 11px; font-size: 12.5px; border-radius: 10px; }
.fst-btn.block { display: flex; width: 100%; }
.fst-btn.disabled, .fst-btn[disabled] { opacity: .5; pointer-events: none; }
.fst-btn.ok { background: #e6f6ee; border-color: #9fd9bb; }
.fst-btn small { font-weight: 500; opacity: .75; }

/* ---------------------------------------------------------------- نوار بالا */
.fst-top {
	position: sticky; top: 0; z-index: 30; height: var(--st-top);
	display: flex; align-items: center; gap: 18px; padding: 0 20px;
	background: var(--st-dark); color: #f3f1ea;
	box-shadow: 0 1px 0 rgba(255, 255, 255, .05), 0 8px 24px -16px rgba(0, 0, 0, .6);
}
.fst-brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; flex: none; }
.fst-brand img { border-radius: 10px; background: var(--st-accent); }
.fst-brand span { display: flex; flex-direction: column; line-height: 1.25; }
.fst-brand b { font-size: 16px; font-weight: 800; }
.fst-brand small { font-size: 11px; color: var(--st-accent); font-weight: 600; }
.fst-steps { display: flex; gap: 4px; margin: 0 auto; background: rgba(255, 255, 255, .06); padding: 4px; border-radius: 14px; }
.fst-steps button {
	display: flex; align-items: center; gap: 8px; border: 0; background: transparent; color: #b9bcc3;
	padding: 7px 14px; border-radius: 10px; cursor: pointer; font-size: 13px; font-weight: 600;
}
.fst-steps i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: rgba(255, 255, 255, .1); }
.fst-steps button.on { background: var(--st-accent); color: #1b1606; }
.fst-steps button.on i { background: #1b1606; color: var(--st-accent); }
.fst-steps button.done i { background: rgba(253, 198, 10, .25); color: var(--st-accent); }
.fst-topact { display: flex; gap: 6px; flex: none; }
.fst-tbtn {
	display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 11px;
	border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04); color: #eceae4;
	text-decoration: none; font-size: 13px; cursor: pointer;
}
.fst-tbtn:hover { border-color: var(--st-accent); color: var(--st-accent); }
.fst-tbtn.ghost { background: var(--st-accent); color: #1b1606; border-color: transparent; font-weight: 700; }
.fst-tbtn.ghost:hover { color: #1b1606; background: var(--st-accent2); }

/* ---------------------------------------------------------------- نماها */
.fst-view { display: none; flex: 1; }
.fst-app[data-step="1"] .fst-pick,
.fst-app[data-step="2"] .fst-build,
.fst-app[data-step="3"] .fst-review { display: block; }
.fst-app[data-step="2"] .fst-build { display: grid; }
.fst-app[data-step="3"] .fst-review { display: grid; }

/* ---------------------------------------------------------------- مرحله ۱ */
.fst-hero {
	position: relative; overflow: hidden; color: #f6f4ee;
	background: radial-gradient(900px 300px at 85% -20%, rgba(253, 198, 10, .35), transparent 60%), linear-gradient(180deg, #121418, #1d2026);
	padding: 38px 28px 74px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.fst-hero::after {
	content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
	background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
	background-size: 28px 28px; mask-image: linear-gradient(180deg, #000, transparent);
	-webkit-mask-image: linear-gradient(180deg, #000, transparent);
}
.fst-hero-t { position: relative; z-index: 1; max-width: 660px; }
.fst-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--st-accent); background: rgba(253, 198, 10, .12); padding: 5px 11px; border-radius: 999px; margin-bottom: 12px; }
.fst-hero h1 { font-size: clamp(26px, 3.6vw, 42px); font-weight: 900; letter-spacing: -.5px; }
.fst-hero p { color: #b9bcc3; margin-top: 8px; font-size: 15px; line-height: 1.9; }
.fst-hero-s { position: relative; z-index: 1; display: flex; gap: 10px; }
.fst-hero-s div { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); border-radius: 14px; padding: 12px 18px; text-align: center; min-width: 96px; }
.fst-hero-s b { display: block; font-size: 24px; color: var(--st-accent); font-weight: 800; }
.fst-hero-s span { font-size: 12px; color: #b9bcc3; }

.fst-resume {
	max-width: 1440px; margin: -52px auto 0; position: relative; z-index: 2; width: calc(100% - 40px);
	display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; border-radius: 16px;
	background: #fffbea; border: 1px solid #f3dd8a; box-shadow: var(--st-shadow); font-size: 13.5px;
}
.fst-resume > span { flex: 1; }
.fst-resume[hidden] { display: none; }
.fst-resume + .fst-pickgrid { margin-top: 16px; }

.fst-pickgrid {
	max-width: 1440px; width: calc(100% - 40px); margin: -52px auto 40px; position: relative; z-index: 2;
	display: grid; grid-template-columns: 340px 1fr; gap: 20px; align-items: start;
}
.fst-finder {
	position: sticky; top: calc(var(--st-top) + 16px);
	background: var(--st-card); border-radius: 22px; padding: 20px; box-shadow: var(--st-shadow);
	border: 1px solid var(--st-line);
}
.fst-badge { display: inline-flex; gap: 5px; align-items: center; font-size: 11.5px; font-weight: 700; background: #16181c; color: var(--st-accent); padding: 4px 10px; border-radius: 999px; }
.fst-fd-h h2 { font-size: 18px; margin-top: 10px; font-weight: 800; }
.fst-fd-h p { font-size: 12.5px; color: var(--st-mute); line-height: 1.9; margin-top: 4px; }
.fst-fd-q { margin-top: 16px; }
.fst-fd-q > b { display: block; font-size: 13px; margin-bottom: 8px; }
.fst-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.fst-tiles button {
	display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 12px;
	border: 1px solid var(--st-line); background: #faf9f5; cursor: pointer; font-size: 11.5px; color: var(--st-ink2);
}
.fst-tiles button.on { border-color: var(--st-accent); background: #fff8dc; color: var(--st-ink); box-shadow: inset 0 0 0 1px var(--st-accent); }
.fst-steppers { display: flex; flex-direction: column; gap: 4px; }
.fst-stp { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 10px; background: #faf9f5; }
.fst-stp i { width: 6px; height: 22px; border-radius: 3px; flex: none; }
.fst-stp span { flex: 1; font-size: 13px; }
.fst-stp small { color: var(--st-mute); margin-right: 6px; font-size: 11px; }
.fst-stp button { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--st-line); background: #fff; cursor: pointer; font-size: 16px; line-height: 1; }
.fst-stp em { font-style: normal; width: 24px; text-align: center; font-weight: 700; }
.fst-seg { display: inline-flex; background: #efece3; padding: 4px; border-radius: 12px; gap: 2px; }
.fst-seg button { border: 0; background: transparent; padding: 7px 14px; border-radius: 9px; cursor: pointer; font-size: 13px; color: var(--st-ink2); font-weight: 600; }
.fst-seg button.on { background: #fff; color: var(--st-ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .1); }
.fst-seg.sm { display: flex; }
.fst-seg.sm button { flex: 1; padding: 6px; }
.fst-fd-r { margin-top: 16px; border-top: 1px dashed var(--st-line); padding-top: 14px; }
.fst-need { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.fst-need div { background: #16181c; color: #fff; border-radius: 12px; padding: 10px; text-align: center; }
.fst-need b { display: block; font-size: 22px; color: var(--st-accent); }
.fst-need span { font-size: 11.5px; color: #b9bcc3; }
.fst-bestpick { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 14px; background: #fff8dc; border: 1px solid #f3dd8a; }
.fst-bestpick small { font-size: 11px; color: var(--st-warn); font-weight: 700; }
.fst-bestpick b { font-size: 17px; direction: ltr; text-align: right; }
.fst-bestpick span { font-size: 12.5px; color: var(--st-ink2); margin-bottom: 6px; }
.fst-bestpick.none { background: #faf9f5; border-color: var(--st-line); }

.fst-catalog { min-width: 0; }
.fst-cattools {
	display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px; margin-bottom: 14px;
	background: rgba(255, 255, 255, .85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
	border-radius: 18px; border: 1px solid var(--st-line); box-shadow: var(--st-shadow);
}
.fst-cattools select { height: 40px; border-radius: 12px; border: 1px solid var(--st-line); padding: 0 10px; background: #fff; }
.fst-search { display: flex; align-items: center; gap: 6px; height: 40px; border-radius: 12px; border: 1px solid var(--st-line); background: #fff; padding: 0 10px; flex: 1; min-width: 160px; color: var(--st-mute); }
.fst-search input { border: 0; outline: 0; background: transparent; flex: 1; min-width: 0; height: 100%; color: var(--st-ink); }
.fst-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 14px; }
.fst-card {
	position: relative; background: var(--st-card); border-radius: 20px; border: 1px solid var(--st-line);
	overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .2s;
}
.fst-card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -22px rgba(30, 26, 10, .45); }
.fst-card.best { border-color: var(--st-accent); box-shadow: 0 0 0 2px var(--st-accent), var(--st-shadow); }
.fst-card.alt { border-color: #f3dd8a; }
.fst-card.cur::before { content: 'رک فعلی'; position: absolute; top: 10px; left: 10px; z-index: 2; font-size: 11px; background: #16181c; color: #fff; padding: 2px 8px; border-radius: 999px; }
.fst-flag { position: absolute; top: 10px; right: 10px; z-index: 2; font-size: 11.5px; font-weight: 800; background: var(--st-accent); color: #1b1606; padding: 3px 10px; border-radius: 999px; }
.fst-flag.alt { background: #fff3c4; }
.fst-thumb {
	height: 210px; background: radial-gradient(120px 90px at 50% 82%, rgba(253, 198, 10, .22), transparent 70%), linear-gradient(180deg, #fbfaf6, #efebdf);
	background-repeat: no-repeat; background-position: center; background-size: contain, auto;
}
.fst-thumb.ok { background-size: contain; background-position: center; }
.fst-thumb:not(.ok)::after { content: ''; display: block; width: 26px; height: 26px; margin: 92px auto 0; border-radius: 50%; border: 3px solid #e8e2cf; border-top-color: var(--st-accent); animation: fstspin 1s linear infinite; }
@keyframes fstspin { to { transform: rotate(360deg); } }
.fst-card-b { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.fst-card-t { display: flex; justify-content: space-between; align-items: center; }
.fst-card-t b { font-size: 15px; font-weight: 800; letter-spacing: .3px; }
.fst-type { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: #efece3; color: var(--st-ink2); }
.fst-type.standing { background: #e9f0ff; color: #2b4f9a; }
.fst-type.outdoor { background: #e8f6ee; color: #1f7a4d; }
.fst-card h3 { font-size: 12.5px; font-weight: 500; color: var(--st-ink2); line-height: 1.7; }
.fst-specs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.fst-specs li { background: #faf9f5; border-radius: 9px; padding: 5px 2px; text-align: center; font-size: 10.5px; color: var(--st-mute); }
.fst-specs b { display: block; font-size: 13.5px; color: var(--st-ink); }
.fst-card-f { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.fst-price { font-weight: 800; font-size: 15px; }
.fst-price small { font-size: 11px; font-weight: 500; color: var(--st-mute); }
.fst-price em { font-style: normal; font-size: 12.5px; color: var(--st-mute); font-weight: 600; }
.fst-cmpck { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--st-mute); cursor: pointer; }
.fst-cmpck input { accent-color: #16181c; }
.fst-card.customc { background: linear-gradient(160deg, #16181c, #2a2e36); color: #fff; border: 0; }
.fst-card.customc h3 { color: #fff; font-size: 17px; font-weight: 800; }
.fst-card.customc p { font-size: 12.5px; color: #b9bcc3; line-height: 1.9; flex: 1; }
.fst-cc-i { height: 150px; display: grid; place-items: center; color: var(--st-accent); }
.fst-cmpbar {
	position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 25;
	display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 18px;
	background: #16181c; color: #fff; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .7); font-size: 13px;
}
.fst-cmpbar[hidden] { display: none; }
.fst-cmpbar > span { display: flex; gap: 6px; align-items: center; color: var(--st-accent); }
.fst-cmpbar b { background: rgba(255, 255, 255, .1); padding: 3px 9px; border-radius: 8px; font-size: 12px; }
.fst-cmpbar .fst-btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .2); }

/* ---------------------------------------------------------------- مرحله ۲ */
.fst-build {
	grid-template-columns: 300px minmax(0, 1fr) 300px; grid-template-rows: minmax(0, 1fr) auto;
	height: calc(100vh - var(--st-top)); min-height: 560px; flex: none;
}
.fst-lib, .fst-elev { background: #fff; display: flex; flex-direction: column; min-height: 0; padding: 14px; gap: 10px; }
.fst-lib { border-left: 1px solid var(--st-line); overflow: auto; }
.fst-elev { border-right: 1px solid var(--st-line); }
.fst-panehead h2 { font-size: 15px; font-weight: 800; }
.fst-panehead small { font-size: 11.5px; color: var(--st-mute); }
.fst-libcats { display: flex; flex-wrap: wrap; gap: 4px; }
.fst-libcats button { border: 1px solid var(--st-line); background: #faf9f5; padding: 4px 10px; border-radius: 999px; font-size: 12px; cursor: pointer; color: var(--st-ink2); }
.fst-libcats button.on { background: #16181c; color: var(--st-accent); border-color: #16181c; }
.fst-libitems { display: flex; flex-direction: column; gap: 6px; }
.fst-li {
	display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 13px; text-align: right;
	border: 1px solid var(--st-line); background: #fff; cursor: grab; transition: border-color .15s, box-shadow .15s;
}
.fst-li:hover { border-color: var(--st-accent); box-shadow: 0 6px 16px -10px rgba(0, 0, 0, .35); }
.fst-li:active { cursor: grabbing; }
.fst-li.off { opacity: .42; }
.fst-li-sw { width: 34px; height: calc(8px + var(--u) * 6px); max-height: 34px; border-radius: 4px; flex: none; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 80%, #fff), var(--c)); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.fst-li-t { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.fst-li-t b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fst-li-t small { font-size: 11px; color: var(--st-mute); }
.fst-li-p { font-size: 11px; color: var(--st-ink2); background: #faf9f5; padding: 2px 6px; border-radius: 6px; }
.fst-li-p.fk { background: #fff3c4; color: #7a5a00; }
.fst-li-add { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: #16181c; color: var(--st-accent); flex: none; }
.fst-customdev { border: 1px dashed #d8d2bf; border-radius: 14px; padding: 8px 10px; background: #fcfbf7; }
.fst-customdev summary { cursor: pointer; font-size: 13px; font-weight: 600; display: flex; gap: 6px; align-items: center; list-style: none; }
.fst-customdev summary::-webkit-details-marker { display: none; }
.fst-cdform { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.fst-cdform label, .fst-crk label, .fst-ins-f label { display: flex; flex-direction: column; gap: 3px; font-size: 11.5px; color: var(--st-mute); }
.fst-cdform .full, .fst-crk .full { grid-column: 1 / -1; }
.fst-cdform input, .fst-crk input, .fst-crk select, .fst-ins-f input { height: 36px; border-radius: 10px; border: 1px solid var(--st-line); padding: 0 9px; background: #fff; width: 100%; color: var(--st-ink); }
.fst-cdform input[type=color] { padding: 3px; }
.fst-cdform .fst-btn { grid-column: 1 / -1; }

.fst-stage { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: #f3efe3; }
.fst-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.fst-stage canvas:active { cursor: grabbing; }
.fst-stage.drop-on::after { content: 'رها کنید تا به بالای رک اضافه شود'; position: absolute; inset: 14px; border: 2px dashed var(--st-accent); border-radius: 22px; display: grid; place-items: center; font-weight: 700; color: #7a5a00; background: rgba(253, 198, 10, .08); pointer-events: none; }
.fst-hud { position: absolute; top: 14px; right: 14px; left: 14px; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; pointer-events: none; flex-wrap: wrap; }
.fst-hud > * { pointer-events: auto; }
.fst-rackchip {
	display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 9px 14px; border-radius: 16px; cursor: pointer; text-align: right;
	background: rgba(22, 24, 28, .92); color: #fff; border: 0; box-shadow: 0 12px 30px -16px rgba(0, 0, 0, .7); position: relative; padding-left: 60px;
}
.fst-rackchip b { font-size: 16px; font-weight: 800; letter-spacing: .3px; }
.fst-rackchip span { font-size: 11.5px; color: #b9bcc3; }
.fst-rackchip em { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 11px; color: var(--st-accent); border: 1px solid rgba(253, 198, 10, .4); padding: 2px 8px; border-radius: 999px; }
.fst-meters { display: flex; gap: 6px; flex-wrap: wrap; }
.fst-m {
	display: flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 14px; min-height: 48px;
	background: rgba(255, 255, 255, .78); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
	border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 8px 24px -16px rgba(0, 0, 0, .4); color: var(--st-ink2);
}
.fst-m span { display: flex; flex-direction: column; line-height: 1.2; }
.fst-m b { font-size: 15px; color: var(--st-ink); font-weight: 800; }
.fst-m small { font-size: 10.5px; color: var(--st-mute); }
.fst-m.ring { padding: 4px 11px 4px 8px; }
.fst-m.ring svg { transform: rotate(-90deg); }
.fst-m.ring circle { fill: none; stroke-width: 4; }
.fst-m.ring .bg { stroke: #ebe6d6; }
.fst-m.ring .fg { stroke: var(--st-accent); stroke-linecap: round; transition: stroke-dasharray .3s; }
.fst-m.ring .fg.hi { stroke: #e2771b; }
.fst-m.price { background: #16181c; border-color: #16181c; }
.fst-m.price b { color: var(--st-accent); }
.fst-m.price small { color: #b9bcc3; }
.fst-dock {
	position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; padding: 6px; border-radius: 18px;
	background: rgba(22, 24, 28, .9); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .7); max-width: calc(100% - 24px);
}
.fst-dock-g { display: flex; gap: 2px; }
.fst-dock-g + .fst-dock-g { border-right: 1px solid rgba(255, 255, 255, .12); padding-right: 8px; }
.fst-dock button { border: 0; background: transparent; color: #c9ccd2; height: 36px; min-width: 36px; padding: 0 10px; border-radius: 11px; cursor: pointer; font-size: 12.5px; display: grid; place-items: center; }
.fst-dock button:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.fst-dock button.on { color: var(--st-accent); background: rgba(253, 198, 10, .13); }
.fst-hint { position: absolute; bottom: 76px; left: 16px; font-size: 11px; max-width: 200px; line-height: 1.7; color: #8f897a; pointer-events: none; }
.fst-night .fst-stage { background: #0e1014; }
.fst-night .fst-hint { color: #5f646d; }

.fst-tools { display: flex; gap: 4px; }
.fst-tools button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 4px; height: 34px; border-radius: 10px; border: 1px solid var(--st-line); background: #faf9f5; cursor: pointer; font-size: 12px; color: var(--st-ink2); }
.fst-tools button:hover { border-color: var(--st-accent); color: var(--st-ink); }
.fst-ev { flex: 1; min-height: 200px; overflow: auto; padding: 4px 0; border-radius: 14px; background: linear-gradient(180deg, #1b1e23, #23272e); position: relative; }
.fst-ev.drop-on { box-shadow: inset 0 0 0 2px var(--st-accent); }
.fst-ev-rack { display: flex; margin: 0 auto; width: calc(100% - 16px); position: relative; }
.fst-ev-nums { width: 28px; flex: none; display: flex; flex-direction: column; }
.fst-ev-nums span { height: var(--s); display: flex; align-items: center; justify-content: center; font-size: 9.5px; color: #6e747e; border-bottom: 1px solid rgba(255, 255, 255, .03); }
.fst-ev-body { flex: 1; position: relative; border-right: 3px solid #3a3f47; border-left: 3px solid #3a3f47; background: repeating-linear-gradient(180deg, transparent 0 calc(var(--s) - 1px), rgba(255, 255, 255, .05) calc(var(--s) - 1px) var(--s)); }
.fst-ev-free { position: absolute; left: 3px; right: 3px; cursor: pointer; }
.fst-ev-free:hover { background: rgba(253, 198, 10, .08); }
.fst-ev-it {
	position: absolute; left: 2px; right: 2px; border-radius: 4px; padding: 0 8px; display: flex; align-items: center; justify-content: space-between; gap: 6px;
	background: linear-gradient(180deg, color-mix(in srgb, var(--c) 82%, #fff), var(--c)); color: #fff; font-size: 11px; cursor: grab; user-select: none; touch-action: none;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .25); overflow: hidden; transition: box-shadow .15s;
}
.fst-ev-it .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; text-shadow: 0 1px 1px rgba(0, 0, 0, .35); }
.fst-ev-it .uu { font-size: 9.5px; opacity: .85; flex: none; }
.fst-ev-it.blank { background: repeating-linear-gradient(90deg, #3c424b 0 6px, #353a42 6px 12px); color: #9aa0a9; }
.fst-ev-it.sel { box-shadow: 0 0 0 2px var(--st-accent), 0 0 18px rgba(253, 198, 10, .5); z-index: 2; }
.fst-ev-it.bad { box-shadow: 0 0 0 2px var(--st-bad); }
.fst-ev-it.drag { z-index: 5; opacity: .9; cursor: grabbing; box-shadow: 0 0 0 2px var(--st-accent), 0 10px 20px rgba(0, 0, 0, .5); transition: none; }
.fst-ev-it.pulse { animation: fstpulse .7s ease-out; }
@keyframes fstpulse { 0% { box-shadow: 0 0 0 0 rgba(253, 198, 10, .9); } 100% { box-shadow: 0 0 0 10px rgba(253, 198, 10, 0); } }
.fst-ev-mark { position: absolute; left: -4px; right: -4px; height: 3px; background: var(--st-accent); border-radius: 2px; z-index: 6; box-shadow: 0 0 10px var(--st-accent); }
.fst-ev-mark[hidden] { display: none; }
.fst-ev-empty { position: absolute; top: 40%; left: 20px; right: 20px; text-align: center; color: #8d929b; font-size: 12.5px; }
.fst-insp { flex: none; }
.fst-ins { border: 1px solid var(--st-line); border-radius: 14px; padding: 10px; background: #fcfbf7; display: flex; flex-direction: column; gap: 8px; }
.fst-ins-h { display: flex; align-items: center; gap: 8px; }
.fst-ins-h i { width: 10px; height: 10px; border-radius: 3px; }
.fst-ins-h b { flex: 1; font-size: 13px; }
.fst-ins-h span { font-size: 11px; color: var(--st-mute); }
.fst-ins-h button { border: 0; background: transparent; cursor: pointer; color: var(--st-mute); }
.fst-ins-f { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.fst-ins-a { display: flex; gap: 4px; }
.fst-ins-a button { flex: 1; height: 34px; border-radius: 10px; border: 1px solid var(--st-line); background: #fff; cursor: pointer; display: grid; place-items: center; }
.fst-ins-a button.del { color: var(--st-bad); }
.fst-crk { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 10px; border-radius: 14px; background: #fff8dc; border: 1px solid #f3dd8a; margin-bottom: 8px; }
.fst-crk > b { grid-column: 1 / -1; font-size: 12.5px; display: flex; gap: 6px; align-items: center; }

.fst-next { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: #fff; border-top: 1px solid var(--st-line); }
.fst-next-s { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12.5px; min-width: 0; }
.fst-ok { color: var(--st-ok); display: inline-flex; gap: 4px; align-items: center; font-weight: 700; }
.fst-bad { color: var(--st-bad); font-weight: 600; }
.fst-warn { color: var(--st-warn); }
.fst-mtabs { display: none; }

/* ---------------------------------------------------------------- مرحله ۳ */
.fst-review { max-width: 1360px; width: calc(100% - 40px); margin: 22px auto 40px; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 20px; align-items: start; }
.fst-rv-media { background: #fff; border-radius: 24px; border: 1px solid var(--st-line); box-shadow: var(--st-shadow); padding: 16px; }
.fst-rv-hero { border-radius: 18px; background: radial-gradient(240px 120px at 50% 88%, rgba(253, 198, 10, .25), transparent 70%), linear-gradient(180deg, #fbfaf6, #ece7d8); display: grid; place-items: center; height: 520px; }
.fst-rv-hero img { max-height: 100%; max-width: 100%; }
.fst-rv-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 10px 0 16px; }
.fst-rv-thumbs figure { margin: 0; border-radius: 14px; border: 1px solid var(--st-line); background: #faf9f5; cursor: pointer; padding: 6px; text-align: center; }
.fst-rv-thumbs figure.on { border-color: var(--st-accent); box-shadow: 0 0 0 1px var(--st-accent); }
.fst-rv-thumbs img { height: 96px; max-width: 100%; object-fit: contain; }
.fst-rv-thumbs figcaption { font-size: 11.5px; color: var(--st-mute); }
.fst-rv-specs h3, .fst-sugs h3 { font-size: 15px; font-weight: 800; margin: 6px 0 10px; display: flex; gap: 6px; align-items: center; }
.fst-rv-specs dl { margin: 0 0 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fst-rv-specs dl div { background: #faf9f5; border-radius: 12px; padding: 9px 12px; }
.fst-rv-specs dt { font-size: 11.5px; color: var(--st-mute); }
.fst-rv-specs dd { margin: 2px 0 0; font-size: 13.5px; font-weight: 600; }
.fst-rv-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.fst-rv-list li { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; background: #faf9f5; font-size: 13px; }
.fst-rv-list i { width: 8px; height: 18px; border-radius: 3px; flex: none; }
.fst-rv-list span { flex: 1; }
.fst-rv-list em { font-style: normal; font-weight: 700; font-size: 12px; }
.fst-rv-list small { color: var(--st-mute); font-size: 11px; min-width: 70px; text-align: left; }
.fst-rv-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: calc(var(--st-top) + 16px); }
.fst-inv { background: #16181c; color: #f3f1ea; border-radius: 24px; padding: 18px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.fst-inv-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.fst-inv-h h2 { font-size: 18px; font-weight: 800; }
.fst-fanstp { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #b9bcc3; }
.fst-fanstp button { width: 28px; height: 28px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .15); background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer; }
.fst-fanstp em { font-style: normal; color: #fff; font-weight: 700; min-width: 16px; text-align: center; }
.fst-fanstp small { font-size: 10.5px; color: #80858e; }
.fst-invt { width: 100%; border-collapse: collapse; font-size: 13px; }
.fst-invt td { padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, .07); vertical-align: top; }
.fst-invt tr.rk td { color: #fff; font-weight: 700; }
.fst-invt .p { text-align: left; white-space: nowrap; padding-right: 10px; }
.fst-invt .p small { font-size: 10.5px; color: #8f949c; font-weight: 400; }
.fst-invt .p em { font-style: normal; color: #8f949c; }
.fst-invt .q { color: var(--st-accent); font-size: 12px; }
.fst-invt tfoot td { border: 0; padding-top: 14px; font-size: 14px; }
.fst-invt tfoot td small { display: block; font-size: 10.5px; color: #8f949c; }
.fst-invt tfoot b { font-size: 22px; color: var(--st-accent); }
.fst-devs { margin-top: 10px; font-size: 12px; color: #9a9fa8; line-height: 1.9; }
.fst-cta { display: flex; flex-direction: column; gap: 8px; }
.fst-cta-row { display: flex; gap: 6px; flex-wrap: wrap; }
.fst-cta-row .fst-btn { flex: 1; min-width: 0; padding: 0 8px; font-size: 12.5px; }
.fst-sugs { background: #fff; border-radius: 20px; padding: 14px; border: 1px solid var(--st-line); }
.fst-sug { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #fff8dc; border: 1px solid #f6e3a0; margin-top: 6px; }
.fst-sug > div { flex: 1; }
.fst-sug b { font-size: 13px; }
.fst-sug p { font-size: 12px; color: var(--st-ink2); line-height: 1.8; }
.fst-sug.warn { background: #fff1ec; border-color: #f6cdbf; }

/* ---------------------------------------------------------------- پیام و پنجره */
.fst-toast {
	position: fixed; bottom: 150px; left: 50%; transform: translate(-50%, 20px); z-index: 60; opacity: 0; pointer-events: none;
	background: #16181c; color: #fff; padding: 11px 18px; border-radius: 14px; font-size: 13px; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .7);
	transition: opacity .2s, transform .2s; max-width: calc(100% - 32px); text-align: center; border-right: 4px solid var(--st-accent);
}
.fst-toast.on { opacity: 1; transform: translate(-50%, 0); }
.fst-toast.bad { border-right-color: var(--st-bad); }
.fst-modal { position: fixed; inset: 0; z-index: 70; background: rgba(12, 13, 16, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; }
.fst-modal[hidden] { display: none; }
.fst-modal-b { position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: 24px; padding: 22px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.fst-modal-b.wide { width: min(980px, 100%); }
.fst-modal-c > h2 { font-size: 19px; font-weight: 800; display: flex; align-items: center; gap: 8px; margin-bottom: 6px; padding-left: 36px; }
.fst-x { position: absolute; top: 14px; left: 14px; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--st-line); background: #fff; cursor: pointer; display: grid; place-items: center; }
.fst-tblwrap { overflow: auto; margin-top: 12px; }
.fst-cmpt { width: 100%; border-collapse: collapse; font-size: 13px; }
.fst-cmpt th { text-align: right; color: var(--st-mute); font-weight: 500; padding: 9px 10px; white-space: nowrap; width: 130px; }
.fst-cmpt td { padding: 9px 10px; text-align: center; border-right: 1px solid var(--st-line); }
.fst-cmpt tr:nth-child(even) { background: #faf9f5; }
.fst-cmpimg { height: 150px; background-size: contain; background-position: center; background-repeat: no-repeat; }
.fst-saved { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.fst-sv { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; border: 1px solid var(--st-line); }
.fst-sv img, .fst-sv-ph { width: 48px; height: 60px; object-fit: contain; border-radius: 8px; background: #f3efe3; display: grid; place-items: center; color: var(--st-mute); flex: none; }
.fst-sv > div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.fst-sv b { font-size: 13.5px; }
.fst-sv small { font-size: 11.5px; color: var(--st-mute); }
.fst-emptybox { margin: 14px 0; padding: 24px; text-align: center; border: 1px dashed #d8d2bf; border-radius: 16px; color: var(--st-mute); font-size: 13px; }
.fst-qform { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.fst-qform label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--st-ink2); }
.fst-qform .full { grid-column: 1 / -1; }
.fst-qform input, .fst-qform textarea { border-radius: 12px; border: 1px solid #ddd8c8; padding: 9px 11px; background: #fff; outline: 0; }
.fst-qform input:focus, .fst-qform textarea:focus { border-color: var(--st-accent); box-shadow: 0 0 0 3px rgba(253, 198, 10, .25); }
.fst-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.fst-qsum { background: #faf9f5; border-radius: 12px; padding: 10px 12px; font-size: 12.5px; }
.fst-qmsg { color: var(--st-bad); font-size: 12.5px; min-height: 1em; }
.fst-done { text-align: center; padding: 16px 6px 4px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.fst-done .fst-ic { color: var(--st-ok); stroke-width: 2.4; }
.fst-print { display: none; }

/* ---------------------------------------------------------------- ریسپانسیو */
@media (max-width: 1180px) {
	.fst-build { grid-template-columns: 260px minmax(0, 1fr) 250px; }
	.fst-steps span { display: none; }
	.fst-steps button.on span { display: inline; }
	.fst-topact .fst-tbtn span { display: none; }
}
@media (max-width: 960px) {
	:root { --st-top: 56px; }
	.fst-root { --st-top: 56px; }
	.fst-top { padding: 0 10px; gap: 8px; }
	.fst-brand small { display: none; }
	.fst-brand img { width: 32px; height: 32px; }
	.fst-steps { margin: 0 auto; }
	.fst-steps button { padding: 6px 9px; }
	.fst-hero { padding: 24px 16px 70px; }
	.fst-hero-s { width: 100%; }
	.fst-hero-s div { flex: 1; min-width: 0; padding: 8px; }
	.fst-pickgrid { grid-template-columns: 1fr; width: calc(100% - 24px); }
	.fst-resume { width: calc(100% - 24px); flex-wrap: wrap; }
	.fst-finder { position: static; }
	.fst-cards { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
	.fst-thumb { height: 170px; }
	.fst-specs { grid-template-columns: repeat(2, 1fr); }
	.fst-cmpbar { width: calc(100% - 24px); flex-wrap: wrap; justify-content: center; }

	.fst-build { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto auto; height: calc(100vh - var(--st-top)); height: calc(100dvh - var(--st-top)); }
	.fst-lib, .fst-elev, .fst-stage { grid-row: 1; grid-column: 1; display: none; border: 0; }
	.fst-app[data-pane="lib"] .fst-lib, .fst-app[data-pane="elev"] .fst-elev, .fst-app[data-pane="3d"] .fst-stage { display: flex; }
	.fst-app[data-pane="3d"] .fst-stage { display: block; }
	.fst-mtabs { display: flex; grid-row: 2; background: #16181c; padding: 6px; gap: 4px; }
	.fst-mtabs button { flex: 1; height: 40px; border: 0; border-radius: 11px; background: transparent; color: #b9bcc3; font-size: 13px; font-weight: 600; cursor: pointer; }
	.fst-mtabs button.on { background: var(--st-accent); color: #1b1606; }
	.fst-next { grid-row: 3; padding: 8px 10px; }
	.fst-next-s { display: none; }
	.fst-next .fst-btn { width: 100%; }
	.fst-hud { top: 8px; right: 8px; left: 8px; }
	.fst-rackchip { padding: 7px 10px 7px 50px; }
	.fst-rackchip b { font-size: 14px; }
	.fst-m { min-height: 40px; padding: 4px 8px; }
	.fst-m b { font-size: 13px; }
	.fst-m:not(.ring):not(.price) .fst-ic { display: none; }
	.fst-dock { bottom: 8px; flex-direction: column; gap: 4px; padding: 4px; border-radius: 14px; }
	.fst-dock-g + .fst-dock-g { border: 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 4px; }
	.fst-dock button { height: 32px; min-width: 32px; padding: 0 7px; }
	.fst-hint { display: none; }

	.fst-review { grid-template-columns: 1fr; width: calc(100% - 24px); margin-top: 12px; }
	.fst-rv-hero { height: 360px; }
	.fst-rv-side { position: static; }
	.fst-rv-specs dl { grid-template-columns: 1fr; }
	.fst-qform { grid-template-columns: 1fr; }
	.fst-toast { bottom: 120px; }
}
@media (max-width: 520px) {
	.fst-topact .fst-tbtn { display: none; }
	.fst-steps button { padding: 6px 8px; font-size: 12px; white-space: nowrap; }
	.fst-topact .fst-tbtn[data-a="designs"] { display: inline-flex; }
	.fst-steps i { width: 20px; height: 20px; }
	.fst-tiles { grid-template-columns: repeat(2, 1fr); }
	.fst-cattools .fst-seg { width: 100%; }
	.fst-cattools .fst-seg button { flex: 1; padding: 7px 4px; }
	.fst-cards { grid-template-columns: 1fr 1fr; }
	.fst-card-b { padding: 10px; }
	.fst-card .fst-btn.block { font-size: 12.5px; padding: 0 6px; }
	.fst-hero-s b { font-size: 19px; }
}

/* ---------------------------------------------------------------- چاپ */
@media print {
	@page { size: A4; margin: 12mm; }
	html, body { background: #fff !important; }
	.fst-app > *:not(.fst-print) { display: none !important; }
	.fst-app { min-height: 0; background: #fff; }
	.fst-print { display: block !important; color: #111; font-size: 11pt; }
	.fst-print .pr-h { display: flex; align-items: center; gap: 10px; border-bottom: 3px solid #fdc60a; padding-bottom: 8px; margin-bottom: 10px; }
	.fst-print .pr-h img { width: 40px; height: 40px; }
	.fst-print .pr-h div { flex: 1; display: flex; flex-direction: column; }
	.fst-print .pr-h b { font-size: 16pt; }
	.fst-print .pr-imgs { display: flex; gap: 8px; }
	.fst-print figure { flex: 1; margin: 0; text-align: center; border: 1px solid #ddd; border-radius: 8px; padding: 4px; }
	.fst-print figure img { height: 62mm; max-width: 100%; object-fit: contain; }
	.fst-print figcaption { font-size: 9pt; color: #666; }
	.fst-print h3 { font-size: 12pt; margin: 12px 0 6px; }
	.fst-print .pr-t { width: 100%; border-collapse: collapse; margin-top: 8px; }
	.fst-print .pr-t th, .fst-print .pr-t td { border: 1px solid #ddd; padding: 4px 8px; text-align: right; font-size: 10pt; }
	.fst-print .pr-t th { background: #f6f4ec; }
	.fst-print .pr-f { margin-top: 10px; font-size: 8.5pt; color: #666; word-break: break-all; }
}

/* درج داخل برگه / المنتور */
.fst-embed { position: relative; isolation: isolate; }
.fst-embed .fst-app { min-height: 760px; border-radius: 20px; overflow: clip; }
.fst-embed .fst-top { position: relative; }
.fst-embed .fst-build { height: max(640px, calc(100vh - 120px)); }

/* Fuka yellow identity — interface only; rack finishes remain model-specific. */
.fst-root { --st-accent: #fdc60a; --st-accent2: #ffdc54; }
.fst-root .fst-top { background: #fdc60a; color: #211c0d; }
.fst-root .fst-brand small { color: #51441d; }
.fst-root .fst-steps { background: rgba(255,255,255,.4); }
.fst-root .fst-steps button { color: #51441d; }
.fst-root .fst-steps button.on { background: #fff; color: #211c0d; }
.fst-root .fst-steps button.done i { background: #fff4c2; color: #33290c; }
.fst-root .fst-topact .fst-tbtn { background: #fff6ce; color: #33290c; border-color: rgba(70,52,0,.18); }
.fst-root .fst-topact .fst-tbtn:hover { background: #fff; color: #211c0d; }
