/* CANLIK Terminal — cinematic trading floor */

:root {
  --bg: #05070a;
  --bg-image: radial-gradient(ellipse 120% 80% at 50% -20%, #122033 0%, #05070a 55%);
  --panel: #0b1017;
  --panel-2: #0f1621;
  --line: #1c2736;
  --line-hot: #2a3d55;
  --text: #dce6f2;
  --mute: #7d8ea3;
  --gold: #d4b45a;
  --green: #00e676;
  --green-dim: rgba(0, 230, 118, 0.12);
  --red: #ff5252;
  --red-dim: rgba(255, 82, 82, 0.12);
  --cyan: #26c6da;
  --amber: #ffb74d;
  --tb-bg: linear-gradient(180deg, #0d1420, #080c12);
  --mod-bg: linear-gradient(180deg, rgba(15, 22, 33, 0.96), rgba(11, 16, 23, 0.98));
  --mod-h-bg: rgba(0, 0, 0, 0.25);
  --tape-bg: #060a10;
  --seo-bg: linear-gradient(180deg, #070b11, #05070a);
  --nav-bg: rgba(8, 12, 18, 0.95);
  --table-head: #070b11;
  --input-bg: #0a1018;
  --surface: #0a1018;
  --surface-2: rgba(15, 22, 33, 0.7);
  --chip-bg: rgba(0, 0, 0, 0.22);
  --hover: rgba(212, 180, 90, 0.1);
  --hover-strong: rgba(212, 180, 90, 0.16);
  --accent-soft: rgba(212, 180, 90, 0.14);
  --cyan-soft: rgba(38, 198, 218, 0.1);
  --heading: #e8eef7;
  --lead: #a8b4c4;
  --mod-title: #b8c4d4;
  --scan-opacity: 0.035;
  --mod-shadow: none;
  --mod-radius: 6px;
  --border-w: 1px;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --sans: "Sora", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

.tape {
  min-height: 36px;
  contain: layout style;
}
.terminal {
  contain: layout;
}
.skel {
  display: block;
  height: 1.65rem;
  margin-bottom: 0.2rem;
  border-radius: 4px;
  background: var(--surface);
  animation: skelPulse 1.2s ease infinite;
}
@keyframes skelPulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
.skel-row { width: 100%; }
.skel-card { pointer-events: none; opacity: 0.85; }
.skel-heat { min-height: 4.5rem; }
.skel-news .t,
.skel-news .m {
  height: 0.7rem;
  margin: 0.35rem 0.75rem;
  border-radius: 3px;
  background: var(--surface);
  animation: skelPulse 1.2s ease infinite;
}
.skel-news .t { width: 78%; }
.skel-news .m { width: 42%; height: 0.55rem; }
.heat-cell:hover { transform: none; } /* CLS: scale hover kaldırıldı masaüstünde hafif kalsın */
@media (prefers-reduced-motion: reduce) {
  .tape-track,
  .skel,
  .skel-news .t,
  .skel-news .m,
  .flash-up::after,
  .flash-down::after,
  .news-item {
    animation: none !important;
  }
}

html {
  margin: 0;
  min-height: 100%;
  background-color: var(--bg);
}
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--sans);
  background-color: var(--bg);
  background-image: var(--bg-image);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--text);
  line-height: 1.4;
  overflow-x: clip;
  transition: background-color 0.25s ease, color 0.2s ease;
}

.scanlines {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  opacity: var(--scan-opacity);
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.35) 3px
  );
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }

/* Top bar */
.tb {
  display: grid;
  grid-template-columns: 1fr minmax(140px, 360px) 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.55rem 0.85rem;
  background: var(--tb-bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  max-width: 100%;
}

.tb-left, .tb-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}
.tb-right { justify-content: flex-end; flex-wrap: wrap; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
}
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(212, 180, 90, 0.18), 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.brand:hover .brand-mark {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(212, 180, 90, 0.35), 0 6px 16px rgba(0, 0, 0, 0.4);
}
.brand-word {
  color: var(--gold);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}
.brand-word .tld {
  color: var(--mute);
  font-weight: 600;
  letter-spacing: 0;
  margin-left: -0.06em;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.55rem;
  border: 1px solid rgba(0, 230, 118, 0.35);
  background: var(--green-dim);
  color: var(--green);
  font-family: var(--sans, var(--font, "Sora", sans-serif));
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  font-weight: 600;
  text-transform: none;
  white-space: nowrap;
  border-radius: 4px;
}
.live-badge i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: blink 1.1s steps(2) infinite;
}
@keyframes blink {
  50% { opacity: 0.25; }
}

.tb-center { position: relative; }
#search {
  width: 100%;
  height: 34px;
  padding: 0 0.75rem;
  border: 1px solid var(--line);
  background: var(--input-bg);
  border-radius: 4px;
  font-size: 0.82rem;
}
#search:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(212, 180, 90, 0.15);
}
.search-drop {
  position: absolute;
  left: 0; right: 0; top: calc(100% + 4px);
  background: var(--panel-2);
  border: 1px solid var(--line-hot);
  border-radius: 4px;
  max-height: 260px;
  overflow: auto;
  z-index: 60;
}
.search-drop button {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.7rem;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: 0.8rem;
  border-bottom: 1px solid var(--line);
}
.search-drop button:hover { background: rgba(212, 180, 90, 0.08); }

.chip {
  font-size: 0.68rem;
  color: var(--mute);
  font-family: var(--mono);
}
.chip b { color: var(--text); font-weight: 500; margin-left: 0.25rem; }

.clock {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.04em;
  min-width: 5.5rem;
  text-align: right;
}

