/* ============================================================================
 *  nahash.co.il  |  public/css/design-2026.css
 *  שכבת העיצוב "2026" — מעל styles.css, ללא דריסה הרסנית.
 *  ---------------------------------------------------------------------------
 *  • טיפוגרפיה מודרנית וחדה (Heebo + Assistant) במשקלים נכונים.
 *  • Glassmorphism / Neumorphism עדין, רווחים נדיבים, ניגודיות גבוהה.
 *  • מיקרו-אינטראקציות יוקרתיות: Hover, Shine, Press, Ripple במובייל.
 *  • Mobile-First: Safe-Area, מגע מהודק, תחושת אפליקציית נייטיב.
 *  • סטיילינג מלא ל-Site Studio ולמערכת הבלוג (SEO Wiz).
 * ========================================================================== */

/* ------------------------------ 1. טיפוגרפיה ------------------------------ */

:root {
  --font-ui: "Heebo", "Assistant", system-ui, -apple-system, sans-serif;
  --font: var(--font-ui);
  --font-display: "Heebo", "Rubik", "Assistant", system-ui, sans-serif;

  --tr-display: -0.035em;
  --tr-head: -0.022em;

  --app-font-scale: 1;

  /* צבע הדגשה ניאון (נשלט מהסטודיו) + fallback */
  --highlight: #c6f96b;

  /* אפקטים — נשלטים מהסטודיו */
  --fx-glass-blur: 18px;
  --fx-glow-strength: 0.35;
  --fx-lift: -6px;

  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html { font-size: calc(100% * var(--app-font-scale)); }

body {
  font-family: var(--font-ui);
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}

h1, h2, h3, h4, h5, .brand__text strong {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: var(--tr-head);
}

h1 { font-weight: 900; letter-spacing: var(--tr-display); }
.display, .hero h1 { font-weight: 900; }

.container { width: min(1280px, 92vw); }

::selection { background: color-mix(in srgb, var(--brand) 28%, transparent); color: var(--text); }

/* פס גלילה דק ויוקרתי */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--text-mute) 40%, transparent);
  border-radius: var(--r-full);
  border: 3px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: var(--brand); background-clip: content-box; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: var(--r-xs);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 18%, transparent);
}

/* ------------------------------ 2. משטחים ------------------------------ */

/* מצבי אפקט — נשלטים ע"י data/fx classes על <html> */
.fx-glass .glass {
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  -webkit-backdrop-filter: blur(var(--fx-glass-blur)) saturate(150%);
  backdrop-filter: blur(var(--fx-glass-blur)) saturate(150%);
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}

.fx-glow .card:hover,
.fx-glow .badge-card:hover,
.fx-glow .service-card:hover,
.fx-glow .post-card:hover {
  box-shadow:
    0 26px 60px -34px color-mix(in srgb, var(--brand) 55%, transparent),
    0 0 0 1px color-mix(in srgb, var(--brand) 22%, transparent);
}

.fx-neumorph .card,
.fx-neumorph .glass {
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, #fff 55%, transparent),
    0 1px 2px color-mix(in srgb, var(--text) 6%, transparent),
    0 14px 30px -22px color-mix(in srgb, var(--text) 30%, transparent);
}

.fx-neumorph .btn:active { box-shadow: inset 0 3px 8px color-mix(in srgb, var(--text) 25%, transparent); }

/* ------------------------------ 3. מיקרו-אינטראקציות ------------------------------ */

.fx-motion .card,
.fx-motion .badge-card,
.fx-motion .service-card,
.fx-motion .post-card,
.fx-motion .snake-card,
.fx-motion .ba-card {
  transition:
    transform 0.42s var(--ease-spring),
    box-shadow 0.42s var(--ease-out),
    border-color 0.28s var(--ease-out);
  will-change: transform;
}

@media (hover: hover) {
  .fx-motion .card:hover,
  .fx-motion .badge-card:hover,
  .fx-motion .service-card:hover,
  .fx-motion .post-card:hover,
  .fx-motion .snake-card:hover,
  .fx-motion .ba-card:hover {
    transform: translateY(var(--fx-lift));
  }
}

/* מגע במובייל: תגובה מיידית ומהודקת */
.fx-motion .card:active,
.fx-motion .ba-card:active,
.fx-motion .btn:active { transform: translateY(1px) scale(0.994); }

/* ------------------------------ 4. רצועת הודעה ------------------------------ */

