/*
============================================================
!!! فایل CSS نهایی: رفع کامل مشکل فونت فارسی و تداخل آیکون‌ها !!!
============================================================
*/

/* --- ۱. تعریف فونت Vazirmatn (مسیردهی ارسالی توسط شما) --- */
@font-face {
    font-family: 'Vazirmatn';
    /* مسیردهی ارسالی شما - اگر فایل CSS و پوشه fonts هم‌سطح هستند، این درست است */
    src: url('fonts/Vazirmatn-Regular.woff2') format('woff2'); 
    font-weight: 400;
    font-style: normal;
    font-display: swap; /* اضافه شدن برای بارگذاری سریع‌تر */
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* --- ۲. Global Variables and Base Styles --- */
:root {
    --bg-color: #121212;
    --text-color: #f0f0f0;
    --highlight-color: #00e0b7;
    --accent-color: #00b094;
    --card-bg: #1e1e1e;
    --border-color: #333;
    --neon-shadow-light: 0 0 5px var(--highlight-color), 0 0 10px var(--highlight-color);
    --neon-shadow-deep: 0 0 15px var(--highlight-color);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    /* FIX: حذف فونت از سلکتور عمومی * برای جلوگیری از تداخل با آیکون‌ها */
    transition: all 0.3s ease;
}

body {
    /* اعمال فونت اصلی فقط به Body */
    font-family: 'Vazirmatn', 'Tahoma', sans-serif; 
    background-color: var(--bg-color);
    color: var(--text-color);
    direction: rtl;
    text-align: right;
    line-height: 1.8;
    overflow-x: hidden;
}

/* FIX: اعمال فونت به تمامی تگ‌های متنی دیگر (به غیر از آیکون‌ها) */
section, div, p, a, button, input, textarea, ul, ol, li, span {
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
}

h1, h2, h3, h4 {
    /* FIX: اعمال فونت بولد به عناوین */
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
    text-shadow: var(--neon-shadow-light);
}
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; text-align: center; margin-bottom: 40px;}

a {
    color: var(--highlight-color);
    text-decoration: none;
}

.highlight {
    color: var(--highlight-color);
    text-shadow: 0 0 3px var(--accent-color);
}

.section {
    padding: 80px 5% 60px;
    max-width: 1800px;
    margin: 0 auto;
}
/* -------------------------------------------------------------------------- */
/* -------------------- ۳ تا ۱۲. بقیه استایل‌های شما (بدون تغییر) -------------------- */
/* -------------------------------------------------------------------------- */

/* --- ۳. Header and Navigation --- */
.header {
    background-color: var(--bg-color);
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header h1 {
    font-size: 1.8rem;
    margin: 0;
}

.nav a {
    margin: 0 15px;
    font-size: 1rem;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
}
.nav a:hover {
    color: var(--highlight-color);
    border-color: var(--highlight-color);
    text-shadow: var(--neon-shadow-light);
}

.auth a {
    margin-right: 15px;
    padding: 8px 15px;
    border: 1px solid var(--highlight-color);
    border-radius: 5px;
    font-size: 0.9rem;
}
.auth a:last-child {
    background-color: var(--highlight-color);
    color: var(--bg-color);
    box-shadow: var(--neon-shadow-light);
}
.auth a:last-child:hover {
    opacity: 0.9;
}

/* --- ۴. Hero Section --- */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
    padding-top: 100px;
    padding-bottom: 50px;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 40px;
}

.domain-search-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.domain-search {
    display: flex;
    width: 100%;
    max-width: 600px;
    background-color: var(--card-bg);
    border: 2px solid var(--highlight-color);
    border-radius: 10px;
    padding: 5px;
    box-shadow: var(--neon-shadow-light);
}

.search-input {
    flex-grow: 1;
    padding: 15px;
    border: none;
    background: none;
    color: var(--text-color);
    font-size: 1rem;
    text-align: right;
    direction: rtl;
    outline: none;
}
.search-input::placeholder {
    color: #888;
}

.search-button {
    background-color: var(--highlight-color);
    color: var(--bg-color);
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    box-shadow: 0 0 5px var(--highlight-color);
}
.search-button:hover {
    background-color: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
}

.domain-extensions button {
    background: var(--card-bg);
    color: var(--highlight-color);
    border: 1px solid var(--border-color);
    padding: 8px 15px;
    margin: 0 5px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    box-shadow: 0 0 3px rgba(0, 224, 183, 0.3);
}
.domain-extensions button:hover {
    background-color: var(--highlight-color);
    color: var(--bg-color);
}

.hero-spacer {
    /* Used for alignment, can be removed if not needed */
}

