/* =================================================================
   itohaber — Header v5: Cards-First Modern
   4 tiers:
     1. Util        32px (dark slate)
     2. Brand       84px (paper)
     3. Nav         54px (paper) — TURQUOISE "Finans EKSTRA" pill
     4. MarketCards 118px (white cards + black CTA)
   Total 288px. CLS=0 contract preserved.
================================================================= */

:root {
  --ih-paper:   oklch(99.0% 0.003 80);
  --ih-paper-2: oklch(96.8% 0.005 80);
  --ih-paper-3: oklch(94.5% 0.006 80);

  --ih-ink:   oklch(13% 0.013 265);
  --ih-ink-2: oklch(34% 0.011 265);
  --ih-ink-3: oklch(56% 0.009 265);
  --ih-ink-4: oklch(72% 0.006 265);

  --ih-line:   oklch(91% 0.006 80);
  --ih-line-2: oklch(85% 0.008 80);

  --ih-slate:   oklch(15% 0.014 265);
  --ih-slate-2: oklch(20% 0.014 265);

  --ih-red:      oklch(54% 0.22 25);
  --ih-red-ink:  oklch(44% 0.20 25);
  --ih-red-soft: oklch(96% 0.04 25);

  /* turquoise / electric blue — secondary accent */
  --ih-cyan:    oklch(72% 0.13 200);
  --ih-cyan-2:  oklch(60% 0.16 215);
  --ih-blue:    oklch(50% 0.18 235);
  --ih-blue-2:  oklch(42% 0.18 245);

  --ih-green:    oklch(58% 0.16 152);
  --ih-up:       oklch(60% 0.17 152);
  --ih-up-ink:   oklch(50% 0.17 152);
  --ih-down:     oklch(58% 0.22 25);
  --ih-down-ink: oklch(48% 0.22 25);
  --ih-flat:     oklch(72% 0.17 70);
  --ih-flat-ink: oklch(60% 0.17 70);

  /* locked heights */
  --ih-util-h:  32px;
  --ih-brand-h: 84px;
  --ih-nav-h:   54px;
  --ih-mkt-h:   118px;
}

/* Son dakika + piyasa — ih-shell ile kardeş; collapse sticky menüyü bozmaz */
.ih-below {
  overflow: hidden;
  max-height: 220px;
}
.ih-below.is-collapsed {
  /* Layout yüksekliğini koru — max-height:0 scroll sırasında titreme yapıyordu */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
/* Animasyonsuz collapse — scroll sırasında layout titremesini önler (galeri vb.) */
@media (hover: none) {
  .ih-below { transition: none; }
}

/* Anasayfa mobil — BIST sabit slot; açılışta manşet header altından başlar */
@media (max-width: 720px) {
  .ih-home-mkt {
    flex-shrink: 0;
    min-height: var(--ih-mkt-h);
    contain: layout style;
  }

  .ih-home-mkt .ih-mkt-cards {
    height: var(--ih-mkt-h) !important;
    min-height: var(--ih-mkt-h) !important;
    max-height: var(--ih-mkt-h) !important;
  }

  /* Anchor gelene kadar: manşet BIST alanının üstüne bindirilir (açılışta BIST görünmez) */
  html.is-home-page:not(.is-home-anchored) .app-page-shell {
    margin-top: calc(-1 * var(--ih-mkt-h));
    position: relative;
    z-index: 2;
    background: var(--ih-paper);
  }
}

/* Single sticky wrapper — avoids double-sticky jitter on iOS Chrome */
.ih-shell {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--ih-paper);
  font-family: var(--font-sans);
  color: var(--ih-ink);
  padding-top: env(safe-area-inset-top);
}

.ih {
  position: relative;
  top: auto;
  background: var(--ih-paper);
}

.ih-nav {
  position: relative;
  top: auto;
  z-index: 70;
  background: var(--ih-paper);
  box-shadow: 0 1px 0 var(--ih-line);
}

/* ============================================================
   TIER 1 — UTILITY (32px, dark slate)
============================================================ */
.ih-util {
  height: var(--ih-util-h);
  background: linear-gradient(180deg, var(--ih-slate) 0%, oklch(12% 0.014 265) 100%);
  color: rgba(255,255,255,0.78);
  font-size: 12px;
  line-height: 14px;
  letter-spacing: 0.01em;
  border-bottom: 1px solid oklch(8% 0.012 265);
}
.ih-util-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}
.ih-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}
.ih-day {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ih-cyan);
  text-transform: uppercase;
  min-width: 9ch;
  display: inline-block;
}
.ih-date {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: rgba(255,255,255,0.92);
  min-width: 18ch;
  display: inline-block;
}
.ih-meta-sep {
  width: 1px;
  height: 12px;
  background: rgba(255,255,255,0.18);
  display: inline-block;
  flex-shrink: 0;
}
.ih-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.ih-time-num {
  color: #fff;
  font-weight: 600;
  font-size: 12px;
  min-width: 5ch;
  display: inline-block;
  text-align: center;
}
.ih-time-tz { color: rgba(255,255,255,0.45); font-size: 10px; letter-spacing: 0.08em; }
.ih-time-dot {
  position: relative;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ih-green);
  flex-shrink: 0;
}
.ih-time-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: oklch(58% 0.16 152 / 0.55);
  animation: ih-pulse-g 1.8s infinite;
  transform-origin: center;
  will-change: transform, opacity;
}
@keyframes ih-pulse-g {
  0%   { transform: scale(1);   opacity: 1; }
  70%  { transform: scale(2.6); opacity: 0; }
  100% { transform: scale(2.6); opacity: 0; }
}