.announce {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  padding: 0.6rem 1rem;
  padding-top: calc(0.6rem + env(safe-area-inset-top));
  font-size: var(--fs-sm);
  font-weight: 600;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.announce--brand {
  background: var(--brand);                                  /* fallback */
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--brand) 92%, #000 8%),
    var(--brand-2));
  color: #fff;
}
.announce--warn { background: linear-gradient(90deg, #b45309, #92400e); color: #fff; }
.announce--dark { background: linear-gradient(90deg, #0b0f0c, #1a211b); color: #fff; }

.announce__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: currentColor; opacity: 0.85;
  animation: pulseDot 2.4s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.7); opacity: 0.35; }
}

.announce__cta {
  color: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.announce__cta:hover { opacity: 0.85; color: inherit; }

.announce--preview { border-radius: var(--r); margin: 0.5rem 0; }

/* ------------------------------ 5. מיתוג ------------------------------ */

.brand__logo {
  width: 40px; height: 40px;
  object-fit: contain;
  border-radius: var(--r-sm);
  filter: drop-shadow(0 4px 10px rgba(11, 15, 12, 0.18));
}
.brand:hover .brand__mark,
.brand:hover .brand__logo { transform: rotate(-6deg) scale(1.06); }
.brand__mark, .brand__logo { transition: transform 0.4s var(--ease-spring); }

.nav__studio { white-space: nowrap; }

/* ------------------------------ 6. כפתורים ------------------------------ */

.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  font-weight: 700;
  letter-spacing: -0.005em;
  border-radius: var(--r);
  transition:
    transform 0.35s var(--ease-spring),
    box-shadow 0.35s var(--ease-out),
    background-color 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out),
    color 0.25s var(--ease-out);
}

/* סוויפ אור (Shine) יוקרתי במעבר עכבר */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg,
    transparent 30%,
    color-mix(in srgb, #fff 42%, transparent) 48%,
    transparent 66%);
  transform: translateX(-140%);
  transition: transform 0.7s var(--ease-out);
  pointer-events: none;
}
@media (hover: hover) {
  .btn:hover::before { transform: translateX(140%); }
  .btn:hover { transform: translateY(-2px); }
}

.btn--primary,
.btn--call,
.btn--wa,
.btn--danger {
  box-shadow: 0 8px 22px -12px color-mix(in srgb, currentColor 60%, transparent),
              0 1px 0 color-mix(in srgb, #fff 22%, transparent) inset;
}
.btn--primary:hover {
  box-shadow: 0 16px 32px -16px color-mix(in srgb, var(--brand) 75%, transparent);
}
.btn--call:hover { box-shadow: 0 16px 32px -16px color-mix(in srgb, var(--danger) 80%, transparent); }
.btn--wa:hover { box-shadow: 0 16px 32px -16px color-mix(in srgb, var(--wa) 80%, transparent); }

.btn--ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 8%, transparent);
}

.btn--xl { border-radius: calc(var(--r) + 4px); }

/* ------------------------------ 7. תגיות וכרטיסים ------------------------------ */

.chip--featured {
  position: absolute;
  inset-block-start: 0.75rem;
  inset-inline-end: 0.75rem;
  background: var(--gold);                                   /* fallback */
  background: linear-gradient(135deg, var(--gold), color-mix(in srgb, var(--gold) 70%, #000));
  color: #1b1403;
  border: 0;
  font-weight: 800;
}

/* הערה: הדגשות היתר (נקודת ה-live, אקסנט ה-Hero) הועברו ל-site-2026.css
   כחלק מ-Art Direction מלא. כאן נשמר רק הטוקן --highlight. */


/* הבטחת עיגון לתגים המוחלטים (קטגוריה/מומלץ) */
.post-card__art,
.snake-card__art { position: relative; }

.post-card__img,
.snake-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}
.post-card:hover .post-card__img { transform: scale(1.06); }

.card, .glass { border-radius: var(--r-lg); }

/* כרטיסי שירות/אמינות — אייקון עם הילה עדינה */
.badge-card__ico,
.service-card__ico {
  transition: transform 0.45s var(--ease-spring), background-color 0.3s var(--ease-out);
}
.fx-glow .badge-card:hover .badge-card__ico,
.fx-glow .service-card:hover .service-card__ico {
  transform: translateY(-3px) scale(1.06);
  background: color-mix(in srgb, var(--brand) 16%, transparent);
}

/* ------------------------------ 8. מאמר ותוכן עשיר ------------------------------ */

.article__cover {
  margin: 0 0 var(--sp-6);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: var(--sh-3);
}
.article__cover img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.article__cover figcaption {
  padding: 0.7rem 1rem;
  font-size: var(--fs-xs);
  color: var(--text-mute);
  background: var(--surface-2);
}

.article__body {
  max-width: 74ch;
  font-size: 1.06rem;
  line-height: 1.85;
}
.article__body > * + * { margin-top: var(--sp-4); }
.article__body h2 {
  font-size: var(--fs-h2);
  margin-top: var(--sp-7);
  letter-spacing: var(--tr-head);
}
.article__body h3 { font-size: var(--fs-h3); margin-top: var(--sp-6); }
.article__body h4 { font-size: var(--fs-lg); margin-top: var(--sp-5); }
.article__body ul, .article__body ol { padding-inline-start: 1.4rem; display: grid; gap: 0.4rem; }
.article__body li::marker { color: var(--brand); font-weight: 700; }
.article__body blockquote {
  padding: var(--sp-5) var(--sp-6);
  border-inline-start: 4px solid var(--brand);
  background: var(--surface-2);                              /* fallback */
  background: color-mix(in srgb, var(--brand) 7%, transparent);
  border-radius: 0 var(--r) var(--r) 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}
.article__body .callout {
  padding: var(--sp-5);
  border-radius: var(--r);
  background: var(--surface-2);
  border: 1px dashed var(--line-2);
  color: var(--text);
}
.article__body figure { margin: var(--sp-6) 0; }
.article__body figure img { border-radius: var(--r); width: 100%; }
.article__body figcaption {
  margin-top: 0.5rem;
  font-size: var(--fs-xs);
  color: var(--text-mute);
  text-align: center;
}
.article__body hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-6) 0; }
.article__body a { text-decoration: underline; text-underline-offset: 3px; }

