/* ---------- Ekonomi ---------- */
.ec-root svg { width: 16px; height: 16px; flex: none; }
.ec-hero { position: relative; overflow: hidden; isolation: isolate; background: #06070a; padding-top: 70px; }
.ec-hero-in { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 22px; }
.ec-hero-in > * { animation: rise .8s cubic-bezier(.2,.8,.2,1) both; }
.ec-title { margin: 12px 0 10px; font: 700 clamp(38px, 5vw, 64px)/1 var(--f-display); background: linear-gradient(180deg, #fff3d6, #d9b26f 62%, #8f7140); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 8px 30px rgba(0,0,0,.9)); }
.ec-sub { max-width: 560px; margin: 0; color: #b6aa94; font-size: 16px; line-height: 1.6; }
.ec-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 150px)); gap: 8px; }
.ec-stat { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: rgba(8,7,8,.78); border: 1px solid rgba(217,178,111,.22); backdrop-filter: blur(6px); }
.ec-stat > span { width: 34px; height: 34px; flex: none; display: grid; place-items: center; color: var(--ember2); }
.ec-stat > span img { width: 34px; height: 34px; object-fit: contain; filter: drop-shadow(0 0 8px rgba(226,189,120,.4)); }
.ec-stat > span svg { width: 22px; height: 22px; }
.ec-stat div { display: grid; min-width: 0; }
.ec-stat small { font: 700 9.5px var(--f-head); letter-spacing: .18em; text-transform: uppercase; color: #7d7262; white-space: nowrap; }
.ec-stat b { font: 700 20px/1.15 var(--f-display); color: #fff3d6; }
.ec-stat em { font-style: normal; font-size: 11.5px; color: #8b7f6b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ec-bar { display: flex; gap: 10px; padding-bottom: 20px; }
.ec-search { flex: 1; display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 16px; background: rgba(6,6,8,.82); border: 1px solid rgba(217,178,111,.25); backdrop-filter: blur(6px); transition: border-color .2s, box-shadow .2s; }
.ec-search:focus-within { border-color: rgba(243,220,170,.6); box-shadow: 0 0 26px rgba(200,29,51,.2); }
.ec-search svg { width: 18px; height: 18px; color: #8b7f6b; }
.ec-search input { flex: 1; min-width: 0; color: var(--text); background: none; border: 0; outline: none; font: 16px var(--f-body); }
.ec-league { display: grid; align-content: center; gap: 2px; min-width: 240px; padding: 6px 14px; background: rgba(6,6,8,.82); border: 1px solid rgba(217,178,111,.25); }
.ec-league span, .ec-unit span { font: 700 9.5px var(--f-head); letter-spacing: .2em; text-transform: uppercase; color: #7d7262; }
.ec-league select, .ec-unit select { padding: 0; color: #f3e2bb; background: none; border: 0; outline: none; font: 600 15px var(--f-body); cursor: pointer; }
.ec-league select option, .ec-unit select option { background: #0d0b0b; }

.ec-sec { padding-top: 20px; overflow-x: clip; }
.ec-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); align-items: start; background: linear-gradient(180deg, #110e0d, #0a0909); border: 1px solid rgba(217,178,111,.16); }
.ec-side { position: sticky; top: var(--hdr); align-self: start; padding: 14px 0; border-right: 1px solid rgba(217,178,111,.12); max-height: calc(100vh - var(--hdr)); overflow-y: auto; scrollbar-width: thin; }
.ec-side h3 { margin: 0 0 6px; padding: 0 18px; font: 700 10.5px var(--f-head); letter-spacing: .24em; text-transform: uppercase; color: #7d7262; }
.ec-cat { position: relative; display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 7px 16px 7px 14px; color: #c9bba1; transition: background .2s, color .2s; }
.ec-cat:hover { color: #fff3d6; background: rgba(217,178,111,.05); }
.ec-cat.on { color: #fff3d6; background: linear-gradient(90deg, rgba(200,29,51,.22), transparent); }
.ec-cat.on::before { content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; background: var(--ember2); box-shadow: 0 0 10px var(--ember2); }
.ec-cic { width: 34px; height: 34px; display: grid; place-items: center; }
.ec-cic img { max-width: 32px; max-height: 32px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,.8)); }
.ec-cat b { font: 600 14.5px var(--f-body); }
.ec-cat em { font-style: normal; font-size: 11.5px; color: #6f6656; }
.ec-main { min-width: 0; padding: 20px 24px 28px; }
.ec-crumbs { color: #7d7262; font-size: 13px; }
.ec-crumbs a { color: #a99d88; }
.ec-h2 { margin: 6px 0 16px; font: 700 32px var(--f-display); color: #f3e2bb; }
.ec-tools { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.ec-filter { flex: 1 1 260px; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; background: rgba(0,0,0,.4); border: 1px solid rgba(217,178,111,.18); }
.ec-filter svg { color: #6f6656; }
.ec-filter input { flex: 1; min-width: 0; color: var(--text); background: none; border: 0; outline: none; font: 15px var(--f-body); }
.ec-unit { display: grid; gap: 2px; min-width: 200px; padding: 5px 12px; background: rgba(0,0,0,.4); border: 1px solid rgba(217,178,111,.18); }
.ec-tablewrap { overflow-x: auto; }
.ec-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.ec-table th { position: sticky; top: 0; padding: 10px; text-align: left; font: 700 10.5px var(--f-head); letter-spacing: .18em; text-transform: uppercase; color: #8b7f6b; background: #0e0c0b; border-bottom: 1px solid rgba(217,178,111,.2); }
.ec-table th.r, .ec-table td.ec-val, .ec-table td.ec-vol { text-align: right; }
.ec-table tbody tr { cursor: pointer; border-bottom: 1px solid rgba(255,255,255,.04); transition: background .15s; animation: rise .4s cubic-bezier(.2,.8,.2,1) both; }
.ec-table tbody tr:hover { background: linear-gradient(90deg, rgba(200,29,51,.12), rgba(217,178,111,.04)); }
.ec-table td { padding: 7px 10px; vertical-align: middle; }
.ec-name { display: flex; align-items: center; gap: 12px; min-width: 240px; }
.ec-ic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; background: radial-gradient(circle, #1d1612, #070606); border: 1px solid rgba(217,178,111,.15); }
.ec-ic img { max-width: 36px; max-height: 36px; object-fit: contain; }
.ec-name b { font: 600 15px var(--f-body); color: #efe3c8; }
.ec-thin { font-style: normal; font-size: 10.5px; color: #8b7f6b; border: 1px solid rgba(217,178,111,.18); padding: 1px 6px; }
.ec-money { display: inline-flex; align-items: center; gap: 6px; justify-content: flex-end; font: 700 15px var(--f-body); color: #f3e2bb; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ec-money img { width: 22px; height: 22px; object-fit: contain; }
.ec-trend { white-space: nowrap; }
.ec-spark { width: 96px; height: 30px; vertical-align: middle; margin-right: 10px; }
.ec-spark .l { fill: none; stroke-width: 1.8; }
.ec-spark.up .l { stroke: #4fd18b; } .ec-spark.up .a { fill: rgba(79,209,139,.14); }
.ec-spark.down .l { stroke: #ff6b6b; } .ec-spark.down .a { fill: rgba(255,107,107,.12); }
.ec-nospark { display: inline-block; width: 96px; margin-right: 10px; color: #5f574b; text-align: center; }
.ec-chg { display: inline-block; min-width: 54px; font: 700 14px var(--f-body); color: #8b7f6b; font-variant-numeric: tabular-nums; }
.ec-chg.up { color: #4fd18b; } .ec-chg.down { color: #ff6b6b; }
.ec-vol .ec-money { font-weight: 600; color: #c9bba1; }
.ec-vol .ec-money img { width: 18px; height: 18px; }
.ec-empty, .ec-wait { display: grid; justify-items: center; gap: 8px; padding: 50px 20px; text-align: center; color: #8b7f6b; border: 1px dashed rgba(217,178,111,.2); }
.ec-empty svg { width: 30px; height: 30px; color: var(--ember); }
.ec-empty b, .ec-wait b { font: 700 19px var(--f-display); color: #e8d9bb; }
.ec-empty p, .ec-wait p { margin: 0; max-width: 520px; }
.ec-src { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; margin-bottom: 40px; color: #6f6656; font-size: 12.5px; line-height: 1.5; }
.ec-src svg { width: 16px; height: 16px; margin-top: 1px; color: #8b7f6b; }

/* ayrıntı penceresi */
.ec-modal { width: min(900px, calc(100vw - 32px)); }
.ec-dh { display: flex; align-items: center; gap: 12px; }
.ec-detail { display: grid; gap: 14px; padding: 16px 22px 22px; }
.ec-dstats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.ec-dstats > div { display: grid; gap: 3px; padding: 10px 12px; background: rgba(0,0,0,.35); border: 1px solid rgba(217,178,111,.14); }
.ec-dstats small { font: 700 9.5px var(--f-head); letter-spacing: .16em; text-transform: uppercase; color: #7d7262; }
.ec-dstats b { font: 700 16px var(--f-body); color: #f3e2bb; }
.ec-dstats .ec-money { justify-content: flex-start; font-size: 16px; }
.ec-conv { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 13px; }
.ec-conv .ec-money { font-size: 13px; }
.ec-chart { position: relative; padding: 8px 6px 0; background: radial-gradient(120% 80% at 50% 0%, rgba(200,29,51,.08), transparent 60%), #0b0909; border: 1px solid rgba(217,178,111,.16); }
.ec-chart svg { display: block; width: 100%; height: 280px; }
.ec-chart .grid line { stroke: rgba(255,255,255,.06); stroke-dasharray: 3 4; }
.ec-chart .grid text, .ec-chart .dx { fill: #6f6656; font: 600 11px var(--f-body); text-anchor: end; }
.ec-chart .dx { text-anchor: middle; }
.ec-chart .vol rect { fill: rgba(200,29,51,.35); }
.ec-chart .area { fill: url(#ecg); }
.ec-chart .line { fill: none; stroke: #e2bd78; stroke-width: 2; filter: drop-shadow(0 0 6px rgba(226,189,120,.5)); vector-effect: non-scaling-stroke; }
.ec-chart .cross { stroke: rgba(243,220,170,.4); stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.ec-chart .dot { fill: #fff3d6; stroke: #c81d33; stroke-width: 2; }
.ec-tip { position: absolute; top: 10px; width: 150px; padding: 8px 10px; pointer-events: none; background: rgba(8,7,8,.95); border: 1px solid rgba(217,178,111,.4); box-shadow: 0 10px 24px rgba(0,0,0,.6); display: grid; gap: 2px; }
.ec-tip[hidden] { display: none; }
.ec-tip small { color: #8b7f6b; font-size: 11.5px; }
.ec-tip em { font-style: normal; font-size: 12px; color: #a99d88; }
.ec-tip .ec-money { justify-content: flex-start; }
.ec-note, .ec-err { margin: 0; color: #6f6656; font-size: 12.5px; }

@media (max-width: 1100px) {
  .ec-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
}
@media (max-width: 860px) {
  .ec-layout { grid-template-columns: 1fr; }
  .ec-side { position: static; max-height: none; display: flex; gap: 4px; overflow-x: auto; padding: 8px; border-right: 0; border-bottom: 1px solid rgba(217,178,111,.12); }
  .ec-side h3 { display: none; }
  .ec-cat { flex: none; grid-template-columns: 26px auto auto; padding: 6px 10px; }
  .ec-cic { width: 26px; height: 26px; } .ec-cic img { max-width: 24px; max-height: 24px; }
  .ec-cat b { font-size: 13px; white-space: nowrap; }
  .ec-cat.on::before { left: 6px; right: 6px; top: auto; bottom: 0; width: auto; height: 2px; }
  .ec-main { padding: 14px; }
  .ec-bar { flex-direction: column; }
  .ec-league { min-width: 0; }
  .ec-dstats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ec-table th:nth-child(4), .ec-table td.ec-vol { display: none; }
  .ec-name { min-width: 0; }
  .ec-spark { width: 64px; margin-right: 6px; }
}
