/* =====================================================================
   NEXUS FX — arayüz stilleri
   RTL (Arapça) için mantıksal CSS özellikleri kullanılır.
   ===================================================================== */
:root {
  --bg0: #05070a;
  --bg1: #0a0e14;
  --bg2: #10151f;
  --bg3: #161d2b;
  --bg4: #1c2436;
  --line: #212a3a;
  --line2: #181f2c;
  --hi: #f1f4f9;
  --mid: #8d97a8;
  --low: #5d6879;
  --up: #2fd48a;
  --up-d: #0f3624;
  --dn: #ff5468;
  --dn-d: #3c151f;
  --amber: #f0ac3f;
  --amber-d: #3a2b10;
  --accent: #4da6ff;
  --accent-2: #2f6fe4;
  --accent-d: #0f2340;
  --blue: #5b8cff;
  --violet: #a78bfa;
  --fd: 'Space Grotesk', 'Inter', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --fm: 'Inter', 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --r: 9px;
  --top-h: 56px;
  --ticker-h: 30px;
  --bn-h: 62px;
  /* iPhone çentik / Dynamic Island / ana ekran çubuğu için güvenli alanlar */
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  color-scheme: dark;
}
:root[lang='ar'] {
  --fd: 'IBM Plex Sans Arabic', 'Inter', system-ui, sans-serif;
  --fm: 'IBM Plex Sans Arabic', 'Inter', system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  min-height: 100%;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  background: var(--bg0);
  color: var(--hi);
  font-family: var(--fm);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(77, 166, 255, 0.06), transparent),
    radial-gradient(ellipse 700px 400px at 100% 0%, rgba(91, 140, 255, 0.04), transparent);
  background-attachment: fixed;
}
/* iPhone'da ana ekrandan açıldığında içerik saat/pil alanının altına kaymasın:
   o şerit sabit bir zeminle kapatılır (diğer cihazlarda yüksekliği 0'dır) */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--safe-t);
  background: var(--bg1);
  z-index: 1700;
  pointer-events: none;
}
[hidden] {
  display: none !important;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 3px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::selection {
  background: rgba(77, 166, 255, 0.3);
}

/* ---------- yardımcılar ---------- */
.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: isolate;
}
.muted {
  color: var(--mid);
}
.low {
  color: var(--low);
}
.small {
  font-size: 12px;
}
.up {
  color: var(--up);
}
.dn {
  color: var(--dn);
}
.r {
  text-align: end;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--bg3);
  color: var(--mid);
  white-space: nowrap;
}
.badge.ai {
  background: rgba(167, 139, 250, 0.14);
  color: var(--violet);
}
.badge.tech {
  background: var(--accent-d);
  color: var(--accent);
}
.badge.up {
  background: var(--up-d);
  color: var(--up);
}
.badge.dn {
  background: var(--dn-d);
  color: var(--dn);
}
.badge.amber {
  background: var(--amber-d);
  color: var(--amber);
}
.badge.muted {
  background: var(--bg3);
  color: var(--mid);
}
.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  display: inline-block;
}
.pulse.on {
  animation: pulse 1.6s ease-in-out infinite;
}
.pulse.up {
  background: var(--up);
}
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(77, 166, 255, 0.55);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(77, 166, 255, 0);
  }
}
.spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
  display: inline-block;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.skeleton {
  background: linear-gradient(90deg, var(--bg2), var(--bg3), var(--bg2));
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 6px;
  min-height: 14px;
}
@keyframes shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}
.flash-up {
  animation: flashUp 0.9s ease;
}
.flash-dn {
  animation: flashDn 0.9s ease;
}
@keyframes flashUp {
  0% {
    background-color: rgba(47, 212, 138, 0.28);
  }
  100% {
    background-color: transparent;
  }
}
@keyframes flashDn {
  0% {
    background-color: rgba(255, 84, 104, 0.28);
  }
  100% {
    background-color: transparent;
  }
}
.empty {
  color: var(--low);
  font-size: 13px;
  padding: 22px 8px;
  text-align: center;
  line-height: 1.6;
}

/* ---------- açılış ---------- */
.splash {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
  justify-content: center;
  background: var(--bg0);
  z-index: 2000;
  transition: opacity 0.3s;
}
.splash.out {
  opacity: 0;
  pointer-events: none;
}

/* ---------- marka ---------- */
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  color: var(--hi);
  text-decoration: none !important;
}
.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-mark svg {
  width: 15px;
  height: 15px;
}
.brand-mark.lg {
  width: 56px;
  height: 56px;
  border-radius: 15px;
}
.brand-mark.lg svg {
  width: 32px;
  height: 32px;
}
.brand-name {
  font-family: 'Space Grotesk', var(--fd);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  direction: ltr;
}
.brand-accent {
  color: var(--accent);
}

