@charset "UTF-8";
/* ====================================================================
   Kredi.biz — Finansal Veri Platformu
   Tasarim sistemi: token tabanli, tema duyarli, veri odakli.
   ==================================================================== */

/* --------------------------------------------------------------
   0. YAZI TIPI
   Tek aile, degisken agirlik, kendi sunucumuzda. Latin alt kumesi
   once yuklenir; Turkce karakterler latin-ext dosyasindan gelir.
   -------------------------------------------------------------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
                 U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
                 U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------------------------------------
   1. TOKENLAR — acik tema varsayilan
   -------------------------------------------------------------- */
:root {
  /* Yuzeyler */
  --bg:              #F6F8FB;
  --surface:         #FFFFFF;
  --surface-muted:   #F9FAFB;
  --surface-sunken:  #F2F4F7;

  /* Koyu piyasa alani (her iki temada sabit) */
  --navy-950:        #08111D;
  --navy-900:        #0B1624;
  --navy-850:        #0E1A29;
  --navy-800:        #142338;
  --navy-line:       #1C2E47;
  --navy-text:       #E7EDF5;
  --navy-muted:      #8FA3BC;

  /* Metin */
  --text:            #111827;
  --text-2:          #667085;
  --text-3:          #98A2B3;

  /* Cizgiler */
  --border:          #E4E7EC;
  --border-strong:   #D0D5DD;

  /* Finansal yon renkleri — YALNIZ yon bildirir, dekorasyon degildir */
  --positive:        #169B62;
  --positive-soft:   #E8F5EF;
  --negative:        #D64545;
  --negative-soft:   #FBEDED;
  --warning:         #C98A1B;
  --warning-soft:    #FBF3E3;

  /* Vurgu — kurumsal lacivert */
  --accent:          #12395F;
  --accent-hover:    #0D2B49;
  --accent-soft:     #EAF0F6;
  --focus:           #1D6FB8;

  /* Olcek */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;
  --sp-12: 48px; --sp-16: 64px;

  --r-sm: 4px; --r-md: 6px; --r-lg: 8px; --r-xl: 10px;

  --shadow-sm: 0 1px 2px rgba(16,24,40,.05);
  --shadow-md: 0 4px 12px rgba(16,24,40,.07);
  --shadow-lg: 0 12px 28px rgba(16,24,40,.10);

  --container: 1360px;
  --header-h: 68px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;

  --t-fast: 140ms cubic-bezier(.4,0,.2,1);
  --t-base: 180ms cubic-bezier(.4,0,.2,1);

  color-scheme: light;
}

/* --------------------------------------------------------------
   2. KOYU TEMA
   Site DAIMA acik temayla acilir. Isletim sistemi koyu modda olsa
   bile ilk goruntu beyazdir; koyu tema yalnizca kullanici basliktaki
   dugmeyle sectiginde devreye girer ve tercih saklanir.
   -------------------------------------------------------------- */
:root[data-theme="dark"] {
  --bg:            #0B1018;
  --surface:       #121A25;
  --surface-muted: #0F1722;
  --surface-sunken:#0D1520;
  --text:          #E8EDF4;
  --text-2:        #9AA9BC;
  --text-3:        #6D7E93;
  --border:        #1E2A38;
  --border-strong: #2A3949;
  --positive:      #35C08A;
  --positive-soft: #102A22;
  --negative:      #EE6A6A;
  --negative-soft: #2B1618;
  --warning:       #E0A83C;
  --warning-soft:  #2A2113;
  --accent:        #E8EDF4;
  --accent-hover:  #FFFFFF;
  --accent-soft:   #182534;
  --focus:         #4C9BE0;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 4px 12px rgba(0,0,0,.45);
  --shadow-lg: 0 12px 28px rgba(0,0,0,.5);
  color-scheme: dark;
}

/* --------------------------------------------------------------
   3. TEMEL
   -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { margin: 0 0 var(--sp-3); font-weight: 650; line-height: 1.25; letter-spacing: -.011em; }
h1 { font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -.022em; }
h2 { font-size: clamp(21px, 2.2vw, 30px); letter-spacing: -.018em; }
h3 { font-size: clamp(17px, 1.4vw, 20px); }
h4 { font-size: 16px; }

p { margin: 0 0 var(--sp-4); }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--focus); }

img, svg, video { max-width: 100%; height: auto; display: block; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.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;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--surface); color: var(--text);
  padding: var(--sp-3) var(--sp-4); border-radius: 0 0 var(--r-md) 0;
}
.skip-link:focus { left: 0; }

/* Rakamlar daima hizali */
.num, td.num, th.num, .price, .chg, table.mtable td { font-variant-numeric: tabular-nums; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}
@media (max-width: 640px) { .container { padding-inline: var(--sp-4); } }

