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

:root {
  --brand: #0F6E56;
  --brand-dark: #084C3F;
  --brand-soft: #E1F5EE;
  --ink: #16201D;
  --muted: #66726E;
  --light: #8A9691;
  --bg: #FBF8F1;
  --surface: #fff;
  --surface-2: #F2F1ED;
  --surface-glass: rgba(255, 255, 255, .92);
  --surface-soft: rgba(255, 255, 255, .86);
  --warn-soft: #FDF6E7;
  --bg-glow: #DEF3EB;
  --line: rgba(22, 32, 29, .1);
  --line-strong: rgba(22, 32, 29, .18);
  --warn: #B87915;
  --danger: #A3382F;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px rgba(22, 32, 29, .08);
  --shadow-sm: 0 8px 24px rgba(22, 32, 29, .055);
  --focus: 0 0 0 3px rgba(15, 110, 86, .2);
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  font-family: Heebo, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  direction: rtl;
  background: radial-gradient(100% 70% at 50% -15%, var(--bg-glow) 0, var(--bg) 48%, var(--bg) 100%);
  color: var(--ink);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

.skip-link {
  position: absolute;
  right: 16px;
  top: -60px;
  background: var(--brand);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 999;
}

.skip-link:focus {
  top: 12px;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface-glass);
  backdrop-filter: blur(18px) saturate(170%);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: 1440px;
  position: relative;
  min-height: 78px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Right: brand */

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(145deg, #15916f, var(--brand-dark));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 850;
  box-shadow: 0 10px 24px rgba(15, 110, 86, .22);
}

.brand-text {
  font-size: 22px;
  font-weight: 850;
  letter-spacing: -.02em;
}

/* Middle: navigation */

/* הניווט יושב בהמבורגר בכל רוחב מסך — ההדר נשאר ללוגו ולפעולות בלבד */
.nav-links {
  display: none;
  position: absolute;
  top: calc(100% - 4px);
  inset-inline-start: 16px;
  z-index: 200;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  min-width: 224px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.nav-links.open {
  display: flex;
}

.nav-links .nav-link {
  justify-content: flex-start;
  border-radius: var(--radius-sm);
  min-height: 40px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}

.nav-link:hover {
  background: rgba(15, 110, 86, .07);
  color: var(--brand-dark);
}

.nav-link.active {
  background: var(--brand-soft);
  color: var(--brand-dark);
  box-shadow: inset 0 0 0 1px rgba(15, 110, 86, .12);
}

.nav-link.admin-link {
  color: var(--brand-dark);
  font-weight: 900;
}

.nav-link.admin-link.active {
  background: var(--brand-soft);
}

/* Left: actions */

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  margin-inline-start: auto;
  white-space: nowrap;
}

.primary-actions,
.auth-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 19px;
  line-height: 1;
  transition: background .16s ease, border-color .16s ease;
}

.menu-toggle:hover {
  background: var(--surface);
  border-color: var(--brand);
}

.menu-toggle:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

/* צ'יפ המשתמש: אווטאר, אימייל וכפתור יציאה כיחידה אחת בגובה 44 —
   אותו גובה של שאר כדורי ההדר. קודם זה היה ערימה אנכית לצד כדורים,
   ושלושה גבהים שונים בשורה אחת נראים שבורים. */

.user-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  padding-inline: 8px 5px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-soft);
  flex: 0 1 auto;
  min-width: 0;
}

.user-chip-avatar {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(145deg, #15916F, var(--brand-dark));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 850;
  font-size: 14px;
  text-transform: uppercase;
}

.user-email {
  min-width: 0;
  max-width: 148px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  direction: ltr;
  text-align: left;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1;
}

.user-chip-logout {
  flex: 0 0 auto;
  height: 32px;
  padding-inline: 12px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  transition: background .16s ease, color .16s ease;
}

.user-chip-logout:hover {
  background: var(--surface);
  color: var(--danger);
}

.user-chip-logout:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 17px;
  font-weight: 800;
  font-size: 14px;
  transition: .16s;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn:focus-visible,
.nav-link:focus-visible,
input:focus,
select:focus,
textarea:focus {
  outline: none;
  box-shadow: var(--focus);
}

.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-soft {
  background: var(--surface-soft);
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-soft:hover {
  border-color: rgba(15, 110, 86, .32);
  color: var(--brand-dark);
}

.btn-ghost {
  background: var(--surface-soft);
}

.btn-small {
  font-size: 13px;
  padding: 8px 13px;
}

.btn-block {
  width: 100%;
}

.nav-actions .btn {
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 850;
  box-shadow: none;
}

.nav-actions .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(22, 32, 29, .08);
}

/* ==========================================================================
   Main layout
   ========================================================================== */

.app-shell {
  max-width: 1180px;
  margin: auto;
  padding: 26px 22px 70px;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, var(--surface-glass), var(--brand-soft));
  border: 1px solid rgba(15, 110, 86, .12);
  border-radius: 28px;
  padding: 46px 34px 30px;
  box-shadow: var(--shadow);
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -90px -130px auto;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(15, 110, 86, .16), transparent 65%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, .88fr);
  gap: 34px;
  align-items: center;
  position: relative;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border: 1px solid rgba(15, 110, 86, .15);
  padding: 7px 13px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(34px, 4.45vw, 52px);
  line-height: 1.08;
  letter-spacing: -.04em;
  margin-bottom: 16px;
}