.ih-mkt-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  height: 20px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}
.ih-mkt-status.is-open .ih-mkt-status-dot {
  background: var(--ih-green);
  box-shadow: 0 0 8px oklch(58% 0.16 152 / 0.55);
}
.ih-mkt-status.is-closed .ih-mkt-status-dot { background: rgba(255,255,255,0.4); }
.ih-mkt-status-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; will-change: transform; }
.ih-mkt-status-label { color: rgba(255,255,255,0.55); }
.ih-mkt-status-val {
  color: #fff;
  letter-spacing: 0.08em;
  min-width: 5.5ch;
  display: inline-block;
  text-align: center;
}

.ih-util-r {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  white-space: nowrap;
}
.ih-util-link {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.75);
  transition: color .15s;
  height: 20px;
  display: inline-flex;
  align-items: center;
}
.ih-util-link:hover { color: #fff; }
.ih-acct {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.005em;
  color: rgba(255,255,255,0.88);
  transition: color .15s;
}
.ih-acct:hover { color: #fff; }
.ih-sub {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, var(--ih-red) 0%, var(--ih-red-ink) 100%);
  color: #fff;
  padding: 0 11px;
  height: 22px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 2px 6px -2px oklch(54% 0.22 25 / 0.5);
}
.ih-sub:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px -2px oklch(54% 0.22 25 / 0.7);
}
.ih-sub svg { stroke-width: 2.5; }

/* edition dropdown */
.ih-ed { position: relative; height: 22px; display: flex; align-items: center; }
.ih-ed-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  padding: 0 8px;
  height: 22px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.ih-ed-btn:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.2); }
.ih-ed-flag { font-size: 13px; line-height: 1; filter: saturate(1.1); }
.ih-ed-caret { opacity: 0.65; transition: transform .15s; }
.ih-ed-btn[aria-expanded="true"] .ih-ed-caret { transform: rotate(180deg); }

.ih-ed-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  background: var(--ih-paper);
  border: 1px solid var(--ih-line-2);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 16px 40px -10px rgba(15,20,35,0.20), 0 2px 6px rgba(15,20,35,0.06);
  display: none;
  flex-direction: column;
  gap: 1px;
  z-index: 80;
}
.ih-ed-menu.is-open { display: flex; }
.ih-ed-item {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 0;
  color: var(--ih-ink);
  padding: 9px 10px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background .12s;
}
.ih-ed-item:hover { background: var(--ih-paper-2); }
.ih-ed-item.is-active { background: var(--ih-paper-2); color: var(--ih-blue); }
.ih-ed-name { letter-spacing: -0.005em; }
.ih-ed-mini { font-family: var(--font-mono); font-size: 10px; color: var(--ih-ink-3); letter-spacing: 0.08em; }

/* ============================================================
   TIER 2 — BRAND BAR (84px)
============================================================ */
.ih-brand {
  height: var(--ih-brand-h);
  background:
    linear-gradient(180deg, var(--ih-paper) 0%, var(--ih-paper-2) 100%);
  border-bottom: 1px solid var(--ih-line);
}
.ih-brand-row {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  height: 100%;
  gap: 24px;
}

.ih-menu {
  background: transparent;
  border: 1px solid var(--ih-line-2);
  color: var(--ih-ink);
  cursor: pointer;
  padding: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, border-color .15s, transform .15s;
}
.ih-menu:hover { background: var(--ih-paper-3); border-color: var(--ih-ink); transform: translateY(-1px); }
.ih-menu-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
  height: 14px;
  justify-content: center;
}
.ih-menu-bars i {
  display: block;
  height: 2px;
  background: var(--ih-ink);
  border-radius: 2px;
  transition: width .25s ease;
}
.ih-menu-bars i:nth-child(1) { width: 18px; }
.ih-menu-bars i:nth-child(2) { width: 12px; }
.ih-menu-bars i:nth-child(3) { width: 16px; }
.ih-menu:hover .ih-menu-bars i:nth-child(2) { width: 18px; }
.ih-menu:hover .ih-menu-bars i:nth-child(3) { width: 18px; }