/* --------------------------------------------------------------
   4. YON RENKLERI
   -------------------------------------------------------------- */
.chg { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; font-size: 13px; white-space: nowrap; }
.chg--up   { color: var(--positive); }
.chg--down { color: var(--negative); }
.chg--flat { color: var(--text-3); }
.chg .arw { fill: currentColor; flex: none; }

.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: var(--r-sm); font-size: 12.5px; font-weight: 600; }
.pill--up   { background: var(--positive-soft); color: var(--positive); }
.pill--down { background: var(--negative-soft); color: var(--negative); }
.pill--flat { background: var(--surface-sunken); color: var(--text-3); }

.spark polyline { stroke: var(--text-3); }
.spark polygon  { fill: currentColor; }
.spark--up      { color: var(--positive); }
.spark--up polyline { stroke: var(--positive); }
.spark--down    { color: var(--negative); }
.spark--down polyline { stroke: var(--negative); }
.spark--flat    { color: var(--text-3); }

/* --------------------------------------------------------------
   5. BASLIK
   -------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--navy-950);
  border-bottom: 1px solid var(--navy-line);
}
.header-inner {
  display: flex; align-items: center; gap: var(--sp-6);
  height: var(--header-h);
}

.logo { display: flex; align-items: center; gap: 9px; flex: none; color: var(--navy-text); }
.logo__mark { width: 30px; height: 30px; flex: none; }
.logo__text { font-size: 19px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.logo__text b { font-weight: 700; }
.logo__text span { color: #7FB2E5; }
.logo__sub { display: block; font-size: 10.5px; font-weight: 500; color: var(--navy-muted); letter-spacing: .02em; margin-top: 2px; }
.logo:hover { color: #fff; }

.mainnav { flex: 1; min-width: 0; }
.mainnav > ul { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.mainnav a, .mainnav .navbtn {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 11px; border-radius: var(--r-md);
  font-size: 14px; font-weight: 500; color: var(--navy-muted);
  transition: color var(--t-fast), background var(--t-fast);
  white-space: nowrap;
}
.mainnav a:hover, .mainnav .navbtn:hover,
.mainnav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.07); }
.mainnav .caret { width: 9px; height: 9px; fill: currentColor; opacity: .7; transition: transform var(--t-fast); }
.has-mega[aria-expanded="true"] .caret { transform: rotate(180deg); }

.header-actions { display: flex; align-items: center; gap: var(--sp-2); flex: none; margin-left: auto; }

.icon-btn {
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: var(--r-md); color: var(--navy-muted);
  transition: color var(--t-fast), background var(--t-fast);
}
.icon-btn:hover { color: #fff; background: rgba(255,255,255,.08); }
.icon-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; }

/* Mega menu */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: var(--sp-8) 0;
  display: none;
}
.mega[data-open="true"] { display: block; }
.mega__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-8); }
.mega__col > p { font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); margin: 0 0 var(--sp-3); }
.mega__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.mega__col a {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3);
  padding: 6px 8px; margin-inline: -8px; border-radius: var(--r-sm);
  font-size: 14px; color: var(--text);
  transition: background var(--t-fast);
}
.mega__col a:hover { background: var(--surface-sunken); color: var(--text); }
.mega__col a .v { font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.mega__all { display: inline-block; margin-top: var(--sp-2); font-size: 13px; font-weight: 600; color: var(--focus); }

/* --------------------------------------------------------------
   6. HERO — koyu piyasa istihbarat alani
   -------------------------------------------------------------- */
.hero {
  background: var(--navy-900);
  color: var(--navy-text);
  border-bottom: 1px solid var(--navy-line);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(80% 120% at 88% 12%, rgba(41,102,168,.20), transparent 62%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; padding: var(--sp-12) 0 0; }
.hero__grid { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: var(--sp-10); align-items: start; }

.hero__label {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 650; letter-spacing: .09em; text-transform: uppercase;
  color: #7FB2E5; margin-bottom: var(--sp-4);
}
.hero__label .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--positive); }

