/* ==========================================================================
   LK FINANCE — פלטפורמת ההשקעות
   כל המחלקות בקידומת .hk- כדי שלא יתנגשו בשום דבר קיים באתר.
   נשען על הטוקנים של css/styles.css (--navy, --teal, --ink, --hairline...).
   ========================================================================== */

:root {
  --hk-long: #1B7BB8;
  --hk-mid: #2EA4A0;
  --hk-short: #7C8BA8;
  --hk-warn: #B45309;
  --hk-ok: #15803D;
}

/* ==========================================================================
   באנר "בבנייה" — זמני.
   להסרה כשהפלטפורמה עולה לאוויר: מוחקים את הבלוק הזה, מוחקים את
   <div class="hk-wip"> מארבעת העמודים, ומחזירים robots ל-index,follow.
   ========================================================================== */
.hk-wip {
  position: relative;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  border-radius: 22px; padding: 24px 30px; margin-bottom: 26px;
  background: linear-gradient(140deg, #0A1628 0%, #1A2340 60%, #23305A 100%);
  box-shadow: 0 24px 56px -22px rgba(10,22,40,.5);
  overflow: hidden;
}
/* פסים אלכסוניים נעים — רמז ויזואלי ל"עבודה בתהליך".
   העוצמה נמוכה בכוונה: פסים חזקים מרדדים את הנייבי ומוציאים את הבאנר אפרורי
   מול ה-hero שמתחתיו. עדינות כאן היא ההבדל בין "פרימיום" ל"אתר בבנייה". */
.hk-wip::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    rgba(212,165,55,.055) 0 10px,
    transparent 10px 30px
  );
  animation: hk-wip-slide 3.2s linear infinite;
  pointer-events: none;
}
/* זוהר זהוב רך מאחורי האייקון — מחזיר עומק שהפסים לוקחים */
.hk-wip::after {
  content: ""; position: absolute;
  inset-inline-start: -60px; top: -70px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212,165,55,.20), transparent 68%);
  pointer-events: none;
}
@keyframes hk-wip-slide { to { background-position: 56.57px 0; } }
@media (prefers-reduced-motion: reduce) {
  .hk-wip::before { animation: none; }
}
.hk-wip > * { position: relative; z-index: 1; }

.hk-wip-ico {
  flex: none; width: 54px; height: 54px; border-radius: 16px;
  display: grid; place-items: center; font-size: 1.6rem;
  background: linear-gradient(135deg, rgba(212,165,55,.28), rgba(212,165,55,.12));
  border: 1px solid rgba(212,165,55,.42);
}
.hk-wip-body { flex: 1; min-width: 240px; }
.hk-wip-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .74rem; font-weight: 700; letter-spacing: .06em;
  color: #F0C860; background: rgba(212,165,55,.14);
  border: 1px solid rgba(212,165,55,.34);
  padding: 4px 12px; border-radius: 999px;
}
.hk-wip-tag i {
  width: 7px; height: 7px; border-radius: 50%; background: #F0C860;
  animation: hk-wip-pulse 1.8s ease-in-out infinite;
}
@keyframes hk-wip-pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .hk-wip-tag i { animation: none; } }

