/* ============================================
   components.css - کامپوننت‌های مشترک تمام صفحات
   تاریخ: 2026-05-24 (نسخه نهایی)
   ============================================ */

/* ========== کارت استاندارد ========== */
.card-standard {
    background: rgba(24, 45, 97, 0.5) !important;
    backdrop-filter: blur(8px);
    border-radius: 20px;
    border: 1px solid rgba(107, 219, 60, 0.3);
    padding: 1.5rem;
    transition: all 0.3s ease;
}
.card-standard:hover {
    transform: translateY(-5px);
    border-color: #6bdb3c;
    background: rgba(24, 45, 97, 0.65) !important;
}

/* ========== دکمه‌های استاندارد ========== */
.btn-primary-custom {
    background: #6bdb3c;
    color: #000;
    border: none;
    border-radius: 40px;
    padding: 0.6rem 1.8rem;
    font-weight: bold;
    transition: all 0.2s ease;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
}
.btn-primary-custom:hover {
    background: #5bbd30;
    transform: scale(1.02);
    color: #000;
}

.btn-outline-custom {
    background: transparent;
    border: 1px solid #6bdb3c;
    color: #6bdb3c;
    border-radius: 40px;
    padding: 0.5rem 1.5rem;
    transition: all 0.2s ease;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
}
.btn-outline-custom:hover {
    background: #6bdb3c;
    color: #000;
}

.btn-sm-custom {
    padding: 0.3rem 1rem;
    font-size: 0.8rem;
}

/* دکمه‌های اختصاصی ابزارها */
.btn-submit {
    background: #6bdb3c;
    border: none;
    border-radius: 40px;
    padding: 0.5rem 1.5rem;
    font-weight: bold;
    color: #000;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-submit:hover {
    background: #5bbd30;
    transform: scale(1.02);
}

.btn-secondary {
    background: transparent;
    border: 1px solid #6bdb3c;
    border-radius: 40px;
    padding: 0.4rem 1rem;
    color: #6bdb3c;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: all 0.2s;
}
.btn-secondary:hover {
    background: rgba(107, 219, 60, 0.2);
}

.btn-predict {
    background: #6bdb3c;
    border: none;
    border-radius: 40px;
    padding: 0.6rem 2rem;
    font-weight: bold;
    color: #000;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
}
.btn-predict:hover {
    background: #5bbd30;
    transform: scale(1.02);
}

.btn-vision {
    background: #6bdb3c;
    color: #000;
    border: none;
    border-radius: 40px;
    padding: 8px 20px;
    font-weight: bold;
    transition: all 0.2s;
}
.btn-vision:hover {
    background: #5bbd30;
    transform: scale(1.02);
}

.btn-outline-vision {
    background: transparent;
    color: #6bdb3c;
    border: 1px solid #6bdb3c;
    border-radius: 40px;
    padding: 8px 16px;
    transition: all 0.2s;
}
.btn-outline-vision:hover:not(:disabled) {
    background: #6bdb3c;
    color: #000;
}

/* ========== هدر صفحات ========== */
.page-header {
    text-align: center;
    margin-bottom: 2.5rem;
}
.page-header h1 {
    color: #6bdb3c;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}
.page-header p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* هدر اختصاصی ابزارها */
.tool-header {
    text-align: center;
    margin-bottom: 1.5rem;
}
.tool-header h1 {
    color: #6bdb3c;
    font-size: 1.8rem;
}
.tool-header p {
    color: rgba(255, 255, 255, 0.7);
}

/* ========== عنوان بخش ========== */
.section-title {
    color: #6bdb3c;
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}
.section-title:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #6bdb3c;
    margin: 10px auto 0;
}

.section-title-left {
    color: #6bdb3c;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    padding-right: 0.75rem;
    border-right: 3px solid #6bdb3c;
}