.ih-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  height: 60px;
  justify-content: center;
  padding-right: 20px;
  border-right: 1px solid var(--ih-line);
  flex-shrink: 0;
}
.ih-logo-img {
  height: 42px;
  width: 180px;
  display: block;
  object-fit: contain;
  object-position: left center;
}
.ih-logo-tag {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--ih-ink-3);
  letter-spacing: 0.01em;
  line-height: 12px;
  white-space: nowrap;
}

/* search pill — modern with blue focus glow */
.ih-search {
  justify-self: center;
  width: 100%;
  max-width: 460px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ih-paper-2);
  border: 1px solid var(--ih-line);
  color: var(--ih-ink-2);
  height: 46px;
  padding: 0 8px 0 18px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  letter-spacing: -0.005em;
  transition: border-color .2s, background .2s, box-shadow .2s;
  position: relative;
}
.ih-search:hover, .ih-search:focus-within {
  border-color: var(--ih-blue);
  background: #fff;
  box-shadow:
    0 0 0 4px oklch(50% 0.18 235 / 0.10),
    0 6px 18px -8px oklch(50% 0.18 235 / 0.25);
}
.ih-search-icon { flex-shrink: 0; color: var(--ih-ink-3); display: inline-flex; align-items: center; transition: color .2s; }
.ih-search:hover .ih-search-icon { color: var(--ih-blue); }
.ih-search-text {
  flex: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  height: 20px;
  position: relative;
}
.ih-search-prefix {
  color: var(--ih-ink-2);
  font-weight: 500;
  flex-shrink: 0;
  font-size: 14px;
  line-height: 20px;
  font-family: var(--font-sans);
}
.ih-search-rotator { position: relative; flex: 1; height: 20px; overflow: hidden; min-width: 0; }
.ih-search-hint {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  color: var(--ih-blue);
  font-style: italic;
  font-weight: 500;
  opacity: 0;
  transform: translate3d(0, 8px, 0);
  transition: opacity .35s ease, transform .35s ease;
  font-family: var(--font-serif);
  font-size: 14.5px;
  line-height: 20px;
  /* anchor italic baseline to match the "Ara" prefix */
  display: inline-flex;
  align-items: center;
  height: 20px;
}
.ih-search-hint.is-on { opacity: 1; transform: translate3d(0, 0, 0); }
.ih-search-kbd {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ih-ink-2);
  background: #fff;
  border: 1px solid var(--ih-line);
  border-radius: 8px;
  padding: 0 8px;
  height: 30px;
  min-width: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.ih-kbd-win,
.ih-kbd-mac {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ih-kbd-mac { visibility: hidden; }
html.is-mac .ih-kbd-win { visibility: hidden; }
html.is-mac .ih-kbd-mac { visibility: visible; }

/* actions */
.ih-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  min-width: 280px;
  justify-content: flex-end;
}
.ih-icon-btn {
  position: relative;
  background: transparent;
  border: 1px solid transparent;
  color: var(--ih-ink-2);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.ih-icon-btn:hover { background: var(--ih-paper-3); color: var(--ih-ink); border-color: var(--ih-line); }
.ih-bell-wrap {
  position: relative;
  flex-shrink: 0;
}
/* Tier-3 nav (.ih-nav z-index: 70) sits after header in DOM — lift header while panel is open */
.ih-shell:has(.ih-bell-panel) header.ih,
.ih-shell.ih-bell-panel-open header.ih {
  position: relative;
  z-index: 75;
}
.ih-bell.is-open,
.ih-bell.has-unread:hover {
  background: var(--ih-paper-3);
  color: var(--ih-ink);
  border-color: var(--ih-line);
}
.ih-bell-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--ih-red);
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ih-paper);
  line-height: 1;
}
.ih-bell-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(360px, calc(100vw - 24px));
  max-height: min(70vh, 420px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--ih-line);
  border-radius: 14px;
  box-shadow: 0 18px 40px -14px rgba(15, 20, 35, 0.32);
  z-index: 140;
}
.ih-bell-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--ih-line);
}
.ih-bell-panel-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ih-ink);
}
.ih-bell-panel-all {
  font-size: 12px;
  font-weight: 700;
  color: var(--ih-blue);
}
.ih-bell-panel-all:hover { color: var(--ih-blue-2); }
.ih-bell-panel-empty {
  margin: 0;
  padding: 16px 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ih-ink-2);
}
.ih-bell-panel-list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  overflow-y: auto;
}
.ih-bell-panel-item {
  display: block;
  padding: 10px 14px;
  transition: background .15s;
}
.ih-bell-panel-item:hover { background: var(--ih-bg-2, #f4f5f7); }
.ih-bell-panel-item-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.ih-bell-panel-cat {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ih-ink-3, var(--ih-ink-2));
}
.ih-bell-panel-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 999px;
}
.ih-bell-panel-tag.is-breaking {
  background: var(--ih-red-soft, #fde8e8);
  color: var(--ih-red);
}
.ih-bell-panel-item-title {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ih-ink);
}