.hk-wip h2 {
  font-family: var(--font-display); font-weight: 900; color: #fff;
  font-size: clamp(20px, 2.6vw, 27px); line-height: 1.25;
  margin: 11px 0 0; letter-spacing: -.01em;
}
.hk-wip p {
  color: rgba(255,255,255,.76); font-size: .95rem;
  line-height: 1.68; margin-top: 8px; max-width: 62ch;
}
.hk-wip p b { color: #fff; font-weight: 600; }

@media (max-width: 620px) {
  .hk-wip { padding: 20px 18px; border-radius: 18px; gap: 14px; }
  .hk-wip-ico { width: 46px; height: 46px; font-size: 1.35rem; }
}

/* ===== HERO — לוח נייבי כמו הבנקים הגדולים ===== */
.hk-hero {
  position: relative;
  border-radius: 26px;
  padding: 54px 44px 46px;
  background:
    radial-gradient(ellipse 70% 90% at 88% 0%, rgba(46,164,160,.30), transparent 60%),
    radial-gradient(ellipse 60% 80% at 8% 100%, rgba(96,165,250,.24), transparent 62%),
    linear-gradient(148deg, #0A1628 0%, #16294A 55%, #1F3560 100%);
  overflow: hidden;
  box-shadow: 0 32px 70px -28px rgba(10,22,40,.55);
}
.hk-hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 75% 80% at 70% 20%, #000, transparent 78%);
          mask-image: radial-gradient(ellipse 75% 80% at 70% 20%, #000, transparent 78%);
  pointer-events: none;
}
.hk-hero > * { position: relative; z-index: 1; }

.hk-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 600; letter-spacing: .04em;
  color: #BFE3F2;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(191,227,242,.28);
  padding: 6px 14px; border-radius: 999px;
}
.hk-hero h1 {
  font-family: var(--font-display); font-weight: 900; color: #fff;
  font-size: clamp(30px, 4.6vw, 52px); line-height: 1.1;
  letter-spacing: -.02em; margin: 18px 0 0;
}
.hk-hero h1 .hk-grad {
  background: linear-gradient(110deg, #60A5FA 0%, #2EA4A0 60%, #BFE3F2 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hk-hero-lead {
  color: rgba(255,255,255,.78); font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.75; max-width: 62ch; margin-top: 18px;
}
.hk-hero-lead strong { color: #fff; font-weight: 600; }

.hk-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hk-stat {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px; padding: 12px 18px; min-width: 128px;
}
.hk-stat b {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: 1.5rem; color: #fff; line-height: 1.1;
}
.hk-stat span { display: block; font-size: .8rem; color: rgba(191,227,242,.9); margin-top: 3px; }

/* ===== פס גילוי נאות ===== */
.hk-notice {
  display: flex; gap: 14px; align-items: flex-start;
  background: #FFFBEB;
  border: 1.5px solid #FCD9A4;
  border-radius: 16px; padding: 16px 20px;
  margin-top: 22px;
}
.hk-notice-ico { flex: none; font-size: 1.25rem; line-height: 1.4; }
.hk-notice p { color: #7A4B0C; font-size: .93rem; line-height: 1.65; margin: 0; }
.hk-notice p + p { margin-top: 6px; }
.hk-notice a { color: #7A4B0C; text-decoration: underline; font-weight: 600; }

.hk-notice.hk-notice-info { background: var(--bg-tint); border-color: rgba(46,164,160,.35); }
.hk-notice.hk-notice-info p { color: var(--ink-2); }
.hk-notice.hk-notice-info a { color: var(--teal-2); }

/* ===== סרגל בקרה — צ'יפים + מיון ===== */
.hk-controls {
  display: flex; flex-wrap: wrap; gap: 14px;
  align-items: center; justify-content: space-between;
  margin: 34px 0 22px;
}
.hk-chips { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.hk-chip {
  background: var(--surface); border: 1.5px solid var(--hairline-2);
  color: var(--ink-2); border-radius: 999px;
  padding: 9px 17px; font-family: var(--font-body);
  font-size: .92rem; font-weight: 600; cursor: pointer;
  transition: all .16s ease; white-space: nowrap;
}
.hk-chip:hover { border-color: var(--teal-2); color: var(--teal-2); transform: translateY(-1px); }
.hk-chip.is-on { background: var(--navy); color: #fff; border-color: var(--navy); }
.hk-chip small { opacity: .62; font-weight: 400; margin-inline-start: 5px; }

.hk-sort { display: flex; align-items: center; gap: 9px; }
.hk-sort label { font-size: .88rem; color: var(--muted); font-weight: 600; }
.hk-sort select {
  font-family: var(--font-body); font-size: .92rem; font-weight: 600;
  color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--hairline-2); border-radius: 12px;
  padding: 9px 13px; cursor: pointer; outline: none;
}
.hk-sort select:focus { border-color: var(--teal); }

.hk-count { font-size: .9rem; color: var(--muted); margin-bottom: 16px; }
.hk-count b { color: var(--ink); font-weight: 700; }

/* ===== רשת כרטיסים =====
   min-width:0 קריטי כאן. ברירת המחדל של פריט ב-grid/flex היא min-width:auto,
   כלומר הוא מסרב להצטמצם מתחת לרוחב המינימלי של תוכנו. בתוך הכרטיס יש טבלת
   אחזקות עם min-width:430px — בלי האיפוס הזה הכרטיס דוחף את הרשת מעבר לרוחב
   המסך ומייצר גלישה אופקית בנייד. */
.hk-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; align-items: start; }
.hk-grid > * { min-width: 0; }

/* ===== כרטיס תמהיל ===== */
.hk-card {
  position: relative; background: var(--surface); min-width: 0;
  border: 1.5px solid var(--hairline-2); border-radius: 22px;
  box-shadow: var(--shadow-1); overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
  scroll-margin-top: 96px;
}
.hk-card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); border-color: rgba(46,164,160,.4); }
.hk-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--teal-2));
}
.hk-card[data-horizon="long"]::before  { background: linear-gradient(90deg, #1B7BB8, #60A5FA); }
.hk-card[data-horizon="mid"]::before   { background: linear-gradient(90deg, #2EA4A0, #1B7BB8); }
.hk-card[data-horizon="short"]::before { background: linear-gradient(90deg, #7C8BA8, #2EA4A0); }
.hk-card.is-target { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(46,164,160,.16), var(--shadow-2); }

.hk-card-head { padding: 22px 24px 0; }
.hk-tags { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.hk-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .76rem; font-weight: 700; letter-spacing: .02em;
  padding: 5px 12px; border-radius: 999px;
  background: var(--bg-tint); color: var(--teal-2);
  border: 1px solid rgba(46,164,160,.28);
}
.hk-tag[data-h="long"]  { background: rgba(27,123,184,.10); color: #1B7BB8; border-color: rgba(27,123,184,.28); }
.hk-tag[data-h="mid"]   { background: rgba(46,164,160,.12); color: #17807C; border-color: rgba(46,164,160,.30); }
.hk-tag[data-h="short"] { background: rgba(124,139,168,.14); color: #4A5A76; border-color: rgba(124,139,168,.32); }
.hk-tag small { font-weight: 400; opacity: .72; }

.hk-risk { display: inline-flex; align-items: center; gap: 7px; font-size: .76rem; color: var(--muted); font-weight: 600; }
.hk-risk-dots { display: inline-flex; gap: 3px; }
.hk-risk-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--hairline-2); display: block; }
.hk-risk-dots i.on { background: linear-gradient(135deg, var(--teal), var(--teal-2)); }

.hk-card h2 {
  font-family: var(--font-display); font-weight: 900; color: var(--ink);
  font-size: 1.42rem; line-height: 1.25; margin: 13px 0 0; letter-spacing: -.01em;
}
.hk-by { font-size: .87rem; color: var(--muted); margin-top: 5px; }
.hk-by b { color: var(--ink-2); font-weight: 600; }
.hk-summary { font-size: .98rem; color: var(--ink-2); line-height: 1.6; margin-top: 11px; font-weight: 500; }

/* ===== דונאט + חשיפה ===== */
.hk-viz {
  display: grid; grid-template-columns: 132px 1fr; gap: 20px; align-items: center; min-width: 0;
  padding: 20px 24px; margin-top: 18px;
  background: linear-gradient(160deg, var(--bg-tint) 0%, rgba(237,247,251,.35) 100%);
  border-block: 1px solid var(--hairline);
}
.hk-donut { position: relative; width: 132px; height: 132px; }
.hk-donut svg { width: 100%; height: 100%; display: block; transform: rotate(-90deg); }
.hk-donut-mid {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center;
}
.hk-donut-mid b {
  display: block; font-family: var(--font-display); font-weight: 900;
  font-size: 1.32rem; color: var(--ink); line-height: 1;
}
.hk-donut-mid span { display: block; font-size: .67rem; color: var(--muted); margin-top: 3px; line-height: 1.3; }

.hk-legend { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.hk-legend-row { display: flex; align-items: center; gap: 9px; font-size: .89rem; }
.hk-legend-row i { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.hk-legend-row span { color: var(--ink-2); font-weight: 500; }
.hk-legend-row b { margin-inline-start: auto; font-family: var(--font-display); font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ===== טבלת אחזקות ===== */
.hk-holdings-wrap { padding: 0 24px; }
.hk-holdings-wrap > h3 {
  font-family: var(--font-display); font-size: .93rem; font-weight: 800;
  color: var(--ink); margin: 20px 0 10px;
}
.hk-tablescroll { overflow-x: auto; min-width: 0; border-radius: 13px; border: 1px solid var(--hairline-2); -webkit-overflow-scrolling: touch; }
table.hk-holdings { width: 100%; border-collapse: collapse; font-size: .87rem; min-width: 430px; background: var(--surface); }
table.hk-holdings th {
  background: var(--navy); color: #fff; font-family: var(--font-display);
  font-weight: 700; font-size: .79rem; padding: 9px 11px; text-align: right; white-space: nowrap;
}
table.hk-holdings td { padding: 10px 11px; border-top: 1px solid var(--hairline); color: var(--ink-2); vertical-align: middle; }
table.hk-holdings tr:nth-child(even) td { background: rgba(237,247,251,.4); }
table.hk-holdings .hk-num { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 700; color: var(--ink); }
table.hk-holdings .hk-asset { font-weight: 600; color: var(--ink); }
table.hk-holdings .hk-fund { font-size: .82rem; color: var(--muted); line-height: 1.4; }
table.hk-holdings .hk-tase { font-variant-numeric: tabular-nums; font-size: .82rem; color: var(--muted); white-space: nowrap; }
.hk-swatch { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-inline-end: 7px; vertical-align: middle; }

.hk-ter-line {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px;
  margin-top: 11px; padding: 11px 15px;
  background: var(--bg-tint); border-radius: 12px;
  border-inline-start: 3px solid var(--teal);
  font-size: .89rem; color: var(--ink-2);
}
.hk-ter-line b { font-family: var(--font-display); font-weight: 900; font-size: 1.06rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.hk-ter-line small { color: var(--muted); font-size: .8rem; margin-inline-start: auto; }

.hk-note {
  margin-top: 11px; padding: 11px 15px;
  background: #FFFBEB; border: 1px solid #FCD9A4; border-radius: 12px;
  font-size: .85rem; color: #7A4B0C; line-height: 1.6;
}

/* ===== למי מתאים / למי לא ===== */
.hk-fit { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 24px; margin-top: 20px; }
.hk-fit-col { border-radius: 14px; padding: 14px 15px; border: 1px solid var(--hairline-2); }
.hk-fit-yes { background: rgba(21,128,61,.05); border-color: rgba(21,128,61,.2); }
.hk-fit-no  { background: rgba(180,83,9,.05); border-color: rgba(180,83,9,.2); }
.hk-fit-col h4 { font-family: var(--font-display); font-size: .85rem; font-weight: 800; margin-bottom: 8px; }
.hk-fit-yes h4 { color: var(--hk-ok); }
.hk-fit-no h4  { color: var(--hk-warn); }
.hk-fit-col ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.hk-fit-col li { font-size: .85rem; line-height: 1.5; color: var(--ink-2); padding-inline-start: 15px; position: relative; }
.hk-fit-col li::before { position: absolute; inset-inline-start: 0; top: 0; font-weight: 800; font-size: .8rem; }
.hk-fit-yes li::before { content: "✓"; color: var(--hk-ok); }
.hk-fit-no li::before  { content: "✕"; color: var(--hk-warn); }

/* ===== הסבר מתקפל ===== */
.hk-explain { padding: 0 24px; margin-top: 18px; }
.hk-explain-body {
  font-size: .93rem; line-height: 1.78; color: var(--ink-2);
  max-height: 5.4em; overflow: hidden; position: relative;
  transition: max-height .3s ease;
}
.hk-explain-body::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 2.4em;
  background: linear-gradient(180deg, transparent, var(--surface) 82%);
  pointer-events: none; transition: opacity .2s ease;
}
.hk-explain.is-open .hk-explain-body { max-height: 200em; }
.hk-explain.is-open .hk-explain-body::after { opacity: 0; }
.hk-explain-body p + p { margin-top: 11px; }
.hk-more {
  background: none; border: none; padding: 6px 0 0;
  color: var(--teal-2); font-family: var(--font-body);
  font-size: .89rem; font-weight: 700; cursor: pointer;
}
.hk-more:hover { text-decoration: underline; }

.hk-source {
  padding: 0 24px; margin-top: 14px;
  font-size: .82rem; color: var(--muted); line-height: 1.55;
}
.hk-source a { color: var(--teal-2); font-weight: 600; text-decoration: underline; }

/* ===== פוטר הכרטיס ===== */
.hk-card-foot {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  padding: 18px 24px 22px; margin-top: 18px;
  border-top: 1px solid var(--hairline);
}
.hk-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: .92rem; font-weight: 700;
  padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: all .17s ease; white-space: nowrap;
}
.hk-btn-primary {
  background: linear-gradient(135deg, #1B7BB8, #2EA4A0); color: #fff;
  box-shadow: 0 10px 26px -8px rgba(27,123,184,.55);
}
.hk-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -8px rgba(27,123,184,.65); }
.hk-btn-ghost { background: var(--surface); border-color: var(--hairline-2); color: var(--ink-2); }
.hk-btn-ghost:hover { border-color: var(--teal-2); color: var(--teal-2); }
.hk-card-foot .hk-btn-ghost { margin-inline-start: auto; }

/* ===== טבלה מסכמת ===== */
.hk-summary-wrap { overflow-x: auto; border-radius: 18px; border: 1.5px solid var(--hairline-2); box-shadow: var(--shadow-1); background: var(--surface); }
table.hk-summary { width: 100%; border-collapse: collapse; min-width: 760px; font-size: .9rem; }
table.hk-summary th {
  background: var(--navy); color: #fff; font-family: var(--font-display);
  font-weight: 700; font-size: .84rem; padding: 13px 12px; text-align: right;
  white-space: nowrap; cursor: pointer; user-select: none; position: relative;
}
table.hk-summary th:hover { background: #16294A; }
table.hk-summary th[aria-sort="ascending"]::after  { content: " ▲"; font-size: .7rem; color: #BFE3F2; }
table.hk-summary th[aria-sort="descending"]::after { content: " ▼"; font-size: .7rem; color: #BFE3F2; }
table.hk-summary th.hk-nosort { cursor: default; }
table.hk-summary th.hk-nosort:hover { background: var(--navy); }
table.hk-summary td { padding: 12px; border-top: 1px solid var(--hairline); color: var(--ink-2); }
table.hk-summary tbody tr:hover td { background: var(--bg-tint); }
table.hk-summary .hk-num { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); white-space: nowrap; }
table.hk-summary a.hk-rowlink { color: var(--ink); font-weight: 700; }
table.hk-summary a.hk-rowlink:hover { color: var(--teal-2); text-decoration: underline; }

.hk-bar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; min-width: 92px; background: var(--hairline); }
.hk-bar i { display: block; height: 100%; }

.hk-table-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.hk-hint { font-size: .84rem; color: var(--muted); }

/* ===== מודאל 4 השלבים ===== */
.hk-modal {
  position: fixed; inset: 0; z-index: 2000;
  display: none; align-items: center; justify-content: center;
  padding: 20px; background: rgba(10,22,40,.62);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
}
.hk-modal.is-open { display: flex; }
.hk-modal-box {
  background: var(--bg); border-radius: 24px;
  width: 100%; max-width: 720px; max-height: 88vh; overflow-y: auto;
  box-shadow: 0 40px 90px -24px rgba(10,22,40,.6);
  position: relative;
}
.hk-modal-head {
  position: sticky; top: 0; z-index: 2;
  padding: 24px 28px 20px;
  background: linear-gradient(140deg, #0A1628, #1A2340 70%, #23305A);
  border-radius: 24px 24px 0 0;
}
.hk-modal-head h2 { font-family: var(--font-display); font-weight: 900; font-size: 1.4rem; color: #fff; }
.hk-modal-head p { color: rgba(191,227,242,.9); font-size: .9rem; margin-top: 5px; }
.hk-modal-close {
  position: absolute; top: 18px; inset-inline-start: 20px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22);
  color: #fff; font-size: 1.1rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center; transition: background .15s ease;
}
.hk-modal-close:hover { background: rgba(255,255,255,.26); }
.hk-modal-body { padding: 24px 28px 30px; }

.hk-step { display: grid; grid-template-columns: 38px 1fr; gap: 15px; padding-bottom: 24px; position: relative; }
.hk-step:not(:last-child)::before {
  content: ""; position: absolute; top: 40px; bottom: 6px;
  inset-inline-start: 18px; width: 2px; background: var(--hairline-2);
}
.hk-step-num {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-2)); color: #fff;
  font-family: var(--font-display); font-weight: 900; font-size: 1rem;
  display: grid; place-items: center; position: relative; z-index: 1;
}
.hk-step h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: var(--ink); margin-bottom: 6px; }
.hk-step p { font-size: .92rem; line-height: 1.7; color: var(--ink-2); }
.hk-step p + p { margin-top: 8px; }
.hk-step ul { list-style: none; margin-top: 8px; display: flex; flex-direction: column; gap: 5px; }
.hk-step li { font-size: .89rem; color: var(--ink-2); padding-inline-start: 16px; position: relative; line-height: 1.55; }
.hk-step li::before { content: "•"; position: absolute; inset-inline-start: 0; color: var(--teal); font-weight: 800; }

.hk-step-mini {
  margin-top: 10px; background: var(--surface);
  border: 1px solid var(--hairline-2); border-radius: 13px; overflow: hidden;
}
.hk-step-mini table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.hk-step-mini td { padding: 8px 12px; border-top: 1px solid var(--hairline); color: var(--ink-2); }
.hk-step-mini tr:first-child td { border-top: none; }
.hk-step-mini td:last-child { text-align: start; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); width: 62px; }

/* ===== כרטיסי בתי השקעות ===== */
.hk-broker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.hk-broker {
  background: var(--surface); border: 1.5px solid var(--hairline-2);
  border-radius: 20px; padding: 22px; box-shadow: var(--shadow-1);
  display: flex; flex-direction: column; gap: 12px;
}
.hk-broker.is-partner { border-color: rgba(46,164,160,.5); box-shadow: 0 0 0 3px rgba(46,164,160,.09), var(--shadow-1); }
.hk-broker-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.hk-broker h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.16rem; color: var(--ink); }
.hk-badge {
  font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  background: var(--teal); color: #fff; white-space: nowrap;
}
.hk-badge.hk-badge-soft { background: var(--bg-tint-2); color: var(--teal-2); }
.hk-broker-specs { display: flex; flex-direction: column; gap: 7px; }
.hk-spec { display: flex; justify-content: space-between; gap: 12px; font-size: .89rem; padding-bottom: 7px; border-bottom: 1px dashed var(--hairline-2); }
.hk-spec span { color: var(--muted); }
.hk-spec b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; text-align: start; }
.hk-spec b.hk-empty { color: var(--muted); font-weight: 400; font-style: italic; }
.hk-broker-disc { font-size: .8rem; color: var(--muted); line-height: 1.55; }
.hk-verified { font-size: .78rem; color: var(--muted); }
.hk-verified b { color: var(--ink-2); }

/* ===== ספריית אתרים ===== */
.hk-letters { display: flex; flex-wrap: wrap; gap: 5px; margin: 18px 0 6px; }
.hk-letter {
  min-width: 32px; height: 32px; padding: 0 8px;
  display: grid; place-items: center;
  background: var(--surface); border: 1.5px solid var(--hairline-2);
  border-radius: 9px; font-size: .86rem; font-weight: 700; color: var(--ink-2);
  cursor: pointer; transition: all .14s ease;
}
.hk-letter:hover:not(:disabled) { border-color: var(--teal-2); color: var(--teal-2); }
.hk-letter.is-on { background: var(--navy); color: #fff; border-color: var(--navy); }
.hk-letter:disabled { opacity: .3; cursor: default; }

.hk-search { position: relative; max-width: 460px; }
.hk-search input {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--hairline-2);
  border-radius: 999px; padding: 13px 46px 13px 20px; outline: none;
  transition: border-color .15s ease;
}
.hk-search input:focus { border-color: var(--teal); }
.hk-search-ico { position: absolute; inset-inline-end: 17px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.hk-search-clear {
  position: absolute; inset-inline-start: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--muted); font-size: 1.15rem;
  cursor: pointer; display: none; line-height: 1;
}
.hk-search-clear.is-on { display: block; }

.hk-sitegroup { margin-top: 34px; }
.hk-sitegroup-head { margin-bottom: 14px; }
.hk-sitegroup-head h2 { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: var(--ink); }
.hk-sitegroup-head p { font-size: .9rem; color: var(--muted); margin-top: 4px; }
.hk-sitelist { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 12px; }
.hk-site {
  display: block; background: var(--surface);
  border: 1.5px solid var(--hairline-2); border-radius: 15px;
  padding: 15px 17px; transition: all .16s ease;
}
.hk-site:hover { border-color: var(--teal); transform: translateY(-2px); box-shadow: var(--shadow-1); }
.hk-site-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hk-site-top b { font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: var(--ink); }
.hk-site-en { font-size: .78rem; color: var(--muted); direction: ltr; unicode-bidi: isolate; }
.hk-pill {
  font-size: .68rem; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  background: var(--bg-tint-2); color: var(--teal-2); white-space: nowrap;
}
.hk-pill.hk-pill-paid { background: rgba(212,165,55,.16); color: #8A6410; }
.hk-pill.hk-pill-en { background: rgba(124,139,168,.16); color: #4A5A76; }
.hk-site p { font-size: .87rem; color: var(--muted); line-height: 1.55; margin-top: 7px; }
.hk-site-url { font-size: .76rem; color: var(--teal-2); margin-top: 8px; direction: ltr; unicode-bidi: isolate; text-align: right; }

.hk-empty-state { text-align: center; padding: 50px 20px; color: var(--muted); }
.hk-empty-state b { display: block; font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); margin-bottom: 6px; }

/* ===== שער ===== */
.hk-gate { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hk-gate-card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1.5px solid var(--hairline-2); border-radius: 22px;
  padding: 28px 26px; box-shadow: var(--shadow-1);
  transition: all .2s ease; position: relative; overflow: hidden;
}
.hk-gate-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--teal), var(--teal-2)); }
.hk-gate-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--teal); }
.hk-gate-ico {
  width: 50px; height: 50px; border-radius: 15px;
  background: linear-gradient(135deg, var(--teal), var(--teal-2));
  display: grid; place-items: center; font-size: 1.45rem; margin-bottom: 15px;
}
.hk-gate-card h2 { font-family: var(--font-display); font-weight: 900; font-size: 1.28rem; color: var(--ink); }
.hk-gate-card p { font-size: .93rem; color: var(--muted); line-height: 1.68; margin-top: 9px; flex: 1; }
.hk-gate-meta { font-size: .82rem; color: var(--teal-2); font-weight: 700; margin-top: 15px; }

/* ===== שיתוף ===== */
.hk-sharebar {
  display: flex; flex-wrap: wrap; gap: 9px; align-items: center;
  padding: 20px 24px; background: var(--surface);
  border: 1.5px solid var(--hairline-2); border-radius: 18px;
}
.hk-sharebar > span { font-size: .92rem; font-weight: 700; color: var(--ink); margin-inline-end: 4px; }

/* ===== טאבים ===== */
.hk-tabs {
  display: flex; gap: 6px; flex-wrap: nowrap; overflow-x: auto;
  background: var(--surface); border: 1.5px solid var(--hairline-2);
  border-radius: 999px; padding: 6px; min-width: 0;
  -ms-overflow-style: none; scrollbar-width: none;
}
.hk-tabs::-webkit-scrollbar { display: none; }
.hk-tab {
  flex: 1 0 auto; white-space: nowrap;
  background: none; border: none; border-radius: 999px;
  padding: 11px 20px; font-family: var(--font-body);
  font-size: .93rem; font-weight: 700; color: var(--muted);
  cursor: pointer; transition: all .16s ease;
}
.hk-tab:hover { color: var(--teal-2); }
.hk-tab.is-on {
  background: linear-gradient(135deg, #1B7BB8, #2EA4A0); color: #fff;
  box-shadow: 0 8px 20px -8px rgba(27,123,184,.55);
}

/* ===== השוואה גרפית ===== */
.hk-cmp-block {
  background: var(--surface); border: 1.5px solid var(--hairline-2);
  border-radius: 20px; padding: 24px; margin-top: 18px; box-shadow: var(--shadow-1);
  min-width: 0;
}
.hk-cmp-block h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.12rem; color: var(--ink); }
.hk-cmp-note { font-size: .89rem; color: var(--muted); line-height: 1.6; margin: 6px 0 18px; }
.hk-cmp-note b { color: var(--ink-2); }

.hk-cmp-row {
  display: grid; grid-template-columns: 190px 1fr auto;
  gap: 14px; align-items: center; padding: 9px 0;
  border-top: 1px solid var(--hairline);
}
.hk-cmp-row:first-of-type { border-top: none; }
.hk-cmp-name { font-size: .9rem; font-weight: 700; color: var(--ink); min-width: 0; }
.hk-cmp-track { min-width: 0; }
.hk-cmp-val { font-family: var(--font-display); font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink); font-size: .95rem; }