/* ---------- düğmeler ve formlar ---------- */
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04101f;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 16px;
  border-radius: var(--r);
  transition:
    filter 0.15s,
    transform 0.05s;
  white-space: nowrap;
}
.btn-primary:hover:not(:disabled) {
  filter: brightness(1.08);
}
.btn-primary:active:not(:disabled) {
  transform: translateY(1px);
}
.btn-primary.block {
  width: 100%;
  padding: 12px;
  font-size: 14px;
}
.btn-primary.sm,
.btn-ghost.sm {
  padding: 6px 12px;
  font-size: 12px;
}
.btn-ghost {
  background: var(--bg3);
  color: var(--hi);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: var(--r);
  white-space: nowrap;
  transition: background 0.15s;
}
.btn-ghost:hover:not(:disabled) {
  background: var(--bg4);
}
.btn-ghost.danger {
  color: var(--dn);
}
.link-btn {
  color: var(--accent);
  font-size: 12.5px;
  padding: 6px 0;
}
.link-btn:hover {
  text-decoration: underline;
}
.input,
.field input,
.field select {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--hi);
  font-size: 14px;
}
.input.sm {
  padding: 7px 10px;
  font-size: 13px;
}
.input:focus,
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
}
select.input,
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--mid) 50%), linear-gradient(135deg, var(--mid) 50%, transparent 50%);
  background-position:
    calc(100% - 16px) 50%,
    calc(100% - 11px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-inline-end: 30px;
}
[dir='rtl'] select.input,
[dir='rtl'] .field select {
  background-position:
    16px 50%,
    11px 50%;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  color: var(--low);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.field > span:first-child {
  padding-inline-start: 2px;
}
.field input,
.field select {
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
}
.hint {
  font-size: 11.5px;
  color: var(--low);
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
}
.form-err {
  color: var(--dn);
  font-size: 12.5px;
  min-height: 18px;
}
.form-ok {
  color: var(--up);
  font-size: 12.5px;
}
.seg {
  display: inline-flex;
  gap: 3px;
  background: var(--bg2);
  border: 1px solid var(--line2);
  border-radius: 9px;
  padding: 3px;
  flex-wrap: wrap;
}
.seg-btn {
  padding: 7px 13px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--mid);
  border-radius: 7px;
  white-space: nowrap;
  transition:
    background 0.15s,
    color 0.15s;
}
.seg-btn:hover {
  color: var(--hi);
}
.seg-btn.on {
  background: var(--bg4);
  color: var(--hi);
}
.seg.sm .seg-btn {
  padding: 5px 10px;
  font-size: 11.5px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--bg2);
  border: 1px solid var(--line);
  color: var(--mid);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chip.on {
  background: var(--accent-d);
  color: var(--accent);
  border-color: transparent;
}
.switch {
  position: relative;
  width: 40px;
  height: 22px;
  display: inline-block;
  flex-shrink: 0;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.switch span {
  position: absolute;
  inset: 0;
  background: var(--bg4);
  border-radius: 999px;
  transition: 0.2s;
  cursor: pointer;
}
.switch span::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  inset-inline-start: 3px;
  top: 3px;
  background: var(--mid);
  border-radius: 50%;
  transition: 0.2s;
}
.switch input:checked + span {
  background: var(--accent-2);
}
.switch input:checked + span::before {
  background: #fff;
  transform: translateX(18px);
}
[dir='rtl'] .switch input:checked + span::before {
  transform: translateX(-18px);
}

/* ---------- bildirimler ---------- */
.toast-stack {
  position: fixed;
  top: calc(70px + var(--safe-t));
  inset-inline-end: calc(16px + var(--safe-r));
  z-index: 1500;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(360px, calc(100vw - 32px));
}
.toast {
  background: var(--bg3);
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--accent);
  border-radius: 9px;
  padding: 12px 14px;
  font-size: 12.5px;
  line-height: 1.5;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  animation: toastIn 0.25s ease;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.toast .t-body {
  flex: 1;
  min-width: 0;
}
.toast b {
  display: block;
  margin-bottom: 2px;
  color: var(--hi);
}
.toast .t-x {
  color: var(--low);
  font-size: 15px;
  line-height: 1;
  padding: 2px;
}
.toast .t-act {
  margin-top: 6px;
}
.toast.up {
  border-inline-start-color: var(--up);
}
.toast.dn {
  border-inline-start-color: var(--dn);
}
.toast.amber {
  border-inline-start-color: var(--amber);
}
.toast.out {
  opacity: 0;
  transition: opacity 0.3s;
}
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.offline-bar {
  position: fixed;
  top: var(--safe-t);
  inset-inline: 0;
  z-index: 1600;
  background: var(--amber-d);
  color: var(--amber);
  text-align: center;
  font-size: 12.5px;
  padding: 6px 12px;
}