/* Price tape */
.tape {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--tape-bg);
  height: 36px;
  display: flex;
  align-items: center;
}
.tape-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  white-space: nowrap;
  padding: 0 1rem;
  animation: tape 35s linear infinite;
  font-family: var(--mono);
  font-size: 0.78rem;
  will-change: transform;
}
.tape:hover .tape-track { animation-play-state: paused; }
@keyframes tape {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.tape-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.15rem 0.4rem;
  border-radius: 2px;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.tape-item:hover {
  background: rgba(212, 180, 90, 0.12);
  color: var(--text);
}
.tape-item:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 1px;
}
.tape-item .sym { color: var(--gold); font-weight: 600; }
.tape-item .px { font-variant-numeric: tabular-nums; }
.tape-item .ch.up { color: var(--green); }
.tape-under-chart {
  border: 1px solid var(--line);
  border-radius: var(--mod-radius);
  margin: 0;
}
.tape-under-chart .tape-track {
  animation-duration: 48s;
}

/* Flags & instrument icons */
.flag {
  width: 20px;
  height: 15px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
  display: block;
  background: var(--surface);
}
.flag-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 16px;
  font-size: 0.48rem;
  font-weight: 700;
  font-family: var(--mono);
  letter-spacing: -0.02em;
  color: var(--gold);
  background: var(--chip-bg);
  border: 1px solid var(--line);
  box-shadow: none;
  line-height: 1;
}
.ico-wrap {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.ico-flags .flag:last-child {
  margin-left: -6px;
  box-shadow: 0 0 0 1px rgba(5, 7, 10, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  font-size: 0.58rem;
  font-weight: 700;
  font-family: var(--mono);
  letter-spacing: -0.02em;
  flex-shrink: 0;
  line-height: 1;
}
.ico-gold {
  background: linear-gradient(145deg, #f0d78c, #b8922a);
  color: #1a1408;
}
.ico-silver {
  background: linear-gradient(145deg, #e8eef5, #8a9bb0);
  color: #1a222c;
}
.ico-oil {
  background: #2a3340;
  color: #c9d4e0;
  font-size: 0.5rem;
}
.ico-bist {
  background: #1a3a5c;
  color: #7ec8ff;
}
.ico-idx {
  width: 18px;
  height: 14px;
  font-size: 0.5rem;
  background: #243044;
  color: #9eb6d4;
  margin-left: 2px;
}
.ico-bank {
  background: rgba(212, 180, 90, 0.18);
  color: var(--gold);
  border: 1px solid rgba(212, 180, 90, 0.35);
}
.ico-tcmb {
  background: rgba(0, 100, 70, 0.35);
  color: #7dffb3;
  font-size: 0.5rem;
}
.ico-crypto {
  background: #2a1f3d;
  color: #c4a8ff;
  border-radius: 50%;
}
.ico-crypto-img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  background: transparent;
  display: block;
  flex-shrink: 0;
}
.ico-btc { background: #3d2e14; color: #f2a900; }
.ico-eth { background: #1a2540; color: #8ca0ff; }
.ico-sol { background: #1e2a3a; color: #14f195; }
.ico-bnb { background: #3a3214; color: #f0b90b; }
.ico-xrp { background: #1a2540; color: #00aae4; }
.ico-doge { background: #3a3214; color: #c2a633; }
.ico-ada { background: #1a2540; color: #0033ad; filter: brightness(1.8); }
.ico-avax { background: #3a1418; color: #e84142; }
.ico-dot { background: #2a1f3d; color: #e6007a; }
.ico-link { background: #1a2540; color: #2a5ada; }
.ico-matic { background: #1e2a3a; color: #8247e5; }
.ico-trx { background: #3a1418; color: #ff060a; }
.ico-ltc { background: #2a3340; color: #bfbbbb; }
.ico-uni { background: #2a1f3d; color: #ff007a; }
.ico-atom { background: #1a2540; color: #2e3148; filter: brightness(1.8); }
.ico-near { background: #1e2a3a; color: #fff; }
.ico-apt { background: #1a2540; color: #6ec8ff; }
.ico-arb { background: #1a2540; color: #28a0f0; }
.ico-op { background: #3a1418; color: #ff0420; }
.ico-xlm { background: #1e2a3a; color: #08b5e5; }
.ico-xmr { background: #2a3340; color: #ff6600; }
.ico-fil { background: #1a2540; color: #0090ff; }
.ico-hbar { background: #1e2a3a; color: #fff; }
.ico-inj { background: #1a2540; color: #66e3ff; }
.ico-sui { background: #1a2540; color: #6fbcf0; }
.ico-pepe { background: #1e3a1e; color: #3ddc84; }
.ico-shib { background: #3a3214; color: #ffa409; }
.ico-generic {
  background: rgba(125, 142, 163, 0.2);
  color: var(--mute);
  font-size: 0.55rem;
}
.inst {
  font-family: var(--sans) !important;
  min-width: 6.5rem;
  max-width: 11rem;
}
.inst-txt { min-width: 0; }
.inst strong { display: block; font-size: 0.84rem; font-weight: 600; font-family: var(--sans); }
.inst small { color: var(--mute); font-size: 0.68rem; font-family: var(--mono); }
.col-fav {
  width: 2rem;
  text-align: center !important;
  padding-left: 0.35rem !important;
  padding-right: 0.25rem !important;
}
.col-ico {
  width: 2rem;
  text-align: center !important;
  padding-left: 0.25rem !important;
  padding-right: 0.25rem !important;
  vertical-align: middle;
}
.col-ico .ico,
.col-ico .ico-wrap,
.col-ico .flag {
  margin-inline: auto;
}
.mute-num {
  color: var(--mute);
  font-size: 0.78rem;
}
.mute-num small { opacity: 0.85; }

.market-hero {
  padding: 1.1rem 0 1.2rem !important;
}
.market-hero .seo-h1 {
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  margin-bottom: 0.45rem;
}
.market-hero .seo-lead {
  font-size: 0.9rem;
  max-width: 54ch;
}
.market-terminal {
  padding-top: 0.75rem;
}
.market-table-mod .table-scroll {
  max-height: min(70vh, 640px);
}
.market-grid {
  min-width: 520px;
}
.market-bank .market-grid {
  min-width: 640px;
}
.market-chart-mod {
  max-width: 720px;
}
#chartTitle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
#chartTitle .flag,
#chartTitle .ico { flex-shrink: 0; }

.flash-up,
.flash-down {
  position: relative;
  isolation: isolate;
}
.flash-up::after,
.flash-down::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  border-radius: inherit;
  animation: flashOverlay 1.1s ease forwards;
}
.flash-up::after { background: rgba(0, 230, 118, 0.42); }
.flash-down::after { background: rgba(255, 82, 82, 0.42); }
@keyframes flashOverlay {
  0% { opacity: 1; }
  35% { opacity: 0.45; }
  70% { opacity: 0.7; }
  100% { opacity: 0; }
}
.grid-table tbody tr.flash-up,
.grid-table tbody tr.flash-down {
  box-shadow: none;
}
.grid-table tbody tr.flash-up td,
.grid-table tbody tr.flash-down td {
  animation: none;
}
.grid-table tbody tr.flash-up {
  box-shadow: inset 3px 0 0 #00e676;
}
.grid-table tbody tr.flash-down {
  box-shadow: inset 3px 0 0 #ff5252;
}
html[data-theme="light"] .flash-up::after { background: rgba(10, 143, 74, 0.35); }
html[data-theme="light"] .flash-down::after { background: rgba(198, 40, 40, 0.35); }

/* Layout */
.terminal {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  padding: 0.55rem;
  min-height: 0;
  width: 100%;
  max-width: 100%;
}

.col { display: flex; flex-direction: column; gap: 0.55rem; min-width: 0; }

.mod {
  background: var(--mod-bg);
  border: var(--border-w) solid var(--line);
  border-radius: var(--mod-radius);
  box-shadow: var(--mod-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.mod.grow { flex: 1; }
.table-mod {
  flex: 1;
  min-height: 280px;
  max-height: min(70vh, 640px);
  overflow: hidden;
}
.table-mod .table-scroll {
  min-height: 0;
}

.mod-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.7rem;
  border-bottom: 1px solid var(--line);
  background: var(--mod-h-bg);
}
.mod-h h2 {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--mod-title);
}
.mod-tag {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--mute);
}
.pulse-text {
  color: var(--green);
  animation: blink 1.4s steps(2) infinite;
}

/* Heatmap */
.heat {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  padding: 0.55rem;
  min-height: 168px;
  contain: layout;
}
.heat-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.5rem 0.35rem;
  border-radius: 4px;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease;
  min-height: 4.5rem;
  width: 100%;
  color: inherit;
}
.heat-cell:hover { transform: none; }
.heat-cell .l {
  display: block;
  opacity: 0.9;
  font-size: 0.62rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.heat-cell .v { font-weight: 600; font-variant-numeric: tabular-nums; }
.heat-cell .p {
  font-size: 0.62rem;
  opacity: 0.75;
  font-variant-numeric: tabular-nums;
}
.heat-empty { opacity: 0.5; cursor: default; }
.heat-up { background: rgba(0, 230, 118, 0.16); border-color: rgba(0, 230, 118, 0.25); color: var(--green); }
.heat-down { background: rgba(255, 82, 82, 0.16); border-color: rgba(255, 82, 82, 0.25); color: var(--red); }
.heat-flat { background: rgba(125, 142, 163, 0.1); color: var(--mute); }

/* News */
.news {
  overflow: auto;
  max-height: 320px;
  min-height: 120px;
  padding: 0.25rem 0;
  contain: layout;
}
.news-item {
  display: grid;
  gap: 0.2rem;
  border-bottom: 1px solid var(--line);
  animation: newsIn 0.45s ease;
}
.news-link {
  display: grid;
  gap: 0.2rem;
  padding: 0.65rem 0.75rem;
  color: inherit;
  text-decoration: none;
}
@keyframes newsIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.news-item:hover,
.news-link:hover { background: rgba(212, 180, 90, 0.05); }
.news-link:hover .t { color: var(--gold); }
.news-item .t {
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.35;
}
.news-item .m {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--mute);
}
.news-item .m .tag {
  color: var(--amber);
  margin-right: 0.4rem;
}
a.mod-tag {
  text-decoration: none;
  color: var(--gold);
}
a.mod-tag:hover { color: #f0d78a; }

/* Summary */
.summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
  padding: 0.5rem;
  min-width: 0;
  max-width: 100%;
  min-height: 132px;
  box-sizing: border-box;
  contain: layout;
}
.sum-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #0a1018;
  background: var(--surface, #0a1018);
  min-width: 0;
  max-width: 100%;
  overflow: visible;
  cursor: pointer;
  text-align: left;
  color: var(--text, #dce6f2);
  font: inherit;
  width: 100%;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.sum-card:hover {
  border-color: var(--line-hot, #2a3d55);
  background: var(--hover, rgba(212, 180, 90, 0.1));
}
.sum-card .sum-ico {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.sum-card .sum-ico .ico {
  width: 20px;
  height: 20px;
  font-size: 0.52rem;
}
.sum-card .sum-ico .flag {
  width: 16px;
  height: 12px;
}
.sum-card .sum-ico .ico-crypto-img {
  width: 20px;
  height: 20px;
}
.sum-card .sum-body {
  min-width: 0;
  overflow: visible;
}
.sum-card .sum-label {
  display: block;
  font-size: 0.62rem;
  color: var(--mute, #7d8ea3);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sum-card .sum-px {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  color: #e8eef7 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sum-card .sum-px.up { color: #00e676 !important; }
.sum-card .sum-px.down { color: #ff5252 !important; }
html[data-theme="light"] .sum-card {
  background: #fff;
  color: #1a222c;
}
html[data-theme="light"] .sum-card .sum-px {
  color: #121820 !important;
}
html[data-theme="light"] .sum-card .sum-px.up { color: #0a8f4a !important; }
html[data-theme="light"] .sum-card .sum-px.down { color: #c62828 !important; }

/* Tabs */
.tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0.15rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.tabs-scroll {
  overflow-x: auto;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.tabs-scroll .tab {
  flex: 0 0 auto;
  min-width: max-content;
  padding: 0.45rem 0.65rem;
  text-transform: none;
  letter-spacing: 0.02em;
}
.tab {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--mute);
  padding: 0.45rem 0.4rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tab.on {
  background: var(--accent-soft);
  color: var(--gold);
}

/* Table */
.table-scroll {
  overflow: auto;
  flex: 1;
  max-height: min(55vh, 520px);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
/* Ana sayfa: ~12 satır görünür, kalan 8 kaydırılır (toplam 20) */
body.home-page .table-mod {
  max-height: none;
}
body.home-page .table-scroll {
  max-height: calc(2.15rem + 12 * 2.05rem);
}
.grid-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: 0.82rem;
}
.grid-table th,
.grid-table td {
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}
.grid-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--table-head);
  color: var(--mute);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}
.grid-table td { font-variant-numeric: tabular-nums; font-family: var(--mono); }
.grid-table tbody tr {
  cursor: pointer;
  transition: background 0.15s ease;
}
.grid-table tbody tr:hover,
.grid-table tbody tr.active {
  background: var(--cyan-soft);
}
.grid-table tbody tr.active {
  box-shadow: inset 2px 0 0 var(--cyan);
}
.up { color: var(--green) !important; }
.down { color: var(--red) !important; }
.loading {
  text-align: center !important;
  color: var(--mute);
  padding: 2rem !important;
  font-family: var(--sans) !important;
}
.spark {
  width: 72px;
  height: 28px;
  display: block;
}

/* Converter */
.conv {
  display: grid;
  grid-template-columns: 1fr 1fr auto 1fr;
  gap: 0.4rem;
  padding: 0.65rem;
  align-items: center;
}
.conv input,
.conv select {
  height: 36px;
  border: 1px solid var(--line);
  background: var(--input-bg);
  border-radius: 4px;
  padding: 0 0.5rem;
  font-size: 0.82rem;
  color: var(--text);
  width: 100%;
}
.conv input { font-family: var(--mono); }
.icon-btn {
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  background: var(--hover);
  color: var(--gold);
  border-radius: 4px;
}
.icon-btn.spin { transform: rotate(180deg); transition: transform 0.3s ease; }
.conv-out {
  grid-column: 1 / -1;
  padding: 0.55rem 0.65rem;
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid rgba(0, 230, 118, 0.2);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--green);
  font-weight: 600;
}

.conv-pro {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.75rem;
  grid-template-columns: none;
}
.conv-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}
.conv-label {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 600;
}
.conv-amount input {
  height: 44px;
  font-size: 1.15rem;
  font-weight: 600;
  padding: 0 0.75rem;
  border-color: rgba(212, 180, 90, 0.35);
}
.conv-pair {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.45rem;
  align-items: end;
}
.conv-swap {
  width: 40px;
  height: 40px;
  margin-bottom: 1px;
  flex-shrink: 0;
}
.conv-pro select {
  height: 40px;
  font-size: 0.8rem;
}
.conv-pro .conv-out {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 0.85rem;
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.1), rgba(212, 180, 90, 0.06));
  border: 1px solid rgba(0, 230, 118, 0.28);
}
.conv-main {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green);
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}
.conv-sub {
  font-size: 0.72rem;
  color: var(--mute);
  font-weight: 500;
  font-family: var(--mono);
}

/* Chart — kompakt: Teknik Analiz + Favoriler ilk ekranda kalsın */
.chart-box {
  padding: 0.3rem 0.45rem 0;
  height: 148px;
  min-height: 128px;
  position: relative;
  flex-shrink: 0;
}
.chart-box-lg {
  height: 300px;
  min-height: 260px;
}
.chart-box canvas {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-height: 100%;
}
.ohlc {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.28rem;
  padding: 0.4rem 0.45rem 0.5rem;
  border-top: 1px solid var(--line);
}
.ohlc div {
  background: var(--chip-bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.28rem 0.32rem;
}
.ohlc span {
  display: block;
  font-size: 0.6rem;
  color: var(--mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}
.ohlc b {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.ranges { display: flex; gap: 0.2rem; }
.ranges button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--mute);
  font-family: var(--mono);
  font-size: 0.65rem;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
}
.ranges button.on {
  color: var(--cyan);
  border-color: var(--line-hot);
  background: var(--cyan-soft);
}

/* Analysis */
.analysis { padding: 0.4rem 0.45rem 0.5rem; display: grid; gap: 0.28rem; }
.an-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.45rem;
  padding: 0.32rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--chip-bg);
  font-size: 0.74rem;
}
.an-row span { color: var(--mute); flex-shrink: 0; }
.an-row b {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--text, #dce6f2);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.an-row b.up { color: #00e676 !important; }
.an-row b.down { color: #ff5252 !important; }
html[data-theme="light"] .an-row b { color: #152033; }
html[data-theme="light"] .an-row b.up { color: #0a8f4a !important; }
html[data-theme="light"] .an-row b.down { color: #c62828 !important; }
.bar {
  height: 4px;
  border-radius: 2px;
  background: var(--surface);
  overflow: hidden;
  margin-top: 0.2rem;
}
.bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--amber), var(--green));
  width: 50%;
  position: relative;
}
.bar i::after {
  content: "";
  position: absolute;
  top: -2px;
  width: 2px;
  height: 8px;
  background: #fff;
  left: var(--pos, 50%);
}

/* Watchlist */
.watch { padding: 0.25rem 0.3rem 0.4rem; }
button.watch-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 0.35rem;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 0.38rem 0.4rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
}
button.watch-row:hover { background: var(--cyan-soft); }
.watch-row .watch-ico { flex-shrink: 0; line-height: 0; }
.watch-row .s {
  color: var(--gold);
  font-weight: 600;
  font-family: var(--mono);
  font-size: 0.72rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.watch-row .p {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 0.74rem;
  color: var(--text, #dce6f2) !important;
}
.watch-row .c {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
  min-width: 3.4rem;
  text-align: right;
}
html[data-theme="light"] .watch-row .p { color: #152033 !important; }

.fb {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem 0.85rem;
  color: #a8b4c4;
  font-size: 0.68rem;
  border-top: 1px solid var(--line);
}
.fb a {
  color: #e0c06a;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.fb a:hover { color: #f0d78a; }

@media (min-width: 960px) {
  .terminal {
    grid-template-columns: minmax(230px, 270px) minmax(0, 1fr) minmax(260px, 300px);
    align-items: start;
  }
  .col-right {
    position: sticky;
    top: 0.4rem;
    max-height: calc(100vh - 0.8rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
  .news { max-height: min(42vh, 380px); flex: 1; overflow: auto; }
  .table-scroll { max-height: min(58vh, 560px); }
}
@media (min-width: 1280px) {
  .terminal {
    grid-template-columns: 280px minmax(0, 1fr) 320px;
  }
}

@media (max-width: 959px) {
  .tb {
    grid-template-columns: 1fr;
  }
  .tb-center { order: 3; }
  .tb-right { justify-content: flex-start; }
  .conv:not(.conv-pro) {
    grid-template-columns: 1fr 1fr;
  }
  .conv:not(.conv-pro) .icon-btn { grid-column: 1 / -1; width: 100%; }
  .conv-pair {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }
}

/* SEO / NLP content layer */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: #111;
  padding: 0.5rem 0.75rem;
  z-index: 200;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.seo-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.55rem;
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid var(--line);
  background: var(--nav-bg);
  font-size: 0.78rem;
  max-width: 100%;
}
.seo-nav a {
  color: var(--mute);
  padding: 0.28rem 0.6rem;
  border-radius: 4px;
  border: 1px solid transparent;
  text-decoration: none;
}
.seo-nav a:hover,
.seo-nav a.on,
.seo-nav a[aria-current="page"] {
  color: var(--gold);
  border-color: var(--line-hot);
  background: var(--hover);
}

.crumb {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.78rem;
  color: var(--mute);
  justify-content: center;
}
.crumb a { color: var(--gold); }

.seo-panel {
  border-top: 1px solid var(--line);
  background: var(--seo-bg);
  padding: 2rem 0 2.5rem;
}
.seo-wrap {
  width: min(920px, calc(100% - 2rem));
  margin-inline: auto;
}
.seo-h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--heading);
}
.seo-lead {
  margin: 0;
  color: var(--lead);
  font-size: 0.98rem;
  line-height: 1.65;
  max-width: 62ch;
}
.seo-lead strong { color: var(--text); }
.seo-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}
.seo-card {
  border: 1px solid var(--line);
  border-radius: var(--mod-radius);
  padding: 1rem 1.1rem;
  background: var(--surface-2);
  box-shadow: var(--mod-shadow);
}
.seo-card h2 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  color: var(--gold);
}
.seo-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--lead);
  font-size: 0.9rem;
}
.seo-card li { margin: 0.25rem 0; }
.entity-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.75rem;
}
.entity-cloud a {
  border: 1px solid var(--line);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--cyan);
}
.entity-cloud a:hover {
  border-color: var(--cyan);
}
.faq { margin-top: 1.75rem; }
.faq h2 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  color: var(--text);
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--mod-radius);
  padding: 0.7rem 0.85rem;
  margin-bottom: 0.45rem;
  background: var(--surface-2);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--heading);
}
.faq-item p {
  margin: 0.55rem 0 0;
  color: var(--lead);
  font-size: 0.9rem;
  line-height: 1.55;
}
.pair-hero { padding-top: 1.5rem; padding-bottom: 1rem; border-top: 0; }
.eyebrow-seo {
  margin: 0 0 0.4rem;
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--mono);
}
.seo-synonyms {
  margin: 0.75rem 0 0;
  color: var(--mute);
  font-size: 0.82rem;
}
.terminal.compact {
  min-height: auto;
}
.hidden-ui { display: none !important; }

@media (min-width: 800px) {
  .seo-grid { grid-template-columns: 1fr 1fr; }
}

.trust-bar {
  margin: 0;
  padding: 0.35rem 0.85rem;
  font-size: 0.72rem;
  color: var(--mute);
  border-bottom: 1px solid var(--line);
  background: var(--mod-h-bg);
  text-align: center;
}
.trust-bar strong { color: var(--gold); }

.intro-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1rem 0.95rem;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 70% 120% at 50% 0%, rgba(212, 180, 90, 0.1), transparent 60%),
    rgba(6, 9, 14, 0.9);
  text-align: center;
}
.intro-title {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
}
.intro-markets {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.intro-markets li {
  padding: 0.22rem 0.65rem;
  border: 1px solid rgba(125, 142, 163, 0.28);
  border-radius: 999px;
  font-size: 0.72rem;
  color: #b8c4d4;
  background: rgba(0, 0, 0, 0.28);
  letter-spacing: 0.02em;
}
.intro-note {
  margin: 0.15rem 0 0;
  max-width: 36rem;
  font-size: 0.74rem;
  line-height: 1.45;
  color: #7d8ea3;
}

.movers {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.35rem;
  padding: 0.4rem;
  min-width: 0;
  max-width: 100%;
  min-height: 118px;
  box-sizing: border-box;
  contain: layout;
}
.mover-col {
  min-width: 0;
  overflow: hidden;
}
.mover-col h3 {
  margin: 0 0 0.3rem;
  font-size: 0.65rem;
  color: var(--mute);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.mover-col button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: 100%;
  gap: 0.25rem;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text);
  padding: 0.28rem 0.35rem;
  margin-bottom: 0.2rem;
  border-radius: 4px;
  font-size: 0.65rem;
  text-align: left;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}
.mover-col button .ico-wrap,
.mover-col button .ico,
.mover-col button .flag {
  flex-shrink: 0;
}
.mover-col button .ico {
  width: 16px;
  height: 16px;
  font-size: 0.45rem;
}
.mover-col button .flag {
  width: 14px;
  height: 10px;
}
.mover-col button .ico-crypto-img {
  width: 16px;
  height: 16px;
}
.mover-col button span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mover-col button b {
  margin-left: 0.15rem;
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-variant-numeric: tabular-nums;
}
.star-btn {
  border: 0;
  background: transparent;
  color: var(--mute);
  cursor: pointer;
  font-size: 0.95rem;
  padding: 0;
}
.star-btn.on { color: var(--gold); }
.mono-sm {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--mute);
  white-space: nowrap;
}
.grid-table.dense { font-size: 0.75rem; min-width: 720px; }
.grid-table.dense th,
.grid-table.dense td {
  padding: 0.4rem 0.45rem;
}
.ranges-scroll {
  display: flex;
  gap: 0.2rem;
  overflow-x: auto;
  max-width: 100%;
  padding: 0.35rem 0.5rem 0.45rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.ranges-scroll button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--mute);
  font-size: 0.68rem;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
}
.ranges-scroll button.on {
  color: var(--gold);
  border-color: rgba(212, 180, 90, 0.4);
}
.ranges-scroll .detail-link,
.ranges .detail-link {
  flex: 0 0 auto;
  align-self: center;
  margin-left: 0.35rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid rgba(212, 180, 90, 0.45);
  border-radius: 3px;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.ranges-scroll .detail-link:hover,
.ranges .detail-link:hover {
  background: rgba(212, 180, 90, 0.1);
}
.ranges-scroll .detail-link[hidden] {
  display: none;
}
.seo-list {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--mute);
  line-height: 1.65;
}
.seo-list li {
  margin: 0.35rem 0;
}
.seo-list strong {
  color: var(--text, #e8eef7);
}
.conv-lg { gap: 0.5rem; }
.conv-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0 0.75rem 0.85rem;
}
.conv-presets button {
  border: 1px solid var(--line);
  background: var(--hover);
  color: var(--gold);
  font-size: 0.7rem;
  line-height: 1.25;
  padding: 0.4rem 0.55rem;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  flex: 1 1 auto;
  min-width: calc(25% - 0.35rem);
  max-width: 100%;
  white-space: normal;
  overflow: visible;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.conv-presets button:hover {
  background: var(--hover-strong);
  border-color: var(--line-hot);
}
@media (max-width: 700px) {
  .conv-presets button {
    min-width: calc(50% - 0.35rem);
    font-size: 0.68rem;
  }
}
.mod.conv-mod {
  overflow: visible;
}
.alert-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.35rem;
  padding: 0.55rem;
}
.alert-form input,
.alert-form select,
.alert-form button {
  border: 1px solid var(--line);
  background: var(--input-bg);
  color: var(--text);
  padding: 0.4rem;
  border-radius: 4px;
  font-size: 0.78rem;
}
.alert-form button { background: var(--accent-soft); color: var(--gold); }
.alert-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 0.55rem;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
}
.alert-row button {
  border: 0;
  background: transparent;
  color: var(--mute);
  cursor: pointer;
}
.watch-empty {
  padding: 0.75rem;
  color: var(--mute);
  font-size: 0.8rem;
}
.cal-list { display: grid; gap: 0.6rem; margin: 1.25rem 0; }
.cal-item {
  display: grid;
  grid-template-columns: 7rem 1fr auto;
  gap: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.85rem;
  background: var(--surface-2);
}
.cal-when { font-family: var(--mono); font-size: 0.75rem; color: var(--mute); }
.cal-cc {
  display: inline-block;
  color: var(--cyan);
  font-size: 0.7rem;
  margin-bottom: 0.25rem;
}
.cal-body h2 { margin: 0 0 0.35rem; font-size: 1rem; }
.cal-body p { margin: 0; color: var(--lead); font-size: 0.86rem; }
.cal-impact {
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--amber);
  align-self: start;
}
.hist-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.92rem;
}
.hist-table th,
.hist-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.55rem 0.35rem;
  text-align: left;
}
.compare-box {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.25rem 0;
}
.compare-box select {
  margin-left: 0.35rem;
  background: var(--input-bg);
  color: var(--text);
  border: 1px solid var(--line);
  padding: 0.4rem;
}
.cmp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.cmp-grid h3 { margin: 0 0 0.35rem; font-size: 0.95rem; color: var(--gold); }
.cmp-grid b { display: block; font-size: 1.4rem; }
.analysis-box {
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--mod-radius);
  background: var(--surface-2);
}
.analysis-box h2 { margin: 0; font-size: 0.95rem; color: var(--gold); }
.analysis-box p { margin: 0; color: var(--lead); font-size: 0.9rem; line-height: 1.55; }

@media (max-width: 900px) {
  .cal-item { grid-template-columns: 1fr; }
  .grid-table.dense { min-width: 600px; }
  .alert-form { grid-template-columns: 1fr; }
  .terminal { gap: 0.5rem; }
  .heat { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tb-right { gap: 0.4rem; }
  .chip { font-size: 0.62rem; }
}
.page-kicker {
  display: none;
}


/* Article / news pages */
.seo-nav-link {
  color: var(--gold);
  font-size: 0.8rem;
  font-family: var(--mono);
}
.article-wrap { max-width: 720px; }
.article-hero { border-top: 0; padding-top: 1.75rem; }
.news-tag {
  color: var(--amber);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}
.article-body {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}
.article-body p {
  margin: 0;
  color: #b8c4d4;
  font-size: 1.02rem;
  line-height: 1.75;
}
.article-body a { color: var(--gold); }
.related-pairs {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.related-pairs h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: var(--text);
}
.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.related-links a {
  border: 1px solid var(--line);
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  color: var(--cyan);
  font-size: 0.85rem;
}
.related-links a:hover { border-color: var(--cyan); }
.article-faq { margin-top: 2rem; }
.article-faq h2 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}
.article-nav {
  margin-top: 2rem;
  color: var(--mute);
  font-size: 0.9rem;
}
.article-nav a { color: var(--gold); }

.news-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.news-card {
  border: 1px solid var(--line);
  border-radius: var(--mod-radius);
  background: var(--surface-2);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.news-card:hover {
  border-color: var(--line-hot);
  background: var(--hover);
}
.news-card a {
  display: grid;
  gap: 0.4rem;
  padding: 1rem 1.1rem;
  color: inherit;
  text-decoration: none;
}
.news-card h2 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--heading);
  font-weight: 600;
}
.news-card p {
  margin: 0;
  color: var(--lead);
  font-size: 0.9rem;
  line-height: 1.5;
}
.news-card time {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--mute);
}

/* —— Themes —— */
.theme-ctl select {
  height: 30px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  border-radius: 4px;
  padding: 0 0.4rem;
  font-size: 0.72rem;
}
.chip.is-live b { color: var(--green); }
.chip.is-demo b { color: var(--amber); }
#chartClick:hover {
  outline: 1px solid var(--line-hot);
  outline-offset: 2px;
}

/* Koyu */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #05070a;
  --bg-image: radial-gradient(ellipse 120% 80% at 50% -20%, #122033 0%, #05070a 55%);
  --panel: #0b1017;
  --panel-2: #0f1621;
  --line: #1c2736;
  --line-hot: #2a3d55;
  --text: #dce6f2;
  --mute: #7d8ea3;
  --gold: #d4b45a;
  --green: #00e676;
  --red: #ff5252;
  --cyan: #26c6da;
  --amber: #ffb74d;
  --green-dim: rgba(0, 230, 118, 0.12);
  --red-dim: rgba(255, 82, 82, 0.12);
  --tb-bg: linear-gradient(180deg, #0d1420, #080c12);
  --mod-bg: linear-gradient(180deg, rgba(15, 22, 33, 0.96), rgba(11, 16, 23, 0.98));
  --mod-h-bg: rgba(0, 0, 0, 0.25);
  --tape-bg: #060a10;
  --seo-bg: linear-gradient(180deg, #070b11, #05070a);
  --nav-bg: rgba(8, 12, 18, 0.95);
  --table-head: #070b11;
  --input-bg: #0a1018;
  --surface: #0a1018;
  --surface-2: rgba(15, 22, 33, 0.72);
  --chip-bg: rgba(0, 0, 0, 0.22);
  --hover: rgba(212, 180, 90, 0.1);
  --hover-strong: rgba(212, 180, 90, 0.16);
  --accent-soft: rgba(212, 180, 90, 0.14);
  --cyan-soft: rgba(38, 198, 218, 0.1);
  --heading: #e8eef7;
  --lead: #a8b4c4;
  --mod-title: #b8c4d4;
  --scan-opacity: 0.035;
  --mod-shadow: none;
  --mod-radius: 6px;
  --border-w: 1px;
}

/* Açık — tamamen aydınlık */
html[data-theme="light"] {
  color-scheme: light;
  --bg: #edf1f7;
  --bg-image:
    linear-gradient(165deg, #ffffff 0%, #e8eef8 42%, #d5deec 100%);
  --panel: #ffffff;
  --panel-2: #f5f7fb;
  --line: #c5cedd;
  --line-hot: #8fa0b8;
  --text: #152033;
  --mute: #5a6b80;
  --gold: #8a6a14;
  --green: #067a42;
  --red: #b71c1c;
  --cyan: #006d7a;
  --amber: #b86e00;
  --green-dim: rgba(6, 122, 66, 0.12);
  --red-dim: rgba(183, 28, 28, 0.1);
  --tb-bg: linear-gradient(180deg, #ffffff 0%, #eef2f8 100%);
  --mod-bg: #ffffff;
  --mod-h-bg: #f0f3f8;
  --tape-bg: #dce3ef;
  --seo-bg: linear-gradient(180deg, #f4f7fb, #e8edf5);
  --nav-bg: #ffffff;
  --table-head: #e8eef6;
  --input-bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3f6fb;
  --chip-bg: #eef2f8;
  --hover: rgba(138, 106, 20, 0.1);
  --hover-strong: rgba(138, 106, 20, 0.18);
  --accent-soft: rgba(138, 106, 20, 0.14);
  --cyan-soft: rgba(0, 109, 122, 0.1);
  --heading: #0f1a2a;
  --lead: #445566;
  --mod-title: #334455;
  --scan-opacity: 0;
  --mod-shadow: 0 8px 28px rgba(20, 35, 60, 0.08);
  --mod-radius: 10px;
  --border-w: 1px;
}
html[data-theme="light"] .scanlines { display: none; }
html[data-theme="light"] .tb {
  box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(20, 35, 60, 0.06);
}
html[data-theme="light"] .grid-table tbody tr:hover,
html[data-theme="light"] .grid-table tbody tr.active {
  background: rgba(0, 109, 122, 0.07);
}
html[data-theme="light"] .live-badge {
  background: rgba(6, 122, 66, 0.1);
  color: var(--green);
}

/* Altın — sıcak bronz */
html[data-theme="gold"] {
  color-scheme: dark;
  --bg: #1a1208;
  --bg-image:
    radial-gradient(ellipse 90% 60% at 50% -5%, #6b4a18 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 100%, #3d2810 0%, transparent 45%),
    linear-gradient(180deg, #2a1c0c 0%, #120e08 55%, #0a0805 100%);
  --panel: #241a10;
  --panel-2: #2e2216;
  --line: #6a5230;
  --line-hot: #c4a04a;
  --text: #ffe9c2;
  --mute: #c4a87a;
  --gold: #ffd56a;
  --green: #d4e86a;
  --red: #ff7a5c;
  --cyan: #e8c36a;
  --amber: #ffb347;
  --green-dim: rgba(212, 232, 106, 0.14);
  --red-dim: rgba(255, 122, 92, 0.14);
  --tb-bg: linear-gradient(180deg, #3a2a14, #1a1208);
  --mod-bg: linear-gradient(165deg, #322416 0%, #1e160e 100%);
  --mod-h-bg: rgba(255, 200, 80, 0.08);
  --tape-bg: #140f08;
  --seo-bg: linear-gradient(180deg, #22180e, #140f08);
  --nav-bg: rgba(30, 22, 12, 0.95);
  --table-head: #2a1e12;
  --input-bg: #2a1e12;
  --surface: #2a1e12;
  --surface-2: rgba(50, 36, 18, 0.85);
  --chip-bg: rgba(255, 200, 80, 0.08);
  --hover: rgba(255, 213, 106, 0.14);
  --hover-strong: rgba(255, 213, 106, 0.22);
  --accent-soft: rgba(255, 213, 106, 0.18);
  --cyan-soft: rgba(232, 195, 106, 0.14);
  --heading: #ffe9c2;
  --lead: #d4b888;
  --mod-title: #ebc98a;
  --scan-opacity: 0.045;
  --mod-shadow: 0 0 0 1px rgba(255, 200, 80, 0.08), 0 12px 40px rgba(0, 0, 0, 0.45);
  --mod-radius: 8px;
  --border-w: 1px;
}
html[data-theme="gold"] .brand-word {
  color: #ffd56a;
  text-shadow: 0 0 18px rgba(255, 200, 80, 0.35);
}
html[data-theme="gold"] .mod { border-color: #7a5a28; }

/* Okyanus — teal / cam */
html[data-theme="ocean"] {
  color-scheme: dark;
  --bg: #021820;
  --bg-image:
    radial-gradient(ellipse 80% 55% at 15% 0%, #0e6a8a 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 90% 80%, #063a50 0%, transparent 50%),
    linear-gradient(160deg, #043040 0%, #021820 45%, #010e14 100%);
  --panel: #062430;
  --panel-2: #0a3040;
  --line: #1e5a70;
  --line-hot: #3dd6ff;
  --text: #e2f7ff;
  --mute: #7eb8cc;
  --gold: #5ce1ff;
  --green: #2dffb0;
  --red: #ff5e7a;
  --cyan: #3dd6ff;
  --amber: #ffc857;
  --green-dim: rgba(45, 255, 176, 0.14);
  --red-dim: rgba(255, 94, 122, 0.14);
  --tb-bg: linear-gradient(180deg, #0a3a50, #021820);
  --mod-bg: linear-gradient(165deg, rgba(8, 48, 64, 0.95), rgba(4, 24, 34, 0.98));
  --mod-h-bg: rgba(61, 214, 255, 0.08);
  --tape-bg: #01141c;
  --seo-bg: linear-gradient(180deg, #042838, #021820);
  --nav-bg: rgba(4, 32, 44, 0.95);
  --table-head: #062a38;
  --input-bg: #062a38;
  --surface: #062a38;
  --surface-2: rgba(8, 48, 64, 0.85);
  --chip-bg: rgba(61, 214, 255, 0.08);
  --hover: rgba(61, 214, 255, 0.12);
  --hover-strong: rgba(61, 214, 255, 0.2);
  --accent-soft: rgba(61, 214, 255, 0.16);
  --cyan-soft: rgba(61, 214, 255, 0.14);
  --heading: #e8fbff;
  --lead: #9accde;
  --mod-title: #a8d8e8;
  --scan-opacity: 0.028;
  --mod-shadow: 0 0 40px rgba(0, 180, 220, 0.08);
  --mod-radius: 8px;
  --border-w: 1px;
}
html[data-theme="ocean"] .clock {
  color: #3dd6ff;
  text-shadow: 0 0 12px rgba(61, 214, 255, 0.4);
}
html[data-theme="ocean"] .mod { border-color: #1e6a88; }

/* Kontrast — sert siyah / neon */
html[data-theme="contrast"] {
  color-scheme: dark;
  --bg: #000000;
  --bg-image: repeating-linear-gradient(0deg, #000 0 3px, #050505 3px 6px);
  --panel: #000000;
  --panel-2: #0d0d0d;
  --line: #ffffff;
  --line-hot: #ffd54f;
  --text: #ffffff;
  --mute: #c8c8c8;
  --gold: #ffd54f;
  --green: #00ff88;
  --red: #ff1744;
  --cyan: #00e5ff;
  --amber: #ffea00;
  --green-dim: rgba(0, 255, 136, 0.18);
  --red-dim: rgba(255, 23, 68, 0.18);
  --tb-bg: #000000;
  --mod-bg: #000000;
  --mod-h-bg: #111111;
  --tape-bg: #000000;
  --seo-bg: #000000;
  --nav-bg: #000000;
  --table-head: #111111;
  --input-bg: #000000;
  --surface: #000000;
  --surface-2: #0a0a0a;
  --chip-bg: #141414;
  --hover: rgba(255, 213, 79, 0.16);
  --hover-strong: rgba(255, 213, 79, 0.28);
  --accent-soft: rgba(255, 213, 79, 0.2);
  --cyan-soft: rgba(0, 229, 255, 0.16);
  --heading: #ffffff;
  --lead: #dddddd;
  --mod-title: #ffffff;
  --scan-opacity: 0.07;
  --mod-shadow: none;
  --mod-radius: 0;
  --border-w: 2px;
}
html[data-theme="contrast"] .mod,
html[data-theme="contrast"] .seo-card,
html[data-theme="contrast"] .faq-item,
html[data-theme="contrast"] .news-card {
  border-width: 2px;
  border-radius: 0;
}
html[data-theme="contrast"] .tb { border-bottom-width: 2px; }
html[data-theme="contrast"] .brand-word {
  color: #ffd54f;
  letter-spacing: 0.08em;
}
