:root {
    --primary-color: #543A8F; 
    --secondary-color: #EF6824; 
    --active-tab-color: #4F46E5; 
    --active-tab-border: #4F46E5; 
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('../font/Vazir.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

body {
    font-family: 'Vazirmatn', sans-serif;
}

.kama-datepicker, .kama-datepicker__input {
  font-family: 'IranSans', sans-serif !important;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    width: 100%;
  }
  
  .nav-title-section, .nav-links {
    flex: 1; 
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: flex-start;
  }
 
  .nav-links {
    justify-content: flex-end; 
  }
  .nav-logo {
    max-width: 90px;
    height: auto;
  }

/* استایل برای تب‌ها */
.tab-nav {
    display: flex;
    flex-wrap: nowrap; 
    overflow-x: auto; 
    white-space: nowrap;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #e5e7eb;
}

.tab-nav::-webkit-scrollbar {
    height: 8px; 
}

.tab-nav::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 4px;
}

.tab-nav a {
    flex: 0 0 auto; 
    padding: 0.75rem 1rem; 
    font-size: 0.875rem;
    font-weight: 500; 
    border-bottom-width: 2px;
    transition: all 0.2s ease-in-out; 
}

.tab-nav a.active {
    color: var(--active-tab-color);
    border-color: var(--active-tab-border);
}

.tab-nav a.inactive {
    color: #6b7280; /* معادل text-gray-500 */
    border-color: transparent;
}

.tab-nav a.inactive:hover {
    color: #4b5563; /* معادل hover:text-gray-700 */
    border-color: #d1d5db; /* معادل hover:border-gray-300 */
}

/* CSS برای افکت هایلایت SOS */
.flash-effect {
    animation: flash 1s forwards ease-out;
}

@keyframes flash {
    0% { background-color: rgba(255, 255, 0, 0.4); } /* رنگ زرد روشن */
    100% { background-color: transparent; } /* محو شدن */
}

/* Custom styles for flash messages */
.flash-success {
    background-color: rgba(84, 58, 143, 0.1); /* Primary color with transparency */
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.flash-error {
    background-color: rgba(239, 104, 36, 0.1); /* Secondary color with transparency */
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

/* Default for other categories */
.flash-info {
    background-color: rgba(0, 123, 255, 0.1); /* Blue with transparency */
    border-color: #007bff;
    color: #007bff;
}

/* Style for custom validation error messages */
.validation-error {
    color: var(--secondary-color);
    font-size: 0.75rem; /* text-xs */
    margin-top: 0.25rem; /* mt-1 */
    display: block;
    text-align: right;
}

/* Fix for operations column to prevent shifting */
.operations-container {
    width: 100px; /* هماهنگ با عرض ستون عملیات */
    min-width: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.25rem; /* فاصله بین دکمه‌ها */
}

.operations-container button {
    flex: 0 0 auto; /* جلوگیری از تغییر اندازه دکمه‌ها */
    width: 32px; /* عرض دکمه‌ها */
    height: 32px; /* ارتفاع دکمه‌ها */
    padding: 3px; /* پدینگ 3px برای دکمه‌ها */
    display: flex;
    justify-content: center;
    align-items: center;
}

.holooIcon{
  width:80% !important;
  height: auto;
}

/* کلاس اختصاصی برای مخفی کردن دکمه‌های تأیید و انصراف */
.custom-hidden {
    display: none !important;
}

/* اطمینان از عملکرد کلاس hidden Tailwind برای سایر موارد */
.hidden {
    display: none ;
}

/* Center-align table headers */
table.min-w-full th {
    text-align: center;
}

.holoo_updated td{
    background-color: #FFA6742E !important; 
    transition: background-color 0.3s ease;
}

/* فلش‌های قیمت */
.price-up::before {
    content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="green" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 15l7-7 7 7"/></svg>');
    margin-right: 8px;
}

.price-down::before {
    content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="red" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"/></svg>');
    margin-right: 8px;
}


/* پس‌زمینه‌های سطر */
.bg-price-up {
    background-color: rgba(0, 128, 0, 0.1) !important; 
}
.bg-price-down {
    background-color: rgba(255, 0, 0, 0.1) !important;
}

.footer {
    background-color: #0b1f24;
    color: #fff;
    padding: 2rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
  
  .footer-content {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .footer-logo {
    max-width: 100px;
    height: auto;
    margin-bottom: 0.5rem;
    filter: brightness(2000%) contrast(200%) saturate(100%) blur(0px) hue-rotate(0deg);
  }
  
  .footer-text {
    margin: 0;
    font-size: 1rem;
    font-weight: 400;
  }
  
  .footer-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
  }
  
  .footer-link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.2em;
    font-size: 0.9rem;
  }
  
  .footer-link:hover {
    text-decoration-thickness: 2px;
  }

  .footer-link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
  }

      /* --- FIX: Custom styles for a better datepicker UI --- */
      .loading-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(255, 255, 255, 0.7);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10;
        border-radius: 0.5rem; /* rounded-lg */
    }
    .loader {
        border: 4px solid #f3f3f3;
        border-top: 4px solid #3498db;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        animation: spin 1s linear infinite;
    }

    .buttonsColor{
      color: #543A8F !important;
    }
    .bd-holiday{
      color: #EF6824 !important;
      background-color: #f8f8f8 !important;

    }
    .no_ap{
      background-color: #ef682441;
    }
    .bd-today{
      color:#543A8F !important;
      background-color: #f8f8f8 !important;

    }
    .bd-selected-day{
      color:#53be44 !important;
      background-color: #f8f8f8 !important;

    }
    .bd-goto-today,.bd-table thead{
      background-color:#543A8F !important;
      color: #ffffff !important;
    }
    .bd-table thead{
      margin-bottom: 5px;
    }
    .bd-goto-today{
      margin-top: 5px;
    }
    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    .ap_container{
      display: inline-flex;
      width: fit-content;
      gap: 5px;
      padding: 7px 8px;
      background-color: #e9e9e9;
      border-radius: 5px;
    }

        /* استایل‌های سفارشی برای لودینگ */
        .loading-overlay {
          position: absolute; top: 0; left: 0; right: 0; bottom: 0;
          background-color: rgba(255, 255, 255, 0.8);
          display: flex; align-items: center; justify-content: center;
          z-index: 10; border-radius: 0.5rem;
      }
      .loader {
          border: 4px solid #f3f3f3; border-top: 4px solid #3498db;
          border-radius: 50%; width: 40px; height: 40px;
          animation: spin 1s linear infinite;
      }
      @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
  

      /* مدیریت قیمت یابی */

    
    /* استایل برای هایلایت کردن ردیف آپدیت شده */
    @keyframes flash-effect {
        from { background-color: #a7f3d0; } /* green-200 */
        to { background-color: transparent; }
    }
    .flash-highlight {
        animation: flash-effect 2s ease-out;
    }

    .currency-panel {
        background-color:#ef68241c;
        border: 0 1px 1px 1px solid #e5e7eb;
        padding: 1rem;
        border-radius: 0 0 5px 5px;
    }

    /* مدیریت مدال در صفحه گروه ها و شناسه */
 /* Modal پس‌زمینه (overlay) */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

/* محتوای اصلی مدال */
.modal-content {
  background-color: #fefefe;
  margin: 10vh auto;
  padding: 20px;
  border: 1px solid #ddd;
  width: 90%;
  max-width: 500px;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  -webkit-animation-name: animatetop;
  -webkit-animation-duration: 0.4s;
  animation-name: animatetop;
  animation-duration: 0.4s
}

/* بخش‌های داخلی مدال */
.modal-header {
  padding: 8px 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
}

.modal-body {
  padding: 16px 0;
}

.modal-footer {
  padding-top: 16px;
  border-top: 1px solid #eee;
  display: flex; /* استفاده از فلکس‌باکس برای چیدمان دکمه‌ها */
  justify-content: flex-end; /* تراز دکمه‌ها به سمت چپ (در زبان فارسی) */
  gap: 12px; /* فاصله بین دکمه‌ها */
}

/* استایل دکمه‌های فرم */
.modal-footer button {
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  border: none;
  transition: background-color 0.3s ease;
}

/* استایل دکمه ذخیره */
#save-changes-btn {
  background-color: var(--primary-color, #4a90e2);
  color: white;
}

#save-changes-btn:hover {
  background-color: #3b7ad0;
}

/* استایل دکمه انصراف */
#cancel-changes-btn {
  background-color: #e0e0e0;
  color: #333;
}