/* --- ۵. Services Grid Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.service-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--highlight-color);
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.5s ease;
}

.service-card:hover {
    border-color: var(--highlight-color);
    box-shadow: var(--neon-shadow-light);
    transform: translateY(-5px);
}
.service-card:hover::before {
    opacity: 1;
    transform: translateY(0);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--highlight-color);
    margin-bottom: 15px;
    text-shadow: var(--neon-shadow-light);
}

.service-card h4 {
    margin-bottom: 10px;
    font-size: 1.3rem;
    color: var(--highlight-color);
    text-shadow: none;
}

.service-card p {
    color: #aaa;
    margin-bottom: 20px;
    font-size: 0.95rem;
    flex-grow: 1;
}

.card-button {
    color: var(--highlight-color);
    font-weight: bold;
    border: 1px solid var(--highlight-color);
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
}
.service-card:hover .card-button {
    background-color: var(--highlight-color);
    color: var(--bg-color);
}

/* --- ۶. Pricing Section --- */
.tabs-container {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--border-color);
}

.pricing-tab {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    color: #888;
    border-bottom: 2px solid transparent;
    margin: 0 10px;
}

.pricing-tab.active-tab {
    color: var(--highlight-color);
    border-bottom-color: var(--highlight-color);
    text-shadow: var(--neon-shadow-light);
}

.tab-content {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.tab-content.active-content {
    display: grid;
}

.pricing-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    border-color: var(--accent-color);
    transform: scale(1.02);
}

.tag, .recommended-tag, .gold-tag {
    position: absolute;
    top: -15px;
    right: 50%;
    transform: translateX(50%);
    background-color: var(--highlight-color);
    color: var(--bg-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: var(--neon-shadow-light);
}

.recommended {
    border-color: gold !important;
    background-color: #252525;
    box-shadow: var(--neon-shadow-deep);
}
.recommended-tag {
    background-color: gold;
    color: #111;
    box-shadow: 0 0 10px gold;
}

.price-header {
    margin-bottom: 25px;
    flex-grow: 1;
}

.price-header h4 {
    margin-bottom: 5px;
    font-size: 1.5rem;
    text-shadow: none;
}

.price-header p:first-of-type {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 10px;
}

/* FIX: Farsi Number/Price Font and Direction */
.price-value {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--highlight-color);
    display: block;
    margin-top: 10px;
    direction: ltr;
    font-family: 'Tahoma', sans-serif !important; /* !important برای اطمینان از اعمال روی اعداد */
}
/* END FIX */

.features {
    list-style: none;
    margin-bottom: 30px;
    flex-grow: 2;
    text-align: right;
}

.features li {
    padding: 10px 0;
    border-bottom: 1px dashed #333;
    color: #ccc;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}
.features li:last-child {
    border-bottom: none;
}

.check-icon {
    color: var(--highlight-color);
    margin-left: 10px;
    font-size: 1rem;
    text-shadow: var(--neon-shadow-light);
}

.cta-button {
    background-color: var(--highlight-color);
    color: var(--bg-color);
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    display: block;
    margin-top: auto;
    box-shadow: var(--neon-shadow-light);
}
.cta-button:hover {
    background-color: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-color);
}

/* --- ۷. VIP Support Section --- */
.vip-support-section {
    padding-top: 60px;
    padding-bottom: 80px;
    background-color: #181818;
}

.vip-content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-direction: row-reverse;
}

.vip-graphic {
    flex: 1;
    text-align: center;
}

.vip-image-logo {
    max-width: 100%;
    height: auto;
    opacity: 0.8;
    filter: drop-shadow(0 0 10px var(--highlight-color));
}

.vip-text-details {
    flex: 2;
    text-align: right;
}

.vip-text-details h4 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    text-shadow: var(--neon-shadow-light);
}

.vip-features-list {
    list-style: none;
    margin-top: 20px;
}

.vip-features-list li {
    margin-bottom: 25px;
    padding-right: 35px;
    position: relative;
}

.vip-features-list li i {
    position: absolute;
    right: 0;
    top: 5px;
    font-size: 1.2rem;
}

.vip-features-list li p {
    color: #888;
    font-size: 0.9rem;
    margin-top: 5px;
    line-height: 1.5;
}

/* --- ۸. Detailed Services Section (Tabbed Content) --- */
.tech-details-section {
    padding-top: 80px;
}

.details-grid-wrapper {
    display: flex;
    gap: 30px;
    flex-direction: row-reverse;
}

.tab-buttons {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 300px;
}

.tab-button {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 10px;
    text-align: right;
    cursor: pointer;
    color: #ccc;
    display: flex;
    align-items: center;
    transition: all 0.3s;
}

.tab-button:hover {
    border-color: var(--highlight-color);
    color: var(--highlight-color);
    box-shadow: 0 0 8px rgba(0, 224, 183, 0.4);
}

.tab-button.active-tab-btn {
    border-color: var(--highlight-color);
    background-color: #252525;
    color: var(--highlight-color);
    box-shadow: var(--neon-shadow-light);
}

.icon-box {
    font-size: 1.5rem;
    margin-left: 15px;
    line-height: 1;
}

.title-text {
    font-weight: bold;
    font-size: 1rem;
}

.tab-content-area {
    flex: 2;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 10px;
}

.tab-content-details {
    display: none;
    animation: fadeIn 0.5s;
}

.tab-content-details.active-content-details {
    display: block;
}

.tab-content-details h4 {
    font-size: 1.6rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
    text-shadow: none;
    color: var(--highlight-color);
}

