.tt-root {
  --tt-accent: #019587;
  --tt-text: #153A59;
  --tt-muted: #7A8891;
  --tt-border: #E7E4DC;
  --tt-bg: #F7F6F2;
  font-family: 'Vazirmatn', Tahoma, system-ui, sans-serif !important;
  direction: rtl;
  color: var(--tt-text);
  line-height: 1.7;
  font-size: 14.5px;
  max-width: 720px;
  margin: 0 auto;
  padding: 12px 16px 40px;
  box-sizing: border-box;
}
.tt-root *, .tt-root *::before, .tt-root *::after { box-sizing: border-box; }

.tt-hero {
  background: linear-gradient(135deg, #0d3a4a 0%, #0f5c5a 55%, #1a6b5c 100%);
  color: #fff;
  border-radius: 20px;
  padding: 28px 24px;
  margin-bottom: 18px;
}
.tt-badge {
  display: inline-block;
  background: rgba(255,255,255,.14);
  color: #e8f7e0;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 16px;
  margin-bottom: 12px;
}
.tt-hero h1 { margin: 0 0 10px; font-size: 24px; font-weight: 800; color: #fff; line-height: 1.45; }
.tt-hero p { margin: 0 0 14px; opacity: .9; font-size: 13.5px; line-height: 1.9; }
.tt-note {
  background: #FBF3E2;
  border: 1px solid #F0E3C2;
  color: #9A6B1E;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 12.5px;
  margin-top: 12px;
}
.tt-btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; font-family: inherit; font-weight: 700;
  border-radius: 12px; padding: 12px 22px; font-size: 14px;
  background: #CCE98D; color: #123;
}
.tt-btn:hover { background: #d4f0a0; }
.tt-btn-accent { background: var(--tt-accent); color: #fff; }
.tt-btn-accent:hover { background: #018078; }
.tt-btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.3); }
.tt-btn:disabled { opacity: .5; cursor: not-allowed; }
.tt-btn-block { width: 100%; }

.tt-card {
  background: #fff;
  border: 1px solid var(--tt-border);
  border-radius: 16px;
  padding: 20px;
}
.tt-progress-label {
  display: flex; justify-content: space-between;
  font-size: 13px; font-weight: 600; color: var(--tt-muted); margin-bottom: 8px;
}
.tt-progress {
  height: 6px; background: #e8e5dc; border-radius: 4px; overflow: hidden; margin-bottom: 18px;
}
.tt-progress > span { display: block; height: 100%; background: var(--tt-accent); border-radius: 4px; transition: width .2s; }

.tt-q { margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid #F0EDE6; }
.tt-q:last-child { border-bottom: none; }
.tt-q-num { font-size: 12px; font-weight: 700; color: var(--tt-accent); margin-bottom: 4px; }
.tt-q-text { font-size: 14.5px; font-weight: 600; margin-bottom: 10px; line-height: 1.75; }
.tt-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.tt-opt {
  padding: 9px 14px; border-radius: 10px; border: 1.5px solid var(--tt-border);
  background: #FBFAF7; font-size: 13px; font-weight: 600; cursor: pointer;
  font-family: inherit; color: var(--tt-text);
}
.tt-opt:hover { border-color: var(--tt-accent); background: #F0FBF9; }
.tt-opt.active { background: var(--tt-accent); color: #fff; border-color: var(--tt-accent); }
.tt-opt-ab { flex: 1 1 45%; min-width: 140px; text-align: right; }

.tt-warn {
  background: #FBE7E7; border: 1px solid #f0c2c2; color: #a33;
  border-radius: 10px; padding: 10px 12px; font-size: 13px; margin-bottom: 12px;
}
.tt-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

.tt-result-score {
  text-align: center; padding: 18px; border-radius: 14px; margin-bottom: 14px;
}
.tt-result-score .num { font-size: 36px; font-weight: 800; }
.tt-result-score .lbl { font-size: 16px; font-weight: 700; margin-top: 4px; }
.tt-result-text { font-size: 14px; line-height: 1.9; margin-bottom: 16px; }
.tt-cta {
  background: #0f5c5a; color: #fff; border-radius: 14px; padding: 18px; margin-top: 12px;
}
.tt-cta h3 { margin: 0 0 8px; font-size: 16px; color: #fff; }
.tt-cta p { margin: 0 0 12px; font-size: 13px; opacity: .9; }
.tt-crisis {
  background: #FBE7E7; border: 1px solid #e8a0a0; border-radius: 12px;
  padding: 14px; margin-bottom: 14px; color: #8b1e1e; font-size: 13.5px; line-height: 1.85;
}

/* Hub */
.tt-hub { max-width: 960px; }
.tt-hub-hero {
  background: linear-gradient(135deg, #0d3a4a, #1a6b5c);
  color: #fff; border-radius: 20px; padding: 32px 28px; margin-bottom: 22px;
}
.tt-hub-hero h1 { margin: 0 0 10px; font-size: 26px; color: #fff; }
.tt-hub-hero p { margin: 0; opacity: .9; }
.tt-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.tt-hub-card {
  background: #fff; border: 1px solid var(--tt-border); border-radius: 14px; padding: 16px 18px;
}
.tt-hub-cat { font-size: 11.5px; font-weight: 700; color: var(--tt-accent); margin-bottom: 6px; }
.tt-hub-card h3 { margin: 0 0 10px; font-size: 15px; font-weight: 800; }
.tt-hub-meta { display: flex; gap: 12px; font-size: 12px; color: var(--tt-muted); margin-bottom: 10px; }
.tt-hub-hint { font-size: 11.5px; color: var(--tt-muted); margin: 0; }
.tt-hub-hint code { background: #F0FBF9; padding: 2px 6px; border-radius: 4px; font-size: 11px; }
.tt-hub-note { font-size: 13px; color: var(--tt-muted); margin-top: 18px; text-align: center; }

.tt-loading { text-align: center; padding: 40px; color: var(--tt-muted); }

.tt-price-box {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 12px 0;
  font-size: 13.5px;
}
.tt-price-free { opacity: .95; }
.tt-result-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.tt-result-head h2 { margin: 0; font-size: 20px; }
.tt-report-sec {
  border: 1px solid #E7E4DC;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  background: #fff;
}
.tt-report-title {
  background: #E8F5F3;
  color: #0d5c55;
  font-weight: 800;
  font-size: 13.5px;
  padding: 10px 14px;
  border-bottom: 1px solid #D9E8E5;
}
.tt-report-body {
  padding: 12px 14px;
  font-size: 13.5px;
  line-height: 1.9;
  color: #153A59;
}

.tt-hub-start {
  display: inline-flex;
  margin-top: 12px;
  text-decoration: none;
  font-size: 13px;
  padding: 10px 16px;
}
.tt-hub-nolink {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  color: #a67c00;
  background: #FBF3E2;
  border-radius: 8px;
  padding: 8px 10px;
}


/* ═══ Hub redesign (PDF style) ═══ */
.tt-hub {
  max-width: 920px;
  margin: 0 auto;
  padding: 20px 16px 48px;
  background: transparent;
}
.tt-hub-hero {
  background: linear-gradient(135deg, #0d4a52 0%, #0f6b66 50%, #1a7a6e 100%);
  color: #fff;
  border-radius: 22px;
  padding: 36px 32px;
  margin-bottom: 36px;
  text-align: center;
  position: relative;
}
.tt-hub-pill {
  display: inline-block;
  background: rgba(255,255,255,.16);
  color: #e8f7e0;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.tt-hub-hero h1 {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  line-height: 1.4;
}
.tt-hub-hero p {
  margin: 0 auto;
  max-width: 620px;
  font-size: 14px;
  line-height: 1.95;
  opacity: .92;
}

.tt-hub-section {
  margin-bottom: 34px;
}
.tt-hub-section-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}
.tt-hub-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #019587;
  margin-top: 8px;
  flex-shrink: 0;
}
.tt-hub-section-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #153A59;
}
.tt-hub-section-head p {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: #7A8891;
}

.tt-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (max-width: 700px) {
  .tt-hub-grid { grid-template-columns: 1fr; }
  .tt-hub-hero { padding: 28px 20px; }
  .tt-hub-hero h1 { font-size: 22px; }
}

.tt-hub-card {
  background: #fff;
  border: 1px solid #E7E4DC;
  border-radius: 16px;
  padding: 20px 20px 16px;
  display: flex;
  flex-direction: column;
  min-height: 160px;
  transition: box-shadow .15s, border-color .15s;
}
.tt-hub-card:hover {
  border-color: #b8d9d4;
  box-shadow: 0 8px 24px rgba(1,149,135,.08);
}
.tt-hub-card h3 {
  margin: 0 0 8px;
  font-size: 15.5px;
  font-weight: 800;
  color: #153A59;
  line-height: 1.45;
}
.tt-hub-desc {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.85;
  color: #5a6a75;
  flex: 1;
}
.tt-hub-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid #F0EDE6;
  padding-top: 12px;
  margin-top: auto;
}
.tt-hub-link {
  color: #019587;
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
}
.tt-hub-link:hover { color: #018078; text-decoration: underline; }
.tt-hub-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #7A8891;
  font-weight: 600;
}
.tt-hub-nolink {
  font-size: 12px;
  color: #a67c00;
  background: #FBF3E2;
  border-radius: 8px;
  padding: 6px 10px;
}
.tt-hub-disclaimer {
  margin-top: 12px;
  background: #FBF8F0;
  border: 1px solid #F0E3C2;
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 12.5px;
  line-height: 1.9;
  color: #7a5a20;
  text-align: center;
}
