/* =====================================================================
   ProSafe OHSMS — User Guide Theme
   Brand identity aligned with https://prosafe.sa (Enterprise Light)
   ===================================================================== */

/* ===== DESIGN TOKENS (from prosafe.sa :root) ===== */
:root {
  --ps-bg-main: #FFFFFF;
  --ps-bg-subtle: #F8FAFC;
  --ps-bg-elevated: #F1F5F9;
  --ps-text-primary: #0F172A;
  --ps-text-secondary: #334155;
  --ps-text-muted: #64748B;
  --ps-text-faint: #94A3B8;
  --ps-primary: #0E4ED9;
  --ps-primary-bright: #155DFC;
  --ps-primary-hover: #1D4ED8;
  --ps-primary-deep: #1E40AF;
  --ps-primary-light: #EFF6FF;
  --ps-primary-soft: #DBEAFE;
  --ps-primary-border: #BFDBFE;
  --ps-emerald: #059669;
  --ps-emerald-light: #ECFDF5;
  --ps-amber: #D97706;
  --ps-red: #DC2626;
  --ps-border: #E2E8F0;
  --ps-border-strong: #CBD5E1;
  --ps-navy: #0F172A;

  --ps-grad-primary: linear-gradient(135deg, #155DFC 0%, #0E4ED9 100%);
  --ps-grad-flow: linear-gradient(90deg, #0E4ED9 0%, #059669 100%);

  --ps-font: 'Cairo', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ps-font-num: 'Inter', 'Cairo', sans-serif;
  --ps-font-mono: 'JetBrains Mono', Consolas, 'Courier New', monospace;

  --ps-shadow-xs: 0 1px 2px rgba(15, 23, 42, .04);
  --ps-shadow-sm: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .03);
  --ps-shadow-md: 0 10px 28px -8px rgba(15, 23, 42, .12), 0 2px 6px -2px rgba(15, 23, 42, .05);
  --ps-shadow-lg: 0 24px 48px -12px rgba(15, 23, 42, .18), 0 4px 10px -4px rgba(15, 23, 42, .06);
  --ps-shadow-nav: 0 4px 20px -2px rgba(15, 23, 42, .04), 0 1px 2px 0 rgba(15, 23, 42, .02);
  --ps-shadow-blue: 0 4px 14px rgba(14, 78, 217, .32), inset 0 1px 0 rgba(255, 255, 255, .35);

  --ps-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: .25s var(--ps-ease);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;

  --sidebar-w: 288px;
  --topbar-h: 72px;

  /* Module color (overridden per section by JS) */
  --mod: #0E4ED9;
  --mod-bg: #EFF6FF;
  --mod-border: #DBEAFE;

  /* Legacy aliases used by inline styles in the content */
  --navy-deep: #0F172A;
  --blue: #0E4ED9;
  --blue-light: #155DFC;
  --green: #059669;
  --green-brand: #059669;
  --amber: #D97706;
  --red: #DC2626;
  --white: #FFFFFF;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-400: #64748B;
  --gray-600: #64748B;
  --radius: 12px;
  --radius-lg: 16px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0 }
html { scroll-behavior: smooth; font-size: 16px }
body {
  font-family: var(--ps-font);
  background: var(--ps-bg-subtle);
  color: var(--ps-text-secondary);
  overflow-x: hidden;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none }
img { max-width: 100%; display: block }
ul, ol { padding-right: 1.5rem }
li { margin-bottom: .35rem }
h1, h2, h3, h4 { color: var(--ps-text-primary); line-height: 1.35 }
strong { color: var(--ps-text-primary) }
button { font-family: inherit }
[id] { scroll-margin-top: calc(var(--topbar-h) + 24px) }
::selection { background: var(--ps-primary-soft); color: var(--ps-primary-deep) }

/* ===== ICONS ===== */
.ico {
  width: 1.15em; height: 1.15em;
  display: inline-block; vertical-align: -0.2em;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}
.ico-inline { display: inline-flex; align-items: center; color: var(--mod); margin-inline-end: .2rem }
.num-badge {
  font-family: var(--ps-font-num); font-weight: 800; font-size: .78rem;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; height: 8px }
::-webkit-scrollbar-track { background: var(--ps-bg-subtle) }
::-webkit-scrollbar-thumb { background: var(--ps-border-strong); border-radius: 8px; border: 2px solid var(--ps-bg-subtle) }
::-webkit-scrollbar-thumb:hover { background: var(--ps-text-faint) }

/* ===== TOPBAR ===== */
.topbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
}
.btn-mobile-icon {
  display: none !important;
}
.drawer-close-btn {
  display: none !important;
}
#sidebar-backdrop {
  display: none;
}
#topbar {
  position: fixed; top: 0; right: 0; left: 0; z-index: 1000;
  height: var(--topbar-h);
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(226, 232, 240, .9);
  box-shadow: var(--ps-shadow-nav);
  padding: 0 28px;
}
#topbar .brand { display: flex; align-items: center; gap: 1rem; transition: opacity .2s, transform .2s }
#topbar .brand:hover { opacity: .92 }
#topbar .brand-logo { height: 40px; width: auto; max-width: 150px; object-fit: contain }
#topbar .brand-sep { width: 1px; height: 30px; background: var(--ps-border) }
#topbar .brand-text { font-size: .95rem; font-weight: 800; color: var(--ps-text-primary); line-height: 1.2 }
#topbar .brand-sub { font-size: .74rem; color: var(--ps-text-muted); font-weight: 600 }
#progress-bar {
  position: absolute; bottom: -1px; right: 0; left: 0; height: 3px;
  background: var(--ps-grad-flow);
  transform-origin: right; transform: scaleX(0); transition: transform .1s linear;
  border-radius: 0 3px 3px 0;
}
#topbar .actions { display: flex; align-items: center; gap: .6rem }
.btn-search {
  height: 42px; min-width: 260px;
  background: var(--ps-bg-subtle); border: 1.5px solid var(--ps-border);
  color: var(--ps-text-muted); padding: 0 .6rem 0 .9rem; border-radius: 12px;
  cursor: pointer; font-size: .88rem; font-weight: 600;
  display: flex; align-items: center; gap: .55rem; transition: var(--transition);
}
.btn-search .ico { width: 18px; height: 18px }
.btn-search .kbd {
  margin-inline-start: auto; font-family: var(--ps-font-num); font-size: .7rem; font-weight: 700;
  color: var(--ps-text-muted); background: #fff; border: 1px solid var(--ps-border);
  border-radius: 6px; padding: 2px 6px; direction: ltr;
}
.btn-search:hover { background: var(--ps-primary-light); border-color: var(--ps-primary-border); color: var(--ps-primary); transform: translateY(-1px) }
.btn-cta-nav {
  height: 42px; padding: 0 18px; border-radius: 12px; border: none; cursor: pointer;
  background: var(--ps-grad-primary); color: #fff; font-weight: 800; font-size: .88rem;
  box-shadow: var(--ps-shadow-blue); display: inline-flex; align-items: center; gap: .45rem;
  transition: var(--transition); white-space: nowrap;
}
.btn-cta-nav:hover { transform: translateY(-2px); box-shadow: 0 8px 22px -2px rgba(14, 78, 217, .5) }
.btn-icon {
  background: transparent; border: none; color: var(--ps-text-primary);
  width: 42px; height: 42px; border-radius: 10px; cursor: pointer;
  display: none; align-items: center; justify-content: center; transition: var(--transition);
}
.btn-icon .ico { width: 24px; height: 24px }
.btn-icon:hover { color: var(--ps-primary); background: var(--ps-primary-light) }

/* ===== LAYOUT ===== */
#layout { display: flex; padding-top: var(--topbar-h) }