.re-video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--sh-3);
}
.re-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* עורך עשיר */
.re {
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--field-bg);
  overflow: hidden;
}
.re:focus-within { border-color: var(--brand); box-shadow: var(--ring); }

.re__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
}
.re__group { display: flex; align-items: center; gap: 0.2rem; }
.re__group--end { margin-inline-start: auto; }
.re__group + .re__group { border-inline-start: 1px solid var(--line); padding-inline-start: 0.3rem; }

.re__btn {
  min-width: 34px;
  height: 34px;
  padding: 0 0.45rem;
  border: 1px solid transparent;
  border-radius: var(--r-xs);
  background: transparent;
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s var(--ease-out);
}
.re__btn:hover { background: var(--surface); color: var(--text); border-color: var(--line); }
.re__btn.is-active { background: var(--brand); color: var(--on-primary); border-color: var(--brand); }
.re__block {
  height: 34px;
  padding: 0 0.5rem;
  border-radius: var(--r-xs);
  font-size: var(--fs-xs);
  font-weight: 600;
}

.re__surface {
  padding: var(--sp-5);
  outline: none;
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text);
}
/* Placeholder לעורך — בשתי כללים נפרדים, כי סלקטור לא נתמך ברשימה
   היה מבטל את כל הכלל בדפדפנים ישנים. */
.re__surface:empty::before {
  content: attr(data-placeholder);
  color: var(--text-mute);
  pointer-events: none;
}
@supports selector(:has(*)) {
  .re__surface[data-placeholder]:not(:focus):not(:has(*))::before {
    content: attr(data-placeholder);
    color: var(--text-mute);
    pointer-events: none;
  }
}
.re__surface--source {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.85rem;
  direction: ltr;
  text-align: left;
  white-space: pre-wrap;
  background: var(--surface-2);
}
.re__surface h2 { font-size: 1.6rem; margin: 1rem 0 0.5rem; }
.re__surface h3 { font-size: 1.3rem; margin: 0.9rem 0 0.4rem; }
.re__surface h4 { font-size: 1.1rem; margin: 0.8rem 0 0.35rem; }
.re__surface blockquote {
  border-inline-start: 3px solid var(--brand);
  padding-inline-start: 0.9rem;
  font-weight: 600;
}
.re__surface a { color: var(--brand); text-decoration: underline; }

.re__status {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: 0.5rem 0.9rem;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  font-size: var(--fs-2xs);
  color: var(--text-mute);
}

/* ------------------------------ 9. Site Studio ------------------------------ */

.studio-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  margin-bottom: var(--sp-5);
  position: sticky;
  top: 0.5rem;
  z-index: 20;
}
.studio-bar__title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--fs-lg);
  letter-spacing: var(--tr-head);
}
.studio-pill {
  padding: 0.25rem 0.7rem;
  border-radius: var(--r-full);
  background: var(--brand-soft);                             /* fallback */
  background: color-mix(in srgb, var(--brand) 14%, transparent);
  color: var(--brand);
  font-size: var(--fs-2xs);
  font-weight: 700;
}

.studio-gate { text-align: center; justify-items: center; }
.studio-gate__ico {
  font-size: 2.6rem;
  display: block;
  animation: floatY 4s ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* טאבים */
.studio-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.4rem;
  margin-bottom: var(--sp-5);
  border-radius: var(--r-lg);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.studio-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--r);
  background: transparent;
  color: var(--text-dim);
  font-size: var(--fs-sm);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
}
.studio-tab:hover { background: var(--surface); color: var(--text); }
.studio-tab.is-active {
  background: var(--brand);
  color: var(--on-primary);
  box-shadow: 0 10px 24px -16px color-mix(in srgb, var(--brand) 80%, transparent);
}