.ih-news-toasts {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  width: min(380px, calc(100vw - 32px));
  pointer-events: none;
}
.ih-news-toast {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 40px 14px 14px;
  background: #fff;
  border: 1px solid var(--ih-line);
  border-left: 4px solid var(--ih-red);
  border-radius: 14px;
  box-shadow: 0 16px 36px -14px rgba(15, 20, 35, 0.34);
  pointer-events: auto;
  animation: ih-news-toast-in .28s ease-out;
}
@keyframes ih-news-toast-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.ih-news-toast-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--ih-red-soft, #fde8e8);
  color: var(--ih-red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ih-news-toast-body { min-width: 0; }
.ih-news-toast-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ih-red);
}
.ih-news-toast-title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ih-ink);
}
.ih-news-toast-title:hover { color: var(--ih-red); }
.ih-news-toast-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ih-ink-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.ih-news-toast-close:hover {
  background: var(--ih-bg-2, #f4f5f7);
  color: var(--ih-ink);
}

.ih-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--ih-slate) 0%, oklch(10% 0.014 265) 100%);
  color: #fff;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  transition: background .15s, transform .15s, box-shadow .15s;
  flex-shrink: 0;
  margin: 0 4px;
  white-space: nowrap;
  box-shadow: 0 2px 8px -2px rgba(0,0,0,0.25);
}
.ih-live:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 4px 14px -2px rgba(0,0,0,0.4); }
.ih-live-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
  width: 16px;
}
.ih-live-bars i {
  width: 3px;
  background: var(--ih-red);
  border-radius: 1px;
  display: block;
  animation: ih-live-bar 1.1s infinite ease-in-out;
  will-change: transform;
}
.ih-live-bars i:nth-child(1) { height: 50%; animation-delay: -0.4s; }
.ih-live-bars i:nth-child(2) { height: 85%; animation-delay: -0.2s; }
.ih-live-bars i:nth-child(3) { height: 65%; animation-delay: -0.6s; }
.ih-live-bars i:nth-child(4) { height: 95%; animation-delay: 0s; }
@keyframes ih-live-bar {
  0%, 100% { transform: scaleY(0.5); }
  50%      { transform: scaleY(1); }
}
.ih-live-label { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; white-space: nowrap; }

.ih-avatar {
  background: linear-gradient(135deg, var(--ih-blue) 0%, var(--ih-blue-2) 100%);
  color: #fff;
  border: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  position: relative;
  box-shadow: 0 2px 8px -2px oklch(50% 0.18 235 / 0.45);
}
.ih-avatar::after {
  content: "";
  position: absolute;
  bottom: 2px; right: 2px;
  width: 10px; height: 10px;
  background: var(--ih-green);
  border-radius: 50%;
  border: 2px solid var(--ih-paper);
}
.ih-avatar:hover { transform: scale(1.06); box-shadow: 0 6px 16px -2px oklch(50% 0.18 235 / 0.65); }

/* === Account pill — replaces the cryptic "MA" avatar with a clear,
   readable "Üye Girişi" CTA so the login state isn't ambiguous. === */
.ih-account {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 40px;
  padding: 0 14px 0 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ih-blue) 0%, var(--ih-blue-2) 100%);
  color: #fff;
  font-family: var(--font-sans);
  transition: transform .15s, box-shadow .15s, color .15s;
  box-shadow: 0 2px 8px -2px oklch(50% 0.18 235 / 0.45);
  flex-shrink: 0;
  white-space: nowrap;
}
.ih-account:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -2px oklch(50% 0.18 235 / 0.65);
}
.ih-account-icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ih-account-text {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}
.ih-account-l1 {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}
.ih-account-l2 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.005em;
  margin-top: 2px;
}

