/* ─── דפי תוכן — סגנון VS Code ─────────────────────────── */
.page-content {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

.page-content main {
  position: relative;
  z-index: 1;
  max-width: var(--layout-max, 1280px);
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3rem) var(--section-px, clamp(1rem, 3vw, 2rem)) 4rem;
}

.page-news main {
  max-width: none;
  width: 100%;
  padding: 0.35rem clamp(0.65rem, 1.25vw, 1rem) 2rem;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--site-header-offset, 64px));
}

.page-glossary {
  display: flex;
  flex-direction: column;
}

.page-glossary .glossary-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: var(--layout-max, 1280px);
  width: 100%;
  padding: clamp(2rem, 4vw, 3rem) var(--section-px) 2.5rem;
}

.glossary-hero {
  flex-shrink: 0;
  margin-bottom: 1rem;
}

.glossary-toolbar {
  flex-shrink: 0;
}

.content-hero {
  margin-bottom: 2.5rem;
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}

.content-hero .section-tag {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--brand);
  margin-bottom: 0.75rem;
}

.content-hero h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.content-hero p {
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.65;
  max-width: 560px;
  font-size: 1.05rem;
}

.content-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.75rem;
  padding: 1rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius, 12px);
  box-shadow: var(--shadow-soft);
}

.search-field {
  flex: 1 1 220px;
  min-width: 0;
}

.search-field input {
  width: 100%;
  padding: 0.65rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm, 8px);
  background: var(--bg-elevated);
  color: var(--text);
  font: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.search-field input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-dim);
}