/* ===== SIDEBAR ===== */
#sidebar {
  position: fixed; top: var(--topbar-h); right: 0;
  width: var(--sidebar-w); height: calc(100vh - var(--topbar-h));
  background: #FFFFFF;
  border-left: 1px solid var(--ps-border);
  overflow-y: auto; padding: 1rem 0 2rem;
  transition: transform .35s var(--ps-ease);
  z-index: 900;
}
#sidebar::-webkit-scrollbar { width: 4px }
#sidebar::-webkit-scrollbar-thumb { border: none }
.sidebar-head {
  margin: 0 1rem .75rem; padding: .9rem 1rem; border-radius: var(--r-md);
  background: linear-gradient(135deg, #EFF6FF 0%, #F8FAFC 100%);
  border: 1px solid var(--ps-primary-soft);
  display: flex; align-items: center; gap: .75rem;
}
.sidebar-head .sh-ico {
  width: 38px; height: 38px; border-radius: 10px; background: var(--ps-grad-primary); color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--ps-shadow-blue);
}
.sidebar-head .sh-title { font-size: .85rem; font-weight: 800; color: var(--ps-text-primary); line-height: 1.3 }
.sidebar-head .sh-sub { font-size: .72rem; color: var(--ps-text-muted); font-weight: 600 }
.sidebar-head .sh-progress { height: 4px; background: var(--ps-border); border-radius: 4px; margin-top: .4rem; overflow: hidden }
.sidebar-head .sh-progress span { display: block; height: 100%; width: 0; background: var(--ps-grad-flow); border-radius: 4px; transition: width .2s }
.sidebar-label {
  font-size: .7rem; font-weight: 800; color: var(--ps-text-faint);
  letter-spacing: .06em; padding: .5rem 1.5rem .35rem; margin-top: .9rem;
  display: flex; align-items: center; gap: .5rem;
}
.sidebar-label::after { content: ''; flex: 1; height: 1px; background: var(--ps-border) }
.sidebar-item {
  display: flex; align-items: center; gap: .7rem;
  padding: .42rem .65rem; margin: 2px .75rem; cursor: pointer;
  font-size: .86rem; font-weight: 700; color: var(--ps-text-secondary);
  border-radius: 10px; border: 1.5px solid transparent;
  transition: all .2s var(--ps-ease); position: relative;
}
.sidebar-item .s-ico {
  width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--mod-bg); color: var(--mod); border: 1px solid var(--mod-border);
  transition: all .2s var(--ps-ease);
}
.sidebar-item .s-ico .ico { width: 16px; height: 16px }
.sidebar-item .s-icon { display: none }
.sidebar-item .s-label { flex: 1; line-height: 1.4 }
.sidebar-item .s-num {
  font-family: var(--ps-font-num); font-size: .68rem; font-weight: 700; color: var(--ps-text-faint);
  order: 3; margin-inline-start: auto;
}
.sidebar-item:hover { background: var(--ps-bg-subtle); color: var(--ps-primary) }
.sidebar-item:hover .s-ico { transform: scale(1.06) }
[dir="rtl"] .sidebar-item:hover { transform: translateX(-3px) }
.sidebar-item.active {
  background: var(--ps-primary-light); border-color: var(--ps-primary-border); color: var(--ps-primary);
  box-shadow: 0 4px 14px rgba(14, 78, 217, .1);
}
.sidebar-item.active .s-ico { background: var(--mod); color: #fff; border-color: var(--mod) }
.sidebar-item.active .s-num { color: var(--ps-primary) }

/* ===== MAIN ===== */
#main {
  margin-right: var(--sidebar-w);
  min-height: 100vh;
  width: calc(100% - var(--sidebar-w));
  max-width: calc(100% - var(--sidebar-w));
  overflow-x: hidden;
  box-sizing: border-box;
  background: var(--ps-bg-main);
}

/* ===== HERO (ProSafe Orbit Hero) ===== */
#hero {
  position: relative; min-height: calc(100vh - var(--topbar-h));
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: #FFFFFF; isolation: isolate;
}
.hero-grid-bg {
  position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(226, 232, 240, .7) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226, 232, 240, .7) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 30%, transparent 85%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 30%, transparent 85%);
}
.hero-glow {
  position: absolute; z-index: -1; border-radius: 50%; filter: blur(80px); pointer-events: none;
}
.hero-glow.g1 { width: 520px; height: 520px; left: 4%; top: 12%; background: rgba(21, 93, 252, .14) }
.hero-glow.g2 { width: 380px; height: 380px; right: 8%; bottom: 0; background: rgba(5, 150, 105, .09) }
.hero-watermark {
  position: absolute; z-index: -1; bottom: -6%; right: 50%; transform: translateX(50%);
  font-size: clamp(9rem, 22vw, 22rem); font-weight: 900; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(14, 78, 217, .07);
  white-space: nowrap; pointer-events: none; user-select: none; letter-spacing: -.02em;
}
.hero-content {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr 1fr;
  align-items: center; gap: 3rem; max-width: 1180px;
  padding: 3rem 2.5rem; width: 100%;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--ps-primary-light); border: 1.5px solid var(--ps-primary-border);
  color: var(--ps-primary); font-size: .82rem; font-weight: 800;
  padding: .4rem 1rem; border-radius: 999px; margin-bottom: 1.5rem;
}
.hero-kicker .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--ps-emerald);
  box-shadow: 0 0 0 0 rgba(5, 150, 105, .5); animation: ps-ping 1.8s infinite;
}
@keyframes ps-ping { 0% { box-shadow: 0 0 0 0 rgba(5, 150, 105, .55) } 80%, 100% { box-shadow: 0 0 0 8px rgba(5, 150, 105, 0) } }
.hero-title { font-weight: 900; line-height: 1.25; margin-bottom: 1.25rem; color: var(--ps-text-primary) }
.hero-title .t-top { display: block; font-size: clamp(2rem, 3.6vw, 3.3rem) }
.hero-title .t-hl {
  position: relative; display: inline-block; font-size: clamp(2.2rem, 4.2vw, 3.9rem);
  background: var(--ps-grad-primary); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; padding-bottom: .2rem;
}
.hero-title .t-hl svg { position: absolute; right: 0; left: 0; bottom: -.35rem; width: 100%; height: 18px }
.hero-title .t-hl svg path { stroke-dasharray: 360; stroke-dashoffset: 360; animation: ps-draw 1.4s .4s var(--ps-ease) forwards }
@keyframes ps-draw { to { stroke-dashoffset: 0 } }
.hero-title .t-sub { display: block; font-size: clamp(1.05rem, 1.6vw, 1.4rem); font-weight: 700; color: var(--ps-text-muted); margin-top: .9rem }
.hero-desc { font-size: 1.05rem; color: var(--ps-text-secondary); margin-bottom: 2rem; max-width: 520px; line-height: 1.9; font-weight: 500 }
.hero-btns { display: flex; gap: .9rem; flex-wrap: wrap }
.btn-primary {
  height: 52px; background: var(--ps-grad-primary);
  color: #fff; padding: 0 1.75rem; border-radius: 14px;
  font-weight: 800; font-size: .98rem; border: none; cursor: pointer;
  transition: var(--transition); box-shadow: var(--ps-shadow-blue);
  display: inline-flex; align-items: center; gap: .6rem;
}
.btn-primary .ico { transition: transform .25s var(--ps-ease) }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px -4px rgba(14, 78, 217, .55); background: linear-gradient(135deg, #1D4ED8 0%, #1E40AF 100%) }
.btn-primary:hover .ico { transform: translateX(-4px) }
.btn-secondary {
  height: 52px; background: #fff; border: 1.5px solid var(--ps-border);
  color: var(--ps-text-primary); padding: 0 1.5rem; border-radius: 14px;
  font-weight: 700; font-size: .95rem; cursor: pointer; transition: var(--transition);
  display: inline-flex; align-items: center; gap: .55rem; box-shadow: var(--ps-shadow-xs);
}
.btn-secondary .ico { color: var(--ps-primary) }
.btn-secondary:hover { border-color: var(--ps-primary-border); background: var(--ps-primary-light); color: var(--ps-primary); transform: translateY(-2px) }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; margin-top: 2.25rem; max-width: 540px }
.hero-stat {
  background: #fff; border: 1px solid var(--ps-border); border-radius: var(--r-lg);
  padding: .9rem 1rem; display: flex; align-items: center; gap: .75rem; box-shadow: var(--ps-shadow-sm);
  transition: var(--transition);
}
.hero-stat:hover { transform: translateY(-3px); box-shadow: var(--ps-shadow-md); border-color: var(--ps-primary-border) }
.hero-stat .hs-ico { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; flex-shrink: 0 }
.hero-stat .num { font-family: var(--ps-font-num); font-size: 1.4rem; font-weight: 800; color: var(--ps-text-primary); line-height: 1.1 }
.hero-stat .lbl { font-size: .74rem; color: var(--ps-text-muted); font-weight: 700 }