/* ============================================================
   TIER 3 — NAV (54px)
============================================================ */
.ih-nav {
  height: var(--ih-nav-h);
  background: var(--ih-paper);
  border-bottom: 1px solid var(--ih-line);
  overflow: visible;
}
.ih-nav > .container {
  overflow: visible;
  height: 100%;
}
.ih-nav-row {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
  min-width: 0;
  height: 100%;
  overflow: visible;
}
.ih-cats-track {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  height: 100%;
  overflow: visible;
}
.ih-cats-pinned {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-right: 4px;
}
.ih-cats {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 100%;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  min-width: 0;
  max-width: 100%;
  position: relative;
  margin-left: -10px;
  overscroll-behavior-x: contain;
}
.ih-cats--overflow {
  overflow: hidden;
  flex: 1;
  min-width: 0;
}
.ih-cats-measure {
  position: absolute;
  left: 0;
  top: 0;
  visibility: hidden;
  pointer-events: none;
  width: 0;
  max-width: 0;
  height: 0;
  overflow: hidden;
  display: flex;
  gap: 4px;
  white-space: nowrap;
}
.ih-cats-measure-item {
  display: inline-flex;
  flex-shrink: 0;
}
.ih-cats-more-wrap {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  align-self: center;
  height: 100%;
  z-index: 12;
}
.ih-cats-more-wrap.is-open {
  z-index: 130;
}
.ih-cats-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 38px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--ih-ink-2);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  cursor: pointer;
  transition: color .18s, background .18s;
}
.ih-cats-more:hover,
.ih-cats-more.is-open {
  color: var(--ih-ink);
  background: var(--ih-bg-2, #f4f5f7);
}
.ih-cats-more.is-on {
  color: var(--ih-red);
}
.ih-cats-more-menu {
  position: absolute;
  top: calc(100% + 2px);
  right: 0;
  min-width: 188px;
  max-height: min(70vh, 420px);
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--ih-line);
  border-radius: 10px;
  box-shadow: 0 14px 36px -12px rgba(15, 20, 35, 0.28);
  padding: 6px 0;
  z-index: 120;
}
.ih-cats-more-item {
  display: block;
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ih-ink);
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.ih-cats-more-item:hover {
  background: var(--ih-bg-2, #f4f5f7);
  color: var(--ih-ink);
}
.ih-cats-more-item.is-on {
  color: var(--ih-red);
  font-weight: 700;
}
.ih-cats::-webkit-scrollbar { display: none; }
.ih-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ih-ink-2);
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  transition: color .18s;
  z-index: 1;
}
.ih-cat:hover { color: var(--ih-ink); }
.ih-cat.is-on { color: var(--ih-red); font-weight: 700; }
.ih-cat.is-hot { font-weight: 700; color: var(--ih-ink); }
.ih-cat.is-hot.is-on { color: var(--ih-red); }
.ih-cat-dot {
  position: relative;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ih-red);
  flex-shrink: 0;
}
.ih-cat-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: oklch(54% 0.22 25 / 0.55);
  animation: ih-pulse-red 1.6s infinite;
  transform-origin: center;
  will-change: transform, opacity;
}
@keyframes ih-pulse-red {
  0%   { transform: scale(1);   opacity: 1; }
  70%  { transform: scale(2.6); opacity: 0; }
  100% { transform: scale(2.6); opacity: 0; }
}

/* === FINANS EKSTRA — DARK premium pill with RED EKSTRA badge === */
.ih-cat.is-premium {
  height: 38px;
  flex-shrink: 0;
  min-width: max-content;
  background:
    linear-gradient(135deg,
      oklch(22% 0.014 265) 0%,
      oklch(13% 0.013 265) 50%,
      #000 100%);
  color: #fff !important;
  padding: 0 6px 0 14px;
  margin: 0 8px;
  border-radius: 999px;
  gap: 8px;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.005em;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08) inset,
    0 4px 14px -3px rgba(0,0,0,0.45),
    0 0 24px -8px oklch(54% 0.22 25 / 0.30);
  position: relative;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  z-index: 2;
}
/* subtle red glow sweep — keeps the "sexy" motion from v5 */
.ih-cat.is-premium::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(120deg,
    transparent 30%,
    rgba(255, 90, 80, 0.18) 50%,
    transparent 70%);
  animation: ih-shimmer 4.5s ease-in-out infinite;
  pointer-events: none;
  border-radius: inherit;
  will-change: transform;
}
@keyframes ih-shimmer {
  0%   { transform: translateX(-100%); }
  50%  { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}
.ih-cat.is-premium:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.12) inset,
    0 8px 22px -3px rgba(0,0,0,0.55),
    0 0 32px -6px oklch(54% 0.22 25 / 0.45);
}
.ih-cat-spark {
  color: var(--ih-red);
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px oklch(54% 0.22 25 / 0.8));
  z-index: 1;
  position: relative;
}
.ih-cat-base {
  color: #fff;
  font-weight: 700;
  z-index: 1;
  position: relative;
}
.ih-cat-badge {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  background: var(--ih-red);
  color: #fff;
  padding: 0 7px;
  height: 22px;
  border-radius: 6px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  z-index: 1;
  position: relative;
  box-shadow: 0 2px 6px oklch(54% 0.22 25 / 0.45);
}
.ih-cat.is-premium::after { display: none !important; }

/* sliding indicator — transform/opacity only (compositor, CLS-safe) */
.ih-cat-indicator {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 1px;
  height: 2px;
  background: var(--ih-red);
  border-radius: 2px;
  transform-origin: left center;
  transition: transform .35s cubic-bezier(.4, 0, .2, 1),
              opacity .25s ease;
  pointer-events: none;
  will-change: transform;
}