/* ---------- giriş ekranı ---------- */
.auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(64px + var(--safe-t)) calc(20px + var(--safe-r)) calc(32px + var(--safe-b)) calc(20px + var(--safe-l));
  position: relative;
}
.auth-lang {
  position: absolute;
  top: calc(16px + var(--safe-t));
  inset-inline-end: calc(16px + var(--safe-r));
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.auth-lang button {
  padding: 5px 9px;
  border-radius: 7px;
  font-size: 12px;
  color: var(--mid);
  background: var(--bg2);
  border: 1px solid var(--line2);
}
.auth-lang button.on {
  color: var(--hi);
  border-color: var(--accent);
}
.auth-grid {
  width: 100%;
  max-width: 940px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.auth-pitch h1 {
  font-family: var(--fd);
  font-size: 34px;
  line-height: 1.15;
  margin: 26px 0 12px;
  letter-spacing: -0.02em;
}
.auth-lead {
  color: var(--mid);
  font-size: 15px;
  margin-bottom: 26px;
  max-width: 440px;
}
.auth-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.auth-features li {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 14px;
}
.feat-ic {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent-d);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feat-ic svg {
  width: 16px;
  height: 16px;
}
.auth-card {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.auth-pane {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.auth-pane h2 {
  font-family: var(--fd);
  font-size: 20px;
}
.auth-pane .seg {
  width: 100%;
}
.auth-pane .seg .seg-btn {
  flex: 1;
  padding: 9px;
}
.pw-wrap {
  position: relative;
  display: block;
}
.pw-wrap input {
  padding-inline-end: 72px;
}
.pw-toggle {
  position: absolute;
  inset-inline-end: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11.5px;
  color: var(--mid);
  padding: 4px 8px;
  text-transform: none;
  letter-spacing: normal;
}
.auth-terms {
  color: var(--low);
  font-size: 11.5px;
  line-height: 1.5;
}

/* ---------- kayan şerit ---------- */
.ticker {
  background: var(--bg1);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  height: var(--ticker-h);
  display: flex;
  align-items: center;
  position: relative;
  direction: ltr;
}
.ticker::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 60px;
  background: linear-gradient(90deg, transparent, var(--bg1));
  pointer-events: none;
}
.ticker-track {
  display: flex;
  gap: 30px;
  white-space: nowrap;
  animation: ticker 80s linear infinite;
  padding-left: 16px;
  font-family: var(--mono);
  font-size: 11.5px;
  will-change: transform;
}
.ticker:hover .ticker-track {
  animation-play-state: paused;
}
@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.tick-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--mid);
}
.tick-sym {
  color: var(--hi);
  font-weight: 600;
}

/* ---------- üst bar ---------- */
.shell-root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: var(--safe-t);
  padding-left: var(--safe-l);
  padding-right: var(--safe-r);
}
.topbar {
  background: rgba(10, 14, 20, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: var(--safe-t);
  z-index: 100;
  height: var(--top-h);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 16px;
}
.topnav {
  display: flex;
  gap: 2px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.topnav::-webkit-scrollbar {
  display: none;
}
.nav-btn {
  padding: 7px 12px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--mid);
  border-radius: var(--r);
  white-space: nowrap;
  position: relative;
  text-decoration: none !important;
  transition:
    background 0.15s,
    color 0.15s;
}
.nav-btn:hover {
  color: var(--hi);
  background: var(--bg2);
}
.nav-btn.on {
  color: var(--hi);
  background: var(--bg3);
}
.nav-dot {
  position: absolute;
  top: 5px;
  inset-inline-end: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dn);
}
.status-row {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}
.s-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-d);
}
.s-dot.live {
  background: var(--up);
  box-shadow: 0 0 0 3px var(--up-d);
}
.s-dot.off {
  background: var(--dn);
  box-shadow: 0 0 0 3px var(--dn-d);
}
.s-lbl {
  font-size: 11.5px;
  color: var(--mid);
  white-space: nowrap;
}
.clock {
  font-size: 12px;
  color: var(--mid);
  padding-inline-start: 11px;
  border-inline-start: 1px solid var(--line);
}
.plan-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--bg3);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 6px 4px 12px;
  font-size: 11.5px;
  color: var(--mid);
}
[dir='rtl'] .plan-chip {
  padding: 4px 12px 4px 6px;
}
.plan-chip b {
  color: var(--accent);
  text-transform: uppercase;
  font-size: 10.5px;
  letter-spacing: 0.04em;
}
.plan-chip .pc-usage {
  background: var(--bg4);
  color: var(--hi);
  border-radius: 999px;
  padding: 2px 8px;
}

/* ---------- terminal yerleşimi ---------- */
main#views {
  flex: 1;
  min-height: 0;
}
.term {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 320px;
  gap: 1px;
  background: var(--line);
  min-height: calc(100vh - var(--top-h) - var(--ticker-h) - var(--safe-t));
}
.col {
  background: var(--bg0);
  min-width: 0;
}
.rail-left {
  display: flex;
  flex-direction: column;
}
.rail-head {
  padding: 13px 14px 6px;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--low);
  font-weight: 600;
}
.wl-tools {
  padding: 4px 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  border-bottom: 1px solid var(--line2);
}
.asset-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}
.atab {
  padding: 6px 4px;
  font-size: 11.5px;
  color: var(--mid);
  background: var(--bg2);
  border-radius: 6px;
  text-align: center;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.atab.on {
  background: var(--accent-d);
  color: var(--accent);
}
.watchlist {
  flex: 1;
  overflow-y: auto;
}
.wl-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line2);
  cursor: pointer;
  transition: background 0.1s;
  border-inline-start: 2px solid transparent;
}
.wl-item:hover {
  background: var(--bg2);
}
.wl-item.on {
  background: var(--bg3);
  border-inline-start-color: var(--accent);
}
.wl-star {
  font-size: 14px;
  color: var(--low);
  padding: 2px;
  transition:
    color 0.15s,
    transform 0.15s;
  line-height: 1;
}
.wl-star:hover {
  transform: scale(1.15);
}
.wl-star.on {
  color: var(--accent);
}
.wl-main {
  flex: 1;
  min-width: 0;
}
.wl-name {
  font-size: 12.5px;
  font-weight: 600;
  direction: ltr;
  unicode-bidi: isolate;
}
.wl-sub {
  font-size: 10.5px;
  color: var(--low);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wl-px {
  text-align: end;
}
.wl-price {
  font-size: 12px;
  border-radius: 3px;
  padding: 0 2px;
}
.wl-chg {
  font-size: 11px;
}

.center {
  display: flex;
  flex-direction: column;
}
.sym-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.sym-id {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}
.sym-pick {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: start;
  cursor: default;
}
.sym-name {
  font-family: var(--fd);
  font-size: 18px;
  font-weight: 700;
  direction: ltr;
  unicode-bidi: isolate;
}
.sym-sub {
  font-size: 11px;
  color: var(--low);
}
.sym-price {
  font-size: 20px;
  font-weight: 600;
  border-radius: 4px;
  padding: 0 3px;
}
.sym-chg {
  font-size: 13px;
}
.tf-row {
  display: flex;
  gap: 3px;
}
.tf-btn {
  padding: 6px 11px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--mid);
  border-radius: 6px;
}
.tf-btn:hover {
  background: var(--bg2);
}
.tf-btn.on {
  background: var(--bg3);
  color: var(--hi);
}