.studio-body { display: grid; gap: var(--sp-5); }
.studio-intro { border-inline-start: 4px solid var(--brand); }

/* קבוצות תוכן */
.studio-groups { display: grid; gap: 0.8rem; }
.studio-group {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color 0.25s var(--ease-out);
}
.studio-group:hover { border-color: var(--line-2); }
.studio-group[open] { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.studio-group summary {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: var(--sp-4) var(--sp-5);
  cursor: pointer;
  list-style: none;
}
.studio-group summary::-webkit-details-marker { display: none; }
.studio-group__ico { font-size: 1.3rem; }
.studio-group__txt { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.studio-group__txt strong { font-size: var(--fs-md); color: var(--text); }
.studio-group__txt small { font-size: var(--fs-2xs); color: var(--text-mute); }
.studio-group__count {
  padding: 0.2rem 0.6rem;
  border-radius: var(--r-full);
  background: var(--panel);
  font-size: var(--fs-2xs);
  color: var(--text-mute);
  white-space: nowrap;
}
.studio-group summary::after {
  content: "▾";
  color: var(--brand);
  transition: transform 0.3s var(--ease-out);
}
.studio-group[open] summary::after { transform: rotate(180deg); }
.studio-group__body {
  display: grid;
  gap: var(--sp-4);
  padding: var(--sp-5);
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}

.studio-field {
  position: relative;
  padding-inline-end: 0;
  border-radius: var(--r-sm);
  transition: background-color 0.4s var(--ease-out);
}
.studio-field.is-saved { background: var(--brand-soft); }              /* fallback */
.studio-field.is-saved { background: color-mix(in srgb, var(--brand) 10%, transparent); }
.studio-field__path {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: var(--fs-2xs);
  color: var(--text-mute);
  direction: ltr;
  opacity: 0.6;
}

/* מתג (Switch) */
.switch {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  user-select: none;
}
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch__track {
  position: relative;
  width: 46px; height: 26px;
  border-radius: var(--r-full);
  background: var(--track-bg);
  border: 1px solid var(--line-2);
  transition: background-color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
  flex: 0 0 auto;
}
.switch__track::after {
  content: "";
  position: absolute;
  top: 50%; inset-inline-start: 3px;
  width: 19px; height: 19px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--sh-1);
  transition: inset-inline-start 0.3s var(--ease-spring);
}
.switch input:checked + .switch__track { background: var(--brand); border-color: var(--brand); }
.switch input:checked + .switch__track::after { inset-inline-start: 22px; }
.switch input:focus-visible + .switch__track { box-shadow: var(--ring); }
.switch__label { font-size: var(--fs-sm); color: var(--text); display: flex; flex-direction: column; }
.switch__label small { color: var(--text-mute); font-size: var(--fs-2xs); }

.toggle-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--sp-4); }
.switch--wide { padding: var(--sp-3); border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }

/* בורר מפולח (Segmented) */
.segmented {
  display: inline-flex;
  padding: 0.25rem;
  border-radius: var(--r-full);
  background: var(--surface-2);
  border: 1px solid var(--line);
  gap: 0.2rem;
}
.segmented__btn {
  padding: 0.5rem 1rem;
  border: 0;
  border-radius: var(--r-full);
  background: transparent;
  color: var(--text-dim);
  font-size: var(--fs-sm);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
}
.segmented__btn:hover { color: var(--text); }
.segmented__btn.is-active {
  background: var(--brand);
  color: var(--on-primary);
  box-shadow: var(--sh-1);
}

/* פריסטים */
.preset-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--sp-3); }
.preset {
  display: grid;
  gap: 0.4rem;
  padding: var(--sp-4);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  text-align: start;
  cursor: pointer;
  transition: transform 0.3s var(--ease-spring), border-color 0.25s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.preset:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--sh-2); }
.preset.is-active { border-color: var(--brand); box-shadow: var(--ring); }
.preset__swatches { display: flex; gap: 0.3rem; }
.preset__swatches i { width: 22px; height: 22px; border-radius: var(--r-xs); box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08); }
.preset strong { font-size: var(--fs-sm); color: var(--text); }
.preset small { font-size: var(--fs-2xs); color: var(--text-mute); }

/* צבעים */
.color-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--sp-4); }
.color-field { display: grid; gap: 0.4rem; font-size: var(--fs-sm); color: var(--text); }
.color-field__row { display: flex; gap: 0.5rem; align-items: center; }
.color-field input[type="color"] {
  width: 48px; height: 40px;
  padding: 2px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  cursor: pointer;
  background: var(--surface);
}
.color-field input[type="text"] { flex: 1 1 auto; font-family: ui-monospace, monospace; font-size: var(--fs-xs); }

