/* Ekonomi / Currency Exchange: /ekonomi/currency, /ekonomi/currency/{slug} ve panel. Renkler app.css değişkenlerinden. */
.cx-page, .cx-detail { padding: 1.5rem 0 3rem; }
.cx-eyebrow { margin: 0 0 .35rem; color: var(--poe-gold); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.cx-hero { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; padding: 1rem 0 1.25rem; margin-bottom: 1.1rem; border-bottom: 1px solid var(--poe-border-soft); }
.cx-hero h1 { margin: 0 0 .45rem; font-size: clamp(1.7rem, 3vw, 2.35rem); color: var(--poe-text); }
.cx-hero p { margin: 0; max-width: 64ch; color: var(--poe-muted); }
.cx-hero-meta { display: flex; gap: .6rem; margin: 0; }
.cx-hero-meta > div { padding: .55rem .85rem; border: 1px solid var(--poe-border); border-radius: .5rem; background: rgba(185,147,90,.07); white-space: nowrap; }
.cx-hero-meta dt { color: var(--poe-faint); font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.cx-hero-meta dd { margin: 0; color: var(--poe-gold-2); font-weight: 650; }
.cx-hero-meta abbr { text-decoration: none; color: var(--poe-muted); font-weight: 500; }

.cx-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.25rem; margin-bottom: 1rem; }
.cx-ref-toggle { display: inline-flex; align-items: center; gap: .25rem; padding: .25rem; border: 1px solid var(--poe-border); border-radius: 999px; background: rgba(237,231,223,.03); }
.cx-ref-toggle > span { padding: 0 .55rem 0 .65rem; color: var(--poe-faint); font-size: .82rem; }
.cx-ref-toggle a { padding: .35rem .8rem; border-radius: 999px; color: var(--poe-muted); font-size: .88rem; text-decoration: none; }
.cx-ref-toggle a:hover, .cx-ref-toggle a:focus-visible { color: var(--poe-text); }
.cx-ref-toggle a[aria-current="true"] { color: var(--poe-ink); background: linear-gradient(180deg, var(--poe-gold-2), var(--poe-gold)); font-weight: 700; }
.cx-cats { display: flex; flex-wrap: wrap; gap: .4rem; }
.cx-cats a { display: inline-flex; align-items: center; gap: .35rem; padding: .32rem .75rem; border: 1px solid var(--poe-border); border-radius: 999px; color: var(--poe-muted); font-size: .86rem; text-decoration: none; background: rgba(237,231,223,.03); }
.cx-cats a span { padding: 0 .4rem; border-radius: 999px; background: rgba(185,147,90,.16); color: var(--poe-gold-2); font-size: .74rem; }
.cx-cats a:hover, .cx-cats a:focus-visible { color: var(--poe-text); border-color: var(--poe-gold); }
.cx-cats a[aria-current="true"] { color: var(--poe-text); border-color: var(--poe-gold); background: rgba(185,147,90,.14); }

.cx-filters { display: grid; grid-template-columns: minmax(220px, 2fr) minmax(180px, 1fr) auto; gap: .8rem 1rem; align-items: end; padding: 1rem; margin-bottom: 1.25rem; border: 1px solid var(--poe-border); border-radius: .65rem; background: linear-gradient(180deg, rgba(33,28,35,.92), rgba(20,17,22,.92)); }
.cx-filters label { display: block; margin-bottom: .3rem; color: var(--poe-gold-2); font-size: .82rem; font-weight: 650; }
.cx-filters .form-control, .cx-filters .form-select { height: 42px; background-color: #121015; border-color: var(--poe-border); color: var(--poe-text); }
.cx-filter-actions { display: flex; gap: .5rem; }
.cx-filter-actions .gold-button, .cx-filter-actions .ghost-button { height: 42px; display: inline-flex; align-items: center; white-space: nowrap; }

.cx-results-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; margin-bottom: .7rem; }
.cx-results-head h2 { margin: 0; font-size: 1.1rem; color: var(--poe-text); }
.cx-results-head span { display: inline-flex; align-items: center; gap: .3rem; color: var(--poe-faint); font-size: .9rem; }

.cx-table-wrap { overflow-x: auto; border: 1px solid var(--poe-border); border-radius: .65rem; background: linear-gradient(180deg, rgba(33,28,35,.96), rgba(20,17,22,.96)); }
.cx-table { width: 100%; border-collapse: collapse; color: var(--poe-text); font-size: .94rem; }
.cx-table th, .cx-table td { padding: .6rem .8rem; border-bottom: 1px solid var(--poe-border-soft); vertical-align: middle; }
.cx-table thead th { position: sticky; top: 0; z-index: 1; background: #1b171d; color: var(--poe-gold-2); font-size: .78rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.cx-table tbody tr:last-child > * { border-bottom: 0; }
.cx-table tbody tr:hover > * { background: rgba(185,147,90,.05); }
.cx-table tbody th { font-weight: 500; text-align: left; }
.cx-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cx-col-rank { width: 2.5rem; color: var(--poe-faint); font-variant-numeric: tabular-nums; }
.cx-item { display: inline-flex; align-items: center; gap: .7rem; color: var(--poe-text); text-decoration: none; min-width: 0; }
.cx-item:hover strong, .cx-item:focus-visible strong { color: var(--poe-gold-2); }
.cx-item > span { display: flex; flex-direction: column; min-width: 0; }
.cx-item strong { font-weight: 650; line-height: 1.25; }
.cx-item small { color: var(--poe-faint); font-size: .78rem; }
.cx-icon { flex: 0 0 auto; object-fit: contain; border-radius: .4rem; background: radial-gradient(circle at 50% 40%, rgba(185,147,90,.16), rgba(0,0,0,0) 70%); }
.cx-icon-fallback { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--poe-border); color: var(--poe-gold-2); font-size: .72rem; font-weight: 700; background: #1b171d; }
.cx-value strong { font-size: 1.02rem; color: var(--poe-gold-2); }
.cx-unit { color: var(--poe-faint); font-size: .8rem; }
.cx-change { display: inline-flex; align-items: baseline; gap: .25rem; padding: .1rem .45rem; border-radius: .35rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.cx-change.is-up { color: #9ad18b; background: rgba(154,209,139,.1); }
.cx-change.is-down { color: #e58b7f; background: rgba(229,139,127,.1); }
.cx-change.is-flat { color: var(--poe-faint); }
.cx-change small { color: inherit; opacity: .75; font-weight: 500; }
.cx-spark { display: block; }
.cx-spark.is-up polyline { stroke: #9ad18b; }
.cx-spark.is-down polyline { stroke: #e58b7f; }
.cx-spark-empty { color: var(--poe-faint); }
.cx-col-spark { width: 128px; }

.cx-pager { display: flex; align-items: center; justify-content: center; gap: .75rem; margin: 1.25rem 0; color: var(--poe-muted); }
.cx-empty { padding: 2.5rem 1.5rem; text-align: center; border: 1px dashed var(--poe-border); border-radius: .65rem; color: var(--poe-muted); background: rgba(237,231,223,.02); }
.cx-empty h2 { margin: 0 0 .5rem; font-size: 1.2rem; color: var(--poe-text); }
.cx-empty p { margin: 0 auto 1rem; max-width: 52ch; }
.cx-notes { margin-top: 1.75rem; padding: 1rem 1.2rem; border: 1px solid var(--poe-border-soft); border-radius: .65rem; color: var(--poe-muted); font-size: .9rem; }
.cx-notes h2 { margin: 0 0 .5rem; font-size: 1rem; color: var(--poe-text); }
.cx-notes ul { margin: 0; padding-left: 1.1rem; }
.cx-notes li + li { margin-top: .3rem; }

/* Detay */
.cx-pair-head { padding: .75rem 0 1.1rem; margin-bottom: 1.1rem; border-bottom: 1px solid var(--poe-border-soft); }
.cx-pair-title { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin: 0 0 .7rem; font-size: clamp(1.45rem, 2.6vw, 2rem); color: var(--poe-text); }
.cx-pair-side { display: inline-flex; align-items: center; gap: .6rem; }
.cx-pair-swap { display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; border: 1px solid var(--poe-border); border-radius: 999px; color: var(--poe-gold-2); font-size: 1.2rem; text-decoration: none; background: rgba(185,147,90,.07); transition: transform .2s ease, border-color .2s ease; }
.cx-pair-swap:hover, .cx-pair-swap:focus-visible { border-color: var(--poe-gold); transform: rotate(180deg); color: var(--poe-text); }
.cx-pair-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem .6rem; margin: 0 0 .25rem; color: var(--poe-muted); font-size: 1.05rem; }
.cx-pair-price > strong { color: var(--poe-gold-2); font-size: 1.6rem; }
.cx-pair-sub { margin: 0 0 .9rem; color: var(--poe-faint); font-size: .86rem; }
.cx-quote-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.cx-quote-nav > span { margin-right: .25rem; color: var(--poe-faint); font-size: .84rem; }
.cx-quote-nav a { display: inline-flex; align-items: center; gap: .4rem; padding: .28rem .7rem .28rem .35rem; border: 1px solid var(--poe-border); border-radius: 999px; color: var(--poe-muted); font-size: .86rem; text-decoration: none; background: rgba(237,231,223,.03); }
.cx-quote-nav a:hover, .cx-quote-nav a:focus-visible { color: var(--poe-text); border-color: var(--poe-gold); }
.cx-quote-nav a[aria-current="true"] { color: var(--poe-text); border-color: var(--poe-gold); background: rgba(185,147,90,.16); }

.cx-chart-card { position: relative; padding: .9rem 1rem .75rem; margin-bottom: 1.1rem; border: 1px solid var(--poe-border); border-radius: .7rem; background: linear-gradient(180deg, #17141a, #121015); }
.cx-chart-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin-bottom: .4rem; }
.cx-chart-legend { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; color: var(--poe-muted); font-size: .86rem; }
.cx-legend-line { display: inline-block; width: 18px; height: 3px; border-radius: 2px; background: var(--poe-gold-2); }
.cx-legend-bar { display: inline-block; width: 10px; height: 12px; margin-left: .5rem; border-radius: 2px; background: var(--poe-accent); }
.cx-chart-mode { margin-left: .5rem; padding: .05rem .5rem; border: 1px solid var(--poe-border); border-radius: 999px; color: var(--poe-gold-2); font-size: .76rem; font-weight: 650; }
.cx-chart-buttons { display: flex; gap: .45rem; }
.cx-chart-buttons .ghost-button { height: 34px; padding: 0 .8rem; display: inline-flex; align-items: center; font-size: .85rem; }
.cx-chart { width: 100%; height: 480px; }
.cx-chart-noscript { padding: 2rem 0; color: var(--poe-muted); text-align: center; }
.cx-chart-help { margin: .35rem 0 0; color: var(--poe-faint); font-size: .8rem; }
.cx-chart-card.is-expanded { position: fixed; inset: 0; z-index: 2000; margin: 0; border-radius: 0; display: flex; flex-direction: column; padding: 1rem 1.25rem; }
.cx-chart-card.is-expanded .cx-chart { flex: 1; height: auto; min-height: 0; }
.cx-chart-card:fullscreen { display: flex; flex-direction: column; padding: 1rem 1.25rem; background: #121015; }
.cx-chart-card:fullscreen .cx-chart { flex: 1; height: auto; }
body.cx-no-scroll { overflow: hidden; }

.cx-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .75rem; margin-bottom: 1.25rem; }
.cx-stats > div { display: flex; flex-direction: column; gap: .15rem; padding: .8rem .95rem; border: 1px solid var(--poe-border); border-radius: .6rem; background: linear-gradient(180deg, rgba(33,28,35,.92), rgba(20,17,22,.92)); }
.cx-stats span { color: var(--poe-faint); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.cx-stats strong { color: var(--poe-gold-2); font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.cx-stats small { color: var(--poe-muted); font-size: .8rem; }
.cx-days { margin-bottom: 1.25rem; padding: 0; border: 0; background: none; }
.cx-days h2 { margin: 0 0 .6rem; font-size: 1.1rem; color: var(--poe-text); }
.cx-table-compact th, .cx-table-compact td { padding: .45rem .75rem; }
.cx-back { margin: 1rem 0 0; }

/* Panel */
.admin-actions form { display: inline-flex; margin: 0; }
.cx-admin-status { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.cx-admin-status .form-panel { margin: 0; }
.cx-admin-dl { display: grid; grid-template-columns: max-content 1fr; gap: .3rem .9rem; margin: 0; font-size: .9rem; }
.cx-admin-dl dt { color: var(--poe-faint); font-weight: 600; }
.cx-admin-dl dd { margin: 0; color: var(--poe-text); overflow-wrap: anywhere; }
.cx-admin-badge { display: inline-block; margin: 0 0 .6rem; padding: .15rem .6rem; border-radius: 999px; font-size: .8rem; font-weight: 700; border: 1px solid var(--poe-border); }
.cx-admin-badge.is-ok { color: #9ad18b; border-color: rgba(154,209,139,.4); background: rgba(154,209,139,.08); }
.cx-admin-badge.is-warn { color: #e8c37a; border-color: rgba(232,195,122,.4); background: rgba(232,195,122,.08); }
.cx-admin-badge.is-error { color: #e58b7f; border-color: rgba(229,139,127,.4); background: rgba(229,139,127,.08); }
.cx-admin-badge.is-idle { color: var(--poe-faint); }
.cx-admin-table .cx-admin-meta code { color: var(--poe-gold-2); font-size: .82rem; }
.cx-admin-table .cx-admin-meta small, .cx-admin-table td small { display: block; color: var(--poe-faint); font-size: .74rem; }
.cx-admin-table td:nth-child(2) .form-control, .cx-admin-table td:nth-child(3) .form-control { min-width: 11rem; }
.cx-admin-table td:nth-child(4) .form-control { min-width: 9rem; }
.cx-admin-table td:nth-child(6) .form-control { min-width: 14rem; }
.cx-admin-table tr.cx-unnamed td:first-child { box-shadow: inset 3px 0 0 var(--poe-gold); }
.cx-admin-log { margin-top: 1.5rem; }

@media (max-width: 991px) {
  .cx-hero { flex-direction: column; align-items: flex-start; }
  .cx-hero-meta { flex-wrap: wrap; }
  .cx-filters { grid-template-columns: 1fr 1fr; }
  .cx-filter-search { grid-column: 1 / -1; }
  .cx-col-vol, .cx-col-7d { display: none; }
  .cx-admin-status { grid-template-columns: 1fr; }
  .cx-chart { height: 420px; }
}
@media (max-width: 575px) {
  .cx-filters { grid-template-columns: 1fr; }
  .cx-col-vol24, .cx-col-spark, .cx-col-rank { display: none; }
  .cx-table th, .cx-table td { padding: .5rem .6rem; }
  .cx-chart { height: 360px; }
  .cx-chart-card { padding: .75rem .6rem .6rem; }
  .cx-pair-title { font-size: 1.3rem; }
}

.cx-admin-hint { margin: .6rem 0 0; font-size: .82rem; color: var(--muted, #9aa3b2); line-height: 1.45; }
.cx-disclaimer { margin: 1.25rem 0 0; font-size: .8rem; color: var(--muted, #9aa3b2); }

/* Kategori yan menüsü + tablo (PTD-24) */
.cx-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.cx-main { min-width: 0; }
.cx-main > .cx-cats { margin-bottom: .75rem; }
.cx-main > .cx-subcats { margin: -.2rem 0 .85rem; padding-left: .35rem; border-left: 2px solid var(--poe-border); }
.cx-main > .cx-subcats a { font-size: .8rem; padding: .22rem .6rem; }
.cx-side { position: sticky; top: 5rem; padding: .85rem .6rem 1rem; border: 1px solid var(--poe-border); border-radius: .65rem; background: linear-gradient(180deg, rgba(33,28,35,.92), rgba(20,17,22,.92)); max-height: calc(100vh - 6.5rem); overflow-y: auto; }
.cx-side ul { list-style: none; margin: 0; padding: 0; }
.cx-side-title { margin: 1rem .6rem .35rem; color: var(--poe-faint); font-size: .72rem; font-weight: 700; letter-spacing: .1em; }
.cx-side a { display: flex; align-items: center; gap: .6rem; padding: .38rem .6rem; border-radius: .45rem; color: var(--poe-muted); font-size: .92rem; text-decoration: none; }
.cx-side a span:not(.cx-cat-icon) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-side a em { font-style: normal; color: var(--poe-faint); font-size: .76rem; }
.cx-side a:hover, .cx-side a:focus-visible { color: var(--poe-text); background: rgba(237,231,223,.05); }
.cx-side a[aria-current="page"] { color: var(--poe-text); background: rgba(185,147,90,.16); box-shadow: inset 2px 0 0 var(--poe-gold); }
.cx-cat-icon { width: 24px; height: 24px; flex: none; object-fit: contain; }
.cx-cat-icon-fallback { display: inline-grid; place-items: center; border-radius: 50%; background: rgba(185,147,90,.16); color: var(--poe-gold-2); font-size: .75rem; font-weight: 700; }
.cx-filters-4 { grid-template-columns: minmax(200px, 2fr) minmax(150px, 1fr) minmax(200px, 1.3fr) auto; }
.cx-sort { color: inherit; text-decoration: none; }
.cx-sort:hover, .cx-sort:focus-visible { color: var(--poe-gold-2); }
th[aria-sort="ascending"] .cx-sort::after { content: " ▲"; color: var(--poe-gold-2); font-size: .7em; }
th[aria-sort="descending"] .cx-sort::after { content: " ▼"; color: var(--poe-gold-2); font-size: .7em; }
.cx-pair-value { display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; }
.cx-pair-value .cx-icon { flex: none; }
.cx-swap { color: var(--poe-faint); }
.cx-one { color: var(--poe-muted); }
.cx-spark-cell { display: inline-flex; align-items: center; gap: .6rem; }
.cx-pop { display: inline-flex; align-items: center; gap: .4rem; color: var(--poe-muted); white-space: nowrap; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 991px) {
  .cx-layout { grid-template-columns: 1fr; }
  .cx-side { display: none; }
  .cx-main > .cx-cats { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .35rem; scrollbar-width: thin; }
  .cx-main > .cx-cats a { flex: none; }
  .cx-filters-4 { grid-template-columns: 1fr 1fr; }
  .cx-col-pop { display: none; }
}
@media (max-width: 575px) {
  .cx-col-hourvol { display: none; }
}

/* Masaüstünde kategori yan menüde; üstteki kategori çipleri yalnızca mobilde (kaydırılabilir bağlantılar) */
@media (min-width: 992px) { .cx-cats-mobile { display: none; } }