.hero p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 620px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.hero-note {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

.hero-note span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

/* Positioning strip */

.positioning-strip {
  margin-top: 18px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 15px 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.positioning-strip strong {
  color: var(--brand-dark);
}

/* Match panel */

.match-panel {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.panel-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.panel-top h3 {
  font-size: 19px;
}

.panel-top p {
  font-size: 13px;
  line-height: 1.45;
}

.mini-score {
  min-width: auto;
  height: auto;
  border-radius: 999px;
  background: var(--brand-soft);
  border: 1px solid rgba(15, 110, 86, .18);
  color: var(--brand-dark);
  font-weight: 800;
  padding: 8px 13px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.panel-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  margin-top: 10px;
}

.panel-row strong {
  display: block;
  font-size: 14px;
}

.panel-row span {
  font-size: 12px;
  color: var(--muted);
}

.icon {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
  margin-top: 42px;
}

.section-head {
  max-width: 720px;
  margin-bottom: 18px;
}

.section-head>span {
  display: block;
  color: var(--brand);
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 5px;
}

.section-head h2 {
  font-size: 30px;
  line-height: 1.16;
  letter-spacing: -.025em;
}

.section-head p {
  color: var(--muted);
  line-height: 1.65;
  margin-top: 8px;
}

/* ==========================================================================
   Trust
   ========================================================================== */

.trust-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.trust-bar div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  display: grid;
  gap: 4px;
  box-shadow: var(--shadow-sm);
}

.trust-bar .icon {
  color: var(--brand);
  margin-bottom: 4px;
}

.trust-bar strong {
  font-size: 16px;
}

.trust-bar span {
  font-size: 13px;
  color: var(--muted);
}

/* ==========================================================================
   How it works
   ========================================================================== */

.how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 19px;
  box-shadow: var(--shadow-sm);
}

.step-card span {
  width: 30px;
  height: 30px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 10px;
}

.step-card strong {
  font-size: 16px;
}

.step-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  margin-top: 6px;
}

/* ==========================================================================
   Cards and grids
   ========================================================================== */

.category-grid,
.mentor-grid,
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 16px;
}

.category-card,
.article-card,
.content-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.category-card {
  cursor: pointer;
  transition: .16s;
}

.category-card:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 110, 86, .35);
}

.category-card .icon {
  color: var(--brand);
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
}

.category-card strong {
  display: block;
  font-size: 17px;
}

.category-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  margin-top: 6px;
}

/* ==========================================================================
   Mentor cards
   ========================================================================== */

.mentor-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mentor-card:hover {
  border-color: rgba(15, 110, 86, .28);
  box-shadow: var(--shadow);
}

.mentor-card-main {
  display: block;
}

.mentor-top {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}

.avatar,
.avatar-img {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-weight: 800;
  flex: 0 0 auto;
  object-fit: cover;
}

.avatar.big,
.avatar-img.big {
  width: 108px;
  height: 108px;
  border-radius: 28px;
  font-size: 34px;
}

.av-1 {
  background: #9FE1CB;
  color: #063E34;
}

.av-2 {
  background: #F5C4B3;
  color: #58200F;
}

.av-3 {
  background: #CECBF6;
  color: #2D2965;
}

.av-4 {
  background: #F4C0D1;
  color: #541A2F;
}

.av-5 {
  background: #FAC775;
  color: #4F2C04;
}

.av-6 {
  background: #B5D4F4;
  color: #07335C;
}

.mentor-title {
  min-width: 0;
}

.mentor-title h3 {
  font-size: 18px;
  line-height: 1.15;
  margin: 5px 0 3px;
}

.mentor-title p {
  color: var(--muted);
  font-size: 13px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.badge .icon {
  width: 14px;
  height: 14px;
}

.verified {
  background: var(--brand-soft);
  color: var(--brand-dark);
  border: 1px solid rgba(15, 110, 86, .16);
}

.available {
  background: var(--warn-soft);
  color: #80550F;
  border: 1px solid rgba(184, 121, 21, .18);
}

.muted {
  background: var(--surface-2);
  color: var(--muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 13px 0;
}

.tag-list span {
  font-size: 12px;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: 999px;
}

.mentor-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.mentor-meta span:first-child {
  color: var(--warn);
  font-weight: 800;
}

.mentor-card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.match-reasons {
  background: var(--surface-2);
  border: 1px solid rgba(15, 110, 86, .12);
  border-radius: 16px;
  padding: 12px;
  margin-top: 14px;
}

.match-reasons strong {
  display: block;
  font-size: 12px;
  color: var(--brand-dark);
  margin-bottom: 7px;
}

.match-reasons span {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.match-reasons .icon {
  width: 15px;
  height: 15px;
  color: var(--brand);
}

/* ==========================================================================
   Forms and filters
   ========================================================================== */

.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--ink);
}

.toolbar input {
  max-width: 340px;
}

.toolbar select {
  max-width: 210px;
}

/* ==========================================================================
   Profile
   ========================================================================== */

.profile-hero {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 26px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
}

.profile-info h1 {
  font-size: 36px;
  letter-spacing: -.03em;
}

.profile-info p {
  color: var(--muted);
  line-height: 1.6;
}

.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 13px 0;
  color: var(--muted);
  font-size: 14px;
}

.profile-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.two-col {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 18px;
}

.list-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.list-card h3 {
  margin-bottom: 12px;
}

.clean-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.clean-list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--muted);
  line-height: 1.5;
}