/* טווחים */
.range-field { display: grid; gap: 0.35rem; margin-bottom: var(--sp-4); font-size: var(--fs-sm); color: var(--text); }
.range-field b { color: var(--brand); }
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: var(--r-full);
  background: var(--track-bg);
  border: 0;
  padding: 0;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--brand);
  border: 3px solid var(--surface);
  box-shadow: var(--sh-2);
  cursor: pointer;
  transition: transform 0.2s var(--ease-spring);
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.12); }
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand); border: 3px solid var(--surface); cursor: pointer;
}

/* לוגו ומדיה */
.media-row { display: flex; flex-wrap: wrap; gap: var(--sp-5); align-items: center; }
.media-row__preview {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 130px; height: 130px;
  border-radius: var(--r-lg);
  background: var(--surface-2);
  border: 1px dashed var(--line-2);
  overflow: hidden;
  font-size: 2.4rem;
}
.media-row__preview--wide { width: 240px; height: 130px; }
.media-row__preview img { width: 100%; height: 100%; object-fit: contain; }
.media-row__preview--wide img { object-fit: cover; }
.media-row__side { flex: 1 1 260px; display: grid; gap: var(--sp-3); }

/* תצוגה מקדימה של הנושא */
.theme-preview { padding: var(--sp-5); border-radius: var(--r); background: var(--surface-2); }
.theme-preview__card {
  display: grid;
  gap: var(--sp-3);
  max-width: 420px;
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  background: var(--card-bg);
  border: 1px solid var(--line);
  box-shadow: var(--sh-3);
}
.theme-preview__badge {
  justify-self: start;
  padding: 0.2rem 0.6rem;
  border-radius: var(--r-full);
  background: var(--brand-soft);                             /* fallback */
  background: color-mix(in srgb, var(--brand) 14%, transparent);
  color: var(--brand);
  font-size: var(--fs-2xs);
  font-weight: 700;
}
.theme-preview__card h5 { font-family: var(--font-display); font-size: var(--fs-md); }
.theme-preview__card p { font-size: var(--fs-sm); }

/* עזרי קלט */
.input-group { display: flex; align-items: stretch; gap: 0.3rem; }
.input-group input { flex: 1 1 auto; font-family: ui-monospace, monospace; font-size: var(--fs-xs); }
.input-group__btn {
  flex: 0 0 auto;
  width: 44px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s var(--ease-out);
}
.input-group__btn:hover { border-color: var(--brand); }
.input-group__btn.is-locked { background: var(--brand); border-color: var(--brand); }

.url-preview {
  display: block;
  padding: 0.7rem 0.9rem;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  font-size: var(--fs-2xs);
  color: var(--text-mute);
  overflow-wrap: anywhere;
}
.input--lg { font-size: var(--fs-lg) !important; font-weight: 700; }

.counter { font-weight: 700; font-size: var(--fs-2xs); color: var(--text-mute); }
.counter.is-ok { color: var(--venom); }
.counter.is-warn { color: var(--warn); }

/* ------------------------------ 10b. ניתוב ישיר (Tier 1) — אדמין ------------------------------ */

