@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@400;500;600;700;800;900&family=Frank+Ruhl+Libre:wght@600;700;800&display=swap');

:root {
  --navy: #08275a;
  --navy-dark: #06183a;
  --navy-soft: #12376f;
  --gold: #c98d1e;
  --gold-light: #efc86c;
  --ink: #142342;
  --muted: #718099;
  --line: #e3e9f3;
  --bg: #f5f8fd;
  --green: #2f985a;
  --orange: #d9911e;
  --red: #c94f4f;
  --card: #fff;
  --shadow: 0 16px 42px rgba(13, 39, 83, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  direction: rtl;
  font-family: Heebo, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
.site-shell, .container { width: min(1240px, calc(100% - 36px)); margin-inline: auto; }
.app-container { width: min(1420px, calc(100% - 36px)); margin-inline: auto; }

/* Public header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 86px;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 8px 24px rgba(2, 14, 36, .18);
}
.site-header-step {
  position: absolute;
  right: 0;
  bottom: -34px;
  width: clamp(360px, 31vw, 450px);
  height: 34px;
  background: var(--navy);
  border-bottom-left-radius: 88px 34px;
  pointer-events: none;
}
.site-nav {
  position: relative;
  z-index: 2;
  height: 86px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-brand {
  min-width: 330px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.site-logo, .brand-logo {
  width: 66px;
  height: 66px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .24));
}
.site-brand strong {
  display: block;
  font-size: 23px;
  line-height: 1.05;
  font-weight: 900;
}
.site-brand small {
  display: block;
  margin-top: 5px;
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 700;
}
.site-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-inline: auto;
  white-space: nowrap;
}
.site-menu a {
  color: #dce7ff;
  padding: 10px 13px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
}
.site-menu a:hover,
.site-menu a.active {
  color: #fff;
  background: rgba(255, 255, 255, .12);
  box-shadow: inset 0 -2px 0 var(--gold-light);
}
.site-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #e6eefc;
  font-weight: 800;
  white-space: nowrap;
}
.site-cta {
  padding: 12px 19px;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, #f1c86b, #c98d1e);
  box-shadow: 0 13px 24px rgba(188, 126, 21, .25);
}

/* Public home */
.poster-home {
  min-height: 100vh;
  overflow: hidden;
}
.poster-hero {
  position: relative;
  min-height: 470px;
  padding: 54px 0 78px;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.20) 27%, rgba(255,255,255,.78) 55%, rgba(255,255,255,.99) 80%),
    url("../images/hero-campus-final.jpg");
  background-size: cover;
  background-position: center center;
  border-bottom: 1px solid #dde7f3;
}
.poster-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 54px;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.94));
}
.poster-hero-inner {
  position: relative;
  z-index: 1;
  min-height: 340px;
}
.poster-hero-copy {
  width: min(690px, 100%);
  margin-left: auto;
  padding-top: 48px;
  text-align: right;
}
.eyebrow {
  color: var(--gold);
  font-size: 15px;
  font-weight: 900;
}
.poster-hero h1 {
  margin: 10px 0;
  color: #091d48;
  font-family: "Frank Ruhl Libre", Heebo, serif;
  font-size: clamp(44px, 4.7vw, 70px);
  line-height: 1.03;
  font-weight: 800;
}
.poster-slogan {
  margin: 0 0 12px;
  color: #b77916;
  font-family: "Frank Ruhl Libre", Heebo, serif;
  font-size: 27px;
  font-weight: 700;
}
.poster-intro {
  max-width: 680px;
  margin: 0;
  color: #435575;
  font-size: 17px;
  line-height: 1.85;
}
.poster-actions, .cta-row, .form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.btn {
  border: 0;
  cursor: pointer;
  min-height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 900;
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #f1c86b, #c98d1e);
  box-shadow: 0 13px 24px rgba(188, 126, 21, .24);
}
.btn-secondary {
  color: #fff;
  background: linear-gradient(135deg, #0b3470, #061a3e);
  box-shadow: 0 13px 24px rgba(8, 39, 90, .20);
}
.btn-light {
  color: var(--navy);
  background: #edf3ff;
}
.btn-danger { color: #b93838; background: #fff0ef; }
.btn-success { color: #fff; background: #25b767; }
.btn-small { min-height: 34px; padding: 8px 11px; border-radius: 9px; font-size: 12px; }
.hero-badge {
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 17px;
  border-radius: 50%;
  color: var(--navy);
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(201, 141, 30, .22);
  box-shadow: 0 18px 34px rgba(11,36,80,.18);
  font-weight: 900;
}
.hero-badge strong {
  display: block;
  color: var(--gold);
  font-size: 31px;
  line-height: 1;
}
.hero-badge small { color: var(--navy); font-size: 13px; }

.metric-grid {
  position: relative;
  z-index: 3;
  margin-top: -36px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.metric-card {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 13px 32px rgba(21,49,95,.10);
}
.metric-card span {
  display: block;
  color: #7a879d;
  font-size: 12px;
  font-weight: 900;
}
.metric-card strong {
  display: block;
  margin-top: 5px;
  color: var(--navy);
  font-size: 31px;
  line-height: 1.05;
  font-weight: 900;
}
.metric-card .state-text { font-size: 22px; }
.metric-card small {
  display: block;
  margin-top: 5px;
  color: #8d98aa;
  font-size: 11px;
  font-weight: 700;
}
.metric-card i {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, #fff7e4, #f6e5bd);
  color: var(--gold);
  font-style: normal;
  font-weight: 900;
}

.dashboard-section {
  padding: 28px 0 34px;
}
.dashboard-heading, .section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 16px;
}
.dashboard-heading h2, .section-heading h2 {
  margin: 6px 0;
  color: var(--navy);
  font-size: 31px;
  line-height: 1.18;
}
.dashboard-heading p, .section-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}
.dashboard-grid, .progress-layout, .layout-two {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 16px;
}
.panel, .card, .app-card, .mini-card, .how-card, .person-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 12px 30px rgba(16,41,87,.07);
}
.panel-head, .card-head, .app-card-head {
  padding: 16px 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #f8fbff);
}
.panel-head h3, .card-head h3, .app-card-head h2 {
  margin: 0;
  color: var(--navy);
  font-size: 19px;
}
.panel-head small, .card-head small {
  color: var(--muted);
  font-size: 12px;
}
.card-body, .app-card-body { padding: 18px; }
.family-table, .family-progress-list { padding: 14px 18px; }
.family-line, .family-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.3fr) .55fr .55fr 1.25fr 72px;
  gap: 13px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid #edf0f5;
}
.family-line:last-child, .family-row:last-child { border-bottom: 0; }
.family-line strong, .family-name, .mini-number, .percent {
  color: var(--navy);
  font-weight: 900;
}
.family-line span, .family-sub, .progress-cell span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}
.family-line b, .percent {
  color: var(--navy);
  font-size: 15px;
  text-align: left;
}
.bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #eaf0f8;
}
.bar span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #50b878, #278c50);
}
.bar.warn span { background: linear-gradient(90deg, #f2c45b, #d98d16); }
.bar.low span { background: linear-gradient(90deg, #e68783, #ce4d4d); }
.readiness-panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.readiness-panel .donut {
  margin: 26px auto 16px;
}
.donut {
  --value: 0;
  width: 178px;
  height: 178px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--green) calc(var(--value) * 1%), #e8eef6 0);
  box-shadow: 0 15px 30px rgba(32,109,68,.16);
}
.donut::before {
  content: "";
  position: absolute;
}
.donut > div {
  width: 136px;
  height: 136px;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 50%;
  background: #fff;
}
.donut strong {
  display: block;
  color: var(--navy);
  font-size: 37px;
  line-height: 1;
}
.donut span {
  color: var(--muted);
  font-size: 12px;
}
.steps, .readiness-steps {
  display: flex;
  justify-content: center;
  gap: 9px;
  flex-wrap: wrap;
  padding: 0 18px 20px;
}
.steps span, .step {
  color: var(--muted);
  background: #eef3fb;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 800;
}
.steps .done, .step.done { color: #278a4d; background: #e3f7eb; }
.steps .active, .step.active { color: #a86d0c; background: #fff2d7; }
.step-icon { display: none; }
.empty {
  padding: 28px;
  text-align: center;
  color: var(--muted);
}
.final-cta {
  margin-bottom: 50px;
  padding: 26px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}
.final-cta h2 {
  margin: 6px 0;
  color: var(--navy);
  font-size: 28px;
}
.final-cta p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

/* Public footer */
.public-footer {
  color: #e7efff;
  background: linear-gradient(120deg, var(--navy-dark), #092d68);
  padding: 26px 0;
}
.public-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.public-footer span { color: #c6d5ef; font-size: 13px; }

/* Auth and setup */
.login-wrap, .registration-wrap {
  min-height: calc(100vh - 86px);
  padding: 64px 0;
  display: grid;
  place-items: center;
  background:
    linear-gradient(90deg, rgba(255,255,255,.72), rgba(255,255,255,.96)),
    url("../images/hero-campus.jpg") center/cover no-repeat;
}
.auth-card, .setup-card {
  width: min(540px, calc(100% - 28px));
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 70px rgba(0,0,0,.18);
}
.auth-card h1, .setup-card h1 {
  margin: 14px 0 8px;
  color: var(--navy);
  font-size: 31px;
}
.auth-card > p, .setup-card p {
  color: var(--muted);
  line-height: 1.7;
}
.auth-brand, .setup-brand, .brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--navy);
}
.brand { color: #fff; }
.brand strong { display: block; }
.brand small { color: var(--gold-light); }
.brand-seal { display: none !important; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.form-group, .setup-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #384966;
  font-size: 13px;
  font-weight: 800;
}
.form-group.full { grid-column: 1 / -1; }
.input, .select, .textarea {
  width: 100%;
  border: 1px solid #dce4f0;
  border-radius: 11px;
  padding: 11px 12px;
  outline: 0;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.textarea { min-height: 110px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus {
  border-color: #618acd;
  box-shadow: 0 0 0 4px rgba(56,109,195,.13);
}
.w-full { width: 100%; }
.muted, .subtle { color: var(--muted); font-size: 12px; }
.notice {
  margin: 0 0 14px;
  padding: 13px 16px;
  border-radius: 12px;
  font-size: 14px;
}
.notice.success { color: #217040; background: #e6f7ed; }
.notice.error { color: #a42f2f; background: #fff0ef; }
.notice.info { color: #1f5caa; background: #ebf3ff; }
.setup-body {
  min-height: 100vh;
  padding: 32px;
  background: linear-gradient(135deg, #eef5ff, #f9fbff);
}
.setup-card {
  width: min(760px, 100%);
  margin: auto;
}
.setup-card h2 {
  color: var(--navy);
  font-size: 18px;
  margin: 25px 0 11px;
}

/* App shell */
.app-body { background: #f4f7fc; }
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  box-shadow: 0 3px 14px rgba(0,0,0,.15);
}
.app-bar {
  min-height: 72px;
  width: min(1450px, calc(100% - 32px));
  margin: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}
.brand.compact { min-width: 235px; }
.brand.compact strong { font-size: 16px; line-height: 1.05; }
.brand.compact small { font-size: 10px; }
.brand.compact .brand-logo { width: 44px; height: 44px; }
.app-nav {
  display: flex;
  gap: 3px;
  align-items: center;
  overflow: auto;
  margin-inline: auto;
}
.app-nav a {
  white-space: nowrap;
  color: #d6e4ff;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 800;
  padding: 9px 10px;
}
.app-nav a:hover, .app-nav a.active {
  color: #fff;
  background: rgba(255,255,255,.11);
}
.account-menu {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #fff;
}
.account-menu strong { font-size: 13px; display: block; }
.account-menu small { color: #b9c7e0; font-size: 10px; display: block; }
.account-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  font-weight: 900;
}
.logout-link { color: var(--gold-light); font-size: 12px; margin-right: 7px; }
.app-main { padding: 30px 0 50px; }
.app-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  padding: 29px 32px;
  border-radius: 18px;
  background: linear-gradient(120deg, #fff, #f2f7ff);
  border: 1px solid #dce6f4;
  box-shadow: var(--shadow);
}
.app-hero h1 { margin: 6px 0 8px; color: var(--navy); font-size: 34px; }
.app-hero p { margin: 0; color: #4e5f7b; line-height: 1.7; max-width: 750px; }
.app-kpi {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 13px;
  margin: 18px 0;
}
.mini-card { padding: 16px; }
.mini-card span { display: block; color: var(--muted); font-size: 12px; font-weight: 800; }
.mini-card strong { display: block; color: var(--navy); font-size: 28px; line-height: 1; margin-top: 8px; }
.mini-card small { display: block; color: #8491a7; margin-top: 6px; font-size: 10px; }
.section-label { color: var(--navy); font-size: 25px; margin: 32px 0 13px; }
.table-wrap { overflow: auto; }
.data-table { border-collapse: collapse; width: 100%; min-width: 760px; }
.data-table th, .data-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #edf0f5;
  text-align: right;
  font-size: 13px;
  vertical-align: middle;
}
.data-table th { background: #f8faff; color: #566680; font-size: 11px; }
.data-table tr:last-child td { border-bottom: 0; }
.badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 900;
}
.badge.admin { background: #ecf0ff; color: #4b5ea5; }
.badge.family, .badge.active { background: #e8f7ee; color: #247946; }
.badge.ambassador, .badge.pending { background: #fff3d9; color: #a9680f; }
.status-not_started { background: #eef1f6; color: #69758b; }
.status-donated { background: #e6f6ed; color: #238446; }
.status-sent { background: #e9f0fe; color: #3b64b1; }
.status-follow_up { background: #fff0df; color: #b86712; }
.status-not_relevant { background: #f2f3f6; color: #707989; }
.btn-danger {
  color: #a93535;
  background: #fff0ef;
  border-color: #ffd3d0;
}
.btn-danger:hover { background: #ffe3e0; }
.list-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.person-card { padding: 14px; }
.person-card h3 { margin: 0; color: var(--navy); font-size: 16px; }
.person-card p { margin: 4px 0 12px; font-size: 12px; color: var(--muted); }
.person-card .actions { display: flex; gap: 7px; align-items: center; margin-top: 10px; }
.metric-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.metric-line strong { font-size: 15px; color: var(--navy); }
.metric-line span { color: var(--muted); font-size: 12px; }
.info-box {
  padding: 15px;
  border-radius: 14px;
  background: #edf5ff;
  border: 1px solid #d7e7ff;
  color: #385477;
  line-height: 1.75;
  font-size: 13px;
}
.inline-form { display: inline; }
.user-select { min-width: 150px; }
.copy-button { cursor: pointer; }
.row-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.app-card--ambassadors,
.app-card:has(.ambassador-grid) {
  overflow: visible;
}
.ambassador-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  align-items: stretch;
  gap: 14px;
  width: 100%;
}
.ambassador-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid #e2e9f3;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,251,255,.98));
  box-shadow: 0 14px 34px rgba(10,42,86,.08);
}
.ambassador-card.is-selected {
  border-color: rgba(211,159,55,.7);
  box-shadow: 0 16px 36px rgba(211,159,55,.16);
}
.ambassador-top {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
}
.ambassador-avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), #224f98);
  font-weight: 900;
}
.ambassador-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 17px;
}
.ambassador-card small {
  color: var(--muted);
  font-weight: 800;
}
.ambassador-progress { margin: 12px 0; }
.ambassador-link {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 12px 0;
  padding: 9px 10px;
  border-radius: 8px;
  color: #5c6b85;
  background: #f4f7fc;
  border: 1px solid #e1e8f3;
  font-size: 12px;
}

@media (max-width: 1100px) {
  .site-header { height: auto; }
  .site-header-step { width: clamp(300px, 45vw, 390px); height: 30px; bottom: -30px; border-bottom-left-radius: 72px 30px; }
  .site-nav { min-height: 86px; height: auto; flex-wrap: wrap; padding: 10px 0; }
  .site-menu { order: 3; flex-basis: 100%; overflow: auto; justify-content: flex-start; }
  .site-brand { min-width: 0; }
  .poster-hero { min-height: auto; padding: 52px 0 66px; background-position: left center; }
  .poster-hero-inner { min-height: 0; }
  .poster-hero-copy { margin-left: 0; margin-right: auto; width: min(690px, 100%); padding-top: 38px; }
  .hero-badge { display: none; }
  .metric-grid, .app-kpi { grid-template-columns: repeat(3, 1fr); margin-top: -24px; }
  .ambassador-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .dashboard-grid, .progress-layout, .layout-two { grid-template-columns: 1fr; }
  .app-bar { flex-wrap: wrap; padding: 10px 0; }
  .app-nav { order: 3; flex-basis: 100%; margin: 0; }
  .account-menu { margin-right: auto; }
}

@media (max-width: 700px) {
  .site-shell, .container, .app-container { width: min(100% - 22px, 1240px); }
  .site-header-step { display: none; }
  .site-logo, .brand-logo { width: 52px; height: 52px; }
  .site-brand strong { font-size: 18px; }
  .site-actions { margin-right: auto; }
  .site-cta { padding: 10px 13px; }
  .poster-hero {
    padding: 36px 0 42px;
    background-image:
      linear-gradient(90deg, rgba(255,255,255,.74), rgba(255,255,255,.92) 52%, #fff),
      url("../images/hero-campus-final.jpg");
    background-position: left center;
  }
  .poster-hero-copy { padding-top: 18px; }
  .poster-hero h1 { font-size: 39px; }
  .poster-slogan { font-size: 21px; }
  .metric-grid, .app-kpi { grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 0; }
  .metric-card { min-height: 96px; padding: 13px; }
  .metric-card strong { font-size: 24px; }
  .metric-card i { width: 39px; height: 39px; }
  .dashboard-heading, .section-heading, .final-cta { display: block; }
  .final-cta .poster-actions { margin-top: 18px; }
  .family-line, .family-row { grid-template-columns: 1fr 50px 50px 1fr 44px; gap: 7px; font-size: 11px; }
  .family-line span, .family-sub { display: none; }
  .auth-card, .setup-card { padding: 22px; }
  .form-grid, .list-cards { grid-template-columns: 1fr; }
  .ambassador-grid { grid-template-columns: 1fr; }
  .app-main { padding-top: 16px; }
  .app-hero { display: block; padding: 21px; }
  .app-hero h1 { font-size: 28px; }
  .account-menu small { display: none; }
  .public-footer .container { display: block; }
  .public-footer span { display: block; margin-top: 8px; }
}

/* ===== דף הבית – תמונת פתיחה מלאה, בלי שינוי במבנה או בפונקציונליות ===== */
/* ההגדרות כאן חלות רק כאשר דף הבית פעיל. הלוגו הקיים נשאר ללא שינוי. */
.site-header--home {
  position: absolute;
  inset: 0 0 auto;
  height: auto;
  background: transparent;
  box-shadow: none;
}
.site-header--home .site-header-step { display: none; }
.site-header--home .site-nav {
  min-height: 74px;
  height: auto;
  margin-top: 18px;
  padding: 8px 18px;
  border: 1px solid rgba(255,255,255,.74);
  border-radius: 21px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 16px 36px rgba(4,25,60,.20);
}
.site-header--home .site-brand { min-width: 260px; }
.site-header--home .site-logo { width: 57px; height: 57px; filter: drop-shadow(0 6px 12px rgba(3,20,50,.16)); }
.site-header--home .site-brand strong { color: #092b61; font-size: 22px; }
.site-header--home .site-brand small { color: #a67513; }
.site-header--home .site-menu a { color: #405575; }
.site-header--home .site-menu a:hover,
.site-header--home .site-menu a.active {
  color: #0a3370;
  background: #edf4ff;
  box-shadow: none;
}
.site-header--home .site-actions { color: #23436e; }
.site-header--home .site-actions > a:not(.site-cta) { color: #23436e; }
.site-header--home .site-cta {
  color: #fff;
  background: linear-gradient(135deg, #efca6b, #c58b22);
  box-shadow: 0 10px 20px rgba(183,126,21,.26);
}

.poster-home { background: #f4f7fc; }
.poster-home .poster-hero {
  min-height: 580px;
  padding: 122px 0 96px;
  overflow: hidden;
  background-image: url("../images/hero-campus-final.jpg");
  background-size: cover;
  background-position: center 46%;
  border-bottom: 0;
}
.poster-home .poster-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg,
    rgba(7,32,75,.06) 0%,
    rgba(7,32,75,.08) 35%,
    rgba(7,32,75,.20) 57%,
    rgba(7,32,75,.43) 100%);
}
.poster-home .poster-hero::after {
  height: 96px;
  background: linear-gradient(180deg, rgba(244,247,252,0), #f4f7fc 98%);
}
.poster-home .poster-hero-inner {
  min-height: 362px;
  display: grid;
  align-items: center;
}
.poster-home .poster-hero-copy {
  width: min(555px, 100%);
  margin-left: auto;
  padding: 26px 29px 30px;
  text-align: right;
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 27px;
  background: linear-gradient(135deg, rgba(7,34,78,.48), rgba(7,34,78,.70));
  box-shadow: 0 18px 38px rgba(4,20,50,.22);
  backdrop-filter: blur(4px);
}
.poster-home .poster-hero .eyebrow { color: #f3c964; }
.poster-home .poster-hero h1 {
  margin: 8px 0 9px;
  color: #fff;
  font-family: "Frank Ruhl Libre", Heebo, serif;
  font-size: clamp(50px, 5.1vw, 76px);
  line-height: .98;
  text-shadow: 0 8px 22px rgba(3,18,48,.25);
}
.poster-home .poster-slogan {
  margin: 0 0 11px;
  color: #f4c65b;
  font-size: 27px;
  line-height: 1.22;
}
.poster-home .poster-intro {
  max-width: none;
  color: #f0f5ff;
  font-size: 17px;
  line-height: 1.72;
}
.poster-home .poster-actions { margin-top: 21px; }
.poster-home .poster-actions .btn-secondary {
  color: #fff;
  border: 1px solid rgba(255,255,255,.78);
  background: rgba(7,31,73,.18);
  box-shadow: none;
}
.poster-home .poster-actions .btn-secondary:hover { background: rgba(255,255,255,.13); }
.poster-home .hero-badge {
  left: 38px;
  bottom: 35px;
  border: 0;
  box-shadow: 0 18px 36px rgba(3,22,55,.24);
}
.poster-home .hero-badge::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 8px solid #d2a13d;
  border-top-color: #e5ebf4;
  border-left-color: #e5ebf4;
  border-radius: 50%;
  transform: rotate(-38deg);
}
.poster-home .hero-badge > * { position: relative; z-index: 1; }
.poster-home .hero-badge strong { color: #143d78; }
.poster-home .hero-badge span { color: #60728d; font-size: 12px; }

.poster-home .metric-grid {
  margin-top: -40px;
  gap: 13px;
}
.poster-home .metric-card {
  min-height: 122px;
  border: 1px solid rgba(222,230,241,.98);
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(10,36,80,.11);
}
.poster-home .metric-card i {
  border-radius: 15px;
  background: linear-gradient(145deg, #fff5d8, #f4e0a9);
}
.poster-home .metric-card:nth-child(2) i { color: #2c65bf; background: #eaf1ff; }
.poster-home .metric-card:nth-child(3) i { color: #258653; background: #e8f7ee; }
.poster-home .metric-card:nth-child(5) i { color: #684bb5; background: #f0ecff; }
.poster-home .metric-card--money {
  border-color: #ecd59c;
  background: linear-gradient(145deg, #fff, #fffaf0);
}
.poster-home .metric-card--money strong { color: #a56d14; }
.poster-home .financial-summary-card { box-shadow: 0 13px 28px rgba(10,36,80,.07); }

@media (max-width: 1100px) {
  .site-header--home .site-nav { min-height: 70px; }
  .poster-home .poster-hero { min-height: 540px; padding-top: 112px; }
  .poster-home .poster-hero-copy { width: min(610px, 100%); }
}

@media (max-width: 700px) {
  .site-header--home .site-nav {
    min-height: 64px;
    margin-top: 10px;
    padding: 7px 10px;
    border-radius: 15px;
    flex-wrap: nowrap;
    gap: 8px;
  }
  .site-header--home .site-brand {
    min-width: 0;
    gap: 8px;
    overflow: hidden;
  }
  .site-header--home .site-logo { width: 42px; height: 42px; }
  .site-header--home .site-brand span { min-width: 0; overflow: hidden; }
  .site-header--home .site-brand strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 18px;
  }
  .site-header--home .site-brand small,
  .site-header--home .site-menu { display: none; }
  .site-header--home .site-actions {
    flex: 0 0 auto;
    gap: 6px;
    margin-right: auto;
    font-size: 12px;
  }
  .site-header--home .site-actions > a:not(.site-cta):not(.portal-logout-link):not(.portal-home-link) { display: none; }
  .site-header--home .site-cta { min-height: 38px; padding: 9px 11px; border-radius: 11px; }

  .poster-home .poster-hero {
    min-height: 708px;
    padding: 92px 0 26px;
    background-position: 15% 35%;
  }
  .poster-home .poster-hero::before {
    background: linear-gradient(180deg,
      rgba(6,31,74,0) 0%,
      rgba(6,31,74,.04) 32%,
      rgba(6,31,74,.42) 49%,
      rgba(6,31,74,.80) 67%,
      #082a60 100%);
  }
  .poster-home .poster-hero::after { height: 45px; background: linear-gradient(180deg, rgba(8,42,96,0), #f4f7fc); }
  .poster-home .poster-hero-inner { min-height: 590px; align-items: end; }
  .poster-home .poster-hero-copy {
    width: calc(100% - 8px);
    margin-inline: auto;
    padding: 21px 18px 28px;
    border: 0;
    border-radius: 24px 24px 0 0;
    background: linear-gradient(180deg, rgba(7,35,78,.08), rgba(7,35,78,.77));
    box-shadow: none;
    backdrop-filter: none;
  }
  .poster-home .poster-hero h1 { font-size: 47px; line-height: 1.02; letter-spacing: -1.3px; }
  .poster-home .poster-slogan { font-size: 22px; margin-bottom: 9px; }
  .poster-home .poster-intro { font-size: 15px; line-height: 1.62; }
  .poster-home .poster-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 18px; }
  .poster-home .poster-actions .btn { min-height: 50px; padding: 10px 7px; font-size: 13px; }
  .poster-home .hero-badge { display: none; }
  .poster-home .metric-grid { margin-top: 0; }
}

/* ===== דף הבית – עיצוב מלא לתוכן, בהתאם לתצוגה שאושרה ===== */
.poster-home {
  background:
    radial-gradient(circle at 12% 0%, rgba(78,133,218,.10), transparent 32%),
    #f4f7fc;
}
.poster-home .home-metric-grid {
  position: relative;
  z-index: 4;
  width: min(1180px, calc(100% - 40px));
  margin: -44px auto 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.poster-home .home-metric-card {
  position: relative;
  min-height: 148px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: start;
  gap: 9px 12px;
  padding: 18px;
  border: 1px solid #e0e8f3;
  border-radius: 20px;
  color: #18345f;
  background: rgba(255,255,255,.98);
  box-shadow: 0 16px 34px rgba(10,36,80,.12);
}
.poster-home .home-metric-card::after {
  content: "";
  position: absolute;
  width: 105px;
  height: 105px;
  left: -48px;
  bottom: -55px;
  border-radius: 50%;
  background: rgba(43,101,191,.08);
}
.poster-home .home-metric-copy { position: relative; z-index: 1; min-width: 0; }
.poster-home .home-metric-copy span {
  display: block;
  color: #6a7b96;
  font-size: 12px;
  font-weight: 900;
}
.poster-home .home-metric-copy strong {
  display: block;
  margin-top: 7px;
  color: #102e60;
  font-size: clamp(26px, 2.15vw, 32px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -.45px;
  white-space: nowrap;
}
.poster-home .home-metric-copy strong em {
  color: #8391a5;
  font-size: .46em;
  font-style: normal;
  letter-spacing: 0;
}
.poster-home .home-metric-copy small {
  display: block;
  min-height: 31px;
  margin-top: 7px;
  color: #7c8ca2;
  font-size: 10px;
  line-height: 1.45;
  font-weight: 800;
}
.poster-home .home-metric-card > i {
  position: relative;
  z-index: 1;
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #2c65bf;
  background: #eaf1ff;
  font-size: 23px;
  font-style: normal;
  font-weight: 900;
}
.poster-home .home-metric-progress {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  align-self: end;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6edf8;
}
.poster-home .home-metric-progress b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2b65bf, #6fa2ed);
}
.poster-home .home-metric-card--families > i { color: #6947b5; background: #f0ecff; }
.poster-home .home-metric-card--contacts > i { color: #248653; background: #e8f7ee; }
.poster-home .home-metric-card--contacts .home-metric-progress b { background: linear-gradient(90deg, #248653, #77c998); }
.poster-home .home-metric-card--money { border-color: #ecd69c; background: linear-gradient(145deg, #fff, #fff9ec); }
.poster-home .home-metric-card--money::after { background: rgba(204,151,44,.12); }
.poster-home .home-metric-card--money > i { color: #a66e14; background: #fff0c8; }
.poster-home .home-metric-card--money .home-metric-copy strong { color: #a66e14; font-size: clamp(23px, 1.9vw, 29px); }
.poster-home .home-metric-card--readiness > i { color: #16437f; background: #e3edf9; }
.poster-home .home-metric-card--readiness .home-metric-copy strong { color: #264e92; }

.poster-home .home-financial-banner {
  position: relative;
  overflow: hidden;
  min-height: 132px;
  margin-top: 20px;
  padding: 24px 29px;
  border: 1px solid rgba(215,166,71,.42);
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(125deg, #0a2b61, #123f7c 62%, #195180);
  box-shadow: 0 18px 38px rgba(10,36,80,.16);
}
.poster-home .home-financial-banner::before,
.poster-home .home-financial-banner::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 50%;
  pointer-events: none;
}
.poster-home .home-financial-banner::before { width: 250px; height: 250px; left: -92px; bottom: -158px; }
.poster-home .home-financial-banner::after { width: 155px; height: 155px; right: 39%; top: -112px; }
.poster-home .home-financial-banner > * { position: relative; z-index: 1; }
.poster-home .home-financial-banner > div:first-child { display: grid; gap: 4px; }
.poster-home .home-financial-banner span { color: #f2cf7d; font-size: 13px; font-weight: 900; }
.poster-home .home-financial-banner strong { color: #fff; font-size: clamp(33px, 4.1vw, 48px); line-height: 1.06; }
.poster-home .home-financial-banner small { color: #dce9ff; font-size: 12px; font-weight: 800; }
.poster-home .home-financial-banner .financial-summary-goals { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.poster-home .home-financial-banner .financial-summary-goals span {
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  color: #e7f0ff;
  background: rgba(255,255,255,.08);
  font-size: 12px;
}
.poster-home .home-financial-banner .financial-summary-goals b { color: #f6ce6d; }

.poster-home .home-dashboard-section { padding: 42px 0 34px; }
.poster-home .home-dashboard-heading { align-items: center; margin-bottom: 20px; }
.poster-home .home-dashboard-heading .eyebrow { color: #c58a1c; }
.poster-home .home-dashboard-heading h2 { margin: 5px 0 7px; font-size: clamp(27px, 3vw, 37px); }
.poster-home .home-dashboard-heading p { font-size: 14px; }
.poster-home .home-dashboard-heading .btn-light {
  min-height: 43px;
  border: 1px solid #d8e4f3;
  background: #fff;
  box-shadow: 0 8px 18px rgba(10,36,80,.07);
}
.poster-home .home-dashboard-grid { grid-template-columns: 1.12fr .88fr; gap: 18px; }
.poster-home .home-family-panel,
.poster-home .home-readiness-panel {
  border: 1px solid #dfe7f2;
  border-radius: 21px;
  box-shadow: 0 15px 32px rgba(10,36,80,.075);
}
.poster-home .home-family-panel .panel-head,
.poster-home .home-readiness-panel .panel-head {
  min-height: 72px;
  padding: 16px 21px;
  border-bottom: 1px solid #e5ebf4;
  background: linear-gradient(180deg, #fff, #f7faff);
}
.poster-home .home-family-panel .panel-head > div,
.poster-home .home-readiness-panel .panel-head > div { display: grid; gap: 3px; }
.poster-home .home-family-panel .panel-head h3,
.poster-home .home-readiness-panel .panel-head h3 { font-size: 21px; }
.poster-home .home-panel-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #2b65bf;
  background: #eaf1ff;
  font-size: 21px;
  font-weight: 900;
}
.poster-home .home-panel-mark--gold { color: #a56d14; background: #fff0c8; }
.poster-home .home-family-panel .family-table { padding: 6px 21px 12px; }
.poster-home .home-family-panel .family-line {
  grid-template-columns: minmax(145px,1.25fr) .68fr .68fr 1.2fr 56px;
  gap: 14px;
  min-height: 72px;
  padding: 13px 0;
}
.poster-home .home-family-panel .family-line > div:first-child strong { font-size: 14px; }
.poster-home .home-family-panel .family-line > div:nth-child(2) strong,
.poster-home .home-family-panel .family-line > div:nth-child(3) strong { font-size: 15px; }
.poster-home .home-family-panel .family-line b { color: #2b65bf; font-size: 17px; }
.poster-home .home-family-panel .progress-cell .bar { height: 8px; background: #e6edf7; }
.poster-home .home-family-panel .progress-cell .bar span { background: linear-gradient(90deg, #47b36d, #238b50); }

.poster-home .home-readiness-panel { display: block; background: #fff; }
.poster-home .home-readiness-panel .panel-head { color: #fff; border-bottom-color: transparent; background: linear-gradient(135deg, #0a2c63, #113d7b); }
.poster-home .home-readiness-panel .panel-head h3 { color: #fff; }
.poster-home .home-readiness-panel .panel-head small { color: #d5e4fc; }
.poster-home .home-readiness-panel .home-panel-mark { color: #f2c661; background: rgba(255,255,255,.13); }
.poster-home .home-readiness-content {
  display: grid;
  grid-template-columns: 144px minmax(0,1fr);
  align-items: center;
  gap: 22px;
  padding: 23px 21px 25px;
}
.poster-home .home-readiness-panel .donut {
  width: 142px;
  height: 142px;
  margin: 0;
  background: conic-gradient(#2e66c7 calc(var(--value) * 1%), #e8eef7 0);
  box-shadow: none;
}
.poster-home .home-readiness-panel .donut > div { width: 108px; height: 108px; }
.poster-home .home-readiness-panel .donut strong { color: #245bb8; font-size: 32px; }
.poster-home .home-readiness-panel .donut span { color: #63748d; font-size: 11px; font-weight: 800; }
.poster-home .home-readiness-lines { display: grid; gap: 18px; }
.poster-home .home-readiness-lines > div { display: grid; gap: 8px; }
.poster-home .home-readiness-lines span { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.poster-home .home-readiness-lines b { color: #223e67; font-size: 13px; }
.poster-home .home-readiness-lines small { color: #7c8ba0; font-size: 11px; font-weight: 800; }
.poster-home .home-readiness-lines i { display: block; height: 9px; overflow: hidden; border-radius: 999px; background: #e9eef6; }
.poster-home .home-readiness-lines em { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2c65c2, #76a6ef); }
.poster-home .home-readiness-lines > div:nth-child(2) em { background: linear-gradient(90deg, #278c51, #76c498); }
.poster-home .home-readiness-lines .home-readiness-line--financial em { background: linear-gradient(90deg, #c78a1e, #edc75f); }
.poster-home .home-readiness-lines .home-readiness-line--financial b { color: #8e6514; }

.poster-home .home-final-cta {
  position: relative;
  overflow: hidden;
  margin-top: 10px;
  margin-bottom: 55px;
  padding: 29px 31px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 23px;
  background: linear-gradient(125deg, #08295e, #164e82);
  box-shadow: 0 20px 42px rgba(8,36,80,.16);
}
.poster-home .home-final-cta::after {
  content: "";
  position: absolute;
  left: -70px;
  bottom: -130px;
  width: 270px;
  height: 270px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
}
.poster-home .home-final-cta > * { position: relative; z-index: 1; }
.poster-home .home-final-cta .eyebrow { color: #f0cb70; }
.poster-home .home-final-cta h2 { max-width: 680px; color: #fff; font-size: clamp(25px, 2.5vw, 34px); }
.poster-home .home-final-cta p { max-width: 760px; color: #d9e8ff; font-size: 14px; }
.poster-home .home-final-cta .poster-actions { justify-content: flex-end; }
.poster-home .home-final-cta .btn-secondary { border: 1px solid rgba(255,255,255,.52); background: transparent; box-shadow: none; }

@media (max-width: 1150px) {
  .poster-home .home-metric-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .poster-home .home-dashboard-grid { grid-template-columns: 1fr; }
  .poster-home .home-metric-card--money { grid-column: span 2; }
}
@media (max-width: 700px) {
  .poster-home .home-metric-grid {
    width: min(100% - 24px, 1180px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 0;
    padding-top: 12px;
  }
  .poster-home .home-metric-card { min-height: 132px; padding: 14px; border-radius: 17px; gap: 7px; }
  .poster-home .home-metric-card > i { width: 34px; height: 34px; border-radius: 11px; font-size: 18px; }
  .poster-home .home-metric-copy span { font-size: 11px; }
  .poster-home .home-metric-copy strong { margin-top: 6px; font-size: 25px; }
  .poster-home .home-metric-copy small { min-height: 28px; margin-top: 5px; font-size: 10px; }
  .poster-home .home-metric-card--money { grid-column: 1 / -1; min-height: 120px; }

  .poster-home .home-metric-card--families { order: 1; }
  .poster-home .home-metric-card--ambassadors { order: 2; }
  .poster-home .home-metric-card--readiness { order: 3; }
  .poster-home .home-metric-card--contacts { order: 4; }
  .poster-home .home-metric-card--money { order: 5; }
  .poster-home .home-metric-card--money .home-metric-copy strong { font-size: 30px; }
  .poster-home .home-financial-banner { margin-top: 13px; padding: 20px 18px; border-radius: 18px; }
  .poster-home .home-financial-banner strong { font-size: 34px; }
  .poster-home .home-financial-banner .financial-summary-goals { justify-content: flex-start; margin-top: 13px; }
  .poster-home .home-financial-banner .financial-summary-goals span { padding: 8px 10px; font-size: 11px; }
  .poster-home .home-dashboard-section { padding: 29px 0 24px; }
  .poster-home .home-dashboard-heading { display: grid; gap: 13px; align-items: start; }
  .poster-home .home-dashboard-heading h2 { font-size: 27px; }
  .poster-home .home-dashboard-heading .btn-light { width: fit-content; }
  .poster-home .home-family-panel .panel-head,
  .poster-home .home-readiness-panel .panel-head { min-height: 66px; padding: 14px 16px; }
  .poster-home .home-family-panel .family-table { padding: 4px 15px 8px; overflow-x: auto; }
  .poster-home .home-family-panel .family-line { min-width: 590px; }
  .poster-home .home-readiness-content { grid-template-columns: 112px minmax(0,1fr); gap: 14px; padding: 18px 15px 20px; }
  .poster-home .home-readiness-panel .donut { width: 108px; height: 108px; }
  .poster-home .home-readiness-panel .donut > div { width: 82px; height: 82px; }
  .poster-home .home-readiness-panel .donut strong { font-size: 25px; }
  .poster-home .home-readiness-panel .donut span { font-size: 9px; }
  .poster-home .home-readiness-lines { gap: 13px; }
  .poster-home .home-readiness-lines span { display: grid; gap: 3px; }
  .poster-home .home-final-cta { margin: 6px auto 30px; padding: 23px 18px; border-radius: 19px; }
  .poster-home .home-final-cta h2 { font-size: 25px; }
  .poster-home .home-final-cta .poster-actions { justify-content: stretch; display: grid; grid-template-columns: 1fr; }
  .poster-home .home-final-cta .btn { width: 100%; }
}


/* Layout: Family progress on the left, general progress on the right on desktop. */
@media (min-width: 701px) {
  .poster-home .home-dashboard-grid {
    direction: ltr;
    grid-template-columns: 1.12fr .88fr;
  }
  .poster-home .home-dashboard-grid > .home-family-panel {
    grid-column: 1;
    direction: rtl;
  }
  .poster-home .home-dashboard-grid > .home-readiness-panel {
    grid-column: 2;
    direction: rtl;
  }
}

/* Keep both homepage panels on the same desktop row. */
@media (min-width: 701px) {
  .poster-home .home-dashboard-grid > .home-family-panel,
  .poster-home .home-dashboard-grid > .home-readiness-panel {
    grid-row: 1;
    align-self: start;
    margin-top: 0;
  }
}


/* Fixed-height family progress panel with styled scroll */
.poster-home .home-dashboard-grid {
  align-items: stretch;
}
.poster-home .home-family-panel,
.poster-home .home-readiness-panel {
  height: 430px;
}
.poster-home .home-family-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.poster-home .home-family-panel .family-table {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #c7d5ea #eef3fb;
}
.poster-home .home-family-panel .family-table::-webkit-scrollbar {
  width: 10px;
}
.poster-home .home-family-panel .family-table::-webkit-scrollbar-track {
  background: #eef3fb;
  border-radius: 999px;
}
.poster-home .home-family-panel .family-table::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #9cb4da, #6f8fc3);
  border-radius: 999px;
  border: 2px solid #eef3fb;
}
.poster-home .home-family-panel .family-table::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #89a7d3, #5f83bf);
}
.poster-home .home-family-panel .empty {
  min-height: 250px;
  height: 100%;
  display: grid;
  place-items: center;
}
@media (max-width: 1100px) {
  .poster-home .home-family-panel,
  .poster-home .home-readiness-panel {
    height: 420px;
  }
}
@media (max-width: 850px) {
  .poster-home .home-family-panel,
  .poster-home .home-readiness-panel {
    height: auto;
    min-height: 0;
  }
  .poster-home .home-family-panel .family-table {
    overflow-x: auto;
    overflow-y: visible;
  }
  .poster-home .home-family-panel .empty {
    min-height: 0;
  }
}


/* יישור קו לסרגל העליון בדפי השגריר */
.site-header--portal-clean {
  height: auto;
  background: transparent;
  box-shadow: none;
}
.site-header--portal-clean .site-header-step {
  display: none;
}
.site-header--portal-clean .site-nav {
  min-height: 74px;
  height: auto;
  margin-top: 14px;
  padding: 8px 18px;
  border: 1px solid #dce6f4;
  border-radius: 21px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 16px 36px rgba(4,25,60,.12);
}
.site-header--portal-clean .site-brand {
  min-width: 260px;
}
.site-header--portal-clean .site-logo {
  width: 57px;
  height: 57px;
  filter: drop-shadow(0 6px 12px rgba(3,20,50,.16));
}
.site-header--portal-clean .site-brand strong {
  color: #092b61;
  font-size: 22px;
}
.site-header--portal-clean .site-brand small {
  color: #a67513;
}
.site-header--portal-clean .site-actions {
  color: #23436e;
}
.site-header--portal-clean .site-actions > a:not(.site-cta):not(.portal-home-link):not(.portal-logout-link) {
  color: #23436e;
}
.site-header--portal-clean .portal-personal-link,
.site-header--portal-clean .site-cta {
  color: #fff;
  background: linear-gradient(135deg, #efca6b, #c58b22);
  box-shadow: 0 10px 20px rgba(183,126,21,.22);
}
.site-header--portal-clean .portal-home-link {
  border: 1px solid #d7e2f0;
  background: #fff;
  color: #0e376a;
}
.site-header--portal-clean .portal-logout-link {
  border: 1px solid #ead7d4;
  background: #fff6f5;
  color: #9a3b3b;
}
@media (max-width: 700px) {
  .site-header--portal-clean .site-nav {
    min-height: 64px;
    margin-top: 10px;
    padding: 7px 10px;
    border-radius: 15px;
    flex-wrap: nowrap;
    gap: 8px;
  }
  .site-header--portal-clean .site-brand {
    min-width: 0;
    gap: 8px;
    overflow: hidden;
  }
  .site-header--portal-clean .site-logo {
    width: 42px;
    height: 42px;
  }
  .site-header--portal-clean .site-brand span {
    min-width: 0;
    overflow: hidden;
  }
  .site-header--portal-clean .site-brand strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 18px;
  }
  .site-header--portal-clean .site-brand small {
    display: none;
  }
  .site-header--portal-clean .site-actions {
    flex: 0 0 auto;
    gap: 6px;
    margin-right: auto;
    font-size: 12px;
  }
  .site-header--portal-clean .site-actions .portal-greeting-link,
  .site-header--portal-clean .site-actions .portal-personal-link {
    display: none;
  }
  .site-header--portal-clean .portal-home-link,
  .site-header--portal-clean .portal-logout-link {
    min-height: 38px;
    padding: 7px 9px;
    border-radius: 10px;
    font-size: 12px;
  }
}