.chart-wrap {
  position: relative;
  height: 420px;
  background: var(--bg1);
}
.chart-host {
  position: absolute;
  inset: 0;
}
.chart-tools {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 72px;
  z-index: 7;
  display: flex;
  flex-direction: row-reverse;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  flex-wrap: wrap;
}
.chart-wrap.is-tv .chart-tools {
  top: 46px;
  right: 70px;
}
.chart-tools > * {
  pointer-events: auto;
}
.chart-tools .seg {
  background: rgba(10, 14, 20, 0.88);
}
.layer-toggles {
  display: flex;
  gap: 10px;
  background: rgba(10, 14, 20, 0.88);
  border: 1px solid var(--line2);
  border-radius: 9px;
  padding: 5px 10px;
  font-size: 11px;
  color: var(--mid);
}
.layer-toggles label {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  cursor: pointer;
  white-space: nowrap;
}
.layer-toggles input {
  accent-color: var(--accent);
}
.chart-legend {
  position: absolute;
  top: 46px;
  left: 12px;
  z-index: 4;
  font-size: 11px;
  color: var(--mid);
  pointer-events: none;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.chart-legend b {
  color: var(--hi);
  font-weight: 500;
}
.chart-msg {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-direction: column;
  color: var(--mid);
  font-size: 13px;
  background: var(--bg1);
  text-align: center;
  padding: 20px;
}
.chart-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 16px;
  font-size: 11px;
  color: var(--low);
  border-top: 1px solid var(--line2);
  flex-wrap: wrap;
}
.live-ta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ind-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line2);
}
.ind-card {
  padding: 11px 14px;
  border-inline-end: 1px solid var(--line2);
  min-width: 0;
}
.ind-card:last-child {
  border-inline-end: none;
}
.ind-lbl {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--low);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ind-val {
  font-size: 15px;
  font-weight: 600;
}
.ind-sub {
  font-size: 10.5px;
  color: var(--mid);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.meter {
  height: 4px;
  background: var(--bg3);
  border-radius: 2px;
  margin-top: 7px;
  position: relative;
  overflow: hidden;
}
.meter i {
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-start: 0;
  border-radius: 2px;
  background: var(--accent);
}
.rating-gauge {
  display: flex;
  gap: 2px;
  margin-top: 7px;
}
.rating-gauge i {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--bg3);
}
.rating-gauge i.on.s-sell {
  background: var(--dn);
}
.rating-gauge i.on.sell {
  background: #ff8a98;
}
.rating-gauge i.on.neutral {
  background: var(--mid);
}
.rating-gauge i.on.buy {
  background: #7be3b3;
}
.rating-gauge i.on.s-buy {
  background: var(--up);
}
.reason-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line2);
  min-height: 44px;
}
.rchip {
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg2);
  border: 1px solid var(--line2);
  color: var(--mid);
}
.rchip.bull {
  color: #7be3b3;
  border-color: rgba(47, 212, 138, 0.25);
}
.rchip.bear {
  color: #ff9aa6;
  border-color: rgba(255, 84, 104, 0.25);
}

.rating-pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--fm);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 6px;
  white-space: nowrap;
}
.rating-pill.strong_buy {
  background: var(--up-d);
  color: var(--up);
}
.rating-pill.buy {
  background: rgba(47, 212, 138, 0.08);
  color: #7be3b3;
}
.rating-pill.neutral {
  background: var(--bg3);
  color: var(--mid);
}
.rating-pill.sell {
  background: rgba(255, 84, 104, 0.08);
  color: #ff9aa6;
}
.rating-pill.strong_sell {
  background: var(--dn-d);
  color: var(--dn);
}

/* sinyal motoru */
.signal-engine {
  background: linear-gradient(180deg, var(--bg1), var(--bg0));
  flex: 1;
}
.sig-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line2);
  flex-wrap: wrap;
}
.sig-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sig-title b {
  display: block;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.sig-title small {
  display: block;
  font-size: 11px;
  color: var(--low);
}
.sig-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.sig-body {
  padding: 16px;
  min-height: 120px;
}
.sig-foot {
  padding: 0 16px 16px;
  font-size: 11.5px;
  color: var(--low);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.sig-empty {
  color: var(--mid);
  font-size: 13px;
  line-height: 1.65;
}
.sig-empty b {
  color: var(--hi);
  display: block;
  margin-bottom: 4px;
}
.sig-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--mid);
  font-size: 13px;
}
.sig-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sig-top {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.verdict {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: var(--r);
  letter-spacing: 0.04em;
}
.verdict.BUY {
  background: var(--up-d);
  color: var(--up);
}
.verdict.SELL {
  background: var(--dn-d);
  color: var(--dn);
}
.verdict.NEUTRAL {
  background: var(--amber-d);
  color: var(--amber);
}
.sig-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--mid);
  min-width: 160px;
}
.conf-bar {
  height: 5px;
  background: var(--bg3);
  border-radius: 3px;
  overflow: hidden;
  width: 160px;
}
.conf-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  border-radius: 3px;
}
.sig-status {
  margin-inline-start: auto;
  text-align: end;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}
