/* ============================================
   RESPONSIVE - نسخه نهایی برای کل سایت
============================================ */

/* ===== 1200px ===== */
@media (max-width: 1200px) {
    .container { max-width: 1140px; }
    .hero__item .hero__text h2 { font-size: 36px; }
}

/* ===== 992px ===== */
@media (max-width: 992px) {
    .container { max-width: 960px; padding: 0 20px; }
    
    /* هدر */
    .header__menu { display: none !important; }
    .header__info-left { display: none !important; }
    .canvas__open { display: flex !important; }
    .header__logo { text-align: center; }
    .header__logo img { max-height: 45px; }
    
    /* هیرو */
    .hero__item { height: auto; padding: 80px 0 60px; }
    .hero__item .hero__text { text-align: center; padding-top: 0; }
    .hero__item .hero__text h2 { font-size: 30px; line-height: 1.3; }
    
    /* کارت‌ها */
    .services__item { padding: 20px; text-align: center; }
    .pricing__item { margin-bottom: 25px; }
    .pricing__swipe-btn { float: none; margin: 0 auto 30px; }
    
    /* فوتر */
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    
    /* دامنه */
    .register__text .register__form form { flex-direction: column; gap: 10px; }
    .register__text .register__form form .site-btn { position: relative; width: 100%; }
}

/* ===== 768px ===== */
@media (max-width: 768px) {
    .container { max-width: 720px; padding: 0 15px; }
    
    /* هدر */
    .header-section { position: sticky; top: 0; z-index: 999; background: #0e157d; }
    .header__logo img { max-height: 38px; }
    .canvas__open { width: 40px; height: 40px; font-size: 18px; }
    
    /* هیرو */
    .hero__item { padding: 60px 0 40px; }
    .hero__item .hero__text h2 { font-size: 26px; }
    .hero__item .hero__text p { font-size: 14px; }
    .hero__slider.owl-carousel .owl-dots { bottom: 48px; }
    
    /* کارت‌ها */
    .section-title h3 { font-size: 22px; }
    .pricing__item h3 { font-size: 18px; padding: 14px 0; }
    .pricing__item ul li { font-size: 13px; line-height: 34px; }
    
    /* فرم‌ها */
    .register__text .register__result ul li { font-size: 16px; margin-right: 12px; }
    
    /* پنل کاربری */
    .dashboard-layout { flex-direction: column; padding: 10px; }
    .dashboard-sidebar { margin-bottom: 20px; }
    .dashboard-content { width: 100% !important; padding: 0; }
    .page-header { flex-direction: column; align-items: flex-start; }
    .page-header h1 { font-size: 1.2rem; }
    
    /* جداول */
    .table-container { overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 10px; }
    .table-container table { min-width: 600px; font-size: 13px; }
    .table-container thead th,
    .table-container tbody td { padding: 8px 10px; white-space: nowrap; }
    
    /* فوتر */
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 25px; }
    .footer-col { text-align: center; }
    .footer-social { justify-content: center; }
}

/* ===== 576px ===== */
@media (max-width: 576px) {
    .container { max-width: 100%; padding: 0 12px; }
    
    /* هدر */
    .header__logo img { max-width: 120px; max-height: 35px; }
    .canvas__open { width: 36px; height: 36px; font-size: 16px; }
    
    /* هیرو */
    .hero__item { padding: 40px 0 30px; }
    .hero__item .hero__text h2 { font-size: 20px; }
    .hero__item .hero__text .primary-btn { padding: 8px 20px; font-size: 13px; }
    
    /* کارت‌ها */
    .services__item { padding: 15px; }
    .section-title h3 { font-size: 18px; }
    .pricing__item { padding: 15px 10px; }
    .pricing__item h3 { font-size: 16px; margin-left: -15px; margin-right: -15px; }
    
    /* دکمه‌ها */
    .primary-btn, .site-btn { padding: 10px 20px; font-size: 13px; }
    .btn-new-ticket { padding: 8px 14px; font-size: 12px; }
    
    /* فرم‌ها */
    .register__text .register__form form input { height: 44px; }
    .register__text .register__result ul li { font-size: 14px; margin-right: 8px; }
    
    /* فوتر */
    .footer-grid { grid-template-columns: 1fr; gap: 25px; text-align: center; }
    .footer-contact li { justify-content: center; }
    .footer-bottom { font-size: 12px; }
}

/* ===== 420px ===== */
@media (max-width: 420px) {
    .header__logo img { max-width: 100px; max-height: 30px; }
    .canvas__open { width: 50px; height: 50px; font-size: 29px; }
    .hero__item .hero__text h2 { font-size: 18px; }
    .hero__item .hero__text p { font-size: 13px; }
    .page-header h1 { font-size: 1rem; }
    .btn-new-ticket { font-size: 11px; padding: 6px 12px; }
}

/* ============================================
   OFFCANVAS MENU - نسخه موبایل
============================================ */
.offcanvas__menu__wrapper {
    position: fixed;
    right: -300px;   /* ← راست */
    top: 0;
    width: 280px;
    height: 100vh;
    background: #0e157d;
    z-index: 9999;
    padding: 30px 20px;
    transition: right 0.3s cubic-bezier(0.2, 0.9, 0.4, 1);
    overflow-y: auto;
    box-shadow: -5px 0 30px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;

}
.offcanvas__menu__wrapper.show__offcanvas__menu { right: 0;        /* ← راست */
    opacity: 1;
    visibility: visible; }
.offcanvas__menu__wrapper .canvas__close { font-size: 28px; color: white; cursor: pointer; text-align: left; }
.offcanvas__menu__wrapper .offcanvas__logo { text-align: center; margin: 20px 0 30px; }
.offcanvas__menu__wrapper .offcanvas__logo img { max-height: 40px; }
.offcanvas__menu__wrapper .offcanvas__menu ul { list-style: none; padding: 0; margin: 0; }
.offcanvas__menu__wrapper .offcanvas__menu ul li { border-bottom: 1px solid rgba(255,255,255,0.06); }
.offcanvas__menu__wrapper .offcanvas__menu ul li a {
    display: block; padding: 13px 0; color: rgba(255,255,255,0.85);
    font-size: 15px; transition: 0.2s; text-decoration: none;
}
.offcanvas__menu__wrapper .offcanvas__menu ul li a:hover { color: white; padding-right: 8px; }

.offcanvas__menu__overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 9998;
    opacity: 0; visibility: hidden; transition: 0.3s;
}
.offcanvas__menu__overlay.active { opacity: 1; visibility: visible; }

.canvas__open { display: none; }
@media (max-width: 992px) { .canvas__open { display: flex !important; } }