.clean-list .icon {
  color: var(--brand);
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.review {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.review:first-child {
  border-top: 0;
}

.review-head {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  margin-bottom: 4px;
}

.review p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

/* ==========================================================================
   Wizard
   ========================================================================== */

.wizard {
  max-width: 720px;
  margin: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.progress {
  display: flex;
  gap: 8px;
  margin: 18px 0 24px;
}

.progress span {
  height: 5px;
  flex: 1;
  border-radius: 99px;
  background: var(--surface-2);
}

.progress span.on {
  background: var(--brand);
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.option {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 15px;
  text-align: right;
  background: var(--surface);
}

.option:hover,
.option.selected {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.wizard-nav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 24px;
}

.empty {
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: 20px;
  padding: 34px;
  text-align: center;
  color: var(--muted);
}

/* ==========================================================================
   Dashboard
   ========================================================================== */

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.stat strong {
  font-size: 32px;
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

/* ==========================================================================
   Toast
   ========================================================================== */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) translateY(120%);
  opacity: 0;
  z-index: 500;
  background: var(--brand-dark);
  color: white;
  padding: 13px 19px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  transition: .25s;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Articles and FAQ
   ========================================================================== */

.article-card strong {
  font-size: 18px;
}

.article-card p {
  color: var(--muted);
  margin-top: 8px;
}

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.faq summary {
  font-weight: 800;
  cursor: pointer;
}

.faq p {
  color: var(--muted);
  line-height: 1.65;
  margin-top: 10px;
}

/* ==========================================================================
   Join mentor
   ========================================================================== */

.join-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.form-card form {
  display: grid;
  gap: 13px;
}

.small-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
}

/* ==========================================================================
   Availability
   ========================================================================== */

.availability {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.availability span {
  background: var(--brand-soft);
  color: var(--brand-dark);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 800;
}

/* Logged-out header: force auth buttons to left */

.logged-out-header {
  justify-content: space-between !important;
}

.logged-out-header .logged-out-actions {
  margin-right: auto !important;
  margin-left: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

/* ==========================================================================
   Intro splash popup — random variant system (shared shell + 3 variants)
   ========================================================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.intro-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: radial-gradient(120% 120% at 50% 45%, #ffffff 0%, #f4f3f0 55%, #e4e3df 100%);
  overflow: hidden;
  animation: splashFadeIn .28s ease both;
}

.intro-splash-hide {
  animation: splashFadeOut .42s ease forwards;
}

.intro-splash-close {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 6;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(28, 43, 36, .14);
  background: var(--surface-soft);
  color: #1c2b24;
  font-size: 24px;
  line-height: 1;
}

/* shared network behind every variant */

.sp-net {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .24;
}

.sp-net path {
  stroke: #2f7d5c;
  stroke-width: 1.4;
  fill: none;
  stroke-dasharray: 2600;
  stroke-dashoffset: 2600;
  animation: spNetDraw 2.6s ease .2s forwards;
}

.sp-net circle {
  fill: #2f7d5c;
  opacity: 0;
  animation: spNodeIn .5s ease-out both;
}

.sp-net circle:nth-of-type(odd) {
  animation-delay: .4s;
}

.sp-net circle:nth-of-type(even) {
  animation-delay: .7s;
}

@keyframes spNetDraw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes spNodeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: .5;
  }
}

/* shared logo lockup */

.sp-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.sp-logo .mark {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(145deg, #15916f, #084C3F);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 30px;
  box-shadow: 0 12px 30px rgba(15, 110, 86, .26);
}

.sp-logo .word {
  font-family: 'Frank Ruhl Libre', serif;
  font-weight: 900;
  font-size: clamp(36px, 6vw, 60px);
  color: var(--ink);
  letter-spacing: -.02em;
}

/* ---------- Variant 1: flying cards ---------- */

.sp-flying {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 34px;
  width: min(880px, 92vw);
  text-align: center;
}

.sp-kicker {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: .04em;
  color: #245f47;
  margin-bottom: 12px;
}

.sp-title-fly {
  font-family: 'Frank Ruhl Libre', serif;
  font-weight: 900;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.14;
  letter-spacing: -.03em;
}

.sp-title-fly span {
  display: block;
}

.sp-title-fly strong {
  color: #2f7d5c;
}

.sp-cards {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 720px;
}

.sp-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid rgba(0, 0, 0, .06);
  box-shadow: 0 14px 30px rgba(28, 43, 36, .10);
  animation: spFlyLoop 7s var(--d, 0s) infinite both;
}

.sp-card:nth-child(1) {
  --tx: -40vw;
  --ty: -30vh;
  --r: -16deg;
  --d: 0s;
}

.sp-card:nth-child(2) {
  --tx: 40vw;
  --ty: -34vh;
  --r: 13deg;
  --d: .28s;
}

.sp-card:nth-child(3) {
  --tx: -34vw;
  --ty: 34vh;
  --r: 18deg;
  --d: .56s;
}

.sp-card:nth-child(4) {
  --tx: 42vw;
  --ty: 30vh;
  --r: -12deg;
  --d: .84s;
}

.sp-person {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: end center;
  color: #c9c3b4;
}

.sp-card figcaption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  background: #0F6E56;
  color: #fff;
  text-align: center;
  padding: 8px 4px;
}

.sp-card figcaption .n {
  font-weight: 800;
  font-size: 13px;
}

.sp-card figcaption span {
  display: block;
  font-size: 11px;
  opacity: .9;
}

.sp-small {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}

@keyframes spFlyLoop {
  0% {
    opacity: 0;
    transform: translate(var(--tx), var(--ty)) rotate(var(--r)) scale(.45);
  }

  10% {
    opacity: 1;
    transform: translate(0, 0) rotate(0) scale(1);
  }

  82% {
    opacity: 1;
    transform: translate(0, 0) rotate(0) scale(1);
  }

  93% {
    opacity: 0;
    transform: translate(calc(var(--tx) * -1), var(--ty)) rotate(calc(var(--r) * -1)) scale(.45);
  }

  100% {
    opacity: 0;
    transform: translate(var(--tx), var(--ty)) rotate(var(--r)) scale(.45);
  }
}

/* ---------- Variant 2: kinetic lines ---------- */

.sp-stage {
  position: relative;
  z-index: 2;
  width: min(900px, 92vw);
  height: 320px;
  display: grid;
  place-items: center;
  text-align: center;
}

.sp-line {
  position: absolute;
  font-family: 'Frank Ruhl Libre', serif;
  font-weight: 900;
  color: #1c2b24;
  line-height: 1.1;
  opacity: 0;
  letter-spacing: -.02em;
}

.sp-line .accent {
  color: #0F6E56;
}

@keyframes spLineCycle {
  0% {
    opacity: 0;
    transform: translateY(26px);
  }

  8% {
    opacity: 1;
    transform: translateY(0);
  }

  26% {
    opacity: 1;
    transform: translateY(0);
  }

  34% {
    opacity: 0;
    transform: translateY(-26px);
  }

  100% {
    opacity: 0;
    transform: translateY(-26px);
  }
}

.sp-line:nth-child(1) {
  font-size: clamp(40px, 8vw, 84px);
  animation: spLineCycle 8s .2s forwards;
}

.sp-line:nth-child(2) {
  font-size: clamp(36px, 7vw, 72px);
  animation: spLineCycle 8s 2s forwards;
}

.sp-line:nth-child(3) {
  font-size: clamp(36px, 7vw, 72px);
  animation: spLineCycle 8s 3.8s forwards;
}

.sp-line:nth-child(4) {
  font-size: clamp(34px, 6.5vw, 64px);
  animation: spLineCycle 8s 5.6s forwards;
}

.sp-final {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
}

.sp-final-show {
  animation: spFinalIn 1.1s 7.2s forwards;
}

@keyframes spFinalIn {
  from {
    opacity: 0;
    transform: scale(.94);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.sp-tag {
  position: absolute;
  bottom: -54px;
  left: 0;
  right: 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
}

/* ---------- Variant 3: word build ---------- */

.sp-wrap {
  text-align: center;
  width: min(900px, 92vw);
  position: relative;
  z-index: 2;
}

.sp-vc-kicker {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .22em;
  color: #1D9E75;
  opacity: 0;
  animation: spFade .8s .3s forwards;
  margin-bottom: 26px;
}

.sp-vc-head {
  font-family: 'Frank Ruhl Libre', serif;
  font-weight: 900;
  font-size: clamp(38px, 7vw, 80px);
  line-height: 1.18;
  color: var(--ink);
  letter-spacing: -.02em;
}

.sp-vc-head .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: spWord .6s forwards;
}

.sp-vc-head .accent {
  color: #0F6E56;
}

.sp-vc-head .w:nth-child(1) {
  animation-delay: .9s;
}

.sp-vc-head .w:nth-child(2) {
  animation-delay: 1.15s;
}

.sp-vc-head .w:nth-child(3) {
  animation-delay: 1.4s;
}

.sp-vc-head .w:nth-child(4) {
  animation-delay: 1.65s;
}

.sp-vc-head .w:nth-child(5) {
  animation-delay: 1.95s;
}

.sp-vc-head .w:nth-child(6) {
  animation-delay: 2.25s;
}

.sp-vc-sub {
  margin-top: 30px;
  font-size: clamp(16px, 2.4vw, 21px);
  color: var(--muted);
  font-weight: 500;
  opacity: 0;
  animation: spFade 1s 3s forwards;
}

.sp-vc-logo {
  margin-top: 40px;
  opacity: 0;
  animation: spFade 1s 3.6s forwards;
}

@keyframes spWord {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes spFade {
  to {
    opacity: 1;
  }
}

@keyframes splashFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes splashFadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@media (max-width: 760px) {
  .sp-cards {
    grid-template-columns: repeat(2, 1fr);
    max-width: 360px;
  }

  .sp-stage {
    height: 280px;
  }
}

/* Center footer content */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.footer-inner strong {
  color: var(--ink);
  font-weight: 900;
}

.footer-inner a {
  color: var(--muted);
  font-weight: 700;
}

.footer-inner a:hover {
  color: var(--brand-dark);
}


/* ==========================================================================
   Editorial typography - Frank Ruhl Libre for display, Heebo for UI
   ========================================================================== */

.hero h1,
.section-head h2,
.profile-info h1,
.wizard h1,
.intro-title {
  font-family: 'Frank Ruhl Libre', Heebo, serif;
  font-weight: 700;
  letter-spacing: -.01em;
}

.hero h1 {
  font-weight: 800;
  line-height: 1.12;
}

/* ==========================================================================
   Skeleton loading
   ========================================================================== */

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
  padding: 40px 0;
}

.skeleton-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.sk-line {
  border-radius: 8px;
  background: linear-gradient(90deg,
      rgba(22, 32, 29, .06) 25%,
      rgba(22, 32, 29, .12) 50%,
      rgba(22, 32, 29, .06) 75%);
  background-size: 200% 100%;
  animation: sk-shimmer 1.4s infinite;
}

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

.sk-avatar {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  margin-bottom: 14px;
}

.sk-title {
  height: 18px;
  width: 60%;
  margin-bottom: 10px;
}

.sk-text {
  height: 13px;
  width: 90%;
  margin-bottom: 8px;
}

.sk-text.short {
  width: 45%;
  margin-bottom: 0;
}

/* ==========================================================================
   Match Report
   ========================================================================== */

.report {
  max-width: 980px;
  margin: 0 auto;
}

.report-head {
  text-align: center;
  margin-bottom: 28px;
}

.report-head h1 {
  font-family: 'Frank Ruhl Libre', Heebo, serif;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -.01em;
  margin-top: 14px;
}

.report-prefs {
  color: var(--muted);
  font-size: 14px;
  margin-top: 10px;
  font-weight: 700;
}

.report-goal {
  color: var(--brand-dark);
  font-size: 16px;
  margin-top: 8px;
  font-style: italic;
}

/* Top match card */

.report-top-match {
  background: var(--surface);
  border: 1px solid rgba(15, 110, 86, .16);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 30px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 30px;
  align-items: start;
}

/* Score ring — the signature element */

.report-score-wrap {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.report-score {
  position: relative;
  width: 150px;
  height: 150px;
}

.report-score svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.report-score .ring-bg {
  fill: none;
  stroke: rgba(22, 32, 29, .07);
  stroke-width: 8;
}

.report-score .ring-fg {
  fill: none;
  stroke: var(--brand);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 326.7;
  /* 2πr, r=52 */
  stroke-dashoffset: calc(326.7 - (326.7 * var(--pct) / 100));
  animation: ringFill 1.1s ease .2s backwards;
}

@keyframes ringFill {
  from {
    stroke-dashoffset: 326.7;
  }
}

.report-score-inner {
  position: absolute;
  inset: 14px;
  display: grid;
  place-items: center;
}

.report-score-inner .avatar,
.report-score-inner .avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  font-size: 36px;
}

.report-score-label {
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  padding: 7px 16px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(15, 110, 86, .25);
}

/* Top match info */

.report-top-info h2 {
  font-family: 'Frank Ruhl Libre', Heebo, serif;
  font-size: 32px;
  font-weight: 800;
  margin: 10px 0 4px;
}

.report-headline {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 16px;
}

.report-reasons {
  background: var(--surface-2);
  border: 1px solid rgba(15, 110, 86, .12);
  border-radius: 16px;
  padding: 14px;
}

.report-reasons strong {
  display: block;
  color: var(--brand-dark);
  font-size: 13px;
  margin-bottom: 8px;
}

.report-reasons span {
  display: flex;
  gap: 7px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  margin-top: 5px;
}

.report-reasons .icon {
  width: 15px;
  height: 15px;
  color: var(--brand);
}

.report-block {
  margin-top: 16px;
}

.report-block strong {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
}

.report-block ul,
.report-block ol {
  margin: 0;
  padding-right: 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  display: grid;
  gap: 4px;
}

.report-notfor strong {
  color: var(--danger);
}

.report-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

/* Runners + more */

.report-runners {
  margin-top: 34px;
}

.report-runners h3 {
  font-size: 20px;
  margin-bottom: 14px;
}

.report-more {
  margin-top: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}

.report-more summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--brand-dark);
}

.report-redo {
  text-align: center;
  margin-top: 26px;
  font-size: 14px;
}

.report-redo a {
  color: var(--muted);
  text-decoration: underline;
}

.report-redo a:hover {
  color: var(--brand-dark);
}

@media (max-width: 760px) {
  .report-top-match {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 22px;
  }

  .report-top-info {
    width: 100%;
  }

  .report-reasons span {
    justify-content: center;
  }

  .report-block ul,
  .report-block ol {
    text-align: right;
  }

  .report-actions {
    flex-direction: column;
  }

  .report-actions .btn {
    width: 100%;
  }
}


/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1180px) {
  .nav-inner {
    padding-inline: 22px;
    gap: 14px;
  }

  .nav-links {
    gap: 5px;
  }

  .nav-link {
    padding-inline: 11px;
    font-size: 13px;
  }

  .nav-actions .btn {
    padding-inline: 14px;
    font-size: 13px;
  }

  .user-chip {
    max-width: 210px;
  }

  .user-email {
    max-width: 135px;
  }
}

