/* ===== MaxFlow Docs — Shared Styles ===== */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&display=swap');

:root {
  --primary: #006375;
  --primary-light: #007d94;
  --secondary: #94C120;
  --accent: #8EC7D2;
  --support: #7D7D7D;
  --warning: #F59E0B;
  --danger: #B10000;
  --light: #AFCD55;
  --neutral: #858686;
  --white: #ffffff;
  --bg: #f0f6f8;
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.85);
  --shadow: 0 8px 32px rgba(0, 99, 117, 0.12);
  --shadow-lg: 0 16px 48px rgba(0, 99, 117, 0.18);
  --radius: 16px;
  --radius-sm: 10px;
  --sidebar-w: 300px;
  --header-h: 68px;
  --transition: 0.35s cubic-bezier(.4, 0, .2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Tajawal', sans-serif;
  background: var(--bg);
  color: #1a2e35;
  min-height: 100vh;
  overflow-x: hidden;
  direction: rtl;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 20%, rgba(0, 99, 117, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(142, 199, 210, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 60% 10%, rgba(148, 193, 32, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ── HEADER ── */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px) saturate(2);
  -webkit-backdrop-filter: blur(20px) saturate(2);
  border-bottom: 1.5px solid rgba(0, 99, 117, 0.10);
  box-shadow: 0 2px 20px rgba(0, 99, 117, 0.07);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.header-logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(0, 99, 117, 0.3);
}

.header-logo-text {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.header-logo-sub {
  font-size: 11px;
  color: var(--support);
  font-weight: 400;
}

.header-search {
  flex: 1;
  max-width: 440px;
  margin: 0 auto;
  position: relative;
}

.header-search input {
  width: 100%;
  height: 40px;
  border-radius: 20px;
  border: 1.5px solid rgba(0, 99, 117, 0.15);
  background: rgba(255, 255, 255, 0.8);
  padding: 0 44px 0 16px;
  font-family: 'Tajawal', sans-serif;
  font-size: 14px;
  color: #1a2e35;
  outline: none;
  transition: var(--transition);
}

.header-search input:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 99, 117, 0.1);
}

.header-search input::placeholder {
  color: var(--neutral);
}

.header-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--support);
  pointer-events: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-menu {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1.5px solid rgba(0, 99, 117, 0.15);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: var(--transition);
  padding: 10px;
}

.btn-menu span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}

.btn-menu:hover {
  background: rgba(0, 99, 117, 0.08);
}

.btn-menu.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.btn-menu.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.btn-menu.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.btn-cta {
  height: 38px;
  padding: 0 18px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border: none;
  border-radius: 20px;
  font-family: 'Tajawal', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0, 99, 117, 0.3);
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 99, 117, 0.4);
}

/* ── SIDEBAR OVERLAY ── */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 30, 40, 0.32);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1090;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.sidebar-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ── DRAWER SIDEBAR ── */
.sidebar {
  position: fixed;
  top: 0;
  width: var(--sidebar-w);
  height: 100vh;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(24px) saturate(2);
  -webkit-backdrop-filter: blur(24px) saturate(2);
  border-left: 1.5px solid rgba(0, 99, 117, 0.10);
  box-shadow: -8px 0 40px rgba(0, 99, 117, 0.14);
  transform: translateX(100%);
  right: 0;
  transition: transform var(--transition);
}

.sidebar.open {
  transform: translateX(0);
}

.sidebar-header {
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(0, 99, 117, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(0, 99, 117, 0.05), rgba(142, 199, 210, 0.08));
}

.sidebar-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}

.sidebar-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1.5px solid rgba(0, 99, 117, 0.15);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--support);
  transition: var(--transition);
}

.sidebar-close:hover {
  background: rgba(177, 0, 0, 0.08);
  border-color: var(--danger);
  color: var(--danger);
}

.sidebar-search {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0, 99, 117, 0.06);
  flex-shrink: 0;
}

.sidebar-search-wrap {
  position: relative;
}

.sidebar-search input {
  width: 100%;
  height: 36px;
  border-radius: 18px;
  border: 1.5px solid rgba(0, 99, 117, 0.15);
  background: rgba(255, 255, 255, 0.9);
  padding: 0 36px 0 12px;
  font-family: 'Tajawal', sans-serif;
  font-size: 13px;
  outline: none;
  transition: var(--transition);
}