.hero h1 { color: #fff; margin-bottom: var(--sp-4); max-width: 16ch; }
.hero__lead { color: var(--navy-muted); font-size: 16px; max-width: 56ch; margin-bottom: var(--sp-6); }

.hero__aside { border-left: 1px solid var(--navy-line); padding-left: var(--sp-8); }
.hero__aside p { color: var(--navy-muted); font-size: 13.5px; margin: 0; }
.hero__aside strong { display: block; color: #fff; font-size: 17px; font-weight: 650; margin-bottom: var(--sp-2); }

/* Global arama */
.gsearch { position: relative; max-width: 560px; }
.gsearch input {
  width: 100%; height: 50px;
  padding: 0 52px 0 44px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--navy-line);
  border-radius: var(--r-lg);
  color: #fff; font-size: 15px;
}
.gsearch input::placeholder { color: #7186A0; }
.gsearch input:focus { background: rgba(255,255,255,.10); border-color: #2F5C8A; outline: none; }
.gsearch__ico { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; stroke: #7186A0; fill: none; stroke-width: 1.9; }
.gsearch__go {
  position: absolute; right: 7px; top: 7px; width: 36px; height: 36px;
  display: grid; place-items: center; border-radius: var(--r-md);
  background: rgba(255,255,255,.10); color: #fff;
}
.gsearch__go:hover { background: rgba(255,255,255,.18); }
.gsearch__go svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

.gsearch__results {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  max-height: 340px; overflow-y: auto; padding: 5px;
}
.gsearch__results:empty { display: none; }
.gsearch__results a {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: 9px 11px; border-radius: var(--r-md); color: var(--text); font-size: 14px;
}
.gsearch__results .aicon { flex: none; }
.gsearch__results .t { flex: none; }
.gsearch__results a:hover, .gsearch__results a.is-active { background: var(--surface-sunken); }
.gsearch__results .t { font-size: 11px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); }

/* Hero seridi */
.tickers {
  display: grid; grid-template-columns: repeat(5, 1fr);
  margin-top: var(--sp-10);
  border-top: 1px solid var(--navy-line);
}
.tickers__item {
  padding: var(--sp-5) var(--sp-5) var(--sp-5) 0;
  border-right: 1px solid var(--navy-line);
  display: block;
}
.tickers__item:last-child { border-right: 0; }
.tickers__item:not(:first-child) { padding-left: var(--sp-5); }
.tickers__item:hover .tickers__name { color: #fff; }
.tickers__head { display: flex; align-items: center; gap: 7px; }
.tickers__name { font-size: 11.5px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--navy-muted); transition: color var(--t-fast); }
.tickers .aicon--text { background: rgba(255,255,255,.10); color: var(--navy-text); }
.tickers__price { font-size: 22px; font-weight: 650; color: #fff; margin: 5px 0 3px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.tickers__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.tickers .spark { opacity: .95; }

/* --------------------------------------------------------------
   7. BOLUM DUZENI
   -------------------------------------------------------------- */
.section { padding: var(--sp-12) 0; }
.section--tight { padding: var(--sp-8) 0; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--sp-6); }
.section__head h2 { margin: 0; }
.section__head p { margin: 6px 0 0; color: var(--text-2); font-size: 14.5px; }
.section__more { font-size: 14px; font-weight: 600; color: var(--focus); white-space: nowrap; }

.layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--sp-8); align-items: start; }
.layout > * { min-width: 0; }
.layout--wide { grid-template-columns: minmax(0, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  min-width: 0;
  overflow: clip;
}
.card__head { padding: var(--sp-5) var(--sp-6); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); }
.card__head h2, .card__head h3 { margin: 0; font-size: 16px; }
.card__body { padding: var(--sp-6); }
.card__foot { padding: var(--sp-4) var(--sp-6); border-top: 1px solid var(--border); font-size: 13px; color: var(--text-2); }

/* --------------------------------------------------------------
   8. SEKMELER
   -------------------------------------------------------------- */
.tabs { display: flex; gap: var(--sp-1); border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  padding: var(--sp-4) var(--sp-5);
  font-size: 14.5px; font-weight: 600; color: var(--text-2);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  white-space: nowrap; transition: color var(--t-fast), border-color var(--t-fast);
}
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.tabpanel[hidden] { display: none; }

/* --------------------------------------------------------------
   9. CEVIRICI
   -------------------------------------------------------------- */
.conv { display: grid; grid-template-columns: minmax(0,1fr) 52px minmax(0,1fr); gap: var(--sp-4); align-items: end; }
.conv__field { display: block; min-width: 0; }
.conv__label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); margin-bottom: var(--sp-2); }
.conv__row { display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; }
.conv__amount {
  flex: 1; min-width: 0; height: 62px;
  padding: 0 var(--sp-4);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 650; font-variant-numeric: tabular-nums;
  background: var(--surface-muted); border: 1px solid var(--border); border-radius: var(--r-lg);
  letter-spacing: -.02em;
  text-overflow: ellipsis;
}
.conv__amount:focus { border-color: var(--focus); background: var(--surface); outline: none; }
.conv__amount[readonly] { background: var(--surface-sunken); }

.selwrap { position: relative; width: 100%; }

