/* =========================================================
   بارگذاری فونت استعداد (Estedad)
========================================================= */
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/estedad@v1.0.1/dist/font-face.css');


/* =========================================================
   متغیرهای اصلی پروژه
========================================================= */
:root {
    --primary-color: #1a4231;
    --primary-dark: #0b1a13;
    --accent-color: #72b57d;
    --accent-light: #83c38d;

    --cream: #f4f7f5;
    --white: #ffffff;

    --dark-overlay: rgba(7, 24, 16, 0.74);
    --dark-overlay-mobile: rgba(7, 24, 16, 0.80);

    --glass-bg: rgba(11, 35, 25, 0.66);
    --glass-bg-light: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.16);

    --error-color: #ff8a80;
    --transition-speed: 0.3s;

    --font-family: 'Estedad', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}


/* =========================================================
   تنظیمات پایه و عمومی
========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;

    font-family: var(--font-family);
    color: var(--cream);
    line-height: 1.6;

    /*
      تصویر اصلی به‌عنوان بک‌گراند کل سایت.
      رنگ زمینه قبل از لود تصویر نیز ظاهر مناسبی ایجاد می‌کند.
    */
    background-color: #0b1a13;
    background-image:
        linear-gradient(var(--dark-overlay), var(--dark-overlay)),
        url('img/back.png');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    background-attachment: fixed;
}

body.menu-is-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button,
input {
    font: inherit;
}

button {
    border: 0;
}

a {
    color: inherit;
    text-decoration: none;
}


/* =========================================================
   بهینه‌سازی افکت‌ها برای دستگاه‌هایی که پشتیبانی می‌کنند
========================================================= */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .main-header,
    .main-nav,
    .modal-content,
    .modal-wrapper,
    .slider-btn,
    .btn-register-trigger {
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
    }
}


/* =========================================================
   هدر شیشه‌ای ثابت
========================================================= */
.main-header {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;

    width: 100%;
    padding: 15px 0;

    background: rgba(8, 28, 20, 0.78);
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);

    transition: background-color var(--transition-speed) ease;
}

.header-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* =========================================================
   ناوبری اصلی
========================================================= */
.nav-list {
    display: flex;
    align-items: center;
    gap: 14px;

    padding: 0;
    margin: 0;

    list-style: none;
}

.nav-link {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    /*
      ابعاد، فونت و حاشیه ثابت هستند.
      تغییر font-size یا padding در هاور باعث جابه‌جایی منو نمی‌شود.
    */
    min-height: 42px;
    padding: 10px 15px;

    color: rgba(255, 255, 255, 0.82);
    border: 1px solid transparent;
    border-radius: 14px;

    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;

    transform: translateZ(0);
    transition:
        color var(--transition-speed) ease,
        background-color var(--transition-speed) ease,
        border-color var(--transition-speed) ease,
        box-shadow var(--transition-speed) ease;
}

/*
  خط متحرک زیر متن منو
*/
.nav-link::after {
    position: absolute;
    right: 50%;
    bottom: 5px;

    width: 0;
    height: 2px;

    content: '';
    border-radius: 10px;
    background: var(--accent-color);
    box-shadow: 0 0 8px rgba(114, 181, 125, 0.8);

    transform: translateX(50%);
    transition:
        width var(--transition-speed) ease,
        box-shadow var(--transition-speed) ease;
}

/*
  هاله شیشه‌ای پشت آیتم منو
*/
.nav-link::before {
    position: absolute;
    z-index: -1;
    inset: 0;

    content: '';
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.045);
    box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.03);

    opacity: 0;
    transition:
        opacity var(--transition-speed) ease,
        background-color var(--transition-speed) ease,
        box-shadow var(--transition-speed) ease;
}

/*
  فقط رنگ و هاله تغییر می‌کند.
  خود کادر، padding و اندازه ثابت می‌مانند.
  بنابراین آیتم‌های اطراف تکان نمی‌خورند.
*/
.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.045);
    border-color: rgba(255, 255, 255, 0.05);
}

.nav-link:hover::before,
.nav-link.active::before {
    opacity: 1;
    background: rgba(255, 255, 255, 0.08);
    box-shadow:
        0 0 15px rgba(114, 181, 125, 0.25),
        inset 0 0 12px rgba(255, 255, 255, 0.08);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - 30px);
    box-shadow:
        0 0 6px var(--accent-color),
        0 0 14px rgba(114, 181, 125, 0.72);
}


/* =========================================================
   دکمه عضویت شیشه‌ای هدر
========================================================= */
.btn-register-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    padding: 10px 22px;

    color: var(--white);
    background: var(--glass-bg-light);
    border: 1px solid var(--glass-border);
    border-radius: 50px;

    font-family: var(--font-family);
    font-size: 0.9rem;
    font-weight: 600;

    cursor: pointer;
    transition:
        background-color var(--transition-speed) ease,
        color var(--transition-speed) ease,
        border-color var(--transition-speed) ease,
        box-shadow var(--transition-speed) ease,
        transform var(--transition-speed) ease;
}