.search-scope {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.search-scope label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.05rem;
  border-radius: var(--radius-sm, 8px);
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn-primary-sm {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.05rem;
  border-radius: var(--radius-sm, 8px);
  border: none;
  background: var(--brand);
  color: var(--accent-text, #0a0a0a);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}

.content-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.content-card {
  padding: 1.25rem 1.35rem;
  background: var(--surface-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius, 12px);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.content-card:hover {
  border-color: var(--border-warm);
  box-shadow: var(--shadow-soft);
}

.content-card h2,
.content-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.content-card .meta {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.content-card .body {
  margin: 0;
  line-height: 1.75;
  white-space: pre-wrap;
  color: var(--text-soft);
}

.content-card .related {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.term-link {
  display: inline-flex;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border-warm);
  background: var(--brand-dim);
  color: var(--brand);
  font-size: 0.82rem;
  text-decoration: none;
  cursor: pointer;
}

.term-link:hover {
  text-decoration: none;
  background: var(--brand);
  color: var(--accent-text, #0a0a0a);
}

.card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.card-actions button {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  cursor: pointer;
  font-family: inherit;
}

.card-actions button:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.empty-state,
.loading-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--muted);
}

.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.loading-state .spinner {
  width: 28px;
  height: 28px;
  border: 2px solid var(--border);
  border-top-color: var(--text);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.panel-card {
  border: 1px solid var(--border);
  border-radius: var(--radius, 12px);
  background: var(--surface);
}

.content-note {
  margin-top: 1.5rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm, 10px);
  background: var(--brand-dim);
  border: 1px solid var(--border-warm);
  font-size: 0.88rem;
  color: var(--muted);
}

.content-note a {
  color: var(--brand);
}

.external-link {
  display: inline-flex;
  margin-top: 0.85rem;
  font-size: 0.85rem;
  color: var(--brand);
  text-decoration: none;
}

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

/* Modal */
.content-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: var(--overlay);
}

.content-modal.open {
  display: flex;
}

.content-modal-box {
  width: min(560px, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 16px);
  box-shadow: var(--shadow);
}

.content-modal-box h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
}

.form-field {
  margin-bottom: 0.85rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm, 10px);
  background: var(--bg-elevated);
  color: var(--text);
  font: inherit;
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.55;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.form-msg {
  margin-top: 0.75rem;
  font-size: 0.88rem;
}

.form-msg.ok { color: var(--success, #22c55e); }
.form-msg.err { color: var(--danger, #ef4444); }

.page-content .page-deco {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.page-content .deco-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, var(--brand-glow) 0%, transparent 55%),
    linear-gradient(var(--deco-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--deco-line) 1px, transparent 1px);
  background-size: 100% 100%, 64px 64px, 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 5%, transparent 75%);
  opacity: 0.5;
}

/* ─── דף חדשות — דשבורד עיתונאי ───────────────────────── */
.page-news {
  --news-accent: var(--brand);
  --news-accent-dark: var(--brand-dark);
  --news-card-bg: var(--surface);
  --news-card-border: var(--border);
  --news-chart-bg: var(--chart-bg);
  --news-panel-glow: color-mix(in srgb, var(--brand) 10%, transparent);
  --news-strip-stack: 4.25rem;
  background:
    radial-gradient(
      ellipse 90% 55% at 50% -8%,
      color-mix(in srgb, var(--brand) 9%, transparent),
      transparent 58%
    ),
    radial-gradient(
      ellipse 45% 35% at 0% 40%,
      color-mix(in srgb, var(--brand) 4%, transparent),
      transparent 70%
    ),
    radial-gradient(
      ellipse 40% 35% at 100% 55%,
      color-mix(in srgb, var(--info, #38bdf8) 4%, transparent),
      transparent 70%
    ),
    var(--bg);
}

.news-portal {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
  min-height: 0;
}

/* פס עליון */
.news-strip {
  background: linear-gradient(
    105deg,
    var(--brand-deep) 0%,
    var(--brand-mid) 38%,
    var(--brand) 72%,
    color-mix(in srgb, var(--brand-hover) 85%, #fff) 100%
  );
  border-radius: var(--radius-lg);
  color: var(--accent-text);
  box-shadow:
    var(--shadow-soft),
    0 0 40px color-mix(in srgb, var(--brand) 18%, transparent);
  border: 1px solid color-mix(in srgb, #fff 18%, var(--brand-dark));
  overflow: hidden;
  position: relative;
}

.news-strip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.12) 0%,
    transparent 45%
  );
  pointer-events: none;
}

.news-strip-inner {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 0;
  flex-wrap: nowrap;
  position: relative;
  z-index: 1;
  min-height: 3.25rem;
}

.news-strip-label {
  margin: 0;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.news-strip-date-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0.85rem 1.25rem;
  background: transparent;
}

.news-strip-date {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: #1a1408;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: #fff;
  border: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  opacity: 1;
}

.news-live-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent-text);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  line-height: 1.4;
}

[data-theme="light"] .news-live-badge {
  background: rgba(26, 20, 8, 0.12);
  border-color: rgba(26, 20, 8, 0.15);
}

.news-live-badge-sm {
  font-size: 0.6rem;
  padding: 0.12rem 0.4rem;
}

.news-page-title {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.news-page-title::before {
  content: "";
  width: 4px;
  height: 1.35em;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--brand), var(--brand-dark));
  flex-shrink: 0;
}

/* גריד ראשי — מבזקים | גרף+מהדורות | ני"ע */
.news-dashboard {
  display: grid;
  grid-template-columns: minmax(300px, 28vw) minmax(0, 1fr) minmax(200px, 16vw);
  gap: 1rem;
  align-items: stretch;
  flex: 1;
  min-height: 0;
}

.news-dash-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.news-dash-flash,
.news-dash-markets {
  position: sticky;
  top: calc(var(--site-header-offset, 64px) + 0.35rem);
  height: calc(100vh - var(--site-header-offset, 64px) - var(--news-strip-stack));
  max-height: calc(100vh - var(--site-header-offset, 64px) - var(--news-strip-stack));
  align-self: start;
}

/* כותרות עמודות — מחוץ לתיבות */
.news-col-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.65rem;
  padding: 0 0.15rem;
  flex-shrink: 0;
}

.news-col-head h2 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}

.news-col-head-mark {
  width: 0.45rem;
  height: 1.15rem;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--brand), var(--brand-dark));
  box-shadow: 0 0 12px var(--brand-glow);
  flex-shrink: 0;
}