/* Secili birimin bayragi kutunun icinde durur; secim degisince JS
   gorseli degistirir. Yerel <select> korunur: klavye ve mobil davranis
   isletim sisteminin kendi bilesenidir. */
.selwrap__flag {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; border-radius: 50%; pointer-events: none; z-index: 1;
}

/* Tutar kutusu ve para birimi simgesi */
.conv__input { position: relative; flex: 1; min-width: 0; display: block; }
.conv__sym {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font-size: 17px; font-weight: 600; color: var(--text-3); pointer-events: none;
}
.conv__input .conv__amount { width: 100%; padding-right: 34px; }
.selwrap select {
  width: 100%; min-width: 0; text-overflow: ellipsis; height: 50px; padding: 0 34px 0 var(--sp-4);
  background: var(--surface-muted); border: 1px solid var(--border); border-radius: var(--r-lg);
  font-size: 14.5px; font-weight: 600; appearance: none; cursor: pointer;
}
.selwrap select:focus { border-color: var(--focus); outline: none; }

/* Bayrakli kutuda metin, bayragin sagindan baslar. Bu kural genel
   .selwrap select tanimindan SONRA gelmeli: ikisi ayni spesifiklikte. */
.selwrap--flag select { padding-left: 42px; }
.selwrap::after {
  content: ""; position: absolute; right: 14px; top: 50%; width: 8px; height: 8px;
  border-right: 1.8px solid var(--text-2); border-bottom: 1.8px solid var(--text-2);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}

.conv__swap {
  width: 44px; height: 44px; margin-bottom: 32px;
  display: grid; place-items: center; justify-self: center;
  border: 1px solid var(--border); border-radius: 50%;
  background: var(--surface); color: var(--text-2);
  transition: transform var(--t-base), color var(--t-fast), border-color var(--t-fast);
}
.conv__swap:hover { color: var(--text); border-color: var(--border-strong); transform: rotate(180deg); }
.conv__swap svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.9; }

.conv__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-4);
  margin-top: var(--sp-5); padding-top: var(--sp-5); border-top: 1px solid var(--border);
  font-size: 13.5px; color: var(--text-2);
}
.conv__meta strong { color: var(--text); font-weight: 650; font-variant-numeric: tabular-nums; }

.quick { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-4); }
.quick button {
  padding: 7px 14px; border: 1px solid var(--border); border-radius: var(--r-md);
  font-size: 13.5px; font-weight: 600; color: var(--text-2); background: var(--surface);
  font-variant-numeric: tabular-nums;
  transition: border-color var(--t-fast), color var(--t-fast);
}
.quick button:hover { border-color: var(--border-strong); color: var(--text); }
.quick button[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--border-strong); color: var(--text); }

/* --------------------------------------------------------------
   10. TAKIP LISTESI
   -------------------------------------------------------------- */