@media (max-width: 860px) {
  .nav-inner {
    flex-wrap: wrap;
    min-height: auto;
    padding: 12px 16px;
  }

  /* בטלפון הכל נכנס להמבורגר. התפריט חוזר לזרימה ולא נשאר חלונית צפה:
     הדר עוטף שגדל, ומעליו חלונית ממוקמת מוחלטת, נלחמים זה בזה. */
  .nav-links {
    position: static;
    inset: auto;
    width: 100%;
    min-width: 0;
    margin-top: 8px;
    padding: 6px;
    box-shadow: none;
  }

  .nav-actions {
    display: none;
    width: 100%;
    margin-inline-start: 0;
  }

  .nav-actions.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 8px;
  }

  .primary-actions,
  .auth-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .nav-actions .btn,
  .user-chip {
    width: 100%;
    max-width: none;
  }

  .user-chip {
    justify-content: space-between;
  }

  .user-email {
    max-width: 100%;
  }

  .user-email {
    max-width: none;
  }

  .hero-grid,
  .two-col,
  .join-grid,
  .profile-hero,
  .trust-bar,
  .how-steps {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    padding: 34px 20px;
  }

  .toolbar input,
  .toolbar select {
    max-width: none;
  }

  .profile-info h1 {
    font-size: 30px;
  }


}