.news-col-head-mark-markets {
  background: linear-gradient(
    180deg,
    var(--info, #38bdf8),
    color-mix(in srgb, var(--info, #38bdf8) 55%, #0ea5e9)
  );
  box-shadow: 0 0 12px color-mix(in srgb, var(--info, #38bdf8) 35%, transparent);
}

.news-dash-center {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.news-chart-panel {
  padding: 0.85rem 1rem 1rem;
}

.news-card-markets {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  max-height: none;
}

.markets-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: auto;
  scrollbar-width: thin;
}

.markets-group-title {
  margin: 0;
  padding: 0.55rem 1rem 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}

.markets-group-title:not(:first-child) {
  border-top: 1px solid var(--news-card-border);
  margin-top: 0.25rem;
  padding-top: 0.75rem;
}

/* כרטיסים */
.news-card {
  background: color-mix(in srgb, var(--news-card-bg) 94%, transparent);
  border: 1px solid color-mix(in srgb, var(--news-card-border) 90%, var(--brand) 8%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    var(--shadow-soft),
    0 0 0 1px color-mix(in srgb, var(--brand) 5%, transparent) inset;
  backdrop-filter: blur(8px);
}

.news-card-chart {
  background:
    linear-gradient(
      165deg,
      color-mix(in srgb, var(--surface-raised) 88%, transparent) 0%,
      color-mix(in srgb, var(--news-card-bg) 96%, transparent) 55%
    );
  border-color: color-mix(in srgb, var(--brand) 14%, var(--border));
  box-shadow:
    var(--shadow-soft),
    0 12px 40px color-mix(in srgb, var(--brand) 6%, transparent);
}

.news-card-editions {
  border-radius: var(--radius-lg);
}

.news-card-editions .news-card-header h2 {
  font-size: 1.05rem;
}

.news-card-markets {
  border-radius: var(--radius);
}

.news-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid color-mix(in srgb, var(--news-card-border) 85%, var(--brand) 8%);
  background: color-mix(in srgb, var(--surface-warm) 85%, transparent);
}

.news-card-header h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.news-card-header-dark {
  background: var(--surface-raised);
  border-bottom-color: var(--border-warm);
  color: var(--text);
}

.news-card-header-dark h2 {
  color: var(--text);
}

/* גרף ראשי — BursaCharts (כמו באזור האישי) */
.page-news .chart-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.page-news .chart-head-watchlist .chart-head-info {
  flex: 1;
  min-width: 0;
}

.page-news .chart-head-block {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.page-news .chart-head-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
}

.page-news .chart-head-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.page-news .chart-head-ticker {
  font-size: 0.78rem;
  font-weight: 700;
  font-family: ui-monospace, monospace;
  direction: ltr;
  padding: 0.12rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-raised);
  color: var(--muted);
}

.page-news .chart-head-block-lg .chart-head-ticker {
  font-size: 1.05rem;
  padding: 0.18rem 0.55rem;
}

.page-news .chart-head-block-lg .chart-head-name {
  font-size: 1.05rem;
}

.page-news .chart-head-prices {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.65rem;
}

.page-news .chart-head-price-row {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
}

.page-news .chart-head-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.page-news .chart-head-block-lg .chart-head-price {
  font-size: 1.45rem;
}

.page-news .chart-head-currency {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
}

.page-news .chart-head-chg,
.page-news .chart-head-abs {
  font-size: 0.82rem;
  font-weight: 600;
}

.page-news .chart-head-block-lg .chart-head-chg,
.page-news .chart-head-block-lg .chart-head-abs {
  font-size: 1rem;
}

.page-news .chart-head-chg.pos,
.page-news .chart-head-abs.pos {
  color: var(--success);
}

.page-news .chart-head-chg.neg,
.page-news .chart-head-abs.neg {
  color: var(--danger);
}

.page-news .chart-head-extended {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  line-height: 1.3;
}

.page-news .chart-head-ext-values {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.65rem;
}

.page-news .chart-head-ext-label {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.72rem;
}

.page-news .chart-head-ext-price {
  font-weight: 700;
}

.page-news .chart-head-ext-chg,
.page-news .chart-head-ext-abs {
  font-weight: 600;
}

.page-news .chart-head-ext-chg.pos,
.page-news .chart-head-ext-abs.pos {
  color: var(--success);
}

.page-news .chart-head-ext-chg.neg,
.page-news .chart-head-ext-abs.neg {
  color: var(--danger);
}

.page-news .chart-toolbar-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.page-news .chart-range-wrap {
  position: relative;
}

.page-news .chart-range-btn,
.page-news .chart-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
}

.page-news .chart-range-btn:hover,
.page-news .chart-range-btn[aria-expanded="true"],
.page-news .chart-icon-btn:hover {
  color: var(--text);
  background: var(--brand-dim);
}

.page-news .chart-icon-btn.active {
  color: var(--accent-text);
  background: var(--brand);
}

.page-news .chart-range-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  z-index: 30;
  min-width: 9.5rem;
  padding: 0.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.page-news .chart-range-menu[hidden] {
  display: none !important;
}

.page-news .chart-range-option {
  border: none;
  border-radius: 6px;
  padding: 0.45rem 0.65rem;
  font-size: 0.82rem;
  font-family: inherit;
  cursor: pointer;
  background: transparent;
  color: var(--text);
  text-align: right;
}

.page-news .chart-range-option:hover {
  background: var(--brand-dim);
}

.page-news .chart-range-option.active {
  background: var(--brand);
  color: var(--accent-text);
  font-weight: 600;
}

.page-news .chart-type-icons {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.hero-chart-host {
  height: clamp(260px, 36vh, 400px);
  min-height: 260px;
  position: relative;
  transition: opacity 0.35s ease;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  overflow: hidden;
}

.page-news .hero-chart-host.is-loading::after {
  content: "טוען גרף...";
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  color: var(--muted);
  font-size: 0.85rem;
  background: var(--chart-loading-overlay, rgba(10, 10, 10, 0.72));
  z-index: 5;
}

.page-news .hero-chart-host.is-loading::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.75rem;
  height: 1.75rem;
  margin: -2rem 0 0 -0.875rem;
  border: 2px solid var(--border);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: chart-spin 0.7s linear infinite;
  z-index: 6;
}

@keyframes chart-spin {
  to {
    transform: rotate(360deg);
  }
}

.hero-chart-host.hero-chart-switch {
  animation: hero-chart-fade 0.35s ease;
}

.hero-chart-progress {
  padding: 0.35rem 1rem 0.55rem;
  background: color-mix(in srgb, var(--surface-muted) 70%, transparent);
  border-block: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}

.hero-chart-progress-track {
  position: relative;
  height: 0.28rem;
  border-radius: 999px;
  overflow: hidden;
  background: color-mix(in srgb, var(--border) 55%, transparent);
}

.hero-chart-progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--brand) 75%, #fff),
    var(--brand)
  );
  transition: width 0.08s linear;
}