.sig-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.sig-cell {
  background: var(--bg2);
  border: 1px solid var(--line2);
  border-radius: var(--r);
  padding: 9px 12px;
  min-width: 0;
}
.sc-lbl {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--low);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sc-val {
  font-size: 13px;
  font-weight: 600;
}
.sc-sub {
  font-size: 10.5px;
  color: var(--mid);
  margin-top: 1px;
}
.sig-narr {
  background: var(--bg2);
  border-inline-start: 2px solid var(--accent);
  padding: 11px 14px;
  font-size: 13px;
  line-height: 1.65;
  border-radius: 0 var(--r) var(--r) 0;
}
[dir='rtl'] .sig-narr {
  border-radius: var(--r) 0 0 var(--r);
}
.sig-narr ul {
  padding-inline-start: 18px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.sig-risk {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--amber);
}
.sig-note {
  font-size: 12px;
  color: var(--amber);
  background: var(--amber-d);
  border-radius: 8px;
  padding: 8px 12px;
}
.sig-saved {
  font-size: 11.5px;
  color: var(--up);
}
.sig-disc {
  font-size: 11px;
  color: var(--low);
  line-height: 1.5;
  border-top: 1px solid var(--line2);
  padding-top: 9px;
}

/* sağ panel */
.rail-right {
  display: flex;
  flex-direction: column;
}
.rail-block {
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
.rb-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px 8px;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--low);
  font-weight: 600;
}
.rb-link {
  font-size: 10.5px;
  text-transform: none;
  letter-spacing: normal;
}
.radar-mini,
.news-mini,
.cal-mini,
.sessions,
.fng {
  padding: 0 14px;
}
.radar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line2);
  cursor: pointer;
  font-size: 12px;
}
.radar-row:last-child {
  border-bottom: none;
}
.radar-row .rr-sym {
  font-weight: 600;
  flex: 1;
  direction: ltr;
  unicode-bidi: isolate;
  text-align: start;
}
.radar-row .rr-time {
  color: var(--low);
  font-size: 10.5px;
}
.session-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 0;
  font-size: 12px;
}
.session-row .ss-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--low);
}
.session-row.open .ss-dot {
  background: var(--up);
  box-shadow: 0 0 0 3px var(--up-d);
}
.session-row .ss-name {
  flex: 1;
}
.session-row .ss-time {
  color: var(--low);
  font-size: 11px;
}
.session-row.open .ss-state {
  color: var(--up);
}
.session-row .ss-state {
  font-size: 11px;
  color: var(--mid);
  min-width: 46px;
  text-align: end;
}
.fng {
  display: flex;
  align-items: center;
  gap: 14px;
}
.fng-gauge {
  width: 112px;
  flex-shrink: 0;
}
.fng-val {
  font-size: 22px;
  font-weight: 700;
}
.fng-lbl {
  font-size: 12.5px;
  font-weight: 600;
}
.news-item {
  padding: 8px 0;
  border-bottom: 1px solid var(--line2);
}
.news-item:last-child {
  border-bottom: none;
}
.news-hl {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--hi);
  display: block;
}
a.news-hl:hover {
  color: var(--accent);
  text-decoration: none;
}
.news-meta {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 4px;
  font-size: 10.5px;
  color: var(--low);
}
.n-sent {
  font-size: 9.5px;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 700;
  text-transform: uppercase;
}
.n-sent.pos {
  background: var(--up-d);
  color: var(--up);
}
.n-sent.neg {
  background: var(--dn-d);
  color: var(--dn);
}
.n-sent.neu {
  background: var(--bg3);
  color: var(--mid);
}
.cal-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line2);
  font-size: 12px;
}
.cal-row:last-child {
  border-bottom: none;
}
.cal-time {
  font-size: 11px;
  color: var(--mid);
  min-width: 40px;
}
.cal-ccy {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--hi);
  background: var(--bg3);
  padding: 1px 6px;
  border-radius: 4px;
}
.cal-ev {
  flex: 1;
  line-height: 1.3;
  min-width: 0;
}
.cal-in {
  font-size: 10.5px;
  color: var(--accent);
  white-space: nowrap;
}
.imp {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--low);
}
.imp.high {
  background: var(--dn);
}
.imp.medium {
  background: var(--amber);
}
.imp.low {
  background: var(--low);
}
.imp.holiday {
  background: var(--blue);
}

/* ---------- paneller ---------- */
.panel {
  background: var(--bg0);
  min-height: calc(100vh - var(--top-h) - var(--ticker-h) - var(--safe-t));
}
.panel-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 26px 20px 40px;
}
.panel-inner.narrow {
  max-width: 780px;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.panel-tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.panel-title {
  font-family: var(--fd);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}
.panel-sub {
  font-size: 13px;
  color: var(--mid);
  line-height: 1.6;
  max-width: 640px;
}
.panel-inner.narrow > .panel-sub {
  margin-bottom: 18px;
}
.card {
  background: var(--bg1);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
}
.card-title {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.card-sub {
  font-size: 12.5px;
  color: var(--mid);
  line-height: 1.55;
  margin-bottom: 12px;
}
.notice {
  background: var(--amber-d);
  color: var(--amber);
  border-radius: 9px;
  padding: 10px 14px;
  font-size: 12.5px;
  margin-bottom: 12px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--low);
  font-weight: 700;
  margin: 26px 0 10px;
}
.table-card {
  padding: 0;
  overflow: hidden;
}
.table-scroll {
  overflow-x: auto;
}
.tbl {
  width: 100%;
  border-collapse: collapse;
}
.tbl th {
  text-align: start;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--low);
  font-weight: 600;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.tbl th.r,
.tbl td.r {
  text-align: end;
}
.tbl td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line2);
  font-size: 12.5px;
  vertical-align: middle;
  white-space: nowrap;
}
.tbl tbody tr {
  cursor: pointer;
  transition: background 0.1s;
}
.tbl tbody tr:hover {
  background: var(--bg2);
}
.tbl tr:last-child td {
  border-bottom: none;
}
.table-foot {
  padding: 9px 12px;
  font-size: 11px;
  color: var(--low);
  border-top: 1px solid var(--line2);
}
.mk-sym b {
  display: block;
  font-size: 13px;
  direction: ltr;
  unicode-bidi: isolate;
  text-align: start;
}
.mk-sym small {
  color: var(--low);
  font-size: 10.5px;
}
.spark {
  width: 96px;
  height: 28px;
  display: block;
}
.markets-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 16px;
  align-items: start;
}
.radar-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 620px;
  overflow-y: auto;
}
.radar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 9px;
  background: var(--bg2);
  border: 1px solid var(--line2);
  cursor: pointer;
}
.radar-item:hover {
  border-color: var(--line);
}
.radar-item .ri-main {
  flex: 1;
  min-width: 0;
}
.radar-item .ri-sym {
  font-weight: 700;
  font-size: 13px;
  direction: ltr;
  unicode-bidi: isolate;
}
.radar-item .ri-sub {
  font-size: 11px;
  color: var(--low);
}
.trend-ic {
  font-size: 12px;
}