.btn-register-trigger:hover {
    color: #102d21;
    background: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 18px rgba(114, 181, 125, 0.4);
    transform: translateY(-2px);
}


/* =========================================================
   دکمه همبرگری
========================================================= */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;

    width: 30px;
    padding: 5px;

    background: transparent;
    cursor: pointer;
}

.menu-toggle span {
    display: block;

    width: 100%;
    height: 2px;

    background: var(--white);
    border-radius: 5px;

    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}

.menu-close {
    display: none;
}


/* =========================================================
   بخش Hero
========================================================= */
.hero-section {
    position: relative;

    min-height: 85vh;
    padding: 140px 20px 80px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
    background: transparent;
}

.hero-content {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    margin-bottom: 20px;

    color: var(--white);
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.3;

    text-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}

.hero-content p {
    margin-bottom: 35px;

    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.8;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 14px 35px;

    color: #0b1a13;
    background: var(--accent-color);
    border-radius: 50px;

    font-size: 1.05rem;
    font-weight: 700;

    box-shadow: 0 4px 15px rgba(114, 181, 125, 0.3);
    transition:
        background-color var(--transition-speed) ease,
        box-shadow var(--transition-speed) ease,
        transform var(--transition-speed) ease;
}

.hero-btn:hover {
    background: var(--accent-light);
    box-shadow: 0 7px 22px rgba(114, 181, 125, 0.5);
    transform: translateY(-3px);
}


/* =========================================================
   بخش آخرین مقالات
========================================================= */
.latest-articles-section {
    position: relative;

    padding: 70px 8%;

    color: var(--white);
    background: rgba(10, 29, 20, 0.48);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.articles-heading {
    margin-bottom: 10px;
    text-align: center;
   
    margin-top: 40px;
}

.section-badge {
    display: block;
    margin-bottom: 8px;

    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.articles-heading h2 {
    margin-bottom: 10px;

    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 800;

    /*
      سبز نعناییِ روشن؛ هماهنگ با فضای گیاهی سایت
      و خوانا روی پس‌زمینهٔ تیره
    */
    color: #b7efae;

    /* هالهٔ بسیار ملایم برای جداسازی عنوان از بک‌گراند */
    text-shadow:
        0 2px 12px rgba(0, 0, 0, 0.48),
        0 0 18px rgba(151, 222, 137, 0.18);
}


.articles-heading p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
}


/* =========================================================
   ساختار کلی اسلایدر
========================================================= */
.articles-slider-container {
    position: relative;

    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.articles-slider {
    position: relative;

    display: flex;
    align-items: center;
}

.articles-viewport {
    width: 100%;
    overflow: hidden;
    margin-top: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.38);
    
}

/* =========================================================
   ریل اسلایدر
   جهت خود ریل باید LTR باشد تا transform منفی در JavaScript
   هر اسلاید را دقیقاً به‌اندازه عرض خودش جابه‌جا کند.
========================================================= */
.articles-track {
    display: flex;
    direction: ltr;

    transition: transform 0.65s cubic-bezier(0.25, 1, 0.5, 1);
}

/* محتوای هر اسلاید همچنان فارسی و راست‌چین باقی می‌ماند */
.article-slide {
    direction: rtl;
    
}


.article-slide {
    position: relative;
    
    flex: 0 0 100%;
    min-height: 250px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background-position: center;
    background-size: cover;
    border-radius: 20px;
}

.article-slide::before {
    position: absolute;
    z-index: 1;
    inset: 0;

    content: '';
    background: linear-gradient(
        90deg,
        rgba(8, 24, 17, 0.91) 0%,
        rgba(8, 24, 17, 0.66) 45%,
        rgba(8, 24, 17, 0.28) 100%
    );
}

.article-slide-1 {
    background-image: url('img/slide-1.png');
}

.article-slide-2 {
    background-image: url('img/slide-2.jpg');
    background-position: 70% center;
}

.article-slide-3 {
    background-image: url('img/slide-3.jpg');
    background-position: 30% center;
}

.article-slide-4 {
    background-image: url('img/slide-4.jpg');
    background-position: 80% center;
}

.article-slide-content {
    position: relative;
    z-index: 2;

    width: 80%;
    padding: 30px 60px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.article-slide h3 {
    margin-bottom: 15px;

    color: var(--cream);
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 700;
    line-height: 1.6;

    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.article-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 600;

    transition: color 0.2s ease;
}

.article-more-btn:hover {
    color: var(--white);
}


/* =========================================================
   دکمه‌های قبلی و بعدی اسلایدر
========================================================= */
.slider-btn {
    position: absolute;
    z-index: 10;
    top: 50%;

    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;

    font-size: 1.8rem;
    line-height: 1;

    cursor: pointer;
    transform: translateY(-50%);
    transition:
        background-color var(--transition-speed) ease,
        color var(--transition-speed) ease,
        border-color var(--transition-speed) ease,
        transform var(--transition-speed) ease;
}

.slider-btn:hover {
    color: #102d21;
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-50%) scale(1.1);
}

.btn-prev {
    right: -60px;
}

.btn-next {
    left: -60px;
}


/* =========================================================
   نقاط ناوبری اسلایدر
========================================================= */
.slider-dots {
    position: absolute;
    z-index: 10;
    bottom: 20px;
    left: 50%;

    display: flex;
    gap: 8px;

    transform: translateX(-50%);
}

.slider-dot {
    width: 8px;
    height: 8px;
    padding: 0;

    background: rgba(255, 255, 255, 0.42);
    border: none;
    border-radius: 50%;

    cursor: pointer;
    transition:
        width var(--transition-speed) ease,
        background-color var(--transition-speed) ease;
}

.slider-dot.active {
    width: 24px;
    background: var(--accent-color);
    border-radius: 10px;
}


/* =========================================================
   مودال شیشه‌ای عضویت
========================================================= */
.modal-wrapper {
    position: fixed;
    z-index: 2000;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(6, 17, 12, 0.8);

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.modal-wrapper.is-open {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    position: relative;

    width: 90%;
    max-width: 480px;
    padding: 40px;

    background: rgba(15, 38, 28, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.48);

    transform: translateY(20px);
    transition: transform 0.35s ease;
}

.modal-wrapper.is-open .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    left: 20px;

    color: rgba(255, 255, 255, 0.65);
    background: transparent;

    font-size: 1.8rem;
    line-height: 1;

    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--white);
}