.news-chart-head {
  padding-inline: 0.25rem;
}

.news-chart-panel .hero-chart-host {
  min-height: 260px;
}

@keyframes hero-chart-fade {
  0% { opacity: 0.55; }
  100% { opacity: 1; }
}

/* מבזקים — כרטיס לכל מבזק, גלילה בעמודה בלבד */
.flash-scroll-zone {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}

.flash-scroll-zone::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.25rem;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(0deg, var(--bg) 35%, transparent);
}

.flash-list {
  position: relative;
  z-index: 0;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.45rem 0.25rem 0.85rem;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--brand) 35%, var(--border)) transparent;
}

.flash-list::-webkit-scrollbar {
  width: 5px;
}

.flash-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 40%, var(--border));
}

.flash-day-separator {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  justify-content: center;
  padding: 0.35rem 0 0.25rem;
  margin-bottom: -0.1rem;
  flex-shrink: 0;
  pointer-events: none;
  background: transparent;
}

.flash-back-top {
  position: absolute;
  bottom: 0.85rem;
  inset-inline-start: 0.65rem;
  z-index: 6;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--border));
  background: color-mix(in srgb, var(--surface) 92%, var(--brand) 8%);
  color: var(--brand-dark);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1;
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.flash-back-top[hidden] {
  display: none;
}

.flash-back-top:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}

.flash-back-top:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--brand) 55%, transparent);
  outline-offset: 2px;
}

.flash-day-pill {
  display: inline-block;
  padding: 0.28rem 0.8rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-muted) 92%, var(--bg));
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.35;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  pointer-events: auto;
}