.ih-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ih-ink);
  padding: 0 14px;
  height: 34px;
  border: 1px solid var(--ih-ink);
  border-radius: 999px;
  transition: background .15s, color .15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.ih-nav-cta:hover { background: var(--ih-ink); color: #fff; }

.ih-egazete {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  border: 1.5px solid var(--ih-red);
  border-radius: 6px;
  background: var(--ih-paper);
  color: var(--ih-red);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .15s, color .15s, border-color .15s;
}
.ih-egazete:hover {
  background: var(--ih-red);
  border-color: var(--ih-red);
  color: #fff;
}
.ih-egazete svg { flex-shrink: 0; }

/* ============================================================
   TIER 4 — MARKET CARDS (118px) — reference-style tall cards
============================================================ */
.ih-mkt-cards {
  height: var(--ih-mkt-h);
  background: var(--ih-paper-3);
  border-bottom: 1px solid var(--ih-line);
  padding: 12px 0;
}
.ih-mkt-cards-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  height: 100%;
  min-width: 0;
  overflow: hidden;
}
/* .container max-width — referans ile aynı 1100px içerik hizası */
.ih-mkt-cards > .container.ih-mkt-cards-row {
  max-width: var(--max);
  margin-inline: auto;
  width: 100%;
}
.ih-mkt-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
  overscroll-behavior-x: contain;
}

.ih-mc {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr auto;
  box-shadow:
    0 1px 2px rgba(15,20,35,0.04),
    0 4px 12px -6px rgba(15,20,35,0.06);
  transition: transform .18s ease, box-shadow .18s ease;
  min-width: 0;
}
.ih-mc:hover {
  transform: translateY(-2px);
  box-shadow:
    0 2px 4px rgba(15,20,35,0.06),
    0 12px 24px -8px rgba(15,20,35,0.18);
}
.ih-mc-head {
  padding: 8px 10px 5px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.ih-mc-code {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ih-ink);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ih-mc-val {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ih-ink);
  font-family: var(--font-sans);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ih-mc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 9px;
  gap: 6px;
  color: #fff;
  min-width: 0;
}
.ih-mc-foot-up   { background: linear-gradient(180deg, var(--ih-up)   0%, var(--ih-up-ink)   100%); }
.ih-mc-foot-down { background: linear-gradient(180deg, var(--ih-down) 0%, var(--ih-down-ink) 100%); }
.ih-mc-foot-flat { background: linear-gradient(180deg, var(--ih-flat) 0%, var(--ih-flat-ink) 100%); }
.ih-mc-arrow-box {
  width: 22px;
  height: 22px;
  background: rgba(0,0,0,0.15);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.ih-mc-changes {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.1;
  font-family: var(--font-sans);
  text-align: right;
  font-variant-numeric: tabular-nums;
  min-width: 0;
}
.ih-mc-pct {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.015em;
  white-space: nowrap;
}
.ih-mc-abs {
  font-size: 9px;
  font-weight: 600;
  opacity: 0.88;
  letter-spacing: -0.01em;
  margin-top: 1px;
  white-space: nowrap;
}

/* PİYASA VERİLERİ CTA card */
.ih-mkt-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 92px;
  background:
    linear-gradient(160deg, var(--ih-slate-2) 0%, var(--ih-ink) 50%, #000 100%);
  color: #fff;
  border-radius: 10px;
  transition: transform .18s ease, box-shadow .18s ease;
  box-shadow:
    0 1px 2px rgba(0,0,0,0.10),
    0 8px 18px -8px rgba(0,0,0,0.40);
  flex-shrink: 0;
}
.ih-mkt-cta:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow:
    0 2px 4px rgba(0,0,0,0.14),
    0 14px 28px -8px rgba(0,0,0,0.55);
}
.ih-mkt-cta-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform .18s ease;
}
.ih-mkt-cta:hover .ih-mkt-cta-arrow { transform: translateX(3px); }
.ih-mkt-cta-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.10em;
  line-height: 1.2;
  text-align: center;
  color: #fff;
}

/* ============================================================
   STICKY COMPACT MODE
============================================================ */
.ih-shell.is-stuck .ih-nav {
  box-shadow: 0 8px 20px -12px rgba(15,20,35,0.18), 0 1px 0 var(--ih-line);
}
.ih-shell.is-stuck { box-shadow: 0 10px 28px -18px rgba(15,20,35,0.18); }

/* Üstteki koyu utility şerit kapalı (kullanıcı isteği) */
.ih-util { display: none; }

/* Desktop (mouse): glass blur effect */
@media (hover: hover) and (pointer: fine) {
  .ih-shell.is-stuck .ih-brand {
    background:
      linear-gradient(180deg, rgba(252, 251, 247, 0.94), rgba(248, 246, 240, 0.92));
    backdrop-filter: saturate(1.1) blur(10px);
    -webkit-backdrop-filter: saturate(1.1) blur(10px);
  }
}
/* Touch/mobile: solid background — backdrop-filter causes Chrome scroll shimmy */
@media (hover: none) {
  .ih-shell.is-stuck .ih-brand {
    background: var(--ih-paper);
  }

  /* Pause header animations during scroll to reduce compositor repaint jitter */
  .ih-shell .ih-live-bars i,
  .ih-shell .ih-mc::after,
  .ih-shell .ih-time-dot,
  .ih-shell .ih-mkt-status-dot,
  .ih-shell .ih-cat-dot,
  .ih-shell .ih-sd-bolt,
  .ih-shell .ih-sd-track {
    animation-play-state: paused;
  }
  .ih-shell .ih-search-hint {
    transition: none;
  }
}

