:root {
  --bg: #07111f;
  --bg-soft: #0c1d31;
  --panel: #ffffff;
  --panel-soft: #f6f8fc;
  --text: #102033;
  --muted: #667085;
  --brand: #2b6eea;
  --brand-dark: #1751b8;
  --brand-soft: #e9f0ff;
  --accent: #18b6a4;
  --danger: #d92d20;
  --warning: #f79009;
  --success: #039855;
  --border: #d9e2ef;
  --shadow: 0 18px 55px rgba(16, 32, 51, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, "Noto Sans Hebrew", "Rubik", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(43, 110, 234, 0.26), transparent 36rem),
    radial-gradient(circle at bottom left, rgba(24, 182, 164, 0.2), transparent 30rem),
    #f4f7fb;
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.site-shell { width: min(100%, 1500px); margin: 0 auto; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(18px, 4vw, 48px);
  background: rgba(244, 247, 251, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(217, 226, 239, 0.8);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  font-weight: 900;
  box-shadow: 0 10px 26px rgba(43, 110, 234, 0.3);
}
.brand strong { display: block; font-size: 1.05rem; }
.brand small { display: block; color: var(--muted); margin-top: -3px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #344054;
  transition: 0.2s ease;
}
.nav a:hover, .nav a.active-link { background: var(--brand-soft); color: var(--brand-dark); }
.mobile-menu { display: none; border: 0; background: #fff; border-radius: 12px; padding: 10px 13px; box-shadow: var(--shadow); }

main { padding: 26px clamp(16px, 4vw, 48px) 56px; }
.page { display: none; animation: fadeUp 0.35s ease both; }
.active-page { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.hero {
  min-height: 620px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 34px;
  padding: clamp(26px, 5vw, 64px);
  border-radius: var(--radius-xl);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(7, 17, 31, 0.96), rgba(15, 40, 74, 0.94)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.08'%3E%3Cpath d='M0 70h140M70 0v140'/%3E%3Ccircle cx='70' cy='70' r='44'/%3E%3C/g%3E%3C/svg%3E");
  box-shadow: 0 32px 80px rgba(7, 17, 31, 0.22);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
}
.hero h1, .page-heading h1 { margin: 0 0 18px; line-height: 1.08; font-size: clamp(2.2rem, 6vw, 4.9rem); }
.hero p { max-width: 740px; font-size: clamp(1.06rem, 2vw, 1.25rem); color: #d8e5f8; margin: 0 0 28px; }
.hero-actions, .form-actions, .toolbar-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 20px;
  font-weight: 800;
  transition: 0.2s ease;
  white-space: nowrap;
}
.btn.primary { background: var(--brand); color: #fff; box-shadow: 0 12px 26px rgba(43, 110, 234, 0.28); }
.btn.primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn.ghost { background: #fff; color: var(--text); border-color: var(--border); }
.btn.ghost:hover { border-color: var(--brand); color: var(--brand-dark); transform: translateY(-1px); }
.btn.danger { background: #fff1f0; color: var(--danger); border-color: #ffd0cb; }
.btn.small { min-height: 34px; padding: 7px 12px; font-size: 0.9rem; }
.btn.full { width: 100%; }
.trust-row { display: flex; flex-wrap: wrap; gap: 12px; color: #b8f4eb; font-weight: 700; }

.glass-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 20px 60px rgba(0,0,0,0.18);
  backdrop-filter: blur(18px);
}
.hero-card { padding: 30px; min-height: 420px; }
.hero-card h2 { margin-top: 64px; font-size: 1.65rem; }
.status-orbit {
  position: absolute;
  top: -70px; left: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(24, 182, 164, 0.5), rgba(43, 110, 234, 0.08) 58%, transparent 60%);
}
.timeline-preview { display: grid; gap: 14px; margin: 24px 0 28px; }
.timeline-preview div { display: flex; gap: 12px; align-items: center; color: #e9f1ff; }
.timeline-preview span { width: 13px; height: 13px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px rgba(24, 182, 164, 0.14); }

.section-grid, .pricing-grid, .templates-grid, .stats-grid {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}
.section-grid { grid-template-columns: repeat(3, 1fr); }
.info-card, .price-card, .content-panel, .form-card, .login-card, .client-area-card, .admin-app, .template-card, .stat-card {
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(217,226,239,0.9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.info-card { padding: 28px; }
.info-card .icon {
  width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 14px; background: var(--brand-soft); color: var(--brand-dark); font-weight: 900;
}
.info-card h3, .price-card h2 { margin: 18px 0 8px; }
.info-card p, .page-heading p, .content-panel p, .muted { color: var(--muted); }

.content-panel { margin-top: 28px; padding: 30px; display: grid; grid-template-columns: 1fr 0.95fr; gap: 26px; align-items: start; }
.highlight-box { padding: 20px; border-radius: var(--radius-md); background: #fffbeb; border: 1px solid #fedf89; color: #7a4a00; }
.page-heading { max-width: 860px; margin: 12px 0 28px; }
.page-heading h1 { color: #0b1f38; font-size: clamp(2rem, 5vw, 4.2rem); }
.pricing-grid { grid-template-columns: repeat(3, 1fr); }
.price-card { padding: 28px; position: relative; overflow: hidden; }
.featured-track { border-color: rgba(43, 110, 234, 0.35); transform: translateY(-6px); }
.track-topline { color: var(--brand-dark); background: var(--brand-soft); display: inline-flex; padding: 6px 12px; border-radius: 999px; font-weight: 900; }
.price-card ul, .terms-list { padding-right: 20px; color: #344054; }
.price-card li, .terms-list li { margin: 9px 0; }
.terms-panel { grid-template-columns: 0.75fr 1fr; }

.form-card, .login-card, .client-area-card { padding: clamp(20px, 4vw, 34px); max-width: 980px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
label { display: grid; gap: 8px; font-weight: 800; color: #26364a; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--text);
  outline: none;
  transition: 0.2s ease;
}
input:focus, textarea:focus, select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(43, 110, 234, 0.12); }
textarea { resize: vertical; }
.file-hint span { color: var(--muted); font-weight: 400; font-size: 0.92rem; }
.checkbox-line { display: flex; grid-template-columns: auto 1fr; align-items: center; gap: 10px; margin: 18px 0; font-weight: 600; }
.checkbox-line input { width: auto; }
.hidden { display: none !important; }

.login-card { max-width: 450px; }
.admin-app { padding: 22px; max-width: none; }
.admin-toolbar { display: flex; justify-content: space-between; gap: 16px; align-items: center; border-bottom: 1px solid var(--border); padding-bottom: 18px; }
.admin-toolbar h2 { margin: 0; }
.toolbar-actions .import-btn { position: relative; overflow: hidden; }
.import-btn input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.stats-grid { grid-template-columns: repeat(4, 1fr); margin: 20px 0; }
.stat-card { padding: 18px; box-shadow: none; }
.stat-card strong { display: block; font-size: 2rem; line-height: 1; color: var(--brand-dark); }
.stat-card span { color: var(--muted); font-weight: 700; }
.admin-layout { display: grid; grid-template-columns: 370px 1fr; gap: 18px; }
.client-list-panel, .client-detail-panel {
  min-height: 640px;
  background: var(--panel-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
}
.search-row { display: grid; gap: 10px; margin-bottom: 14px; }
.client-list { display: grid; gap: 10px; max-height: 690px; overflow: auto; padding-left: 4px; }
.client-item {
  display: grid;
  gap: 4px;
  text-align: right;
  background: #fff;
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 14px;
}
.client-item:hover, .client-item.active { border-color: var(--brand); box-shadow: 0 8px 26px rgba(16,32,51,0.08); }
.client-item strong { font-size: 1.02rem; }
.client-item small { color: var(--muted); }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 9px; border-radius: 999px;
  background: #eef4ff; color: #1849a9; font-weight: 800; font-size: 0.82rem;
}
.badge.success { background: #ecfdf3; color: #027a48; }
.badge.warn { background: #fffaeb; color: #b54708; }
.badge.danger { background: #fef3f2; color: #b42318; }
.client-detail-panel { background: #fff; }
.empty-state { display: grid; place-items: center; align-content: center; min-height: 540px; text-align: center; color: var(--muted); }
.detail-header { display: flex; justify-content: space-between; gap: 16px; align-items: start; border-bottom: 1px solid var(--border); padding-bottom: 16px; }
.detail-header h2 { margin: 0; }
.client-meta { color: var(--muted); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 18px 0; }
.detail-box { padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-md); background: #fbfcff; }
.detail-box h3 { margin: 0 0 10px; }
.timeline { display: grid; gap: 12px; margin-top: 12px; }
.timeline-entry { display: grid; gap: 2px; padding: 12px 14px; border-right: 4px solid var(--brand); background: #f8fbff; border-radius: 14px; }
.timeline-entry small { color: var(--muted); }
.action-grid { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.edit-form { display: grid; gap: 12px; }
.doc-checklist { display: grid; grid-template-columns: repeat(2, minmax(180px, 1fr)); gap: 8px; }
.doc-checklist label { display: flex; align-items: center; gap: 8px; font-weight: 700; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 9px; }
.doc-checklist input { width: auto; }

.client-code-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.portal-card { margin-top: 18px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; }
.portal-progress { display: grid; gap: 10px; margin: 18px 0; }
.progress-bar { height: 12px; border-radius: 999px; background: #edf2f7; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); border-radius: inherit; }
.portal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.templates-grid { grid-template-columns: repeat(2, 1fr); }
.template-card { padding: 22px; }
.template-card h3 { margin: 0 0 8px; }
.template-preview { white-space: pre-wrap; color: #344054; background: #f8fafc; border: 1px solid var(--border); padding: 14px; border-radius: 14px; max-height: 260px; overflow: auto; }
.template-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }

.footer {
  display: flex; justify-content: space-between; gap: 18px; align-items: center;
  padding: 34px clamp(18px, 4vw, 48px);
  color: #d8e5f8;
  background: var(--bg);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.footer p { margin: 4px 0 0; color: #9fb2ca; }
.footer a { color: #fff; font-weight: 800; }
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 50;
  min-width: min(360px, calc(100vw - 36px));
  transform: translateY(120px); opacity: 0;
  border-radius: 16px; padding: 14px 18px;
  background: #102033; color: #fff;
  box-shadow: 0 18px 44px rgba(16,32,51,0.28);
  transition: 0.25s ease;
}
.toast.show { transform: translateY(0); opacity: 1; }
.modal-backdrop {
  position: fixed; inset: 0; z-index: 40;
  display: grid; place-items: center;
  padding: 20px;
  background: rgba(7, 17, 31, 0.68);
}
.modal { width: min(920px, 100%); max-height: 90vh; overflow: auto; background: #fff; border-radius: 24px; padding: 24px; position: relative; }
.modal-close { position: absolute; top: 14px; left: 14px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #eef2f6; font-size: 1.4rem; }
.pdf-area { position: fixed; right: -99999px; top: 0; width: 794px; background: #fff; color: #111; }

.pdf-doc { direction: rtl; font-family: Arial, sans-serif; padding: 42px; color: #101828; line-height: 1.7; }
.pdf-doc .pdf-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 4px solid #2b6eea; padding-bottom: 18px; margin-bottom: 26px; }
.pdf-doc .pdf-logo { width: 76px; height: 76px; display: grid; place-items: center; background: #2b6eea; color: #fff; border-radius: 22px; font-weight: 900; font-size: 1.5rem; }
.pdf-doc h1 { margin: 0; color: #102033; font-size: 28px; }
.pdf-doc h2 { color: #1751b8; border-bottom: 1px solid #d9e2ef; padding-bottom: 5px; }
.pdf-doc table { width: 100%; border-collapse: collapse; margin: 14px 0; }
.pdf-doc td { border: 1px solid #d9e2ef; padding: 10px; vertical-align: top; }
.pdf-doc .note { background: #e9f0ff; border-right: 5px solid #2b6eea; padding: 14px; border-radius: 8px; }

@media (max-width: 1020px) {
  .hero, .content-panel, .terms-panel, .admin-layout { grid-template-columns: 1fr; }
  .section-grid, .pricing-grid, .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .templates-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .mobile-menu { display: inline-flex; }
  .nav {
    position: absolute; top: 82px; left: 16px; right: 16px;
    display: none; flex-direction: column; align-items: stretch;
    padding: 12px; background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { text-align: center; }
  main { padding-top: 16px; }
  .hero { min-height: auto; padding: 28px; }
  .section-grid, .pricing-grid, .stats-grid, .form-grid, .detail-grid { grid-template-columns: 1fr; }
  .client-code-row { grid-template-columns: 1fr; }
  .admin-toolbar, .detail-header, .footer { flex-direction: column; align-items: stretch; }
  .toolbar-actions { align-items: stretch; }
  .toolbar-actions .btn { width: 100%; }
}

.template-preview.large { max-height: 520px; font-size: 1rem; line-height: 1.8; }
.stage-email-grid { margin-top: 12px; }
.stage-email-grid .btn { white-space: normal; text-align: center; }

.track-requirements { margin: 18px 0; }
.track-doc-card { padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-md); background: #f8fbff; display: grid; gap: 14px; }
.track-doc-card strong { color: var(--brand-dark); font-size: 1.05rem; }
.track-doc-card p { margin: 4px 0 0; color: var(--muted); }
.public-docs label.required-doc, .doc-checklist label.required-doc { border-color: rgba(43,110,234,.35); background: #f8fbff; }
.required-doc span { margin-right: auto; background: var(--brand-soft); color: var(--brand-dark); border-radius: 999px; padding: 2px 8px; font-size: .75rem; font-weight: 900; }
.uploaded-files { margin-top: 12px; display: grid; gap: 6px; }
.uploaded-files ul { margin: 6px 0 0; padding-right: 20px; }

.workflow-gate {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid rgba(37, 99, 235, .18);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(37,99,235,.08), rgba(14,165,233,.06));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.workflow-gate.needs-docs {
  border-color: rgba(245, 158, 11, .35);
  background: linear-gradient(135deg, rgba(245,158,11,.12), rgba(251,191,36,.06));
}
.workflow-gate p { margin: 6px 0; color: #334155; }
.workflow-gate small { color: #64748b; }
.btn.disabled, button:disabled {
  opacity: .55;
  cursor: not-allowed;
  filter: grayscale(.2);
}
.manual-template-details {
  margin-top: 16px;
  border-top: 1px dashed rgba(148, 163, 184, .45);
  padding-top: 12px;
}
.manual-template-details summary {
  cursor: pointer;
  font-weight: 800;
  color: #0f172a;
}
.admin-doc-card { margin: 8px 0 12px; }
@media (max-width: 760px) {
  .workflow-gate { flex-direction: column; align-items: stretch; }
}

/* v12: professional document upload table for opening a client file */
.form-note-box {
  border: 1px solid rgba(43,110,234,.18);
  background: linear-gradient(135deg, #f8fbff, #ffffff);
  border-radius: 16px;
  padding: 14px 16px;
  color: var(--text);
  line-height: 1.7;
}
.form-note-box strong { color: var(--brand-dark); }
.document-upload-card { background: #ffffff; }
.document-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}
.track-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(43,110,234,.18);
  background: #eef5ff;
  color: var(--brand-dark);
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 800;
  white-space: nowrap;
}
.documents-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
}
.documents-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
.documents-table th,
.documents-table td {
  padding: 14px 12px;
  text-align: right;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.documents-table th {
  background: #f7f9fc;
  color: var(--brand-dark);
  font-weight: 900;
}
.documents-table tbody tr:last-child td { border-bottom: 0; }
.documents-table tr.is-active { background: #f8fbff; }
.doc-col-status { width: 110px; }
.doc-col-name { min-width: 280px; }
.doc-col-name strong { display: block; margin-bottom: 6px; }
.doc-col-name small,
.upload-note {
  display: block;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.5;
}
.doc-col-upload input[type="file"] {
  width: 100%;
  border: 1px dashed rgba(43,110,234,.35);
  background: #fff;
  border-radius: 12px;
  padding: 10px;
}
.doc-col-upload input[type="file"]:disabled {
  opacity: .45;
  background: #f1f3f6;
  cursor: not-allowed;
}
.doc-mark {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 900;
  color: var(--brand-dark);
}
.doc-mark input { width: auto; }
.doc-required-badge,
.doc-optional-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: .76rem;
  font-weight: 900;
  margin-top: 3px;
}
.doc-required-badge { background: #eaf2ff; color: var(--brand-dark); }
.doc-optional-badge { background: #eef2f6; color: var(--muted); }
.extra-docs-box {
  display: grid;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  background: #fbfcfe;
}
.extra-docs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.extra-docs-list { display: grid; gap: 10px; }
.extra-doc-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.2fr) auto;
  gap: 10px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
}
.extra-doc-row input[type="file"] {
  border: 1px dashed rgba(43,110,234,.35);
  border-radius: 12px;
  padding: 9px;
}
.no-docs-line {
  border: 1px solid rgba(245,158,11,.25);
  background: #fffbeb;
  padding: 12px;
  border-radius: 14px;
}
.detail-doc-table .file-chip {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 9px;
  margin: 2px;
  background: #f8fbff;
  font-weight: 800;
  color: var(--brand-dark);
}
@media (max-width: 760px) {
  .document-card-head,
  .extra-docs-head { flex-direction: column; align-items: stretch; }
  .track-pill { justify-content: center; white-space: normal; }
  .extra-doc-row { grid-template-columns: 1fr; }
}

/* v13: secure admin login + professional client portal */
.secure-login-card { max-width: 760px; }
.login-card-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}
.login-card-head h2 { margin: 0 0 4px; }
.security-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #eef5ff, #ecfdf3);
  border: 1px solid rgba(43,110,234,.18);
  font-size: 1.35rem;
  flex: 0 0 auto;
}
.security-icon.large { width: 62px; height: 62px; font-size: 1.65rem; }
.secure-login-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.verification-box {
  margin-top: 16px;
  border: 1px solid rgba(24,182,164,.22);
  background: linear-gradient(135deg, rgba(24,182,164,.08), rgba(43,110,234,.05));
  border-radius: 18px;
  padding: 16px;
  display: grid;
  gap: 12px;
}
.security-note {
  margin-top: 14px;
  border: 1px solid #e4e7ec;
  background: #f8fafc;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 14px;
  font-size: .92rem;
}
.secure-client-card { max-width: 1180px; }
.portal-login-layout {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 22px;
  align-items: stretch;
}
.portal-login-copy {
  border-radius: 24px;
  padding: 24px;
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
  color: #fff;
  min-height: 100%;
}
.portal-login-copy h2 { margin: 14px 0 8px; font-size: 1.8rem; }
.portal-login-copy p { color: #dbeafe; }
.secure-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.secure-list li {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  padding: 10px 12px;
}
.secure-list li::before { content: "✓"; margin-left: 8px; color: #7dd3fc; font-weight: 900; }
.portal-login-form {
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 22px;
  background: #fff;
  display: grid;
  align-content: start;
  gap: 14px;
}
.portal-empty { text-align: center; background: #fbfcff; }
.portal-dashboard { display: grid; gap: 18px; margin-top: 22px; }
.portal-hero-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: clamp(22px, 4vw, 34px);
  border-radius: 28px;
  color: #fff;
  background: radial-gradient(circle at top left, rgba(24,182,164,.32), transparent 26rem), linear-gradient(135deg, #0b1220, #173b77);
  box-shadow: 0 24px 64px rgba(15,23,42,.18);
}
.portal-hero-card h2 { margin: 0 0 8px; font-size: clamp(1.7rem, 4vw, 2.7rem); }
.portal-hero-card p { color: #dbeafe; max-width: 720px; }
.portal-progress-circle {
  width: 138px;
  height: 138px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  border: 10px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.1);
  flex: 0 0 auto;
}
.portal-progress-circle strong { display: block; font-size: 2.15rem; line-height: 1; }
.portal-progress-circle span { color: #dbeafe; font-weight: 800; }
.portal-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.portal-summary-card,
.portal-section-card {
  background: #fff;
  border: 1px solid rgba(217,226,239,.95);
  border-radius: 22px;
  box-shadow: 0 10px 34px rgba(16,32,51,.07);
}
.portal-summary-card { padding: 18px; display: grid; gap: 6px; }
.portal-summary-card span { color: var(--muted); font-weight: 800; }
.portal-summary-card strong { color: #0f172a; font-size: 1.15rem; }
.portal-section-card { padding: 20px; }
.portal-section-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 14px;
}
.portal-section-title h3 { margin: 0; }
.portal-section-title p { margin: 2px 0 0; color: var(--muted); }
.portal-stepper {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.portal-step {
  min-height: 86px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #f8fafc;
  color: #64748b;
}
.portal-step span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #cbd5e1;
  box-shadow: 0 0 0 5px rgba(203,213,225,.25);
}
.portal-step.done { background: #ecfdf3; border-color: #abefc6; color: #027a48; }
.portal-step.done span { background: var(--success); box-shadow: 0 0 0 5px rgba(3,152,85,.12); }
.portal-step.current { background: #eef5ff; border-color: rgba(43,110,234,.35); color: var(--brand-dark); }
.portal-step.current span { background: var(--brand); box-shadow: 0 0 0 5px rgba(43,110,234,.14); }
.portal-grid-2 { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; }
.portal-documents-table { min-width: 620px; }
.portal-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: .82rem;
  font-weight: 900;
}
.portal-status.ok { background: #ecfdf3; color: #027a48; }
.portal-status.missing { background: #fffaeb; color: #b54708; }
.office-message-box {
  display: grid;
  gap: 6px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f8fbff, #fff);
  border: 1px solid rgba(43,110,234,.14);
  padding: 16px;
}
.office-message-box small { color: var(--muted); }
.clean-actions { margin-bottom: 0; }
.portal-timeline { max-height: 440px; overflow: auto; padding-left: 4px; }
.detail-doc-table .file-chip,
.portal-documents-table .file-chip {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 9px;
  margin: 2px;
  background: #f8fbff;
  font-weight: 800;
  color: var(--brand-dark);
}
@media (max-width: 1020px) {
  .portal-login-layout,
  .portal-grid-2 { grid-template-columns: 1fr; }
  .portal-summary-grid { grid-template-columns: repeat(2, 1fr); }
  .portal-stepper { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .secure-login-grid,
  .single-mobile,
  .portal-summary-grid,
  .portal-stepper { grid-template-columns: 1fr; }
  .portal-hero-card,
  .portal-section-title { flex-direction: column; align-items: stretch; }
  .portal-progress-circle { width: 118px; height: 118px; justify-self: center; }
}

/* v14: מסלול שיקום מקצועי */
.pricing-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rehab-track-card {
  border-color: rgba(24, 182, 164, 0.36);
  background: linear-gradient(180deg, #ffffff, #f7fffd);
}
.rehab-special-card,
.rehab-detail-fields {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(24, 182, 164, .24);
  background: linear-gradient(135deg, #f6fffd, #ffffff);
  border-radius: 18px;
  padding: 18px;
  margin: 18px 0;
}
.rehab-detail-fields h4 { margin: 0; color: var(--brand-dark); }
.soft-hidden-section {
  opacity: .78;
  background: #fbfcfe;
}
.rehab-letter-doc .pdf-header { border-bottom-color: var(--accent); }
.rehab-letter-doc .pdf-logo { background: linear-gradient(135deg, var(--brand), var(--accent)); }
@media (max-width: 1180px) {
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .pricing-grid { grid-template-columns: 1fr; }
}