.flash-day-separator.is-today .flash-day-pill {
  color: var(--brand-dark);
  border-color: color-mix(in srgb, var(--brand) 35%, var(--border));
  background: color-mix(in srgb, var(--brand) 12%, var(--surface-muted));
}

.flash-msg {
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  border: 1px solid color-mix(in srgb, var(--border) 88%, var(--brand) 10%);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem 0.95rem;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.08),
    0 4px 14px rgba(0, 0, 0, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.flash-msg:hover {
  border-color: color-mix(in srgb, var(--brand) 28%, var(--border));
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.1),
    0 8px 22px color-mix(in srgb, var(--brand) 8%, transparent);
}

.flash-msg.is-new {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--border));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--brand) 22%, transparent),
    0 6px 20px color-mix(in srgb, var(--brand) 10%, transparent);
  animation: news-slide-in 0.35s ease;
}

.flash-msg time {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--brand-dark);
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.4rem;
  padding: 0.14rem 0.5rem;
  border-radius: 4px;
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  letter-spacing: 0.02em;
}

[data-theme="light"] .flash-msg time {
  color: var(--brand-dark);
}

.flash-msg-text {
  font-size: 0.94rem;
  line-height: 1.62;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

.flash-empty {
  padding: 1.25rem 0.5rem;
}

.flash-scroll-sentinel {
  height: 2rem;
  min-height: 2rem;
  pointer-events: none;
  flex-shrink: 0;
}

.flash-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.5rem 1.1rem;
  flex-shrink: 0;
}

.flash-loading::after {
  content: "";
  width: 1.35rem;
  height: 1.35rem;
  border: 2px solid color-mix(in srgb, var(--border) 90%, transparent);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: chart-spin 0.7s linear infinite;
}

/* טבלאות מדדים / מניות */
.ticker-list {
  padding: 0.25rem 0;
}

.ticker-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 0.15rem 0.45rem;
  width: calc(100% - 0.9rem);
  padding: 0.55rem 0.75rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: inherit;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.ticker-row:hover {
  background: color-mix(in srgb, var(--brand) 7%, transparent);
  border-color: color-mix(in srgb, var(--brand) 12%, transparent);
}

.ticker-row.is-hero-active {
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  border-color: color-mix(in srgb, var(--brand) 28%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 15%, transparent);
}

.ticker-row.is-hero-active .ticker-row-name {
  color: var(--brand);
}

.ticker-row:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: -2px;
}

.ticker-row:last-child {
  border-bottom: none;
}
.ticker-row-name,
.ticker-row-value,
.ticker-row-change {
  font-size: 0.88rem;
}

.ticker-row-name {
  font-weight: 600;
}

.ticker-row-value {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
  color: var(--muted);
}

.ticker-row-change {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
  min-width: 3.5rem;
  text-align: end;
}

.ticker-row-change.up { color: var(--chart-up); }
.ticker-row-change.down { color: var(--chart-down); }
.ticker-row-change.neutral { color: var(--muted); }

/* מהדורות */
.editions-block {
  padding: 0;
}

.edition-hero {
  animation: news-fade-in 0.4s ease;
}

.edition-hero-visual {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  background: #1a1204;
}

.edition-scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.edition-scene-sky {
  position: absolute;
  inset: 0;
}

/* ── בוקר: שמיים, שמש זורחת, עננים ── */
.edition-scene-sky-morning {
  background: linear-gradient(
    180deg,
    #4a9fd4 0%,
    #7ec8f0 18%,
    #b8dff5 38%,
    #f9d89a 72%,
    #f5b84a 88%,
    #e8943a 100%
  );
}

.edition-scene-sun-morning {
  position: absolute;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  bottom: 32%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle at 38% 38%, #fffef5 0%, #ffe566 35%, #ffb830 70%, #ff9800 100%);
  box-shadow:
    0 0 30px rgba(255, 200, 60, 0.85),
    0 0 70px rgba(255, 160, 30, 0.45);
}

.edition-scene-rays {
  position: absolute;
  width: 130px;
  height: 130px;
  bottom: calc(32% - 26px);
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: repeating-conic-gradient(
    from 0deg,
    transparent 0deg 14deg,
    rgba(255, 230, 120, 0.22) 14deg 18deg
  );
  animation: edition-sun-glow 5s ease-in-out infinite;
}