.watch { list-style: none; margin: 0; padding: 0; }
.watch li + li { border-top: 1px solid var(--border); }
.watch a { display: grid; grid-template-columns: 26px minmax(0,1fr) auto; gap: var(--sp-3); align-items: center; padding: 11px var(--sp-6); }
.watch a:hover { background: var(--surface-sunken); color: var(--text); }
.watch__name { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.watch__vals { text-align: right; display: grid; gap: 2px; }
.watch__price { font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; }
/* Varlik ikonu. Gorsel yoksa ayni olculerde kod monogramina duser,
   boylece hicbir yerde yerlesim kaymaz. */
.aicon { width: 22px; height: 22px; border-radius: 50%; flex: none; display: block; }
.aicon--text {
  display: grid; place-items: center;
  font-size: 9px; font-weight: 700; letter-spacing: -.02em;
  background: var(--surface-sunken); color: var(--text-2);
  font-variant-numeric: normal;
}
.scard .aicon, .tickers .aicon { width: 24px; height: 24px; }
.scard .aicon--text, .tickers .aicon--text { font-size: 9.5px; }
.mtable__asset .aicon { width: 24px; height: 24px; }
:root[data-theme="dark"] .aicon:not(.aicon--text) { background: rgba(255,255,255,.06); }

/* --------------------------------------------------------------
   11. PIYASA KARTLARI
   -------------------------------------------------------------- */
.snapshot { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
.scard {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: var(--sp-5); display: block;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.scard:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-strong); color: var(--text); }
.scard__top { display: flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.scard__name { font-size: 14px; font-weight: 650; }
.scard__arrow { margin-left: auto; width: 14px; height: 14px; stroke: var(--text-3); fill: none; stroke-width: 2; }
.scard__price { font-size: 26px; font-weight: 650; letter-spacing: -.022em; font-variant-numeric: tabular-nums; margin-bottom: 4px; }
.scard__mid { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.scard__range { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); padding-top: var(--sp-3); border-top: 1px solid var(--border); }
.scard__range dt { font-size: 11.5px; color: var(--text-3); margin-bottom: 2px; }
.scard__range dd { margin: 0; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------
   12. PIYASA TABLOSU
   -------------------------------------------------------------- */
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.mtable { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
table.mtable caption { text-align: left; padding: 0 var(--sp-6) var(--sp-3); color: var(--text-2); font-size: 13px; }
table.mtable th {
  text-align: right; font-size: 11.5px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase;
  color: var(--text-3); padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--border);
  white-space: nowrap; background: var(--surface-muted);
}
table.mtable th:first-child, table.mtable td:first-child { padding-left: var(--sp-6); text-align: left; width: 34px; color: var(--text-3); }
table.mtable th:nth-child(2), table.mtable td:nth-child(2) { text-align: left; }
table.mtable th:last-child, table.mtable td:last-child { padding-right: var(--sp-6); }
table.mtable td { padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--border); text-align: right; white-space: nowrap; }
table.mtable tbody tr:hover { background: var(--surface-sunken); }
table.mtable tbody tr:last-child td { border-bottom: 0; }
.mtable__asset { display: flex; align-items: center; gap: var(--sp-3); }
.mtable__asset a { font-weight: 650; }
.mtable__asset a:hover { color: var(--focus); }
.mtable__asset small { display: block; font-size: 12px; font-weight: 500; color: var(--text-3); }
.mtable .price { font-weight: 650; }

/* --------------------------------------------------------------
   13. HABERLER
   -------------------------------------------------------------- */
.newslist { list-style: none; margin: 0; padding: 0; }
.newslist li + li { border-top: 1px solid var(--border); }
.newsitem { display: grid; grid-template-columns: 96px minmax(0,1fr); gap: var(--sp-4); padding: var(--sp-4) var(--sp-6); }
.newsitem:hover { background: var(--surface-sunken); color: var(--text); }
.newsitem img { width: 96px; height: 68px; object-fit: cover; border-radius: var(--r-md); background: var(--surface-sunken); }
.newsitem h3 { font-size: 15px; margin: 0 0 4px; line-height: 1.35; }
.newsitem p { font-size: 13.5px; color: var(--text-2); margin: 0 0 6px; }
.newsitem time { font-size: 12.5px; color: var(--text-3); }

/* --------------------------------------------------------------
   14. TANITIM KARTI + ARAC LISTESI
   -------------------------------------------------------------- */
.promo {
  background: var(--navy-900); color: var(--navy-text);
  border-radius: var(--r-xl); padding: var(--sp-6);
  border: 1px solid var(--navy-line);
}
.promo h2, .promo h3 { color: #fff; font-size: 18px; margin-bottom: var(--sp-3); }
.promo p { color: var(--navy-muted); font-size: 14px; margin-bottom: var(--sp-5); }

.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 18px; border-radius: var(--r-md);
  font-size: 14px; font-weight: 650;
  background: var(--accent); color: var(--bg);
  border: 1px solid transparent;
  transition: background var(--t-fast);
}
.btn:hover { background: var(--accent-hover); color: var(--bg); }
.btn--onDark { background: #fff; color: var(--navy-950); }
.btn--onDark:hover { background: #E7EDF5; color: var(--navy-950); }
.btn--ghost { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn--ghost:hover { background: var(--surface-sunken); color: var(--text); }
.btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; }

.toollist { list-style: none; margin: 0; padding: 0; }
.toollist li + li { border-top: 1px solid var(--border); }
.toollist a { display: flex; align-items: center; gap: var(--sp-3); padding: 12px var(--sp-6); font-size: 14px; font-weight: 550; }
.toollist a:hover { background: var(--surface-sunken); color: var(--text); }
.toollist svg.ico { width: 18px; height: 18px; stroke: var(--text-3); fill: none; stroke-width: 1.7; flex: none; }
.toollist a:hover svg.ico { stroke: var(--focus); }
.toollist .go { margin-left: auto; width: 13px; height: 13px; stroke: var(--text-3); }

/* --------------------------------------------------------------
   15. GUVEN SERIDI
   -------------------------------------------------------------- */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-8); padding: var(--sp-10) 0; border-top: 1px solid var(--border); }
.trust__item { display: grid; grid-template-columns: 34px 1fr; gap: var(--sp-3); align-items: start; }
.trust__item svg { width: 22px; height: 22px; stroke: var(--text-2); fill: none; stroke-width: 1.6; margin-top: 2px; }
.trust__item h3 { font-size: 15px; margin: 0 0 3px; }
.trust__item p { font-size: 13.5px; color: var(--text-2); margin: 0; }

/* --------------------------------------------------------------
   16. SEO ICERIK BLOGU
   -------------------------------------------------------------- */
.prose { max-width: 76ch; }
.prose h2 { margin-top: var(--sp-10); }
.prose h3 { margin-top: var(--sp-6); }
.prose > :first-child { margin-top: 0; }
.prose p, .prose li { font-size: 15.5px; line-height: 1.72; color: var(--text); }
.prose ul, .prose ol { padding-left: 1.25em; margin-bottom: var(--sp-4); }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--focus); text-decoration: underline; text-underline-offset: 2px; }
.prose strong { font-weight: 650; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: var(--sp-5); font-size: 14.5px; }
.prose th, .prose td { border: 1px solid var(--border); padding: 9px 12px; text-align: left; }
.prose th { background: var(--surface-muted); font-weight: 650; }