/* שורת סטטוס ניתוב על כרטיס לוכד */
.routing-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.7rem;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: var(--fs-2xs);
  font-weight: 700;
  color: var(--text-dim);
}
.routing-status i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ink-4, #98a29a); flex: 0 0 auto;
}
.routing-status--ok { background: color-mix(in srgb, var(--venom) 12%, transparent); border-color: color-mix(in srgb, var(--venom) 32%, transparent); }
.routing-status--ok i { background: var(--venom); box-shadow: 0 0 0 3px color-mix(in srgb, var(--venom) 22%, transparent); }
.routing-status--warn { background: color-mix(in srgb, var(--warn) 10%, transparent); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.routing-status--warn i { background: var(--warn); }
.routing-status--off { opacity: 0.7; }
.routing-status b { color: var(--text); font-weight: 800; }
.routing-status em { margin-inline-start: auto; font-style: normal; font-weight: 700; }

/* בורר זמינות קומפקטי (4 מצבים) */
.segmented--sm { width: 100%; }
.segmented--sm .segmented__btn {
  flex: 1 1 auto;
  padding: 0.4rem 0.35rem;
  font-size: var(--fs-2xs);
  border-radius: var(--r-full);
}
.segmented__btn.is-ok.is-active { background: var(--venom); color: #fff; }
.segmented__btn.is-warn.is-active { background: var(--warn); color: #fff; }
.segmented__btn.is-off.is-active { background: var(--ink-3, #6e7c73); color: #fff; }

/* תג "קו ישיר" */
.tag-direct {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.15rem 0.5rem; border-radius: var(--r-full);
  font-size: var(--fs-2xs); font-weight: 800;
  background: var(--brand-soft); color: var(--brand);
  border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent);
}
.tag-direct--off {
  background: var(--surface-2); color: var(--text-mute);
  border-color: var(--line);
}

/* ------------------------------ 10c. מסך הזמינות של הלוכד (/status) ------------------------------ */

.my-status {
  max-width: 640px;
  margin-inline: auto;
  display: grid;
  gap: var(--sp-4);
  text-align: start;
}
.my-status__ico {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 16px;
  background: var(--brand-soft); color: var(--brand); font-size: 1.4rem;
  justify-self: center;
}
.my-status__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-3); }
.my-status__head h2 { font-size: var(--fs-xl); margin-top: 0.15rem; }

.my-status__now {
  display: flex; align-items: center; gap: 0.6rem;
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: var(--fs-md);
}
.my-status__now i { width: 10px; height: 10px; border-radius: 50%; background: var(--text-mute); flex: 0 0 auto; }
.my-status__now b { font-family: var(--font-display); font-weight: 800; }
.my-status__now em { margin-inline-start: auto; font-style: normal; font-size: var(--fs-2xs); color: var(--text-mute); }
.my-status__now--ok {
  background: color-mix(in srgb, var(--venom) 12%, transparent);
  border-color: color-mix(in srgb, var(--venom) 34%, transparent);
}
.my-status__now--ok i { background: var(--venom); box-shadow: 0 0 0 4px color-mix(in srgb, var(--venom) 20%, transparent); }
.my-status__now--warn {
  background: color-mix(in srgb, var(--warn) 10%, transparent);
  border-color: color-mix(in srgb, var(--warn) 30%, transparent);
}
.my-status__now--warn i { background: var(--warn); }
.my-status__now--off { opacity: 0.75; }

.my-status__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.6rem; }
@media (min-width: 560px) { .my-status__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.my-status__opt-t, .my-status__opt-s { min-width: 0; overflow-wrap: anywhere; }

.my-status__opt {
  display: grid; gap: 0.15rem; justify-items: center; align-content: center;
  min-height: 84px; padding: var(--sp-3) 0.5rem; text-align: center;
  border: 1px solid var(--line-2); border-radius: var(--r);
  background: var(--card); cursor: pointer;
  transition: transform 0.16s var(--ease), border-color 0.18s var(--ease),
              background-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.my-status__opt:active { transform: scale(0.97); }
.my-status__opt-t { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-sm); }
.my-status__opt-s { font-size: var(--fs-2xs); color: var(--text-mute); }

.my-status__opt.is-active { border-color: var(--brand); background: var(--brand-soft); box-shadow: var(--ring); }
.my-status__opt--ok.is-active {
  border-color: var(--venom);
  background: color-mix(in srgb, var(--venom) 12%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--venom) 18%, transparent);
}
.my-status__opt--warn.is-active {
  border-color: var(--warn);
  background: color-mix(in srgb, var(--warn) 10%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--warn) 16%, transparent);
}
.my-status__opt--off.is-active {
  border-color: var(--text-mute);
  background: var(--surface-2);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--text-mute) 16%, transparent);
}



/* ------------------------------ 10. מערכת הבלוג ------------------------------ */

.blog-admin { display: grid; gap: var(--sp-5); }

.ba-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: var(--sp-5); }