.edition-scene-hills-morning {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 38%;
  background:
    radial-gradient(ellipse 55% 100% at 15% 100%, rgba(90, 140, 60, 0.35) 0%, transparent 70%),
    radial-gradient(ellipse 60% 100% at 85% 100%, rgba(70, 120, 50, 0.3) 0%, transparent 70%),
    linear-gradient(180deg, transparent 0%, rgba(160, 100, 40, 0.2) 100%);
}

/* ── צהריים ── */
.edition-scene-sky-afternoon {
  background: linear-gradient(180deg, #2980b9 0%, #5dade2 45%, #aed6f1 100%);
}

.edition-scene-sun-afternoon {
  position: absolute;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  top: 18%;
  right: 22%;
  background: radial-gradient(circle at 35% 35%, #fff, #ffe066 50%, #ffc107 100%);
  box-shadow: 0 0 40px rgba(255, 220, 80, 0.7);
}

/* ── לילה ── */
.edition-scene-sky-night {
  background: linear-gradient(180deg, #0a0e27 0%, #141b3a 50%, #1e2a52 100%);
}

.edition-scene-moon {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  top: 20%;
  right: 20%;
  background: radial-gradient(circle at 35% 35%, #fffef8, #e8e8d0 60%, #c8c8b0 100%);
  box-shadow: 0 0 24px rgba(255, 255, 240, 0.4);
}

.edition-scene-star {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 4px #fff;
}

.edition-scene-star-1 { top: 15%; left: 18%; opacity: 0.9; }
.edition-scene-star-2 { top: 28%; left: 35%; width: 2px; height: 2px; opacity: 0.7; }
.edition-scene-star-3 { top: 12%; right: 38%; opacity: 0.85; }
.edition-scene-star-4 { top: 35%; right: 12%; width: 2px; height: 2px; opacity: 0.6; }

/* ── שישי / שבת ── */
.edition-scene-sky-shabbat {
  background: linear-gradient(180deg, #4a3060 0%, #8b5a7a 40%, #d4956a 75%, #e8b060 100%);
}

.edition-scene-sun-shabbat {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  bottom: 38%;
  left: 30%;
  background: radial-gradient(circle at 35% 35%, #fff8e8, #ffb347 100%);
  box-shadow: 0 0 35px rgba(255, 160, 80, 0.6);
}

.edition-scene-hills-shabbat {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 35%;
  background: linear-gradient(180deg, transparent, rgba(60, 30, 60, 0.25));
}

/* ── סיכום שבוע ── */
.edition-scene-sky-weekly {
  background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 50%, var(--brand-mid) 100%);
}

.edition-scene-bars {
  position: absolute;
  bottom: 28%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 55px;
  opacity: 0.45;
}

.edition-scene-bars span {
  display: block;
  width: 12px;
  border-radius: 3px 3px 0 0;
  background: rgba(255, 255, 255, 0.75);
}

.edition-scene-bars span:nth-child(1) { height: 35%; }
.edition-scene-bars span:nth-child(2) { height: 55%; }
.edition-scene-bars span:nth-child(3) { height: 80%; }
.edition-scene-bars span:nth-child(4) { height: 45%; }
.edition-scene-bars span:nth-child(5) { height: 65%; }

/* ── ברירת מחדל ── */
.edition-scene-sky-default {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
}

.edition-scene-glow {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
}

/* עננים */
.edition-scene-cloud {
  position: absolute;
  display: block;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 50px;
}

.edition-scene-cloud::before,
.edition-scene-cloud::after {
  content: "";
  position: absolute;
  background: inherit;
  border-radius: 50%;
}

.edition-scene-cloud-1 {
  width: 90px;
  height: 32px;
  top: 20%;
  right: 10%;
}

.edition-scene-cloud-1::before {
  width: 40px;
  height: 40px;
  top: -18px;
  left: 12px;
}

.edition-scene-cloud-1::after {
  width: 52px;
  height: 36px;
  top: -12px;
  right: 8px;
}

.edition-scene-cloud-2 {
  width: 70px;
  height: 26px;
  top: 32%;
  left: 8%;
  opacity: 0.75;
}

.edition-scene-cloud-2::before {
  width: 32px;
  height: 32px;
  top: -14px;
  left: 8px;
}

.edition-scene-cloud-2::after {
  width: 38px;
  height: 28px;
  top: -10px;
  right: 6px;
}

.edition-scene-cloud-3 {
  width: 55px;
  height: 20px;
  top: 14%;
  left: 28%;
  opacity: 0.6;
}

.edition-scene-cloud-3::before {
  width: 26px;
  height: 26px;
  top: -12px;
  left: 6px;
}

.edition-scene-cloud-4 {
  width: 65px;
  height: 24px;
  top: 38%;
  left: 15%;
  opacity: 0.7;
}

.edition-scene-cloud-4::before {
  width: 30px;
  height: 30px;
  top: -14px;
  left: 10px;
}

/* כותרת המהדורה על הסצנה */
.edition-hero-label {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0.9rem 1.25rem 1.05rem;
  width: 100%;
  text-align: center;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  text-shadow:
    0 2px 14px rgba(0, 0, 0, 0.45),
    0 1px 3px rgba(0, 0, 0, 0.3);
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.28) 100%);
}

.is-morning .edition-hero-label {
  text-shadow:
    0 2px 16px rgba(80, 40, 0, 0.5),
    0 1px 4px rgba(0, 0, 0, 0.25);
}

.is-night .edition-hero-label {
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 20, 0.45) 100%);
}

@keyframes edition-sun-glow {
  0%, 100% { opacity: 0.75; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.06); }
}