/* SSS */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-4) 0; font-size: 15.5px; font-weight: 600; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 9px; height: 9px; flex: none;
  border-right: 1.9px solid var(--text-3); border-bottom: 1.9px solid var(--text-3);
  transform: rotate(45deg) translateY(-2px); transition: transform var(--t-base);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq details > div { padding-bottom: var(--sp-4); color: var(--text-2); font-size: 15px; line-height: 1.7; max-width: 76ch; }
.faq details > div p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------
   17. KIRINTI YOLU
   -------------------------------------------------------------- */
.crumbs { padding: var(--sp-4) 0; font-size: 13px; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.crumbs li { display: flex; align-items: center; gap: 6px; color: var(--text-2); }
.crumbs li:not(:last-child)::after { content: "/"; color: var(--text-3); }
.crumbs a:hover { color: var(--focus); }
.crumbs [aria-current] { color: var(--text); font-weight: 550; }

/* --------------------------------------------------------------
   18. DETAY SAYFASI
   -------------------------------------------------------------- */
.quote { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--sp-4) var(--sp-8); margin-bottom: var(--sp-6); }
.quote__price { font-size: clamp(34px, 4.4vw, 46px); font-weight: 700; letter-spacing: -.028em; font-variant-numeric: tabular-nums; line-height: 1; }
.quote__unit { font-size: 16px; font-weight: 550; color: var(--text-2); margin-left: 6px; }
.quote__chg { font-size: 16px; }
.quote__meta { font-size: 13px; color: var(--text-3); width: 100%; }

.statgrid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); overflow: hidden;
}
/* Izgara cizgileri kenarliktan gelir: son satir eksik kalsa bile
   arkada bos gri alan olusmaz. */
.statgrid > div {
  padding: var(--sp-4) var(--sp-5);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 0 -1px -1px 0;
}
.statgrid dt { font-size: 12px; color: var(--text-3); margin-bottom: 4px; }
.statgrid dd { margin: 0; font-size: 16px; font-weight: 650; font-variant-numeric: tabular-nums; }

.linechart .grid { stroke: var(--border); stroke-width: 1; }
.linechart .axis { fill: var(--text-3); font-size: 11px; font-family: var(--font); }
.linechart polyline { stroke: var(--text-2); }
.linechart--up polyline { stroke: var(--positive); }
.linechart--up polygon { fill: var(--positive); }
.linechart--down polyline { stroke: var(--negative); }
.linechart--down polygon { fill: var(--negative); }
.chart-empty { color: var(--text-3); font-size: 14px; padding: var(--sp-8); text-align: center; }

.range-tabs { display: flex; gap: var(--sp-1); }
.range-tabs a {
  padding: 5px 11px; border-radius: var(--r-md); font-size: 13px; font-weight: 600; color: var(--text-2);
}
.range-tabs a:hover { background: var(--surface-sunken); color: var(--text); }
.range-tabs a[aria-current] { background: var(--accent-soft); color: var(--text); }

/* Ilgili baglantilar — ic linkleme */
.relgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: var(--sp-3); }
.relgrid a {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface);
  font-size: 14px; font-weight: 600;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.relgrid a:hover { border-color: var(--border-strong); background: var(--surface-muted); color: var(--text); }
.relgrid .v { font-size: 13px; font-weight: 550; color: var(--text-2); font-variant-numeric: tabular-nums; }

/* Veri seffafligi seridi */
.datasrc {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-5);
  padding: var(--sp-4) var(--sp-6); margin-top: var(--sp-8);
  background: var(--surface-muted); border: 1px solid var(--border); border-radius: var(--r-lg);
  font-size: 13px; color: var(--text-2);
}
.datasrc strong { color: var(--text); font-weight: 600; }
.datasrc svg { width: 15px; height: 15px; stroke: var(--text-3); fill: none; stroke-width: 1.7; }

