/* ==========================================================================
   Arab Wrestling - Enhanced Features (Live Search, Bookmarks, Spoilers, Auto-Tags)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Superstar Auto-Tag Links (ربط أسماء المصارعين بالوسوم تلقائياً)
   -------------------------------------------------------------------------- */
.star-mention-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--teal, #0e9594);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
  font-weight: 700;
}
.star-mention-link:hover {
  color: var(--teal, #0e9594);
  text-decoration-color: var(--gold, #f2a53c);
}
html.arw-dark .star-mention-link {
  text-decoration-color: var(--teal, #1cb5b3);
}
html.arw-dark .star-mention-link:hover {
  color: var(--teal, #1cb5b3);
  text-decoration-color: var(--gold, #f4b352);
}

/* --------------------------------------------------------------------------
   3. Watch Later / Bookmarks (المفضلة وقائمة المشاهدة لاحقاً)
   -------------------------------------------------------------------------- */
.bookmarks-btn {
  position: relative;
}
.bookmark-badge {
  position: absolute;
  top: -4px;
  inset-inline-end: -4px;
  background: var(--coral, #ff6f59);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--card);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  line-height: 1;
  pointer-events: none;
  transition: transform 0.2s ease;
}

.post-bookmark-wrap {
  margin-inline-start: auto;
  display: inline-flex;
  align-items: center;
}

.post-bookmark-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}
.post-bookmark-btn:hover {
  border-color: var(--gold, #f2a53c);
  color: var(--gold, #f2a53c);
  transform: translateY(-1px);
}
.post-bookmark-btn .bm-icon-filled {
  display: none;
  color: var(--gold, #f2a53c);
}
.post-bookmark-btn.bookmarked {
  border-color: var(--gold, #f2a53c);
  background: var(--gold-soft, #fdf1de);
  color: #b58509;
}
html.arw-dark .post-bookmark-btn.bookmarked {
  color: var(--gold, #f4b352);
  background: rgba(244, 179, 82, 0.15);
}
.post-bookmark-btn.bookmarked .bm-icon-empty {
  display: none;
}
.post-bookmark-btn.bookmarked .bm-icon-filled {
  display: inline-block;
}

/* Slide-in Drawer Modal */
.bookmarks-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 99995;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.bookmarks-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}
.bookmarks-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  background: var(--card);
  z-index: 99996;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  direction: rtl;
  font-family: 'Tajawal', sans-serif;
}
.bookmarks-drawer.active {
  transform: translateX(0);
}
.bookmarks-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.bookmarks-drawer-title {
  font-family: 'Cairo', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.bookmarks-drawer-title svg {
  color: var(--gold, #f2a53c);
}
.bookmarks-drawer-close {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.bookmarks-drawer-close:hover {
  background: var(--line);
  color: var(--ink);
}
.bookmarks-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bookmark-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  text-decoration: none;
  color: var(--ink);
  position: relative;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.bookmark-card:hover {
  border-color: var(--teal);
  transform: translateX(-3px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.bookmark-card-thumb {
  width: 72px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #222;
}
.bookmark-card-info {
  flex: 1;
  min-width: 0;
}
.bookmark-card-title {
  font-family: 'Cairo', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}
.bookmark-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
}
.bookmark-badge-tag {
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  white-space: nowrap;
}
.bookmark-badge-show {
  background: var(--gold-soft);
  color: #b58509;
}
.bookmark-badge-recap {
  background: rgba(124, 110, 232, 0.15);
  color: var(--violet);
}
.bookmark-badge-news {
  background: var(--coral-soft);
  color: var(--coral);
}
.bookmark-card-remove {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
}
.bookmark-card-remove:hover {
  color: var(--coral);
  background: var(--coral-soft);
}
.bookmarks-empty {
  text-align: center;
  padding: 50px 20px;
  color: var(--muted);
}
.bookmarks-empty svg {
  width: 48px;
  height: 48px;
  color: var(--line);
  margin-bottom: 14px;
}
.bookmarks-empty p {
  font-size: 13.5px;
  line-height: 1.6;
}
.bookmarks-drawer-foot {
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--muted);
}
.bookmarks-clear-btn {
  background: transparent;
  border: none;
  color: var(--coral);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  transition: opacity 0.2s ease;
}
.bookmarks-clear-btn:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   4. Instant Live Search Dropdown (البحث الفوري المنسدل)
   -------------------------------------------------------------------------- */
.site-search {
  position: relative !important;
  /* The form is its own layer (it is transformed), so without this the header's bottom line
     (header::after, dark mode) was painted across the results dropdown. */
  z-index: 2;
}
@media (min-width: 1581px) {
  .site-search {
    flex: 0 1 400px !important;
    width: 400px !important;
    max-width: 460px !important;
    min-width: 240px !important;
  }
}
@media (min-width: 1341px) and (max-width: 1580px) {
  .site-search {
    flex: 0 1 240px !important;
    width: 240px !important;
    max-width: 260px !important;
    min-width: 160px !important;
  }
}
@media (min-width: 1151px) and (max-width: 1340px) {
  .site-search {
    flex: 0 1 185px !important;
    width: 185px !important;
    max-width: 200px !important;
    min-width: 140px !important;
  }
}
@media (max-width: 1150px) {
  .site-search {
    flex-basis: 100% !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
  }
}

.instant-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255,255,255,0.05);
  z-index: 9999;
  overflow: hidden;
  overflow-x: hidden !important;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  direction: rtl !important;
  text-align: right !important;
  font-family: 'Tajawal', sans-serif;
  box-sizing: border-box;
}
.instant-search-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.instant-search-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  direction: rtl;
  text-align: right;
}
.instant-search-list {
  list-style: none;
  margin: 0;
  padding: 8px;
  max-height: 420px;
  overflow-y: auto;
  overflow-x: hidden !important;
  display: flex;
  flex-direction: column;
  gap: 6px;
  direction: rtl;
  text-align: right;
}
.instant-search-item {
  width: 100%;
  box-sizing: border-box;
}
.instant-search-item a {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 12px !important;
  padding: 10px 12px !important;
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  background: transparent;
  transition: background 0.15s ease, transform 0.15s ease;
  direction: rtl !important;
  text-align: right !important;
  width: 100% !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
}
.instant-search-item a:hover,
.instant-search-item.selected a {
  background: var(--teal-soft);
  transform: translateX(-3px);
}
.instant-search-thumb {
  width: 62px !important;
  height: 42px !important;
  min-width: 62px !important;
  max-width: 62px !important;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #181c24;
  border: 1px solid var(--line);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  order: 1 !important;
  margin: 0 !important;
}
.instant-search-info {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  direction: rtl !important;
  text-align: right !important;
  overflow: hidden !important;
  order: 2 !important;
}
.instant-search-title {
  font-family: 'Cairo', sans-serif;
  font-size: 13.5px !important;
  font-weight: 700;
  line-height: 1.45 !important;
  color: var(--ink);
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  text-overflow: unset !important;
  overflow: visible !important;
  direction: rtl !important;
  text-align: right !important;
}
.instant-search-meta {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 7px !important;
  font-size: 11px;
  color: var(--muted);
  direction: rtl !important;
  text-align: right !important;
}
.instant-search-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
}
.instant-search-badge.badge-show {
  background: var(--gold-soft);
  color: #b58509;
}
.instant-search-badge.badge-recap {
  background: rgba(124, 110, 232, 0.15);
  color: var(--violet);
}
.instant-search-badge.badge-news {
  background: var(--coral-soft);
  color: var(--coral);
}
.instant-search-footer {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: var(--bg);
  text-align: center;
}
.instant-search-all-btn {
  color: var(--teal);
  font-size: 12.5px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.instant-search-all-btn:hover {
  text-decoration: underline;
}
.instant-search-empty {
  padding: 24px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.instant-search-loading {
  padding: 20px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.instant-search-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--line);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: search-spin 0.6s linear infinite;
}
@keyframes search-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 600px) {
  .bookmarks-drawer {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  /* تموضع زر حفظ للمشاهدة في المنتصف تماماً في نسخة الموبايل */
  .post-bookmark-wrap {
    flex-basis: 100% !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    margin: 10px 0 2px 0 !important;
    order: 99 !important;
  }
  .post-bookmark-btn {
    margin: 0 auto !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 6px 20px !important;
    font-size: 13px !important;
    border-radius: 999px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
  }
}

/* ═══ Share bar (news / shows / recaps) ═══ */
.arw-share{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin:4px 0 18px; }
.arw-share-btns{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.arw-share-btns a, .arw-share-btns button{ display:inline-flex; align-items:center; justify-content:center; gap:7px; height:38px; min-width:38px; padding:0 11px; border-radius:12px; border:1px solid var(--line); background:var(--card); color:var(--ink); font:700 13px 'Tajawal',sans-serif; text-decoration:none; cursor:pointer; transition:transform .2s cubic-bezier(0.16,1,0.3,1), background .2s ease, color .2s ease, border-color .2s ease; }
.arw-share-btns a:hover, .arw-share-btns button:hover{ transform:translateY(-2px); color:#fff; border-color:transparent; }
.arw-share-btns .sh-wa:hover{ background:#25d366; } .arw-share-btns .sh-tg:hover{ background:#24a1de; } .arw-share-btns .sh-fb:hover{ background:#1877f2; }
.arw-share-btns .sh-x:hover{ background:#111; } .arw-share-btns .sh-copy:hover, .arw-share-btns .sh-native:hover{ background:var(--teal); }
.arw-share-btns .sh-wa{ color:#1ea952; } .arw-share-btns .sh-tg{ color:#1d8fc7; } .arw-share-btns .sh-fb{ color:#1877f2; }
html.arw-dark .arw-share-btns .sh-x{ color:#fff; }
.arw-share-btns .sh-copy.copied{ background:var(--teal); color:#fff; border-color:transparent; }
.arw-share .sh-native{ display:none; }
html.arw-can-share .arw-share .sh-native{ display:inline-flex; }
.arw-share--top .sh-copy-text:empty{ display:none; }
.arw-share--bottom{ flex-direction:column; align-items:stretch; gap:12px; margin:26px 0 8px; padding:18px; border-radius:18px; background:var(--card); border:1px solid var(--line); }
.arw-share-label{ font-family:'Cairo',sans-serif; font-weight:900; font-size:15.5px; color:var(--ink); }
.arw-share--bottom .arw-share-btns a, .arw-share--bottom .arw-share-btns button{ flex:1 1 auto; height:42px; white-space:nowrap; padding:0 8px; }
@media (max-width:768px){
  /* Phones: WhatsApp and the phone's own share sheet first — that's how people share here. */
  html.arw-can-share .arw-share--top .sh-fb, html.arw-can-share .arw-share--top .sh-x{ display:none; }
  .arw-share--bottom .arw-share-btns{ display:grid; grid-template-columns:repeat(3, 1fr); }
}

/* ═══ Breadcrumbs ═══ */
.arw-crumbs{ display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin:0 0 14px; font-size:13px; font-weight:700; color:var(--muted); }
/* Hover only turns the link green — no dashed line under it (the owner's choice) */
.arw-crumbs a{ color:var(--muted); text-decoration:none; padding:2px 0; transition:color .2s ease; }
.arw-crumbs a:hover{ color:var(--teal); text-decoration:none; }
.arw-crumbs a:last-child{ color:var(--ink); }
.arw-crumbs span{ opacity:.55; }

/* ═══ Previous / next news ═══ */
.news-pn{ display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:18px 0 6px; }
.news-pn-item{ display:flex; flex-direction:column; gap:6px; padding:14px 16px; border-radius:16px; background:var(--card); border:1px solid var(--line); text-decoration:none; color:var(--ink); transition:transform .2s cubic-bezier(0.16,1,0.3,1), border-color .2s ease, box-shadow .2s ease; }
.news-pn-item:hover{ transform:translateY(-2px); border-color:var(--teal); box-shadow:0 10px 22px rgba(0,0,0,.07); }
.news-pn-next{ text-align:left; }
.news-pn-label{ font-size:12px; font-weight:800; color:var(--teal); }
.news-pn-title{ font-family:'Cairo',sans-serif; font-size:14.5px; font-weight:800; line-height:1.55; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
@media (max-width:560px){ .news-pn{ grid-template-columns:1fr; } .news-pn-next{ text-align:right; } }

/* ═══ Phone header (fixed at the top) + bottom navigation ═══ */
.arw-bottom-nav, .arw-more-sheet, .arw-more-overlay, .arw-search-toggle{ display:none; }
@media (max-width:768px){
  html body header{ transition:transform .3s cubic-bezier(0.16,1,0.3,1), box-shadow .3s ease !important; }
  html body header.arw-scrolled{ box-shadow:0 6px 18px rgba(0,0,0,.08); }
  /* The header stays put on phones: the pages' older hide-on-scroll script is overruled. */
  html body header.header-hidden{ transform:none !important; }
  html body header .nav{ flex-wrap:nowrap !important; justify-content:space-between !important; padding:9px 14px !important; gap:10px !important; }
  html body header .brand{ font-size:20px !important; }
  html body header .site-search{ display:none !important; }
  html body header.arw-search-open .nav{ flex-wrap:wrap !important; }
  html body header.arw-search-open .site-search{ display:flex !important; order:5 !important; flex-basis:100% !important; height:40px !important; }
  html body header #navMenu{ display:flex !important; flex:0 0 auto !important; width:auto !important; margin:0 !important; padding:0 !important; gap:0 !important; flex-wrap:nowrap !important; overflow:visible !important; }
  html body header #navMenu > li:not(.utility-row){ display:none !important; }
  html body header #navMenu li.utility-row{ display:flex !important; flex-basis:auto !important; width:auto !important; gap:6px !important; }
  html body header #navMenu li.utility-row .support-btn, html body header #navMenu li.utility-row .telegram-btn{ display:none !important; }
  html body header #navMenu .theme-toggle, html body header .arw-search-toggle{ width:38px !important; height:38px !important; }
  html body header .arw-search-toggle{ display:inline-flex; align-items:center; justify-content:center; border-radius:50%; border:1px solid var(--line); background:var(--card); color:var(--ink); cursor:pointer; order:0; }
  html body header.arw-search-open .arw-search-toggle{ background:var(--teal); color:#fff; border-color:var(--teal); }

  body.arw-has-bottom-nav{ padding-bottom:calc(66px + env(safe-area-inset-bottom, 0px)) !important; }
  .arw-bottom-nav{ display:flex; position:fixed; left:0; right:0; bottom:0; z-index:9990; height:calc(62px + env(safe-area-inset-bottom, 0px)); padding:0 6px env(safe-area-inset-bottom, 0px); background:color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); border-top:1px solid var(--line); box-shadow:0 -6px 24px rgba(0,0,0,.06); }
  .arw-bottom-nav a, .arw-bottom-nav button{ flex:1 1 0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; color:var(--muted); text-decoration:none; font:800 11px 'Tajawal',sans-serif; background:none; border:0; cursor:pointer; position:relative; -webkit-tap-highlight-color:transparent; }
  .arw-bottom-nav svg{ width:22px; height:22px; transition:transform .2s cubic-bezier(0.34,1.56,0.64,1); }
  .arw-bottom-nav .active{ color:var(--teal); }
  .arw-bottom-nav .active::before{ content:""; position:absolute; top:0; width:28px; height:3px; border-radius:0 0 3px 3px; background:var(--teal); }
  .arw-bottom-nav a:active svg, .arw-bottom-nav button:active svg{ transform:scale(.88); }

  .arw-more-overlay{ display:block; position:fixed; inset:0; z-index:9991; background:rgba(0,0,0,.45); opacity:0; visibility:hidden; transition:opacity .25s ease, visibility 0s linear .25s; }
  .arw-more-sheet{ display:block; position:fixed; left:0; right:0; bottom:0; z-index:9992; background:var(--card); border-radius:22px 22px 0 0; padding:10px 16px calc(18px + env(safe-area-inset-bottom, 0px)); transform:translateY(105%); transition:transform .32s cubic-bezier(0.16,1,0.3,1); box-shadow:0 -12px 40px rgba(0,0,0,.2); }
  html.arw-more-open .arw-more-overlay{ opacity:1; visibility:visible; transition:opacity .25s ease; }
  html.arw-more-open .arw-more-sheet{ transform:translateY(0); }
  .arw-more-grip{ width:40px; height:4px; border-radius:4px; background:var(--line); margin:0 auto 12px; }
  .arw-more-title{ font:900 15px 'Cairo',sans-serif; color:var(--ink); margin:0 4px 12px; }
  .arw-more-grid{ display:grid; grid-template-columns:repeat(2, 1fr); gap:10px; }
  .arw-more-grid a{ display:flex; align-items:center; gap:10px; padding:14px; border-radius:16px; background:var(--bg); border:1px solid var(--line); color:var(--ink); text-decoration:none; font:800 14px 'Tajawal',sans-serif; }
  .arw-more-grid a svg{ width:20px; height:20px; color:var(--teal); flex-shrink:0; }
  .arw-more-grid a.more-support{ background:linear-gradient(135deg, var(--coral), var(--gold)); color:#fff; border:0; }
  .arw-more-grid a.more-support svg{ color:#fff; }
  .arw-more-grid a.more-tg svg{ color:#24a1de; }

  /* Floating prompts sit above the bottom bar. */
  body.arw-has-bottom-nav .tg-float-bar, body.arw-has-bottom-nav .notif-float-bar{ bottom:calc(76px + env(safe-area-inset-bottom, 0px)) !important; }
}
@media (prefers-reduced-motion:reduce){ html body header, .arw-more-sheet, .arw-more-overlay{ transition:none !important; } }

/* Header brand lockup (2026-09-27): framed logo + name (+ a short line under it on computers). */
.brand.brand-lockup{display:inline-flex;align-items:center;gap:11px;text-decoration:none}
.brand-mark{position:relative;display:block;flex:none;width:42px;height:42px;border-radius:13px;padding:2px;overflow:hidden;
  background:linear-gradient(135deg,#2fd0cc 0%,#8be9e5 30%,#ffbf5a 62%,#1cb5b3 100%);
  box-shadow:0 8px 20px -8px rgba(28,181,179,.65),0 0 0 1px rgba(255,255,255,.05);
  transition:transform .4s cubic-bezier(.34,1.4,.64,1),box-shadow .4s ease}
.brand-mark img{display:block;width:100%;height:100%;border-radius:11px;object-fit:cover}
.brand-mark::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;
  background:linear-gradient(115deg,transparent 38%,rgba(255,255,255,.5) 50%,transparent 62%);transform:translateX(-130%);transition:transform .9s ease}
.brand:hover .brand-mark{transform:translateY(-2px) rotate(-5deg) scale(1.06);box-shadow:0 14px 28px -10px rgba(28,181,179,.85),0 0 0 1px rgba(255,255,255,.08)}
.brand:hover .brand-mark::after{transform:translateX(130%)}
.brand:focus-visible{outline:none}
.brand:focus-visible .brand-mark{box-shadow:0 0 0 3px rgba(47,208,204,.55)}
.brand-words{display:flex;flex-direction:column;justify-content:center;line-height:1}
.brand-name{font:900 22px/1.05 "Cairo",sans-serif;letter-spacing:-.2px;white-space:nowrap}
.brand-tag{font:700 10.5px/1 "Tajawal",sans-serif;color:var(--muted,#8e97a6);margin-top:6px;letter-spacing:.3px;white-space:nowrap;opacity:.9}
/* The line under the name is for computers only (owner's choice): hidden on tablets and phones. */
@media (max-width:1180px){.brand-tag{display:none}}
@media (max-width:768px){.brand.brand-lockup{gap:9px}.brand-mark{width:34px;height:34px;border-radius:11px}.brand-mark img{border-radius:9px}.brand-name{font-size:19px}}