/* Orbit visual */
.hero-visual { display: flex; justify-content: center; align-items: center }
.orbit-stage { position: relative; width: 470px; height: 470px; max-width: 100% }
.orbit-ring {
  position: absolute; border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%, -50%);
  border: 1.5px dashed rgba(14, 78, 217, .16);
}
.orbit-ring.r1 { width: 36%; height: 36%; border-style: solid; border-color: rgba(14, 78, 217, .12); animation: ps-pulse-ring 4s ease-in-out infinite }
.orbit-ring.r2 { width: 64%; height: 64%; animation: ps-spin 60s linear infinite }
.orbit-ring.r3 { width: 92%; height: 92%; border-color: rgba(14, 78, 217, .1); animation: ps-spin 90s linear infinite reverse }
@keyframes ps-spin { to { transform: translate(-50%, -50%) rotate(360deg) } }
@keyframes ps-pulse-ring { 0%, 100% { box-shadow: 0 0 0 0 rgba(14, 78, 217, .08) } 50% { box-shadow: 0 0 0 18px rgba(14, 78, 217, 0) } }
.orbit-rays { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible }
.orbit-rays .ray { stroke: rgba(14, 78, 217, .25); stroke-width: 1.6; stroke-dasharray: 4 5 }
.orbit-rays .beam { stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 14 200; animation: ps-beam 2.6s linear infinite; opacity: .85 }
.orbit-rays .beam.is-active { stroke-width: 3; opacity: 1 }
@keyframes ps-beam { from { stroke-dashoffset: 214 } to { stroke-dashoffset: 0 } }
.orbit-hub {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 132px; height: 132px; border-radius: 50%; background: #fff;
  border: 1px solid var(--ps-primary-soft);
  box-shadow: 0 20px 50px -12px rgba(14, 78, 217, .35), 0 0 0 10px rgba(239, 246, 255, .9);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; z-index: 3;
}
.orbit-hub::before {
  content: ''; position: absolute; inset: -22px; border-radius: 50%;
  background: radial-gradient(circle, rgba(21, 93, 252, .18) 0%, transparent 70%); z-index: -1;
  animation: ps-glow 3s ease-in-out infinite;
}
@keyframes ps-glow { 0%, 100% { opacity: .6; transform: scale(1) } 50% { opacity: 1; transform: scale(1.08) } }
.orbit-hub svg.emblem { width: 52px; height: 52px; filter: drop-shadow(0 6px 12px rgba(14, 78, 217, .3)) }
.orbit-hub .hub-label { font-family: var(--ps-font-num); font-weight: 800; font-size: .95rem; color: var(--ps-text-primary); letter-spacing: -.01em }
.orbit-node {
  position: absolute; transform: translate(-50%, -50%); z-index: 4; cursor: pointer;
  animation: ps-float 5s ease-in-out infinite;
}
@keyframes ps-float { 0%, 100% { margin-top: 0 } 50% { margin-top: -8px } }
.orbit-node .on-card {
  width: 58px; height: 58px; border-radius: 18px; background: #fff;
  border: 1.5px solid var(--node-border); box-shadow: var(--ps-shadow-md);
  display: flex; align-items: center; justify-content: center; transition: all .3s var(--ps-ease);
}
.orbit-node .on-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--node-bg); color: var(--node); display: flex; align-items: center; justify-content: center }
.orbit-node .on-ico .ico { width: 21px; height: 21px; stroke-width: 2.2 }
.orbit-node .on-tip {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 4px);
  background: #fff; border: 1px solid var(--ps-border); border-radius: 999px;
  padding: .3rem .8rem; font-size: .76rem; font-weight: 800; color: var(--ps-text-primary);
  white-space: nowrap; box-shadow: var(--ps-shadow-md); display: flex; align-items: center; gap: .4rem;
  opacity: 0; pointer-events: none; transition: all .25s var(--ps-ease);
}
.orbit-node .on-tip i { width: 7px; height: 7px; border-radius: 50%; background: var(--node) }
.orbit-node:hover .on-card, .orbit-node.is-active .on-card {
  transform: scale(1.12); border-color: var(--node); box-shadow: 0 14px 30px -8px var(--node-shadow);
}
.orbit-node:hover .on-tip, .orbit-node.is-active .on-tip { opacity: 1; transform: translate(-50%, 0) }

/* ===== MODULE BANNER (section divider) ===== */
.section-divider {
  position: relative; overflow: hidden;
  padding: 3.25rem 3rem 2.25rem;
  background:
    radial-gradient(ellipse 60% 120% at 100% 0%, var(--mod-bg) 0%, transparent 60%),
    linear-gradient(180deg, var(--ps-bg-subtle) 0%, #FFFFFF 100%);
  border-top: 1px solid var(--ps-border);
}
.section-divider::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(148, 163, 184, .25) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(270deg, #000 0%, transparent 55%);
  mask-image: linear-gradient(270deg, #000 0%, transparent 55%);
}
.mod-watermark {
  position: absolute; left: 2rem; top: 50%; transform: translateY(-50%);
  font-family: var(--ps-font-num); font-size: 9rem; font-weight: 900; line-height: 1;
  color: transparent; -webkit-text-stroke: 2px var(--mod-border); opacity: .9;
  pointer-events: none; user-select: none;
}
.mod-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  z-index: 2;
  flex-wrap: wrap;
}
.mod-icon {
  width: 68px; height: 68px; border-radius: 20px; flex-shrink: 0;
  background: #fff; border: 1.5px solid var(--mod-border);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px -10px var(--mod-shadow, rgba(14, 78, 217, .35));
}
.mod-icon span {
  width: 50px; height: 50px; border-radius: 14px; background: var(--mod-bg); color: var(--mod);
  display: flex; align-items: center; justify-content: center;
}
.mod-icon .ico { width: 26px; height: 26px; stroke-width: 2.1 }
.mod-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  background: #fff; border: 1.5px solid var(--mod-border); color: var(--mod);
  border-radius: 999px; padding: .15rem .75rem; font-size: .74rem; font-weight: 800; margin-bottom: .35rem;
}
.mod-pill b { font-family: var(--ps-font-num); font-weight: 800 }
.section-divider h2 { font-size: 1.75rem; font-weight: 900; color: var(--ps-text-primary); margin-bottom: .2rem }
.section-divider p { color: var(--ps-text-muted); font-size: .95rem; font-weight: 600 }
.section-divider > .section-num { display: none }

