/* Arab Templates — high-conversion UX layer (quiz, before/after, ROI, social proof)
   Identity: navy #0F172A · gold #C5A059 · full light-theme support. */

.atx-sec {
  --atx-navy: #0F172A;
  --atx-ink: #E9EFF8;
  --atx-muted: #93A4BC;
  --atx-line: rgba(255, 255, 255, .1);
  --atx-panel: linear-gradient(160deg, rgba(23, 34, 54, .96), rgba(11, 19, 34, .98));
  position: relative;
  max-width: 1380px;
  margin: 26px auto 0;
  padding: 0 26px;
  color: var(--atx-ink);
  font: 500 13px/1.7 system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
}
html[data-at-theme="light"] .atx-sec,
html[data-theme="light"] .atx-sec {
  --atx-ink: #1B2436;
  --atx-muted: #5C677E;
  --atx-line: rgba(15, 23, 42, .12);
  --atx-panel: linear-gradient(160deg, #FFFFFF, #FBF8F1);
}
.atx-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.atx-kicker { display: inline-flex; align-items: center; gap: 8px; color: #C5A059; font-size: 9.5px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.atx-kicker:before { content: ""; width: 20px; height: 1px; background: #C5A059; }
.atx-head h2 { margin: 5px 0 0; font-size: clamp(19px, 2.5vw, 28px); letter-spacing: -.02em; line-height: 1.25; }
.atx-head p { margin: 5px 0 0; max-width: 700px; color: var(--atx-muted); font-size: 11.5px; }
.atx-card { border: 1px solid var(--atx-line); border-radius: 18px; background: var(--atx-panel); padding: 18px; box-shadow: 0 18px 50px rgba(2, 8, 23, .28); }
html[data-at-theme="light"] .atx-card { box-shadow: 0 16px 40px rgba(15, 23, 42, .08); }
.atx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid #C5A059; background: #C5A059; color: #0F172A; border-radius: 9px; padding: 9px 14px; font: 900 10.5px/1.4 inherit; text-decoration: none; cursor: pointer; }
.atx-btn:hover { filter: brightness(1.06); }
.atx-btn.ghost { background: transparent; color: #C5A059; }
.atx-btn.ghost:hover { background: rgba(197, 160, 89, .12); }

/* ---------- 1 · solution finder quiz ---------- */
.atx-quiz { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 16px; }
.atx-quiz-main { position: relative; overflow: hidden; }
.atx-quiz-main:before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px 160px at 92% -10%, rgba(197, 160, 89, .16), transparent 70%); pointer-events: none; }
.atx-progress { position: relative; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.atx-progress-track { flex: 1; height: 5px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; }
html[data-at-theme="light"] .atx-progress-track { background: rgba(15, 23, 42, .1); }
.atx-progress-fill { height: 100%; width: 25%; border-radius: 99px; background: linear-gradient(90deg, #C5A059, #E7CF93); transition: width .25s ease; }
.atx-progress-count { color: var(--atx-muted); font-size: 9.5px; font-weight: 900; letter-spacing: .06em; direction: ltr; }
.atx-q { position: relative; }
.atx-q-head { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.atx-q-no { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; border: 1px solid rgba(197, 160, 89, .4); background: rgba(197, 160, 89, .12); color: #E7CF93; font-size: 10px; font-weight: 900; }
.atx-q h3 { margin: 0; font-size: 14px; font-weight: 900; }
.atx-q small { display: block; color: var(--atx-muted); font-size: 10px; margin-bottom: 10px; }
.atx-opts { display: flex; flex-wrap: wrap; gap: 7px; }
.atx-opt { border: 1px solid var(--atx-line); background: rgba(255, 255, 255, .03); color: var(--atx-ink); border-radius: 9px; padding: 8px 11px; font: 800 10.5px/1.35 inherit; cursor: pointer; transition: .15s; }
html[data-at-theme="light"] .atx-opt { background: #fff; }
.atx-opt:hover { border-color: rgba(197, 160, 89, .6); color: #C5A059; }
.atx-opt.on { border-color: #C5A059; background: rgba(197, 160, 89, .16); color: #E7CF93; }
html[data-at-theme="light"] .atx-opt.on { color: #7A5A17; }
.atx-q-nav { display: flex; gap: 8px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.atx-link { border: 0; background: none; color: var(--atx-muted); font: 800 10px/1.4 inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.atx-results { display: grid; gap: 8px; }
.atx-res { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center; border: 1px solid var(--atx-line); border-radius: 12px; padding: 10px 11px; background: rgba(255, 255, 255, .025); }
html[data-at-theme="light"] .atx-res { background: #fff; }
.atx-res-rank { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: rgba(197, 160, 89, .16); border: 1px solid rgba(197, 160, 89, .35); color: #C5A059; font-weight: 900; font-size: 11px; }
.atx-res b { display: block; font-size: 11.5px; line-height: 1.45; }
.atx-res small { display: block; color: var(--atx-muted); font-size: 9.5px; }
.atx-res-price { text-align: end; font-size: 11px; font-weight: 900; color: #C5A059; white-space: nowrap; }
.atx-res-actions { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; }
.atx-res-actions a, .atx-res-actions button { border: 1px solid var(--atx-line); background: transparent; color: var(--atx-ink); border-radius: 7px; padding: 5px 9px; font: 900 9.5px/1.4 inherit; text-decoration: none; cursor: pointer; }
.atx-res-actions a:hover, .atx-res-actions button:hover { border-color: #C5A059; color: #C5A059; }
.atx-offer { margin-top: 12px; border: 1px solid rgba(197, 160, 89, .4); border-radius: 12px; background: linear-gradient(135deg, rgba(197, 160, 89, .16), rgba(197, 160, 89, .04)); padding: 12px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.atx-offer b { display: block; font-size: 12px; }
.atx-offer small { color: var(--atx-muted); font-size: 9.5px; }
.atx-offer .atx-btn { margin-inline-start: auto; }
.atx-side { display: grid; gap: 10px; align-content: start; }
.atx-side-row { display: flex; align-items: center; gap: 9px; border-bottom: 1px dashed var(--atx-line); padding-bottom: 9px; font-size: 10.5px; }
.atx-side-row:last-child { border: 0; padding-bottom: 0; }
.atx-side-ico { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: rgba(197, 160, 89, .12); color: #C5A059; font-size: 12px; flex: 0 0 auto; }
.atx-side-row b { font-size: 10.5px; }
.atx-side-row small { display: block; color: var(--atx-muted); font-size: 9px; }

/* ---------- 2 · before / after slider ---------- */
.atx-ba { display: grid; gap: 10px; }
.atx-ba-stage { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--atx-line); min-height: 330px; user-select: none; touch-action: pan-y; background: #0B1424; }
html[data-at-theme="light"] .atx-ba-stage { background: #F6F2E9; }
.atx-ba-layer { position: absolute; inset: 0; padding: 16px; }
.atx-ba-before { clip-path: inset(0 calc(100% - var(--atx-split, 50%)) 0 0); background: #0A101C; }
html[data-at-theme="light"] .atx-ba-before { background: #EDEAE2; }
.atx-ba-after { clip-path: inset(0 0 0 var(--atx-split, 50%)); background: radial-gradient(600px 260px at 20% 0, rgba(197, 160, 89, .14), transparent 65%), #0F172A; }
html[data-at-theme="light"] .atx-ba-after { background: radial-gradient(600px 260px at 20% 0, rgba(197, 160, 89, .18), transparent 65%), #FFFFFF; }
.atx-ba-tag { position: absolute; top: 12px; inset-inline-start: 12px; border-radius: 99px; padding: 3px 9px; font-size: 8.5px; font-weight: 900; letter-spacing: .05em; z-index: 2; }
.atx-ba-before .atx-ba-tag { background: rgba(239, 68, 68, .16); border: 1px solid rgba(239, 68, 68, .4); color: #FCA5A5; }
.atx-ba-after .atx-ba-tag { background: rgba(197, 160, 89, .18); border: 1px solid rgba(197, 160, 89, .5); color: #E7CF93; }
.atx-ba-handle { position: absolute; top: 0; bottom: 0; inset-inline-start: var(--atx-split, 50%); width: 2px; background: #C5A059; z-index: 3; box-shadow: 0 0 0 1px rgba(0, 0, 0, .18); }
.atx-ba-handle:after { content: "⇄"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #C5A059; color: #0F172A; font-size: 14px; font-weight: 900; box-shadow: 0 8px 22px rgba(0, 0, 0, .35); }
.atx-ba-range { width: 100%; accent-color: #C5A059; }
.atx-sheet { display: grid; gap: 6px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 9px; color: #C7D2E4; }
html[data-at-theme="light"] .atx-sheet { color: #6B7280; }
.atx-sheet-row { display: grid; grid-template-columns: 1.2fr .8fr .8fr .9fr; gap: 5px; }
.atx-sheet-cell { border: 1px solid rgba(148, 163, 184, .22); border-radius: 4px; padding: 4px 6px; background: rgba(148, 163, 184, .06); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.atx-sheet-cell.bad { border-color: rgba(239, 68, 68, .35); background: rgba(239, 68, 68, .1); color: #FCA5A5; }
.atx-sheet-cell.warn { border-color: rgba(245, 158, 11, .35); background: rgba(245, 158, 11, .1); color: #FCD34D; }
.atx-ba-dash { display: grid; gap: 10px; }
.atx-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.atx-kpi { border: 1px solid rgba(197, 160, 89, .26); border-radius: 9px; padding: 7px 8px; background: rgba(197, 160, 89, .07); }
.atx-kpi small { display: block; color: #9FB0C7; font-size: 8px; font-weight: 800; }
html[data-at-theme="light"] .atx-kpi small { color: #6B7280; }
.atx-kpi b { font-size: 13px; color: #F2D99B; }
html[data-at-theme="light"] .atx-kpi b { color: #7A5A17; }
.atx-bars { display: flex; align-items: flex-end; gap: 5px; height: 62px; }
.atx-bars i { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #C5A059, rgba(197, 160, 89, .25)); }
.atx-dash-rows { display: grid; gap: 5px; }
.atx-dash-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid var(--atx-line); border-radius: 7px; padding: 5px 8px; font-size: 8.5px; }
.atx-dash-row .ok { color: #6EE7B7; font-weight: 900; }
html[data-at-theme="light"] .atx-dash-row .ok { color: #047857; }
.atx-ba-hint { text-align: center; color: var(--atx-muted); font-size: 9.5px; }

/* ---------- 3 · ROI ---------- */
.atx-roi { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 16px; }
.atx-field { display: block; margin-bottom: 12px; }
.atx-field-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 10.5px; font-weight: 800; color: var(--atx-muted); margin-bottom: 5px; }
.atx-field-top b { color: #C5A059; font-size: 13px; direction: ltr; }
.atx-range { width: 100%; accent-color: #C5A059; height: 22px; }
.atx-mini { display: flex; gap: 8px; flex-wrap: wrap; }
.atx-mini label { flex: 1; min-width: 140px; font-size: 9.5px; color: var(--atx-muted); font-weight: 800; display: grid; gap: 4px; }
.atx-mini input, .atx-mini select { border: 1px solid var(--atx-line); background: rgba(255, 255, 255, .04); color: var(--atx-ink); border-radius: 8px; padding: 7px 8px; font: 800 11px/1.4 inherit; }
html[data-at-theme="light"] .atx-mini input, html[data-at-theme="light"] .atx-mini select { background: #fff; }
.atx-roi-out { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.atx-roi-k { border: 1px solid var(--atx-line); border-radius: 11px; padding: 10px; background: rgba(255, 255, 255, .03); }
html[data-at-theme="light"] .atx-roi-k { background: #fff; }
.atx-roi-k small { display: block; color: var(--atx-muted); font-size: 8.5px; font-weight: 800; }
.atx-roi-k b { display: block; margin-top: 2px; font-size: clamp(13px, 1.8vw, 18px); color: #F2D99B; direction: ltr; text-align: start; }
html[data-at-theme="light"] .atx-roi-k b { color: #7A5A17; }
.atx-roi-k.gold { border-color: rgba(197, 160, 89, .45); background: rgba(197, 160, 89, .1); }
.atx-roi-note { color: var(--atx-muted); font-size: 9px; line-height: 1.8; margin: 10px 0 0; }
.atx-meter { margin-top: 10px; display: grid; gap: 6px; }
.atx-meter-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; align-items: center; gap: 7px; font-size: 9px; color: var(--atx-muted); }
.atx-meter-bar { height: 8px; border-radius: 99px; background: rgba(148, 163, 184, .18); overflow: hidden; }
.atx-meter-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #C5A059, #E7CF93); }
.atx-meter-bar.slate i { background: linear-gradient(90deg, #64748B, #94A3B8); }
.atx-meter b { color: var(--atx-ink); direction: ltr; font-size: 9.5px; }

/* ---------- 5 · live social proof ---------- */
.atx-proof { position: fixed; inset-inline-end: 16px; bottom: 72px; z-index: 9400; width: min(322px, calc(100vw - 32px)); transform: translateY(18px); opacity: 0; pointer-events: none; transition: opacity .3s ease, transform .3s ease; }
.atx-proof.on { opacity: 1; transform: none; pointer-events: auto; }
.atx-proof-card { display: grid; grid-template-columns: 34px minmax(0, 1fr) 20px; gap: 9px; align-items: center; border: 1px solid rgba(197, 160, 89, .38); border-radius: 12px; background: rgba(15, 23, 42, .97); color: #E9EFF8; padding: 10px 11px; box-shadow: 0 18px 44px rgba(2, 8, 23, .45); backdrop-filter: blur(8px); }
html[data-at-theme="light"] .atx-proof-card { background: #fffdf8; color: #1B2436; border-color: rgba(120, 92, 40, .3); }
.atx-proof-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: rgba(197, 160, 89, .16); color: #C5A059; font-size: 14px; }
.atx-proof-txt { font-size: 9.5px; line-height: 1.6; min-width: 0; }
.atx-proof-txt b { display: block; font-size: 10px; }
.atx-proof-txt span { color: #93A4BC; }
html[data-at-theme="light"] .atx-proof-txt span { color: #67718A; }
.atx-proof-x { border: 0; background: transparent; color: #8296AF; font-size: 14px; line-height: 1; cursor: pointer; padding: 2px; }
.atx-proof-x:hover { color: #C5A059; }
.atx-proof-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #34D399; margin-inline-end: 4px; box-shadow: 0 0 0 3px rgba(52, 211, 153, .16); }

/* ---------- Hero prompt-to-template bar ---------- */
.atx-prompt { position: relative; margin: 12px 0 10px; border-radius: 16px; padding: 1px; background: linear-gradient(120deg, rgba(197, 160, 89, .75), rgba(197, 160, 89, .16) 45%, rgba(197, 160, 89, .7)); box-shadow: 0 0 0 1px rgba(197, 160, 89, .15), 0 16px 44px rgba(197, 160, 89, .12); }
.atx-prompt-in { border-radius: 15px; background: rgba(11, 19, 34, .96); padding: 11px 12px; }
html[data-at-theme="light"] .atx-prompt-in, html[data-theme="light"] .atx-prompt-in { background: #FFFDF8; }
.atx-prompt-head { display: flex; align-items: center; gap: 7px; font-size: 9.5px; font-weight: 900; color: #E7CF93; letter-spacing: .03em; }
html[data-at-theme="light"] .atx-prompt-head { color: #7A5A17; }
.atx-prompt-tag { border: 1px solid rgba(197, 160, 89, .45); border-radius: 99px; padding: 1px 7px; font-size: 8px; }
.atx-prompt-row { display: flex; gap: 7px; align-items: center; margin-top: 7px; flex-wrap: wrap; }
.atx-prompt-row input { flex: 1; min-width: 200px; border: 1px solid rgba(197, 160, 89, .3); background: rgba(255, 255, 255, .04); color: inherit; border-radius: 9px; padding: 9px 11px; font: 700 11.5px/1.5 inherit; outline: 0; }
.atx-prompt-row input:focus { border-color: #C5A059; box-shadow: 0 0 0 3px rgba(197, 160, 89, .14); }
.atx-prompt-row .atx-btn { white-space: nowrap; }
.atx-prompt-chips { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 7px; }
.atx-prompt-chip { border: 1px solid rgba(197, 160, 89, .25); background: transparent; color: var(--atx-muted); border-radius: 99px; padding: 2px 8px; font: 800 8.5px/1.5 inherit; cursor: pointer; }
.atx-prompt-chip:hover { color: #C5A059; border-color: #C5A059; }
.atx-prompt-out { display: none; margin-top: 9px; border-top: 1px dashed rgba(197, 160, 89, .25); padding-top: 9px; gap: 6px; }
.atx-prompt-out.on { display: grid; }
.atx-prompt-res { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; align-items: center; border: 1px solid var(--atx-line); border-radius: 9px; padding: 7px 9px; background: rgba(255, 255, 255, .025); }
html[data-theme="light"] .atx-prompt-res { background: #fff; }
.atx-prompt-res b { font-size: 10.5px; line-height: 1.4; display: block; }
.atx-prompt-res small { display: block; color: var(--atx-muted); font-size: 9px; }
.atx-prompt-res a { color: #C5A059; font-size: 9px; font-weight: 900; text-decoration: none; white-space: nowrap; }
.atx-prompt-bundle { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; border: 1px solid rgba(197, 160, 89, .35); border-radius: 10px; padding: 8px 10px; background: rgba(197, 160, 89, .08); font-size: 9.5px; }
.atx-prompt-bundle b { color: #E7CF93; }
html[data-theme="light"] .atx-prompt-bundle b { color: #7A5A17; }

/* ---------- ecosystem map ---------- */
.atx-eco-toggle { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(197, 160, 89, .4); background: rgba(197, 160, 89, .08); color: #E7CF93; border-radius: 10px; padding: 8px 12px; font: 900 10px/1.4 inherit; cursor: pointer; margin: 0 0 12px; }
html[data-theme="light"] .atx-eco-toggle { color: #7A5A17; }
.atx-eco-toggle.on { background: #C5A059; color: #0F172A; }
.atx-eco { display: none; border: 1px solid var(--atx-line); border-radius: 16px; background: var(--atx-panel); padding: 12px; margin-bottom: 14px; }
.atx-eco.on { display: block; }
.atx-eco-stage { position: relative; height: 430px; overflow: hidden; border-radius: 12px; background: radial-gradient(420px 240px at 50% 50%, rgba(197, 160, 89, .12), transparent 70%); }
.atx-eco svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.atx-eco svg line { stroke: rgba(197, 160, 89, .28); stroke-width: 1.2; }
.atx-eco svg line.hot { stroke: #C5A059; stroke-width: 2; }
.atx-eco-hub { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; display: grid; place-items: center; width: 108px; height: 108px; border-radius: 50%; border: 1px solid rgba(197, 160, 89, .6); background: #0F172A; color: #E7CF93; font-size: 10px; font-weight: 900; text-align: center; line-height: 1.4; box-shadow: 0 0 0 8px rgba(197, 160, 89, .07); }
html[data-theme="light"] .atx-eco-hub { background: #FFFDF8; color: #7A5A17; }
.atx-eco-node { position: absolute; z-index: 3; transform: translate(-50%, -50%); border: 1px solid var(--atx-line); background: rgba(20, 31, 53, .97); color: var(--atx-ink); border-radius: 10px; padding: 6px 8px; font: 800 9px/1.35 inherit; cursor: pointer; max-width: 132px; text-align: center; }
html[data-theme="light"] .atx-eco-node { background: #fff; }
.atx-eco-node small { display: block; color: #C5A059; font-size: 8px; }
.atx-eco-node.on { border-color: #C5A059; box-shadow: 0 0 0 3px rgba(197, 160, 89, .18); }
.atx-eco-panel { margin-top: 10px; display: grid; gap: 6px; }
.atx-eco-panel h4 { margin: 0; font-size: 11px; }
.atx-eco-links { display: flex; gap: 6px; flex-wrap: wrap; }
.atx-eco-links a { border: 1px solid rgba(197, 160, 89, .28); border-radius: 8px; padding: 5px 8px; font-size: 9px; font-weight: 800; color: var(--atx-ink); text-decoration: none; }
.atx-eco-links a:hover { border-color: #C5A059; color: #C5A059; }
@media (max-width: 720px) { .atx-eco-stage { height: 520px; } .atx-eco-node { max-width: 104px; font-size: 8px; } }

/* ---------- Bento grid (flagship systems) ---------- */
.atx-bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.atx-tile { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 4px; grid-column: span 2; min-height: 132px; border: 1px solid var(--atx-line); border-radius: 16px; padding: 14px; background: var(--atx-panel); color: var(--atx-ink); text-decoration: none; transition: transform .18s ease, border-color .18s ease; }
.atx-tile.big { grid-column: span 3; grid-row: span 2; min-height: 274px; }
.atx-tile:hover { transform: translateY(-2px); border-color: rgba(197, 160, 89, .55); }
.atx-tile:after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .2s; background: radial-gradient(240px 180px at var(--mx, 50%) var(--my, 0%), rgba(197, 160, 89, .2), transparent 65%); }
.atx-tile:hover:after { opacity: 1; }
.atx-tile.gold { border-color: rgba(197, 160, 89, .42); background: linear-gradient(155deg, rgba(197, 160, 89, .16), var(--atx-panel)); }
.atx-tile-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; border: 1px solid rgba(197, 160, 89, .4); background: rgba(197, 160, 89, .12); color: #C5A059; font-size: 14px; }
.atx-tile-k { color: #C5A059; font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.atx-tile b { font-size: 13px; line-height: 1.45; }
.atx-tile.big b { font-size: clamp(16px, 2vw, 21px); margin-top: 4px; }
.atx-tile small { color: var(--atx-muted); font-size: 10px; line-height: 1.7; }
.atx-tile-cta { margin-top: auto; color: #C5A059; font-size: 9.5px; font-weight: 900; }

/* ---------- template stories rail ---------- */
.atx-stories { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.atx-story { position: relative; overflow: hidden; flex: 0 0 186px; scroll-snap-align: start; min-height: 148px; display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--atx-line); border-radius: 15px; padding: 12px; text-decoration: none; color: #fff; background: linear-gradient(160deg, #1B2A44, #0F172A); }
.atx-story.s1 { background: linear-gradient(160deg, #6B5320, #141F35); }
.atx-story.s2 { background: linear-gradient(160deg, #23403A, #0F172A); }
.atx-story.s3 { background: linear-gradient(160deg, #3A2B4E, #0F172A); }
.atx-story.s4 { background: linear-gradient(160deg, #4A2C2C, #0F172A); }
.atx-story.s5 { background: linear-gradient(160deg, #26402A, #0F172A); }
.atx-story.s6 { background: linear-gradient(160deg, #2C3A55, #0F172A); }
.atx-story:hover { border-color: rgba(197, 160, 89, .65); }
.atx-story:after { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .2s; background: radial-gradient(180px 130px at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .18), transparent 65%); }
.atx-story:hover:after { opacity: 1; }
.atx-story-badge { align-self: flex-start; border-radius: 99px; background: #C5A059; color: #0F172A; padding: 2px 8px; font-size: 8.5px; font-weight: 900; }
.atx-story-k { color: #E7CF93; font-size: 8px; font-weight: 900; letter-spacing: .1em; margin-top: 6px; }
.atx-story b { font-size: 12px; line-height: 1.45; }
.atx-story small { margin-top: auto; font-size: 10px; color: #D8E3F2; font-weight: 800; direction: ltr; text-align: start; }
.atx-story small s { color: #93A4BC; font-size: 9px; }

html.atx-has-bundle .atx-proof { bottom: 152px; }

/* ---------- build-your-own bundle bar ---------- */
.atx-bundlebar { position: fixed; inset-inline: 12px; bottom: 12px; z-index: 9300; display: none; justify-content: center; pointer-events: none; }
.atx-bundlebar.on { display: flex; }
.atx-bundle-card { pointer-events: auto; width: min(720px, 100%); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border: 1px solid rgba(197, 160, 89, .5); border-radius: 14px; padding: 9px 12px; background: rgba(15, 23, 42, .97); color: #E9EFF8; box-shadow: 0 18px 50px rgba(2, 8, 23, .5); backdrop-filter: blur(10px); }
html[data-at-theme="light"] .atx-bundle-card, html[data-theme="light"] .atx-bundle-card { background: #FFFDF8; color: #1B2436; }
.atx-bundle-main { flex: 1; min-width: 190px; font-size: 9.5px; line-height: 1.65; }
.atx-bundle-main b { display: block; font-size: 10.5px; }
.atx-bundle-main span { color: #93A4BC; }
html[data-theme="light"] .atx-bundle-main span { color: #67718A; }
.atx-bundle-tiers { display: flex; align-items: center; gap: 5px; }
.atx-bundle-dot { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; border: 1px solid rgba(197, 160, 89, .3); color: #93A4BC; font-size: 9px; font-weight: 900; }
.atx-bundle-dot.on { background: rgba(197, 160, 89, .2); border-color: #C5A059; color: #E7CF93; }
.atx-bundle-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.atx-bundle-x { border: 0; background: transparent; color: #8296AF; font-size: 14px; cursor: pointer; padding: 2px; }

/* drawer upsell rows (60% bundle) */
.comp-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid rgba(197, 160, 89, .18); padding: 6px 0; }
.comp-row b { display: block; font-size: 9.5px; line-height: 1.45; color: #E7EEF8; }
.comp-row small { display: block; font-size: 8px; color: #8FA1BC; }
.comp-row-p { font-size: 10px; font-weight: 900; color: #8ADDC0; white-space: nowrap; direction: ltr; }
.comp-row-p s { color: #6F819E; font-size: 8.5px; margin-inline-start: 3px; }
.comp-sub { margin-top: 6px; font-size: 8.5px; line-height: 1.6; color: #8FA1BC; border-top: 1px dashed rgba(197, 160, 89, .22); padding-top: 6px; }

@media (max-width: 900px) {
  .atx-quiz, .atx-roi { grid-template-columns: 1fr; }
  .atx-ba-stage { min-height: 290px; }
  .atx-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .atx-sec { padding: 0 14px; }
  .atx-roi-out { grid-template-columns: 1fr; }
  .atx-res { grid-template-columns: 24px minmax(0, 1fr); }
  .atx-res-price { grid-column: 2; text-align: start; }
  .atx-sheet-row { grid-template-columns: 1fr 1fr; }
  .atx-ba-stage { min-height: 250px; }
}
@media (prefers-reduced-motion: reduce) {
  .atx-proof, .atx-progress-fill, .atx-opt { transition: none; }
}