.ba-card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.ba-card__media {
  position: relative;
  aspect-ratio: 16 / 7;
  background: var(--surface-2);                              /* fallback */
  background: linear-gradient(140deg,
    color-mix(in srgb, var(--brand) 12%, transparent), var(--surface-2));
  display: grid;
  place-items: center;
  font-size: 2.2rem;
  overflow: hidden;
}
.ba-card__media img { width: 100%; height: 100%; object-fit: cover; }
.ba-card__status,
.ba-card__star {
  position: absolute;
  top: 0.6rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--r-full);
  font-size: var(--fs-2xs);
  font-weight: 700;
  backdrop-filter: blur(8px);
}
.ba-card__status { inset-inline-start: 0.6rem; background: rgba(11, 15, 12, 0.72); color: #fff; }
.ba-card__status.is-live { background: color-mix(in srgb, var(--venom) 88%, #000); }
.ba-card__star { inset-inline-end: 0.6rem; background: var(--gold); color: #1b1403; }
.ba-card__body { display: grid; gap: 0.6rem; padding: var(--sp-5); }
.ba-card__body h4 { font-size: var(--fs-md); margin: 0; }
.ba-card__body p { font-size: var(--fs-sm); margin: 0; color: var(--text-dim); }
.ba-card__meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; font-size: var(--fs-2xs); color: var(--text-mute); }
.ba-card__seo { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }

.seo-pill {
  padding: 0.2rem 0.65rem;
  border-radius: var(--r-full);
  font-size: var(--fs-2xs);
  font-weight: 800;
}
.seo-pill--ok { background: var(--surface-2); color: var(--venom); }
.seo-pill--ok { background: color-mix(in srgb, var(--venom) 18%, transparent); }
.seo-pill--warn { background: var(--surface-2); color: var(--warn); }
.seo-pill--warn { background: color-mix(in srgb, var(--warn) 18%, transparent); }
.seo-pill--bad { background: var(--surface-2); color: var(--danger); }
.seo-pill--bad { background: color-mix(in srgb, var(--danger) 15%, transparent); }

.ba-chip {
  padding: 0.25rem 0.7rem;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  font-size: var(--fs-2xs);
  font-weight: 700;
  color: var(--text-dim);
}
.ba-chip.is-live { color: var(--venom); border-color: color-mix(in srgb, var(--venom) 40%, transparent); }
.ba-chip.is-draft { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }

/* עורך המאמר */
.ba-editor { display: grid; gap: var(--sp-5); }
.ba-editor__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  position: sticky;
  top: 0.5rem;
  z-index: 25;
}
.ba-editor__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: var(--sp-5);
  align-items: start;
}
.ba-editor__main { display: grid; gap: var(--sp-5); min-width: 0; }
.ba-editor__side { display: grid; gap: var(--sp-5); position: sticky; top: 5.5rem; }

.field--lg { gap: 0.5rem; }

.cover-picker { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--sp-4); }
.cover-picker__preview {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  border-radius: var(--r);
  background: var(--surface-2);
  border: 1px dashed var(--line-2);
  overflow: hidden;
  color: var(--text-mute);
  font-size: var(--fs-sm);
}
.cover-picker__preview img { width: 100%; height: 100%; object-fit: cover; }
.cover-picker__side { display: grid; gap: var(--sp-3); align-content: start; }

/* פאנל SEO */
.seo-panel { gap: var(--sp-4); }
.seo-sub {
  margin-top: 0.4rem;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--line);
  font-size: var(--fs-2xs);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-mute);
}

/* תצוגת גוגל */
.serp {
  padding: var(--sp-4);
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
  font-family: system-ui, Arial, sans-serif;
}
.serp__head { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.35rem; }
.serp__favicon {
  display: grid; place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--surface-2);
  font-size: 0.9rem;
}
.serp__meta { display: flex; flex-direction: column; line-height: 1.15; }
.serp__site { font-size: var(--fs-2xs); color: #202124; font-weight: 600; }
:root[data-theme="dark"] .serp__site { color: #dadce0; }
.serp__url { font-size: var(--fs-2xs); color: #4d5156; }
:root[data-theme="dark"] .serp__url { color: #9aa0a6; }
.serp__title {
  display: block;
  font-size: 1.05rem;
  line-height: 1.3;
  color: #1a0dab;
  text-decoration: none;
}
:root[data-theme="dark"] .serp__title { color: #8ab4f8; }
.serp__title:hover { text-decoration: underline; }
.serp__desc { margin-top: 0.25rem; font-size: var(--fs-xs); line-height: 1.5; color: #4d5156; }
:root[data-theme="dark"] .serp__desc { color: #bdc1c6; }

/* כרטיס OG */
.ogcard {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 0.6rem;
  padding: 0.6rem;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}
.ogcard__media {
  display: grid; place-items: center;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-xs);
  background: var(--surface-2);
  overflow: hidden;
  font-size: 1.4rem;
}
.ogcard__media img { width: 100%; height: 100%; object-fit: cover; }
.ogcard__body { display: grid; gap: 0.15rem; align-content: center; min-width: 0; }
.ogcard__host { font-size: var(--fs-2xs); text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-mute); }
.ogcard__body strong { font-size: var(--fs-sm); color: var(--text); }
.ogcard__body p { font-size: var(--fs-2xs); color: var(--text-mute); margin: 0; }

/* ציון וצ׳קליסט */
.seo-score {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4);
  border-radius: var(--r);
  background: var(--surface-2);
  margin-bottom: var(--sp-3);
}
.seo-score__ring {
  display: grid;
  place-items: center;
  width: 62px; height: 62px;
  border-radius: 50%;
  background: conic-gradient(var(--ring-c, var(--brand)) calc(var(--p, 0) * 1%), var(--track-bg) 0);
  position: relative;
  flex: 0 0 auto;
}
.seo-score__ring::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--surface);
}
.seo-score__ring b { position: relative; font-size: 1.1rem; font-family: var(--font-display); }
.seo-score--ok { --ring-c: var(--venom); }
.seo-score--warn { --ring-c: var(--warn); }
.seo-score--bad { --ring-c: var(--danger); }

.seo-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
.seo-checks li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 0.5rem;
  align-items: start;
  font-size: var(--fs-xs);
  color: var(--text-dim);
  margin: 0;
}
.seo-checks__mark { font-weight: 900; text-align: center; }
.seo-checks li.is-ok .seo-checks__mark { color: var(--venom); }
.seo-checks li.is-bad .seo-checks__mark { color: var(--danger); }
.seo-checks li.is-bad { color: var(--text-mute); }

.seo-json { margin-top: var(--sp-3); }
.seo-json summary {
  cursor: pointer;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--brand);
  padding: 0.4rem 0;
}
.seo-json pre {
  margin-top: 0.5rem;
  max-height: 320px;
  overflow: auto;
  padding: var(--sp-4);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  font-size: var(--fs-2xs);
  line-height: 1.5;
  direction: ltr;
  text-align: left;
  color: var(--text-dim);
}