.sidebar-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0, 99, 117, 0.1);
}

.sidebar-search-wrap svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--neutral);
  pointer-events: none;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0 16px;
}

.sidebar-nav::-webkit-scrollbar {
  width: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(0, 99, 117, 0.2);
  border-radius: 4px;
}

.nav-section-label {
  padding: 10px 20px 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--neutral);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  text-decoration: none;
  color: #2c4a52;
  font-size: 14px;
  font-weight: 500;
  border-radius: 10px;
  margin: 2px 10px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.nav-item:hover {
  background: rgba(0, 99, 117, 0.07);
  color: var(--primary);
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(0, 99, 117, 0.12), rgba(142, 199, 210, 0.15));
  color: var(--primary);
  font-weight: 700;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--primary);
  border-radius: 2px 0 0 2px;
}

.nav-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  transition: var(--transition);
}

.nav-item:hover .nav-icon,
.nav-item.active .nav-icon {
  transform: scale(1.1);
}

.nav-badge {
  margin-right: auto;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
}

.badge-new {
  background: rgba(148, 193, 32, 0.15);
  color: var(--secondary);
}

.badge-hot {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(0, 99, 117, 0.08);
  flex-shrink: 0;
}

.sidebar-footer-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 12px;
  padding: 14px;
  color: white;
  text-align: center;
}

.sidebar-footer-card p {
  font-size: 13px;
  opacity: .9;
  margin-bottom: 8px;
}

.sidebar-footer-card a {
  display: inline-block;
  background: white;
  color: var(--primary);
  text-decoration: none;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  transition: var(--transition);
}

.sidebar-footer-card a:hover {
  transform: scale(1.05);
}

/* ── MAIN ── */
.main {
  padding-top: var(--header-h);
  position: relative;
  z-index: 1;
}

/* ── PAGE HERO ── */
.page-hero {
  padding: 44px 32px 36px;
  max-width: 1200px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--support);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  color: var(--neutral);
}

.page-hero-inner {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.page-hero-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 8px 24px rgba(0, 99, 117, 0.2);
}

.page-hero-text {
  flex: 1;
}

.page-hero-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 900;
  color: #0d2830;
  margin-bottom: 8px;
  line-height: 1.2;
}

.page-hero-desc {
  font-size: 15px;
  color: var(--support);
  line-height: 1.7;
  max-width: 640px;
}

.page-hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(0, 99, 117, 0.08);
  border: 1px solid rgba(0, 99, 117, 0.12);
  border-radius: 20px;
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
}

/* ── CONTENT LAYOUT ── */
.content-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 60px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 28px;
  align-items: start;
}

@media (max-width:900px) {
  .content-wrap {
    grid-template-columns: 1fr;
  }
}

.content-main {
  min-width: 0;
}

.content-aside {
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

/* ── SECTION CARD ── */
.doc-section {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 99, 117, 0.07);
  animation: fadeUp .5s ease both;
}

.doc-section-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(0, 99, 117, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(0, 99, 117, 0.04), rgba(142, 199, 210, 0.06));
}

.doc-section-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.doc-section-title {
  font-size: 17px;
  font-weight: 800;
  color: #0d2830;
}

.doc-section-sub {
  font-size: 12px;
  color: var(--support);
  margin-top: 2px;
}

.doc-section-body {
  padding: 24px;
}

/* ── VIDEO EMBED ── */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
}

.video-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--support);
  margin-bottom: 16px;
}

.video-label-icon {
  width: 28px;
  height: 28px;
  background: rgba(255, 0, 0, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

/* ── STEP LIST ── */
.steps {
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px dashed rgba(0, 99, 117, 0.10);
  counter-increment: step;
}

.step:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.step-num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 99, 117, 0.3);
}

.step-num::before {
  content: counter(step);
}

.step-body {
  flex: 1;
}

.step-title {
  font-size: 15px;
  font-weight: 700;
  color: #0d2830;
  margin-bottom: 4px;
}

.step-desc {
  font-size: 13px;
  color: #4a6570;
  line-height: 1.7;
}