/* ========== تب‌ها (Tabs) ========== */
.tabs-container {
    margin-bottom: 1.5rem;
}
.tabs-buttons {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(107, 219, 60, 0.3);
    padding-bottom: 0.5rem;
    flex-wrap: wrap;
}
.tab-btn {
    background: transparent;
    border: none;
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.3s;
}
.tab-btn.active {
    background: #6bdb3c;
    color: #000;
}
.tab-btn:hover:not(.active) {
    background: rgba(107, 219, 60, 0.2);
    color: #6bdb3c;
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

/* ========== ویدئو کارت ========== */
.video-card {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid rgba(107, 219, 60, 0.3);
    transition: all 0.3s;
    text-align: center;
}
.video-card:hover {
    transform: translateY(-5px);
    border-color: #6bdb3c;
}
.video-title {
    color: #6bdb3c;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}
.video-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}
.video-duration {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
}
.btn-watch {
    background: #6bdb3c;
    border: none;
    border-radius: 40px;
    padding: 0.3rem 1.2rem;
    font-size: 0.85rem;
    color: #000;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-watch:hover {
    background: #5bbd30;
    transform: scale(1.02);
}

/* ========== مودال ویدئو ========== */
.modal-video {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}
.modal-video.active {
    display: flex;
}
.modal-video-content {
    position: relative;
    width: 85%;
    max-width: 1000px;
    margin: auto;
    background: transparent;
}
.video-wrapper {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}
.modal-video-content video {
    width: 100%;
    height: auto;
    max-height: 80vh;
    display: block;
    object-fit: contain;
}
.close-modal {
    position: absolute;
    top: -45px;
    right: 0;
    color: white;
    font-size: 35px;
    cursor: pointer;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.5);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.close-modal:hover {
    background: #dc3545;
    transform: scale(1.1);
}
.modal-title {
    color: white;
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .modal-video-content {
        width: 95%;
    }
    .modal-title {
        font-size: 0.9rem;
    }
    .close-modal {
        top: -40px;
        font-size: 28px;
        width: 28px;
        height: 28px;
    }
}

/* ========== فرم‌ها ========== */
.form-group-custom {
    margin-bottom: 1rem;
}
.form-group-custom label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}
.form-control-custom {
    width: 100%;
    padding: 0.6rem 1rem;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(107, 219, 60, 0.3);
    border-radius: 12px;
    color: white;
    font-size: 0.9rem;
}
.form-control-custom:focus {
    outline: none;
    border-color: #6bdb3c;
    box-shadow: 0 0 0 2px rgba(107, 219, 60, 0.25);
}
.form-control-custom::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* فرم کارت */
.form-card {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(107, 219, 60, 0.3);
}

/* ردیف تنظیمات */
.setting-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1rem;
    align-items: center;
}
.setting-group {
    flex: 1;
    min-width: 150px;
}
.setting-group label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
}
.setting-group select,
.setting-group input {
    width: 100%;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(107, 219, 60, 0.3);
    border-radius: 8px;
    color: white;
}

/* ردیف ویژگی‌ها */
.property-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 0.8fr 0.8fr 0.5fr;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    align-items: center;
}
.property-row select,
.property-row input {
    width: 100%;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(107, 219, 60, 0.3);
    border-radius: 8px;
    color: white;
}
.property-row select option {
    background: #1a1a2e;
}
.remove-row {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 1.2rem;
}
.remove-row:hover {
    color: #ff6b6b;
}

/* فرم پیش‌بینی خواص */
.form-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
}
.form-row-3 {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
}
.divider {
    height: 1px;
    background: rgba(107, 219, 60, 0.2);
    margin: 1.5rem 0;
}
.subtitle {
    color: #6bdb3c;
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 1rem;
    border-right: 3px solid #6bdb3c;
    padding-right: 0.75rem;
}
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.checkbox-group input {
    width: auto;
}
.checkbox-group label {
    margin: 0;
    cursor: pointer;
}