@media (max-width: 560px) {
  .app-shell {
    padding-inline: 14px;
    padding-top: 16px;
  }

  .brand-text {
    font-size: 18px;
  }

  .logo-mark {
    width: 36px;
    height: 36px;
  }

  .hero {
    padding: 28px 18px 22px;
    border-radius: 22px;
  }

  .hero h1 {
    font-size: 34px;
    line-height: 1.12;
  }

  .hero p {
    font-size: 16px;
    line-height: 1.6;
  }

  .hero-grid {
    gap: 24px;
  }

  .hero-note {
    flex-direction: column;
    gap: 7px;
  }

  .match-panel {
    padding: 16px;
    border-radius: 20px;
  }

  .panel-top {
    flex-direction: column-reverse;
    align-items: flex-start;
  }

  .mini-score {
    font-size: 12px;
    padding: 7px 11px;
  }

  .panel-row {
    align-items: flex-start;
  }

  .trust-bar,
  .how-steps {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .profile-actions,
  .mentor-card-actions,
  .wizard-nav {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .section {
    margin-top: 34px;
  }

  .section-head h2 {
    font-size: 25px;
  }

  .section-head p {
    font-size: 14px;
  }

  .category-grid,
  .mentor-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .profile-hero {
    padding: 20px;
  }

  .avatar.big,
  .avatar-img.big {
    width: 90px;
    height: 90px;
    border-radius: 22px;
    font-size: 28px;
  }

  .profile-info h1 {
    font-size: 28px;
  }

  .wizard {
    padding: 20px;
    border-radius: 22px;
  }

  .positioning-strip {
    font-size: 13px;
    padding: 13px 15px;
  }
}

/* ==========================================================================
   Categories — 3x3 centered on desktop
   ========================================================================== */

@media (min-width: 761px) {
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 940px;
    margin-inline: auto;
  }
}

/* ==========================================================================
   Mobile compaction — phones get horizontal, denser cards
   ========================================================================== */

@media (max-width: 760px) {

  /* Trust bar: icon beside text, half the height */
  .trust-bar {
    gap: 10px;
  }

  .trust-bar div {
    grid-template-columns: auto 1fr;
    column-gap: 14px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 16px;
  }

  .trust-bar .icon {
    grid-row: 1 / span 2;
    margin-bottom: 0;
    width: 26px;
    height: 26px;
  }

  .trust-bar strong {
    font-size: 15px;
  }

  .trust-bar span {
    font-size: 12.5px;
  }

  /* How it works: number beside text */
  .how-steps {
    gap: 10px;
  }

  .step-card {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 14px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 16px;
  }

  .step-card span {
    grid-row: 1 / span 2;
    margin-bottom: 0;
    width: 34px;
    height: 34px;
  }

  .step-card strong {
    font-size: 15px;
  }

  .step-card p {
    margin-top: 2px;
    font-size: 12.5px;
    line-height: 1.5;
  }

  /* Categories: compact 2-column chips */
  .category-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .category-card {
    padding: 14px;
    border-radius: 16px;
  }

  .category-card .icon {
    width: 22px;
    height: 22px;
    margin-bottom: 8px;
  }

  .category-card strong {
    font-size: 14px;
  }

  .category-card p {
    display: none;
  }

  /* Articles: tighter */
  .article-card {
    padding: 16px;
    border-radius: 16px;
  }

  .article-card strong {
    font-size: 16px;
  }

  .article-card p {
    font-size: 13px;
    margin-top: 6px;
  }

  /* Overall density */
  .section {
    margin-top: 30px;
  }

  .section-head {
    margin-bottom: 12px;
  }

  .positioning-strip {
    font-size: 12.5px;
    padding: 12px 14px;
  }
}

/* ==========================================================================
   Scroll reveal — elements fade in as they enter the viewport
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .65s ease, transform .65s ease;
  }

  .reveal.reveal-in {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Article "coming soon"
   ========================================================================== */

.article-soon {
  position: relative;
  opacity: .9;
}

.article-soon .soon-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  border: 1px solid rgba(15, 110, 86, .18);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 999px;
}

