    /* === إعادة تعيين خاصة بالكلاسات === */
    .app-reset {
      
      margin: 0;
      padding: 0;
    }

    .app-body {
      
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      background: #f9fbfd;

      position: relative;
      min-height: 100vh;
      padding-top: 70px; /* مسافة للهيدر الثابت */
    }

    /* الطبقة المعتمة */
    .overlay-layer {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(15, 23, 42, 0.4);
      backdrop-filter: blur(1px);
      z-index: 30;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .overlay-layer.is-visible {
      opacity: 1;
      visibility: visible;
    }

    /* === الهيدر الشفاف الثابت === */
    .app-header {
      direction: ltr;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 25;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px 16px;
      height: 64px;
      background: rgba(255, 255, 255, 0.75);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border-bottom: 1px solid rgba(203, 213, 225, 0.35);
      box-shadow: 0 4px 15px rgba(100, 116, 139, 0.06);
    }

    /* الصورة الدائرية في الجهة اليسرى (داخل رابط) */
    .header-avatar-link {
      display: flex;
      align-items: center;
      justify-content: center;
      text-decoration: none;
      flex-shrink: 0;
    }

    .header-avatar-wrapper {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      overflow: hidden;
      border: 2px solid rgba(255, 255, 255, 0.9);
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
      background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .header-avatar-image {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .header-avatar-icon {
      font-size: 1.5rem;
      color: #64748b;
    }
    /* الأيقونة في المنتصف */
    .header-center-icon {
      display: flex;
      align-items: center;
      justify-content: center;
      color: #475569;
      font-size: 1.6rem;
      opacity: 0.8;
      flex-shrink: 0;
    }
    .header-center-icon img{
      width: 100px;
      height: 50px;
    }
    /* زر القائمة في الجهة اليمنى */
    .menu-trigger {
      display: flex;
      align-items: center;
      justify-content: center;
      background: transparent;
      border: none;
      width: 42px;
      height: 42px;
      border-radius: 14px;
      font-size: 1.4rem;
      color: #334155;
      cursor: pointer;
      transition: all 0.2s;
      flex-shrink: 0;
    }

    .menu-trigger:active {
      background: rgba(203, 213, 225, 0.3);
      transform: scale(0.94);
    }

    .menu-trigger-icon {
      pointer-events: none;
    }

    /* === القائمة الجانبية === */
    .sidebar-panel {
      position: fixed;
      top: 0;
      right: 0;
      width: 285px;
      max-width: 82vw;
      height: 100%;
      background: #ffffff;
      box-shadow: -8px 0 25px rgba(0, 0, 0, 0.06);
      z-index: 40;
      transform: translateX(100%);
      transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      display: flex;
      flex-direction: column;
      border-radius: 22px 0 0 22px;
      padding: 0rem 1rem;
      will-change: transform;
      border-left: 1px solid rgba(203, 213, 225, 0.3);
    }

    .sidebar-panel.is-open {
      transform: translateX(0);
    }

    /* حاوية التمرير للقوائم */
    .sidebar-scroll-area {
      flex: 1;
      overflow-y: auto;
      overflow-x: hidden;
      padding: 0 2rem;
      margin-bottom: 0.5rem;
      scrollbar-width: thin;
      scrollbar-color: #cbd5e1 #f1f5f9;
    }

    .sidebar-scroll-area::-webkit-scrollbar {
      width: 4px;
    }

    .sidebar-scroll-area::-webkit-scrollbar-track {
      background: #f1f5f9;
      border-radius: 8px;
    }

    .sidebar-scroll-area::-webkit-scrollbar-thumb {
      background: #cbd5e1;
      border-radius: 8px;
    }

    /* قسم الصورة الدائرية داخل القائمة */
    .profile-block {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 1.8rem 0.5rem 1.3rem;
      margin-bottom: 0.4rem;
      border-bottom: 1px solid #edf2f9;
      flex-shrink: 0;
    }

    .avatar-wrapper {
      width: 88px;
      height: 88px;
      border-radius: 50%;
      background: linear-gradient(145deg, #e9eef3, #ffffff);
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 0.7rem;
      box-shadow: 0 10px 22px rgba(100, 116, 139, 0.12);
      border: 2px solid #ffffff;
      overflow: hidden;
      transition: all 0.2s;
    }

    .avatar-image {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .avatar-icon-fallback {
      font-size: 2.6rem;
      color: #64748b;
    }

    .profile-title {
      font-weight: 600;
      font-size: 1.15rem;
      color: #1e293b;
      letter-spacing: 0.2px;
      margin-top: 0.2rem;
    }

    .profile-subtitle {
      font-size: 0.8rem;
      color: #64748b;
      font-weight: 400;
      margin-top: 0.15rem;
    }


    
    .profile-pc{
      text-decoration: none;
      background-color: rgb(2, 4, 124);
      color: white;
      display: inline-block;
      width: 70%;
      padding: 1px;
      margin: 5px;
      height: 35px;
      text-align: center;
      border-radius: 8px;
    }
    /* قائمة الروابط */
    .nav-menu {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 0.2rem;
      padding: 0;
      margin: 0;
    }

    .nav-link {
      display: flex;
      align-items: center;
      padding: 0.85rem 0.9rem;
      border-radius: 14px;
      color: #475569;
      font-weight: 500;
      font-size: 0.95rem;
      transition: all 0.2s ease;
      cursor: pointer;
      text-decoration: none;
      background: transparent;
      border: none;
      width: 100%;
      text-align: right;
      gap: 0.7rem;
      position: relative;
      white-space: nowrap;
    }

    .nav-link-icon {
      font-size: 1.25rem;
      width: 26px;
      text-align: center;
      color: #7c8ba0;
      transition: color 0.2s;
      flex-shrink: 0;
    }

    .nav-link-label {
      flex: 1;
      font-weight: 500;
    }

    .nav-link-badge {
      background: #eef2ff;
      color: #4f6ef6;
      border-radius: 20px;
      padding: 0.1rem 0.45rem;
      font-size: 0.7rem;
      font-weight: 600;
      line-height: 1.4;
      min-width: 22px;
      text-align: center;
      letter-spacing: 0.2px;
      flex-shrink: 0;
    }

    .nav-link:hover {
      background: #f1f5f9;
      color: #0f172a;
    }

    .nav-link:hover .nav-link-icon {
      color: #4f6ef6;
    }

    .nav-link.is-active {
      background: #f0f4ff;
      color: #4f6ef6;
      font-weight: 600;
      border-right: 3px solid #4f6ef6;
    }

    .nav-link.is-active .nav-link-icon {
      color: #4f6ef6;
    }

    /* تذييل القائمة */
    .sidebar-footer-block {
      border-top: 1px solid #edf2f9;
      padding-top: 0.6rem;
      margin-top: 0.2rem;
      flex-shrink: 0;
      padding-left: 0.4rem;
      padding-right: 0.4rem;
    }

    .logout-link {
      color: #b91c1c;
      font-weight: 500;
      
    }
    .logout-link .nav-link-icon {
      color: #ef4444;
    }
    .logout-link:hover {
      background: #fef2f2;
      color: #b91c1c;
    }

    /* === محتوى الصفحة (طويل للتمرير) === */
    .page-content {
      padding: 1rem 1.2rem;
      max-width: 600px;
      margin: 0 auto;
      color: #334155;
    }

    .content-card {
      background: #ffffff;
      border-radius: 20px;
      padding: 1.5rem;
      margin-bottom: 1.2rem;
      box-shadow: 0 6px 18px rgba(0,0,0,0.03);
      border: 1px solid #edf2f9;
    }

    .content-card h3 {
      margin-bottom: 0.5rem;
      font-weight: 600;
      color: #1e293b;
    }

    .content-card p {
      color: #64748b;
      line-height: 1.6;
      font-size: 0.9rem;
    }

    .spacer {
      height: 40px;
    }

  .badge {
    position: relative;
    display: inline-block;
    font-size: 22px;
    color: #1DA1F2;
  }

  .badge.x{
    color: #ff0101;
  }

  .badge .check {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
  }