/* takvim */
.filters {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.filter-lbl {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--low);
  font-weight: 600;
}
.cal-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cal-day {
  background: var(--bg1);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.cal-day-head {
  padding: 10px 14px;
  font-weight: 600;
  font-size: 13px;
  background: var(--bg2);
  border-bottom: 1px solid var(--line2);
  display: flex;
  justify-content: space-between;
}
.cal-ev-row {
  display: grid;
  grid-template-columns: 64px 110px 54px 14px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line2);
  font-size: 12.5px;
}
.cal-ev-row:last-child {
  border-bottom: none;
}
.cal-ev-row.past {
  opacity: 0.55;
}
.cal-ev-row.now {
  background: rgba(77, 166, 255, 0.07);
}
.cal-ev-row .ce-fp {
  font-size: 11px;
  color: var(--mid);
  text-align: end;
  white-space: nowrap;
}
.cal-ev-row .ce-in {
  font-size: 11px;
  color: var(--accent);
  white-space: nowrap;
}
.cal-ev-row .ce-in.past {
  color: var(--low);
}
.widget-frame {
  background: var(--bg1);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  min-height: 660px;
}

/* haberler */
.news-list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
}
.news-list .news-item {
  padding: 14px 0;
}
.news-list .news-hl {
  font-size: 14.5px;
  font-weight: 500;
}

/* uyarılar */
.alert-form {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 10px;
  align-items: end;
}
.alert-meta {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  flex-wrap: wrap;
}
.quick {
  display: inline-flex;
  gap: 4px;
}
.quick button {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--bg3);
  color: var(--mid);
  font-family: var(--mono);
}
.quick button:hover {
  color: var(--hi);
}
.notif-hint {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--mid);
  background: var(--bg1);
  border: 1px dashed var(--line);
  border-radius: 9px;
  padding: 10px 14px;
  flex-wrap: wrap;
}
.alert-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.alert-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg1);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 11px 14px;
  gap: 12px;
}
.alert-row.fired {
  border-color: var(--accent-d);
}
.al-l {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}
.al-sym {
  font-weight: 700;
  font-size: 13px;
  font-family: var(--fd);
  direction: ltr;
  unicode-bidi: isolate;
}
.al-cond {
  font-size: 12.5px;
  color: var(--mid);
}
.al-cond b {
  color: var(--hi);
}
.al-dist {
  font-size: 11px;
  color: var(--low);
}
.icon-btn {
  color: var(--low);
  font-size: 15px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: 0.15s;
  line-height: 1;
}
.icon-btn:hover {
  color: var(--dn);
  background: var(--dn-d);
}

/* geçmiş */
.hist-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.hstat {
  background: var(--bg1);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 15px;
}
.hstat-lbl {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--low);
  margin-bottom: 5px;
  font-weight: 600;
}
.hstat-val {
  font-size: 21px;
  font-weight: 700;
}
.hist-list {
  margin-top: 14px;
}
.hist-row {
  display: grid;
  grid-template-columns: 96px minmax(120px, 1.2fr) 80px 90px minmax(170px, 1.6fr) minmax(150px, 1.3fr) 32px;
  gap: 10px;
  align-items: center;
  padding: 11px 14px;
  background: var(--bg1);
  border: 1px solid var(--line2);
  border-radius: 10px;
  margin-bottom: 6px;
  font-size: 12.5px;
}
.hist-row .hr-time {
  font-size: 11px;
  color: var(--mid);
}
.hist-row .hr-sym b {
  display: block;
  direction: ltr;
  unicode-bidi: isolate;
  text-align: start;
}
.hist-row .hr-sym small {
  color: var(--low);
  font-size: 10.5px;
}
.hist-row .hr-levels {
  font-size: 11.5px;
  color: var(--mid);
  line-height: 1.5;
}
.hist-row .hr-levels b {
  color: var(--hi);
  font-weight: 500;
}
.hr-result {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-start;
}
.hsb-row {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.hsb {
  font-size: 10.5px;
  padding: 3px 7px;
  border-radius: 5px;
  background: var(--bg2);
  color: var(--mid);
  font-weight: 600;
}
.hsb:hover {
  background: var(--bg3);
  color: var(--hi);
}
.st-win {
  color: var(--up);
}
.st-loss {
  color: var(--dn);
}
.st-open {
  color: var(--accent);
}
.st-be,
.st-expired {
  color: var(--mid);
}

/* ayarlar */
.set-card {
  margin-bottom: 14px;
}
.lang-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.lang-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 6px;
  border-radius: 10px;
  background: var(--bg2);
  border: 1px solid var(--line2);
  font-size: 13px;
  font-weight: 600;
  transition: 0.15s;
}
.lang-opt .lf {
  font-size: 22px;
  line-height: 1;
}
.lang-opt small {
  color: var(--low);
  font-weight: 500;
  font-size: 10.5px;
  text-transform: uppercase;
}
.lang-opt:hover {
  border-color: var(--line);
}
.lang-opt.on {
  border-color: var(--accent);
  background: var(--accent-d);
  color: var(--accent);
}
.set-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line2);
  font-size: 13px;
  flex-wrap: wrap;
}
.set-row:last-of-type {
  border-bottom: none;
}
.set-val {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--hi);
}
.set-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
  align-items: center;
}
.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.svc {
  background: var(--bg2);
  border: 1px solid var(--line2);
  border-radius: 9px;
  padding: 9px 12px;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.svc b {
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.svc .svc-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--low);
}
.svc.ok .svc-dot {
  background: var(--up);
}
.svc.err .svc-dot {
  background: var(--dn);
}
.svc.off .svc-dot {
  background: var(--low);
}
.svc.warn .svc-dot {
  background: var(--amber);
}
.svc small {
  color: var(--low);
  font-size: 11px;
  word-break: break-word;
}
.admin-plan {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 110px auto;
  gap: 8px;
  align-items: center;
}