/* ============================================================
   iOS Chrome (CriOS) — mobile scroll jitter
   Mid-page upward scroll shows the URL bar → visualViewport shrinks.
   position:fixed + body padding fights that; use sticky + --ios-vv-offset
   (set in IosChromeViewportFix.tsx). See also viewport interactive-widget.
============================================================ */
@supports (-webkit-appearance: none) and (not (-webkit-touch-callout: none)) {
  html {
    scrollbar-gutter: auto;
  }

  @media (max-width: 720px) {
    .ih-shell {
      position: sticky;
      top: var(--ios-vv-offset, 0px);
    }

    .ih-cats {
      -webkit-overflow-scrolling: auto;
      overscroll-behavior: contain;
      touch-action: pan-x;
    }

    .ih-shell,
    .ih-shell * {
      will-change: auto;
    }

    .ih-shell *,
    .ih-shell *::before,
    .ih-shell *::after {
      animation: none !important;
    }

    .ih-shell .ih-search-hint {
      transition: none !important;
      transform: none !important;
    }
  }
}

/* JS-tagged CriOS (html.ios-chrome) — page-level guards */
@media (max-width: 720px) {
  html.ios-chrome body {
    min-height: auto;
    padding-top: 0;
  }

  html.ios-chrome img,
  html.ios-chrome .photo-img {
    content-visibility: visible;
  }

  html.ios-chrome main > :not(.home-top) {
    content-visibility: visible;
    contain-intrinsic-size: none;
  }

  html.ios-chrome .ys-market-cards,
  html.ios-chrome .op-ys-track,
  html.ios-chrome .shb-row,
  html.ios-chrome .galeri-filter-l,
  html.ios-chrome .sekt-chips {
    -webkit-overflow-scrolling: auto;
    overscroll-behavior: contain;
  }

  html.ios-chrome .ih-below {
    transition: none;
  }
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1380px) {
  /* val font and CTA width already compact by default */
}
@media (max-width: 1280px) {
  .ih-search { max-width: 360px; }
  .ih-logo { padding-right: 16px; }
}
@media (max-width: 900px) {
  .ih-logo-tag {
    display: block;
    font-size: 9.5px;
    line-height: 1.1;
    max-width: 150px;
    white-space: normal;
  }
  .ih-mkt-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ih-mc:nth-child(n+5) { display: none; }
}
@media (max-width: 1100px) {
  .ih-util-link { display: none; }
  .ih-search { max-width: 260px; }
  .ih-search-kbd { display: none; }
  .ih-icon-btn { width: 36px; height: 36px; }
  .ih-mkt-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .ih-mc:nth-child(n+7) { display: none; }
}
@media (max-width: 920px) {
  .ih-search {
    width: 44px;
    max-width: 44px;
    padding: 0;
    justify-content: center;
  }
  .ih-search-text, .ih-search-kbd { display: none; }
  .ih-search-icon { color: var(--ih-ink); }
  .ih-live-label { display: none; }
  .ih-live { padding: 0 10px; margin: 0; }
  .ih-mkt-status { display: none; }
  .ih-account-text { display: none; }
  .ih-account { padding: 0; width: 40px; justify-content: center; }
  .ih-account-icon { background: transparent; }
  .ih-bell { display: none; }
}
@media (max-width: 720px) {
  :root {
    --ih-util-h: 30px;
    --ih-brand-h: 64px;
    --ih-nav-h: 48px;
    --ih-mkt-h: 96px;
  }
  /* Üst-alt boşlukları dengele: market kartları için padding'i biraz arttır */
  .ih-mkt-cards { padding: 14px 0 12px; }
  .ih-day { font-size: 10px; }
  .ih-date { font-size: 11px; }
  .ih-meta { gap: 8px; }
  .ih-meta-sep { height: 10px; }
  .ih-sub { padding: 0 8px; height: 20px; font-size: 9.5px; }
  .ih-acct { display: none; }
  .ih-account { display: none; }
  .ih-logo-tag { display: none; }
  .ih-cats { margin-left: 0; }
  .ih-nav-row { max-width: 100%; overflow: visible; min-width: 0; }
  .ih-logo-img { height: 36px; width: 138px; }
  .ih-logo { height: 50px; padding-right: 12px; }
  .ih-menu { width: 38px; height: 38px; }
  .ih-cat { padding: 0 10px; font-size: 13px; height: 32px; }
  .ih-cats-more { height: 32px; min-width: 36px; padding: 0 8px; }
  /* Finans EKSTRA — keep readable on mobile, never collapse */
  .ih-cat.is-premium {
    font-size: 12px;
    height: 32px;
    padding: 0 5px 0 11px;
    margin: 0 6px;
    gap: 6px;
    flex-shrink: 0;
    min-width: max-content;
  }
  .ih-cat-spark { width: 11px; height: 11px; }
  .ih-cat-base { font-size: 12px; }
  .ih-cat-badge { font-size: 9px; height: 18px; padding: 0 5px; letter-spacing: 0.1em; }
  .ih-nav-cta { display: none; }
  .ih-egazete { display: none; }
  /* MOBİL PİYASA KARTLARI — 4 kart sığacak şekilde küçült */
  .ih-mkt-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  /* önceki 2-kart kuralının nth-child(n+3) gizlemesini sadece 3 ve 4. için aç */
  .ih-mc:nth-child(3),
  .ih-mc:nth-child(4) { display: grid; }
  .ih-mc:nth-child(n+5) { display: none; }
  .ih-mc { border-radius: 8px; padding: 0; }
  .ih-mc-head { padding: 5px 7px 3px; gap: 0; }
  .ih-mc-code { font-size: 8.5px; letter-spacing: 0.04em; }
  .ih-mc-val { font-size: 13px; letter-spacing: -0.022em; line-height: 1.1; }
  .ih-mc-foot { padding: 3px 5px; gap: 4px; }
  .ih-mc-arrow-box { width: 14px; height: 14px; border-radius: 3px; }
  .ih-mc-arrow-box svg { width: 9px; height: 9px; }
  .ih-mc-pct { font-size: 9.5px; letter-spacing: 0; }
  .ih-mc-abs { display: none; }
  .ih-mkt-cta { width: 64px; border-radius: 8px; padding: 6px 4px; }
  .ih-mkt-cta-arrow { width: 22px; height: 22px; }
  .ih-mkt-cta-arrow svg { width: 12px; height: 12px; }
  .ih-mkt-cta-text { font-size: 9px; line-height: 1.1; gap: 0; }
  .ih-mkt-cards-row { gap: 6px; grid-template-columns: 1fr 64px; }

}