#cancel-changes-btn:hover {
  background-color: #ccc;
}


.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.form-group select,
.form-group input {
  width: 100%;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

/* دکمه بستن مدال */
.close-btn {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
  color: black;
  text-decoration: none;
}

/* انیمیشن باز شدن مدال */
@-webkit-keyframes animatetop {
  from {top:-300px; opacity:0}
  to {top:10vh; opacity:1}
}

@keyframes animatetop {
  from {top:-300px; opacity:0}
  to {top:10vh; opacity:1}
}

  @media (max-width: 768px) {
    .nav-logo {
        max-width: 80px; /* کوچکتر کردن لوگو در موبایل */
      }
      .nav-container {
        flex-wrap: wrap; /* در صورت نیاز به شکستن خط */
      }

    .nav-title-section{
        display: none;
    }

    .footer-logo {
      max-width: 80px; /* کوچکتر کردن لوگو در صفحه‌نمایش‌های کوچک */
    }
  
    .footer-links {
      flex-direction: column;
      gap: 0.5rem;
    }
  
    .footer-link {
      font-size: 0.85rem;
    }
  }

/* ---------- مدال تماس ورودی VoIP (برند بنفش/نارنجی) ---------- */
#voip-incoming-modal.voip-incoming {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(15, 23, 42, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
#voip-incoming-modal.voip-incoming.is-open {
  display: flex;
}
#voip-incoming-modal .voip-incoming__card {
  width: 100%;
  max-width: 28rem;
  margin: 4.5rem auto 2rem;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(84, 58, 143, 0.12);
  box-shadow: 0 18px 50px rgba(84, 58, 143, 0.18);
  overflow: hidden;
  animation: voipIncomingIn 180ms ease;
}
@keyframes voipIncomingIn {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  #voip-incoming-modal .voip-incoming__card { animation: none; }
}
#voip-incoming-modal .voip-incoming__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, #6b4db0 100%);
  color: #fff;
}
#voip-incoming-modal .voip-incoming__eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.9;
  margin: 0 0 0.15rem;
}
#voip-incoming-modal .voip-incoming__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#voip-incoming-modal .voip-incoming__icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
#voip-incoming-modal .voip-incoming__body {
  padding: 1.1rem 1.15rem 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