/* نتایج کارت */
.results-card {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border: 1px solid rgba(107, 219, 60, 0.3);
}
.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.result-item:last-child {
    border-bottom: none;
}
.result-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}
.result-value {
    color: #6bdb3c;
    font-size: 1.2rem;
    font-weight: bold;
}
.result-note {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    text-align: center;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* پیام‌ها */
.pp-message {
    text-align: center;
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 12px;
}
.pp-message.loading {
    color: #ffc107;
}
.pp-message.success {
    color: #6bdb3c;
    background: rgba(107, 219, 60, 0.1);
}
.pp-message.error {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

/* KPI کارت (بینایی ماشین) */
.kpi-card {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 1rem;
    text-align: center;
    border: 1px solid rgba(107, 219, 60, 0.3);
    transition: all 0.3s;
}
.kpi-card:hover {
    transform: translateY(-5px);
    background: rgba(107, 219, 60, 0.15);
    border-color: #6bdb3c;
}
.kpi-number {
    font-size: 2rem;
    font-weight: bold;
    color: #6bdb3c;
}

/* جدول نتایج (grade-selector) */
.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}
.results-table th,
.results-table td {
    border: 1px solid rgba(107, 219, 60, 0.2);
    padding: 0.75rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}
.results-table th {
    background: rgba(107, 219, 60, 0.15);
    color: #6bdb3c;
}
.score-high {
    color: #6bdb3c;
    font-weight: bold;
}
.score-medium {
    color: #ffc107;
    font-weight: bold;
}
.score-low {
    color: #dc3545;
}

/* کارت تاریک (عمومی) */
.card-dark {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(107, 219, 60, 0.2);
    border-radius: 20px;
}
.card-dark .card-title {
    color: #6bdb3c;
}

/* ========== پیام‌ها ========== */
.message-success {
    background: rgba(107, 219, 60, 0.1);
    border: 1px solid #6bdb3c;
    border-radius: 12px;
    padding: 0.75rem;
    text-align: center;
    color: #6bdb3c;
}
.message-error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid #dc3545;
    border-radius: 12px;
    padding: 0.75rem;
    text-align: center;
    color: #dc3545;
}
.message-loading {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid #ffc107;
    border-radius: 12px;
    padding: 0.75rem;
    text-align: center;
    color: #ffc107;
}
.message-info {
    background: rgba(107, 219, 60, 0.1);
    border: 1px solid #6bdb3c;
    border-radius: 12px;
    padding: 0.75rem;
    text-align: center;
    color: #6bdb3c;
}

/* ========== اطلاعات کارت ========== */
.info-card {
    background: rgba(24, 45, 97, 0.75) !important;
    border-radius: 16px;
    padding: 1.2rem;
    transition: all 0.3s ease;
    border-right: 3px solid #6bdb3c;
}
.info-card:hover {
    transform: translateY(-3px);
    background: rgba(0, 0, 0, 0.75);
}
.info-card h6 {
    color: #6bdb3c;
    font-weight: bold;
    margin-bottom: 0.5rem;
}
.info-card p {
    color: #e0e0e0;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

/* ========== بخش آمار ========== */
.stats-section {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(107, 219, 60, 0.2);
}
.stat-item {
    text-align: center;
}
.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #6bdb3c;
}
.stat-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

/* ========== سوالات متداول ========== */
.faq-section {
    margin-top: 2rem;
}
.faq-item {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
}
.faq-question {
    color: #6bdb3c;
    font-weight: bold;
    margin-bottom: 0.5rem;
}
.faq-answer {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* ========== دکمه تماس با ما ========== */
.btn-contact {
    background: #6bdb3c;
    color: #000;
    border: none;
    border-radius: 40px;
    padding: 0.6rem 2rem;
    font-weight: bold;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}
.btn-contact:hover {
    background: #5bbd30;
    transform: scale(1.02);
    color: #000;
}

/* ========== ریسپانسیو فرم‌ها ========== */
@media (max-width: 768px) {
    .form-row,
    .form-row-3,
    .property-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    .setting-row {
        flex-direction: column;
        gap: 0.5rem;
    }
}
/* ========================================
   دکمه شناور مسیرها (floating-tools) - سمت چپ
   ======================================== */

.floating-tools {
    position: fixed;
    bottom: 155px;
    left: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
}

.floating-tools-btn {
    background: rgb(24, 45, 97);
    color: #6bdb3c;
    padding: 8px 16px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.85rem;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    border: 1px solid #6bdb3c;
    align-self: flex-start;
    margin-right: auto;
    position: relative; /* برای tooltip */
}

.floating-tools-btn i {
    font-size: 1.5rem;
}

.floating-tools-btn:hover {
    transform: scale(1.03);
    background: #5bbd30;
    color: #000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.floating-tools-btn:hover i {
    color: #000;
}

/* tooltip برای دکمه اصلی floating-tools */
.floating-tools-btn .btn-tooltip {
    position: absolute;
    right: auto;
    left: 70px;
    background: rgba(0, 0, 0, 0.9);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    color: #6bdb3c;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 99999;
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(107, 219, 60, 0.3);
}

.floating-tools-btn:hover .btn-tooltip {
    opacity: 1;
    visibility: visible;
    left: 80px;
}

.floating-tools-menu {
    position: absolute;
    bottom: 70px;  /* فاصله از دکمه به سمت بالا */
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);  /* از پایین می‌آید */
    transition: all 0.25s ease;
}