/* התג ממוקם absolute מעל הכרטיס, אז הקיקר צריך לפנות לו מקום פיזי
   בצד שמאל — אחרת "מדריך קצר · 4 דק׳" נחתך מתחתיו. */
.article-soon .kicker {
  padding-left: 72px;
}

/* ==========================================================================
   Lead briefs — admin view of an incoming enquiry, formatted to forward
   ========================================================================== */

.lead-briefs {
  display: grid;
  gap: 14px;
}

.lead-brief {
  background: var(--surface);
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.lead-brief.lead-new {
  border-inline-start-color: var(--brand);
}

.lead-brief.lead-contacted {
  border-inline-start-color: var(--warn);
}

.lead-brief.lead-closed {
  opacity: .72;
}

.lead-brief-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.lead-brief-head h3 {
  font-size: 19px;
  margin-top: 4px;
}

.lead-contact {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.lead-contact a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 14px;
}

.lead-contact a:hover {
  text-decoration: underline;
}

.lead-facts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.lead-facts span {
  background: var(--brand-soft);
  color: var(--brand-dark);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 800;
}

.lead-block {
  margin-top: 14px;
}

.lead-block strong {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
}

.lead-block p {
  line-height: 1.65;
  white-space: pre-wrap;
}

.lead-brief .btn {
  margin-top: 16px;
}

/* מה שנעביר למנטור, מוצג למשתמש בטופס הפנייה */
.lead-context {
  background: var(--brand-soft);
  border: 1px solid rgba(15, 110, 86, .15);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: grid;
  gap: 4px;
}

.lead-context strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-dark);
  font-size: 13px;
}

.lead-context span {
  color: var(--muted);
  font-size: 13px;
}

/* ==========================================================================
   Google sign-in
   ========================================================================== */

.btn-google {
  gap: 10px;
  background: var(--surface);
  border-color: var(--line-strong);
  font-weight: 700;
}

.btn-google:hover {
  background: #fafafa;
}

.btn-google svg {
  flex: 0 0 auto;
}

.btn-google:disabled {
  opacity: .6;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--light);
  font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ===== דפי מסמכים (privacy.html, terms.html) =====
   דפים סטטיים שלא עוברים דרך הראוטר, ולכן הם מביאים את הפריסה שלהם. */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 20px 80px;
  line-height: 1.75;
}

.legal-back {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--brand);
  font-weight: 600;
  font-size: 15px;
}

.legal-back:hover {
  text-decoration: underline;
}

.legal-page h1 {
  font-family: "Frank Ruhl Libre", Georgia, serif;
  font-size: clamp(30px, 5vw, 40px);
  font-weight: 800;
  letter-spacing: -.01em;
}