/* ── SCREENSHOT PLACEHOLDER ── */
.screenshot {
  border-radius: 12px;
  overflow: hidden;
  margin: 16px 0;
  border: 1.5px solid rgba(0, 99, 117, 0.12);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.screenshot img {
  width: 100%;
  display: block;
  object-fit: cover;
  transition: transform .4s ease;
}

.screenshot:hover img {
  transform: scale(1.02);
}

.screenshot-caption {
  background: rgba(0, 99, 117, 0.04);
  padding: 10px 14px;
  font-size: 12px;
  color: var(--support);
  border-top: 1px solid rgba(0, 99, 117, 0.08);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── TIP / NOTE / WARNING BOXES ── */
.tip-box {
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  margin: 16px 0;
}

.tip-box.info {
  background: rgba(142, 199, 210, 0.15);
  border: 1px solid rgba(142, 199, 210, 0.4);
}

.tip-box.warn {
  background: rgba(245, 158, 11, 0.10);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.tip-box.success {
  background: rgba(148, 193, 32, 0.12);
  border: 1px solid rgba(148, 193, 32, 0.35);
}

.tip-box.danger {
  background: rgba(177, 0, 0, 0.06);
  border: 1px solid rgba(177, 0, 0, 0.2);
}

.tip-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}

.tip-content {
  flex: 1;
}

.tip-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 3px;
}

.tip-text {
  font-size: 13px;
  line-height: 1.65;
}

.tip-box.info .tip-title {
  color: #2a7a8a;
}

.tip-box.warn .tip-title {
  color: #b87000;
}

.tip-box.success .tip-title {
  color: #5a8000;
}

.tip-box.danger .tip-title {
  color: var(--danger);
}

/* ── VIDEO GRID (multiple videos) ── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.video-card {
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(0, 99, 117, 0.07);
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.video-thumb {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.video-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.video-card:hover .video-thumb img {
  transform: scale(1.05);
}

.video-thumb-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 20, 30, 0.25);
  transition: var(--transition);
}

.video-card:hover .video-thumb-overlay {
  background: rgba(0, 20, 30, 0.45);
}

.play-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.video-card:hover .play-btn {
  transform: scale(1.15);
}

.video-card-body {
  padding: 14px 16px;
}

.video-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #0d2830;
  margin-bottom: 4px;
  line-height: 1.4;
}

.video-card-meta {
  font-size: 12px;
  color: var(--support);
  display: flex;
  align-items: center;
  gap: 8px;
}

.video-duration {
  background: rgba(0, 0, 0, 0.06);
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 600;
}

/* ── TOC (Table of Contents) ── */
.toc-card {
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0, 99, 117, 0.07);
  margin-bottom: 20px;
}

.toc-title {
  font-size: 14px;
  font-weight: 800;
  color: #0d2830;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── TOC SIDEBAR (selling, procurement, login pages) ── */
.toc-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  max-height: calc(100vh - var(--header-h) - 40px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 99, 117, 0.2) transparent;
}

.toc-sidebar::-webkit-scrollbar {
  width: 4px;
}

.toc-sidebar::-webkit-scrollbar-thumb {
  background: rgba(0, 99, 117, 0.2);
  border-radius: 4px;
}

.toc-inner {
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0, 99, 117, 0.07);
}

.toc-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 16px;
}

.toc-link {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  color: #2c4a52;
  font-weight: 500;
  transition: var(--transition);
  line-height: 1.4;
}

.toc-link:hover {
  background: rgba(0, 99, 117, 0.08);
  color: var(--primary);
  font-weight: 600;
}

.toc-link.active {
  background: rgba(0, 99, 117, 0.1);
  color: var(--primary);
  font-weight: 700;
}

.toc-help {
  border-top: 1px solid rgba(0, 99, 117, 0.08);
  padding-top: 14px;
  font-size: 12px;
  color: var(--support);
}

.toc-help p {
  margin-bottom: 10px;
}

.toc-help-btn {
  display: block;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  text-align: center;
  padding: 9px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: var(--transition);
}

.toc-help-btn:hover {
  opacity: .9;
  transform: translateY(-1px);
}

/* ── CONTENT WRAPPER ALIAS (login page) ── */
.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 60px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 28px;
  align-items: start;
}

@media(max-width:900px) {
  .content-wrapper {
    grid-template-columns: 1fr;
  }
}

/* ── SECTION ALIASES (login page uses section-* instead of doc-section-*) ── */
.section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px 0;
  border-bottom: 1px solid rgba(0, 99, 117, 0.06);
  padding-bottom: 14px;
  margin-bottom: 0;
}

