/* ============================================
   ONBOARDING / EXPLAINER VIDEO — v66.1
   Floating help button (FAB) + Modal overlay
   ============================================ */

/* ---- Floating Help Button (FAB) ---- */
.ob-fab{
  position:fixed;
  right:22px;
  bottom:22px;
  z-index:9500;
  width:56px;
  height:56px;
  border-radius:50%;
  background:linear-gradient(135deg,#248A3D 0%,#1D7032 100%);
  color:#fff;
  border:none;
  cursor:pointer;
  box-shadow:0 8px 24px rgba(36,138,61,.35), 0 2px 6px rgba(0,0,0,.12);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:24px;
  font-weight:700;
  transition:transform .2s ease, box-shadow .2s ease;
  font-family:inherit;
}
.ob-fab:hover{
  transform:translateY(-2px) scale(1.05);
  box-shadow:0 12px 32px rgba(36,138,61,.45), 0 4px 8px rgba(0,0,0,.15);
}
.ob-fab:active{ transform:translateY(0) scale(.98); }
.ob-fab-pulse{
  position:absolute;
  inset:0;
  border-radius:50%;
  background:rgba(36,138,61,.35);
  animation:obPulse 2s ease-out infinite;
  pointer-events:none;
}
@keyframes obPulse{
  0%{ transform:scale(1); opacity:.7; }
  100%{ transform:scale(1.6); opacity:0; }
}
.ob-fab-label{
  position:absolute;
  right:64px;
  top:50%;
  transform:translateY(-50%);
  background:#111827;
  color:#fff;
  font-size:12px;
  font-weight:700;
  padding:6px 12px;
  border-radius:8px;
  white-space:nowrap;
  opacity:0;
  pointer-events:none;
  transition:opacity .2s ease;
  box-shadow:0 4px 12px rgba(0,0,0,.2);
}
.ob-fab:hover .ob-fab-label{ opacity:1; }
@media (max-width:640px){
  .ob-fab{ right:14px; bottom:14px; width:50px; height:50px; font-size:20px; }
  .ob-fab-label{ display:none; }
}

/* ---- Modal Overlay ---- */
.ob-overlay{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.62);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  z-index:9600;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  animation:obFadeIn .25s ease-out;
}
@keyframes obFadeIn{ from{ opacity:0; } to{ opacity:1; } }

.ob-modal{
  background:#fff;
  border-radius:20px;
  max-width:1080px;
  width:100%;
  max-height:92vh;
  overflow:hidden;
  box-shadow:0 25px 80px rgba(0,0,0,.35);
  display:flex;
  flex-direction:column;
  animation:obSlideUp .35s cubic-bezier(.16,1,.3,1);
}
@keyframes obSlideUp{
  from{ transform:translateY(24px); opacity:0; }
  to  { transform:translateY(0);    opacity:1; }
}