/* =========================================================
   فرم عضویت
========================================================= */
.register-form-box h2 {
    margin-bottom: 8px;

    color: var(--white);
    font-size: 1.6rem;
    font-weight: 800;
}

.register-form-box p {
    margin-bottom: 25px;

    color: rgba(255, 255, 255, 0.65);
    font-size: 0.88rem;
}

.form-group {
    margin-bottom: 20px;
    text-align: right;
}

.form-group label {
    display: block;
    margin-bottom: 8px;

    color: rgba(255, 255, 255, 0.82);
    font-size: 0.85rem;
}

.form-group label .required {
    color: #e57373;
}

.form-group input {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;

    color: var(--white);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 12px;
    outline: none;

    font-family: var(--font-family);
    font-size: 0.9rem;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.34);
}

.form-group input:focus {
    background: rgba(255, 255, 255, 0.09);
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(114, 181, 125, 0.18);
}

.error-msg {
    display: block;

    min-height: 18px;
    margin-top: 6px;

    color: var(--error-color);
    font-size: 0.78rem;
}

.btn-submit {
    width: 100%;
    min-height: 48px;
    padding: 13px;

    color: #102d21;
    background: var(--accent-color);
    border: none;
    border-radius: 12px;

    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 700;

    cursor: pointer;
    transition:
        background-color var(--transition-speed) ease,
        box-shadow var(--transition-speed) ease,
        transform var(--transition-speed) ease;
}

.btn-submit:hover {
    background: var(--accent-light);
    box-shadow: 0 4px 15px rgba(114, 181, 125, 0.3);
    transform: translateY(-2px);
}


/* =========================================================
   منوی موبایل و Overlay
========================================================= */
@media (max-width: 900px) {
    body {
        background-image:
            linear-gradient(var(--dark-overlay-mobile), var(--dark-overlay-mobile)),
            url('img/back.png');
        background-position: center top;
        background-size: cover;
    }

    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        z-index: 1500;
        top: 0;
        right: -300px;

        width: 280px;
        height: 100vh;
        padding: 80px 30px 30px;

        overflow-y: auto;

        background: rgba(8, 28, 20, 0.96);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);

        transition: right 0.4s ease;
    }

    .main-nav.is-open {
        right: 0;
    }

    .menu-close {
        position: absolute;
        top: 20px;
        left: 20px;

        display: block;

        color: var(--white);
        background: transparent;

        font-size: 2.2rem;
        line-height: 1;

        cursor: pointer;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }

    .nav-link {
        width: 100%;
        min-height: 46px;
        justify-content: center;
    }

    /*
      در موبایل نیز ابعاد ثابت می‌ماند و هیچ transform روی آیتم منو اجرا نمی‌شود.
    */
    .nav-link:hover,
    .nav-link.active {
        transform: none;
    }

    .menu-overlay {
        position: fixed;
        z-index: 1400;
        inset: 0;

        background: rgba(0, 0, 0, 0.52);

        opacity: 0;
        pointer-events: none;
        transition: opacity var(--transition-speed) ease;
    }

    .menu-overlay.is-open {
        opacity: 1;
        pointer-events: auto;
    }

    .btn-prev {
        right: 15px;
    }

    .btn-next {
        left: 15px;
    }

    .slider-btn {
        width: 38px;
        height: 38px;

        background: rgba(13, 33, 25, 0.78);
        font-size: 1.4rem;
    }

    .article-slide-content {
        width: 100%;
        padding: 25px 45px;
    }
}