.edition-hero-body {
  padding: 1.35rem 1.5rem 1.5rem;
}

.edition-hero-body time {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.65rem;
  font-weight: 500;
}

.edition-hero-title {
  margin: 0 0 1rem;
  padding: 0.85rem 0 0.95rem;
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  font-weight: 850;
  line-height: 1.28;
  letter-spacing: -0.03em;
  color: var(--text);
  border-bottom: 2px solid color-mix(in srgb, var(--news-accent) 55%, transparent);
  position: relative;
}

.edition-hero-title::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: -2px;
  width: 4.5rem;
  height: 2px;
  background: var(--news-accent);
}

.edition-hero-subtitle {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text-soft, var(--muted));
  font-weight: 600;
  font-style: italic;
}

.edition-hero-content {
  font-size: clamp(1.02rem, 1.8vw, 1.12rem);
  line-height: 1.85;
  color: var(--text-soft, var(--muted));
}

.edition-section-head {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  width: fit-content;
  max-width: 100%;
  margin: 1.45rem 0 0.7rem;
  padding: 0.5rem 1rem 0.5rem 0.75rem;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
  background: color-mix(in srgb, var(--news-accent) 12%, transparent);
  border: none;
  border-radius: 999px;
}

.edition-section-head:first-child {
  margin-top: 0.15rem;
}

.edition-sec-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.35rem;
  height: 2.35rem;
  color: var(--news-accent);
}

.edition-sec-icon {
  width: 1.85rem;
  height: 1.85rem;
  display: block;
}

.edition-sec-title {
  flex: 0 1 auto;
  line-height: 1.35;
}

.edition-hero-content .edition-para {
  margin: 0 0 0.85rem;
  line-height: 1.75;
}

.edition-hero-content .edition-para:last-child {
  margin-bottom: 0;
}

.editions-list {
  display: flex;
  flex-direction: column;
}

.edition-item {
  border-bottom: 1px solid var(--news-card-border);
  background: transparent;
}

.edition-item:last-child {
  border-bottom: none;
}

.edition-item[open] {
  background: color-mix(in srgb, var(--news-accent) 4%, transparent);
}

.edition-item-summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.85rem 1rem;
  cursor: pointer;
  list-style: none;
}

.edition-item[open] > .edition-item-summary {
  border-bottom: 1px solid var(--news-card-border);
  background: color-mix(in srgb, var(--news-accent) 7%, transparent);
}

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

.edition-item-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--news-accent);
  white-space: nowrap;
}