/* --------------------------------------------------------------
   19. HESAPLAMA ARACLARI
   -------------------------------------------------------------- */
.calc { display: grid; gap: var(--sp-5); }
.calc__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--sp-4); }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.field input, .field select {
  width: 100%; height: 46px; padding: 0 var(--sp-3);
  background: var(--surface-muted); border: 1px solid var(--border); border-radius: var(--r-md);
  font-size: 15px; font-variant-numeric: tabular-nums;
}
.field input:focus, .field select:focus { border-color: var(--focus); background: var(--surface); outline: none; }
.field small { display: block; margin-top: 5px; font-size: 12.5px; color: var(--text-3); }

.result { background: var(--surface-muted); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-5); }
.result__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--sp-5); }
.result dt { font-size: 12.5px; color: var(--text-2); margin-bottom: 4px; }
.result dd { margin: 0; font-size: 21px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.result dd.lead { color: var(--positive); }

.toolgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--sp-4); }
.toolcard {
  display: block; padding: var(--sp-5);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.toolcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-strong); color: var(--text); }
.toolcard h3 { font-size: 15.5px; margin: 0 0 5px; }
.toolcard p { font-size: 13.5px; color: var(--text-2); margin: 0; }
.toolcard svg.ico { width: 20px; height: 20px; stroke: var(--text-2); fill: none; stroke-width: 1.7; margin-bottom: var(--sp-3); }

/* --------------------------------------------------------------
   20. HABER DETAY / MAKALE
   -------------------------------------------------------------- */
.article__head { margin-bottom: var(--sp-6); }
.article__meta { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); font-size: 13px; color: var(--text-2); margin-bottom: var(--sp-4); }
.article__cover { width: 100%; border-radius: var(--r-xl); margin-bottom: var(--sp-6); background: var(--surface-sunken); }

/* --------------------------------------------------------------
   21. ALT BILGI
   -------------------------------------------------------------- */
.site-footer { background: var(--navy-950); color: var(--navy-muted); margin-top: var(--sp-16); }
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: var(--sp-8); padding: var(--sp-12) 0 var(--sp-10); }
.footer-brand p { font-size: 13.5px; margin: var(--sp-4) 0 0; max-width: 34ch; }
.footer-col > p { font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #6A809B; margin: 0 0 var(--sp-3); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-col a { font-size: 13.5px; color: var(--navy-muted); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-5) 0; border-top: 1px solid var(--navy-line); font-size: 13px;
}
.social { display: flex; gap: var(--sp-2); }
.social a { width: 32px; height: 32px; display: grid; place-items: center; border-radius: var(--r-md); color: var(--navy-muted); }
.social a:hover { background: rgba(255,255,255,.08); color: #fff; }
.social svg { width: 16px; height: 16px; fill: currentColor; }
.disclaimer { padding: var(--sp-5) 0 var(--sp-8); font-size: 12px; line-height: 1.65; color: #5D7089; }
.footer-bottom { color: #6A809B; }

/* --------------------------------------------------------------
   22. MOBIL COZUM — ayri duzen, kucultulmus masaustu degil
   -------------------------------------------------------------- */
.drawer-toggle, .mobile-only { display: none; }

@media (max-width: 1080px) {
  .layout { grid-template-columns: minmax(0,1fr); }
  .snapshot { grid-template-columns: repeat(2, 1fr); }
  .trust { grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); }
  .footer-top { grid-template-columns: repeat(3, 1fr); }
  .hero__grid { grid-template-columns: minmax(0,1fr); }
  .hero__aside { border-left: 0; padding-left: 0; display: none; }
}

@media (max-width: 900px) {
  .mainnav, .header-actions .desktop-only { display: none; }
  .drawer-toggle { display: grid; }
  :root { --header-h: 60px; }

  .hero__inner { padding-top: var(--sp-8); }
  .hero h1 { max-width: none; }

  /* Serit kenardan kenara kayar. Negatif kenar bosluk yerine kabin
     dolgusu icteki bloklara tasinir: yatay tasma olusmaz. */
  .hero__inner { padding-inline: 0; }
  .hero__grid  { padding-inline: var(--sp-4); }

  .tickers {
    display: flex; gap: 0;
    padding-inline: var(--sp-4);
    overflow-x: auto; scroll-snap-type: x mandatory;
    /* Yapismali kaydirma dolguyu atlamasin: ilk oge kenara yapismaz */
    scroll-padding-inline-start: var(--sp-4);
    scrollbar-width: none; border-top: 1px solid var(--navy-line); margin-top: var(--sp-6);
    overscroll-behavior-x: contain;
  }
  .tickers::-webkit-scrollbar { display: none; }
  .tickers__item { flex: 0 0 44%; scroll-snap-align: start; padding: var(--sp-4) var(--sp-4) var(--sp-5) 0; }
  .tickers__item:not(:first-child) { padding-left: var(--sp-4); }
  .tickers__price { font-size: 19px; }

  .conv { grid-template-columns: minmax(0,1fr); gap: var(--sp-3); }
  .conv__swap { justify-self: center; margin: calc(var(--sp-1) * -1) 0; }
  .conv__amount { height: 56px; }

  .section { padding: var(--sp-8) 0; }
  .card__body, .card__head, .card__foot { padding-inline: var(--sp-4); }
  .watch a, .newsitem, .toollist a, table.mtable th:first-child, table.mtable td:first-child { padding-left: var(--sp-4); }
  table.mtable th:last-child, table.mtable td:last-child { padding-right: var(--sp-4); }
  .datasrc { padding-inline: var(--sp-4); }
}

@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .snapshot { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); padding-top: var(--sp-8); }
  .footer-brand { grid-column: 1 / -1; }
  .newsitem { grid-template-columns: 76px minmax(0,1fr); }
  .newsitem img { width: 76px; height: 58px; }
  .section__head { flex-direction: column; align-items: flex-start; gap: var(--sp-2); }
  .quote__price { font-size: 32px; }
  .tickers__item { flex: 0 0 56%; }
}