/* העלאת תמונה */
.uploader { display: grid; gap: var(--sp-4); }
.uploader__drop {
  display: grid;
  place-items: center;
  gap: 0.4rem;
  padding: var(--sp-6);
  border: 2px dashed var(--line-2);
  border-radius: var(--r);
  background: var(--surface-2);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.25s var(--ease-out), background-color 0.25s var(--ease-out);
}
.uploader__drop:hover,
.uploader__drop.is-over {
  border-color: var(--brand);
  background: var(--brand-soft);                             /* fallback */
  background: color-mix(in srgb, var(--brand) 7%, transparent);
}
.uploader__ico { font-size: 1.8rem; }
.uploader__drop strong { font-size: var(--fs-sm); color: var(--text); }
.uploader__drop small { font-size: var(--fs-2xs); color: var(--text-mute); }
.uploader__preview {
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surface-2);
  max-height: 260px;
}
.uploader__preview img { width: 100%; object-fit: contain; }
.uploader__err { color: var(--danger); font-weight: 600; }

/* ------------------------------ 11. Mobile-First ------------------------------ */

@media (max-width: 1080px) {
  .ba-editor__grid { grid-template-columns: 1fr; }
  .ba-editor__side { position: static; }
  .studio-bar { position: static; }
  .ba-editor__bar { position: static; }
  .cover-picker { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  /* 🔴 שוליים אמיתיים בצדדים — ראו styles.css. 94vw השאיר ~12px בלבד. */
  .container { width: 100%; padding-inline: 1.25rem; }

  /* מגע: יעדי לחיצה גדולים ונוחים (44px+) */
  .btn { min-height: 44px; }
  .chip--filter { min-height: 38px; }
  .re__btn { min-width: 40px; height: 40px; }

  .studio-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .studio-tabs::-webkit-scrollbar { display: none; }
  .studio-tab { scroll-snap-align: start; white-space: nowrap; }

  .studio-group__body { padding: var(--sp-4); }
  .media-row { flex-direction: column; align-items: stretch; }
  .media-row__preview,
  .media-row__preview--wide { width: 100%; height: 160px; }
  .theme-preview__card { max-width: 100%; }

  .ba-grid { grid-template-columns: 1fr; }
  .ogcard { grid-template-columns: 72px 1fr; }
  .preset-grid { grid-template-columns: 1fr 1fr; }
  .color-grid { grid-template-columns: 1fr; }
  .toggle-grid { grid-template-columns: 1fr; }
  .segmented { width: 100%; justify-content: space-between; }

  /* תחושת אפליקציית נייטיב: סרגל זכוכית דביק במובייל */
  .site-nav {
    position: sticky;
    top: 0;
    z-index: 60;
  }

  .re__surface { padding: var(--sp-4); font-size: 1rem; }
  .article__body { font-size: 1rem; }
  .article__body h2 { margin-top: var(--sp-6); }
}

@media (max-width: 420px) {
  .btn--xl { width: 100%; }
  .studio-tab { padding: 0.55rem 0.8rem; font-size: var(--fs-xs); }
}

/* נגישות: כבדו העדפת צמצום תנועה */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .fx-motion .card:hover,
  .fx-motion .ba-card:hover,
  .fx-motion .btn:hover { transform: none !important; }
  .btn::before { display: none; }
}

/* כאשר המשתמש כיבה תנועה בסטודיו */
:root:not(.fx-motion) .fx-motion .card:hover,
:root:not(.fx-motion) .fx-motion .ba-card:hover { transform: none; }
:root:not(.fx-motion) .btn::before { display: none; }

/* ------------------------------ 12. נושא כהה ------------------------------ */

:root[data-theme="dark"] .glass {
  background: color-mix(in srgb, #0f1611 72%, transparent);
}

:root[data-theme="dark"] .card,
:root[data-theme="dark"] .ba-card { background: var(--card-bg); }

:root[data-theme="dark"] .serp { background: #202124; border-color: #3c4043; }
:root[data-theme="dark"] .uploader__drop { background: rgba(255, 255, 255, 0.03); }

@media print {
  .site-nav, .site-footer, #call-bar, .announce, .studio-tabs { display: none !important; }
  body { background: #fff; }
}