.hk-bar-lg { height: 18px; border-radius: 6px; }
.hk-cmp-inline { display: flex; margin-top: 3px; }
.hk-cmp-inline span { font-size: .72rem; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }

.hk-ter-bar { height: 18px; border-radius: 6px; background: var(--hairline); overflow: hidden; }
.hk-ter-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--teal-2)); }

.hk-legend-flat { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--hairline); }
.hk-legend-flat span { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; color: var(--ink-2); }
.hk-legend-flat i { width: 11px; height: 11px; border-radius: 3px; }

.hk-cmp-controls { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; margin-bottom: 16px; }
.hk-cmp-controls label {
  display: flex; flex-direction: column; gap: 5px;
  font-size: .84rem; font-weight: 600; color: var(--muted); min-width: 0;
}
.hk-cmp-controls input {
  font-family: var(--font-body); font-size: 1rem; font-weight: 700; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--hairline-2);
  border-radius: 12px; padding: 10px 13px; width: 150px; outline: none;
}
.hk-cmp-controls input:focus { border-color: var(--teal); }

/* ===== מחשבון איזון + התיק שלי ===== */
table.hk-holdings input[type="number"] {
  width: 100%; min-width: 90px; font-family: var(--font-body); font-size: .95rem;
  font-weight: 700; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--hairline-2); border-radius: 9px;
  padding: 7px 10px; outline: none; text-align: start;
}
table.hk-holdings input[type="number"]:focus { border-color: var(--teal); background: #FFFBE9; }

.hk-x {
  width: 28px; height: 28px; border-radius: 8px;
  background: rgba(180,83,9,.08); border: 1px solid rgba(180,83,9,.22);
  color: var(--hk-warn); font-size: .82rem; cursor: pointer; line-height: 1;
}
.hk-x:hover { background: rgba(180,83,9,.16); }

.hk-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.hk-select {
  font-family: var(--font-body); font-size: .95rem; font-weight: 600; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--hairline-2);
  border-radius: 12px; padding: 11px 14px; cursor: pointer; outline: none;
  max-width: 100%; min-width: 0;
}
.hk-select:focus { border-color: var(--teal); }