.section-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.section-body {
  padding: 20px 24px 24px;
}

.section-meta {
  font-size: 12px;
  color: var(--support);
  margin-top: 3px;
}

/* ── HERO (login page hero variant) ── */
.hero {
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0;
}

.hero-bg.hero {
  padding: 48px 32px 36px;
}

.hero-body {
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 99, 117, 0.1);
  border: 1px solid rgba(0, 99, 117, 0.18);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s infinite;
}

.hero-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  color: #0d2830;
  margin-bottom: 10px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 15px;
  color: var(--support);
  line-height: 1.8;
  max-width: 580px;
  margin-bottom: 20px;
}

.hero-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stat-num {
  font-size: 22px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  font-size: 11px;
  color: var(--support);
  font-weight: 600;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card {
  background: var(--glass-bg);
  border: 1.5px solid var(--glass-border);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 32px 40px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

@media(max-width:768px) {
  .hero-bg.hero {
    padding: 32px 16px 24px;
  }

  .hero-stats {
    gap: 16px;
  }
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toc-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  color: #2c4a52;
  font-weight: 500;
  transition: var(--transition);
}

.toc-list a:hover {
  background: rgba(0, 99, 117, 0.07);
  color: var(--primary);
}

.toc-list a.active {
  background: rgba(0, 99, 117, 0.1);
  color: var(--primary);
  font-weight: 700;
}

.toc-num {
  font-size: 11px;
  color: var(--neutral);
  font-weight: 600;
  min-width: 18px;
}

/* ── RELATED PAGES ASIDE ── */
.related-card {
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 4px 16px rgba(0, 99, 117, 0.07);
}

.related-title {
  font-size: 14px;
  font-weight: 800;
  color: #0d2830;
  margin-bottom: 14px;
}

.related-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 8px;
  border-radius: 8px;
  text-decoration: none;
  color: #2c4a52;
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition);
  border-bottom: 1px solid rgba(0, 99, 117, 0.06);
}

.related-item:last-child {
  border-bottom: none;
}

.related-item:hover {
  background: rgba(0, 99, 117, 0.07);
  color: var(--primary);
}

.related-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.related-arrow {
  font-size: 14px;
  color: var(--neutral);
  margin-right: auto;
  transition: var(--transition);
}

.related-item:hover .related-arrow {
  color: var(--primary);
  transform: translateX(-3px);
}

/* ── SCROLL TOP ── */
.scroll-top {
  position: fixed;
  left: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 99, 117, 0.35);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  z-index: 500;
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.scroll-top:hover {
  transform: translateY(-3px);
}

/* ── FOOTER ── */
footer {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(0, 99, 117, 0.08);
  padding: 24px 32px;
  text-align: center;
  font-size: 13px;
  color: var(--support);
}

footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-14px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1)
  }

  50% {
    opacity: .7;
    transform: scale(1.3)
  }
}

/* ── RESPONSIVE ── */
@media(max-width:768px) {

  .header-search,
  .btn-cta {
    display: none
  }

  .page-hero {
    padding: 32px 16px 24px
  }

  .content-wrap {
    padding: 0 16px 40px
  }

  .video-grid {
    grid-template-columns: 1fr
  }

  .page-hero-inner {
    flex-direction: column;
    gap: 16px
  }

  .page-hero-icon {
    width: 50px;
    height: 50px;
    font-size: 24px
  }
}

/* ===== SVG ICON SYSTEM ===== */
.icon {
  display: inline-block;
  vertical-align: middle;
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
  flex-shrink: 0;
  transition: transform .2s ease;
}

.icon-xs {
  width: 14px;
  height: 14px;
}

.icon-sm {
  width: 16px;
  height: 16px;
}

.icon-md {
  width: 20px;
  height: 20px;
}

.icon-lg {
  width: 24px;
  height: 24px;
}

.icon-xl {
  width: 32px;
  height: 32px;
}

.icon-2xl {
  width: 40px;
  height: 40px;
}

/* Auto-size inside known containers */
.nav-icon .icon {
  width: 22px;
  height: 22px;
}

.doc-section-icon .icon {
  width: 26px;
  height: 26px;
  stroke-width: 1.5;
}

.info-icon .icon,
.tip-icon .icon,
.warn-icon .icon {
  width: 22px;
  height: 22px;
}

.step-num-badge .icon {
  width: 20px;
  height: 20px;
}

