/* ===========================================================================
 * Jazeel — styles for links.php
 * نُقلت من كتلة <style> المضمّنة داخل links.php إلى ملف خارجي ليستفيد من كاش
 * المتصفح (.htaccess يمنح CSS شهرًا). الرابط يحمل ?v=filemtime فيتغيّر تلقائيًا
 * مع أي تعديل هنا، فلا تُعرض نسخة قديمة أبدًا.
 * المسارات داخل url() جذرية (/...) لأن الملف الخارجي يحلّها من مجلده لا من الصفحة.
 * =========================================================================== */

:root {
      --brown: #8b5e3c;
      --brown-dark: #4b3b2f;
      --beige: #f7f2ed;
      --stroke: rgba(139, 94, 60, 0.25);
      --card: #ffffffee;
      --text: #3e2c1c;
      --muted: #6e5847;
    }

    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      font-family: "Cairo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
      background: linear-gradient(180deg, #f7f2ed 0%, #efe6da 100%);
      color: var(--text);
      min-height: 100vh;
    }

    a {
      text-decoration: none;
      color: inherit;
    }

    .top-buttons {
      position: fixed;
      top: 15px;
      inset-inline: 0;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0 15px;
      z-index: 1000;
      pointer-events: none;
      gap: 10px;
    }

    .top-left,
    .top-right {
      display: flex;
      align-items: center;
      gap: 10px;
      pointer-events: auto;
    }

    .top-btn {
      pointer-events: auto;
      background: linear-gradient(160deg, #a1734f 0%, var(--brown) 55%, var(--brown-dark) 100%);
      color: #fff;
      border: 1px solid rgba(255, 255, 255, 0.14);
      border-radius: 50%;
      width: 48px;
      height: 48px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.18),
        0 10px 22px rgba(0, 0, 0, 0.16);
      cursor: pointer;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .top-btn:hover {
      transform: translateY(-2px);
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 -2px 4px rgba(0, 0, 0, 0.16),
        0 14px 28px rgba(0, 0, 0, 0.2);
    }

    .top-btn:active {
      transform: translateY(0);
      box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.25);
    }

    .lang-btn {
      pointer-events: auto;
      min-width: 96px;
      height: 48px;
      padding: 0 14px;
      border-radius: 999px;
      border: 1px solid rgba(139, 94, 60, 0.25);
      background: rgba(255, 255, 255, 0.92);
      color: var(--brown-dark);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      font-weight: 800;
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 10px 22px rgba(75, 59, 47, 0.14);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .lang-btn:hover {
      transform: translateY(-2px);
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 14px 28px rgba(75, 59, 47, 0.18);
    }

    .jazeel-card {
      background: var(--card);
      border-radius: 26px;
      padding: 2rem;
      box-shadow:
        0 1px 2px rgba(75, 59, 47, 0.05),
        0 10px 20px rgba(75, 59, 47, 0.08),
        0 32px 64px -16px rgba(75, 59, 47, 0.24);
      border: 1px solid rgba(255, 255, 255, 0.6);
      backdrop-filter: blur(6px);
      -webkit-backdrop-filter: blur(6px);
    }

    .jazeel-logo {
      width: 120px;
      height: 120px;
      border-radius: 50%;
      border: 4px solid #d9c6a3;
      object-fit: cover;
      box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.7),
        inset 0 2px 5px rgba(255, 255, 255, 0.55),
        inset 0 -3px 8px rgba(75, 59, 47, 0.25),
        0 16px 30px -8px rgba(75, 59, 47, 0.4);
    }

    h1 {
      font-weight: 800;
      margin: 10px 0 4px;
      color: var(--brown-dark);
      line-height: 1.2;
      font-size: 1.65rem;
    }

    h3 {
      font-size: 0.95rem;
      font-weight: 600;
      color: var(--muted);
      line-height: 1.7;
      margin: 0;
    }

    .jazeel-social {
      display: flex;
      justify-content: center;
      gap: 12px;
      margin: 18px 0;
      flex-wrap: wrap;
    }

    .social-ic {
      width: 46px;
      height: 46px;
      border-radius: 50%;
      background: linear-gradient(160deg, #ffffff 0%, var(--beige) 100%);
      border: 1px solid rgba(255, 255, 255, 0.7);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--brown);
      font-size: 20px;
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -2px 4px rgba(139, 94, 60, 0.14),
        0 6px 14px rgba(75, 59, 47, 0.14);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .social-ic:hover {
      transform: translateY(-3px) scale(1.05);
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -2px 4px rgba(139, 94, 60, 0.14),
        0 12px 22px rgba(75, 59, 47, 0.22);
      color: var(--brown-dark);
    }

    .section-title {
      font-weight: 800;
      margin: 20px 0 12px;
      color: var(--brown-dark);
      font-size: 1rem;
    }

    .jazeel-btn {
      background: linear-gradient(180deg, #a1734f 0%, var(--brown) 45%, var(--brown-dark) 100%);
      color: #fff;
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 16px;
      padding: 0.95rem 1rem;
      font-weight: 800;
      width: 100%;
      margin-bottom: 0.7rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 0.95rem;
      gap: 12px;
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.32),
        inset 0 -3px 6px rgba(0, 0, 0, 0.16),
        0 10px 20px -4px rgba(75, 59, 47, 0.32),
        0 2px 5px rgba(75, 59, 47, 0.2);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .jazeel-btn:hover {
      transform: translateY(-3px);
      color: #fff;
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.38),
        inset 0 -3px 6px rgba(0, 0, 0, 0.14),
        0 18px 32px -6px rgba(75, 59, 47, 0.4),
        0 4px 10px rgba(75, 59, 47, 0.24);
    }

    .jazeel-btn:active {
      transform: translateY(-1px);
      box-shadow:
        inset 0 2px 6px rgba(0, 0, 0, 0.25),
        0 6px 14px rgba(75, 59, 47, 0.26);
    }

    html[dir="ltr"] .jazeel-btn {
      flex-direction: row;
    }

    .icon-circle {
      width: 46px;
      height: 46px;
      border-radius: 50%;
      background: linear-gradient(160deg, #ffffff 0%, var(--beige) 100%);
      border: 1px solid rgba(255, 255, 255, 0.6);
      display: flex;
      align-items: center;
      justify-content: center;
      flex: 0 0 46px;
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -2px 4px rgba(139, 94, 60, 0.16),
        0 4px 10px rgba(0, 0, 0, 0.18);
    }

    .icon-circle i {
      color: var(--brown);
      font-size: 20px;
    }

    .icon-img {
      width: 26px;
      height: 26px;
      object-fit: contain;
      display: block;
    }

    .icon-fallback {
      display: none;
    }

    .scroll-top-btn {
      position: fixed;
      bottom: 18px;
      right: 18px;
      z-index: 1300;
      width: 44px;
      height: 44px;
      border-radius: 14px;
      background: rgba(255, 255, 255, 0.78);
      border: 1px solid rgba(139, 94, 60, 0.28);
      color: var(--brown-dark);
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 10px 24px rgba(75, 59, 47, 0.16);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      opacity: 0;
      transform: translateY(12px);
      pointer-events: none;
      transition: 0.22s ease;
    }

    html[dir="ltr"] .scroll-top-btn {
      left: 18px;
      right: auto;
    }

    .scroll-top-btn i {
      font-size: 18px;
    }

    .scroll-top-btn.show {
      opacity: 1;
      transform: translateY(0);
      pointer-events: auto;
    }

    .scroll-top-btn:hover {
      transform: translateY(-2px);
      border-color: rgba(139, 94, 60, 0.45);
    }

    .scroll-top-btn:active {
      transform: translateY(0);
    }

    @media (max-width: 576px) {
      .top-btn {
        width: 44px;
        height: 44px;
        font-size: 18px;
      }

      .lang-btn {
        min-width: auto;
        height: 44px;
        padding: 0 12px;
        font-size: 0.88rem;
      }

      .scroll-top-btn {
        bottom: 14px;
        right: 14px;
        width: 42px;
        height: 42px;
        border-radius: 13px;
      }

      html[dir="ltr"] .scroll-top-btn {
        left: 14px;
        right: auto;
      }

      .jazeel-card {
        padding: 1.4rem;
      }
    }