/* Mobil menu cekmecesi */
.drawer {
  position: fixed; inset: 0; z-index: 90;
  background: var(--bg); color: var(--text);
  transform: translateX(100%);
  transition: transform 220ms cubic-bezier(.4,0,.2,1);
  overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column;
}
.drawer[data-open="true"] { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); padding-inline: var(--sp-4); border-bottom: 1px solid var(--border); flex: none; }
.drawer__body { padding: var(--sp-4) var(--sp-4) var(--sp-12); }
.drawer__group + .drawer__group { margin-top: var(--sp-6); }
.drawer__group > p { font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); margin: 0 0 var(--sp-2); }
.drawer__group ul { list-style: none; margin: 0; padding: 0; }
.drawer__group li + li { border-top: 1px solid var(--border); }
.drawer__group a { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: var(--sp-2) 0; font-size: 15.5px; font-weight: 550; }
.drawer__group a .v { font-size: 14px; color: var(--text-2); font-variant-numeric: tabular-nums; }

.scrim { position: fixed; inset: 0; z-index: 80; background: rgba(8,17,29,.5); opacity: 0; visibility: hidden; transition: opacity var(--t-base), visibility var(--t-base); }
.scrim[data-open="true"] { opacity: 1; visibility: visible; }
body.is-locked { overflow: hidden; }

/* --------------------------------------------------------------
   23. YUKLEME / BOS / HATA DURUMLARI
   -------------------------------------------------------------- */
.skeleton { background: linear-gradient(90deg, var(--surface-sunken) 25%, var(--surface-muted) 37%, var(--surface-sunken) 63%); background-size: 400% 100%; animation: shimmer 1.3s ease-in-out infinite; border-radius: var(--r-sm); }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

.notice { display: flex; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5); border-radius: var(--r-lg); font-size: 14px; }
.notice--warn { background: var(--warning-soft); color: var(--warning); border: 1px solid color-mix(in srgb, var(--warning) 28%, transparent); }
.notice--info { background: var(--accent-soft); color: var(--text-2); border: 1px solid var(--border); }
.notice svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.8; flex: none; margin-top: 1px; }

.empty { text-align: center; padding: var(--sp-12) var(--sp-6); }
.empty h2 { font-size: 19px; }
.empty p { color: var(--text-2); max-width: 46ch; margin-inline: auto; }

.pagination { display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: center; padding: var(--sp-8) 0; }
.pagination a, .pagination span {
  min-width: 38px; height: 38px; display: grid; place-items: center; padding: 0 10px;
  border: 1px solid var(--border); border-radius: var(--r-md); font-size: 14px; font-weight: 600;
}
.pagination a:hover { border-color: var(--border-strong); background: var(--surface); }
.pagination [aria-current] { background: var(--accent-soft); border-color: var(--border-strong); }

/* --------------------------------------------------------------
   24. HAREKET TERCIHI
   -------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------
   25. YAZDIRMA
   -------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .promo, .drawer, .scrim, .gsearch { display: none !important; }
  body { background: #fff; color: #000; }
  .card { border-color: #ccc; box-shadow: none; }
}