.edition-item-title {
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.edition-item-summary time {
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
}

.edition-item-body {
  padding: 0;
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  line-height: 1.8;
  color: var(--text-soft, var(--muted));
}

.edition-item-body .edition-hero-visual {
  border-radius: 0;
  min-height: 170px;
}

.edition-item-body-inner {
  padding: 1.15rem 1.25rem 1.35rem;
}

.edition-item.is-new {
  animation: news-slide-in 0.45s ease;
}

.news-empty {
  margin: 0;
  padding: 1.5rem 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}

.news-empty-inline {
  margin: 0;
  padding: 0.75rem 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.news-disclaimer {
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}

@keyframes news-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes news-slide-in {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1100px) {
  .news-dashboard {
    grid-template-columns: 1fr 1fr;
  }

  .news-dash-center {
    grid-column: 1 / -1;
    order: 1;
  }

  .news-dash-flash {
    order: 2;
    position: static;
    height: auto;
    max-height: none;
  }

  .news-dash-markets {
    order: 3;
    position: static;
    height: auto;
    max-height: none;
  }

  .news-card-markets {
    max-height: none;
  }

  .flash-scroll-zone {
    max-height: 380px;
  }

  .markets-scroll {
    max-height: 360px;
  }
}

@media (max-width: 640px) {
  .news-dashboard {
    grid-template-columns: 1fr;
  }

  .news-dash-flash {
    order: 3;
  }

  .news-dash-markets {
    order: 2;
  }

  .flash-scroll-zone {
    max-height: 300px;
  }

  .markets-scroll {
    max-height: 280px;
  }
}

@media (max-width: 540px) {
  .hero-chart-host {
    height: 240px;
    min-height: 240px;
  }

  .edition-hero-visual {
    min-height: 160px;
  }

  .edition-scene-sun-morning {
    width: 64px;
    height: 64px;
  }

  .edition-item-title {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .edition-item-body .edition-hero-visual {
    min-height: 150px;
  }
}

/* ─── חדשות (ישן) ─────────────────────────────────────── */
.news-page-header {
  margin-bottom: 2.5rem;
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}

.news-page-header .section-tag {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--brand);
  margin-bottom: 0.75rem;
}

.news-page-header h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.news-page-header p {
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.65;
  font-size: 1.05rem;
}

.news-feed {
  display: flex;
  flex-direction: column;
}

.news-chat {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0.25rem 0;
}

.news-message {
  padding: 1rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius, 12px);
  transition: border-color 0.15s;
}

.news-message:hover {
  border-color: var(--border-warm);
}

.news-message-text {
  margin: 0;
  line-height: 1.75;
  white-space: pre-wrap;
  color: var(--text);
  font-size: 0.98rem;
}

.news-message-time {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: right;
}

.news-disclaimer {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

/* ─── מילון מונחים ─────────────────────────────────────── */

.glossary-count {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.glossary-no-match {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm, 8px);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

.glossary-results-section {
  margin-bottom: 1.5rem;
}

.glossary-section-title {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
}

.glossary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.glossary-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: right;
  padding: 1.25rem 1.35rem;
  min-height: 132px;
  border: 1px solid var(--border);
  border-radius: var(--radius, 12px);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s, transform 0.15s;
}

.glossary-card:hover {
  border-color: var(--border-warm);
  background: var(--surface-hover);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.glossary-card-title {
  margin: 0 0 0.55rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  letter-spacing: -0.01em;
}

.glossary-card-preview {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.glossary-view-box {
  position: relative;
  width: min(960px, 96vw);
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transition: max-height 0.2s ease, width 0.2s ease;
}

.glossary-view-close {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: var(--surface-hover);
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.glossary-view-close:hover {
  color: var(--text);
  background: var(--brand-dim);
}

.glossary-view-title {
  margin: 0 2.5rem 1rem 0;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.glossary-view-body {
  line-height: 1.8;
  white-space: pre-wrap;
  color: var(--text-soft);
  overflow-wrap: anywhere;
}

.glossary-view-suggestion {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

.glossary-view-related {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.glossary-view-related p {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.glossary-view-actions {
  margin-top: 1.25rem;
  padding-top: 0.5rem;
}

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

@media (max-width: 560px) {
  .glossary-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── השוואת עמלות → static/fees.css ───────────────────── */