.home-son-dakika {
  margin: 0;
  padding: 0;
}
.home-son-dakika .ih-sd {
  width: 100%;
  max-width: 100%;
  border-radius: 8px;
  padding: 8px 14px;
  box-sizing: border-box;
}


/* =============================================================
   SON DAKİKA BAND — fixed label on the LEFT, headlines marquee
   from right→left toward the label. Smaller bolt icon.
   Symmetric top/bottom padding inside the band.
   ============================================================= */
.ih-sd {
  background: linear-gradient(90deg, var(--ih-red, oklch(58% 0.22 25)) 0%, oklch(54% 0.22 25) 100%);
  color: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
  padding: 7px 0;
  flex-shrink: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  border-radius: 0;
}
.ih-sd > .container {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.ih-sd-row {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 22px;
}
.ih-sd-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.10em;
  color: #fff;
  white-space: nowrap;
  text-transform: uppercase;
  flex-shrink: 0;
}
.ih-sd-bolt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
  flex-shrink: 0;
  animation: ih-sd-bolt-pulse 1.6s ease-in-out infinite;
  will-change: transform;
}
@keyframes ih-sd-bolt-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.08); opacity: 0.72; }
}
.ih-sd-sep {
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,0.4);
  flex-shrink: 0;
}
.ih-sd-marquee {
  position: relative;
  overflow: hidden;
  height: 22px;
  min-width: 0;
  /* mask-image intentionally removed — it blocks GPU compositing of .ih-sd-track
     (Chrome cannot independently composite a child when its parent has mask-image).
     The fade is achieved via ::after overlay instead. */
}
.ih-sd-marquee::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 36px;
  background: linear-gradient(90deg, transparent, oklch(54% 0.22 25));
  pointer-events: none;
}
.ih-sd-track {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  white-space: nowrap;
  height: 22px;
  /* Start fully to the right, slide left toward the label. Slow & readable. */
  animation: ih-sd-scroll 140s linear infinite;
  will-change: transform;
}
.ih-sd:hover .ih-sd-track { animation-play-state: paused; }
@keyframes ih-sd-scroll {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}
.ih-sd-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.ih-sd-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.7);
  flex-shrink: 0;
}
.ih-sd-link {
  color: #fff;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: color .15s;
}
.ih-sd-link:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 720px) {
  .ih-sd { padding: 6px 0; }
  .ih-sd-row { gap: 8px; }
  .ih-sd-label-text { font-size: 10.5px; letter-spacing: 0.08em; }
  .ih-sd-bolt { width: 15px; height: 15px; }
  .ih-sd-link { font-size: 12px; }
}

/* Admin: Ayarlar → Genel → “Mobilde son dakika bandını gizle” */
@media (max-width: 720px) {
  html.ui-hide-sd-mobile .ih-sd,
  .ih-sd-host--mobile-off {
    display: none !important;
  }
}