/* =========================================================
   نمایشگرهای کوچک
========================================================= */
@media (max-width: 600px) {
    body {
        /*
          در موبایل fixed ممکن است روی بعضی مرورگرها باعث افت عملکرد شود.
          تصویر همچنان بک‌گراند کل صفحه باقی می‌ماند.
        */
        background-attachment: scroll;
          background-image:
            linear-gradient(var(--dark-overlay-mobile), var(--dark-overlay-mobile)),
            url('img/back.png');
    }

    .main-header {
        padding: 11px 0;
    }

    .header-container {
        width: 92%;
    }

    .btn-register-trigger {
        padding: 9px 16px;
        font-size: 0.82rem;
    }

    .hero-section {
        min-height: 78vh;
        padding: 125px 18px 60px;
    }

    .hero-content h1 {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .latest-articles-section {
        padding: 50px 4%;
    }

    .articles-heading {
        margin-bottom: 25px;
    }

    .article-slide {
        min-height: 220px;
    }

    .article-slide-content {
        padding: 20px 35px;
    }

    .article-slide h3 {
        font-size: 1.15rem;
    }

    .slider-dots {
        bottom: 14px;
    }

    .modal-wrapper {
        padding: 15px;
    }

    .modal-content {
        width: 100%;
        padding: 30px 20px;
        border-radius: 20px;
    }
}


/* =========================================================
   نمایشگرهای بسیار کوچک
========================================================= */
@media (max-width: 380px) {
    .btn-register-trigger {
        padding: 8px 12px;
        font-size: 0.76rem;
    }

    .menu-toggle {
        width: 27px;
    }

    .article-slide-content {
        padding: 20px 28px;
    }

    .slider-btn {
        width: 34px;
        height: 34px;
    }
}


/* =========================================================
   کاهش انیمیشن برای کاربرانی که این گزینه را فعال کرده‌اند
========================================================= */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}




/*  ------------------------------------------------ */

/* انتخاب یکی از بخش ها */

/* =========================================================
   دعوت به انتخاب بخش — افکت مداری و شناور
========================================================= */
.selection-prompt {
    position: relative;

    width: min(100%, 260px);
    min-height: 68px;
    margin: 28px auto 0;
    padding: 5px;

    display: flex;
    align-items: center;
    justify-content: center;

    isolation: isolate;
    animation: prompt-float 4.5s ease-in-out infinite;
}

/*
  حلقه اصلی دور نوشته:
  بدون تغییر رنگ یا چشمک؛ فقط چرخش آرام و پیوسته.
*/
.selection-prompt__orbit {
    position: absolute;
    z-index: -1;
    inset: 0;

    pointer-events: none;
    border: 1px solid rgba(131, 195, 141, 0.56);
    border-radius: 50%;

    animation: orbit-rotate 8s linear infinite;
}

.selection-prompt__orbit--one {
    transform: rotate(-8deg) scaleX(1.05);
    border-right-color: transparent;
    border-bottom-color: rgba(255, 255, 255, 0.22);
}

.selection-prompt__orbit--two {
    inset: 6px -5px;

    border-color: rgba(255, 255, 255, 0.18);
    border-top-color: var(--accent-color);
    border-left-color: transparent;

    transform: rotate(16deg) scaleX(1.06);
    animation-direction: reverse;
    animation-duration: 11s;
}

/*
  نور متحرک روی مدار:
  از سمت چپ شروع می‌کند و در یک مدار کوچک‌تر می‌چرخد.
*/
.selection-prompt__marker {
    position: absolute;
    z-index: 2;

    top: -2px;
    left: 14%;
    
    width: 8px;
    height: 8px;

    pointer-events: none;

    background: var(--accent-light);
    border: 2px solid rgba(11, 26, 19, 0.9);
    border-radius: 50%;
    box-shadow:
        0 0 8px rgba(131, 195, 141, 0.95),
        0 0 16px rgba(131, 195, 141, 0.65);

    /*
      مرکز چرخش نور:
      مقدار کمتر = مدار کوچک‌تر
    */
    transform-origin: 115px 35px;
    animation: marker-orbit 8s linear infinite;
}