/* ===== הדפסת תמהיל בודד ===== */
@media print {
  body.hk-printing-one .hk-card:not(.hk-print-target) { display: none !important; }
  body.hk-printing-one section:not(:has(.hk-print-target)),
  body.hk-printing-one header { display: none !important; }
  body.hk-printing-one .hk-print-target { border: 1px solid #ccc; box-shadow: none; }
}

/* אותו איפוס min-width לכל שאר הרשתות בעמודים האלה — מונע גלישה אופקית בנייד */
.hk-fit > *, .hk-gate > *, .hk-broker-grid > *, .hk-sitelist > *, .hk-controls > * { min-width: 0; }
.hk-summary-wrap { min-width: 0; -webkit-overflow-scrolling: touch; }

/* ===== כפתורי שיתוף + toast =====
   מקבילים ל-.share-btn / .toast שב-css/posts.css, אבל מוגדרים כאן על טוקני
   המערכת הגלובלית — כדי שהעמודים האלה לא יצטרכו לטעון את posts.css כולו. */
.share-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; background: var(--surface);
  border: 1.5px solid var(--hairline-2); border-radius: 999px;
  font-family: var(--font-display); font-weight: 700; font-size: .87rem;
  color: var(--ink); cursor: pointer; transition: all .2s ease; white-space: nowrap;
}
.share-btn:hover {
  transform: translateY(-2px); box-shadow: 0 8px 20px rgba(10,22,40,.08);
  border-color: var(--teal); color: var(--teal-2);
}
.share-btn.copied { background: var(--teal); color: #fff; border-color: var(--teal); }
.share-btn-ico { font-size: 1rem; line-height: 1; }

.lk-toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--ink); color: #fff;
  padding: 12px 22px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 700; font-size: .87rem;
  z-index: 2200; opacity: 0; transition: all .3s ease;
  box-shadow: 0 12px 32px rgba(10,22,40,.24);
}
.lk-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ===== רספונסיבי ===== */
@media (max-width: 1000px) {
  .hk-grid { grid-template-columns: 1fr; }
  .hk-gate { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .hk-hero { padding: 34px 22px 30px; border-radius: 20px; }
  .hk-stat { flex: 1 1 calc(50% - 5px); min-width: 0; }
  .hk-viz { grid-template-columns: 1fr; justify-items: center; gap: 16px; padding: 18px; }
  .hk-legend { width: 100%; }
  .hk-fit { grid-template-columns: 1fr; }
  .hk-card-head, .hk-holdings-wrap, .hk-explain, .hk-source, .hk-card-foot { padding-inline: 18px; }
  .hk-fit { padding-inline: 18px; }
  /* flex-wrap:wrap יחד עם flex-direction:column גורם לפריטים לגלוש לעמודה
     נוספת ומרחיב את המיכל — לכן nowrap כאן. ה-width:100% המפורש נדרש כי
     min-width:0 לבדו לא הספיק כדי לצמצם את רצועת הצ'יפים הגוללת לרוחב ההורה. */
  .hk-controls { flex-direction: column; align-items: stretch; flex-wrap: nowrap; }
  .hk-chips, .hk-sort { width: 100%; }
  .hk-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -ms-overflow-style: none; scrollbar-width: none; }
  .hk-chips::-webkit-scrollbar { display: none; }
  .hk-chip { flex-shrink: 0; }
  .hk-card-foot { flex-direction: column; align-items: stretch; }
  .hk-card-foot .hk-btn { justify-content: center; }
  .hk-card-foot .hk-btn-ghost { margin-inline-start: 0; }
  .hk-modal { padding: 0; align-items: flex-end; }
  .hk-modal-box { max-height: 92vh; border-radius: 22px 22px 0 0; }
  .hk-modal-head { border-radius: 22px 22px 0 0; padding: 20px 22px 16px; }
  .hk-modal-body { padding: 20px 22px 26px; }
  .hk-sitelist { grid-template-columns: 1fr; }
  .hk-cmp-block { padding: 18px 16px; }
  .hk-cmp-row { grid-template-columns: 1fr auto; gap: 8px 10px; }
  .hk-cmp-track { grid-column: 1 / -1; }
  .hk-cmp-controls label { flex: 1 1 100%; }
  .hk-cmp-controls input { width: 100%; }
  .hk-tab { padding: 10px 15px; font-size: .87rem; }
  .hk-toolbar > * { flex: 1 1 100%; }
  .hk-toolbar .hk-btn { justify-content: center; }
}

@media print {
  .nav, .footer, .wa-fab, #lk-bot, .hk-controls, .hk-card-foot,
  .hk-sharebar, .hk-modal, .bg-mesh, .bg-grid, .orb { display: none !important; }
  .hk-card { break-inside: avoid; box-shadow: none; }
  .hk-hero { background: #0A1628 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