.ob-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 24px;
  border-bottom:1px solid #eef2f7;
  background:linear-gradient(180deg,#fafbfc 0%,#fff 100%);
}
.ob-title-wrap{ display:flex; align-items:center; gap:12px; min-width:0; }
.ob-title-icon{
  width:36px; height:36px; border-radius:10px;
  background:linear-gradient(135deg,#248A3D,#1D7032);
  color:#fff; display:flex; align-items:center; justify-content:center;
  font-size:18px; flex-shrink:0;
}
.ob-title{ font-size:18px; font-weight:800; color:#111827; letter-spacing:-.01em; }
.ob-subtitle{ font-size:12px; color:#6b7280; margin-top:2px; font-weight:500; }

.ob-controls{ display:flex; align-items:center; gap:8px; }

/* Language toggle (FR | Darija) */
.ob-lang-toggle{
  display:inline-flex;
  background:#f3f4f6;
  border-radius:10px;
  padding:3px;
  gap:2px;
}
.ob-lang-btn{
  border:none;
  background:transparent;
  color:#6b7280;
  font-size:12px;
  font-weight:700;
  padding:6px 12px;
  border-radius:8px;
  cursor:pointer;
  font-family:inherit;
  transition:all .2s ease;
}
.ob-lang-btn.active{
  background:#fff;
  color:#111827;
  box-shadow:0 1px 3px rgba(0,0,0,.08);
}
.ob-lang-btn:hover:not(.active){ color:#111827; }

.ob-close-btn{
  width:36px; height:36px; border-radius:10px;
  border:none; background:#f3f4f6; color:#6b7280;
  font-size:20px; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  transition:all .15s ease;
}
.ob-close-btn:hover{ background:#e5e7eb; color:#111827; }

/* Body — 2 columns: video + feature list */
.ob-body{
  display:grid;
  grid-template-columns:minmax(0,1.6fr) minmax(260px,1fr);
  gap:0;
  flex:1;
  overflow:auto;
}
.ob-body.rtl{ direction:rtl; }
.ob-body.rtl .ob-features{ border-left:none; border-right:1px solid #eef2f7; }

.ob-video-col{
  padding:20px;
  background:#0f172a;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:340px;
}
.ob-video-frame{
  position:relative;
  width:100%;
  aspect-ratio:16/9;
  background:#000;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 10px 30px rgba(0,0,0,.4);
}
.ob-video-frame iframe,
.ob-video-frame video{
  width:100%;
  height:100%;
  border:0;
  display:block;
}
.ob-video-placeholder{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,#1e293b 0%,#0f172a 100%);
  color:#cbd5e1;
  text-align:center;
  padding:24px;
  gap:14px;
}
.ob-ph-icon{
  width:72px; height:72px; border-radius:50%;
  background:rgba(255,255,255,.08);
  display:flex; align-items:center; justify-content:center;
  font-size:32px;
  border:2px solid rgba(255,255,255,.15);
}
.ob-ph-title{ font-size:18px; font-weight:700; color:#fff; }
.ob-ph-text{ font-size:13px; color:#94a3b8; max-width:320px; line-height:1.5; }

.ob-features{
  padding:24px 24px 20px;
  border-left:1px solid #eef2f7;
  background:#fafbfc;
  overflow-y:auto;
}
.ob-features-title{
  font-size:11px;
  font-weight:800;
  color:#6b7280;
  text-transform:uppercase;
  letter-spacing:.5px;
  margin-bottom:14px;
}
.ob-feature-list{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.ob-feature{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:10px 12px;
  background:#fff;
  border:1px solid #eef2f7;
  border-radius:10px;
  transition:all .15s ease;
}
.ob-feature:hover{
  border-color:#cfe6d6;
  background:#f4faf6;
  transform:translateX(2px);
}
.ob-body.rtl .ob-feature:hover{ transform:translateX(-2px); }
.ob-feat-emoji{
  width:32px; height:32px; border-radius:8px;
  background:#E9F5EC; color:#248A3D;
  display:flex; align-items:center; justify-content:center;
  font-size:16px; flex-shrink:0;
}
.ob-feat-text{ min-width:0; }
.ob-feat-name{ font-size:13px; font-weight:700; color:#111827; }
.ob-feat-desc{ font-size:11px; color:#6b7280; margin-top:2px; line-height:1.45; }

/* Footer */
.ob-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 24px;
  border-top:1px solid #eef2f7;
  background:#fafbfc;
  gap:12px;
  flex-wrap:wrap;
}
.ob-hide-wrap{
  display:flex; align-items:center; gap:8px;
  font-size:12px; color:#6b7280; cursor:pointer;
  user-select:none;
}
.ob-hide-wrap input{ width:16px; height:16px; cursor:pointer; accent-color:#248A3D; }
.ob-footer-actions{ display:flex; gap:8px; }
.ob-btn{
  border:none;
  padding:10px 18px;
  border-radius:10px;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
  font-family:inherit;
  transition:all .15s ease;
}
.ob-btn-primary{ background:#248A3D; color:#fff; }
.ob-btn-primary:hover{ background:#1D7032; }
.ob-btn-ghost{ background:#fff; color:#374151; border:1px solid #e5e7eb; }
.ob-btn-ghost:hover{ background:#f3f4f6; }

/* Mobile */
@media (max-width:820px){
  .ob-body{ grid-template-columns:1fr; }
  .ob-features{ border-left:none; border-top:1px solid #eef2f7; }
  .ob-body.rtl .ob-features{ border-right:none; border-top:1px solid #eef2f7; }
  .ob-video-col{ min-height:auto; padding:14px; }
  .ob-modal{ max-height:96vh; border-radius:14px; }
  .ob-header{ padding:14px 16px; }
  .ob-title{ font-size:16px; }
  .ob-subtitle{ display:none; }
  .ob-footer{ padding:12px 16px; }
}