.selection-prompt__content {
    position: relative;

    width: 100%;
    min-height: 54px;
     padding: 10px 16px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    color: var(--white);
    background: rgba(11, 35, 25, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 12px 30px rgba(0, 0, 0, 0.22);

    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.selection-prompt__icon {
    color: var(--accent-light);
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1;

    transform: rotate(90deg);
}

.selection-prompt__text {
    font-size: clamp(0.8rem, 2.4vw, 0.95rem);
    font-weight: 700;
    white-space: nowrap;
}

.selection-prompt__arrow {
    color: var(--accent-light);
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1;

    animation: arrow-guide 1.8s ease-in-out infinite;
}

/* شناوری نرم کل نشانگر */
@keyframes prompt-float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* چرخش حلقه‌ها */
@keyframes orbit-rotate {
    from {
        rotate: 0deg;
    }

    to {
        rotate: 360deg;
    }
}

/* حرکت نور روی مدار */
@keyframes marker-orbit {
    from {
        rotate: 0deg;
    }

    to {
        rotate: 360deg;
    }
}

/* راهنمایی بسیار نرم به سمت پایین */
@keyframes arrow-guide {
    0%,
    100% {
        transform: translateY(-2px);
    }

    50% {
        transform: translateY(5px);
    }
}

/* سازگاری با موبایل */
@media (max-width: 600px) {
    .selection-prompt {
        width: min(100%, 290px);
        min-height: 64px;
        margin-top: 25px;
    }

    .selection-prompt__orbit--two {
        inset: 5px -4px;
    }

    .selection-prompt__content {
        min-height: 52px;
        padding: 10px 12px;
        gap: 6px;
    }

    .selection-prompt__marker {
        top: -2px;
        left: 13%;

        width: 7px;
        height: 7px;

        /* شعاع کوچک‌تر مدار در موبایل */
        transform-origin: 105px 33px;
    }

    .selection-prompt__icon {
        font-size: 1.35rem;
    }

    .selection-prompt__arrow {
        font-size: 1.1rem;
    }
}


/* پایان انتخاب یکی از بخش ها */

/* --------------------------------------------------*/


/*  کارت های بخش ها */


/* =========================================================
   بخش کارت‌های دسترسی به قسمت‌های سایت
========================================================= */
.portal-sections {
    position: relative;
    z-index: 2;

    width: min(100% - 32px, 1600px);
    margin: 0 auto;
    padding: 45px 0 70px;
}

/* عنوان و توضیح بالای کارت‌ها */
.portal-sections__heading {
    max-width: 700px;
    margin: 0 auto 30px;
    text-align: center;
}

.portal-sections__eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    
    color: var(--accent-light);
    font-size: 0.85rem;
    font-weight: 700;
}

.portal-sections__heading h2 {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--white);
    font-size: clamp(1.45rem, 3vw, 2.25rem);
    font-weight: 800;
}

.portal-sections__heading p {
    margin: 12px 0 0;

    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(0.88rem, 1.7vw, 1rem);
    line-height: 1.9;
}

/* =========================================================
   شبکهٔ کارت‌ها
   در صفحهٔ بزرگ: پنج کارت در یک ردیف
========================================================= */
.portal-cards {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;

    align-items: start;
}

/* =========================================================
   ظاهر هر کارت شیشه‌ای
========================================================= */
/* =========================================================
   ظاهر شیشه‌ای هر کارت
   تصویر پس‌زمینهٔ سایت از پشت کارت قابل مشاهده است.
========================================================= */
.portal-card {
    overflow: hidden;

    /*
      عدد 0.18 یعنی شفافیت بالا.
      اگر پس‌زمینه را باز هم واضح‌تر می‌خواهید، آن را به 0.12 کاهش دهید.
    */
    background: rgba(8, 35, 24, 0.04);

    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 20px;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 -1px 0 rgba(0, 0, 0, 0.12),
        0 14px 32px rgba(0, 0, 0, 0.20);

    /*
      تاری ملایم پشت شیشه؛
      پس‌زمینه دیده می‌شود، اما نوشته‌ها نیز خوانا می‌مانند.
    */
    -webkit-backdrop-filter: blur(5px) saturate(125%);
    backdrop-filter: blur(2px) saturate(115%);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;
}

/* حالت کارت هنگام قرارگرفتن ماوس روی آن */
.portal-card:hover {
    transform: translateY(-8px);

    /* در هاور کمی روشن‌تر، اما همچنان شیشه‌ای */
    background: rgba(13, 53, 35, 0.25);
    border-color: rgba(131, 195, 141, 0.72);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -1px 0 rgba(0, 0, 0, 0.10),
        0 20px 38px rgba(0, 0, 0, 0.30);
}



/* =========================================================
   محل تصویر در ابتدای کارت
========================================================= */
.portal-card__image {
    position: relative;
    overflow: hidden;

    aspect-ratio: 16 / 10;

    background: rgba(0, 0, 0, 0.24);
}

/* لایهٔ ملایم روی تصویر برای هماهنگی با ظاهر سایت */
.portal-card__image::after {
    position: absolute;
    inset: 0;

    content: "";

    background: linear-gradient(
        to top,
        rgba(6, 28, 18, 0.52),
        rgba(6, 28, 18, 0.04)
    );

    pointer-events: none;
}

/* خود تصویر کارت */
.portal-card__image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.5s ease;
}

/* زوم بسیار نرم تصویر هنگام هاور کارت */
.portal-card:hover .portal-card__image img {
    transform: scale(1.07);
}

/* =========================================================
   بدنه و نام کارت
========================================================= */
.portal-card__body {
    padding: 15px;
    background: transparent;
}