.floating-tools-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);  /* به موقعیت اصلی می‌رسد */
}

.tools-option {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    color: white;
    padding: 6px 14px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #6bdb3c;
    white-space: nowrap;  /* اضافه شد - جلوگیری از رفتن به خط بعد */
    min-width: fit-content;  /* اضافه شد - عرض بر اساس محتوا */
}

.tools-option i {
    color: #6bdb3c;
    font-size: 0.85rem;
}

.tools-option:hover {
    background: #6bdb3c;
    transform: translateX(4px);
    border-color: #6bdb3c;
}

.tools-option:hover i {
    color: #000;
}

.tools-option:hover span {
    color: #000;
}
/* ========================================
   منوی ارتباطی دایره‌ای شناور (floating-contact-menu) - سمت راست
   ======================================== */

.floating-contact-menu {
    position: fixed !important;
    bottom: 130px;
    right: 17px;
    z-index: 999999 !important;  /* بسیار بالا */
    display: block !important;
}

/* دکمه اصلی منو */
.floating-contact-toggle {
    width: 65px;
    height: 65px;
    background: rgb(24, 45, 97);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
    border: 1px solid #6bdb3c;
}

.floating-contact-toggle:hover {
    transform: scale(1.05);
    background: #5bbd30;
}

.floating-contact-toggle:hover i {
    color: #000;
}

.floating-contact-toggle i,
.floating-contact-toggle span {
    color: #6bdb3c;
    font-size: 1.8rem;
}

/* ========== تولتیپ دکمه اصلی - به سمت بالا ========== */
.floating-contact-toggle .btn-tooltip {
    position: absolute;
    bottom: 75px;  /* به سمت بالا (بالای دکمه) */
    left: 50%;
    transform: translateX(-50%);  /* وسط‌چین نسبت به دکمه */
    background: rgba(0, 0, 0, 0.95);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.8rem;
    color: #6bdb3c;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 999999 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(107, 219, 60, 0.3);
    backdrop-filter: blur(8px);
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
    font-weight: 500;
}


.floating-contact-toggle:hover .btn-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: 85px;  /* کمی بالاتر از دکمه با فاصله بیشتر */
}

/* لیست گزینه‌های ارتباطی */
.floating-contact-items {
    position: absolute;
    bottom: 75px;
    right: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
    visibility: hidden;
    z-index: 999999 !important;

}

.floating-contact-items li {
    position: absolute;
    width: 48px;
    height: 48px;
    background: black;  /* هماهنگ با floating-tools-btn */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    right: 8px;
    bottom: 0;
    border: 1px solid #6bdb3c;
}

.floating-contact-items li:hover {
    transform: scale(1.1);
    background: #6bdb3c;  /* هماهنگ با hover floating-tools-btn */
}

.floating-contact-items li:hover a i {
    color: #000;
}