.quick-card-icon .icon {
  width: 30px;
  height: 30px;
  stroke-width: 1.4;
}

.module-icon .icon {
  width: 28px;
  height: 28px;
  stroke-width: 1.4;
}

.header-logo-icon .icon {
  width: 22px;
  height: 22px;
  stroke: #fff;
}

.screenshot-ph-icon .icon {
  width: 44px;
  height: 44px;
  stroke-width: 1.3;
}

.rc-icon .icon {
  width: 28px;
  height: 28px;
  stroke-width: 1.4;
}

.z-icon .icon {
  width: 26px;
  height: 26px;
}

.nc-icon .icon {
  width: 30px;
  height: 30px;
  stroke-width: 1.4;
}

.tc-icon .icon {
  width: 26px;
  height: 26px;
}

.stat-num .icon {
  width: 22px;
  height: 22px;
}

.zone-card .z-icon .icon {
  width: 24px;
  height: 24px;
}

.sidebar-close .icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.btn-primary .icon,
.btn-secondary .icon,
.btn-cta .icon {
  width: 18px;
  height: 18px;
}

.s-icon .icon {
  width: 30px;
  height: 30px;
  stroke-width: 1.4;
}

.m-icon .icon {
  width: 24px;
  height: 24px;
}

/* aaa */

/* ===== CSS VARIABLES ===== */
:root {
  --primary: #006375;
  --primary-light: #007d94;
  --secondary: #94C120;
  --accent: #8EC7D2;
  --support: #7D7D7D;
  --warning: #F59E0B;
  --danger: #B10000;
  --light: #AFCD55;
  --neutral: #858686;
  --white: #ffffff;
  --bg: #f0f6f8;
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.8);
  --shadow: 0 8px 32px rgba(0, 99, 117, 0.12);
  --shadow-lg: 0 16px 48px rgba(0, 99, 117, 0.18);
  --radius: 16px;
  --radius-sm: 10px;
  --sidebar-w: 300px;
  --header-h: 68px;
  --transition: 0.35s cubic-bezier(.4, 0, .2, 1);
  --info: #B920C1;
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Tajawal', sans-serif;
  background: var(--bg);
  color: #1a2e35;
  min-height: 100vh;
  overflow-x: hidden;
  direction: rtl;
}

/* ===== ANIMATED BACKGROUND ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 20%, rgba(0, 99, 117, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(142, 199, 210, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 60% 10%, rgba(148, 193, 32, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ===== GLASSMORPHISM UTILITY ===== */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(18px) saturate(1.8);
  -webkit-backdrop-filter: blur(18px) saturate(1.8);
  border: 1.5px solid var(--glass-border);
  box-shadow: var(--shadow);
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px) saturate(2);
  -webkit-backdrop-filter: blur(20px) saturate(2);
  border-bottom: 1.5px solid rgba(0, 99, 117, 0.1);
  box-shadow: 0 2px 20px rgba(0, 99, 117, 0.08);
  transition: var(--transition);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.header-logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(0, 99, 117, 0.3);
}

.header-logo-text {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.header-logo-sub {
  font-size: 11px;
  color: var(--support);
  font-weight: 400;
}

.header-search {
  flex: 1;
  max-width: 440px;
  margin: 0 auto;
  position: relative;
}

.header-search input {
  width: 100%;
  height: 40px;
  border-radius: 20px;
  border: 1.5px solid rgba(0, 99, 117, 0.15);
  background: rgba(255, 255, 255, 0.8);
  padding: 0 44px 0 16px;
  font-family: 'Tajawal', sans-serif;
  font-size: 14px;
  color: #1a2e35;
  outline: none;
  transition: var(--transition);
}

.header-search input:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 99, 117, 0.1);
}

.header-search input::placeholder {
  color: var(--neutral);
}

.header-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--support);
  font-size: 16px;
  pointer-events: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-menu {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1.5px solid rgba(0, 99, 117, 0.15);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: var(--transition);
  padding: 10px;
}

.btn-menu span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}

.btn-menu:hover {
  background: rgba(0, 99, 117, 0.08);
}

.btn-menu.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.btn-menu.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.btn-menu.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.btn-cta {
  height: 38px;
  padding: 0 18px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border: none;
  border-radius: 20px;
  font-family: 'Tajawal', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0, 99, 117, 0.3);
  white-space: nowrap;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 99, 117, 0.4);
}