.tab-content-details p {
    color: #ccc;
    margin-bottom: 25px;
}

.feature-list-mini {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}
.feature-list-mini li {
    padding: 8px 0;
    color: #aaa;
    font-size: 0.95rem;
}
.feature-list-mini .check-icon {
    margin-left: 8px;
    color: var(--highlight-color);
    font-size: 0.8rem;
}

.details-cta-button {
    background-color: var(--accent-color);
    color: var(--text-color);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
}
.details-cta-button:hover {
    background-color: var(--highlight-color);
}

/* --- ۹. Training Slider Section --- */
.auto-training-section {
    padding: 60px 0;
    background-color: #181818;
}

.slider-full-width-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.slider-full-width-wrapper h2 {
    text-align: center;
    margin-bottom: 50px;
}

.slider-container-wrapper {
    position: relative;
    overflow: hidden;
}

.training-pages-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.training-page {
    min-width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.training-item-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 25px;
    border-radius: 10px;
    text-align: right;
    display: flex;
    flex-direction: column;
    color: var(--text-color);
    transition: all 0.3s;
    overflow: hidden;
}

.training-item-card:hover {
    border-color: var(--highlight-color);
    box-shadow: var(--neon-shadow-light);
}

.card-icon {
    font-size: 2rem;
    color: var(--highlight-color);
    margin-bottom: 15px;
    text-shadow: var(--neon-shadow-light);
}

.card-content {
    flex-grow: 1;
}

.card-content h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--highlight-color);
    text-shadow: none;
}

.card-content p {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 15px;
}

.view-link {
    color: var(--accent-color);
    font-weight: bold;
    display: block;
    margin-top: 10px;
}
.training-item-card:hover .view-link {
    color: var(--text-color);
}

.slider-btn-new {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: var(--highlight-color);
    border: 1px solid var(--highlight-color);
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
    font-weight: bold;
    border-radius: 5px;
}

.slider-btn-new.prev {
    right: 10px;
}

.slider-btn-new.next {
    left: 10px;
}

/* --- ۱۰. Floating Support Menu --- */
.support-menu-wrapper {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 2000;
}

.support-floating-icon {
    background-color: var(--highlight-color);
    color: var(--bg-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 0 15px var(--highlight-color);
    animation: pulse 2s infinite;
}

.support-item {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: var(--card-bg);
    color: var(--highlight-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.support-menu-wrapper:hover .support-item {
    opacity: 1;
    pointer-events: auto;
}

.support-menu-wrapper:hover .item-1 { transform: translateY(-70px); }
.support-menu-wrapper:hover .item-2 { transform: translateY(-130px); }
.support-menu-wrapper:hover .item-3 { transform: translate(-50px, -50px); }
.support-menu-wrapper:hover .item-4 { transform: translate(-90px, -10px); }
.support-menu-wrapper:hover .item-5 { transform: translate(-10px, -90px); }


/* --- ۱۱. Footer --- */
.footer {
    text-align: center;
    padding: 30px 5%;
    border-top: 1px solid var(--border-color);
    color: #666;
    font-size: 0.9rem;
}

/* --- ۱۲. Keyframes and Responsiveness --- */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 224, 183, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(0, 224, 183, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 224, 183, 0); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
    .header { flex-direction: column; gap: 15px; }
    .nav { display: flex; justify-content: center; width: 100%; }
    .auth { margin-top: 10px; }
    .hero-content h2 { font-size: 2.5rem; }
    .vip-content-wrapper, .details-grid-wrapper { flex-direction: column; align-items: center; }
    .tab-buttons { width: 100%; max-width: 100%; }
    .tab-content-area { width: 100%; }
    .vip-text-details, .vip-graphic { flex: 1; width: 100%; text-align: center; }
    .vip-features-list { text-align: right; }
}

@media (max-width: 600px) {
    .hero { min-height: 50vh; }
    .hero-content h2 { font-size: 2rem; }
    .domain-search { flex-direction: column; border: none; padding: 0; background: none; box-shadow: none; }
    .search-input { border: 2px solid var(--highlight-color); border-radius: 8px; margin-bottom: 10px; }
    .search-button { width: 100%; padding: 12px 0; }
    .domain-extensions button { margin: 5px; }
    .section { padding: 50px 5%; }
    h3 { font-size: 1.5rem; }
    .pricing-tab { padding: 10px 15px; font-size: 1rem; }
    .training-item-card { padding: 20px; }
}


/* --- ۱۳. FIX نهایی و قاطع برای تداخل آیکون‌های Font Awesome --- */
/* این بلوک مطمئن می‌شود که آیکون‌ها، فونت فارسی را به خود نگیرند */
.service-icon i,
.check-icon,
.tab-button i,
.icon-box i,
.support-floating-icon i,
.support-item i,
.vip-features-list li i,
.training-item-card i {
    /* اجبار به استفاده از فونت آیکون برای تمامی تگ‌های <i> در آیکون‌ها */
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", sans-serif !important;
    font-weight: 900 !important; /* اجبار به وزن بولد که آیکون‌ها به درستی نمایش داده شوند */
}