.floating-contact-items li a {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.floating-contact-items li a i {
    color: white;
    font-size: 1.4rem;
}

/* متن راهنما روی هاور برای آیتم‌ها */
.floating-contact-items li .tooltip-text {
    position: absolute;
    right: 60px;
    background: rgba(0, 0, 0, 0.9);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    color: #6bdb3c;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
    font-weight: 500;
    z-index: 999999 !important;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(107, 219, 60, 0.3);
}

.floating-contact-items li:hover .tooltip-text {
    opacity: 1;
    visibility: visible;
    right: 65px;
    z-index: 99999 !important;;
}

/* کلاس active برای نمایش منو */
.floating-contact-menu.active .floating-contact-items {
    visibility: visible;
    z-index: 999999 !important;
}

.floating-contact-menu.active .floating-contact-items li {
    opacity: 1;
    visibility: visible;
    z-index: 999999 !important;
}

/* موقعیت آیتم‌ها در حالت باز (دایره‌ای سمت راست) */
.floating-contact-menu.active .floating-contact-items li:nth-child(1) {
    transform: translate(20px, -95px);
    transition-delay: 0s;
}
.floating-contact-menu.active .floating-contact-items li:nth-child(2) {
    transform: translate(65px, -75px);
    transition-delay: 0.05s;
}
.floating-contact-menu.active .floating-contact-items li:nth-child(3) {
    transform: translate(95px, -30px);
    transition-delay: 0.1s;
}
.floating-contact-menu.active .floating-contact-items li:nth-child(4) {
    transform: translate(105px, 25px);
    transition-delay: 0.15s;
}
.floating-contact-menu.active .floating-contact-items li:nth-child(5) {
    transform: translate(85px, 70px);
    transition-delay: 0.2s;
}
.floating-contact-menu.active .floating-contact-items li:nth-child(6) {
    transform: translate(45px, 95px);
    transition-delay: 0.25s;
}

/* ========================================
   نسخه موبایل
   ======================================== */

@media (max-width: 768px) {
    .floating-tools {
        bottom: 20px;
        left: 20px;
    }
    
    .floating-tools-btn {
        padding: 7px 14px;
        font-size: 0.75rem;
    }
    
    .floating-tools-btn span {
        display: inline;
    }
    
    .tools-option span {
        display: inline;
        font-size: 0.7rem;
    }
    
    .floating-contact-menu {
        bottom: 20px;
        right: 20px;
    }
    
    .floating-contact-toggle {
        width: 55px;
        height: 55px;
    }
    
    .floating-contact-toggle i {
        font-size: 1.4rem;
    }
    
    .floating-contact-items li {
        width: 42px;
        height: 42px;
    }
    
    .floating-contact-items li a i {
        font-size: 1.1rem;
    }
    
    /* تنظیم مختصات موبایل */
    .floating-contact-menu.active .floating-contact-items li:nth-child(1) {
        transform: translate(15px, -70px);
    }
    .floating-contact-menu.active .floating-contact-items li:nth-child(2) {
        transform: translate(50px, -55px);
    }
    .floating-contact-menu.active .floating-contact-items li:nth-child(3) {
        transform: translate(70px, -20px);
    }
    .floating-contact-menu.active .floating-contact-items li:nth-child(4) {
        transform: translate(75px, 20px);
    }
    .floating-contact-menu.active .floating-contact-items li:nth-child(5) {
        transform: translate(60px, 55px);
    }
    .floating-contact-menu.active .floating-contact-items li:nth-child(6) {
        transform: translate(30px, 70px);
    }
}

@media (max-width: 480px) {
    .floating-tools-btn span {
        display: none;
    }
    .floating-tools-btn {
        padding: 8px 12px;
    }
    .floating-tools-btn i {
        font-size: 1rem;
        margin: 0;
    }
    .tools-option span {
        display: none;
    }
    .tools-option {
        padding: 8px 12px;
    }
    .tools-option i {
        font-size: 0.9rem;
        margin: 0;
    }
}

.floating-contact-items li:hover .tooltip-text {
    opacity: 1;
    visibility: visible;
    right: 65px;
}

/* اطمینان از اینکه والد محدودیت ایجاد نمی‌کند */
.floating-contact-menu,
.floating-contact-items,
.floating-contact-items li {
    overflow: visible !important;
    z-index: auto;
}

.floating-contact-items li {
    z-index: 1;
}

.floating-contact-items li .tooltip-text {
    z-index: 99999 !important;
}
/* کلاس active برای نمایش منو */
.floating-contact-menu.active .floating-contact-items {
    visibility: visible;
}

.floating-contact-menu.active .floating-contact-items li {
    opacity: 1;
    visibility: visible;
}

/* ========== حالت باز شدن به صورت پادساعتگرد ========== */
/* آیتم اول (ساعت 12) */
.floating-contact-menu.active .floating-contact-items li:nth-child(1) {
    transform: translate(-45px, -94px);
    transition-delay: 0s;
}

/* آیتم دوم (ساعت 10:30) */
.floating-contact-menu.active .floating-contact-items li:nth-child(2) {
    transform: translate(-85px, -69px);
    transition-delay: 0.05s;
}

/* آیتم سوم (ساعت 9) */
.floating-contact-menu.active .floating-contact-items li:nth-child(3) {
    transform: translate(-105px, -24px);
    transition-delay: 0.1s;
}

/* آیتم چهارم (ساعت 7:30) */
.floating-contact-menu.active .floating-contact-items li:nth-child(4) {
    transform: translate(-105px, 25px);
    transition-delay: 0.15s;
}

/* آیتم پنجم (ساعت 6) */
.floating-contact-menu.active .floating-contact-items li:nth-child(5) {
    transform: translate(-85px, 70px);
    transition-delay: 0.2s;
}

/* آیتم ششم (ساعت 4:30) */
.floating-contact-menu.active .floating-contact-items li:nth-child(6) {
    transform: translate(-45px, 95px);
    transition-delay: 0.25s;
}

/* نسخه موبایل */
@media (max-width: 768px) {
    .floating-contact-menu {
        bottom: 20px;
        left: 20px;
    }

    .floating-contact-toggle {
        width: 55px;
        height: 55px;
    }

    .floating-contact-toggle span {
        font-size: 1.4rem;
    }

    .floating-contact-items li {
        width: 42px;
        height: 42px;
    }

    .floating-contact-items li a {
        font-size: 1.1rem;
    }

    .floating-contact-items li .tooltip-text {
        font-size: 0.65rem;
        right: 48px;
    }
    /* تنظیم مجدد مختصات برای موبایل - پادساعتگرد */
    .floating-contact-menu.active .floating-contact-items li:nth-child(1) {
        transform: translate(-15px, -70px);
    }
    .floating-contact-menu.active .floating-contact-items li:nth-child(2) {
        transform: translate(-50px, -55px);
    }
    .floating-contact-menu.active .floating-contact-items li:nth-child(3) {
        transform: translate(-70px, -20px);
    }
    .floating-contact-menu.active .floating-contact-items li:nth-child(4) {
        transform: translate(-75px, 20px);
    }
    .floating-contact-menu.active .floating-contact-items li:nth-child(5) {
        transform: translate(-60px, 55px);
    }
    .floating-contact-menu.active .floating-contact-items li:nth-child(6) {
        transform: translate(-30px, 70px);
    }
}

/* ======================================== */
/* دکمه شناور سوال (Floating FAQ Button) */
/* هماهنگ با floating-contact-toggle */
/* ======================================== */

.floating-faq-btn {
    position: fixed;
    bottom: 40px;  /* بالای دکمه ارتباطی (که bottom:30px است) */
    right: 17px;
    z-index: 9998;
}

.floating-faq-btn a {
    width: 65px;
    height: 65px;
    background: rgb(24, 45, 97);  /* همان رنگ floating-contact-toggle */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid #6bdb3c;  /* حاشیه سبز مثل دکمه ارتباطی */
}

.floating-faq-btn a:hover {
    transform: scale(1.05);
    background: #5bbd30;  /* همان رنگ hover */
	
}

.floating-faq-btn a:hover i {
    color: #000;
}

.floating-faq-btn a i {
    color: #6bdb3c;  /* همان رنگ آیکون */
    font-size: 1.8rem;
}

/* ========== تولتیپ - به سمت بالا (مثل دکمه ارتباطی) ========== */
.floating-faq-btn .faq-tooltip {
    position: absolute;
    right: 75px;
    background: rgba(0, 0, 0, 0.95);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.8rem;
    color: #6bdb3c;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 999999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(107, 219, 60, 0.3);
    backdrop-filter: blur(8px);
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
    font-weight: 500;
}


.floating-faq-btn a:hover .faq-tooltip {
    opacity: 1;
    visibility: visible;
    right: 85px;
}

/* ======================================== */
/* ریسپانسیو موبایل */
/* ======================================== */

@media (max-width: 768px) {
    .floating-faq-btn {
        bottom: 100px;
        right: 20px;
    }
    
    .floating-faq-btn a {
        width: 55px;
        height: 55px;
    }
    
    .floating-faq-btn a i {
        font-size: 1.4rem;
    }
    
    .floating-faq-btn .faq-tooltip {
        font-size: 0.7rem;
        padding: 6px 12px;
        bottom: 65px;
    }
    
    .floating-faq-btn .faq-tooltip::after {
        bottom: -6px;
        border-width: 6px 6px 0 6px;
    }
    
    .floating-faq-btn a:hover .faq-tooltip {
        bottom: 72px;
    }
}

/* ======================================== */
/* فلش‌های جهتی شناور (nav-arrows) */
/* ======================================== */

.nav-arrows {
    position: fixed;
    left: 30px;
    bottom: 40px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.nav-arrow {
    width: 45px;
    height: 45px;
    background: rgb(24, 45, 97) !important;
    backdrop-filter: blur(8px);
    border: 1px solid #6bdb3c !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.nav-arrow i {
    font-size: 1.2rem;
    color: #6bdb3c !important;
}

.nav-arrow.active {
    opacity: 1;
    animation: pulse 1.5s infinite;
}

/* متن تولتیپ فلش‌ها */
.nav-arrow .arrow-text {
    position: absolute;
    left: 55px;
    background: rgba(0, 0, 0, 0.85);
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 500;
    color: #6bdb3c;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

/* نمایش متن در هاور */
.nav-arrow:hover .arrow-text {
    opacity: 1;
    visibility: visible;
    left: 60px;
}

/* ======================================== */
/* افکت زوم (بزرگ و کوچک شدن) برای فلش‌ها */
/* ======================================== */

@keyframes zoomPulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.15);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.7;
    }
}