/* ===== SIDEBAR OVERLAY ===== */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 30, 40, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1090;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.sidebar-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ===== DRAWER SIDEBAR ===== */
.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: var(--sidebar-w);
  height: 100vh;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px) saturate(2);
  -webkit-backdrop-filter: blur(24px) saturate(2);
  border-left: 1.5px solid rgba(0, 99, 117, 0.1);
  box-shadow: -8px 0 40px rgba(0, 99, 117, 0.15);
  transform: translateX(100%);
  transition: transform var(--transition), visibility 0s linear var(--transition);
  visibility: hidden;
}

.sidebar.open {
  transform: translateX(0);
  visibility: visible;
  transition: transform var(--transition), visibility 0s;
}

.sidebar-header {
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(0, 99, 117, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(0, 99, 117, 0.05), rgba(142, 199, 210, 0.08));
}

.sidebar-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}

.sidebar-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1.5px solid rgba(0, 99, 117, 0.15);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--support);
  transition: var(--transition);
}

.sidebar-close:hover {
  background: rgba(177, 0, 0, 0.08);
  border-color: var(--danger);
  color: var(--danger);
}

.sidebar-search {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0, 99, 117, 0.06);
  flex-shrink: 0;
}

.sidebar-search input {
  width: 100%;
  height: 36px;
  border-radius: 18px;
  border: 1.5px solid rgba(0, 99, 117, 0.15);
  background: rgba(255, 255, 255, 0.9);
  padding: 0 36px 0 12px;
  font-family: 'Tajawal', sans-serif;
  font-size: 13px;
  outline: none;
  transition: var(--transition);
}

.sidebar-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0, 99, 117, 0.1);
}

.sidebar-search-wrap {
  position: relative;
}

.sidebar-search-wrap svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--neutral);
  pointer-events: none;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0 16px;
}

.sidebar-nav::-webkit-scrollbar {
  width: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(0, 99, 117, 0.2);
  border-radius: 4px;
}

.nav-section-label {
  padding: 10px 20px 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--neutral);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  text-decoration: none;
  color: #2c4a52;
  font-size: 14px;
  font-weight: 500;
  border-radius: 10px;
  margin: 2px 10px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.nav-item:hover {
  background: rgba(0, 99, 117, 0.07);
  color: var(--primary);
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(0, 99, 117, 0.12), rgba(142, 199, 210, 0.15));
  color: var(--primary);
  font-weight: 700;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--primary);
  border-radius: 2px 0 0 2px;
}

.nav-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  transition: var(--transition);
}

.nav-item:hover .nav-icon,
.nav-item.active .nav-icon {
  transform: scale(1.1);
}

.nav-badge {
  margin-right: auto;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
}

.badge-new {
  background: rgba(148, 193, 32, 0.15);
  color: var(--secondary);
}

.badge-hot {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}

.badge-soon {
  background: rgba(185, 32, 193, 0.15);
  color: var(--info);
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(0, 99, 117, 0.08);
  flex-shrink: 0;
}

.sidebar-footer-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 12px;
  padding: 14px;
  color: white;
  text-align: center;
}

.sidebar-footer-card p {
  font-size: 13px;
  opacity: 0.9;
  margin-bottom: 8px;
}

.sidebar-footer-card a {
  display: inline-block;
  background: white;
  color: var(--primary);
  text-decoration: none;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  transition: var(--transition);
}

.sidebar-footer-card a:hover {
  transform: scale(1.05);
}

/* ===== MAIN CONTENT ===== */
.main {
  padding-top: var(--header-h);
  position: relative;
  z-index: 1;
}

/* ===== HERO ===== */
.hero {
  padding: 60px 32px 48px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 99, 117, 0.08);
  border: 1px solid rgba(0, 99, 117, 0.15);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 20px;
  animation: fadeDown 0.6s ease both;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--secondary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: #0d2830;
  line-height: 1.2;
  margin-bottom: 16px;
  animation: fadeDown 0.7s ease 0.1s both;
}

.hero-title span {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 16px;
  color: var(--support);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.8;
  animation: fadeDown 0.7s ease 0.2s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  animation: fadeDown 0.7s ease 0.3s both;
}

