/* AI clinic interview + result page. Plain CSS (the production Tailwind build is pre-compiled). */
.ti-page { background: #0A0A0F; color: #F0F0F2; padding-bottom: 72px; }
.ti-container { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.ti-hero { padding: 48px 0 28px; text-align: center; background: radial-gradient(ellipse at 50% 0%, rgba(110,86,207,0.22) 0%, transparent 65%); }
.ti-hero h1 { font-size: clamp(24px, 4vw, 36px); font-weight: 800; margin: 14px 0 12px; line-height: 1.5; }
.ti-hero p { color: #A0A0AB; max-width: 680px; margin: 0 auto; line-height: 2; font-size: 15px; }
.ti-chip { display: inline-block; background: rgba(110,86,207,0.15); color: #9B8DE8; border: 1px solid rgba(110,86,207,0.3); border-radius: 999px; padding: 4px 14px; font-size: 13px; font-weight: 600; }

.ti-stepper { list-style: none; display: flex; gap: 8px; padding: 0; margin: 8px 0 20px; counter-reset: none; }
.ti-step-indicator { flex: 1; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: #141418; border: 1px solid rgba(255,255,255,0.07); color: #62626D; font-size: 13px; font-weight: 600; min-width: 0; }
.ti-step-num { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.06); font-size: 13px; }
.ti-step-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ti-step-indicator.is-active { color: #F0F0F2; border-color: rgba(110,86,207,0.55); background: rgba(110,86,207,0.12); }
.ti-step-indicator.is-active .ti-step-num { background: #6E56CF; color: #fff; }
.ti-step-indicator.is-done { color: #A0A0AB; }
.ti-step-indicator.is-done .ti-step-num { background: rgba(48,164,108,0.25); color: #4CC38A; }
@media (max-width: 640px) { .ti-step-title { display: none; } .ti-step-indicator { justify-content: center; } }

.ti-card { background: #141418; border: 1px solid rgba(255,255,255,0.07); border-radius: 18px; padding: 28px; }
@media (max-width: 640px) { .ti-card { padding: 18px 14px; } }
.ti-panel { border: 0; padding: 0; margin: 0; min-width: 0; }
.ti-panel[hidden] { display: none !important; }
.ti-panel-title { font-size: 20px; font-weight: 800; margin-bottom: 6px; padding: 0; }
.ti-panel-hint { color: #A0A0AB; font-size: 14px; margin: 0 0 20px; line-height: 1.9; }
.ti-intro { background: rgba(110,86,207,0.1); border-inline-start: 4px solid #6E56CF; border-radius: 10px; padding: 12px 16px; color: #D8D2F5; line-height: 2; margin: 8px 0 12px; }

.ti-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 640px) { .ti-grid { grid-template-columns: 1fr; } }
.ti-col-2 { grid-column: 1 / -1; }
.ti-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: #A0A0AB; }
.ti-field b, .ti-question b { color: #E5484D; font-weight: 700; }
.ti-field input, .ti-field select, .ti-field textarea {
    background: #1C1C22; border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; color: #F0F0F2;
    padding: 10px 12px; font-size: 15px; font-family: inherit; width: 100%; min-height: 44px;
}
.ti-field input:focus, .ti-field select:focus, .ti-field textarea:focus { outline: none; border-color: #6E56CF; box-shadow: 0 0 0 3px rgba(110,86,207,0.25); }
.ti-other { margin-top: 12px; }
.ti-other[hidden] { display: none; }

.ti-question { padding: 16px 0; border-top: 1px solid rgba(255,255,255,0.06); }
.ti-question:first-of-type { border-top: 0; }
.ti-question h3 { font-size: 15px; font-weight: 700; margin: 0 0 12px; line-height: 1.8; color: #F0F0F2; }
.ti-options { display: flex; flex-wrap: wrap; gap: 8px; }
.ti-option { position: relative; cursor: pointer; }
.ti-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ti-option span { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: 10px; background: #1C1C22; border: 1px solid rgba(255,255,255,0.1); color: #D0D0D6; font-size: 14px; transition: all .15s; }
.ti-option:hover span { border-color: rgba(110,86,207,0.5); }
.ti-option input:checked + span { background: rgba(110,86,207,0.2); border-color: #6E56CF; color: #fff; font-weight: 600; }
.ti-option input:focus-visible + span { box-shadow: 0 0 0 3px rgba(110,86,207,0.4); }

.ti-progress { font-size: 13px; color: #9B8DE8; margin-bottom: 12px; font-weight: 600; }
.ti-item { display: flex; gap: 12px; border: 1px solid rgba(255,255,255,0.07); border-radius: 14px; padding: 14px; margin: 0 0 12px; background: #17171C; }
.ti-item.is-answered { border-color: rgba(110,86,207,0.35); }
.ti-item-num { width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; background: rgba(110,86,207,0.18); color: #B7A9F5; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.ti-item-body { flex: 1; min-width: 0; }
.ti-poles { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.ti-pole { font-size: 14px; line-height: 1.8; color: #E6E6EA; max-width: 46%; }
.ti-pole-b { text-align: left; }
.ti-scale { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; align-items: start; }
.ti-dot { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; position: relative; padding: 4px 0; }
.ti-dot input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ti-dot-circle { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.22); background: #1C1C22; transition: all .15s; }
.ti-dot-a .ti-dot-circle { border-color: rgba(110,86,207,0.55); }
.ti-dot-b .ti-dot-circle { border-color: rgba(0,144,255,0.5); }
.ti-dot-n .ti-dot-circle { width: 22px; height: 22px; margin: 2px 0; }
.ti-dot:hover .ti-dot-circle { transform: scale(1.1); }
.ti-dot-a input:checked + .ti-dot-circle { background: #6E56CF; border-color: #6E56CF; box-shadow: 0 0 0 4px rgba(110,86,207,0.25); }
.ti-dot-b input:checked + .ti-dot-circle { background: #0090FF; border-color: #0090FF; box-shadow: 0 0 0 4px rgba(0,144,255,0.22); }
.ti-dot-n input:checked + .ti-dot-circle { background: #A0A0AB; border-color: #A0A0AB; box-shadow: 0 0 0 4px rgba(160,160,171,0.2); }
.ti-dot input:focus-visible + .ti-dot-circle { outline: 2px solid #fff; outline-offset: 2px; }
.ti-dot-label { font-size: 11px; color: #8A8A95; text-align: center; line-height: 1.4; }
@media (max-width: 640px) {
    .ti-item { flex-direction: column; gap: 8px; }
    .ti-poles { flex-direction: column; gap: 4px; }
    .ti-pole { max-width: 100%; }
    .ti-pole-a::before { content: "راست: "; color: #9B8DE8; font-weight: 700; }
    .ti-pole-b { text-align: right; }
    .ti-pole-b::before { content: "چپ: "; color: #4DA8FF; font-weight: 700; }
    .ti-dot-circle { width: 24px; height: 24px; }
    .ti-dot-label { font-size: 10px; }
}
.ti-missing { outline: 2px solid rgba(229,72,77,0.7); outline-offset: 3px; border-radius: 12px; }

.ti-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.ti-step-status { flex: 1; text-align: center; color: #A0A0AB; font-size: 13px; min-width: 120px; }
.ti-btn { min-height: 46px; padding: 10px 22px; border-radius: 12px; font-size: 15px; font-weight: 700; cursor: pointer; border: 1px solid transparent; font-family: inherit; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.ti-btn[hidden] { display: none; }
.ti-btn-primary { background: #6E56CF; color: #fff; }
.ti-btn-primary:hover { background: #7C66DC; color: #fff; }
.ti-btn-primary:disabled { opacity: .6; cursor: wait; }
.ti-btn-ghost { background: transparent; color: #D0D0D6; border-color: rgba(255,255,255,0.15); }
.ti-btn-ghost:hover { background: rgba(255,255,255,0.05); color: #fff; }
.ti-alert { border-radius: 12px; padding: 14px 18px; margin-bottom: 16px; line-height: 1.9; font-size: 14px; }
.ti-alert ul { margin: 6px 0 0; padding-inline-start: 20px; list-style: disc; }
.ti-alert-error { background: rgba(229,72,77,0.12); border: 1px solid rgba(229,72,77,0.4); color: #FFB4B6; }
.ti-alert-info { background: rgba(0,144,255,0.1); border: 1px solid rgba(0,144,255,0.35); color: #B6DCFF; }
.ti-alert-warn { background: rgba(255,197,61,0.1); border: 1px solid rgba(255,197,61,0.35); color: #FFE2A0; }
.ti-footnote { color: #62626D; font-size: 13px; text-align: center; margin-top: 18px; line-height: 1.9; }
.ti-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* result page */
.ti-profile { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 8px 0 8px; }
@media (max-width: 768px) { .ti-profile { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ti-scale-card { background: #17171C; border: 1px solid rgba(255,255,255,0.07); border-radius: 14px; padding: 14px; }
.ti-scale-card h4 { font-size: 13px; color: #A0A0AB; margin: 0 0 6px; font-weight: 600; }
.ti-scale-card strong { display: block; font-size: 15px; color: #F0F0F2; line-height: 1.7; }
.ti-scale-card .ti-score { font-size: 12px; color: #62626D; direction: ltr; unicode-bidi: plaintext; }
.ti-section-title { font-size: 18px; font-weight: 800; margin: 28px 0 12px; }
.ti-therapist { display: flex; gap: 16px; background: #17171C; border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 18px; margin-bottom: 12px; }
.ti-therapist.is-top { border-color: rgba(110,86,207,0.55); background: linear-gradient(180deg, rgba(110,86,207,0.1), #17171C 60%); }
@media (max-width: 640px) { .ti-therapist { flex-direction: column; } }
.ti-therapist img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(110,86,207,0.4); flex-shrink: 0; }
.ti-therapist-body { flex: 1; min-width: 0; }
.ti-therapist h3 { font-size: 17px; font-weight: 800; margin: 0 0 2px; }
.ti-therapist .ti-meta { color: #A0A0AB; font-size: 13px; margin-bottom: 8px; line-height: 1.8; }
.ti-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.ti-badge { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,0.06); color: #D0D0D6; }
.ti-badge-accent { background: rgba(110,86,207,0.18); color: #C4B6F5; }
.ti-badge-success { background: rgba(48,164,108,0.18); color: #6FD3A0; }
.ti-reasons { margin: 0; padding-inline-start: 20px; list-style: disc; color: #D0D0D6; font-size: 14px; line-height: 1.9; }
.ti-warnings { margin: 6px 0 0; padding-inline-start: 20px; list-style: circle; color: #FFC53D; font-size: 13px; line-height: 1.9; }
.ti-therapist-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.ti-empty { text-align: center; padding: 28px; color: #A0A0AB; line-height: 2; }
