/* =========================================
   کادر اصلی (App Frame)
========================================= */
.testeto-app-frame {
    width: 100%;
    max-width: 500px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 40px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15);
    border: 8px solid #f3f4f6;
    overflow: hidden;
    direction: rtl;
    font-family: inherit;
    display: flex;
    flex-direction: column;
}

/* =========================================
   هدر و هویت
========================================= */
.t-prof-header { 
    display: flex; 
    align-items: center; 
    padding: 35px 30px 15px 30px; 
    gap: 20px; 
}
.t-prof-avatar-box { 
    width: 90px; 
    height: 90px; 
    border-radius: 50%; 
    padding: 3px; 
    background: linear-gradient(45deg, #FFC107, #FF9800); 
    flex-shrink: 0; 
}
.t-prof-avatar-box img { 
    width: 100%; 
    height: 100%; 
    border-radius: 50%; 
    object-fit: cover; 
    border: 3px solid #fff; 
}
.t-prof-info { 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    width: 100%; 
}

/* نام و آیکون‌ها */
.t-prof-name-row { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    text-decoration: none; 
    transition: opacity 0.3s; 
    cursor: pointer; 
}
.t-prof-name-row:hover { opacity: 0.8; }

.t-prof-name { 
    margin: 0; 
    font-size: 1.35rem; 
    font-weight: 800; 
    color: #111827; 
    text-align: start; 
    unicode-bidi: isolate; 
}

.t-verified { 
    animation: t-pulse 2.5s infinite; 
    border-radius: 50%; 
    display: flex; 
}
@keyframes t-pulse { 
    0% { box-shadow: 0 0 0 0 rgba(29, 161, 242, 0.4); } 
    70% { box-shadow: 0 0 0 6px rgba(29, 161, 242, 0); } 
    100% { box-shadow: 0 0 0 0 rgba(29, 161, 242, 0); } 
}

.t-website-link svg { transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.3s; }
.t-prof-name-row:hover .t-website-link svg { stroke: #FFC107; transform: rotate(15deg) scale(1.1); }

.t-prof-title { 
    margin: 6px 0 0 0; 
    font-size: 0.95rem; 
    color: #6B7280; 
    font-weight: 600; 
    text-align: start; 
    unicode-bidi: isolate; 
}

/* =========================================
   بایوگرافی
========================================= */
.t-prof-bio-section { padding: 0 30px 25px 30px; }

.t-bio-text { 
    font-size: 1rem; 
    line-height: 1.8; 
    color: #374151; 
    font-weight: 500; 
    text-align: start; 
    unicode-bidi: isolate; 
}

/* =========================================
   هایلایت‌ها و اسلایدر شیشه‌ای
========================================= */
.t-highlights-wrapper { 
    position: relative; 
    display: flex; 
    align-items: center; 
    margin-bottom: 25px; 
}

.t-prof-highlights { 
    display: flex; 
    padding: 0 30px; 
    gap: 18px; 
    overflow-x: auto; 
    scrollbar-width: none; 
    scroll-behavior: smooth; 
    width: 100%; 
}
.t-prof-highlights::-webkit-scrollbar { display: none; }

.t-highlight-item { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 8px; 
    flex-shrink: 0; 
    width: 60px; 
    cursor: default; 
}
.t-hl-ring { 
    width: 60px; 
    height: 60px; 
    border-radius: 50%; 
    padding: 2px; 
    background: #E5E7EB; 
    transition: all 0.3s ease; 
}
.t-highlight-item:hover .t-hl-ring { background: #FFC107; transform: translateY(-3px); }
.t-hl-img-box { 
    width: 100%; 
    height: 100%; 
    border-radius: 50%; 
    border: 2px solid #fff; 
    background: #fff; 
    overflow: hidden; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 10px; 
}
.t-hl-img-box img { width: 100%; height: 100%; object-fit: contain; }

.t-hl-name { 
    font-size: 0.75rem; 
    font-weight: 700; 
    color: #4B5563; 
    text-align: center; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    max-width: 100%; 
    unicode-bidi: isolate; 
}

.t-slider-btn {
    position: absolute; 
    top: 15px;
    width: 32px; 
    height: 32px; 
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px); 
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex; 
    align-items: center; 
    justify-content: center;
    cursor: pointer; 
    z-index: 10; 
    color: #374151; 
    transition: all 0.3s ease;
}
.t-slider-btn:hover { 
    background: #FFC107; 
    color: #fff; 
    border-color: #FFC107; 
    transform: scale(1.1); 
}
.t-btn-right { right: 10px; }
.t-btn-left { left: 10px; }

/* =========================================
   جداکننده‌ها (نوار باریک)
========================================= */
.t-prof-divider { 
    display: flex; 
    align-items: center; 
    justify-content: flex-start; 
    gap: 10px; 
    padding: 15px 30px; 
    background: #f9fafb; 
    font-size: 0.95rem; 
    font-weight: 800; 
    color: #111827; 
    border-top: 1px solid #f3f4f6; 
    border-bottom: 1px solid #f3f4f6; 
}

/* =========================================
   تایم‌لاین عمودی (مسیر شغلی)
========================================= */
.t-timeline-container { padding: 25px 30px 25px 40px; position: relative; }
.t-timeline-container::before { content: ''; position: absolute; top: 25px; bottom: 25px; right: 35px; width: 2px; background: #E5E7EB; }

.t-timeline-item { position: relative; padding-right: 25px; margin-bottom: 25px; }
.t-timeline-item:last-child { margin-bottom: 0; }
.t-tl-dot { position: absolute; right: -21px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid #FFC107; z-index: 2; transition: all 0.3s; }
.t-timeline-item:hover .t-tl-dot { background: #FFC107; transform: scale(1.2); box-shadow: 0 0 10px rgba(255, 193, 7, 0.5); }
.t-tl-content { background: #fff; border: 1px solid #f3f4f6; border-radius: 12px; padding: 15px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02); transition: all 0.3s; }
.t-timeline-item:hover .t-tl-content { border-color: #FFC107; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05); }

.t-tl-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 5px; 
}

.t-tl-title { font-weight: 800; font-size: 1rem; color: #111827; }

.t-tl-date { 
    font-size: 0.75rem; 
    color: #6B7280; 
    font-weight: 600; 
    background: #f3f4f6; 
    padding: 3px 8px; 
    border-radius: 10px; 
    /* اعمال فونت سیستم برای اطمینان بیشتر */
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important; 
}

.t-tl-company-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.t-tl-company-logo {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #E5E7EB;
    flex-shrink: 0;
}
.t-tl-company { 
    font-size: 0.85rem; 
    color: #FFC107; 
    font-weight: 700; 
    margin: 0;
}

.t-tl-desc { margin: 0; font-size: 0.9rem; color: #4B5563; line-height: 1.6; }

/* =========================================
   گرید ویترین دستاوردها
========================================= */
.t-prof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.t-grid-item { position: relative; aspect-ratio: 1 / 1; background: #f9fafb; overflow: hidden; cursor: default; }
.t-grid-bg { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.t-grid-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(17, 24, 39, 0.85); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.4s ease; }
.t-grid-item:hover .t-grid-overlay { opacity: 1; }
.t-grid-item:hover .t-grid-bg { transform: scale(1.1); }
.t-overlay-content { text-align: center; color: #fff; padding: 8px; transform: translateY(15px); transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); width: 100%; }
.t-grid-item:hover .t-overlay-content { transform: translateY(0); }

.t-exp-company { display: block; font-weight: 800; font-size: 0.95rem; color: #FFC107; margin-bottom: 5px; text-align: center; unicode-bidi: isolate; }
.t-exp-role { display: block; font-size: 0.75rem; font-weight: 600; text-align: center; unicode-bidi: isolate; }

/* =========================================
   ریسپانسیو موبایل
========================================= */
@media (max-width: 480px) {
    .t-prof-header { padding: 20px; flex-direction: column; text-align: center; }
    .t-prof-name-row { justify-content: center; }
    .t-prof-name, .t-prof-title, .t-bio-text { text-align: center; }
    .t-prof-grid { gap: 1px; }
    .t-exp-company { font-size: 0.8rem; }
    .t-exp-role, .t-exp-duration { display: none; }
}

/* =========================================
   جادوی نهایی: جلوگیری از فارسی شدن اعداد در متن‌های انگلیسی
========================================= */
.testeto-app-frame :dir(ltr),
.testeto-app-frame [dir="ltr"] {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}