/* Mini workflow inside module banner */
.mod-flow {
  position: relative; margin-top: 1.75rem;
  display: flex; align-items: stretch; gap: 0; overflow-x: auto; padding: .25rem .1rem .5rem;
  scrollbar-width: none;
}
.mod-flow::-webkit-scrollbar { display: none }
.mf-step {
  position: relative; flex: 1 1 0; min-width: 150px;
  display: flex; align-items: center; gap: .6rem; cursor: pointer;
  padding: .6rem .8rem; margin-inline-end: 34px;
  background: #fff; border: 1.5px solid var(--ps-border); border-radius: 12px;
  font-size: .82rem; font-weight: 700; color: var(--ps-text-secondary);
  transition: all .25s var(--ps-ease); box-shadow: var(--ps-shadow-xs);
}
.mf-step:last-child { margin-inline-end: 0 }
.mf-step .mf-num {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  background: var(--mod-bg); color: var(--mod); border: 1px solid var(--mod-border);
  font-family: var(--ps-font-num); font-size: .72rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; transition: all .25s var(--ps-ease);
}
.mf-step .mf-txt { line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.mf-step::after {
  content: ''; position: absolute; top: 50%; left: -34px; width: 34px; height: 2px;
  background: repeating-linear-gradient(270deg, var(--mod-border) 0 5px, transparent 5px 9px);
}
.mf-step::before {
  content: ''; position: absolute; top: calc(50% - 4px); left: -8px; z-index: 1;
  border: 4px solid transparent; border-right-color: var(--mod); opacity: .55;
}
.mf-step:last-child::after, .mf-step:last-child::before { display: none }
.mf-step:hover { border-color: var(--mod); color: var(--mod); transform: translateY(-2px); box-shadow: var(--ps-shadow-md) }
.mf-step:hover .mf-num { background: var(--mod); color: #fff; border-color: var(--mod) }
.mf-step.is-done .mf-num { background: var(--ps-emerald); color: #fff; border-color: var(--ps-emerald) }
.mf-step.is-done::after { background: var(--ps-emerald); opacity: .5 }

/* ===== SECTIONS ===== */
.guide-section { padding: 3.5rem 3rem 4.5rem; position: relative; background: #fff }
.section-header { margin-bottom: 2.5rem; max-width: 820px }
.section-kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--mod-bg); border: 1.5px solid var(--mod-border); color: var(--mod);
  font-size: .78rem; font-weight: 800; border-radius: 999px;
  padding: .3rem .9rem; margin-bottom: 1rem;
}
.section-kicker::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--mod) }
.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: .85rem;
}
.section-title-row .section-title { margin-bottom: 0 }
.btn-section-more {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .5rem 1.25rem;
  background: #ffffff;
  color: var(--mod, #0E4ED9) !important;
  border: 1.5px solid var(--mod-border, #DBEAFE);
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 800;
  text-decoration: none;
  transition: all .25s var(--ps-ease);
  box-shadow: 0 4px 14px -3px var(--mod-shadow, rgba(14, 78, 217, .22));
  white-space: nowrap;
  position: relative;
  z-index: 3;
  margin-inline-start: auto;
  backdrop-filter: blur(8px);
}
.btn-section-more:hover {
  background: var(--mod, #0E4ED9);
  color: #fff !important;
  border-color: var(--mod, #0E4ED9);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -4px var(--mod-shadow, rgba(14, 78, 217, .45));
}
.btn-section-more .ico {
  width: 17px;
  height: 17px;
  transition: transform .25s var(--ps-ease);
}
[dir="rtl"] .btn-section-more:hover .ico {
  transform: translateX(-4px);
}
@media (max-width: 640px) {
  .mod-head .btn-section-more {
    margin-inline-start: 0;
    width: 100%;
    justify-content: center;
    margin-top: .4rem;
  }
}
.section-title em { font-style: normal; color: var(--ps-primary); position: relative; white-space: nowrap }
.section-title em::after {
  content: ''; position: absolute; right: 0; left: 0; bottom: .05em; height: .32em; z-index: -1;
  background: var(--ps-primary-soft); border-radius: 4px; opacity: .8;
}
.section-lead { font-size: 1.06rem; color: var(--ps-text-muted); max-width: 760px; line-height: 1.9; font-weight: 500 }
.guide-section h3 { color: var(--ps-text-primary); font-weight: 800 !important; display: flex; align-items: center; gap: .55rem }
.guide-section h3::before {
  content: ''; width: 4px; height: 1.1em; border-radius: 4px; background: var(--mod); flex-shrink: 0;
}
.guide-section p { color: var(--ps-text-secondary) }

/* ===== SCREEN SHOWCASE ===== */
.screen-showcase { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; margin: 2rem 0; max-width: 100%; overflow: hidden; }
.screen-showcase.reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) }
.screen-frame {
  background: #fff; border: 1px solid var(--ps-border);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--ps-shadow-lg);
  position: relative; transition: transform .35s var(--ps-ease), box-shadow .35s var(--ps-ease);
  cursor: zoom-in;
}
.screen-frame:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -15px rgba(15, 23, 42, .25) }
.screen-titlebar {
  background: var(--ps-bg-subtle); padding: .6rem 1rem;
  display: flex; align-items: center; gap: .45rem;
  border-bottom: 1px solid var(--ps-border); direction: ltr;
}
.screen-dot { width: 11px; height: 11px; border-radius: 50% }
.screen-dot:nth-child(1) { background: #FF5F57 }
.screen-dot:nth-child(2) { background: #FEBC2E }
.screen-dot:nth-child(3) { background: #28C840 }
.screen-url {
  flex: 1; margin: 0 .75rem; text-align: center; direction: ltr;
  font-size: .72rem; color: var(--ps-text-muted); font-family: var(--ps-font-mono);
  background: #fff; border: 1px solid var(--ps-border); border-radius: 8px; padding: .2rem .75rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.screen-url::before { content: '🔒 '; filter: grayscale(1); opacity: .6 }
.screen-img { width: 100%; display: block }
.screen-zoom {
  position: absolute; bottom: 14px; left: 14px; z-index: 2;
  background: rgba(15, 23, 42, .78); color: #fff; backdrop-filter: blur(6px);
  border-radius: 10px; padding: .35rem .7rem; font-size: .75rem; font-weight: 700;
  display: flex; align-items: center; gap: .35rem; opacity: 0; transform: translateY(6px);
  transition: all .25s var(--ps-ease); pointer-events: none;
}
.screen-frame:hover .screen-zoom { opacity: 1; transform: none }
.screen-info { display: flex; flex-direction: column; gap: 1.25rem }

/* ===== STEPS (vertical workflow timeline) ===== */
.steps-list { list-style: none; padding: 0; margin: 0; counter-reset: step; position: relative }
.steps-list li {
  position: relative; display: block;
  padding: .85rem 1.1rem .85rem 1rem; padding-right: 3.85rem; margin-bottom: .65rem;
  background: #fff; border: 1px solid var(--ps-border); border-radius: var(--r-md);
  color: var(--ps-text-secondary); font-weight: 600; line-height: 1.75;
  counter-increment: step; transition: all .3s var(--ps-ease); box-shadow: var(--ps-shadow-xs);
}
.steps-list li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; right: .85rem; top: .7rem; z-index: 2;
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--mod-bg); color: var(--mod); border: 1.5px solid var(--mod-border);
  font-family: var(--ps-font-num); font-weight: 800; font-size: .78rem;
  display: flex; align-items: center; justify-content: center;
  transition: all .3s var(--ps-ease);
}
.steps-list li::after {
  content: ''; position: absolute; right: calc(.85rem + 16px); top: calc(.7rem + 34px);
  width: 2px; height: calc(100% - 34px + .65rem);
  background: repeating-linear-gradient(180deg, var(--mod-border) 0 5px, transparent 5px 9px);
  z-index: 1; transition: background .3s;
}
.steps-list li:last-child::after { display: none }
.steps-list li:hover { border-color: var(--mod-border); box-shadow: var(--ps-shadow-md) }
[dir="rtl"] .steps-list li:hover { transform: translateX(-4px) }
.steps-list li.is-done::before { content: '✓'; background: var(--ps-emerald); color: #fff; border-color: var(--ps-emerald); font-size: .95rem }
.steps-list li.is-done::after { background: var(--ps-emerald); opacity: .55 }
.steps-list li.is-active { border-color: var(--mod); box-shadow: 0 10px 26px -10px var(--mod-shadow, rgba(14, 78, 217, .35)) }
.steps-list li.is-active::before {
  background: var(--mod); color: #fff; border-color: var(--mod);
  animation: ps-step-pulse 1.8s infinite;
}
@keyframes ps-step-pulse { 0% { box-shadow: 0 0 0 0 var(--mod-shadow, rgba(14, 78, 217, .45)) } 80%, 100% { box-shadow: 0 0 0 9px rgba(14, 78, 217, 0) } }

/* ===== CALLOUTS ===== */
.callout {
  padding: 1rem 1.15rem 1rem 1.15rem; border-radius: var(--r-md);
  border: 1px solid; border-right-width: 4px; margin: 1.25rem 0;
  font-size: .93rem; line-height: 1.8; color: var(--ps-text-secondary); font-weight: 500;
}
.callout strong { display: flex; align-items: center; gap: .5rem; margin-bottom: .3rem; font-size: .97rem; font-weight: 800 }
.callout .c-ico { width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0 }
.callout .c-ico .ico { width: 16px; height: 16px; stroke-width: 2.3 }
.callout.warn { background: #FFFBEB; border-color: #FDE68A; border-right-color: #D97706 }
.callout.warn strong { color: #92400E } .callout.warn .c-ico { background: #FEF3C7; color: #D97706 }
.callout.info { background: #EFF6FF; border-color: #DBEAFE; border-right-color: #0E4ED9 }
.callout.info strong { color: #1E40AF } .callout.info .c-ico { background: #DBEAFE; color: #0E4ED9 }
.callout.ok { background: #ECFDF5; border-color: #A7F3D0; border-right-color: #059669 }
.callout.ok strong { color: #065F46 } .callout.ok .c-ico { background: #D1FAE5; color: #059669 }
.callout.danger { background: #FEF2F2; border-color: #FECACA; border-right-color: #DC2626 }
.callout.danger strong { color: #991B1B } .callout.danger .c-ico { background: #FEE2E2; color: #DC2626 }

/* ===== ICON BOXES (shared) ===== */
.role-icon, .feature-icon, .card-icon, .mc-icon, .kpi-ico {
  width: 46px; height: 46px; border-radius: 13px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--mod-bg); color: var(--mod); border: 1.5px solid var(--mod-border);
  font-size: 1.2rem; transition: all .3s var(--ps-ease);
}
.role-icon .ico, .feature-icon .ico, .card-icon .ico, .mc-icon .ico, .kpi-ico .ico { width: 22px; height: 22px; stroke-width: 2.1 }

/* ===== CARDS GRID ===== */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin: 1.5rem 0 }
.info-card {
  background: #fff; border: 1px solid var(--ps-border);
  border-radius: var(--r-lg); padding: 1.35rem;
  transition: all .3s var(--ps-ease); position: relative; overflow: hidden; box-shadow: var(--ps-shadow-xs);
}
.info-card:hover { transform: translateY(-4px); border-color: var(--mod-border); box-shadow: var(--ps-shadow-md) }
.info-card:hover .card-icon { background: var(--mod); color: #fff; border-color: var(--mod) }
.card-icon { margin-bottom: .85rem }
.card-title { font-size: 1rem; font-weight: 800; margin-bottom: .4rem; color: var(--ps-text-primary) }
.card-desc { font-size: .86rem; color: var(--ps-text-muted); line-height: 1.75; font-weight: 500 }
.info-card .chip { margin-top: .6rem }
.card-tag {
  display: inline-flex; align-items: center; margin-top: .85rem;
  font-size: .72rem; font-weight: 800; color: var(--mod);
  background: var(--mod-bg); border: 1px solid var(--mod-border);
  padding: .2rem .65rem; border-radius: 999px;
}
.cards-grid[style*="1fr"] .info-card { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: start; padding: 1rem 1.1rem }
.cards-grid[style*="1fr"] .info-card .card-icon { grid-row: span 3; margin-bottom: 0 }

/* ===== WORKFLOW (legacy inline) ===== */
.workflow {
  display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0; padding: 1.25rem;
  background: #fff; border: 1px solid var(--ps-border); border-radius: var(--r-lg);
}
.wf-step { background: var(--ps-bg-subtle); border: 1.5px solid var(--ps-border); border-radius: 10px; padding: .45rem 1rem; font-size: .85rem; font-weight: 700 }
.wf-arrow { color: var(--ps-text-faint) }

/* ===== WORKFLOW STEPPER (horizontal) ===== */
.wf-stages {
  display: flex; gap: 0; overflow-x: auto;
  padding: 1.75rem 1rem 1.35rem; margin: .5rem 0;
  background:
    radial-gradient(ellipse 80% 100% at 50% 0%, var(--ps-bg-subtle) 0%, #fff 70%);
  border: 1px solid var(--ps-border); border-radius: var(--r-xl);
  counter-reset: wf; scrollbar-width: thin; box-shadow: var(--ps-shadow-sm);
}
.wf-stage {
  --st: #64748B; --st-bg: #F1F5F9; --st-border: #E2E8F0;
  flex: 1 0 128px; position: relative; text-align: center;
  padding: 0 .4rem; counter-increment: wf; cursor: default;
}
.wf-stage.s1 { --st: #64748B; --st-bg: #F1F5F9; --st-border: #CBD5E1 }
.wf-stage.s2 { --st: #D97706; --st-bg: #FFFBEB; --st-border: #FDE68A }
.wf-stage.s3 { --st: #0E4ED9; --st-bg: #EFF6FF; --st-border: #BFDBFE }
.wf-stage.s4 { --st: #4F46E5; --st-bg: #EEF2FF; --st-border: #C7D2FE }
.wf-stage.s5 { --st: #059669; --st-bg: #ECFDF5; --st-border: #A7F3D0 }
.wf-stage.s6 { --st: #334155; --st-bg: #F1F5F9; --st-border: #CBD5E1 }
.wf-stage-icon {
  width: 54px; height: 54px; margin: 0 auto .8rem; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; color: var(--st); border: 1.5px solid var(--st-border);
  position: relative; z-index: 2; box-shadow: var(--ps-shadow-sm);
  transition: all .3s var(--ps-ease);
}
.wf-stage-icon::before {
  content: ''; position: absolute; inset: 5px; border-radius: 11px; background: var(--st-bg); z-index: -1;
}
.wf-stage-icon .ico { width: 22px; height: 22px; stroke-width: 2.2 }
.wf-stage::before {
  content: ''; position: absolute; top: 26px; right: calc(50% + 32px); width: calc(100% - 64px); height: 2px;
  background: repeating-linear-gradient(270deg, var(--ps-border-strong) 0 5px, transparent 5px 9px);
  z-index: 1;
}
.wf-stage::after {
  content: ''; position: absolute; top: 25px; right: calc(50% + 32px); width: calc(100% - 64px); height: 4px;
  background: linear-gradient(270deg, transparent 0%, var(--st) 50%, transparent 100%);
  background-size: 40% 100%; background-repeat: no-repeat;
  animation: ps-flow 2.4s linear infinite; opacity: .7; border-radius: 4px; z-index: 1;
}
@keyframes ps-flow { from { background-position: 130% 0 } to { background-position: -30% 0 } }
.wf-stage:last-child::before, .wf-stage:last-child::after { display: none }
.wf-stage-name { font-size: .86rem; font-weight: 800; color: var(--ps-text-primary); line-height: 1.4 }
.wf-stage-name::before {
  content: counter(wf, decimal-leading-zero); display: block;
  font-family: var(--ps-font-num); font-size: .66rem; font-weight: 800; letter-spacing: .1em;
  color: var(--st); margin-bottom: .15rem;
}
.wf-stage-desc { font-size: .74rem; color: var(--ps-text-muted); margin-top: .25rem; font-weight: 600; line-height: 1.5 }
.wf-stage:hover .wf-stage-icon { transform: translateY(-4px) scale(1.06); border-color: var(--st); box-shadow: 0 12px 24px -10px var(--st) }
.wf-stage:hover .wf-stage-icon::before { background: var(--st) }
.wf-stage:hover .wf-stage-icon { color: #fff }

/* Vertical workflow list */
.wf-vlist { display: flex; flex-direction: column; gap: .55rem; position: relative; counter-reset: wfv }
.wf-vlist .wf-stage {
  display: flex; align-items: center; gap: .85rem; text-align: right;
  padding: .7rem .95rem; background: #fff; border: 1px solid var(--ps-border);
  border-right: 3px solid var(--st); border-radius: var(--r-md);
  flex: none; box-shadow: var(--ps-shadow-xs); transition: all .25s var(--ps-ease);
}
.wf-vlist .wf-stage::before, .wf-vlist .wf-stage::after { display: none }
.wf-vlist .wf-stage:hover { transform: translateX(-4px); box-shadow: var(--ps-shadow-md) }
.wf-vlist .wf-ico {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--st-bg); color: var(--st); border: 1px solid var(--st-border);
  font-family: var(--ps-font-num); font-weight: 800; font-size: .8rem;
}
.wf-vlist .wf-ico .ico { width: 18px; height: 18px }
.wf-vlist .wf-stage-name::before { display: none }
.wf-vlist .wf-txt { font-size: .88rem; font-weight: 700; color: var(--ps-text-secondary) }

/* ===== RISK MATRIX ===== */
.risk-matrix-wrap { margin: 2rem 0 }
.risk-matrix {
  display: grid; grid-template-columns: 40px repeat(5, 1fr); grid-template-rows: repeat(5, 1fr) 40px;
  gap: 5px; max-width: 480px; aspect-ratio: 1;
  background: #fff; border: 1px solid var(--ps-border); border-radius: var(--r-lg); padding: 12px; box-shadow: var(--ps-shadow-sm);
}
.rm-cell {
  display: flex; align-items: center; justify-content: center; border-radius: 9px;
  font-family: var(--ps-font-num); font-size: .82rem; font-weight: 800; color: #fff;
  cursor: pointer; transition: all .25s var(--ps-ease); position: relative;
}
.rm-cell:hover { transform: scale(1.12); z-index: 10; box-shadow: 0 10px 24px -6px rgba(15, 23, 42, .35) }
.rm-low { background: #10B981 }
.rm-med { background: #F59E0B }
.rm-high { background: #F97316 }
.rm-crit { background: #DC2626 }
.rm-label { background: transparent !important; color: var(--ps-text-muted) !important; font-size: .75rem }
.rm-label:hover { transform: none; box-shadow: none }
.rm-axis-y { writing-mode: vertical-rl; transform: rotate(180deg); color: var(--ps-text-muted); font-size: .76rem; font-weight: 800; grid-row: 1/6; grid-column: 1; text-align: center }
.rm-axis-x { color: var(--ps-text-muted); font-family: var(--ps-font-num); font-size: .78rem; font-weight: 800; grid-row: 6; display: flex; align-items: center; justify-content: center }
.risk-matrix-legend { display: flex; gap: 1rem; margin-top: 1rem; flex-wrap: wrap }
.rm-legend-item { display: flex; align-items: center; gap: .45rem; font-size: .82rem; color: var(--ps-text-secondary); font-weight: 700 }
.rm-legend-dot { width: 12px; height: 12px; border-radius: 4px }
.rm-legend-item:nth-child(1) .rm-legend-dot { background: #10B981 !important }
.rm-legend-item:nth-child(2) .rm-legend-dot { background: #F59E0B !important }
.rm-legend-item:nth-child(3) .rm-legend-dot { background: #F97316 !important }
.rm-legend-item:nth-child(4) .rm-legend-dot { background: #DC2626 !important }
.rm-tooltip {
  position: absolute; bottom: calc(100% + 8px); right: 50%; transform: translateX(50%);
  background: var(--ps-navy); color: #fff; padding: .45rem .75rem; border-radius: 8px;
  font-family: var(--ps-font); font-size: .74rem; font-weight: 700;
  white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .2s; z-index: 20;
  box-shadow: var(--ps-shadow-md);
}
.rm-cell:hover .rm-tooltip { opacity: 1 }

/* ===== TABLE ===== */
.guide-table {
  width: 100%; border-collapse: separate; border-spacing: 0; margin: 1.25rem 0;
  font-size: .9rem; background: #fff; border: 1px solid var(--ps-border); border-radius: var(--r-md);
  overflow: hidden; box-shadow: var(--ps-shadow-xs);
}
.guide-table th {
  background: var(--ps-bg-subtle); color: var(--ps-text-primary);
  padding: .8rem 1rem; text-align: right; font-weight: 800; font-size: .84rem;
  border-bottom: 1px solid var(--ps-border);
}
.guide-table td { padding: .75rem 1rem; border-bottom: 1px solid var(--ps-bg-elevated); color: var(--ps-text-secondary); font-weight: 500 }
.guide-table tr:last-child td { border-bottom: none }
.guide-table tbody tr { transition: background .2s }
.guide-table tbody tr:hover td { background: var(--ps-primary-light) }
.chip {
  display: inline-flex; align-items: center; gap: .3rem; font-size: .74rem; font-weight: 600;
  padding: .18rem .6rem; border-radius: 7px;
  background: var(--ps-primary-light); color: var(--ps-primary); border: 1px solid var(--ps-primary-soft);
  font-family: var(--ps-font-mono); white-space: nowrap; direction: ltr; unicode-bidi: isolate;
}
.chip .ico { width: 13px; height: 13px }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: .7rem; max-width: 920px }
.faq-item {
  background: #fff; border: 1px solid var(--ps-border); border-radius: var(--r-md);
  overflow: hidden; transition: all .25s var(--ps-ease); box-shadow: var(--ps-shadow-xs);
}
.faq-item:hover { border-color: var(--ps-primary-border) }
.faq-item.open { border-color: var(--ps-primary-border); box-shadow: 0 10px 26px -12px rgba(14, 78, 217, .3) }
.faq-q {
  padding: 1rem 1.25rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-weight: 800; font-size: .96rem; color: var(--ps-text-primary); transition: color .2s; user-select: none;
}
.faq-q:hover { color: var(--ps-primary) }
.faq-q .faq-icon {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--ps-primary-light); color: var(--ps-primary); font-size: 1.1rem; font-weight: 700;
  transition: transform .3s var(--ps-ease), background .2s;
}
.faq-item.open .faq-q .faq-icon { transform: rotate(45deg); background: var(--ps-primary); color: #fff }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height .4s var(--ps-ease), padding .3s;
  font-size: .92rem; color: var(--ps-text-secondary); padding: 0 1.25rem; line-height: 1.9; font-weight: 500;
}
.faq-item.open .faq-a { max-height: 500px; padding: 0 1.25rem 1.25rem }
.faq-a span[style*="monospace"] { background: var(--ps-primary-light) !important; color: var(--ps-primary); border: 1px solid var(--ps-primary-soft) }

/* ===== ROLE CARDS ===== */
.role-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin: 1.5rem 0 }
.role-card {
  background: #fff; border: 1px solid var(--ps-border); border-radius: var(--r-lg); padding: 1.5rem 1.35rem;
  transition: all .3s var(--ps-ease); position: relative; overflow: hidden; box-shadow: var(--ps-shadow-xs);
}
.role-card::after { content: ''; position: absolute; top: 0; right: 0; left: 0; height: 3px; background: var(--ps-grad-primary); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ps-ease) }
.role-card:hover { transform: translateY(-5px); border-color: var(--ps-primary-border); box-shadow: var(--ps-shadow-md) }
.role-card:hover::after { transform: scaleX(1) }
.role-card:hover .role-icon { background: var(--mod); color: #fff; border-color: var(--mod) }
.role-icon { margin-bottom: 1rem; width: 52px; height: 52px }
.role-name { font-size: 1.02rem; font-weight: 800; margin-bottom: .45rem; color: var(--ps-text-primary) }
.role-desc { font-size: .85rem; color: var(--ps-text-muted); line-height: 1.8; font-weight: 500 }

/* ===== KPI CARDS ===== */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; margin: 1.5rem 0 }
.kpi-card {
  background: #fff; border: 1px solid var(--ps-border); border-radius: var(--r-lg); padding: 1.25rem;
  transition: all .3s var(--ps-ease); position: relative; overflow: hidden; box-shadow: var(--ps-shadow-xs);
  display: flex; flex-direction: column; gap: .2rem;
}
.kpi-card::after { content: ''; position: absolute; bottom: 0; right: 0; left: 0; height: 3px; background: var(--kpi, var(--ps-primary)); opacity: .9 }
.kpi-card:hover { transform: translateY(-4px); box-shadow: var(--ps-shadow-md); border-color: var(--ps-primary-border) }
.kpi-ico { width: 40px; height: 40px; border-radius: 11px; margin-bottom: .6rem; background: var(--kpi-bg, var(--ps-primary-light)); color: var(--kpi, var(--ps-primary)); border-color: var(--kpi-border, var(--ps-primary-soft)) }
.kpi-ico .ico { width: 20px; height: 20px }
.kpi-num { font-family: var(--ps-font-num); font-size: 2.1rem; font-weight: 800; color: var(--ps-text-primary); display: block; line-height: 1.1; letter-spacing: -.02em }
.kpi-label { font-size: .82rem; color: var(--ps-text-muted); margin-top: .25rem; font-weight: 700 }
.kpi-status {
  align-self: flex-start; font-size: .72rem; margin-top: .55rem; font-weight: 800;
  padding: .15rem .6rem; border-radius: 999px; display: inline-flex; align-items: center; gap: .3rem;
}
.kpi-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor }
.kpi-status.warn { color: #B45309; background: #FFFBEB }
.kpi-status.danger { color: #B91C1C; background: #FEF2F2 }
.kpi-status.ok { color: #047857; background: #ECFDF5 }

/* ===== TIMELINE ===== */
.timeline { position: relative; padding-right: 2.6rem }
.timeline::before {
  content: ''; position: absolute; right: 1rem; top: 1.25rem; bottom: 1.25rem; width: 2px;
  background: linear-gradient(180deg, var(--mod) 0%, var(--ps-emerald) 100%); opacity: .35; border-radius: 2px;
}
.tl-item {
  position: relative; padding: 1rem 1.2rem; margin-bottom: .75rem;
  background: #fff; border: 1px solid var(--ps-border); border-radius: var(--r-md);
  transition: all .3s var(--ps-ease); box-shadow: var(--ps-shadow-xs);
}
.tl-item:hover { border-color: var(--mod-border); box-shadow: var(--ps-shadow-md); transform: translateX(-4px) }
.tl-item::before {
  content: attr(data-num); position: absolute; right: -2.6rem; top: 1rem;
  width: 30px; height: 30px; border-radius: 9px;
  background: #fff; color: var(--mod); border: 1.5px solid var(--mod-border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ps-font-num); font-size: .78rem; font-weight: 800; z-index: 2; box-shadow: var(--ps-shadow-sm);
  transition: all .3s var(--ps-ease);
}
.tl-item:hover::before { background: var(--mod); color: #fff; border-color: var(--mod) }
.tl-title { font-weight: 800; font-size: .95rem; margin-bottom: .3rem; color: var(--ps-text-primary) }
.tl-desc { font-size: .86rem; color: var(--ps-text-muted); line-height: 1.75; font-weight: 500 }

/* ===== FEATURES GRID ===== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.5rem 0 }
.feature-item {
  display: flex; gap: .95rem; align-items: flex-start; padding: 1.1rem;
  background: #fff; border: 1px solid var(--ps-border); border-radius: var(--r-md);
  transition: all .3s var(--ps-ease); box-shadow: var(--ps-shadow-xs);
}
.feature-item:hover { border-color: var(--mod-border); transform: translateY(-3px); box-shadow: var(--ps-shadow-md) }
.feature-item:hover .feature-icon { background: var(--mod); color: #fff; border-color: var(--mod) }
.feature-icon { width: 42px; height: 42px; border-radius: 12px }
.feature-icon .ico { width: 20px; height: 20px }
.feature-text .ft-title { font-size: .93rem; font-weight: 800; margin-bottom: .25rem; color: var(--ps-text-primary) }
.feature-text .ft-desc { font-size: .83rem; color: var(--ps-text-muted); line-height: 1.75; font-weight: 500 }

/* ===== MODULE CARDS ===== */
.modules-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem }
.module-card { background: #fff; border: 1px solid var(--ps-border); border-radius: var(--r-lg); padding: 1.25rem; transition: all .3s var(--ps-ease); cursor: pointer; display: block }
.module-card:hover { border-color: var(--ps-primary-border); transform: translateY(-4px); box-shadow: var(--ps-shadow-md) }
.mc-icon { margin-bottom: .6rem }
.mc-num { font-family: var(--ps-font-num); font-size: .7rem; color: var(--ps-text-faint); font-weight: 800 }
.mc-title { font-size: .92rem; font-weight: 800; margin-bottom: .3rem; color: var(--ps-text-primary) }
.mc-desc { font-size: .8rem; color: var(--ps-text-muted); line-height: 1.6 }

/* ===== PATH BADGE ===== */
.path-badge { display: inline-flex; align-items: center; gap: .35rem; background: var(--ps-primary-light); border: 1px solid var(--ps-primary-soft); color: var(--ps-primary); font-size: .75rem; font-family: var(--ps-font-mono); padding: .25rem .6rem; border-radius: 7px; margin: .15rem .1rem; white-space: nowrap }

/* ===== REVEAL ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ps-ease), transform .7s var(--ps-ease) }
.reveal.visible { opacity: 1; transform: none }
.reveal-left { opacity: 0; transform: translateX(24px); transition: opacity .7s var(--ps-ease), transform .7s var(--ps-ease) }
.reveal-left.visible { opacity: 1; transform: none }

/* ===== FOOTER (dark, as prosafe.sa) ===== */
#footer {
  position: relative; overflow: hidden;
  background: #0F172A; color: #CBD5E1; padding: 3.5rem 3rem 1.5rem;
}
#footer::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 50% 80% at 85% 0%, rgba(21, 93, 252, .22) 0%, transparent 60%),
              radial-gradient(ellipse 40% 60% at 10% 100%, rgba(5, 150, 105, .12) 0%, transparent 60%);
}
.footer-grid { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; max-width: 1100px }
.footer-logo img { height: 44px; width: auto; margin-bottom: 1rem }
.footer-about { font-size: .88rem; line-height: 1.9; color: #94A3B8; max-width: 360px; font-weight: 500 }
.footer-col h4 { color: #fff; font-size: .95rem; font-weight: 800; margin-bottom: 1rem }
.footer-links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .5rem }
.footer-links li { margin: 0 }
.footer-links a, .footer-links button {
  background: none; border: none; color: #94A3B8; font-size: .87rem; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: .5rem; transition: all .2s var(--ps-ease); padding: 0;
}
.footer-links .ico { width: 16px; height: 16px; color: #60A5FA }
.footer-links a:hover, .footer-links button:hover { color: #fff; transform: translateX(-3px) }
.footer-bottom {
  position: relative; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(148, 163, 184, .15);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  font-size: .8rem; color: #64748B; font-weight: 600;
}
.footer-top-btn {
  width: 42px; height: 42px; border-radius: 12px; border: 1px solid rgba(148, 163, 184, .25);
  background: rgba(255, 255, 255, .04); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all .25s var(--ps-ease);
}
.footer-top-btn:hover { background: var(--ps-primary); border-color: var(--ps-primary); transform: translateY(-3px) }

/* Floating back-to-top */
#to-top {
  position: fixed; left: 24px; bottom: 24px; z-index: 950;
  width: 48px; height: 48px; border-radius: 14px; border: none; cursor: pointer;
  background: var(--ps-grad-primary); color: #fff; box-shadow: var(--ps-shadow-blue);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; transition: all .3s var(--ps-ease);
}
#to-top.show { opacity: 1; transform: none; pointer-events: auto }
#to-top:hover { transform: translateY(-3px) }

/* ===== SEARCH OVERLAY ===== */
#search-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(15, 23, 42, .45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: none; align-items: flex-start; justify-content: center; padding-top: 12vh;
}
#search-overlay.open { display: flex; animation: ps-fade .2s ease }
@keyframes ps-fade { from { opacity: 0 } to { opacity: 1 } }
.search-box {
  background: #fff; border: 1px solid var(--ps-border); border-radius: var(--r-xl);
  width: 100%; max-width: 620px; box-shadow: var(--ps-shadow-lg); overflow: hidden;
  animation: ps-pop .3s var(--ps-ease);
}
@keyframes ps-pop { from { opacity: 0; transform: translateY(12px) scale(.98) } to { opacity: 1; transform: none } }
.search-field { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--ps-border) }
.search-field .ico { width: 22px; height: 22px; color: var(--ps-primary) }
.search-input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--ps-text-primary); font-size: 1.1rem; font-family: inherit; font-weight: 600;
}
.search-input::placeholder { color: var(--ps-text-faint) }
.search-esc { font-family: var(--ps-font-num); font-size: .7rem; font-weight: 700; color: var(--ps-text-muted); border: 1px solid var(--ps-border); border-radius: 6px; padding: 2px 6px; background: var(--ps-bg-subtle) }
.search-results { display: flex; flex-direction: column; gap: .2rem; max-height: 420px; overflow-y: auto; padding: .6rem }
.search-result-item {
  display: flex; align-items: center; gap: .85rem;
  padding: .65rem .8rem; border-radius: var(--r-md); cursor: pointer;
  transition: all .2s var(--ps-ease); border: 1.5px solid transparent;
}
.search-result-item:hover { background: var(--ps-primary-light); border-color: var(--ps-primary-border) }
.sri-ico { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--mod-bg); color: var(--mod); border: 1px solid var(--mod-border); flex-shrink: 0 }
.sri-ico .ico { width: 18px; height: 18px }
.sri-title { font-size: .92rem; font-weight: 800; color: var(--ps-text-primary) }
.sri-desc { font-size: .78rem; color: var(--ps-text-muted); font-weight: 600 }
.sri-num { margin-inline-start: auto; font-family: var(--ps-font-num); font-size: .72rem; font-weight: 800; color: var(--ps-text-faint) }
.search-empty { padding: 2rem; text-align: center; color: var(--ps-text-muted); font-weight: 600 }

/* ===== LIGHTBOX ===== */
#lightbox {
  position: fixed; inset: 0; z-index: 3000; display: none;
  background: rgba(15, 23, 42, .82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  align-items: center; justify-content: center; padding: 2rem; flex-direction: column; gap: 1rem;
}
#lightbox.open { display: flex; animation: ps-fade .2s ease }
#lightbox img { max-width: min(1400px, 100%); max-height: 82vh; border-radius: var(--r-md); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); background: #fff; animation: ps-pop .3s var(--ps-ease) }
#lightbox .lb-cap { color: #E2E8F0; font-weight: 700; font-size: .95rem }
#lightbox .lb-close {
  position: absolute; top: 20px; left: 20px; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all .25s var(--ps-ease);
}
#lightbox .lb-close:hover { background: #fff; color: var(--ps-navy); transform: rotate(90deg) }

/* Sidebar backdrop (mobile) */
#sidebar-backdrop { display: none }

/* ===== RESPONSIVE — Laptop ===== */
@media (max-width: 1280px) {
  .hero-content { gap: 2rem }
  .orbit-stage { width: 420px; height: 420px }
}

/* ===== RESPONSIVE — Tablet ===== */
@media (max-width: 1100px) {
  :root { --sidebar-w: 256px }
  .btn-search { min-width: 200px }
  .btn-cta-nav span { display: none }
  .hero-content { grid-template-columns: 1fr; text-align: center; padding: 3rem 2rem }
  .hero-text { display: flex; flex-direction: column; align-items: center }
  .hero-desc { margin-left: auto; margin-right: auto }
  .hero-btns { justify-content: center }
  .hero-stats { margin-left: auto; margin-right: auto }
  .orbit-stage { width: 400px; height: 400px }
  .guide-section { padding: 3rem 2rem 4rem }
  .section-divider { padding: 2.75rem 2rem 2rem }
  .section-title { font-size: 1.8rem }
  .kpi-grid { grid-template-columns: repeat(3, 1fr) }
  .cards-grid { grid-template-columns: repeat(2, 1fr) }
  .features-grid { grid-template-columns: repeat(2, 1fr) }
  .screen-showcase, .screen-showcase.reverse { grid-template-columns: 1fr }
  .footer-grid { grid-template-columns: 1fr 1fr }
  .footer-grid > :first-child { grid-column: 1 / -1 }
}

/* ===== RESPONSIVE — Mobile (≤768px) ===== */

/* ==========================================================================
   PERFECT ZERO-OVERFLOW RESPONSIVE & MOBILE DRAWER RULES (≤ 768px)
   ========================================================================== */

/* ==========================================================================
   PERFECT ZERO-OVERFLOW RESPONSIVE & MOBILE DRAWER RULES (≤ 768px)
   ========================================================================== */
@media (max-width: 768px) {
  :root {
    --topbar-h: 64px;
    --sidebar-w: 0px;
  }

  html {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }

  body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #layout {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    display: block !important;
    padding-top: var(--topbar-h) !important;
  }

  #main {
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
    padding: 0 !important;
  }

  /* TOPBAR MOBILE */
  #topbar {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: var(--topbar-h) !important;
    background: rgba(255, 255, 255, 0.98) !important;
    border-bottom: 1px solid var(--ps-border) !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    z-index: 1000 !important;
  }

  .topbar-container {
    width: 100% !important;
    height: 100% !important;
    padding: 0 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
  }

  #topbar .brand {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    text-decoration: none !important;
    flex-shrink: 0 !important;
  }

  #topbar .brand-logo {
    height: 34px !important;
    width: auto !important;
    max-width: 125px !important;
    display: block !important;
    object-fit: contain !important;
  }

  #topbar .brand-sep,
  #topbar .brand-meta,
  .btn-search,
  .btn-cta-nav,
  .btn-icon {
    display: none !important;
  }

  #topbar .actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
  }

  .btn-mobile-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 12px !important;
    border: 1.5px solid var(--ps-border) !important;
    background: var(--ps-bg-subtle) !important;
    color: var(--ps-text-primary) !important;
    cursor: pointer !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    -webkit-tap-highlight-color: transparent !important;
    transition: all 0.2s ease !important;
  }

  .btn-mobile-icon:hover {
    background: #E2E8F0 !important;
  }

  .btn-mobile-icon .ico {
    width: 20px !important;
    height: 20px !important;
  }

  .btn-mobile-icon.btn-hamburger {
    background: var(--ps-primary-light) !important;
    border-color: var(--ps-primary-border) !important;
    color: var(--ps-primary) !important;
    box-shadow: 0 2px 6px rgba(14, 78, 217, 0.12) !important;
  }

  .btn-mobile-icon.btn-hamburger:hover {
    background: var(--ps-primary-soft) !important;
    border-color: var(--ps-primary) !important;
  }

  /* SIDEBAR AS MODAL SLIDING DRAWER */
  #sidebar {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    width: 320px !important;
    max-width: 86vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: #FFFFFF !important;
    border-left: 1.5px solid var(--ps-border) !important;
    border-right: none !important;
    box-shadow: -10px 0 40px rgba(15, 23, 42, 0.25) !important;
    z-index: 99999 !important;
    padding: 1rem 0 3rem 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  #sidebar.mobile-open {
    display: block !important;
    animation: drawerSlideInRTL 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
  }

  @keyframes drawerSlideInRTL {
    0% {
      transform: translateX(100%);
      opacity: 0.5;
    }
    100% {
      transform: translateX(0);
      opacity: 1;
    }
  }

  .drawer-close-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: #F1F5F9 !important;
    border: 1px solid var(--ps-border) !important;
    color: var(--ps-text-primary) !important;
    cursor: pointer !important;
    padding: 0 !important;
    transition: all 0.2s ease !important;
  }

  .drawer-close-btn:hover {
    background: #E2E8F0 !important;
    color: var(--ps-red) !important;
  }

  .drawer-close-btn .ico {
    width: 18px !important;
    height: 18px !important;
  }

  .sidebar-head {
    margin: 0 .75rem 1rem !important;
    padding: .85rem 1rem !important;
    background: linear-gradient(135deg, #EFF6FF 0%, #F8FAFC 100%) !important;
    border: 1px solid var(--ps-primary-soft) !important;
    border-radius: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: .75rem !important;
  }

  .sidebar-item {
    padding: .75rem 1rem !important;
    margin: 0 .75rem 4px !important;
    border-radius: 10px !important;
    min-height: 46px !important;
  }

  /* Backdrop */
  #sidebar-backdrop {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(15, 23, 42, 0.5) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    z-index: 99998 !important;
    opacity: 0;
    transition: opacity .3s ease !important;
  }

  #sidebar-backdrop.show {
    display: block !important;
    opacity: 1 !important;
  }

  /* HERO ZERO-OVERFLOW */
  #hero {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    padding: 1.5rem 0 2rem 0 !important;
    min-height: auto !important;
    box-sizing: border-box !important;
  }

  .hero-watermark,
  .hero-glow {
    display: none !important;
  }

  .hero-content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 16px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    text-align: center !important;
    gap: 1.5rem !important;
  }

  .hero-text {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .hero-kicker {
    font-size: .74rem !important;
    padding: .3rem .8rem !important;
    margin-bottom: 1rem !important;
  }

  .hero-title {
    width: 100% !important;
    margin-bottom: 1rem !important;
    box-sizing: border-box !important;
  }

  .hero-title .t-top {
    font-size: 1.25rem !important;
    line-height: 1.4 !important;
    display: block !important;
  }

  .hero-title .t-hl {
    font-size: 1.7rem !important;
    line-height: 1.35 !important;
    display: inline-block !important;
    position: relative !important;
  }

  .hero-title .t-hl svg {
    height: 12px !important;
    bottom: -4px !important;
  }

  .hero-title .t-sub {
    font-size: .88rem !important;
    line-height: 1.6 !important;
    margin-top: .6rem !important;
    display: block !important;
  }

  .hero-desc {
    font-size: .9rem !important;
    line-height: 1.8 !important;
    margin: 0 auto 1.25rem !important;
    max-width: 100% !important;
  }

  .hero-btns {
    width: 100% !important;
    flex-direction: column !important;
    gap: .75rem !important;
  }

  .btn-primary, .btn-secondary {
    width: 100% !important;
    height: 48px !important;
    font-size: .92rem !important;
    justify-content: center !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
  }

  /* Stats cards */
  .hero-stats {
    width: 100% !important;
    max-width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
    margin: 1.5rem 0 0 0 !important;
    box-sizing: border-box !important;
  }

  .hero-stat {
    padding: .6rem 4px !important;
    gap: 4px !important;
    flex-direction: column !important;
    text-align: center !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
  }

  .hero-stat .hs-ico {
    width: 30px !important;
    height: 30px !important;
    border-radius: 8px !important;
    margin: 0 auto !important;
  }

  .hero-stat .hs-ico .ico {
    width: 16px !important;
    height: 16px !important;
  }

  .hero-stat .num {
    font-size: 1.05rem !important;
  }

  .hero-stat .lbl {
    font-size: .65rem !important;
  }

  /* Orbit visual scaled to fit 100% */
  .hero-visual {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    margin-top: .5rem !important;
    display: flex !important;
    justify-content: center !important;
  }

  .orbit-stage {
    width: 270px !important;
    height: 270px !important;
    margin: 0 auto !important;
    position: relative !important;
  }

  .orbit-hub {
    width: 76px !important;
    height: 76px !important;
    box-shadow: 0 10px 24px -6px rgba(14, 78, 217, .3), 0 0 0 5px rgba(239, 246, 255, .9) !important;
  }

  .orbit-hub svg.emblem {
    width: 30px !important;
    height: 30px !important;
  }

  .orbit-hub .hub-label {
    font-size: .7rem !important;
  }

  .orbit-node .on-card {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
  }

  .orbit-node .on-ico {
    width: 26px !important;
    height: 26px !important;
    border-radius: 8px !important;
  }

  .orbit-node .on-ico .ico {
    width: 14px !important;
    height: 14px !important;
  }

  .orbit-node .on-tip {
    display: none !important;
  }

  /* SECTIONS MOBILE */
  .guide-section {
    padding: 2rem 14px 2.5rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .section-divider {
    padding: 2rem 14px 1.5rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .section-divider h2 {
    font-size: 1.3rem !important;
  }

  .mod-icon {
    width: 52px !important;
    height: 52px !important;
    border-radius: 14px !important;
  }

  .mod-icon span {
    width: 38px !important;
    height: 38px !important;
    border-radius: 10px !important;
  }

  .mod-icon .ico {
    width: 20px !important;
    height: 20px !important;
  }

  .mod-watermark {
    display: none !important;
  }

  .mod-flow {
    margin-top: 1rem !important;
    gap: 6px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    max-width: 100% !important;
  }

  .mf-step {
    min-width: 130px !important;
    font-size: .76rem !important;
    margin-inline-end: 20px !important;
  }

  .mf-step::after {
    left: -20px !important;
    width: 20px !important;
  }

  /* Grids */
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .role-cards {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  .role-card {
    padding: 1rem .8rem !important;
  }

  .cards-grid,
  .features-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .screen-showcase,
  .screen-showcase.reverse {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .screen-info {
    order: -1 !important;
  }

  .screen-frame {
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, .12) !important;
  }

  /* Footers */
  #footer {
    padding: 2.5rem 16px 1.5rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .footer-bottom {
    flex-direction: column-reverse !important;
    text-align: center !important;
    gap: .75rem !important;
  }
}


/* ==========================================================================
   INTERACTIVE LIVE LINKS & TOAST FEEDBACK (ProSafe System Links)
   ========================================================================== */
a.chip,
a.screen-url,
.chip-link,
.screen-url-link {
  cursor: pointer !important;
  text-decoration: none !important;
  transition: all 0.22s var(--ps-ease) !important;
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  user-select: text !important;
}

a.chip,
.chip-link {
  color: var(--ps-primary) !important;
  background: var(--ps-primary-light) !important;
  border: 1.5px solid var(--ps-primary-border) !important;
  font-weight: 700 !important;
  gap: 0.35rem !important;
  padding: .2rem .65rem !important;
  border-radius: 8px !important;
}

a.chip::after,
.chip-link::after {
  content: '↗';
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.85em;
  font-weight: 900;
  color: var(--ps-primary);
  opacity: 0.75;
  transition: transform 0.2s ease, opacity 0.2s ease;
  display: inline-block;
  margin-left: 2px;
}

a.chip:hover,
.chip-link:hover {
  background: #DBEAFE !important;
  border-color: var(--ps-primary) !important;
  color: var(--ps-primary-deep) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 14px rgba(14, 78, 217, 0.2) !important;
}

a.chip:hover::after,
.chip-link:hover::after {
  opacity: 1 !important;
  transform: translate(2px, -2px) !important;
}

a.screen-url,
.screen-url-link {
  cursor: pointer !important;
  color: var(--ps-primary) !important;
  background: #FFFFFF !important;
  border: 1.5px solid var(--ps-border) !important;
  transition: all 0.22s var(--ps-ease) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

a.screen-url::after,
.screen-url-link::after {
  content: ' ↗';
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.85em;
  font-weight: 900;
  opacity: 0.6;
  margin-left: 5px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

a.screen-url:hover,
.screen-url-link:hover {
  border-color: var(--ps-primary) !important;
  background: var(--ps-primary-light) !important;
  color: var(--ps-primary-deep) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(14, 78, 217, 0.16) !important;
}

a.screen-url:hover::after,
.screen-url-link:hover::after {
  opacity: 1 !important;
  transform: translate(2px, -2px) !important;
}

/* Toast Notification for Link Open Feedback */
#prosafe-link-toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 100000;
  background: #0F172A;
  color: #FFFFFF;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.3);
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(120px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  direction: rtl;
  max-width: 90vw;
}

#prosafe-link-toast.show {
  transform: translateY(0);
  opacity: 1;
}

#prosafe-link-toast .plt-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--ps-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #FFFFFF;
}

#prosafe-link-toast .plt-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#prosafe-link-toast .plt-title {
  font-weight: 800;
  font-size: 0.82rem;
  color: #93C5FD;
}

#prosafe-link-toast .plt-url {
  font-family: var(--ps-font-mono);
  font-size: 0.74rem;
  color: #E2E8F0;
  direction: ltr;
  text-align: right;
  word-break: break-all;
}