.btn-primary {
  height: 46px;
  padding: 0 28px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border: none;
  border-radius: 23px;
  font-family: 'Tajawal', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(0, 99, 117, 0.35);
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 99, 117, 0.45);
}

.btn-secondary {
  height: 46px;
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--primary);
  border: 1.5px solid rgba(0, 99, 117, 0.25);
  border-radius: 23px;
  font-family: 'Tajawal', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.btn-secondary:hover {
  background: rgba(0, 99, 117, 0.05);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  padding: 20px 32px;
  max-width: 860px;
  margin: 0 auto 52px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  box-shadow: 0 4px 24px rgba(0, 99, 117, 0.08);
  animation: fadeUp 0.7s ease 0.4s both;
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: var(--support);
  font-weight: 500;
}

/* ===== SECTION ===== */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 56px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0d2830;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title-line {
  width: 4px;
  height: 22px;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  border-radius: 2px;
}

.section-link {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.section-link:hover {
  text-decoration: underline;
}

/* ===== QUICK START CARDS ===== */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.quick-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.5s ease both;
}

.quick-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--card-color, var(--primary));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition);
}

.quick-card:hover::before {
  transform: scaleX(1);
}

.quick-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 99, 117, 0.2);
}

.quick-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 12px;
  background: var(--icon-bg, rgba(0, 99, 117, 0.1));
}

.quick-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #0d2830;
  margin-bottom: 4px;
}

.quick-card-desc {
  font-size: 12px;
  color: var(--support);
  line-height: 1.5;
}

.quick-card-arrow {
  position: absolute;
  left: 16px;
  bottom: 16px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(0, 99, 117, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--primary);
  transition: var(--transition);
}

.quick-card:hover .quick-card-arrow {
  background: var(--primary);
  color: white;
  transform: translateX(-3px);
}

/* ===== MODULE GRID ===== */
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.module-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.5s ease both;
}

.module-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 20%, var(--card-glow, rgba(0, 99, 117, 0.06)) 0%, transparent 65%);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition);
}

.module-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 99, 117, 0.25);
}

.module-card:hover::after {
  opacity: 1;
}

.module-card-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.module-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px var(--icon-shadow, rgba(0, 99, 117, 0.2));
}

.module-info {
  flex: 1;
}

.module-title {
  font-size: 16px;
  font-weight: 800;
  color: #0d2830;
  margin-bottom: 4px;
}

.module-sub {
  font-size: 12px;
  color: var(--support);
}

.module-desc {
  font-size: 13px;
  color: #4a6570;
  line-height: 1.7;
  margin-bottom: 16px;
}

.module-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.topic-chip {
  padding: 3px 10px;
  background: rgba(0, 99, 117, 0.07);
  border: 1px solid rgba(0, 99, 117, 0.12);
  border-radius: 12px;
  font-size: 11px;
  color: var(--primary);
  font-weight: 500;
  transition: var(--transition);
}

.module-card:hover .topic-chip {
  background: rgba(0, 99, 117, 0.12);
}

.module-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 99, 117, 0.07);
}

.module-count {
  font-size: 12px;
  color: var(--support);
}

.module-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(0, 99, 117, 0.08);
  color: var(--primary);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}

.module-card:hover .module-btn {
  background: var(--primary);
  color: white;
}

/* ===== UPDATES GRID (آخر التحديثات) ===== */
.updates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.update-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 18px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 14px;
  animation: fadeUp 0.5s ease both;
}

.update-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--card-color, var(--primary));
}

.update-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 99, 117, 0.2);
}

.update-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--icon-bg, rgba(0, 99, 117, 0.1));
}

.update-icon .icon {
  width: 24px;
  height: 24px;
  stroke-width: 1.5;
}

.update-info {
  flex: 1;
  min-width: 0;
}

.update-title {
  font-size: 14px;
  font-weight: 700;
  color: #0d2830;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.update-desc {
  font-size: 11.5px;
  color: var(--support);
  line-height: 1.4;
}