.portal-card__title {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 50px;
    margin: 0 0 14px;

    color: #6edff3;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: clamp(0.95rem, 1.35vw, 1.15rem);
    font-weight: 800;
    line-height: 1.8;
    text-align: center;
}
/* کوچک‌تر شدن عنوان کارت‌ها فقط در دسکتاپ */
@media (min-width: 1251px) {
    .portal-card__title {
        font-size: clamp(0.82rem, 1.05vw, 0.98rem);
        white-space: nowrap;
    }
}


/* =========================================================
   دکمهٔ ورود مستقیم به صفحهٔ اصلی بخش
========================================================= */
.portal-card__enter-btn {
    min-height: 42px;
    padding: 9px 10px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    color: #102719;
    background: var(--accent-light);
    border-radius: 10px;

    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.portal-card__enter-btn:hover {
    color: var(--white);
    background: var(--accent-color);
    transform: translateY(-2px);
}

.portal-card__enter-btn span {
    font-size: 1.05rem;
    line-height: 1;
}

/* =========================================================
   دکمهٔ بازکردن یا بستن زیر‌بخش‌ها
========================================================= */
.portal-card__toggle {
    width: 100%;
    min-height: 39px;
    margin-top: 9px;
    padding: 8px 10px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;

    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;

    transition:
        color 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease;
}

.portal-card__toggle:hover,
.portal-card__toggle.is-open {
    color: var(--white);
    background: rgba(131, 195, 141, 0.18);
    border-color: rgba(131, 195, 141, 0.56);
}

/* آیکن فلش دکمهٔ زیر‌بخش‌ها */
.portal-card__toggle-icon {
    color: var(--accent-light);
    font-size: 1.25rem;
    line-height: 1;

    transition: transform 0.3s ease;
}

/* چرخش فلش هنگام بازشدن فهرست */
.portal-card__toggle.is-open .portal-card__toggle-icon {
    transform: rotate(180deg);
}

/* =========================================================
   فهرست مخفی زیر‌بخش‌های هر کارت
========================================================= */
.portal-card__subsections {
    max-height: 0;
    margin-top: 0;

    overflow: hidden;
    opacity: 0;

    transition:
        max-height 0.4s ease,
        opacity 0.3s ease,
        margin-top 0.3s ease;
}

/* حالت بازشدهٔ فهرست */
.portal-card__subsections.is-open {
    max-height: 240px;
    margin-top: 10px;

    opacity: 1;
}

/* لینک هر زیر‌بخش */
.portal-card__subsections a {
    position: relative;

    min-height: 34px;
    padding: 7px 22px 7px 8px;

    display: flex;
    align-items: center;

    color: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);

    font-size: 0.79rem;
    font-weight: 600;
    text-decoration: none;

    transition:
        color 0.2s ease,
        padding-right 0.2s ease,
        background 0.2s ease;
}

/* نقطهٔ ابتدای هر زیر‌بخش */
.portal-card__subsections a::before {
    position: absolute;
    right: 8px;

    width: 5px;
    height: 5px;

    content: "";

    background: var(--accent-light);
    border-radius: 50%;
}

/* آخرین لینک خط پایین نداشته باشد */
.portal-card__subsections a:last-child {
    border-bottom: 0;
}

/* افکت هاور لینک زیر‌بخش */
.portal-card__subsections a:hover {
    padding-right: 26px;

    color: var(--white);
    background: rgba(255, 255, 255, 0.06);
}

/* =========================================================
   واکنش‌گرایی برای لپ‌تاپ و تبلت بزرگ
   کارت‌ها در دو ردیف قرار می‌گیرند
========================================================= */
@media (max-width: 1250px) {
    .portal-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }
}

/* =========================================================
   واکنش‌گرایی برای تبلت
========================================================= */
@media (max-width: 820px) {
    .portal-sections {
        width: min(100% - 28px, 720px);
        padding: 35px 0 55px;
    }

    .portal-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .portal-card__body {
        padding: 14px;
    }
}

/* =========================================================
   واکنش‌گرایی برای موبایل
   کارت‌ها تک‌ستونه نمایش داده می‌شوند
========================================================= */
@media (max-width: 560px) {
    .portal-sections {
        width: min(100% - 24px, 420px);
        padding: 28px 0 45px;
    }

    .portal-sections__heading {
        margin-bottom: 22px;
    }

    .portal-cards {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .portal-card {
        border-radius: 16px;
    }

    .portal-card__image {
        aspect-ratio: 16 / 8;
    }

    .portal-card__title {
        min-height: auto;
        margin-bottom: 12px;
    }

    /* حذف حرکت زیاد کارت در موبایل */
    .portal-card:hover {
        transform: translateY(-3px);
    }
}

/* =========================================================
   احترام به تنظیم کاربر برای کاهش حرکت‌ها
========================================================= */
@media (prefers-reduced-motion: reduce) {
    .portal-card,
    .portal-card__image img,
    .portal-card__enter-btn,
    .portal-card__toggle-icon,
    .portal-card__subsections,
    .portal-card__subsections a {
        transition: none;
    }
}


/* پایان کارت های بخش ها */


/* ---------------------------------------------------*/
/* فوتر سایت */

/* =========================================================
   Footer | فوتر شیشه‌ای سایت سبزینه
========================================================= */
.site-footer {
    position: relative;
    overflow: hidden;
    direction: rtl;

    max-width: 1280px;
    margin: 55px auto 28px;
    padding: 34px 42px 0;

    color: #f4fff8;

    /* شفافیت بیشتر برای دیده‌شدن تصویر پس‌زمینه */
    background: rgba(7, 32, 20, 0.10);

    border: 1px solid rgba(204, 255, 220, 0.18);
    border-radius: 26px;

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);

    /* بلور کم تا بک‌گراند سایت همچنان مشخص باشد */
    -webkit-backdrop-filter: blur(3px) saturate(115%);
    backdrop-filter: blur(3px) saturate(115%);
}

