  :root {
      --discord: #5865F2;
      --discord-hover: #4752C4;
      --text-main: #ffffff;
      --text-sub: #a1a1a6;
      --border: rgba(255, 255, 255, 0.08);
      --bg-dark: #1a202c;
      --card-bg: #253247;
  }


  * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
  }

  body {
      background: var(--bg-dark);
      min-height: 100vh;
      font-family: 'Tajawal', system-ui, sans-serif;
      direction: rtl;
  }




header {
    height: 64px;
    display: flex;
    align-items: center;
    padding: 0 4%; /* زيادة الحشو قليلاً */
    border-bottom: 1px solid var(--border);
    background: rgba(26, 32, 44, 0.95); /* خلفية شبه شفافة ليعطي تأثير عصري */
    backdrop-filter: blur(8px); /* تأثير ضبابي خلف الهيدر */
    position: sticky; /* جعل الهيدر معلقاً */
    top: 0;
    z-index: 1000; /* رفع قيمة z-index لضمان ظهوره فوق كل شيء */
    justify-content: space-between;
}

  .header-inner {
      display: flex;
      align-items: center;
      gap: 12px;

  }

  .header-inner img {
      width: 24px;
      height: 24px;
  }

  .header-inner .title {
      color: var(--text-main)
  }


  .lang-switch {
      display: flex;
      align-items: center;
      gap: 6px;
      background: rgba(42, 159, 216, 0.1);
      border: 1px solid #2a9fd8;
      color: #2a9fd8;
      padding: 5px 12px;
      border-radius: 8px;
      font-size: 12px;
      font-weight: 800;
      text-decoration: none;
      transition: all 0.3s ease;
      cursor: pointer;
  }

  .lang-switch:hover {
      background: #2a9fd8;
      color: #ffffff;
  }

  /* أيقونة الكرة الأرضية أو حرف اللغة */
  .lang-switch svg {
      width: 14px;
      height: 14px;
      fill: currentColor;
  }

  .hero {
      text-align: center;
      padding: 48px 20px 32px;
  }

  .hero-title {
      font-size: clamp(22px, 5vw, 30px);
      font-weight: 900;
      color: #ffffff;
      line-height: 1.3;
      margin-bottom: 8px;
  }

  .hero-sub {
      font-size: 14px;
      color: #4a6a80;
  }

  .hero-line {
      width: 60px;
      height: 3px;
      background: #2a9fd8;
      border-radius: 2px;
      margin: 20px auto 0;
  }

  .content {
      max-width: 780px;
      margin: 0 auto;
      padding: 8px 20px 0;
  }

  .cracked-card {
      position: relative;
      margin-bottom: 16px;
      filter: drop-shadow(3px 4px 0px #0a1018);
      opacity: 0;
      transform: translateY(16px);
      transition: opacity 0.4s ease, transform 0.4s ease;
  }

  .cracked-card.visible {
      opacity: 1;
      transform: translateY(0);
  }

  .cracked-card svg.frame {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      overflow: visible;
      pointer-events: none;
  }

  .card-inner {
      position: relative;
      z-index: 2;
      padding: 20px 24px;
  }

  .section-header {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 10px;
  }

  .section-num {
      width: 30px;
      height: 30px;
      background: #0f1923;
      border: 1.5px solid #2a9fd8;
      border-radius: 6px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 13px;
      font-weight: 800;
      color: #2a9fd8;
      flex-shrink: 0;
  }

  .section-title {
      font-size: 15px;
      font-weight: 800;
      color: #e8f4fd;
  }




  .card-inner ul {
      list-style: none;
      padding: 0;
  }

  .card-inner p,
  .card-inner li {
      position: relative;
      padding-inline-start: 20px;
      font-size: 18px;
      color: #5a7a90;
      line-height: 1.85;
      margin-bottom: 4px;
      text-align: start;
  }

  .card-inner p::before,
  .card-inner li::before {
      content: "";
      position: absolute;
      inset-inline-start: 0;
      top: 6px;
      width: 14px;
      height: 14px;
      background-image: url('../../res/favicon.png');
      background-size: contain;
      background-repeat: no-repeat;
  }

  .card-inner strong {
      color: #2a9fd8;
      font-weight: 700;
  }

  .bottom-section {
      max-width: 680px;
      margin: 0 auto;
      padding: 12px 20px 48px;
  }

  .divider-fancy {
      display: flex;
      align-items: center;
      gap: 10px;
      margin: 0 0 20px;
  }

  .divider-fancy span {
      flex: 1;
      height: 1px;
      background: #1e3a50;
  }

  .divider-logo {
      width: 85px;
      height: 85px;
      margin: 0 auto;
      /* assets/images/temp/lv*-logo.png never shipped (404'd, divider rendered
         empty) — the transparent site logo fills the ornament instead. */
      background-image: url('../../res/logo.png');
      background-size: contain;
      background-repeat: no-repeat;
      background-position: center;
      display: block;
  } 

    .divider-logo-privacy {
      width: 85px;
      height: 85px;
      margin: 0 auto;
      background-image: url('../../res/logo.png');
      background-size: contain;
      background-repeat: no-repeat;
      background-position: center;
      display: block;
  }


  .footer-note {
      background: #141e2e;
      border: 1.5px solid #1e3a50;
      border-radius: 12px;
      padding: 14px 18px;
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 13px;
      color: #3a5a70;
  }

  .footer-note strong {
      color: #7899aa;
  }

  .fn-icon {
      width: 18px;
      height: 18px;
      object-fit: contain;
      flex-shrink: 0;
      animation: blink 2s infinite;
  }

  @keyframes blink {

      0%,
      100% {
          opacity: 1
      }

      50% {
          opacity: 0.3
      }
  }

  .page-footer {
      color: #5a7a90;
      border-top: 1px solid #1e3a50;
      padding: 14px;
      text-align: center;
      font-size: 12px;
  }


/* تنسيقات اللغة الإنجليزية */
body.en {
    text-align: left;
    direction: ltr;
}

/* عكس الهيدر: اللوجو لليسار وزر اللغة لليمين */
body.en header {
    flex-direction: row; /* نستخدم row لأن الصفحة الأصلية rtl فالعادي سيصبح لليمين */
}

/* في العربية الأصلية الهيدر يوزع العناصر، في الإنجليزية نريد التأكد من التوزيع */
header {
    flex-direction: row; /* القيمة الافتراضية */
}

/* حل ذكي: بدلاً من عكس الهيدر يدوياً، نستخدم justify-content */
body.en header {
    justify-content: space-between;
}

/* إصلاح هوامش الأيقونات في الكروت عند قلب اللغة */
body.en .card-inner p::before,
body.en .card-inner li::before {
    left: 0;
    right: auto;
}

body.en .card-inner p,
body.en .card-inner li {
    padding-left: 25px;
    padding-right: 0;
}

/* عكس الفوتر والملاحظات */
body.en .footer-note {
    flex-direction: row;
}

body.en .section-header {
    flex-direction: row;
}