#voip-incoming-modal .voip-incoming__label {
  font-size: 0.75rem;
  color: #6b7280;
  margin-bottom: 0.2rem;
}
#voip-incoming-modal .voip-incoming__phone {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(1.15rem, 4vw, 1.35rem);
  font-weight: 700;
  color: #111827;
  letter-spacing: 0.03em;
  direction: ltr;
  text-align: left;
  word-break: break-all;
}
#voip-incoming-modal .voip-incoming__party {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
}
#voip-incoming-modal .voip-incoming__lead {
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  font-size: 0.875rem;
  color: #7c2d12;
  background: rgba(239, 104, 36, 0.1);
  border: 1px solid rgba(239, 104, 36, 0.28);
}
#voip-incoming-modal .voip-incoming__hint {
  margin: 0;
  font-size: 0.75rem;
  color: #9ca3af;
  line-height: 1.5;
}
#voip-incoming-modal .voip-incoming__actions {
  padding: 0.85rem 1.15rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
#voip-incoming-modal .voip-btn {
  width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}
#voip-incoming-modal .voip-btn:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}
#voip-incoming-modal .voip-btn--primary {
  background: var(--primary-color);
  color: #fff;
}
#voip-incoming-modal .voip-btn--primary:hover {
  filter: brightness(1.08);
}
#voip-incoming-modal .voip-btn--secondary {
  background: var(--secondary-color);
  color: #fff;
}
#voip-incoming-modal .voip-btn--secondary:hover {
  filter: brightness(1.06);
}
#voip-incoming-modal .voip-btn--ghost {
  background: #f3f4f6;
  color: #374151;
  border-color: #e5e7eb;
}
#voip-incoming-modal .voip-btn--ghost:hover {
  background: #e5e7eb;
}
@media (min-width: 640px) {
  #voip-incoming-modal .voip-incoming__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
  }
  #voip-incoming-modal .voip-btn--ghost {
    grid-column: 1 / -1;
  }
}
@media (max-width: 480px) {
  #voip-incoming-modal .voip-incoming__card {
    margin-top: 2.5rem;
    border-radius: 14px;
  }
  #voip-incoming-modal .voip-incoming__title {
    font-size: 1.05rem;
  }
}