.nav-arrow.active {
    animation: zoomPulse 1.2s ease-in-out infinite;
}

/* وضعیت‌های مختلف صفحه برای فلش‌ها */
body.at-top .nav-arrow-up { 
    opacity: 0.4; 
    animation: none; 
}

body.at-top .nav-arrow-down { 
    opacity: 1; 
    animation: zoomPulse 1.2s ease-in-out infinite; 
}

body.at-bottom .nav-arrow-up { 
    opacity: 1; 
    animation: zoomPulse 1.2s ease-in-out infinite; 
}

body.at-bottom .nav-arrow-down { 
    opacity: 0.4; 
    animation: none; 
}

body.at-middle .nav-arrow-up,
body.at-middle .nav-arrow-down { 
    opacity: 1; 
    animation: zoomPulse 1.2s ease-in-out infinite; 
}
/* ======================================== */
/* ریسپانسیو فلش‌ها */
/* ======================================== */

@media (max-width: 768px) {
    .nav-arrows {
        left: 10px;
        bottom: 10px;
        gap: 10px;
    }
    
    .nav-arrow {
        width: 34px;
        height: 34px;
    }
    
    .nav-arrow i {
        font-size: 0.8rem;
    }
    
    .nav-arrow .arrow-text {
        font-size: 0.6rem;
        padding: 4px 8px;
        left: 45px;
    }
    
    .nav-arrow:hover .arrow-text {
        left: 48px;
    }
}

@media (max-width: 480px) {
    .nav-arrows {
        left: 8px;
        bottom: 8px;
        gap: 8px;
    }
    
    .nav-arrow {
        width: 30px;
        height: 30px;
    }
    
    .nav-arrow i {
        font-size: 0.75rem;
    }
}