/* نورهای ظریف در پشت محتوای فوتر */
.footer-glow {
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(4px);
}

.footer-glow-one {
    width: 260px;
    height: 260px;
    top: -160px;
    right: -90px;
    background: rgba(94, 184, 104, 0.18);
}

.footer-glow-two {
    width: 230px;
    height: 230px;
    bottom: -150px;
    left: 5%;
    background: rgba(194, 160, 79, 0.12);
}

.footer-content,
.footer-bottom {
    position: relative;
    z-index: 1;
    background: rgba(0, 18, 10, 0.16);

}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 30px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-leaf-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;
    flex: 0 0 58px;

    color: #b5ef9e;
    background: rgba(168, 231, 140, 0.10);
    border: 1px solid rgba(190, 249, 166, 0.26);
    border-radius: 18px;

    box-shadow: inset 0 0 18px rgba(180, 255, 148, 0.08);
}

.footer-leaf-icon svg {
    width: 38px;
    height: 38px;
}

.footer-brand h3 {
    margin: 0 0 5px;
    color: #d7ffc7;
    font-size: 1.35rem;
    font-weight: 800;
}

.footer-brand p {
    margin: 0;
    color: rgba(239, 255, 244, 0.76);
    font-size: 0.88rem;
}

.footer-social-section {
    text-align: left;
}

.social-title {
    display: block;
    margin-bottom: 12px;
    color: rgba(239, 255, 244, 0.84);
    font-size: 0.88rem;
}

.social-links {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    direction: rtl;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 43px;
    height: 43px;

    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 13px;

    box-shadow:
        0 6px 15px rgba(0, 0, 0, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.06);
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow:
        0 11px 22px rgba(0, 0, 0, 0.30),
        0 0 16px currentColor;
}

.social-link:focus-visible {
    outline: 3px solid #d8ff9a;
    outline-offset: 3px;
}

.social-link svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.social-text {
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
}

