/* ==========================================================
   dldc.net — עיצוב
   ========================================================== */
:root {
  --brand-1: #5b4bc4;
  --brand-2: #3bb3c3;
  --grad: linear-gradient(120deg, var(--brand-1), var(--brand-2));
  --bg: #f3f5fb;
  --bg-2: #e9edf7;
  --card: #ffffff;
  --card-2: #f7f8fc;
  --text: #18203a;
  --muted: #6b7390;
  --line: #e3e7f1;
  --link: #2b3a8f;
  --shadow: 0 1px 2px rgba(20, 30, 70, .05), 0 8px 24px -12px rgba(20, 30, 70, .18);
  --shadow-hover: 0 2px 4px rgba(20, 30, 70, .06), 0 16px 32px -14px rgba(40, 40, 120, .35);
  --r: 16px;
  --r-sm: 10px;
  --font: 'Heebo', system-ui, 'Segoe UI', Arial, sans-serif;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0d1222;
  --bg-2: #121a30;
  --card: #151d33;
  --card-2: #1b2440;
  --text: #e8ebf7;
  --muted: #94a0c2;
  --line: #26304d;
  --link: #a9b8ff;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -14px rgba(0, 0, 0, .6);
  --shadow-hover: 0 2px 6px rgba(0, 0, 0, .35), 0 18px 36px -14px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  background:
    radial-gradient(1200px 500px at 85% -120px, rgba(91, 75, 196, .14), transparent 60%),
    radial-gradient(900px 420px at 0% 0%, rgba(59, 179, 195, .12), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
/* רוחב גמיש: מתפרס על כל המסך ומשאיר שוליים קטנים בצדדים */
.wrap { width: calc(100% - clamp(20px, 3vw, 64px)); max-width: 2560px; margin-inline: auto; }
[hidden] { display: none !important; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--card) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; gap: 20px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__logo { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; background: #fff; box-shadow: var(--shadow); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong {
  font-size: 22px; font-weight: 800; letter-spacing: .5px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand__text small { color: var(--muted); font-size: 12.5px; }

.search { position: relative; flex: 1; max-width: 560px; margin-inline: auto; }
.search input {
  width: 100%; height: 46px; padding: 0 46px 0 44px;
  border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); box-shadow: var(--shadow);
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.search input:focus { border-color: var(--brand-1); box-shadow: 0 0 0 4px rgba(91, 75, 196, .15); }
.search__icon { position: absolute; right: 16px; top: 50%; translate: 0 -50%; width: 20px; fill: var(--muted); }
.search__kbd {
  position: absolute; left: 14px; top: 50%; translate: 0 -50%;
  font: 600 12px var(--font); color: var(--muted);
  border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; background: var(--card-2);
}

.clock { text-align: left; flex-shrink: 0; direction: rtl; }
.clock__time { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; text-align: end; }
.clock__dates { display: flex; flex-direction: column; font-size: 12.5px; color: var(--muted); text-align: end; margin-top: 3px; }

.icon-btn {
  display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 12px; border: 1px solid var(--line); background: var(--card); cursor: pointer;
  transition: transform .15s, background .2s;
}
.icon-btn:hover { background: var(--card-2); }
.icon-btn:active { transform: scale(.95); }
.icon-btn svg { width: 20px; fill: var(--text); }
.icon-btn--sm { width: 34px; height: 34px; border-radius: 10px; }
.icon-btn--sm svg { width: 17px; }
.icon-btn.spin svg { animation: spin .8s linear infinite; }
@keyframes spin { to { rotate: -360deg; } }

/* ---------- Ticker ---------- */
.ticker { background: linear-gradient(90deg, #b91c1c, #dc2626); color: #fff; font-size: 14px; }
.ticker__inner { display: flex; align-items: center; gap: 12px; height: 34px; overflow: hidden; }
.ticker__label { font-weight: 700; padding: 2px 10px; background: rgba(0, 0, 0, .2); border-radius: 6px; flex-shrink: 0; }
.ticker__viewport { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker__track { display: inline-flex; gap: 40px; white-space: nowrap; animation: ticker 90s linear infinite; padding-inline-start: 100%; }
.ticker__track:hover { animation-play-state: paused; }
.ticker__track a:hover { text-decoration: underline; }
.ticker__track a::before { content: '●'; margin-inline-end: 10px; opacity: .6; font-size: 10px; }
@keyframes ticker { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; padding: 0; } }

/* ---------- Generic panels ---------- */
main { padding-block: 22px 40px; display: flex; flex-direction: column; gap: 20px; }
.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px; box-shadow: var(--shadow);
}
.panel--flush { padding: 0; overflow: hidden; }
.panel__title { display: flex; align-items: center; gap: 9px; margin: 0 0 14px; font-size: 16px; font-weight: 700; }
.panel__title--pad { padding: 16px 18px 0; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; background: var(--brand-1); }
.dot--blue { background: #3b82f6; } .dot--teal { background: var(--brand-2); } .dot--gold { background: #eab308; }
.dot--red { background: #ef4444; } .dot--purple { background: var(--brand-1); } .dot--green { background: #22c55e; }
.pulse { box-shadow: 0 0 0 0 rgba(239, 68, 68, .6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.row-2--wide { grid-template-columns: 1.25fr 1fr; }
.row-2--finance { grid-template-columns: 2fr 1fr; }

/* ---------- Tiles (קישורים עם תמונות) ---------- */
.tiles { display: grid; gap: 12px; }
/* מספר הקוביות גמיש — תמיד שורה אחת מלאה */
.tiles--quick { grid-auto-flow: column; grid-auto-columns: 1fr; }
.tile__icon img.is-photo { width: 32px; height: 32px; object-fit: cover; border-radius: 7px; }
.tiles--compact { grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 10px; }
.tile {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 8px; min-height: 104px; text-align: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s, border-color .18s;
  font-weight: 500; font-size: 14px;
}
.tiles--compact .tile { min-height: 88px; padding: 12px 6px; background: var(--card-2); box-shadow: none; font-size: 13.5px; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: color-mix(in srgb, var(--brand-1) 40%, var(--line)); }
.tile__icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: #fff; box-shadow: 0 2px 8px -2px rgba(20, 30, 70, .2);
}
.tile__icon img { width: 30px; height: 30px; object-fit: contain; }
.tiles--compact .tile__icon { width: 40px; height: 40px; }
.tiles--compact .tile__icon img { width: 26px; height: 26px; }
.fallback-icon { font-weight: 800; font-size: 18px; color: #fff; background: var(--grad); width: 100%; height: 100%; border-radius: inherit; display: grid; place-items: center; }

/* ---------- 8 קוביות בשורה אחת (דואר + כפתורים) ---------- */
/* מספר הקוביות גמיש — תמיד ממלאות שורה אחת מלאה */
.top8 { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; }
.top8__group { display: contents; }
.top8 .mail, .top8 .feat {
  flex-direction: row; justify-content: flex-start; align-items: center; gap: 7px;
  min-height: 58px; padding: 8px 9px; text-align: start; min-width: 0; border-radius: 12px;
}
.top8 .mail { background: var(--card); box-shadow: var(--shadow); }
.top8 .mail .tile__icon { width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0; }
.top8 .mail .tile__icon img { width: 20px; height: 20px; }
.top8 .feat__emoji { width: 30px; height: 30px; font-size: 16px; border-radius: 8px; }
.top8 .mail .tile__icon { width: 30px; height: 30px; }
.top8 .feat strong { font-size: 13px; }
.top8 .feat::after { width: 70px; height: 70px; inset: auto -20px -35px auto; }
.top8 strong { font-size: 13.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top8 small { font-size: 11px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top8 .mail > span:last-child, .top8 .feat > span:last-child { min-width: 0; }

/* ---------- Mail ---------- */
.mail-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mail {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; text-align: center;
  border-radius: var(--r-sm); background: var(--card-2); border: 1px solid var(--line);
  transition: transform .15s, border-color .15s;
}
.mail:hover { transform: translateY(-2px); border-color: #3b82f6; }
.mail .tile__icon { width: 40px; height: 40px; }
.mail .tile__icon img { width: 24px; height: 24px; }
.mail strong { font-size: 14px; }
.mail small { color: var(--muted); font-size: 11.5px; direction: ltr; }

/* ---------- Featured buttons ---------- */
.featured { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.feat {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: var(--r); color: #fff;
  background: var(--grad); box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s, filter .18s;
}
.feat:nth-child(2) { background: linear-gradient(120deg, #2563eb, #3bb3c3); }
.feat:nth-child(3) { background: linear-gradient(120deg, #dc2626, #f97316); }
.feat:nth-child(4) { background: linear-gradient(120deg, #0f766e, #22c55e); }
.feat::after { content: ''; position: absolute; inset: auto -30px -60px auto; width: 140px; height: 140px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.feat:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); filter: saturate(1.15); }
.feat__emoji { font-size: 26px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: rgba(255, 255, 255, .2); flex-shrink: 0; }
.feat strong { display: block; font-size: 16.5px; }
.feat small { opacity: .9; font-size: 13px; }

/* ---------- Main grid ---------- */
.main-grid { display: grid; grid-template-columns: clamp(270px, 20%, 400px) 1fr clamp(280px, 20%, 400px); gap: 20px; align-items: start; }
.search { max-width: 720px; }
/* מסכים רחבים מאוד: האלמנטים גדלים מעט כדי לנצל את השטח */
@media (min-width: 1900px) {
  body { font-size: 16px; }
  .news__list { max-height: 460px; }
  .minis { grid-template-columns: repeat(3, 1fr); }
}
.col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.widget { display: block; width: 100%; border: 0; background: #fff; }
.zmanim__more { margin-inline-start: auto; font-size: 12px; font-weight: 500; color: var(--muted); }
.zmanim__more:hover { color: var(--brand-1); }
.zmanim__list { margin: 0; display: flex; flex-direction: column; gap: 1px; }
.zman { display: flex; justify-content: space-between; padding: 5px 10px; border-radius: 8px; font-size: 13.5px; }
.zman dt { color: var(--text); }
.zman dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.zman.is-past { opacity: .45; }
.zman.is-next { background: rgba(234, 179, 8, .16); font-weight: 600; }
.shabbat { background: linear-gradient(120deg, #1e3a8a, #5b4bc4); color: #fff; border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; }
.shabbat__parasha { font-weight: 700; font-size: 14.5px; margin-bottom: 4px; }
.shabbat__times { display: flex; justify-content: space-between; font-size: 13px; }
.shabbat__times b { font-size: 15px; }
.widget--alerts { height: 102px; border-radius: var(--r-sm); }
.panel--alert { padding-bottom: 14px; }
.alert-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.alert-head .panel__title { margin: 0; }
.alert-head small { color: var(--muted); font-size: 12px; }

/* weather */
.weather { background: linear-gradient(150deg, #3b82f6, #5b4bc4 70%); color: #fff; border: 0; }
.weather__now { display: flex; justify-content: space-between; align-items: center; }
.weather__city { font-weight: 700; font-size: 17px; }
.weather__desc { opacity: .9; font-size: 13.5px; }
.weather__temp { display: flex; align-items: center; gap: 6px; font-size: 38px; font-weight: 300; }
.weather__temp span:first-child { font-size: 34px; }
.weather__meta { display: flex; gap: 14px; font-size: 12.5px; opacity: .9; margin: 8px 0 12px; }
.weather__days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.wday { text-align: center; background: rgba(255, 255, 255, .14); border-radius: 10px; padding: 7px 2px; font-size: 12px; }
.wday b { display: block; font-size: 18px; margin: 2px 0; font-weight: 400; }

/* list */
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.list a {
  display: flex; align-items: center; gap: 9px; padding: 3px 8px; border-radius: 7px;
  color: var(--link); font-weight: 500; font-size: 14px; transition: background .15s;
}
.list { gap: 0; }
.list a:hover { background: var(--card-2); }
.list img { width: 18px; height: 18px; border-radius: 4px; }

/* news */
.news { padding-bottom: 8px; }
.news__head { display: flex; align-items: center; justify-content: space-between; }
.news__head .panel__title { margin: 0; }
.news__actions { display: flex; align-items: center; gap: 10px; }
.news__updated { font-size: 12px; color: var(--muted); }
.chips { display: flex; gap: 5px; flex-wrap: wrap; margin: 10px 0 6px; }
.chip {
  border: 1px solid var(--line); background: var(--card-2); border-radius: 999px; padding: 3px 11px;
  font-size: 12.5px; cursor: pointer; transition: all .15s; display: inline-flex; align-items: center; gap: 6px;
}
.chip:hover { border-color: var(--brand-1); }
.chip[aria-selected="true"] { background: var(--text); color: var(--card); border-color: var(--text); }
.chip i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.chip.is-error { opacity: .45; }
.news__list { list-style: none; margin: 0; padding: 0; max-height: 380px; overflow-y: auto; scrollbar-width: thin; }
.news__item { border-bottom: 1px solid var(--line); }
.news__item:last-child { border-bottom: 0; }
.news__item a { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-radius: 8px; transition: background .15s; }
.news__item a:hover { background: var(--card-2); }
.news__thumb { width: 52px; height: 36px; border-radius: 6px; object-fit: cover; flex-shrink: 0; background: var(--bg-2); }
.news__body { min-width: 0; flex: 1; display: flex; align-items: baseline; gap: 8px; }
.news__title { font-weight: 500; font-size: 14px; line-height: 1.4; margin: 0; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news__meta { display: flex; gap: 6px; align-items: center; font-size: 11.5px; color: var(--muted); flex-shrink: 0; }
.news__src { color: #fff; padding: 0 7px; border-radius: 5px; font-weight: 600; font-size: 11px; }
.news__skeleton { height: 36px; margin: 6px 0; border-radius: 10px; background: linear-gradient(90deg, var(--card-2), var(--bg-2), var(--card-2)); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.news__empty { padding: 30px; text-align: center; color: var(--muted); }

/* left column — כפתורים קטנים (AI / אתרי חדשות) */
.panel--tight { padding: 14px; }
.panel--tight .panel__title { margin-bottom: 10px; font-size: 15px; }
.minis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.mini {
  display: flex; align-items: center; gap: 7px; padding: 6px 8px; border-radius: 9px; min-width: 0;
  background: var(--card-2); border: 1px solid var(--line); font-size: 13px; font-weight: 500;
  transition: border-color .15s, transform .15s;
}
.mini:hover { border-color: var(--brand-1); transform: translateY(-1px); }
.mini img, .mini .fallback-icon { width: 18px; height: 18px; border-radius: 4px; flex-shrink: 0; font-size: 11px; }
.mini span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* בחירת עיר בתוך קוביית מזג האוויר */
.weather__city select {
  appearance: none; -webkit-appearance: none; border: 0; outline: none; cursor: pointer;
  background: rgba(255, 255, 255, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='white'/%3E%3C/svg%3E") no-repeat left 8px center;
  color: #fff; font: 700 16px var(--font); padding: 2px 10px 2px 24px; border-radius: 8px;
}
.weather__city select:hover { background-color: rgba(255, 255, 255, .26); }
.weather__city option { color: #18203a; font-weight: 500; }

/* זמני היום — שתי עמודות צפופות */
.zmanim__city { font-size: 12px; font-weight: 500; color: var(--muted); }
.zmanim .zmanim__list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 8px; row-gap: 0; }
.zmanim .zman { padding: 2px 6px; font-size: 12px; border-radius: 6px; }
.zmanim .shabbat { padding: 6px 10px; margin-bottom: 6px; border-radius: 10px; }
.zmanim .shabbat__parasha { font-size: 13px; margin-bottom: 2px; }
.zmanim .shabbat__times { font-size: 12px; }
.zmanim .shabbat__times b { font-size: 13.5px; }

/* רשימת מפתח-ערך קטנה (לימוד יומי, פרטים לתמיכה) */
.kv { margin: 0; display: flex; flex-direction: column; }
.kv > div { display: flex; justify-content: space-between; gap: 10px; padding: 2px 6px; font-size: 12.5px; border-radius: 6px; }
.kv > div:nth-child(odd) { background: var(--card-2); }
.kv dt { color: var(--muted); flex-shrink: 0; }
.kv dd { margin: 0; font-weight: 600; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kv--ltr dd { direction: ltr; font-variant-numeric: tabular-nums; }
.copy-btn {
  margin-inline-start: auto; border: 1px solid var(--line); background: var(--card-2); border-radius: 7px;
  font-size: 11.5px; font-weight: 600; padding: 2px 8px; cursor: pointer;
}
.copy-btn:hover { border-color: var(--brand-1); color: var(--brand-1); }

/* התרעות סייבר */
.cyber__list { list-style: none; margin: 0; padding: 0; }
.cyber__list li + li { border-top: 1px solid var(--line); }
.cyber__list a { display: flex; align-items: baseline; gap: 8px; padding: 4px 4px; border-radius: 6px; font-size: 13px; }
.cyber__list a:hover { background: var(--card-2); }
.cyber__list span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.cyber__list small { flex-shrink: 0; font-size: 11px; color: var(--muted); }

/* החג הבא */
.holiday { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; padding: 6px 10px; margin-bottom: 4px; border-radius: 10px;
  background: linear-gradient(120deg, rgba(234, 179, 8, .18), rgba(234, 179, 8, .06)); }
.holiday strong { font-size: 15px; }
.holiday__count { font-weight: 700; color: #b45309; font-size: 13.5px; }
.holiday small { margin-inline-start: auto; color: var(--muted); font-size: 12px; }

/* טבלת זמני שבת */
.stable { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.stable th { font-size: 11px; font-weight: 600; color: var(--muted); text-align: center; padding: 0 4px 3px; }
.stable th:first-child, .stable td:first-child { text-align: start; }
.stable td { padding: 2px 4px; text-align: center; font-weight: 600; }
.stable td:first-child { font-weight: 500; }
.stable tbody tr:nth-child(odd) td { background: var(--card-2); }
.stable tbody tr td:first-child { border-radius: 0 6px 6px 0; }
.stable tbody tr td:last-child { border-radius: 6px 0 0 6px; color: var(--muted); }
.stable tr.is-mine td { background: rgba(91, 75, 196, .12) !important; }

/* התרעות צבע אדום — מצומצם */
.panel--alert { padding: 9px 13px 8px; }
.panel--alert .alert-head { margin-bottom: 4px; }
.panel--alert .panel__title { font-size: 14px; }
.panel--alert .alert-head small { font-size: 11px; }
.widget--alerts { height: 54px; }

/* צמצום כללי של שורות */
.panel--tight { padding: 11px 13px; }
.panel--tight .panel__title { margin-bottom: 8px; }
.sup { padding: 8px 10px; gap: 10px; }
.sup .sup__icon { width: 34px; height: 34px; }
.sup .sup__icon img { width: 24px; height: 24px; }
.sup small { font-size: 11.5px; }
.support__main { gap: 6px; }
.news__item a { padding: 4px 4px; }
.col { gap: 14px; }
.main-grid { gap: 16px; }

/* ספורט + צפייה לייב קטנה */
.row-sport { display: grid; grid-template-columns: 1fr 170px; gap: 14px; align-items: stretch; }
.panel--sport { padding: 10px 14px; }
.panel--sport .panel__title { margin-bottom: 8px; font-size: 14px; }
.chips-links--sm { gap: 6px; }
.chips-links--sm a { padding: 4px 9px 4px 10px; font-size: 12.5px; border-radius: 8px; }
.chips-links--sm img { width: 15px; height: 15px; }
.live--mini { min-height: 70px; }
.live--mini img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
.live--mini .live__badge { top: 7px; right: 7px; padding: 1px 7px; font-size: 10.5px; }
.live--mini .live__title { bottom: 7px; right: 9px; font-size: 13.5px; }

/* מצב מערכות (UptimeRobot) */
.uptime { padding: 10px 12px; }
.uptime__head {
  display: flex; align-items: center; gap: 7px; width: 100%; padding: 0; border: 0; background: none;
  font-size: 14px; font-weight: 700; cursor: pointer; text-align: start;
}
.uptime__dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; flex-shrink: 0; }
.uptime.is-down .uptime__dot { background: #ef4444; animation: pulse 1.8s infinite; }
.uptime__sum { margin-inline-start: auto; font-size: 11.5px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: rgba(34, 197, 94, .14); color: #15803d; }
.uptime.is-down .uptime__sum { background: rgba(239, 68, 68, .14); color: #b91c1c; }
.uptime__chev { font-size: 10px; color: var(--muted); transition: rotate .2s; }
.uptime__head[aria-expanded="true"] .uptime__chev { rotate: 180deg; }
.uptime__list { list-style: none; margin: 7px 0 0; padding: 4px 0 0; border-top: 1px solid var(--line); }
.uptime__list li { display: flex; align-items: center; gap: 7px; font-size: 12px; padding: 3px 2px; line-height: 1.3; }
.uptime__list i { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; background: #22c55e; }
.uptime__list span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uptime__list small { font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.uptime__list li.is-paused { color: var(--muted); }
.uptime__list li.is-paused i { background: #cbd5e1; }
.uptime__list li.is-down { color: #b91c1c; font-weight: 700; background: rgba(239, 68, 68, .08); border-radius: 6px; padding: 3px 5px; }
.uptime__list li.is-down i { background: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, .25); }
.uptime__list li.is-down small { color: #b91c1c; }
.uptime__ft { font-size: 10px; color: var(--muted); margin-top: 4px; text-align: left; }

/* left column */
.banner { aspect-ratio: 720 / 252; border-radius: var(--r); background: center / cover no-repeat; box-shadow: var(--shadow); border: 1px solid var(--line); }
.support__main { display: flex; flex-direction: column; gap: 8px; }
.sup {
  display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px;
  background: var(--card-2); border: 1px solid var(--line); transition: border-color .15s, transform .15s;
}
.sup:hover { border-color: var(--brand-1); transform: translateX(-3px); }
.sup__emoji { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-size: 20px; background: var(--grad); flex-shrink: 0; }
.sup .sup__icon { width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0; }
.sup .sup__icon img { width: 28px; height: 28px; }
.sup strong { display: block; font-size: 14.5px; }
.sup small { color: var(--muted); font-size: 12px; }
.support__platforms { display: flex; gap: 6px; margin-top: 10px; }
.support__platforms a {
  flex: 1; text-align: center; padding: 7px 4px; border-radius: 9px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--line); transition: background .15s, color .15s;
}
.support__platforms a:hover { background: var(--brand-1); color: #fff; border-color: var(--brand-1); }

.live { position: relative; display: block; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.live img { width: 100%; aspect-ratio: 310 / 165; object-fit: cover; transition: transform .4s; }
.live:hover img { transform: scale(1.05); }
.live::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .7), transparent 55%); }
.live__badge { position: absolute; top: 12px; right: 12px; z-index: 1; display: flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 6px; background: #dc2626; color: #fff; font-weight: 700; font-size: 12px; }
.live__badge i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.live__title { position: absolute; bottom: 12px; right: 14px; z-index: 1; color: #fff; font-weight: 700; font-size: 17px; }

/* ---------- Links board: 4 עמודות ---------- */
.links-board__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.links-board__head .panel__title { margin: 0; }
.filter { flex: 1; max-width: 320px; margin-inline-start: auto; }
.filter input { width: 100%; height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--card-2); outline: none; }
.filter input:focus { border-color: var(--brand-2); }
.columns { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
@media (max-width: 1180px) { .columns { grid-template-columns: repeat(3, 1fr); } }
.column { background: var(--card-2); border: 1px solid var(--line); border-radius: 14px; padding: 8px; min-width: 0; }
.column__title { font-size: 13px; font-weight: 700; color: var(--muted); padding: 6px 10px 8px; margin: 0; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.column ul { list-style: none; margin: 0; padding: 0; }
.column a {
  display: flex; align-items: center; gap: 9px; padding: 6px 10px; border-radius: 8px;
  font-size: 14px; color: var(--link); transition: background .12s, color .12s;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.column a:hover { background: var(--card); color: var(--brand-1); box-shadow: 0 1px 4px rgba(20, 30, 70, .08); }
.column img { width: 16px; height: 16px; border-radius: 3px; flex-shrink: 0; }
.column a span { overflow: hidden; text-overflow: ellipsis; }
.column mark { background: rgba(234, 179, 8, .35); color: inherit; border-radius: 3px; }
.empty { text-align: center; color: var(--muted); }

/* ---------- Finance / sport chips ---------- */
.chips-links { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-links a {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 14px; border-radius: 10px;
  background: var(--card-2); border: 1px solid var(--line); font-size: 13.5px; font-weight: 500;
  transition: border-color .15s, transform .15s;
}
.chips-links a:hover { border-color: #eab308; transform: translateY(-2px); }
.chips-links img { width: 18px; height: 18px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 18px;
  border-radius: 10px; border: 1px solid transparent; background: var(--grad); color: #fff; font-weight: 600; cursor: pointer;
  transition: filter .15s, transform .1s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.98); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { background: var(--card-2); }
.btn--sm { height: 34px; padding: 0 12px; font-size: 13px; }
.btn--danger { background: #dc2626; }

/* ---------- Footer ---------- */
.footer { background: #0b1020; color: #c7cde4; padding: 28px 0; text-align: center; font-size: 13px; }
.footer__slogan { margin: 0 auto 12px; height: 34px; width: auto; border-radius: 8px; }
.footer p { margin: 4px 0; }
.footer .footer__private {
  display: inline-block; margin: 4px 0 10px; padding: 8px 20px; border-radius: 10px;
  background: rgba(239, 68, 68, .15); border: 1px solid rgba(239, 68, 68, .55);
  color: #fecaca; font-size: 15px; font-weight: 700;
}
.footer__copy { opacity: .6; }
.footer__admin { margin-inline-start: 8px; font-size: 14px; opacity: .5; transition: opacity .2s; }
.footer__admin:hover { opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .main-grid { grid-template-columns: 260px 1fr; }
  .col--left { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); }
  .tiles--quick { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); }
  .top8 { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .row-2, .row-2--wide, .row-2--finance { grid-template-columns: 1fr; }
  .main-grid { grid-template-columns: 1fr; }
  .col--left { grid-template-columns: 1fr; }
  .columns { grid-template-columns: repeat(2, 1fr); }
  .clock__dates { display: none; }
}
@media (max-width: 640px) {
  .topbar__inner { flex-wrap: wrap; height: auto; padding-block: 10px; gap: 10px; }
  .search { order: 5; flex-basis: 100%; }
  .search__kbd { display: none; }
  .clock { margin-inline-start: auto; }
  .tiles--quick { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .tile { min-height: 86px; font-size: 12.5px; padding: 10px 4px; }
  .top8 { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); }
  .featured { grid-template-columns: 1fr; }
  .columns { grid-template-columns: 1fr; }
  .links-board__head { flex-wrap: wrap; }
  .filter { order: 3; max-width: none; flex-basis: 100%; }
}