/* —— منوی بالای آبشاری (بنفش سازمانی) —— */
.topnav-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid #ece8f5;
  box-shadow: 0 1px 0 rgba(84, 58, 143, 0.04), 0 8px 24px rgba(15, 23, 42, 0.04);
  /* overflow نباید clip کند؛ وگرنه زیرمنو دیده نمی‌شود */
  overflow: visible;
}
.topnav-bar > div,
.topnav-bar .topnav-row,
.topnav-bar .topnav-links {
  overflow: visible;
}
.topnav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3.75rem;
  padding: 0.35rem 0;
  width: 100%;
}
.topnav-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.55rem;
  border: none;
  background: rgba(84, 58, 143, 0.08);
  color: var(--primary-color);
  cursor: pointer;
  flex: 0 0 auto;
  transition: background 0.15s ease;
}
.topnav-burger:hover,
.topnav-burger:focus-visible {
  background: rgba(84, 58, 143, 0.16);
  outline: none;
}
.topnav-brand {
  /* موبایل RTL: لوگو را به لبهٔ بصری چپ ببر */
  margin-inline-start: auto;
}
@media (min-width: 768px) {
  .topnav-brand {
    margin-inline-start: 0;
  }
  /* اطمینان از مخفی‌ماندن همبرگر در دسکتاپ حتی اگر کلاس Tailwind جا بماند */
  .topnav-burger { display: none !important; }
}
html.topnav-mobile-open,
html.topnav-mobile-open body {
  overflow: hidden;
}
.topnav-logo-link {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem;
  border-radius: 0.5rem;
  transition: background 0.15s ease;
}
.topnav-logo-link:hover { background: rgba(84, 58, 143, 0.08); }
.topnav-logo {
  height: 2.25rem;
  width: auto;
  display: block;
}
.topnav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem;
  flex: 1 1 auto;
  min-width: 0;
}
.topnav-dd {
  position: relative;
  flex: 0 0 auto;
}
.topnav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.8rem;
  border-radius: 0.55rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #4b5563;
  background: transparent;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  line-height: 1.25;
}
.topnav-btn .topnav-chevron {
  width: 0.85rem;
  height: 0.85rem;
  opacity: 0.55;
  transition: transform 0.15s ease;
}
.topnav-dd:hover > .topnav-btn,
.topnav-dd:focus-within > .topnav-btn,
.topnav-dd.is-open > .topnav-btn,
.topnav-btn:hover {
  background: rgba(84, 58, 143, 0.09);
  color: var(--primary-color);
}
.topnav-dd:hover > .topnav-btn .topnav-chevron,
.topnav-dd:focus-within > .topnav-btn .topnav-chevron,
.topnav-dd.is-open > .topnav-btn .topnav-chevron {
  transform: rotate(180deg);
  opacity: 1;
}
.topnav-btn.is-active {
  background: var(--primary-color);
  color: #fff;
  box-shadow: 0 6px 16px rgba(84, 58, 143, 0.28);
}
.topnav-btn.is-active .topnav-chevron { opacity: 0.9; color: #fff; }
.topnav-panel {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 14.5rem;
  max-width: min(22rem, calc(100vw - 1.5rem));
  max-height: min(70vh, 28rem);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  background: #fff;
  border: 1px solid #e9e4f5;
  border-radius: 0.85rem;
  box-shadow: 0 14px 36px rgba(84, 58, 143, 0.16), 0 2px 6px rgba(15, 23, 42, 0.05);
  padding: 0.45rem;
  /* پل hover: فاصله بین دکمه و پنل قطع نشود */
  margin-top: 0;
  padding-top: 0.45rem;
  z-index: 200;
}
.topnav-dd:hover > .topnav-panel,
.topnav-dd:focus-within > .topnav-panel,
.topnav-dd.is-open > .topnav-panel {
  display: block;
  animation: topnavFade 0.12s ease-out;
}
/* اگر نزدیک لبه چپ صفحه باشد، پنل را به چپ باز کن */
.topnav-dd.topnav-dd--flip > .topnav-panel {
  right: auto;
  left: 0;
}
@keyframes topnavFade {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.topnav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.55rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  transition: background 0.12s ease, color 0.12s ease;
}
.topnav-item:hover {
  background: rgba(84, 58, 143, 0.08);
  color: var(--primary-color);
}
.topnav-item.is-active {
  background: rgba(84, 58, 143, 0.12);
  color: var(--primary-color);
  font-weight: 700;
}
.topnav-label {
  padding: 0.4rem 0.75rem 0.2rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #9ca3af;
}
.topnav-sep {
  height: 1px;
  background: #f1eef8;
  margin: 0.3rem 0.45rem;
}
.topnav-user-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 0.55rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #4b5563;
  text-decoration: none;
}
.topnav-user-btn:hover { background: rgba(84, 58, 143, 0.09); color: var(--primary-color); }
.topnav-user-btn.is-active { color: var(--primary-color); font-weight: 700; }
.topnav-logout {
  color: #9ca3af !important;
}
.topnav-logout:hover { color: #b91c1c !important; background: #fef2f2 !important; }

/* موبایل: آکاردئون */
.mnav-group { border-bottom: 1px solid #f1eef8; }
.mnav-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.85rem 0.25rem;
  background: transparent;
  border: none;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1f2937;
  cursor: pointer;
  text-align: right;
}
.mnav-toggle.is-active { color: var(--primary-color); }
.mnav-toggle .topnav-chevron {
  width: 0.75rem;
  height: 0.75rem;
  flex-shrink: 0;
  transition: transform 0.15s ease;
  opacity: 0.5;
}
.mnav-toggle[aria-expanded="true"] .topnav-chevron { transform: rotate(180deg); opacity: 1; color: var(--primary-color); }
.mnav-panel {
  display: none;
  padding: 0 0 0.65rem 0.5rem;
  flex-direction: column;
  gap: 0.15rem;
}
.mnav-panel.is-open { display: flex; }
.mnav-link {
  display: block;
  padding: 0.55rem 0.65rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #4b5563;
  text-decoration: none;
}
.mnav-link:hover, .mnav-link.is-active {
  background: rgba(84, 58, 143, 0.08);
  color: var(--primary-color);
}
.mnav-link.is-active { font-weight: 700; }
.mnav-flat {
  display: block;
  padding: 0.85rem 0.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1f2937;
  text-decoration: none;
  border-bottom: 1px solid #f1eef8;
}
.mnav-flat.is-active { color: var(--primary-color); }