.legal-updated {
  margin-top: 6px;
  color: var(--light);
  font-size: 14px;
}

.legal-lead {
  margin-top: 22px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  color: var(--muted);
}

.legal-page h2 {
  margin-top: 42px;
  font-family: "Frank Ruhl Libre", Georgia, serif;
  font-size: 22px;
  font-weight: 700;
}

.legal-page h3 {
  margin-top: 26px;
  font-size: 16px;
  font-weight: 700;
  color: var(--brand-dark);
}

.legal-page p {
  margin-top: 12px;
  color: var(--muted);
}

.legal-page ul {
  margin: 12px 22px 0 0;
  color: var(--muted);
}

.legal-page li {
  margin-top: 7px;
}

.legal-page strong {
  color: var(--ink);
}

.legal-callout {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--warn-soft);
  border: 1px solid rgba(184, 121, 21, .28);
  border-right: 4px solid var(--warn);
}

.legal-link {
  color: var(--brand);
  font-weight: 600;
}

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

.legal-footer {
  display: flex;
  gap: 20px;
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

/* ===== מסך אדמין: מדדים, מעקב, קישור חשבונות ===== */
/* ארבע עמודות ולא auto-fit: יש שמונה אריחים, ו-auto-fit היה מייצר שבע
   בשורה ואריח יתום בשנייה. 4×2 נשאר מאוזן בכל רוחב מסך. */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 900px) {
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}

.stat-tile strong {
  display: block;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.5px;
}

.stat-tile span {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted);
}

.stat-tile small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--light);
}

/* צהוב רק כשיש מה לעשות. אפס פניות ממתינות הוא מצב טוב, לא התראה. */
.stat-tile.warn {
  background: var(--warn-soft);
  border-color: rgba(184, 121, 21, .3);
}

.stat-tile.warn strong {
  color: var(--warn);
}

.lead-brief.lead-stale {
  border-right: 4px solid var(--warn);
}

.lead-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.link-mentor-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.link-mentor-form input {
  flex: 1;
  min-width: 200px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.link-mentor-form input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--focus);
}

/* כרטיס קומפקטי: שורת מעקב וכרטיס קישור-חשבון לא נושאים גוש טקסט כמו
   תדריך מלא, ולכן הכותרת והפעולות יושבות באותה שורה במקום זו מתחת לזו. */
.lead-brief.compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 18px;
}

.lead-brief.compact .lead-brief-head {
  flex: 1;
  min-width: 200px;
}

.lead-brief.compact .lead-brief-head h3 {
  font-size: 17px;
}

.lead-brief.compact .lead-actions,
.lead-brief.compact .link-mentor-form {
  margin-top: 0;
}

.lead-brief.compact .small-note {
  flex-basis: 100%;
  margin-top: 0;
}

/* ===== פניות מתקפלות + רשימה מוגבלת בגלילה ===== */
/* גובה הרשימה נשלט ממשתנה אחד, כדי שיהיה קל לכוון כמה שורות נכנסות. */
.scroll-list {
  --rows-visible: 3;
  --row-height: 110px;
  /* +14px לרווח בין כרטיסים, +44 כדי שקצה הכרטיס הרביעי יציץ —
     זה מה שמסמן למשתמש שיש עוד ושאפשר לגלול. */
  max-height: calc(var(--rows-visible) * (var(--row-height) + 14px) + 44px);
  overflow-y: auto;
  overscroll-behavior: contain;
  /* מרווח לפס הגלילה כדי שהוא לא ידרוס את קצה הכרטיסים */
  padding-inline-end: 6px;
}

.scroll-list::-webkit-scrollbar {
  width: 8px;
}

.scroll-list::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 999px;
}

.scroll-list::-webkit-scrollbar-track {
  background: transparent;
}

details.lead-brief {
  padding: 0;
  overflow: hidden;
}

.lead-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
  /* ברירת המחדל של הדפדפן היא משולש שמצמיד את התוכן שמאלה ושובר RTL */
  user-select: none;
}

.lead-summary::-webkit-details-marker {
  display: none;
}

.lead-summary:hover {
  background: rgba(15, 110, 86, .035);
}

.lead-summary h3 {
  font-size: 17px;
  margin-top: 2px;
}

.lead-chevron {
  flex: 0 0 auto;
  font-size: 20px;
  line-height: 1;
  color: var(--light);
  transition: transform .18s ease;
}

details.lead-brief[open] > .lead-summary > .lead-chevron {
  transform: rotate(180deg);
}

details.lead-brief[open] > .lead-summary {
  border-bottom: 1px solid var(--line);
}

.lead-body {
  padding: 16px 18px 18px;
}

.lead-body > select {
  /* רוחב לפי התוכן ולא לכל השורה — זה בורר סטטוס, לא שדה טקסט */
  width: auto;
  min-width: 140px;
  margin-bottom: 12px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

/* ===== אריחי מדדים לחיצים ===== */
/* אריח לוחיץ הוא <button>, ולכן צריך לאפס את ברירות המחדל של כפתור
   ולהחזיר יישור לימין — אחרת הטקסט מתמרכז ושובר את השורה מול האריחים הסטטיים. */
.stat-tile.is-clickable {
  width: 100%;
  text-align: start;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}

.stat-tile.is-clickable:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 110, 86, .35);
  box-shadow: var(--shadow);
}

.stat-tile.is-clickable:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.stat-tile.is-active {
  background: var(--brand-soft);
  border-color: var(--brand);
}

.stat-tile.is-active strong {
  color: var(--brand-dark);
}

/* אריח שאינו לוחיץ נשאר במקומו ומאבד את הרמז הוויזואלי, כדי שברור
   מראש על מה יש טעם ללחוץ. */
