.mob-panel .btn--block{ margin-top:10px; }
.site-nav .btn{ margin-inline-start:-18px; }
/* ── Web/marketing palette — single source (was duplicated inline on every marketing page) ── */
:root{
  --bg:var(--bg-deep);--bg-raised:rgba(0,0,0,.03);--bg-card:#ffffff;
  --border:rgba(0,0,0,.09);--border-soft:rgba(0,0,0,.06);
  --text:#1c1535;--text-muted:#52496d;--text-faint:#6f6389;
  --bg-alt:rgba(0,0,0,.028);
}

/* ============================================================
   persona-shared.css  —  shared nav + footer styles
   Edit this file once; all marketing pages pick it up.
   ============================================================ */

/* ── Nav ──
   Chrome, not content: logo-left / links-centred / actions-right, pinned in every
   language on purpose (declared in tools/rtl-mirror-baseline.json, the same way
   the mobile drawer is pinned via a physical `right:0` rather than a logical
   inset). direction:ltr is set ONLY on .site-nav itself, never on a descendant —
   that is precisely the anti-pattern this project's RTL gate exists to catch (see
   its own header comment: hardcoding direction on children broke the marketing
   feature rows once already). Nothing here forces text direction, so a Hebrew
   label's own characters still render in correct RTL order; only the outer
   left-to-right GROUP ORDER is fixed. Verified by rendering, not just measuring:
   Hebrew nav labels read correctly, not reversed. */
.site-nav{position:sticky;top:0;z-index:100;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;height:64px;padding:0 40px;gap:28px;background:rgba(250,249,255,.92);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border-bottom:1px solid rgba(0,0,0,.08);direction:ltr}
.nav-logo{grid-column:1;justify-self:start;display:flex;align-items:center;gap:10px;font-family:var(--font-display,'Unbounded',sans-serif);font-size:15px;font-weight:700;color:var(--text)}
.nav-links{grid-column:2;justify-self:center;display:flex;align-items:center;gap:28px}
.nav-actions{grid-column:3;justify-self:end;display:flex;align-items:center;gap:28px}
.nav-link{font-size:13.5px;font-weight:500;color:var(--text-muted);transition:color .15s;white-space:nowrap}
.nav-link:hover{color:var(--text)}
.nav-link.active{color:var(--purple)}

/* Language: an icon button everywhere, not a native <select> — replaces
   .web-lang-dd / .lang-dd / .footer-lang-dd on marketing pages only (those
   classes still style real <select>s on every other surface — auth, app,
   support, admin — left completely alone). The nav icon and footer button open
   the SAME full-screen #lang-modal; the mobile drawer's is its own inline
   dropdown instead (toggleMobLangDropdown() in persona-shared.js) — a second
   full-screen takeover stacked on top of the drawer would fight it, not
   complement it. Both are registry-driven from window.I18N_CONFIG.languages,
   so adding a language needs no markup changes anywhere.
   Visual treatment (no border/fill, brand-purple on hover) is the shared
   .btn--icon.plain / .btn--text.plain component (persona-styles.css) — these
   three classes carry ONLY the layout each spot needs: nav-lang-btn is a
   display:none hook for the mobile breakpoint below, mob-lang-btn fills its
   drawer row, footer-lang-btn sits inline in the footer brand column. */
/* Section break, like the ones between groups in the reference. A plain rule, not a
   border on the button itself — a button's own border inherits its border-radius, which
   rounded the divider's ends instead of a straight line spanning the full row. */
.mob-menu-divider{height:1px;background:var(--border);margin:12px 0;flex-shrink:0}
/* justify-content:space-between now has exactly two children (the icon+label group, the
   chevron), so the label sits tight against the icon at the reading-start edge — left in
   English, right in Hebrew — instead of floating in the middle of the row; only the
   chevron gets pushed to the far end. */
.mob-lang-btn{width:100%;padding:9px 12px;justify-content:space-between}
/* The shared .btn > svg sizing rule (persona-styles.css) only matches a DIRECT child of
   .btn — wrapping the icon one level deeper, in this label group, needs its own size. */