/* ===== POPULAR ARTICLES ===== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.article-card {
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  text-decoration: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: var(--transition);
  animation: fadeUp 0.5s ease both;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(0, 99, 117, 0.2);
}

.article-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  background: var(--icon-bg, rgba(0, 99, 117, 0.08));
}

.article-info {
  flex: 1;
  min-width: 0;
}

.article-title {
  font-size: 13px;
  font-weight: 700;
  color: #0d2830;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.article-meta {
  font-size: 11px;
  color: var(--support);
}

.article-arrow {
  font-size: 14px;
  color: var(--neutral);
  flex-shrink: 0;
  transition: var(--transition);
}

.article-card:hover .article-arrow {
  color: var(--primary);
  transform: translateX(-3px);
}

/* ===== HELP BOX ===== */
.help-box {
  background: linear-gradient(135deg, var(--primary) 0%, #005566 100%);
  border-radius: 20px;
  padding: 36px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  margin: 0 24px 56px;
  max-width: calc(1200px - 48px);
  margin-left: auto;
  margin-right: auto;
}

.help-box::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.help-box::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 200px;
  height: 200px;
  background: rgba(148, 193, 32, 0.1);
  border-radius: 50%;
}

.help-box h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.help-box p {
  font-size: 14px;
  opacity: 0.85;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}

.help-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.btn-white {
  height: 42px;
  padding: 0 22px;
  background: white;
  color: var(--primary);
  border: none;
  border-radius: 21px;
  font-family: 'Tajawal', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-ghost {
  height: 42px;
  padding: 0 22px;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: white;
  border-radius: 21px;
  font-family: 'Tajawal', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ===== FOOTER ===== */
footer {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(0, 99, 117, 0.08);
  padding: 28px 32px;
  text-align: center;
  font-size: 13px;
  color: var(--support);
}

footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

footer a:hover {
  text-decoration: underline;
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
  position: fixed;
  left: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 99, 117, 0.35);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  z-index: 500;
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.scroll-top:hover {
  transform: translateY(-3px);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.7;
    transform: scale(1.3);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

/* Stagger animation delays */
.quick-card:nth-child(1),
.module-card:nth-child(1),
.article-card:nth-child(1) {
  animation-delay: 0.05s;
}

.quick-card:nth-child(2),
.module-card:nth-child(2),
.article-card:nth-child(2) {
  animation-delay: 0.10s;
}

.quick-card:nth-child(3),
.module-card:nth-child(3),
.article-card:nth-child(3) {
  animation-delay: 0.15s;
}

.quick-card:nth-child(4),
.module-card:nth-child(4),
.article-card:nth-child(4) {
  animation-delay: 0.20s;
}

.quick-card:nth-child(5),
.module-card:nth-child(5),
.article-card:nth-child(5) {
  animation-delay: 0.25s;
}

.quick-card:nth-child(6),
.module-card:nth-child(6),
.article-card:nth-child(6) {
  animation-delay: 0.30s;
}

.module-card:nth-child(7),
.article-card:nth-child(7) {
  animation-delay: 0.35s;
}

.module-card:nth-child(8),
.article-card:nth-child(8) {
  animation-delay: 0.40s;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero {
    padding: 40px 20px 36px;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    margin: 0 16px 40px;
    padding: 16px;
  }

  .section {
    padding: 0 16px 40px;
  }

  .header-search {
    display: none;
  }

  .btn-cta {
    display: none;
  }

  .help-box {
    margin: 0 16px 40px;
    padding: 24px 20px;
  }

  .module-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== SVG ICON SYSTEM (overrides /docs/shared.css for index-specific containers) ===== */
.icon {
  display: inline-block;
  vertical-align: middle;
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
  flex-shrink: 0;
}

.nav-icon .icon {
  width: 22px;
  height: 22px;
}

.quick-card-icon .icon {
  width: 30px;
  height: 30px;
  stroke-width: 1.4;
}

.module-icon .icon {
  width: 28px;
  height: 28px;
  stroke-width: 1.4;
}

.sidebar-close .icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.btn-primary .icon,
.btn-secondary .icon {
  width: 18px;
  height: 18px;
}

.article-icon-wrap .icon {
  width: 20px;
  height: 20px;
}

.module-count .icon {
  width: 14px;
  height: 14px;
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(0, 99, 117, 0.12);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  max-height: 360px;
  overflow-y: auto;
  z-index: 1050;
  display: none;
  padding: 6px;
}

.search-results.open {
  display: block;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 9px;
  text-decoration: none;
  color: #1a2e35;
  font-size: 13px;
  transition: background 0.2s;
}

.search-result-item:hover,
.search-result-item.highlighted {
  background: rgba(0, 99, 117, 0.08);
}

.search-result-item .nav-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.search-no-results {
  padding: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--support);
}