.stat-tile:not(.is-clickable) {
  opacity: .72;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding: 10px 14px;
  background: var(--brand-soft);
  border-radius: var(--radius-sm);
  font-size: 14px;
}

/* ==========================================================================
   מצב כהה
   ==========================================================================
   ערכה שנייה לאותם טוקנים. אין כאן אף כלל חדש — כל מה שכבר עובר דרך
   var(--...) מתהפך מעצמו. הסלקטור הוא [data-theme] על <html> ולא class על
   <body>, כי הוא נקבע בסקריפט שרץ לפני הרינדור ומונע הבזק לבן.
   ========================================================================== */

html[data-theme="dark"] {
  --brand: #2FA986;
  --brand-dark: #15916F;
  --brand-soft: rgba(47, 169, 134, .16);
  --ink: #EDEBE5;
  --muted: #98A19C;
  --light: #6E7873;
  --bg: #0C0F0E;
  --bg-glow: #10201B;
  --surface: #161A18;
  --surface-2: #1C211F;
  --surface-glass: rgba(22, 26, 24, .92);
  --surface-soft: rgba(22, 26, 24, .86);
  --line: rgba(237, 235, 229, .12);
  --line-strong: rgba(237, 235, 229, .2);
  --warn: #D9A441;
  --warn-soft: rgba(217, 164, 65, .14);
  --danger: #E0685C;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, .35);
  --focus: 0 0 0 3px rgba(47, 169, 134, .3);
}

/* הטמעת התמונות מרוככת בכהה, אחרת הן זורחות מול רקע כמעט שחור */
html[data-theme="dark"] img {
  filter: brightness(.92);
}

/* ===== מתג בהיר/כהה ===== */
.theme-toggle {
  width: 46px;
  height: 25px;
  flex: 0 0 auto;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--g1, #15916F), var(--brand-dark));
  position: relative;
  cursor: pointer;
  transition: box-shadow .3s;
}

.theme-toggle:hover {
  box-shadow: 0 0 0 5px rgba(21, 145, 111, .15);
}

.theme-toggle:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.theme-toggle i {
  position: absolute;
  top: 4px;
  inset-inline-start: 4px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #fff;
  display: block;
  transition: transform .35s cubic-bezier(.2, 1.2, .4, 1);
}

html[data-theme="dark"] .theme-toggle i {
  transform: translateX(calc(-1 * (46px - 25px)));
}

/* ===== לוקאפ המותג: mentor + קופסת it ===== */
.brand-text .itbox {
  display: inline-block;
  background: linear-gradient(135deg, #15916F, var(--brand-dark));
  color: #fff;
  border-radius: .18em;
  padding: 0 .14em;
  margin-inline-start: .1em;
  line-height: 1.12;
}

.brand-text {
  direction: ltr;
  font-weight: 800;
  letter-spacing: -.03em;
}

.footer-brand {
  font-size: 19px;
}

/* ==========================================================================
   בלוק המותג — מוצג רק למשתמש מחובר (pages.js / brandTerminal)
   ========================================================================== */
.brand-term-block {
  text-align: center;
  padding: 40px 0 46px;
}

.brand-term-block .term {
  display: inline-block;
  background: #101413;
  border-radius: 12px;
  padding: 0 0 18px;
  box-shadow: 0 24px 60px -24px rgba(8, 76, 63, .45);
  text-align: left;
  min-width: 340px;
  max-width: 100%;
}

.term-bar {
  display: flex;
  gap: 7px;
  padding: 13px 14px;
}

.term-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: block;
}

.term-bar i:nth-child(1) { background: #FF5F57; }
.term-bar i:nth-child(2) { background: #FEBC2E; }
.term-bar i:nth-child(3) { background: #28C840; }

.term-line {
  padding: 2px 20px 0;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 16px;
  color: #5B665F;
}

.term-cmd {
  color: #EDEBE5;
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: bottom;
  width: 0;
  animation: term-typing 1.3s steps(9, end) .6s forwards;
}

.term-caret {
  display: inline-block;
  width: 9px;
  height: 19px;
  background: #fff;
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: term-blink 1s steps(1) infinite;
}

.term-out {
  padding: 10px 20px 0;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  color: #2E9E7B;
  opacity: 0;
  animation: term-fadeup .5s ease 2.15s forwards;
}

@keyframes term-typing { to { width: 9ch; } }
@keyframes term-blink { 50% { opacity: 0; } }
@keyframes term-fadeup {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.brand-lockup {
  margin-top: 42px;
  direction: ltr;
  font-weight: 800;
  font-size: clamp(46px, 8vw, 92px);
  letter-spacing: -.045em;
  line-height: 1;
}

.brand-lockup .itbox {
  display: inline-block;
  color: #fff;
  background: linear-gradient(135deg, #15916F, var(--brand-dark));
  border-radius: .16em;
  padding: .01em .15em;
  margin-inline-start: .12em;
  box-shadow: 0 14px 34px -12px rgba(8, 76, 63, .55);
  transform: scale(0);
  animation: lockup-pop .55s cubic-bezier(.2, 1.4, .4, 1) 2.5s forwards;
}

@keyframes lockup-pop { to { transform: scale(1); } }

.brand-tagline {
  margin-top: 24px;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.8;
  opacity: 0;
  animation: term-fadeup .6s ease 2.9s forwards;
}

.brand-tagline b {
  color: var(--ink);
}

/* מי שביקש פחות תנועה לא צריך לראות הקלדה וקפיצה בכל טעינת דף */
@media (prefers-reduced-motion: reduce) {
  .term-cmd, .term-out, .brand-lockup .itbox, .brand-tagline {
    animation: none;
    width: auto;
    opacity: 1;
    transform: none;
  }
  .term-caret { animation: none; }
}