.mob-lang-label{display:flex;align-items:center;gap:8px}
.mob-lang-label svg{width:16px;height:16px;flex-shrink:0}
.mob-lang-chevron{width:14px;height:14px;flex-shrink:0;transition:transform .2s}
.mob-lang-btn[aria-expanded="true"] .mob-lang-chevron{transform:rotate(180deg)}
/* max-height, not height:auto — the standard CSS-only accordion technique
   (height:auto can't be transitioned; a generous cap can). */
.mob-lang-dropdown{max-height:0;overflow:hidden;transition:max-height .25s ease}
.mob-lang-dropdown.open{max-height:320px}
.mob-lang-option{display:block;width:100%;text-align:start;padding:10px 12px;margin-top:2px;border-radius:8px;border:none;background:transparent;font-size:13.5px;font-family:inherit;color:var(--text-muted);cursor:pointer;transition:color .15s,background .15s}
.mob-lang-option:hover{background:rgba(0,0,0,.04);color:#1c1535}
.mob-lang-option.selected{color:var(--purple);font-weight:600}
.footer-lang-btn{padding:7px 4px}

/* ── Language picker — full screen, same visual language as the create-flow
   history modal. One instance per page; every trigger opens it. ── */
.lang-modal-overlay{display:none;position:fixed;inset:0;z-index:300;background:var(--bg,#faf9ff);overflow-y:auto}
.lang-modal-overlay.open{display:block}
/* Close button: pinned physical right, not inset-inline-end — chrome, not content, same
   deliberate exception as .site-nav above. A close button's position is a habit (top-right
   in every OS dialog); flipping it in Hebrew would make it harder to find, not more correct. */
.lang-modal-close{position:fixed;top:22px;right:24px;z-index:2;width:38px;height:38px;border-radius:50%;border:1px solid var(--border);background:var(--bg-card,#fff);display:flex;align-items:center;justify-content:center;color:var(--text-muted);cursor:pointer}
.lang-modal-close:hover{background:var(--bg-raised);color:var(--text)}
.lang-modal-close svg{width:16px;height:16px}
.lang-modal{max-width:480px;margin:0 auto;padding:96px 24px 60px;text-align:center}
.lang-modal h3{font-family:var(--font-display,'Unbounded',sans-serif);font-size:24px;font-weight:700;margin-bottom:28px;color:var(--text)}
.lang-modal-list{display:flex;flex-direction:column;gap:8px}
.lang-modal-item{display:flex;align-items:center;justify-content:center;padding:14px;border-radius:12px;border:1px solid var(--border);background:var(--bg-card,#fff);font-size:15px;font-weight:600;color:var(--text);cursor:pointer;transition:.15s}
.lang-modal-item:hover{border-color:var(--purple);background:var(--bg-raised)}
.lang-modal-item.selected{border-color:var(--purple);background:var(--selected-fill);color:var(--purple)}

/* Visual treatment (no border/fill, brand-purple on hover) is the shared .btn--icon.plain
   component (persona-styles.css) — nav-burger is now only a display:none hook for desktop. */
.nav-burger{display:none}

/* ── Mobile drawer ──
   Pinned physical right in every language — a mobile menu opens from the same edge
   the burger icon sits on, regardless of language (same chrome-not-content reasoning as
   .site-nav and the full-screen popups' close buttons). Full width, so there's no
   backdrop sliver to keep a border against — the panel IS the screen.
   Animated with transform, not display:none/block — display can't transition, so the
   drawer stays in the layout (invisible + unreachable via opacity/visibility) and only
   the panel's transform + the backdrop's opacity move. translateX is a physical offset
   (not flipped by dir), so "off to the right" holds in every language too. */
.mob-drawer{position:fixed;inset:0;z-index:200;background:rgba(0,0,0,.45);backdrop-filter:blur(4px);opacity:0;visibility:hidden;transition:opacity .25s ease,visibility 0s linear .25s}
.mob-drawer.open{opacity:1;visibility:visible;transition:opacity .25s ease,visibility 0s linear}
.mob-panel{position:absolute;top:0;right:0;bottom:0;width:100%;background:var(--bg-panel,#faf9ff);padding:22px;display:flex;flex-direction:column;gap:4px;overflow-y:auto;transform:translateX(100%);transition:transform .3s cubic-bezier(.22,1,.36,1)}
.mob-drawer.open .mob-panel{transform:translateX(0)}
/* direction:ltr + flex-end: the close button stays at the physical right — the flex
   equivalent of the popups' `right` (not inset-inline-end) fix. */
.mob-head{display:flex;align-items:center;justify-content:flex-end;direction:ltr;margin-bottom:16px}
.mob-link{display:block;padding:11px 12px;border-radius:10px;font-size:14px;font-weight:500;color:var(--text-muted)}
.mob-link:hover{background:rgba(0,0,0,.04);color:#1c1535}

/* ── Footer ── */
.site-footer{border-top:1px solid var(--border);padding:0 0 36px;background:rgba(var(--white-rgb),.01)}
.footer-grid{max-width:1100px;margin:0 auto;display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:40px;margin-bottom:40px;padding:52px 40px 0}
.footer-brand-col{}
.footer-logo{display:flex;align-items:center;gap:9px;font-family:var(--font-display,'Unbounded',sans-serif);font-size:13px;font-weight:700;margin-bottom:10px}
.footer-tagline{font-size:13px;color:var(--text-faint);line-height:1.6;max-width:220px}
.footer-lang{margin-top:14px}
.fcol-title{font-size:10.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--text-faint);margin-bottom:14px}
.footer-col a{display:block;font-size:13px;color:var(--text-faint);margin-bottom:9px}
.footer-col a:hover{color:var(--text-muted)}
.footer-bottom{width:100%;max-width:1100px;margin:0 auto;padding:24px 40px 0;border-top:1px solid var(--border-soft);display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px}
.footer-copy{font-size:12px;color:var(--text-muted);flex-shrink:0}
.footer-legal{display:flex;flex-wrap:wrap;gap:18px}
.footer-legal a{font-size:12px;color:var(--text-faint)}
.footer-legal a:hover{color:var(--text-muted)}

/* ── Responsive ── */
@media(max-width:960px){
  .footer-grid{grid-template-columns:1fr 1fr;gap:24px}
  .footer-brand-col{grid-column:1/-1}
}
@media(max-width:700px){
  .site-nav{padding:0 18px;gap:12px}
  .nav-links,.site-nav .btn--ghost,.site-nav .btn--orange,.nav-lang-btn{display:none}
  .lang-modal{padding:80px 20px 40px}
  .nav-burger{display:flex}
  .site-footer{padding:0 0 28px}
  .footer-grid{grid-template-columns:1fr;gap:22px;padding:36px 20px 0}
}

/* ── Logo mark size ── */
.nav-mark{width:32px;height:32px;border-radius:9px;overflow:hidden;flex-shrink:0;display:flex;align-items:center;justify-content:center}
/* ── Logo image mark ── */
.brand-mark-img,.nmark-img,.nav-mark-img{background:none !important;padding:0 !important}
.brand-mark-img img,.nmark-img img,.nav-mark-img img{width:100%;height:100%;object-fit:cover;border-radius:inherit;display:block}
/* ── Logo SVG mark (no image dependency) ── */
.nav-mark-svg{display:flex;align-items:center;justify-content:center;flex-shrink:0}
.nav-mark-svg svg{display:block;border-radius:inherit}

/* ── Footer newsletter strip ── */
.footer-newsletter{padding:48px 40px 52px;background:rgba(var(--purple-rgb),.04);border-bottom:2px solid var(--border-soft)}
.footer-nl-inner{max-width:1100px;margin:0 auto;width:100%;display:flex;align-items:center;justify-content:space-between;gap:40px;flex-wrap:wrap}
.footer-nl-title{font-size:15px;font-weight:700;color:var(--text);margin-bottom:4px}
.footer-nl-sub{font-size:12.5px;color:var(--text-faint)}
.footer-nl-form{display:flex;gap:10px;flex-shrink:0}
.footer-nl-input{padding:12px 20px;border-radius:999px;border:1px solid var(--border-strong);background:var(--bg-card);color:var(--text);font-size:13.5px;font-family:inherit;width:260px;transition:border-color .15s}
.footer-nl-input:focus{border-color:rgba(var(--purple-rgb),.5)}
@media(max-width:700px){.footer-newsletter{padding:32px 20px 36px}.footer-nl-inner{flex-direction:column;align-items:flex-start;gap:18px}.footer-nl-form{width:100%}.footer-nl-input{flex:1;min-width:0}}

/* ════════════════════════════════════════════════════
   TOAST / NOTIFICATION SYSTEM
   Usage: showToast(variant, message, opts?)
   Variants: 'success' | 'error' | 'warning' | 'info'
   Opts: { action, onAction, duration, dismissible }
════════════════════════════════════════════════════ */
.toast-stack{
  position:fixed;bottom:28px;left:50%;transform:translateX(-50%);
  display:flex;flex-direction:column-reverse;gap:8px;
  z-index:9000;pointer-events:none;
  align-items:center;min-width:280px;max-width:420px;width:max-content;
}
.toast{
  display:flex;align-items:center;gap:10px;
  padding:11px 16px;border-radius:999px;
  font-size:13px;font-weight:600;line-height:1.3;
  box-shadow:0 4px 16px -4px rgba(0,0,0,.18),0 1px 4px rgba(0,0,0,.08);
  pointer-events:auto;cursor:default;
  animation:toastIn .25s cubic-bezier(.34,1.4,.64,1);
  transition:opacity .25s,transform .25s;
  border:1px solid rgba(var(--white-rgb),.1);
  max-width:100%;
}
.toast.hiding{opacity:0;transform:translateY(8px);}
@keyframes toastIn{from{opacity:0;transform:translateY(14px);}to{opacity:1;transform:none;}}
.toast svg{width:15px;height:15px;flex-shrink:0;}
.toast-msg{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:280px;}
.toast-action{
  font-size:12px;font-weight:700;white-space:nowrap;
  background:rgba(var(--white-rgb),.2);border:none;color:inherit;
  padding:3px 9px;border-radius:999px;cursor:pointer;
  margin-inline-start:4px;transition:background .15s;
}
.toast-action:hover{background:rgba(var(--white-rgb),.3);}
.toast-close{
  width:18px;height:18px;border-radius:50%;
  background:rgba(var(--white-rgb),.15);border:none;
  color:inherit;cursor:pointer;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;
  padding:0;transition:background .15s;
}
.toast-close:hover{background:rgba(var(--white-rgb),.25);}
.toast-close svg{width:10px;height:10px;}
/* Variants */
.toast.success{background:var(--toast-success);color:#fff;}
.toast.error{background:var(--toast-error);color:#fff;}
.toast.destructive{background:var(--toast-error);color:#fff;}
.toast.warning{background:var(--toast-warning);color:#fff;}
.toast.info{background:var(--toast-info);color:#fff;}

/* ════════════════════════════════════════════════════
   EMPTY STATE SYSTEM
   Usage: renderEmptyState('preset-name', containerEl)
   Or use HTML: <div class="empty-state" data-empty="preset-name">
════════════════════════════════════════════════════ */

/* Compact variant for smaller containers */

/* ════════════════════════════════════════════════════
   SKELETON SCREEN SYSTEM
   Usage: showSkeletons('video-card', containerEl, 4)
          hideSkeletons(containerEl)
   Or: add class .sk to any element for shimmer
════════════════════════════════════════════════════ */

/* Base shimmer — apply to any element */
@keyframes sk-shimmer{
  0%{background-position:-600px 0;}
  100%{background-position:600px 0;}
}
.sk{
  background:linear-gradient(
    90deg,
    var(--panel-strong) 25%,
    rgba(var(--white-rgb),.65) 50%,
    var(--panel-strong) 75%
  );
  background-size:1200px 100%;
  animation:sk-shimmer 1.5s infinite linear;
  border-radius:6px;
  color:transparent;
  user-select:none;
}
/* Skeleton card wrapper */
.sk-card{
  background:var(--panel);
  border:1px solid var(--border-soft);
  border-radius:var(--radius-lg);
  overflow:hidden;
  flex-shrink:0;
}
/* Thumbnail placeholder */
.sk-thumb{
  width:100%;
  aspect-ratio:9/16;
  position:relative;
}
.sk-thumb.landscape{aspect-ratio:16/9;}
.sk-thumb.square{aspect-ratio:1/1;}
.sk-thumb.wide{aspect-ratio:4/3;}
.sk-thumb > .sk{width:100%;height:100%;border-radius:0;}
/* Info area below thumb */
.sk-body{padding:12px 14px;display:flex;flex-direction:column;gap:8px;}
/* Generic line placeholders */
.sk-line{height:11px;}
.sk-line.h-14{height:14px;}
.sk-line.h-18{height:18px;}
.sk-line.h-28{height:28px;}
.sk-line.w-100{width:100%;}
.sk-line.w-80{width:80%;}
.sk-line.w-60{width:60%;}
.sk-line.w-40{width:40%;}
.sk-line.w-30{width:30%;}
/* Avatar / circle */
.sk-avatar{border-radius:50%;flex-shrink:0;}
.sk-avatar.sm{width:32px;height:32px;}
.sk-avatar.md{width:40px;height:40px;}
.sk-avatar.lg{width:52px;height:52px;}
/* Row layout (list view) */
.sk-row{
  display:flex;align-items:center;gap:12px;
  padding:13px 16px;
  border-bottom:1px solid var(--border-soft);
}
.sk-row:last-child{border-bottom:none;}
.sk-row-thumb{
  width:48px;height:60px;border-radius:var(--radius-sm);flex-shrink:0;
}
.sk-col{flex:1;display:flex;flex-direction:column;gap:7px;}
/* Page header */
.sk-page-header{
  padding:28px 32px 0;
  display:flex;flex-direction:column;gap:10px;
  margin-bottom:24px;
}
/* Pill */
.sk-pill{height:24px;border-radius:999px;}
/* Detail page layout */
.sk-detail-preview{
  border-radius:var(--radius-md);
  aspect-ratio:9/16;
  max-height:520px;
  width:100%;
}
.sk-detail-preview.landscape{aspect-ratio:16/9;max-height:none;}
.sk-detail-preview.square{aspect-ratio:1/1;}
/* Loading state container — covers content while loading */
.sk-loading{position:relative;}
.sk-loading::after{
  content:'';position:absolute;inset:0;
  background:var(--grad-fade-bottom);
  pointer-events:none;z-index:1;
}

/* ════════════════════════════════════════════════════
   BANNER / ALERT BAR SYSTEM
   Usage: showBanner(preset, opts?)   → page-level fixed banner
          dismissBanner(id)           → dismiss by id
   Or inline HTML: <div class="banner success"> ... </div>
   Variants: success | warning | error | info | neutral
════════════════════════════════════════════════════ */

/* Base banner */

/* Color variants */

/* Light-theme icon tints (icons inherit color from variant) */
:root[data-theme="light"] .banner.success svg{color:var(--teal);}
:root[data-theme="light"] .banner.warning svg{color:#d97706;}
:root[data-theme="light"] .banner.error svg{color:var(--red);}
:root[data-theme="light"] .banner.info svg{color:var(--purple);}

/* Page-level fixed banner (stacks below topbar) */

@keyframes bannerSlideDown{from{transform:translateY(-100%);opacity:0;}to{transform:none;opacity:1;}}

@keyframes bannerSlideUp{to{transform:translateY(-100%);opacity:0;}}