/* ---------- modal ---------- */
.modal-back {
  position: fixed;
  inset: 0;
  background: rgba(2, 4, 8, 0.72);
  backdrop-filter: blur(3px);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, var(--safe-t)) max(16px, var(--safe-r)) max(16px, var(--safe-b)) max(16px, var(--safe-l));
  animation: fadeIn 0.2s;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.modal {
  background: var(--bg1);
  border: 1px solid var(--line);
  border-radius: 16px;
  width: 100%;
  max-width: 880px;
  max-height: calc(100vh - max(16px, var(--safe-t)) - max(16px, var(--safe-b)));
  overflow-y: auto;
  padding: 24px;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.modal.sm {
  max-width: 420px;
}
.modal-x {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  color: var(--mid);
  font-size: 20px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
}
.modal-x:hover {
  background: var(--bg3);
  color: var(--hi);
}
.modal h2 {
  font-family: var(--fd);
  font-size: 22px;
  margin-bottom: 6px;
}
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.plan {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.plan.cur {
  border-color: var(--accent);
}
.plan.pro {
  background: linear-gradient(180deg, rgba(77, 166, 255, 0.08), var(--bg2));
}
.plan h3 {
  font-family: var(--fd);
  font-size: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.plan .price {
  font-size: 26px;
  font-weight: 700;
}
.plan .price small {
  font-size: 13px;
  color: var(--mid);
  font-weight: 500;
}
.plan ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12.5px;
  color: var(--mid);
  flex: 1;
}
.plan li {
  display: flex;
  gap: 8px;
}
.plan li::before {
  content: '✓';
  color: var(--up);
  font-weight: 700;
}
.sheet {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  background: var(--bg1);
  border-top: 1px solid var(--line);
  border-radius: 18px 18px 0 0;
  z-index: 1300;
  padding: 10px calc(14px + var(--safe-r)) calc(16px + var(--safe-b)) calc(14px + var(--safe-l));
  animation: sheetIn 0.22s ease;
}
@keyframes sheetIn {
  from {
    transform: translateY(100%);
  }
  to {
    transform: none;
  }
}
.sheet-grip {
  width: 38px;
  height: 4px;
  border-radius: 2px;
  background: var(--line);
  margin: 0 auto 12px;
}
.sheet-list {
  display: flex;
  flex-direction: column;
}
.sheet-list a,
.sheet-list button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 8px;
  font-size: 15px;
  color: var(--hi);
  border-bottom: 1px solid var(--line2);
  text-decoration: none !important;
  text-align: start;
  width: 100%;
}
.sheet-list svg {
  width: 20px;
  height: 20px;
  color: var(--mid);
}
.sym-sheet-list {
  max-height: 60vh;
  overflow-y: auto;
}

/* ---------- mobil alt menü ---------- */
.bottom-nav {
  display: none;
}

/* ---------- duyarlı yerleşim ---------- */
@media (max-width: 1279px) {
  .term {
    grid-template-columns: 220px minmax(0, 1fr) 280px;
  }
  .ind-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .ind-card:nth-child(3) {
    border-inline-end: none;
  }
  .ind-card:nth-child(n + 4) {
    border-top: 1px solid var(--line2);
  }
  .hist-row {
    grid-template-columns: 86px minmax(110px, 1fr) 76px 80px minmax(150px, 1.4fr) minmax(140px, 1.2fr) 30px;
  }
}
@media (max-width: 1100px) {
  .term {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .rail-right {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
  }
  .rail-right .rail-block {
    background: var(--bg0);
    border-bottom: none;
  }
  .markets-grid {
    grid-template-columns: 1fr;
  }
  .status-row .s-lbl,
  .status-row .clock {
    display: none;
  }
  .hist-row {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: 'time sym' 'dir conf' 'lv lv' 'res res';
  }
  .hist-row > * {
    grid-area: auto;
  }
  .hist-row .hr-del {
    justify-self: end;
  }
}
@media (max-width: 900px) {
  :root {
    --top-h: 52px;
  }
  body {
    font-size: 14px;
  }
  .topnav {
    display: none;
  }
  .topbar {
    gap: 10px;
    padding: 0 12px;
    justify-content: space-between;
  }
  .status-row .s-lbl {
    display: inline;
  }
  .term {
    grid-template-columns: minmax(0, 1fr);
  }
  .rail-left {
    border-bottom: 1px solid var(--line);
  }
  .rail-left .rail-head {
    display: none;
  }
  .wl-tools {
    flex-direction: row;
    align-items: center;
    padding: 8px 10px;
    border-bottom: none;
  }
  .wl-tools .input {
    display: none;
  }
  .asset-tabs {
    flex: 1;
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .asset-tabs::-webkit-scrollbar {
    display: none;
  }
  .atab {
    flex: 0 0 auto;
    padding: 7px 14px;
  }
  .chart-legend {
    font-size: 10px;
    gap: 6px;
    top: 44px;
  }
  .chart-legend .lg-ema {
    display: none;
  }
  .watchlist {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 6px;
    padding: 0 10px 10px;
    scrollbar-width: none;
  }
  .watchlist::-webkit-scrollbar {
    display: none;
  }
  .wl-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 116px;
    border: 1px solid var(--line2);
    border-radius: 9px;
    padding: 8px 10px;
    background: var(--bg1);
  }
  .wl-item.on {
    border-color: var(--accent);
    border-inline-start-width: 1px;
  }
  .wl-item .wl-star {
    display: none;
  }
  .wl-item .wl-px {
    text-align: start;
  }
  .wl-sub {
    display: none;
  }
  .sym-pick {
    cursor: pointer;
  }
  .sym-name::after {
    content: ' ▾';
    font-size: 12px;
    color: var(--low);
  }
  .chart-wrap {
    height: 340px;
  }
  .layer-toggles {
    display: none;
  }
  .chart-tools {
    right: 60px;
  }
  .ind-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ind-card {
    border-inline-end: 1px solid var(--line2);
    border-top: 1px solid var(--line2);
  }
  .ind-card:nth-child(2n) {
    border-inline-end: none;
  }
  .ind-card:nth-child(1),
  .ind-card:nth-child(2) {
    border-top: none;
  }
  .ind-card:last-child {
    grid-column: 1 / -1;
    border-inline-end: none;
  }
  .sig-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sig-actions {
    width: 100%;
  }
  .sig-actions button {
    flex: 1;
  }
  .rail-right {
    grid-template-columns: minmax(0, 1fr);
  }
  .panel-inner {
    padding: 18px 14px 32px;
  }
  .alert-form {
    grid-template-columns: 1fr 1fr;
  }
  .alert-form .field:first-child {
    grid-column: 1 / -1;
  }
  .alert-form .btn-primary {
    grid-column: 1 / -1;
  }
  .hist-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .lang-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .svc-grid {
    grid-template-columns: 1fr;
  }
  .admin-plan {
    grid-template-columns: 1fr 1fr;
  }
  .admin-plan .filter-lbl {
    grid-column: 1 / -1;
  }
  .plans {
    grid-template-columns: 1fr;
  }
  .cal-ev-row {
    grid-template-columns: 52px 46px 12px minmax(0, 1fr);
    grid-template-areas: 'time ccy imp title' 'in in in fp';
    row-gap: 3px;
  }
  .cal-ev-row .ce-time {
    grid-area: time;
  }
  .cal-ev-row .ce-in {
    grid-area: in;
  }
  .cal-ev-row .cal-ccy {
    grid-area: ccy;
    justify-self: start;
  }
  .cal-ev-row .imp {
    grid-area: imp;
  }
  .cal-ev-row .ce-title {
    grid-area: title;
  }
  .cal-ev-row .ce-fp {
    grid-area: fp;
    white-space: normal;
  }
  .hide-sm {
    display: none;
  }
  .tbl td,
  .tbl th {
    padding: 9px 8px;
  }
  .toast-stack {
    top: auto;
    bottom: calc(var(--bn-h) + 12px + var(--safe-b));
    inset-inline: 12px;
    max-width: none;
  }
  .bottom-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    bottom: 0;
    inset-inline: 0;
    z-index: 150;
    height: calc(var(--bn-h) + var(--safe-b));
    padding-bottom: var(--safe-b);
    padding-left: var(--safe-l);
    padding-right: var(--safe-r);
    background: rgba(10, 14, 20, 0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
  }
  .bottom-nav a,
  .bottom-nav button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 10.5px;
    color: var(--mid);
    text-decoration: none !important;
  }
  .bottom-nav .on {
    color: var(--accent);
  }
  .bottom-nav svg {
    width: 21px;
    height: 21px;
  }
  .shell-root {
    padding-bottom: calc(var(--bn-h) + var(--safe-b));
  }
  .panel {
    min-height: calc(100vh - var(--top-h) - var(--ticker-h) - var(--safe-t) - var(--bn-h) - var(--safe-b));
  }
  .auth-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .auth-pitch h1 {
    font-size: 26px;
    margin-top: 16px;
  }
  .auth-features {
    display: none;
  }
  .modal {
    padding: 20px 16px;
  }
}
@media (max-width: 520px) {
  .sym-price {
    font-size: 17px;
  }
  .tf-row {
    width: 100%;
  }
  .tf-btn {
    flex: 1;
  }
  .hist-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .plan-chip .pc-usage {
    display: none;
  }
  .lang-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .conf-bar {
    width: 120px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .ticker-track {
    animation: none;
  }
}

/* ---------- AI kredi paketleri ---------- */
.packs-wrap {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.packs-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.packs-head h3 {
  font-family: var(--fd);
  font-size: 16px;
}
.packs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.pack {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}
.pack-n {
  font-family: var(--fd);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
}
.pack-l {
  font-size: 12.5px;
  color: var(--mid);
}
.pack-p {
  font-size: 17px;
  font-weight: 700;
  margin-top: 6px;
}
.pack .btn-ghost {
  margin-top: 8px;
}
.sig-limit-acts {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10px;
}
