/* Imported from the standalone index.html by
   app/bin/import_tool_html.php. Every selector is scoped to .tool-body so
   the tool cannot restyle the shared header and footer, and its custom
   properties cannot leak out of its own subtree. Edit this file, not the
   original document. */

.tool-body {
  --green:#E61933;--green-light:#FE233E;
  --bg-card:#FFFFFF;
  --text-primary:#1A1A18;--text-secondary:#5F5E5A;--text-tertiary:#888780;
  --border:rgba(0,0,0,0.09);--border-strong:rgba(0,0,0,0.16);
  --danger-bg:#FAECE7;--danger-text:#712B13;--danger-sub:#993C1D;
  --warn-bg:#FAEEDA;--warn-text:#633806;--warn-sub:#854F0B;
  --orange-bg:#FDF0E7;--orange-text:#7A3A0A;--orange-sub:#A0480D;
  --good-bg:#EAF3DE;--good-text:#27500A;--good-sub:#3B6D11;
  --radius-md:10px;--radius-lg:16px;
}
.tool-body * {box-sizing:border-box;margin:0;padding:0}
.tool-body {height:100%}
.tool-body {font-family:'Vazirmatn',Tahoma,sans-serif;background:#F3F4F1;color:var(--text-primary);-webkit-font-smoothing:antialiased;line-height:1.6;padding-bottom:env(safe-area-inset-bottom)}
.tool-body .page {;margin:0 auto;min-height:100vh;background:var(--bg-card);box-shadow:0 0 40px rgba(0,0,0,0.06)}
.tool-body .w {padding:1.5rem 1.25rem 2.5rem}

.tool-body .brand {display:flex;align-items:center;gap:10px;margin-bottom:1.75rem;padding-bottom:1.25rem;border-bottom:1px solid var(--border)}
.tool-body .brand-logo {width:42px;height:42px;border-radius:12px;background:linear-gradient(135deg,var(--green-light),var(--green));display:flex;align-items:center;justify-content:center;color:#fff;font-size:15px;font-weight:700;flex-shrink:0}
.tool-body .brand-name {font-size:16px;font-weight:700}.tool-body .brand-sub {font-size:12.5px;color:var(--text-secondary);margin-top:1px}

.tool-body .tool-title {font-size:19px;font-weight:700;margin-bottom:6px;line-height:1.4}
.tool-body .tool-sub {font-size:13.5px;color:var(--text-secondary);margin-bottom:1.75rem;line-height:1.8}

/* progress */
.tool-body .progress-wrap {margin-bottom:1.5rem}
.tool-body .progress-track {height:5px;background:#EDEDE8;border-radius:5px;overflow:hidden;margin-bottom:8px}
.tool-body .progress-fill {height:100%;background:linear-gradient(90deg,var(--green-light),var(--green));border-radius:5px;transition:width 0.4s ease}
.tool-body .progress-label {display:flex;justify-content:space-between;font-size:12px;color:var(--text-secondary)}

/* question card */
.tool-body .q-card {background:#F8F9F6;border:1.5px solid var(--border);border-radius:var(--radius-lg);padding:18px 16px;margin-bottom:1rem;display:none}
.tool-body .q-card.active {display:block;animation:fadeIn 0.3s ease}
@keyframes fadeIn {from {opacity:0;transform:translateY(8px)}to {opacity:1;transform:translateY(0)}}

.tool-body .q-meta {display:flex;align-items:center;gap:8px;margin-bottom:12px}
.tool-body .q-tag {font-size:11px;font-weight:700;padding:3px 10px;border-radius:20px;color:#fff}
.tool-body .q-num {font-size:12px;color:var(--text-tertiary)}

.tool-body .q-text {font-size:15px;font-weight:700;color:var(--text-primary);line-height:1.6;margin-bottom:16px}

/* options */
.tool-body .options {display:flex;flex-direction:column;gap:8px}
.tool-body .option {border:1.5px solid var(--border-strong);border-radius:var(--radius-md);padding:13px 14px;cursor:pointer;font-size:13.5px;font-weight:500;color:var(--text-secondary);background:#fff;text-align:right;font-family:'Vazirmatn',sans-serif;width:100%;transition:all 0.15s;display:flex;align-items:center;gap:10px;line-height:1.5}
.tool-body .option:active {transform:scale(0.99)}
.tool-body .option.selected {border-color:var(--green-light);background:#EAF3DE;color:var(--green)}
.tool-body .option-bullet {width:18px;height:18px;border-radius:50%;border:1.5px solid var(--border-strong);flex-shrink:0;display:flex;align-items:center;justify-content:center;transition:all 0.15s}
.tool-body .option.selected .option-bullet {background:var(--green);border-color:var(--green)}
.tool-body .option.selected .option-bullet::after {content:'';width:6px;height:6px;border-radius:50%;background:#fff}

/* nav */
.tool-body .nav-row {display:flex;gap:8px;margin-top:1.25rem}
.tool-body .nav-btn {flex:1;padding:14px;border-radius:var(--radius-md);font-size:14.5px;font-weight:700;font-family:'Vazirmatn',sans-serif;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px;border:none;transition:transform 0.1s}
.tool-body .nav-btn:active {transform:scale(0.98)}
.tool-body .nav-btn.next {background:linear-gradient(135deg,var(--green-light),var(--green));color:#fff;box-shadow:0 4px 14px rgba(15,110,86,0.28)}
.tool-body .nav-btn.back {background:#F1F3F6;color:var(--text-secondary);flex:0 0 90px}
.tool-body .nav-btn:disabled {opacity:0.4;pointer-events:none}
.tool-body .field-error {font-size:12px;color:var(--danger-text);margin-top:8px;display:none}.tool-body .field-error.show {display:block}

/* result */
.tool-body .result {display:none}.tool-body .result.show {display:block;animation:fadeIn 0.35s ease}

/* score hero */
.tool-body .score-hero {border-radius:var(--radius-lg);overflow:hidden;margin-bottom:1.25rem}
.tool-body .score-hero-top {padding:24px 20px;text-align:center}
.tool-body .score-hero-label {font-size:13px;color:rgba(255,255,255,0.8);margin-bottom:8px}
.tool-body .score-hero-title {font-size:22px;font-weight:700;color:#fff;margin-bottom:10px;line-height:1.35}
.tool-body .score-hero-body {font-size:13px;color:rgba(255,255,255,0.85);line-height:1.85}
.tool-body .score-hero-bottom {background:#F1F3F6;padding:14px 16px;display:flex;justify-content:space-around}
.tool-body .shb-item {text-align:center}
.tool-body .shb-label {font-size:11px;color:var(--text-secondary);margin-bottom:3px}
.tool-body .shb-value {font-size:18px;font-weight:700}

/* level colors */
.tool-body .level-danger .score-hero-top {background:linear-gradient(135deg,#7B1D1D,#D85A30)}
.tool-body .level-orange .score-hero-top {background:linear-gradient(135deg,#7A3A0A,#C47A1E)}
.tool-body .level-warn .score-hero-top {background:linear-gradient(135deg,#5A4A00,#B8971A)}
.tool-body .level-ok .score-hero-top {background:linear-gradient(135deg,#1B4D0A,#3B8A12)}

/* dimension bars */
.tool-body .dim-section {background:#F1F3F6;border-radius:var(--radius-lg);padding:14px;margin-bottom:1.25rem}
.tool-body .dim-title {font-size:13px;font-weight:700;margin-bottom:12px;display:flex;align-items:center;gap:6px}
.tool-body .dim-title i {color:var(--green);font-size:15px}
.tool-body .dim-rows {display:flex;flex-direction:column;gap:12px}
.tool-body .dim-row {}
.tool-body .dim-row-top {display:flex;justify-content:space-between;margin-bottom:5px}
.tool-body .dim-row-label {font-size:12.5px;font-weight:600}
.tool-body .dim-row-score {font-size:12.5px;font-weight:700}
.tool-body .dim-track {height:7px;background:#DEDEDD;border-radius:7px;overflow:hidden}
.tool-body .dim-fill {height:100%;border-radius:7px;transition:width 0.6s ease}

/* diagnosis blocks */
.tool-body .insight-card {border-radius:var(--radius-lg);padding:16px;margin-bottom:1.25rem}
.tool-body .insight-title {font-size:13px;font-weight:700;margin-bottom:8px;display:flex;align-items:center;gap:7px}
.tool-body .insight-title i {font-size:16px}
.tool-body .insight-body {font-size:13px;line-height:1.9}
.tool-body .insight-card.meaning {background:#F8F3EA;color:#5C3A10}
.tool-body .insight-card.risk {background:#FFF1EC;color:#7A2E18}
.tool-body .weak-card {background:#F1F3F6;border-radius:var(--radius-lg);padding:16px;margin-bottom:1.25rem;border-right:4px solid var(--green)}
.tool-body .weak-card .weak-label {font-size:11.5px;color:var(--text-secondary);margin-bottom:3px}
.tool-body .weak-card .weak-title {font-size:15px;font-weight:700;margin-bottom:7px}
.tool-body .weak-card .weak-body {font-size:12.5px;line-height:1.85;color:var(--text-secondary)}
.tool-body .cta-note {text-align:center;font-size:12px;color:var(--text-secondary);line-height:1.8;margin-top:10px}

/* warning question */
.tool-body .warn-q {border-radius:var(--radius-lg);padding:16px;margin-bottom:1.25rem}
.tool-body .warn-q-title {font-size:13px;font-weight:700;margin-bottom:8px;display:flex;align-items:center;gap:6px}
.tool-body .warn-q-title i {font-size:16px}
.tool-body .warn-q-body {font-size:13px;line-height:1.85;font-style:italic}
.tool-body .warn-q.danger {background:var(--danger-bg);color:var(--danger-text)}
.tool-body .warn-q.orange {background:var(--orange-bg);color:var(--orange-text)}
.tool-body .warn-q.warn {background:var(--warn-bg);color:var(--warn-text)}
.tool-body .warn-q.ok {background:var(--good-bg);color:var(--good-text)}

/* next steps */
.tool-body .next-steps {background:#F1F3F6;border-radius:var(--radius-lg);padding:16px;margin-bottom:1.25rem}
.tool-body .next-steps-title {font-size:13px;font-weight:700;margin-bottom:10px;display:flex;align-items:center;gap:6px}
.tool-body .next-steps-title i {color:var(--green);font-size:16px}
.tool-body .next-steps ul {list-style:none;display:flex;flex-direction:column;gap:8px}
.tool-body .next-steps li {font-size:12.5px;line-height:1.8;display:flex;gap:8px}
.tool-body .next-steps li::before {content:'';width:5px;height:5px;border-radius:50%;background:var(--green-light);margin-top:8px;flex-shrink:0}

.tool-body .actions {display:flex;gap:8px;flex-wrap:wrap}
.tool-body .act-btn {flex:1;min-width:120px;border:1.5px solid var(--border-strong);background:#fff;color:var(--text-secondary);font-size:13.5px;font-weight:600;padding:12px;border-radius:var(--radius-md);cursor:pointer;font-family:'Vazirmatn',sans-serif;display:flex;align-items:center;justify-content:center;gap:6px;transition:background 0.15s}
.tool-body .act-btn:active {background:#F1F3F6}.tool-body .act-btn.primary {background:linear-gradient(135deg,var(--green-light),var(--green));color:#fff;border-color:transparent}

.tool-body .watermark {text-align:center;font-size:12px;color:var(--text-secondary);margin-top:1.5rem;padding-top:1.25rem;border-top:1px solid var(--border)}
.tool-body .watermark span {color:var(--green);font-weight:700}

.tool-body .toast {position:fixed;bottom:24px;left:50%;transform:translateX(-50%) translateY(20px);background:var(--text-primary);color:#fff;padding:10px 18px;border-radius:30px;font-size:13px;opacity:0;pointer-events:none;transition:opacity 0.25s,transform 0.25s;z-index:50}
.tool-body .toast.show {opacity:1;transform:translateX(-50%) translateY(0)}

.tool-body .modal-overlay {position:fixed;inset:0;background:rgba(20,20,18,0.55);display:none;align-items:flex-end;justify-content:center;z-index:100}
.tool-body .modal-overlay.show {display:flex;animation:fadeIn 0.2s ease}
.tool-body .modal-sheet {background:#fff;width:100%;max-width:480px;border-radius:20px 20px 0 0;padding:1.5rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom));position:relative;animation:slideUp 0.25s ease}
@keyframes slideUp {from {transform:translateY(100%)}to {transform:translateY(0)}}
.tool-body .modal-title {font-size:16px;font-weight:700;margin-bottom:6px;display:flex;align-items:center;gap:8px}
.tool-body .modal-title i {color:var(--green);font-size:19px}
.tool-body .modal-sub {font-size:13px;color:var(--text-secondary);line-height:1.8;margin-bottom:1.25rem}
.tool-body .modal-actions {display:flex;gap:8px;margin-top:1.25rem}
.tool-body .modal-close {position:absolute;top:14px;left:14px;background:none;border:none;color:var(--text-secondary);font-size:18px;cursor:pointer;padding:6px}
.tool-body .pdf-render-area {position:fixed;left:-9999px;top:0}
@media(max-width:360px) {.tool-body .w {padding:1.25rem 1rem 2rem}}

/* ===== PDF phone gate ===== */
.tool-body .pdf-phone-modal {
  display:none;
  position:fixed;
  inset:0;
  z-index:3000;
  align-items:center;
  justify-content:center;
  padding:16px;
  box-sizing:border-box;
}
.tool-body .pdf-phone-modal.open {display:flex}
.tool-body .pdf-phone-backdrop {
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.48);
}
.tool-body .pdf-phone-card {
  position:relative;
  z-index:1;
  width:min(420px,100%);
  box-sizing:border-box;
  background:#fff;
  border-radius:18px;
  padding:22px 20px 20px;
  box-shadow:0 18px 60px rgba(0,0,0,.2);
  direction:rtl;
  text-align:right;
}
.tool-body .pdf-phone-close {
  position:absolute;
  left:12px;
  top:10px;
  width:32px;
  height:32px;
  border:0;
  background:#F1F3F6;
  border-radius:50%;
  font-size:22px;
  line-height:1;
  cursor:pointer;
}
.tool-body .pdf-phone-title {
  font-size:18px;
  font-weight:900;
  margin-bottom:7px;
  padding-left:35px;
}
.tool-body .pdf-phone-text {
  font-size:12.5px;
  line-height:1.9;
  color:#666;
  margin-bottom:14px;
}
.tool-body .pdf-phone-label {
  display:block;
  font-size:12px;
  font-weight:800;
  margin-bottom:6px;
}
.tool-body .pdf-phone-input {
  width:100%;
  height:48px;
  box-sizing:border-box;
  border:1px solid #D8D8D2;
  border-radius:11px;
  padding:10px 12px;
  font-family:inherit;
  font-size:16px;
  direction:ltr;
  text-align:left;
  outline:none;
}
.tool-body .pdf-phone-input:focus {border-color:#E61933;box-shadow:0 0 0 3px rgba(230,25,51,.10)}
.tool-body .pdf-phone-error {
  min-height:22px;
  color:#C92A2A;
  font-size:11.5px;
  line-height:1.8;
  margin-top:5px;
}
.tool-body .pdf-phone-submit {
  width:100%;
  min-height:46px;
  border:0;
  border-radius:11px;
  background:#E61933;
  color:#fff;
  font-family:inherit;
  font-size:13px;
  font-weight:800;
  cursor:pointer;
  margin-top:4px;
}
.tool-body .pdf-phone-submit:active {transform:translateY(1px)}

.tool-body .dashboard-subvalue {font-size:10px;color:#666;line-height:1.7;margin-top:2px}
@media(max-width:480px) {.tool-body .dashboard-subvalue {font-size:10px}}

.tool-body .radar-section {background:#F1F3F6;border-radius:var(--radius-lg);padding:14px;margin-bottom:1.25rem;overflow:visible}
.tool-body .radar-title {font-size:13px;font-weight:800;text-align:center;margin-bottom:4px;display:flex;align-items:center;justify-content:center;gap:6px}
.tool-body .radar-title i {color:var(--green);font-size:16px}
.tool-body .radar-subtitle {font-size:10.5px;color:var(--text-secondary);text-align:center;line-height:1.7;margin-bottom:4px}
.tool-body .radar-wrap {display:flex;justify-content:center;align-items:center;width:100%;min-height:330px;overflow:visible;direction:ltr}
.tool-body .radar-wrap svg {display:block;width:100%;max-width:390px;height:auto;overflow:visible}
.tool-body .dim-section {display:none!important}


.tool-body .q-hint {display:block;font-size:11.5px;font-weight:500;color:var(--text-secondary);margin-top:4px}
.tool-body .q-hint-bottom {font-size:11px;color:var(--text-tertiary);margin-top:10px;line-height:1.8}
.tool-body .multi-option.selected .option-bullet {border-radius:5px}
.tool-body .multi-option.selected .option-bullet::after {width:8px;height:4px;border-radius:1px;border-left:2px solid #fff;border-bottom:2px solid #fff;background:transparent;transform:rotate(-45deg);margin-top:-2px}
.tool-body .advantage-section {background:#F1F3F6;border-radius:var(--radius-lg);padding:14px;margin-bottom:1.25rem}
.tool-body .advantage-title {font-size:13px;font-weight:800;text-align:center;margin-bottom:4px}
.tool-body .advantage-subtitle {font-size:10.5px;color:var(--text-secondary);text-align:center;line-height:1.7;margin-bottom:13px}
.tool-body .advantage-row {margin-bottom:12px}
.tool-body .advantage-row:last-child {margin-bottom:0}
.tool-body .advantage-row-top {display:flex;justify-content:space-between;align-items:center;font-size:11.5px;margin-bottom:5px}
.tool-body .advantage-row-label {font-weight:650}
.tool-body .advantage-row-value {font-weight:800}
.tool-body .advantage-track {height:8px;background:#DEDEDD;border-radius:8px;overflow:hidden}
.tool-body .advantage-fill {height:100%;border-radius:8px;transition:width .6s ease}


.tool-body .q2-analysis {background:#F1F3F6;border-radius:var(--radius-lg);padding:14px;margin-bottom:1.25rem}
.tool-body .q2-analysis-title {font-size:13px;font-weight:800;text-align:center;margin-bottom:4px}
.tool-body .q2-analysis-subtitle {font-size:10px;color:var(--text-secondary);text-align:center;line-height:1.7;margin-bottom:12px}
.tool-body .q2-analysis-grid {display:grid;grid-template-columns:repeat(3,1fr);gap:9px}
.tool-body .q2-metric {background:#fff;border:1px solid #E7E7E2;border-radius:12px;padding:11px 9px;text-align:center;min-height:145px;box-sizing:border-box}
.tool-body .q2-metric-label {font-size:10.5px;font-weight:800;margin-bottom:7px}
.tool-body .q2-metric-value {font-size:20px;font-weight:900;line-height:1.2;margin-bottom:8px}
.tool-body .q2-metric-desc {font-size:9.5px;line-height:1.75;color:var(--text-secondary)}
.tool-body .q2-metric.positive .q2-metric-value {color:#639922}
.tool-body .q2-metric.neutral .q2-metric-value {color:#4D6B8A}
.tool-body .q2-metric.negative .q2-metric-value {color:#C45A42}
@media(max-width:600px) {.tool-body .q2-analysis-grid {grid-template-columns:1fr}.tool-body .q2-metric {min-height:0}}


/* ===== UI/UX standard — presentation only ===== */
.tool-body {scroll-behavior:auto;overflow-x:hidden}
.tool-body {overflow-x:hidden;background:#F3F4F1}
.tool-body .page {width:100%;max-width:760px;overflow:hidden}
.tool-body .w {padding:0 1.25rem 2.5rem}
.tool-body .eco-header {display:flex;align-items:center;justify-content:flex-start;gap:12px;direction:rtl;padding:18px 0 16px;margin-bottom:18px;border-bottom:1px solid var(--border)}
.tool-body .eco-logo {width:116px;height:30px;display:block;object-fit:contain;object-position:center;flex:0 0 auto}
.tool-body .eco-brand-copy {display:flex;flex-direction:column;align-items:flex-start;min-width:0}
.tool-body .eco-brand-name {font-size:17px;font-weight:800;line-height:1.35;color:var(--text-primary)}
.tool-body .eco-brand-sub {font-size:11px;color:var(--text-secondary);line-height:1.5;margin-top:1px}
.tool-body .tool-heading {margin-bottom:18px}
.tool-body .tool-heading-title {font-size:20px;font-weight:800;line-height:1.45;margin-bottom:5px}
.tool-body .quiz-intro {font-size:13px;color:var(--text-secondary);line-height:1.85;margin-bottom:1.25rem}
.tool-body .section-progress {font-weight:700;color:var(--text-primary)}
.tool-body .q-card {overflow:hidden}
.tool-body .option {white-space:normal;overflow-wrap:anywhere;word-break:normal;min-height:52px}
.tool-body .option-bullet {margin-top:1px}
.tool-body .result .actions {width:100%}
.tool-body .result .act-btn {min-height:48px}
.tool-body .watermark {margin-bottom:.25rem}
@media(max-width:600px) {
 .tool-body .w {padding:0 1rem 2rem}
 .tool-body .eco-header {padding:15px 0 13px;gap:10px}
 .tool-body .eco-logo {width:92px;height:auto}
 .tool-body .eco-brand-name {font-size:15px}
 .tool-body .eco-brand-sub {font-size:10.5px}
 .tool-body .tool-heading-title {font-size:18px}
 .tool-body .q-card {padding:16px 14px}
 .tool-body .q-text {font-size:14.5px}
 .tool-body .option {font-size:13px;padding:13px 12px;min-height:54px}
 .tool-body .nav-btn {min-height:48px;padding:12px 10px}
}
@media(max-width:360px) {
 .tool-body .eco-logo {width:82px}
 .tool-body .eco-brand-name {font-size:14px}
 .tool-body .eco-brand-sub {font-size:10px}
}



/* ===== Profit Sensitivity tool UI extensions — presentation only ===== */
.tool-body .money-input-wrap {position:relative}
.tool-body .money-input {width:100%;height:50px;border:1.5px solid var(--border-strong);border-radius:var(--radius-md);padding:10px 14px;font-family:'Vazirmatn',sans-serif;font-size:16px;font-weight:700;outline:none;background:#fff;color:var(--text-primary);direction:rtl;text-align:right;padding-left:88px}
.tool-body .money-input:focus {border-color:#E61933;box-shadow:0 0 0 3px rgba(230,25,51,.10)}
.tool-body .field-label {font-size:13.5px;font-weight:700;margin-bottom:5px;display:block}
.tool-body .field-help {font-size:11.5px;color:var(--text-secondary);line-height:1.8;margin-top:6px}
.tool-body .unit-badge {position:absolute;left:10px;top:14px;font-size:11px;color:var(--text-tertiary);pointer-events:none;white-space:nowrap;background:#fff;padding:0 3px}
.tool-body .input-grid {display:grid;grid-template-columns:1fr;gap:14px}
.tool-body .toggle-row {display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}
.tool-body .change-btn {border:1.5px solid var(--border-strong);border-radius:var(--radius-md);padding:11px 8px;background:#fff;font-family:'Vazirmatn',sans-serif;font-size:13px;font-weight:700;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:6px}
.tool-body .change-btn.up.active {background:#EAF3DE;border-color:#639922;color:#27500A}
.tool-body .change-btn.down.active {background:#FAECE7;border-color:#D85A30;color:#712B13}
.tool-body #period-selector .change-btn.active {background:#EAF3DE;border-color:#639922;color:#27500A}
.tool-body .scenario-card {background:#F8F9F6;border:1.5px solid var(--border);border-radius:var(--radius-lg);padding:18px 16px;margin-bottom:1rem}
.tool-body .scenario-card-title {font-size:15px;font-weight:800;margin-bottom:4px}
.tool-body .scenario-card-sub {font-size:12px;color:var(--text-secondary);line-height:1.8;margin-bottom:15px}
.tool-body .change-field {margin-top:14px}
.tool-body .result-table-wrap {background:#F1F3F6;border-radius:var(--radius-lg);padding:12px;margin-bottom:1.25rem;overflow-x:auto}
.tool-body .compare-table {width:100%;border-collapse:collapse;font-size:11.5px;min-width:510px}
.tool-body .compare-table th, .tool-body .compare-table td {padding:10px 8px;border-bottom:1px solid #DEDEDD;text-align:center;white-space:nowrap}
.tool-body .compare-table th {font-weight:800;color:var(--text-primary)}
.tool-body .compare-table th:first-child, .tool-body .compare-table td:first-child {text-align:right}
.tool-body .compare-table tr:last-child td {border-bottom:none}
.tool-body .delta-up {color:#3B6D11;font-weight:800}
.tool-body .delta-down {color:#C45A42;font-weight:800}
.tool-body .result-metric-grid {display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:1.25rem}
.tool-body .result-metric {background:#F1F3F6;border-radius:12px;padding:13px;text-align:center}
.tool-body .result-metric-label {font-size:10.5px;color:var(--text-secondary);margin-bottom:3px}
.tool-body .result-metric-value {font-size:18px;font-weight:900}
.tool-body .result-note {font-size:11.5px;color:var(--text-secondary);line-height:1.85;margin-top:8px}
@media(max-width:600px) {.tool-body .result-metric-grid {grid-template-columns:1fr 1fr}}

/* ===== KASBMAN visual reskin — presentation only ===== */
.tool-body {
  --green:#0D47A1;
  --green-light:#1976D2;
  --bg-card:#FFFFFF;
  --text-primary:#172033;
  --text-secondary:#5E6878;
  --text-tertiary:#8993A3;
  --border:rgba(13,71,161,.12);
  --border-strong:rgba(13,71,161,.22);
}
.tool-body {
  font-family:'IranYekan','IRANYekan','Vazirmatn',Tahoma,sans-serif;
  background:#F1F3F6;
}
.tool-body .page {background:#FFFFFF;}
.tool-body .eco-header {
  position:relative;
  align-items:center;
  gap:14px;
  padding:18px 0 16px;
  border-bottom:1px solid rgba(13,71,161,.12);
}
.tool-body .eco-logo {
  width:138px;
  height:82px;
  object-fit:contain;
  object-position:center;
  flex:0 0 138px;
}
.tool-body .eco-brand-copy {
  align-items:flex-start;
}
.tool-body .eco-brand-name {
  color:#0D47A1;
  font-size:19px;
  font-weight:900;
  letter-spacing:-.2px;
}
.tool-body .eco-brand-sub {
  color:#5E6878;
  font-size:11.5px;
  margin-top:2px;
}
.tool-body .tool-heading-title {
  color:#0D47A1;
}
.tool-body .progress-track {
  background:#E6ECF5;
}
.tool-body .progress-fill {
  background:linear-gradient(90deg,#64B5F6,#1976D2);
}
.tool-body .q-card, .tool-body .scenario-card {
  background:#FFFFFF;
  border-color:rgba(13,71,161,.12);
  box-shadow:0 4px 18px rgba(13,71,161,.045);
}
.tool-body .q-tag {
  background:#1976D2 !important;
}
.tool-body .option:hover {
  border-color:#64B5F6;
}
.tool-body .option.selected {
  border-color:#1976D2;
  background:#EEF5FD;
  color:#0D47A1;
}
.tool-body .option.selected .option-bullet {
  background:#1976D2;
  border-color:#1976D2;
}
.tool-body .nav-btn.next, .tool-body .act-btn.primary {
  background:linear-gradient(135deg,#1976D2,#0D47A1);
  box-shadow:0 5px 16px rgba(25,118,210,.22);
}
.tool-body .nav-btn.next:hover, .tool-body .act-btn.primary:hover {
  background:#0D47A1;
}
.tool-body .nav-btn.back {
  background:#F1F3F6;
}
.tool-body .change-btn.up.active, .tool-body #period-selector .change-btn.active {
  background:#EDF5FE;
  border-color:#1976D2;
  color:#0D47A1;
}
.tool-body .change-btn.down.active {
  background:#FAECE7;
  border-color:#D85A30;
  color:#712B13;
}
.tool-body .money-input:focus, .tool-body .pdf-phone-input:focus {
  border-color:#1976D2;
  box-shadow:0 0 0 3px rgba(25,118,210,.10);
}
.tool-body .unit-badge {
  color:#5E6878;
}
.tool-body .score-hero.level-ok .score-hero-top {
  background:linear-gradient(135deg,#0D47A1,#1976D2);
}
.tool-body .score-hero.level-danger .score-hero-top {
  background:linear-gradient(135deg,#7B1D1D,#D85A30);
}
.tool-body .score-hero.level-orange .score-hero-top {
  background:linear-gradient(135deg,#7A3A0A,#C47A1E);
}
.tool-body .score-hero.level-warn .score-hero-top {
  background:linear-gradient(135deg,#7A5A00,#F2B705);
}
.tool-body .dim-section, .tool-body .radar-section, .tool-body .advantage-section, .tool-body .q2-analysis, .tool-body .next-steps, .tool-body .result-table-wrap, .tool-body .result-metric {
  background:#F1F3F6;
}
.tool-body .dim-title i, .tool-body .next-steps-title i, .tool-body .radar-title i {
  color:#1976D2;
}
.tool-body .weak-card {
  background:#F1F3F6;
  border-right-color:#1976D2;
}
.tool-body .next-steps li::before {
  background:#64B5F6;
}
.tool-body .insight-card.meaning {
  background:#F5F8FC;
  color:#26415F;
}
.tool-body .watermark span {
  color:#0D47A1;
}
.tool-body .pdf-phone-submit {
  background:#1976D2;
}
.tool-body .pdf-phone-close {
  background:#F1F3F6;
}
@media(max-width:600px) {
  .tool-body .eco-header {
    padding:13px 0 12px;
    gap:10px;
  }
  .tool-body .eco-logo {
    width:112px;
    height:68px;
    flex-basis:112px;
  }
  .tool-body .eco-brand-name {font-size:16px;}
  .tool-body .eco-brand-sub {font-size:10px;}
}
@media(max-width:360px) {
  .tool-body .eco-logo {
    width:98px;
    height:60px;
    flex-basis:98px;
  }
  .tool-body .eco-brand-name {font-size:15px;}
  .tool-body .eco-brand-sub {font-size:9.5px;}
}



.tool-body .pdf-phone-modal {display:none;position:fixed;inset:0;z-index:3000;align-items:center;justify-content:center}
.tool-body .pdf-phone-modal.open {display:flex}
.tool-body .pdf-phone-backdrop {position:absolute;inset:0;background:rgba(0,0,0,.38)}
.tool-body .pdf-phone-card {position:relative;width:min(92vw,390px);background:#fff;border-radius:18px;padding:22px;box-shadow:0 20px 60px rgba(0,0,0,.18);z-index:1}
.tool-body .pdf-phone-close {position:absolute;left:12px;top:10px;border:0;background:transparent;font-size:24px;color:#777;cursor:pointer}
.tool-body .pdf-phone-title {font-size:17px;font-weight:900;margin-bottom:7px}
.tool-body .pdf-phone-text {font-size:12px;color:#666;line-height:1.9;margin-bottom:15px}
.tool-body .pdf-phone-label {display:block;font-size:12px;font-weight:800;margin-bottom:6px}
.tool-body .pdf-phone-input {width:100%;height:48px;border:1.5px solid #D9D9D3;border-radius:11px;padding:8px 12px;font-family:inherit;font-size:15px;direction:ltr;text-align:right;box-sizing:border-box;outline:none}
.tool-body .pdf-phone-input:focus {border-color:#0F6E56;box-shadow:0 0 0 3px rgba(15,110,86,.1)}
.tool-body .pdf-phone-error {min-height:20px;color:#C23A3A;font-size:11px;margin-top:6px}
.tool-body .pdf-phone-submit {width:100%;height:46px;border:0;border-radius:11px;background:#E61933;color:#fff;font-family:inherit;font-weight:800;cursor:pointer}