/* رنگ اختصاصی هر شبکه */
.eitaa {
    background: linear-gradient(135deg, #ff9c35, #e65d21);
}

.bale {
    background: linear-gradient(135deg, #36b76b, #087f48);
}

.rubika {
    background: linear-gradient(135deg, #e84a78, #a31b50);
}

.instagram {
    background: linear-gradient(
        135deg,
        #833ab4 0%,
        #c13584 42%,
        #fd1d1d 70%,
        #fcb045 100%
    );
}

.aparat {
    background: linear-gradient(135deg, #ff4f9a, #d31767);
}

.youtube {
    background: linear-gradient(135deg, #ff3030, #bf1010);
}

.youtube svg {
    fill: currentColor;
    stroke: none;
}

.youtube-play {
    fill: #fff;
}

.instagram .instagram-dot {
    fill: currentColor;
    stroke: none;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;

    min-height: 62px;
    margin: 0 -42px;
    padding: 12px 42px;

    color: rgba(241, 255, 245, 0.79);
    background: rgba(0, 18, 10, 0.26);
    border-top: 1px solid rgba(211, 255, 216, 0.15);

    font-size: 0.84rem;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom strong {
    color: #c9f9aa;
    font-weight: 800;
}

.footer-bottom a {
    color: #ccefac;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-bottom a:hover {
    color: #fff4ae;
    text-decoration: underline;
}

.footer-divider {
    width: 1px;
    height: 23px;
    background: rgba(224, 255, 225, 0.24);
}

/* =========================================================
   Footer Responsive
========================================================= */
@media (max-width: 768px) {
    .site-footer {
        margin: 40px 16px 20px;
        padding: 28px 22px 0;
        border-radius: 22px;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 25px;
    }

    .footer-social-section {
        text-align: center;
    }

    .social-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        margin: 0 -22px;
        padding: 15px 20px;
        font-size: 0.80rem;
        line-height: 1.9;
    }

    .footer-divider {
        width: 70px;
        height: 1px;
    }
}

@media (max-width: 420px) {
    .site-footer {
        margin-right: 10px;
        margin-left: 10px;
        padding-right: 15px;
        padding-left: 15px;
    }

    .footer-brand {
        flex-direction: column;
        text-align: center;
    }

    .social-link {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .footer-bottom {
        margin-right: -15px;
        margin-left: -15px;
    }
}

/* پایان فوتر */


/*  --------------------------*/

/* تصحیح بک گراند موبایل */



/* =========================================================
   اصلاح نمایش بک‌گراند در موبایل
   تصویر بر مبنای ارتفاع/عرض نمایشگر ثابت می‌ماند،
   نه بر مبنای ارتفاع کل صفحه.
========================================================= */
@media (max-width: 600px) {
    body {
        background: #0b1a13;
    }

    body::before {
        position: fixed;
        z-index: 0;
        inset: 0;

        content: '';
        pointer-events: none;

        background-image:
    linear-gradient(
        rgba(7, 24, 16, 0.28),
        rgba(7, 24, 16, 0.28)
    ),
    url('img/back.png');

        background-repeat: no-repeat;
        background-position: center center;
        background-size: cover;
    }

    /*
      همهٔ محتوای واقعی سایت بالای لایهٔ بک‌گراند قرار می‌گیرد.
      پس‌زمینه‌های نیمه‌شفاف کارت‌ها و فوتر نیز بدون تغییر می‌مانند.
    */
    body > * {
        position: relative;
        z-index: 1;
    }

    .main-header {
        z-index: 1000;
    }

    .main-nav {
        z-index: 1500;
    }

    .menu-overlay {
        z-index: 1400;
    }

    .modal-wrapper {
        z-index: 2000;
    }
}



/*   ================================== چت بات ==================== */

/* =========================================================
   Chatbot Widget: دکمه شناور و پنل شیشه‌ای
   این بخش مستقل است و به منوی فعلی یا مودال‌ها دست نمی‌زند
========================================================= */

/* فقط برای متن مخفی دسترس‌پذیر */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* کانتینر اصلی ویجت */
.chatbot-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    direction: rtl;
}

/* دکمه شناور باز کردن چت */
.chatbot-fab {
    width: 58px;
    height: 58px;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(16, 185, 129, 0.95));
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.chatbot-fab:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
}

.chatbot-fab__icon {
    font-size: 1.35rem;
    line-height: 1;
}

/* پنل اصلی چت‌بات */
.chatbot-panel {
    position: absolute;
    bottom: 72px;
    right: 0;
    width: min(360px, calc(100vw - 32px));
    height: 520px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

/* حالت باز شدن پنل */
.chatbot-widget.is-open .chatbot-panel {
    display: flex;
}

/* هدر چت‌بات */
.chatbot-header {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #fff;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.18),
        rgba(255, 255, 255, 0.08)
    );
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.chatbot-header__title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.16);
    flex-shrink: 0;
}


.chatbot-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.chatbot-subtitle {
    margin: 3px 0 0;
    font-size: 0.78rem;
    opacity: 0.9;
}

.chatbot-close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    font-size: 1.5rem;
    line-height: 1;
    transition: background 0.2s ease, transform 0.2s ease;
}

.chatbot-close:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: scale(1.05);
}

/* ناحیه پیام‌ها */
.chatbot-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #1f2937;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.12),
        rgba(255, 255, 255, 0.06)
    );
}

/* هر پیام */
.chatbot-message {
    display: flex;
}

.chatbot-message--bot {
    justify-content: flex-start;
}

.chatbot-message--user {
    justify-content: flex-end;
}

.chatbot-bubble {
    max-width: 82%;
    padding: 10px 12px;
    border-radius: 16px;
    line-height: 1.7;
    font-size: 0.92rem;
    word-wrap: break-word;
}

/* حباب پیام بات */
.chatbot-message--bot .chatbot-bubble {
    background: rgba(255, 255, 255, 0.72);
    color: #111827;
    border-top-left-radius: 6px;
}

/* حباب پیام کاربر */
.chatbot-message--user .chatbot-bubble {
    background: linear-gradient(135deg, #2563eb, #10b981);
    color: #fff;
    border-top-right-radius: 6px;
}

/* فرم ارسال */
.chatbot-form {
    padding: 12px;
    display: flex;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
}

.chatbot-input {
    flex: 1;
    min-width: 0;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    padding: 0 14px;
    outline: none;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.chatbot-input::placeholder {
    color: rgba(255, 255, 255, 0.75);
}

.chatbot-input:focus {
    border-color: rgba(255, 255, 255, 0.42);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.22);
}

.chatbot-send {
    width: 82px;
    border: 0;
    border-radius: 14px;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #10b981);
    font-weight: 700;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.chatbot-send:hover {
    transform: translateY(-1px);
    opacity: 0.96;
}

/* واکنش‌گرایی موبایل */
@media (max-width: 480px) {
    .chatbot-widget {
        right: 12px;
        bottom: 12px;
    }

    .chatbot-panel {
        width: calc(100vw - 24px);
        height: 72vh;
        bottom: 70px;
    }

    .chatbot-bubble {
        max-width: 90%;
    }
}
