:root {
  --bg: #000000;
  --bg-2: #0b0b0d;
  --panel: #0a0a0c;
  --panel-2: #111114;
  --border: #1d1d22;
  --text: #e8e8ee;
  --muted: #9a9aa3;
  --blue: #2a4dd0;
  --blue-2: #3858e6;
  --cyan: #19c8b8;
  --cyan-2: #15b1a3;
  --mint: #2ce0b3;
  --green: #10c59b;
  --red: #ff3b5c;
  --pink: #ff4773;
  --yellow: #ffd11a;
  --teal-deep: #134746;
  --teal-mid: #16585a;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- TOPBAR ---------- */
.topbar {
  background: linear-gradient(180deg, #050507 0%, #0a0a0d 100%);
  border-bottom: 1px solid var(--border);
  padding: 12px 18px 14px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 1400px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.brand {
  /* Kullanici talebine gore "Anatolian AI Pro 1" yazisi her yerden gizli */
  display: none !important;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.5px;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 120ms ease, color 120ms ease;
  white-space: nowrap;
  line-height: 1;
}

.nav-link:hover {
  color: var(--cyan);
}

.nav-link.active {
  border-bottom-color: var(--cyan);
}

.nav-dual {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
  line-height: 1.1;
}

.dual-sub {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.dual-val {
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}

.actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ---------- BALANCE STRIP (topbar altinda kompakt bakiye seridi) ---------- */
.balance-strip {
  background: linear-gradient(180deg, rgba(25, 200, 184, 0.05) 0%, rgba(0, 0, 0, 0) 100%);
  border-bottom: 1px solid var(--border);
}

.balance-strip-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 8px 14px;
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.balance-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.balance-item .bal-label {
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.3px;
}

.balance-item .bal-value {
  color: var(--cyan);
  font-weight: 700;
  letter-spacing: 0.3px;
  font-variant-numeric: tabular-nums;
}

.btn {
  border: 0;
  border-radius: 4px;
  padding: 9px 14px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: transform 80ms ease, filter 120ms ease;
  font-family: inherit;
}

.btn:hover {
  filter: brightness(1.08);
}

.btn:active {
  transform: translateY(1px);
}

.btn-cyan {
  background: var(--cyan);
  color: #061818;
  border: 1px solid var(--cyan);
}

.btn-blue {
  background: var(--blue);
  color: #fff;
}

.btn-mint {
  background: var(--mint);
  color: #052b21;
}

/* Topbar'daki 4 aksiyon butonu (CONNECT / Cuzdan / Hesap / Cark) AYNI mavi olsun
   — brand color (--blue) — kullanici talebine gore */
.topbar .actions .btn-cyan,
.topbar .actions .btn-blue,
.topbar .actions .btn-mint {
  background: var(--blue) !important;
  color: #fff !important;
  border: 1px solid var(--blue) !important;
}

.topbar .actions .btn-cyan:hover,
.topbar .actions .btn-blue:hover,
.topbar .actions .btn-mint:hover {
  filter: brightness(1.12);
}

/* DAYTIME MODULE ve ADMIN nav linkleri diger nav linkleriyle ayni stilde olsun:
   ozel renk vurgusu veya farklilik olmasin */
.nav-link.daytime-link,
.nav-link.admin-link {
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.5px;
}

.nav-link.daytime-link:hover,
.nav-link.admin-link:hover {
  color: var(--cyan);
}

.nav-link.daytime-link.active,
.nav-link.admin-link.active {
  border-bottom-color: var(--cyan);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  width: 36px;
  height: 36px;
}

.btn-icon svg { display: block; }

/* ---------- DASHBOARD ---------- */
.dashboard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 18px;
  max-width: 1400px;
  margin: 0 auto;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 12px 8px;
  display: flex;
  flex-direction: column;
  min-height: 520px;
}

.panel-tabs {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
  padding: 0 4px 8px;
}

.tab {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  padding: 6px 2px;
  position: relative;
  font-family: inherit;
}

.tab:hover {
  color: var(--text);
}

.tab.active {
  color: var(--text);
}

.tab.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 2px;
  background: var(--cyan);
}

.tab .star {
  color: var(--yellow);
  margin-right: 4px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

.panel-title {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.6px;
}

.add-fav {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  width: 26px;
  height: 26px;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-family: inherit;
}

.add-fav:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* ---------- TABLES ---------- */
.table-wrap {
  flex: 1;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.market-table thead th {
  background: var(--blue);
  color: #fff;
  text-align: left;
  padding: 10px 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  font-size: 12px;
}

.market-table thead th:nth-child(2),
.market-table thead th:nth-child(3) {
  text-align: left;
}

.market-table tbody td {
  padding: 9px 14px;
  border-bottom: 1px solid #131318;
  font-weight: 600;
}

.market-table tbody td:first-child {
  color: #fff;
  font-weight: 700;
}

.favorites-table thead th {
  color: var(--muted);
  text-align: left;
  padding: 6px 12px;
  font-weight: 500;
  font-size: 12px;
}

.favorites-table thead th:not(:first-child) {
  text-align: right;
}

.favorites-table tbody td {
  padding: 8px 12px;
  border-bottom: 1px solid #131318;
  font-weight: 600;
}

.favorites-table tbody td:not(:first-child) {
  text-align: right;
}

.favorites-table .symbol-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.symbol-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
  color: #000;
  flex-shrink: 0;
}

.up { color: var(--green); }
.down { color: var(--red); }

/* ---------- PAGINATION ---------- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 10px 0 4px;
}

.page-btn {
  background: transparent;
  color: var(--text);
  border: 1px solid transparent;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-family: inherit;
  font-weight: 600;
}

.page-btn:hover {
  border-color: var(--border);
}

.page-btn.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.page-arrow {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  width: 26px;
  height: 26px;
  border-radius: 4px;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-family: inherit;
}

.page-ellipsis {
  color: var(--muted);
  padding: 0 4px;
}

/* ---------- SPOT PAGE (markets table + chart on right) ---------- */
.spot-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 18px;
  padding: 18px;
  max-width: 1500px;
  margin: 0 auto;
  align-items: stretch;
}

.spot-chart-panel {
  display: flex;
  flex-direction: column;
  padding: 0;
  min-height: 540px;
  overflow: hidden;
}

.spot-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
}

.spot-chart-title {
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.5px;
}

.spot-chart-tabs {
  display: flex;
  gap: 22px;
  align-items: center;
  padding: 8px 18px;
  border-bottom: 1px solid var(--border);
}

.spot-chart-body {
  flex: 1;
  min-height: 460px;
  position: relative;
  background: #050507;
}

.market-table tbody tr.active td {
  background: rgba(25, 200, 184, 0.08);
}

.futures-table-header {
  padding: 14px 18px 4px;
  border-bottom: 1px solid var(--border);
}

.futures-section-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #fff;
}

.fav-star {
  display: inline-block;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.35);
  font-size: 16px;
  margin-right: 8px;
  user-select: none;
  transition: color 120ms ease, transform 120ms ease;
  line-height: 1;
}

.fav-star:hover {
  color: var(--yellow);
  transform: scale(1.18);
}

.fav-star.on {
  color: var(--yellow);
  text-shadow: 0 0 6px rgba(255, 209, 26, 0.4);
}

.crypto-sym {
  vertical-align: middle;
}

/* ---------- MARKETS PAGE (favorites overview) ---------- */
.markets-page {
  max-width: 1300px;
  margin: 0 auto;
  padding: 28px 32px 60px;
}

.markets-title {
  margin: 0 0 22px;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
}

.markets-search-wrap {
  position: relative;
  max-width: 380px;
  margin-bottom: 36px;
}

.markets-search-wrap svg {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

.markets-search {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 11px 18px 11px 44px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  outline: 0;
  transition: border-color 120ms ease, background 120ms ease;
}

.markets-search:focus {
  border-color: var(--cyan);
  background: rgba(255, 255, 255, 0.06);
}

.markets-search::placeholder { color: rgba(255, 255, 255, 0.45); }

.markets-favorites-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.markets-tabs {
  display: flex;
  gap: 6px;
  margin: 16px 0 18px;
}

.markets-tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  padding: 7px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}

.markets-tab:hover { color: #fff; }

.markets-tab.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border);
  color: #fff;
}

.markets-list {
  min-height: 220px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.markets-list table {
  width: 100%;
  border-collapse: collapse;
}

.markets-list .market-table thead th {
  background: rgba(42, 77, 208, 0.85);
}

.markets-empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
}

/* ---------- DAYTIME MODULE PAGE ---------- */
.daytime-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 0 14px;
  padding: 14px;
  max-width: 1480px;
  margin: 0 auto;
}

/* Satir 1: sembol (sol) — sag bos */
.daytime-page > .dt-symbol-head    { grid-column: 1; grid-row: 1; }

/* Satir 2: formasyon+veri (sol) — nakitte kal (sag) */
.daytime-page > .dt-top-left {
  grid-column: 1;
  grid-row: 2;
  align-self: stretch;
  background: #fff;
  border: 1px solid #d0d0d0;
  border-top: 0;
  margin-bottom: -1px;
  position: relative;
  z-index: 1;
}
.daytime-page > .dt-status-banner  { grid-column: 2; grid-row: 2; align-self: stretch; }

/* Satir 3: intraday (sol) — bigchart (sag) — baslik cubuklari yan yana */
.daytime-page > .dt-intraday       { grid-column: 1; grid-row: 3; }
.daytime-page > .dt-bigchart-wrap  { grid-column: 2; grid-row: 3; }

/* Sembol başlığı (BTCUSD / BITCOIN/US DOLLAR) */
.dt-symbol-head {
  background: #050507;
  color: #fff;
  padding: 14px 18px 12px;
  border: 1px solid var(--border);
}

.dt-symbol-name {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.6px;
  margin: 0;
}

.dt-symbol-sub {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1.5px;
  font-weight: 600;
  margin-top: 4px;
}

/* Kripto sembol secici dropdown */
.dt-symbol-picker {
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: inherit;
}

.dt-symbol-picker:hover .dt-symbol-name { color: var(--cyan); }

.dt-symbol-caret {
  font-size: 16px;
  color: var(--muted);
  transition: transform 120ms;
}

.dt-symbol-picker[aria-expanded="true"] .dt-symbol-caret {
  transform: rotate(180deg);
}

/* Dropdown inline gosterilir — grafik uzerini kaplamaz, asagi iter.
   Secim yapildiginda dropdown kapanir + sayfa yeniden yuklenir. */
.dt-symbol-dropdown {
  background: var(--panel);
  border: 1px solid var(--cyan);
  border-radius: 6px;
  margin-top: 10px;
  max-height: 320px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Eski absolute pozisyon kullanan yerlerde geriye uyumluluk: hidden ise gosterilmez */
.dt-symbol-dropdown[hidden] { display: none; }

.dt-symbol-search {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  color: #fff;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 13px;
  outline: 0;
}

.dt-symbol-search:focus { border-bottom-color: var(--cyan); }

.dt-symbol-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0;
}

.dt-symbol-list-item {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
}

.dt-symbol-list-item:hover {
  background: rgba(25, 200, 184, 0.10);
}

.dt-symbol-list-item.active {
  background: rgba(25, 200, 184, 0.20);
  color: var(--cyan);
}

.dt-symbol-list-price {
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.dt-symbol-group-label {
  padding: 6px 14px 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--cyan);
  border-bottom: 1px solid var(--border);
  background: rgba(25, 200, 184, 0.06);
}

/* Gun ici modul (sari arkaplanli grafik kutusu) */
.dt-intraday {
  background: #fff8c2;
  border: 1px solid #d6cf85;
  border-top: 0;
  padding: 8px 12px 12px;
  display: flex;
  flex-direction: column;
}

.dt-intraday-title {
  text-align: center;
  color: #1a1a1a;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.3px;
  margin: 4px 0 6px;
}

.dt-intraday-title .badge-on {
  color: #1a8a3a;
}

.dt-intraday-chart {
  width: 100%;
  flex: 1;
  min-height: 400px;
  background: #fff8c2;
  position: relative;
}

.dt-intraday-chart > div { background: #fff8c2; }

/* Formasyon baslik cubugu (Foto 2 ust kisim) — beyaz arka plan */
.dt-formation-bar {
  background: #fff;
  border-bottom: 1px solid #d0d0d0;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dt-formation-label {
  color: #1a1a1a;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.dt-formation-name {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.dt-formation-name.bull { color: #1eb360; }
.dt-formation-name.bear { color: #e02e3e; }

/* Veri tablosu (Satis/Acilis/...) — Foto 2 alt kisim */
.dt-data-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  background: #fff;
  color: #1a1a1a;
}

.dt-data-cell {
  padding: 8px 8px 10px;
  text-align: center;
  border-right: 1px solid #e0e0e0;
  font-size: 15px;
  font-weight: 800;
}

.dt-data-cell:last-child { border-right: 0; }

.dt-data-cell-label {
  font-size: 11px;
  font-weight: 700;
  color: #666;
  display: block;
  margin-bottom: 4px;
}

.dt-data-cell.gain .dt-data-cell-value { color: #1eb360; }
.dt-data-cell.loss .dt-data-cell-value { color: #e02e3e; }

/* Sinyal tarihcesi */
.dt-history {
  background: var(--panel);
  border: 1px solid var(--border);
  border-top: 0;
  display: flex;
  flex-direction: column;
}

.dt-history-head {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

.dt-history-title {
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  flex: 1;
}

.dt-history-tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  margin-left: 4px;
}

.dt-history-tab.active {
  background: rgba(25,200,184,0.1);
  border-color: var(--cyan);
  color: var(--cyan);
}

.dt-history-table {
  width: 100%;
  border-collapse: collapse;
}

.dt-history-table thead th {
  background: #2a4dd0;
  color: #fff;
  text-align: left;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.dt-history-table tbody td {
  padding: 7px 12px;
  border-bottom: 1px solid #131318;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.dt-history-table tbody td.sig-buy { color: #1eb360; font-weight: 800; }
.dt-history-table tbody td.sig-sell { color: #e02e3e; font-weight: 800; }
.dt-history-table tbody td.sig-short { color: #e02e3e; font-weight: 800; }

.dt-history-table tbody td.pct-up { color: #1eb360; font-weight: 700; }
.dt-history-table tbody td.pct-down { color: #e02e3e; font-weight: 700; }

.dt-tick { color: #1eb360; }
.dt-cross { color: #e02e3e; }

/* Sag panel - NAKITTE KAL banner */
.dt-status-banner {
  display: grid;
  grid-template-columns: auto 1fr;
  background: #fff;
  border: 1px solid #d0d0d0;
  align-items: stretch;
}

.dt-status-text {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #e02e3e;
  line-height: 1;
  padding: 16px 28px;
  border-right: 1px solid #d0d0d0;
  white-space: nowrap;
}

.dt-status-text.bull { color: #1eb360; }
.dt-status-text.bear { color: #e02e3e; }
.dt-status-text.cash { color: #c9a800; }
.dt-status-text.hold { color: #1480d6; }

/* Sag taraftaki ozet (Kapanis + Onceki/Degisim/%Fark) */
.dt-summary-right {
  display: flex;
  flex-direction: column;
}

.dt-sum-top {
  padding: 8px 16px 6px;
  border-bottom: 1px solid #e0e0e0;
}

.dt-sum-top .dt-sum-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #666;
  letter-spacing: 0.3px;
}

.dt-sum-big {
  display: block;
  font-size: 32px;
  font-weight: 900;
  color: #1a1a1a;
  letter-spacing: 0.5px;
  line-height: 1.15;
}

.dt-sum-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.dt-sum-cell {
  padding: 6px 12px 8px;
  border-right: 1px solid #e0e0e0;
}

.dt-sum-cell:last-child { border-right: 0; }

.dt-sum-cell .dt-sum-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: #666;
  letter-spacing: 0.3px;
}

.dt-sum-val {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.3;
}

.dt-sum-val.up { color: #1eb360; }
.dt-sum-val.down { color: #e02e3e; }

/* Sag taraftaki big chart — arka plan sari (#fff8c2, gun ici ile ayni) */
.dt-bigchart-wrap {
  background: #fff8c2;
  border: 1px solid #d6cf85;
  display: flex;
  flex-direction: column;
}

.dt-bigchart-title {
  text-align: center;
  padding: 10px;
  font-weight: 800;
  font-size: 14px;
  color: #1a1a1a;
  background: #fff8c2;
  border-bottom: 1px solid #d6cf85;
}

.dt-bigchart-frame {
  flex: 1;
  min-height: 480px;
  position: relative;
  background: #fff8c2;
}

@media (max-width: 1000px) {
  .daytime-page { grid-template-columns: 1fr; }
  .daytime-page > .dt-symbol-head,
  .daytime-page > .dt-top-left,
  .daytime-page > .dt-status-banner,
  .daytime-page > .dt-intraday,
  .daytime-page > .dt-bigchart-wrap { grid-column: 1; grid-row: auto; }
}

/* Markets tablosundaki sinyal sutunlarini ortala (DAY/WEEK/MONTH SIGNAL) */
.markets-list .market-table thead th:nth-child(n+4),
.markets-list .market-table tbody td:nth-child(n+4) {
  text-align: center;
}

.markets-list .market-table tbody td .signal {
  display: inline-block;
  font-weight: 800;
}

.market-table tbody tr {
  cursor: pointer;
  transition: background 100ms ease;
}

.market-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

@media (max-width: 1024px) {
  .spot-page { grid-template-columns: 1fr; }
}

/* ---------- CHART PAGE ---------- */
.symbol-strip {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 10px 18px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.symbol-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.symbol-block {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  padding: 4px 6px;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  color: #fff;
  transition: background 120ms ease;
}

.symbol-block:hover { background: rgba(255,255,255,0.06); }

.symbol-icon { display: flex; align-items: center; }

.coin-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-weight: 800;
  font-size: 9px;
  color: #fff;
  letter-spacing: 0;
}

.symbol-name {
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.3px;
}

.symbol-arrow { color: var(--muted); font-size: 12px; }

.symbol-fav {
  color: var(--yellow);
  font-size: 16px;
  cursor: pointer;
}

/* Symbol picker dropdown */
.symbol-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 320px;
  max-height: 420px;
  background: #0c0c10;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.6);
  z-index: 60;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.symbol-dropdown[hidden] { display: none; }

.sd-search-wrap {
  padding: 10px;
  border-bottom: 1px solid var(--border);
}

.sd-search {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  outline: 0;
}

.sd-search:focus { border-color: var(--cyan); }

.sd-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0;
}

.sd-row {
  display: grid;
  grid-template-columns: 28px 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13px;
  border-bottom: 1px solid #131318;
}

.sd-row:hover { background: rgba(255,255,255,0.04); }

.sd-row.active { background: rgba(25,200,184,0.10); }

.sd-row .coin-circle { width: 24px; height: 24px; font-size: 10px; }

.sd-name {
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.sd-price {
  color: var(--text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.sd-change {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  min-width: 56px;
  text-align: right;
}

.sd-empty {
  color: var(--muted);
  text-align: center;
  padding: 20px 12px;
  font-size: 12px;
}

.price-block { display: flex; flex-direction: column; gap: 1px; }

.price-main { color: #fff; font-weight: 700; font-size: 16px; line-height: 1.1; }

.price-change { font-size: 12px; font-weight: 600; }
.price-change.up { color: var(--green); }
.price-change.down { color: var(--red); }

.deposit-block {
  display: flex;
  flex-direction: column;
  gap: 1px;
  align-items: flex-start;
}

.dep-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.dep-value { color: #fff; font-weight: 700; font-size: 13px; }

/* Main grid layout */
.chart-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px 280px;
  gap: 1px;
  background: var(--border);
  min-height: 760px;
}

.chart-area, .orderbook-area, .order-area {
  background: var(--panel);
  display: flex;
  flex-direction: column;
}

/* Chart top tabs */
.chart-tabs {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
}

.ctab {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 0;
  font-family: inherit;
  position: relative;
}

.ctab.active {
  color: #fff;
}

.ctab.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -9px;
  height: 2px; background: var(--cyan);
}

.ctab-spacer { flex: 1; }

.ctab-icon {
  color: var(--muted);
  cursor: pointer;
  display: flex;
  padding: 4px;
}

.ctab-icon:hover { color: #fff; }

/* Chart toolbar */
.chart-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  flex-wrap: wrap;
}

.tb-item {
  color: var(--text);
  padding: 3px 6px;
  cursor: pointer;
  border-radius: 3px;
}

.tb-item:hover { background: rgba(255,255,255,0.05); }

.tb-item.active {
  color: var(--cyan);
  font-weight: 700;
}

.tb-item.tb-muted { color: var(--muted); }

.tb-divider {
  width: 1px;
  height: 14px;
  background: var(--border);
  margin: 0 6px;
}

.tb-icon {
  font-size: 13px;
  opacity: 0.7;
  padding: 3px 5px;
  cursor: pointer;
}

.tb-icon:hover { opacity: 1; }

.tb-spacer { flex: 1; }

/* Chart frame */
.chart-frame {
  flex: 1;
  min-height: 460px;
  position: relative;
  background: #050507;
}

.tv-container { width: 100%; height: 100%; min-height: 460px; }

/* Bottom tabs */
.chart-bottom-tabs {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 8px 14px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  flex-wrap: wrap;
}

.bb-tab {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  padding: 4px 0;
  font-family: inherit;
  position: relative;
}

.bb-tab span { color: var(--muted); }

.bb-tab.active {
  color: var(--cyan);
}

.bb-tab.active span { color: var(--cyan); }

.bb-tab.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -9px;
  height: 2px; background: var(--cyan);
}

.bb-spacer { flex: 1; }

.bb-current {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}

.bb-icon, .bb-close-all {
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 8px;
  font-family: inherit;
  font-size: 12px;
}

.bb-close-all { color: var(--text); }

/* Order Book */
.orderbook-area {
  font-size: 12px;
}

.ob-tabs {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}

.ob-tab {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 0;
  font-family: inherit;
  position: relative;
}

.ob-tab.active { color: #fff; }

.ob-tab.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -9px;
  height: 2px; background: var(--cyan);
}

.ob-spacer { flex: 1; }

.ob-icon { color: var(--muted); cursor: pointer; }

.ob-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
}

.ob-mode { display: flex; gap: 4px; }

.ob-mode-btn {
  width: 14px;
  height: 14px;
  border-radius: 2px;
  background: rgba(255,255,255,0.06);
  cursor: pointer;
  display: inline-block;
}

.ob-mode-btn.active { background: var(--cyan); }

.ob-precision {
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
}

.ob-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 4px 12px;
  color: var(--muted);
  font-size: 11px;
}

.ob-header span:nth-child(2),
.ob-header span:nth-child(3) { text-align: right; }

.ob-list {
  display: flex;
  flex-direction: column;
  font-variant-numeric: tabular-nums;
}

.ob-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 2px 12px;
  font-size: 12px;
  position: relative;
  font-weight: 600;
}

.ob-row > span:nth-child(2),
.ob-row > span:nth-child(3) { text-align: right; }

.ob-row.ask { color: var(--red); }
.ob-row.bid { color: var(--green); }

.ob-row::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,59,92,0.07);
  width: var(--depth, 0%);
  pointer-events: none;
  right: 0;
  left: auto;
}

.ob-row.bid::before { background: rgba(16,197,155,0.07); }

.ob-spread {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255,209,26,0.08);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.ob-last {
  color: var(--yellow);
  font-weight: 800;
  font-size: 14px;
}

.ob-spread-arrow.up { color: var(--green); font-size: 12px; }
.ob-spread-arrow.down { color: var(--red); font-size: 12px; }

.ob-spread-second {
  color: var(--muted);
  font-size: 12px;
}

.ob-bs-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  margin-top: auto;
}

.ob-b { color: var(--green); }
.ob-s { color: var(--red); }

.ob-bar {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  display: flex;
  overflow: hidden;
}

.ob-bar-buy { background: var(--green); }
.ob-bar-sell { background: var(--red); }

/* Order entry panel */
.order-area {
  padding: 10px 12px;
  gap: 10px;
  font-size: 12px;
}

.oa-row {
  display: flex;
  gap: 6px;
}

.oa-tag {
  flex: 1;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.oa-tag.active {
  border-color: var(--cyan);
  color: var(--cyan);
}

.oa-tabs {
  display: flex;
  background: var(--bg);
  border-radius: 6px;
  padding: 3px;
  margin-bottom: 4px;
}

.oa-tab {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--muted);
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  border-radius: 4px;
}

.oa-tab.active {
  background: rgba(16,197,155,0.18);
  color: var(--green);
}

.oa-mode {
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.oa-mode-btn {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 0;
  font-family: inherit;
  position: relative;
}

.oa-mode-btn.active {
  color: #fff;
}

.oa-mode-btn.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -9px;
  height: 2px; background: var(--cyan);
}

.oa-info { margin-left: auto; color: var(--muted); cursor: pointer; }

.oa-input {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0 10px;
  height: 36px;
}

.oa-input-label {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.oa-input input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  height: 100%;
  text-align: right;
}

.oa-input-suffix {
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.oa-slider { padding: 4px 0 2px; }

.oa-slider-track {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  position: relative;
}

.oa-slider-track::before {
  content: '';
  position: absolute;
  top: -3px; left: 0;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--cyan);
}

.oa-slider-marks {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 10px;
  color: var(--muted);
}

.oa-balance {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
}

.oa-balance strong { color: #fff; font-weight: 700; }

.oa-balance-icon { cursor: pointer; }

.oa-maxs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 10px;
  color: var(--muted);
}

.oa-maxs-vals { color: #fff; font-weight: 700; font-size: 12px; }

.oa-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  margin-top: 4px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

.oa-toggle-spacer { flex: 1; }

.oa-basic { color: var(--muted); font-weight: 500; cursor: pointer; }

.oa-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}

.oa-long, .oa-short {
  border: 0;
  border-radius: 4px;
  padding: 10px;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}

.oa-long { background: var(--green); }
.oa-short { background: var(--red); }

.oa-long:hover, .oa-short:hover { filter: brightness(1.08); }

.oa-est {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 10px;
  color: var(--muted);
}

.oa-est-vals { color: #fff; font-weight: 700; font-size: 12px; }

.oa-fee {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

.oa-fee strong { color: var(--cyan); font-weight: 700; }

.oa-account {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: 4px;
}

@media (max-width: 1180px) {
  .chart-page {
    grid-template-columns: 1fr;
  }
  .orderbook-area, .order-area {
    border-top: 1px solid var(--border);
  }
}

/* ---------- SPOT BOTS PAGE ---------- */
.bots-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 18px;
}

.page-title {
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #fff;
  margin: 8px 0 22px;
}

.bots-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) minmax(280px, 1fr);
  gap: 22px;
  align-items: flex-start;
}

/* Formasyon sutunlari kaldirildi -> tablolari full-width yap */
.bots-layout.single {
  grid-template-columns: 1fr;
}

.bots-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.bots-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Order table */
.orders-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  background: var(--panel);
  font-size: 13px;
}

.orders-table thead th,
.pnl-table thead th {
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.4px;
  padding: 10px 12px;
  text-align: center;
  border: 1px solid #1a2a6a;
}

.orders-table tbody td,
.pnl-table tbody td {
  padding: 10px 12px;
  text-align: center;
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 13px;
  background: var(--panel);
  color: #fff;
}

.order-buttons {
  display: flex;
  gap: 6px;
  justify-content: center;
}

.order-btn {
  border: 0;
  border-radius: 3px;
  padding: 6px 14px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.6px;
  cursor: pointer;
  font-family: inherit;
  color: #fff;
  transition: filter 120ms ease, transform 80ms ease;
  min-width: 60px;
}

.order-btn:hover { filter: brightness(1.1); }
.order-btn:active { transform: translateY(1px); }
.order-btn.start { background: #1eb360; }
.order-btn.stop { background: #e02e3e; }

.order-btn.active.start { box-shadow: 0 0 0 2px rgba(30, 179, 96, 0.7); }
.order-btn.active.stop { box-shadow: 0 0 0 2px rgba(224, 46, 62, 0.7); }

.signal { font-weight: 800; letter-spacing: 0.4px; }
.signal.buy  { color: var(--green); }
.signal.hold { color: #1480d6; }   /* SENETTE KAL — daytime banner ile ayni mavi */
.signal.sell { color: var(--red); }
.signal.cash { color: var(--yellow); }

/* Total deposit bar */
.total-deposit {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 2px;
}

.td-label {
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.3px;
  padding: 8px 14px;
  border-radius: 2px;
  font-size: 13px;
  white-space: nowrap;
}

.td-value {
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

.td-unit { color: #fff; font-size: 13px; }

/* Profit/Loss table */
.pnl-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  background: var(--panel);
}

.pnl-table .pnl-label-head {
  background: #fff8c2;
  color: #1a1a1a;
  font-weight: 800;
  font-size: 14px;
  text-align: center;
  border: 1px solid #c9c39a;
  width: 140px;
  letter-spacing: 0.3px;
  line-height: 1.25;
}

/* ─── EMİRLER sayfası: deposit bar + birleşik tablo ─── */
.emirler-deposit-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.emirler-deposit-label {
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.5px;
  padding: 9px 18px;
  border-radius: 3px;
  white-space: nowrap;
}
.emirler-deposit-value {
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.3px;
}
.emirler-table {
  border: 1px solid var(--border);
}
.emirler-table thead th {
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.5px;
  padding: 11px 14px;
  text-align: center;
  border: 1px solid #1a2a6a;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
  position: relative;
}
.emirler-table thead th:hover {
  background: #2541b8;
}
.emirler-table thead th.sort-asc,
.emirler-table thead th.sort-desc {
  background: #1a3a9f;
}
.emirler-table tbody td {
  padding: 11px 14px;
  text-align: center;
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 13px;
  background: var(--panel);
  color: var(--cyan);
}
.emirler-table tbody td:first-child {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.emirler-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.emirler-dot.buy  { background: var(--green); }
.emirler-dot.sell { background: var(--red); }
.emirler-action {
  font-weight: 800;
  letter-spacing: 0.3px;
}
.emirler-action.buy  { color: var(--green); }
.emirler-action.sell { color: var(--red); }
.emirler-pnl-up   { color: var(--green); }
.emirler-pnl-down { color: var(--red); }

/* Bull / Bear formation columns */
.formation-col {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  background: var(--panel);
  min-height: 360px;
}

.formation-head {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.6px;
  text-align: center;
  padding: 10px 8px;
  color: #0a0a0a;
  border-bottom: 1px solid var(--border);
}

.formation-head.bull { background: #1eb360; }
.formation-head.bear { background: #e02e3e; color: #fff; }

.formation-body {
  flex: 1;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.formation-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 3px;
  color: var(--text);
  font-weight: 600;
}

.formation-empty {
  color: var(--muted);
  text-align: center;
  margin: auto;
  font-size: 12px;
  font-style: italic;
}

.formation-body {
  overflow-y: auto;
  max-height: 540px;
  padding: 8px;
  gap: 8px;
}

.formation-thumb {
  display: block;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  background: rgba(255,255,255,0.02);
  padding: 0;
  overflow: hidden;
  transition: border-color 120ms ease, transform 120ms ease;
}

.formation-thumb:hover {
  border-color: var(--cyan);
  transform: scale(1.01);
}

.formation-thumb img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.formation-hint {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  padding: 4px 6px 6px;
  letter-spacing: 0.3px;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
}

/* Image lightbox modal */
.image-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: grid;
  place-items: center;
  z-index: 220;
  padding: 30px;
}

.image-lightbox[hidden] { display: none; }

.image-lightbox img {
  max-width: 96vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.image-lightbox .lb-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 30px;
  font-family: inherit;
  cursor: pointer;
  line-height: 1;
}

.image-lightbox .lb-caption {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
}

/* ---------- INFO STRIP ---------- */
.info-strip {
  max-width: 1400px;
  margin: 8px auto 0;
  padding: 0 18px 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.info-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px;
}

.info-card h3 {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--cyan);
  letter-spacing: 0.3px;
}

.info-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.info-card a {
  color: var(--cyan);
  text-decoration: underline;
}

/* ---------- FOOTER ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 14px 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  max-width: 1400px;
  margin: 0 auto;
}

.footer-warn {
  color: #6c6c75;
}

/* ---------- CONNECT MODAL ---------- */
.connect-card {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(180deg, #134746 0%, #16585a 100%);
  border-radius: 12px;
  padding: 28px 26px 22px;
  position: relative;
  box-shadow: var(--shadow);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.connect-card h2 {
  margin: 4px 0 6px;
  font-size: 18px;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.connect-sub {
  margin: 0 0 18px;
  font-size: 12px;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

.platform-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.platform-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  text-align: left;
  transition: border-color 120ms ease, background 120ms ease, transform 80ms ease;
}

.platform-card:hover {
  border-color: var(--cyan);
  background: rgba(0, 0, 0, 0.32);
}

.platform-card:active { transform: translateY(1px); }

.platform-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  flex-shrink: 0;
}

.platform-name { flex: 1; }

.platform-arrow {
  color: rgba(255, 255, 255, 0.5);
  font-size: 20px;
  font-weight: 600;
}

.connect-back-btn {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  padding: 0 0 12px;
  font-family: inherit;
}

.connect-back-btn:hover { color: var(--cyan); }

.connect-warning {
  margin: 12px 0 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  line-height: 1.5;
}

.connect-step[hidden] { display: none; }

/* CONNECT button shows connected state */
.btn-connected {
  background: var(--green) !important;
  color: #032820 !important;
  position: relative;
}

.btn-connected::before {
  content: '●';
  margin-right: 4px;
  color: #032820;
}

/* ---------- SETTINGS MODAL ---------- */
.settings-card {
  width: 100%;
  max-width: 460px;
  background: linear-gradient(180deg, #134746 0%, #16585a 100%);
  border-radius: 12px;
  padding: 28px 26px 22px;
  position: relative;
  box-shadow: var(--shadow);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.settings-card h2 {
  margin: 4px 0 18px;
  font-size: 18px;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.settings-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.settings-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.lang-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.18);
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-align: left;
  transition: border-color 120ms ease, background 120ms ease;
}

.lang-btn:hover {
  border-color: var(--cyan);
  background: rgba(0, 0, 0, 0.32);
}

.lang-btn.active {
  border-color: var(--cyan);
  background: rgba(25, 200, 184, 0.14);
}

.lang-flag {
  font-size: 18px;
  line-height: 1;
}

.lang-name {
  flex: 1;
}

.lang-check {
  color: var(--cyan);
  font-weight: 800;
  font-size: 14px;
  visibility: hidden;
}

.lang-btn.active .lang-check { visibility: visible; }

@media (max-width: 480px) {
  .lang-grid { grid-template-columns: 1fr; }
}

/* ---------- AUTH (login/register tabs) ---------- */
.auth-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.auth-tab {
  flex: 1;
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.65);
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 0;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 120ms ease, border-color 120ms ease;
}

.auth-tab:hover { color: #fff; }

.auth-tab.active {
  color: #fff;
  border-bottom-color: var(--cyan);
}

/* ADMIN nav linki sadece admin oturumunda gosterilir */
.admin-link { display: none !important; }
body.is-admin .admin-link { display: inline-block !important; }

/* UNAUTHENTICATED — uye olmadan icerik gorulemez */
/* FORMASYON THUMB — bot tespit etmisse halka cikar */
.formation-thumb.detected {
  outline: 2px solid var(--cyan);
  outline-offset: -2px;
  box-shadow: 0 0 12px rgba(25, 200, 184, 0.45);
  position: relative;
}

.formation-thumb.detected::after {
  content: "✓";
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--cyan);
  color: #06292a;
  font-size: 10px;
  font-weight: 800;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

body.unauthenticated > header,
body.unauthenticated > main,
body.unauthenticated > footer,
body.unauthenticated > section,
body.unauthenticated > .balance-strip {
  filter: blur(10px) brightness(0.55);
  pointer-events: none;
  user-select: none;
  transition: filter 200ms ease;
}

body.unauthenticated #loginModal {
  /* Tam ekran login (siyah arka plan yerine site gradient'i) */
  background: linear-gradient(135deg, #0a0e1a 0%, #134746 50%, #0d3838 100%);
  padding: 0;
}

body.unauthenticated #loginModal .modal-close {
  display: none !important;
}

/* Unauthenticated iken modal kart tam ekranı kaplar */
body.unauthenticated #loginModal .login-card {
  max-width: 480px;
  width: 100%;
  margin: 0;
  background: linear-gradient(180deg, #134746 0%, #16585a 100%);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  border: 1px solid rgba(0, 229, 200, 0.2);
}

/* Unauthenticated iken — chatbot FAB ve paneli gizle (login ekranında AI olmasin) */
body.unauthenticated .chatbot-fab,
body.unauthenticated .chatbot-panel {
  display: none !important;
}

.auth-required-note {
  margin: 12px 0 0;
  padding: 10px 12px;
  background: rgba(25, 200, 184, 0.10);
  border: 1px solid rgba(25, 200, 184, 0.32);
  border-radius: 6px;
  color: #fff;
  font-size: 12px;
  text-align: center;
  line-height: 1.5;
}

/* 2FA demo kodlari kutusu — gercek production'da gizlenir */
.auth-demo-codes {
  margin: 8px 0 14px;
  padding: 10px 12px;
  background: rgba(255, 209, 26, 0.10);
  border: 1px dashed var(--yellow);
  border-radius: 6px;
  color: #fff;
  font-size: 12px;
  line-height: 1.7;
  text-align: left;
}

.auth-demo-codes strong {
  color: var(--yellow);
  display: block;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.auth-demo-codes div {
  font-family: 'Courier New', monospace;
  font-size: 13px;
}

.auth-demo-codes b {
  background: var(--yellow);
  color: #1a1a1a;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 800;
  letter-spacing: 1px;
}

.auth-demo-codes small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-style: italic;
  font-size: 11px;
}

/* ADMIN CHATBOT */
/* ---- FLOATING CHATBOT WIDGET (tum sayfalarda) ---- */
.chatbot-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00e5c8 0%, #1456f0 100%);
  color: #fff;
  border: 0;
  cursor: pointer;
  z-index: 9999;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 20px rgba(0,229,200,.35);
  transition: transform .2s, box-shadow .2s;
  font-size: 24px;
  font-weight: 800;
  font-family: inherit;
}
.chatbot-fab:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(0,229,200,.5); }
.chatbot-fab.open { transform: rotate(45deg) scale(1.08); }

/* ── Live Orders Widget ── */
.live-orders-widget {
  background: var(--panel, #0d1117);
  border: 1px solid var(--border, #1e2d3d);
  border-radius: 12px;
  overflow: hidden;
}
.live-orders-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  background: linear-gradient(180deg, rgba(255,255,255,.04) 0%, transparent 100%);
  border-bottom: 1px solid var(--border, #1e2d3d);
  letter-spacing: .4px;
}
.live-orders-refresh {
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--border, #1e2d3d);
  color: var(--muted, #6b7e94);
  border-radius: 6px;
  width: 30px; height: 30px;
  font-size: 16px;
  cursor: pointer;
  display: grid; place-items: center;
  transition: all .15s;
}
.live-orders-refresh:hover { color: #fff; border-color: var(--cyan, #00e5c8); }
.live-orders-body {
  padding: 8px 12px;
  max-height: 500px;
  overflow-y: auto;
}
.live-orders-loading, .live-orders-empty {
  text-align: center;
  padding: 30px;
  color: var(--muted, #6b7e94);
  font-size: 13px;
}
.lo-row {
  padding: 10px 8px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  transition: background .12s;
}
.lo-row:last-child { border-bottom: 0; }
.lo-row:hover { background: rgba(255,255,255,.03); }
.lo-row.fail { border-left: 3px solid #f59e0b; }
.lo-row.buy { border-left: 3px solid #10b981; }
.lo-row.sell { border-left: 3px solid #ef4444; }
.lo-main {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
}
.lo-icon { font-size: 15px; }
.lo-action { font-weight: 800; color: #fff; min-width: 70px; }
.lo-sym { color: var(--cyan, #00e5c8); font-weight: 700; }
.lo-price { color: #c8d6e5; }
.lo-size { color: var(--muted, #6b7e94); font-size: 12px; }
.lo-pattern { color: #a78bfa; font-size: 12px; }
.lo-pnl { font-weight: 700; font-size: 12px; }
.lo-pnl.up { color: #10b981; }
.lo-pnl.down { color: #ef4444; }
.lo-meta {
  display: flex;
  gap: 10px;
  margin-top: 3px;
  font-size: 11px;
  color: var(--muted, #5a6f85);
}
.lo-live {
  background: #10b981;
  color: #fff;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 10px;
}
.lo-fail-reason {
  margin-top: 4px;
  font-size: 11px;
  color: #f59e0b;
  word-break: break-all;
}

.chatbot-panel {
  position: fixed;
  bottom: 92px;
  right: 24px;
  width: 380px;
  height: 520px;
  min-width: 280px;
  min-height: 300px;
  max-width: 90vw;
  max-height: calc(100vh - 120px);
  background: var(--panel, #0d1117);
  border: 1px solid var(--border, #1e2d3d);
  border-radius: 16px;
  overflow: hidden;
  display: none;
  flex-direction: column;
  z-index: 9998;
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
  animation: chatbot-slide-up .25s ease-out;
}
.chatbot-panel.visible { display: flex; }
.chatbot-panel .chatbot-resize-handle {
  position: absolute;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  cursor: nw-resize;
  z-index: 10;
}
.chatbot-panel .chatbot-resize-handle::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--muted, #6b7e94);
  border-left: 2px solid var(--muted, #6b7e94);
  opacity: 0.5;
  transition: opacity .2s;
}
.chatbot-panel .chatbot-resize-handle:hover::after { opacity: 1; }
@keyframes chatbot-slide-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 480px) {
  .chatbot-panel { width: calc(100vw - 24px); right: 12px; bottom: 80px; height: 60vh; max-height: 70vh; }
  .chatbot-panel .chatbot-resize-handle { display: none; }
  .chatbot-fab { bottom: 16px; right: 16px; width: 50px; height: 50px; font-size: 20px; }
}

.chatbot-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #134746 0%, #0f3736 100%);
  border-bottom: 1px solid var(--border, #1e2d3d);
}

.chatbot-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--cyan, #00e5c8);
  color: #06292a;
  font-weight: 800;
  font-size: 13px;
}

.chatbot-header h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.3px;
  flex: 1;
}

.chatbot-close {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  opacity: .7;
}
.chatbot-close:hover { opacity: 1; }

.chatbot-clear {
  background: transparent;
  border: 1px solid var(--border, #1e2d3d);
  color: var(--muted, #6b7e94);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.chatbot-clear:hover { color: var(--red, #ef4444); border-color: var(--red, #ef4444); }

.chat-messages {
  flex: 1;
  min-height: 100px;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #050507;
}

.chat-msg {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.55;
  word-wrap: break-word;
}

.chat-msg.user {
  align-self: flex-end;
  background: var(--blue, #1456f0);
  color: #fff;
  border-bottom-right-radius: 3px;
}

.chat-msg.bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-bottom-left-radius: 3px;
  border: 1px solid var(--border, #1e2d3d);
}

.chat-msg.bot.thinking {
  color: var(--muted, #6b7e94);
  font-style: italic;
  animation: chatbot-thinking-pulse 1.2s ease-in-out infinite;
}
@keyframes chatbot-thinking-pulse {
  0%, 100% { opacity: .5; }
  50%      { opacity: 1; }
}

.chat-input-row {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--border, #1e2d3d);
  background: var(--panel, #0d1117);
}

.chat-input-row input {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border, #1e2d3d);
  border-radius: 6px;
  padding: 9px 12px;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  outline: 0;
}

.chat-input-row input:focus { border-color: var(--cyan, #00e5c8); }

.chat-input-row button {
  background: var(--cyan, #00e5c8);
  color: #06292a;
  border: 0;
  border-radius: 6px;
  padding: 9px 18px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}

.chat-input-row button:hover { filter: brightness(1.08); }

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 14px 12px;
  background: var(--panel, #0d1117);
}

.chat-suggestion {
  background: transparent;
  border: 1px solid var(--border, #1e2d3d);
  color: var(--muted, #6b7e94);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  cursor: pointer;
  font-family: inherit;
}

.chat-suggestion:hover {
  border-color: var(--cyan, #00e5c8);
  color: var(--cyan, #00e5c8);
}

/* ============================================================
   CHATBOT v2: Markdown, animasyonlar, voice, charts, reactions
   ============================================================ */

/* Mesaj giriş animasyonu */
.chat-msg {
  animation: chat-msg-in 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
@keyframes chat-msg-in {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Markdown stilleri (bot mesajları içinde) */
.chat-msg.bot strong, .chat-msg.bot b { color: #fde68a; font-weight: 800; }
.chat-msg.bot em, .chat-msg.bot i { color: #a5b4fc; font-style: italic; }
.chat-msg.bot code {
  background: rgba(99, 102, 241, 0.15);
  padding: 1px 5px;
  border-radius: 4px;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 12px;
  color: #c4b5fd;
  border: 1px solid rgba(99, 102, 241, 0.25);
}
.chat-msg.bot pre {
  background: #050810;
  border: 1px solid #1e2d3d;
  border-radius: 6px;
  padding: 10px 12px;
  margin: 8px 0;
  overflow-x: auto;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 11.5px;
  color: #93c5fd;
  line-height: 1.5;
}
.chat-msg.bot pre code {
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
}
.chat-msg.bot a {
  color: #60a5fa;
  text-decoration: underline;
}
.chat-msg.bot a:hover { color: #93c5fd; }

/* Liste */
.chat-msg.bot ul, .chat-msg.bot ol {
  margin: 6px 0 6px 18px;
  padding-left: 6px;
}
.chat-msg.bot li { margin: 3px 0; }

/* Mesaj actions (kopya, sesli oku, beğen) */
.chat-msg-actions {
  display: flex;
  gap: 4px;
  margin-top: 6px;
  opacity: 0;
  transition: opacity 0.18s;
}
.chat-msg.bot:hover .chat-msg-actions { opacity: 1; }
.chat-msg-action {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.55);
  padding: 3px 7px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.chat-msg-action:hover {
  background: rgba(0, 229, 200, 0.12);
  color: #00e5c8;
  border-color: rgba(0, 229, 200, 0.3);
}
.chat-msg-action.liked { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.chat-msg-action.disliked { background: rgba(239, 68, 68, 0.15); color: #f87171; }
/* Typing indicator (3 noktalı animasyon) */
.chat-typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border, #1e2d3d);
  border-radius: 12px;
  border-bottom-left-radius: 3px;
  align-self: flex-start;
  max-width: fit-content;
}
.chat-typing-dot {
  width: 7px;
  height: 7px;
  background: #6b7e94;
  border-radius: 50%;
  animation: typing-bounce 1.4s ease-in-out infinite;
}
.chat-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.chat-typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30%           { transform: translateY(-6px); opacity: 1; }
}

/* Mini chart embedded in messages */
.chat-mini-chart {
  margin: 10px 0;
  padding: 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  border: 1px solid var(--border, #1e2d3d);
}
.chat-mini-chart-title {
  font-size: 11px;
  color: var(--muted, #6b7e94);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.chat-mini-chart svg { display: block; width: 100%; height: auto; }

/* Komut onaylama balonu */
.chat-confirm {
  margin-top: 10px;
  padding: 10px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 6px;
  font-size: 12px;
}
.chat-confirm-title {
  color: #fbbf24;
  font-weight: 700;
  margin-bottom: 6px;
}
.chat-confirm-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.chat-confirm-btn {
  flex: 1;
  padding: 5px 10px;
  border: 0;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.chat-confirm-btn.yes { background: #10b981; color: #fff; }
.chat-confirm-btn.no { background: rgba(255,255,255,0.08); color: #fff; }

/* Data table (sonuçlar için) */
.chat-data-table {
  margin: 8px 0;
  border-collapse: collapse;
  width: 100%;
  font-size: 11.5px;
}
.chat-data-table th,
.chat-data-table td {
  padding: 4px 8px;
  border: 1px solid var(--border, #1e2d3d);
  text-align: left;
}
.chat-data-table th {
  background: rgba(0, 229, 200, 0.08);
  color: #00e5c8;
  font-weight: 700;
  font-size: 10.5px;
}
.chat-data-table tr:nth-child(even) { background: rgba(255,255,255,0.02); }

/* Auto-suggest dropdown (yazarken) */
.chat-autosuggest {
  position: absolute;
  bottom: 100%;
  left: 14px;
  right: 14px;
  background: #0a1015;
  border: 1px solid var(--border, #1e2d3d);
  border-radius: 8px;
  max-height: 180px;
  overflow-y: auto;
  margin-bottom: 4px;
  display: none;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.4);
}
.chat-autosuggest.show { display: block; }
.chat-autosuggest-item {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 12px;
  color: #c8d6e5;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.12s;
}
.chat-autosuggest-item:hover,
.chat-autosuggest-item.active {
  background: rgba(0, 229, 200, 0.1);
  color: #00e5c8;
}

/* Chat input row position relative for autosuggest */
.chat-input-row { position: relative; }

/* ---------- ADMIN PAGE ---------- */
.admin-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 28px;
}

.admin-page h1 {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 22px 0;
}

.admin-stat-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 18px;
}

.admin-stat-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.admin-stat-value {
  color: var(--cyan);
  font-size: 28px;
  font-weight: 800;
  margin-top: 4px;
}

.admin-users-title {
  margin: 22px 0 12px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.admin-users-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 12px;
}

.admin-users-head .admin-users-title { margin: 0; }

.admin-users-toolbar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.admin-sync-info {
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.admin-refresh-btn {
  background: rgba(25, 200, 184, 0.12);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: filter 100ms;
}

.admin-refresh-btn:hover { filter: brightness(1.15); }

.admin-users-table {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

.admin-users-table thead th {
  background: var(--blue);
  color: #fff;
  text-align: left;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
}

.admin-users-table tbody td {
  padding: 10px 14px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  border-top: 1px solid var(--border);
}

.admin-role-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.admin-role-badge.admin { background: rgba(25, 200, 184, 0.18); color: var(--cyan); }
.admin-role-badge.user { background: rgba(255,255,255,0.08); color: var(--text); }

.admin-action-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  margin-right: 4px;
}

.admin-action-btn.danger { color: var(--red); border-color: var(--red); }
.admin-action-btn.success { color: var(--green); border-color: var(--green); }
.admin-action-btn:hover { filter: brightness(1.15); }

/* ADMIN FORMASYON GALERISI (admin.html, sadece yoneticilerin gordugu kutuphane) */
.admin-formations {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.admin-formations-title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.admin-formations-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 4px;
}

.admin-formations-head .admin-formations-title { margin: 0; }

.admin-formations-toolbar {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.admin-formation-count {
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.admin-formations-sub {
  margin: 0 0 18px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.admin-formation-block {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 18px;
}

.admin-formation-block .formation-head {
  border-radius: 0;
  margin: 0;
}

.admin-formation-block .formation-body {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  padding: 14px;
}

.admin-formation-block .formation-thumb {
  width: 100%;
  height: 110px;
  aspect-ratio: auto;
  margin: 0;
}

.admin-formation-block .formation-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
  font-style: italic;
}

/* KAYITLI UYELER bolumu */
.admin-members-section {
  margin-top: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.admin-members-section .admin-users-title {
  color: var(--cyan);
}

/* ============================================================
   DEPOSIT MODAL (Para Yatirma) — alert yerine bilgilendirici overlay
   ============================================================ */
.deposit-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px 28px;
  max-width: 520px;
  width: 92%;
  color: #fff;
  position: relative;
  box-shadow: var(--shadow);
}

.deposit-title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: 0.4px;
}

.deposit-sub {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
}

.deposit-status { margin-bottom: 16px; }

.deposit-warning {
  background: rgba(224, 46, 62, 0.15);
  border: 1px solid var(--red);
  color: var(--red);
  padding: 11px 13px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.deposit-info {
  background: rgba(25, 200, 184, 0.10);
  border: 1px solid var(--cyan);
  color: #fff;
  padding: 10px 13px;
  border-radius: 6px;
  font-size: 12px;
}

.deposit-platforms {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

.deposit-platform-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255,255,255,0.02);
}

.deposit-platform-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.deposit-platform-icon { display: inline-flex; }

.deposit-platform-name {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}

.deposit-platform-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.deposit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cyan);
  color: #06292a;
  border: 0;
  border-radius: 6px;
  padding: 10px 14px;
  font-family: inherit;
  font-weight: 700;
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: filter 100ms;
}

.deposit-btn:hover { filter: brightness(1.1); }

.deposit-btn-spot {
  background: var(--green);
  color: #053021;
}

.deposit-btn-futures {
  background: var(--blue);
  color: #fff;
}

.deposit-btn-primary {
  background: var(--cyan);
  color: #06292a;
  width: 100%;
  font-size: 13px;
  padding: 12px 16px;
}

.deposit-note {
  margin: 14px 0 0;
  padding: 10px 12px;
  background: rgba(255, 209, 26, 0.08);
  border: 1px solid rgba(255, 209, 26, 0.30);
  border-radius: 6px;
  color: #d6c45a;
  font-size: 11px;
  line-height: 1.55;
}

@media (max-width: 480px) {
  .deposit-platform-actions { grid-template-columns: 1fr; }
}

/* Admin: kullanici grup basliklari (Yoneticiler / Standart Kullanicilar) */
.admin-group-title {
  margin: 22px 0 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: var(--cyan);
  text-transform: uppercase;
}

.admin-group-title:first-child { margin-top: 6px; }

.admin-group-count {
  display: inline-block;
  margin-left: 6px;
  background: rgba(25, 200, 184, 0.15);
  color: var(--cyan);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

/* ============================================================
   BIST PAGE
   ============================================================ */
.bist-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 22px 60px;
}

.bist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.bist-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.4px;
}

.bist-index-strip {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.bist-idx-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
}

.bist-idx-label {
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.3px;
}

.bist-idx-value {
  color: #fff;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.bist-idx-change {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.bist-idx-change.up   { color: var(--green); }
.bist-idx-change.down { color: var(--red); }

.bist-search-wrap {
  position: relative;
  margin-bottom: 14px;
}

.bist-search-wrap svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

.bist-search {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #fff;
  padding: 10px 14px 10px 40px;
  font-family: inherit;
  font-size: 14px;
  outline: 0;
}

.bist-search:focus { border-color: var(--cyan); }

.bist-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.bist-tab {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 14px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 100ms, border-color 100ms;
}

.bist-tab.active {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.bist-tab:hover { color: #fff; }

.bist-list-wrap {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.bist-table { width: 100%; border-collapse: collapse; }
.bist-table th {
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  text-align: left;
  padding: 12px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.bist-th.sortable {
  cursor: pointer;
  user-select: none;
  transition: color 100ms, background 100ms;
}

.bist-th.sortable:hover {
  color: #fff;
  background: rgba(25, 200, 184, 0.06);
}

.bist-th.sortable.sort-asc,
.bist-th.sortable.sort-desc {
  color: var(--cyan);
  background: rgba(25, 200, 184, 0.10);
}

.bist-th .sort-ind {
  display: inline-block;
  margin-left: 4px;
  font-size: 11px;
  font-weight: 800;
  color: var(--cyan);
  min-width: 10px;
}
.bist-table td {
  padding: 12px 14px;
  color: #fff;
  font-size: 13px;
  border-top: 1px solid var(--border);
}

.bist-table td.up { color: var(--green); }
.bist-table td.down { color: var(--red); }

.bist-table .crypto-sym { font-weight: 800; margin-right: 8px; }
.bist-name { color: var(--muted); font-size: 11px; font-weight: 500; }

/* ============================================================
   FOREX GRAFIK SAYFASI (forex-chart.html)
   ============================================================ */
.forex-chart-page {
  background: #000;
  color: #fff;
  padding: 8px 0 0;
  min-height: calc(100vh - 130px);
  display: flex;
  flex-direction: column;
}

.fc-header {
  padding: 0 14px 6px;
}

.fc-symbol-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.fc-back-btn {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  padding: 0 8px;
  line-height: 1;
}

.fc-symbol-box {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0c1326;
  border: 1px solid #2a4dd0;
  border-radius: 4px;
  padding: 8px 12px;
  min-width: 240px;
}

.fc-symbol {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  font-family: inherit;
}

.fc-symbol-search {
  margin-left: auto;
  opacity: 0.7;
  font-size: 12px;
}

.fc-bar-control {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 16px;
}

.fc-bar-label {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.fc-bar-count {
  background: #0c1326;
  border: 1px solid #2a4dd0;
  border-radius: 4px;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  padding: 8px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 120px;
}

.fc-bar-caret {
  margin-left: 4px;
  opacity: 0.7;
}

.fc-utility {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.fc-util-btn {
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
}

.fc-util-btn:hover { background: rgba(255,255,255,0.08); }

.fc-info-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  font-size: 14px;
  margin-bottom: 4px;
  font-weight: 700;
}

.fc-info-lbl {
  color: #fff;
  font-weight: 600;
}

.fc-info-val {
  color: #fff;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  margin-right: 8px;
}

.fc-info-lbl.up, .fc-info-val.up { color: #1eb360; }
.fc-info-lbl.down, .fc-info-val.down { color: #e02e3e; }

.fc-indicator-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}

.fc-indicator-anchor {
  color: #e02e3e;
  font-size: 16px;
  font-weight: 800;
  margin-right: 16px;
}

.fc-indicator-lbl { color: #fff; }
.fc-indicator-val { color: #1eb360; margin-right: 12px; font-variant-numeric: tabular-nums; }

.fc-chart-wrap {
  position: relative;
  flex: 1;
  min-height: 480px;
  margin: 0;
  background: #000;
}

.fc-chart-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.fc-bottom-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #050507;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.fc-bb-btn {
  background: #0c1326;
  border: 1px solid #2a4dd0;
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  padding: 9px 14px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
  transition: filter 100ms;
}

.fc-bb-btn:hover { filter: brightness(1.15); }

.fc-bb-controls { padding: 9px 11px; }

.fc-bb-currency {
  background: rgba(255,255,255,0.05);
  border-color: var(--border);
}

.fc-bb-trend {
  background: #2a4dd0;
  font-weight: 800;
}

.fc-bb-plus {
  background: #ffd11a;
  color: #1a1a1a;
  border-radius: 2px;
  padding: 0 4px;
  font-weight: 900;
  margin-right: 2px;
}

.fc-bb-spacer { flex: 1; }

.fc-bb-top {
  background: #2a4dd0;
  font-weight: 800;
}

.fc-bb-step { padding: 9px 11px; }

.fc-bb-ind-name {
  background: #2a4dd0;
  flex-direction: column;
  padding: 5px 14px;
  text-align: center;
  font-weight: 800;
}

.fc-bb-ind-line1 {
  font-size: 14px;
  line-height: 1.1;
}

.fc-bb-ind-line2 {
  font-size: 11px;
  line-height: 1.1;
  opacity: 0.85;
}

@media (max-width: 720px) {
  .fc-symbol-row { flex-wrap: wrap; }
  .fc-bar-control { margin-left: 0; }
  .fc-utility { margin-left: 0; }
  .fc-info-row { font-size: 12px; }
  .fc-indicator-row { font-size: 12px; }
}

/* Hisse / crypto kodu tiklanir -> Gun Ici Sinyal sayfasi */
.bist-sym-link,
.crypto-sym-link {
  color: var(--cyan);
  text-decoration: none;
  cursor: pointer;
  border-bottom: 1px dashed transparent;
  transition: border-color 100ms, color 100ms, text-shadow 100ms;
}

.bist-sym-link:hover,
.crypto-sym-link:hover {
  color: #fff;
  border-bottom-color: var(--cyan);
  text-shadow: 0 0 8px rgba(25, 200, 184, 0.5);
}

.bist-sym-link:focus-visible,
.crypto-sym-link:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 2px;
}

.bist-row-err { color: var(--red); font-style: italic; padding: 14px; }

.bist-empty {
  padding: 36px 18px;
  text-align: center;
  color: var(--muted);
}

/* BIST Pagination (BISTTUM sekmesi icin) */
.bist-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}

.bist-page-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 5px 11px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  min-width: 32px;
  transition: all 100ms;
}

.bist-page-btn:hover:not(:disabled) {
  border-color: var(--cyan);
  color: var(--cyan);
}

.bist-page-btn.active {
  background: var(--cyan);
  color: #06292a;
  border-color: var(--cyan);
}

.bist-page-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.bist-page-info {
  color: var(--muted);
  font-size: 11px;
  margin-left: 12px;
  font-variant-numeric: tabular-nums;
}

.bist-note {
  margin-top: 18px;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
}

/* ============================================================
   LOGIN MODAL LANGUAGE STRIP
   ============================================================ */
.login-lang-strip {
  margin: 6px 0 16px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.login-lang-strip-label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
  text-align: center;
}

.login-lang-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.login-lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 5px 8px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 100ms;
}

.login-lang-pill:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.login-lang-pill.active {
  background: var(--cyan);
  color: #06292a;
  border-color: var(--cyan);
}

.login-lang-flag {
  font-size: 14px;
  line-height: 1;
}

.login-lang-code {
  letter-spacing: 0.5px;
}

/* Bot Training Panel */
.bot-training-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px;
}

.bot-training-page h1 {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 800;
  color: #fff;
}

.bot-training-sub {
  color: var(--muted);
  margin: 0 0 24px;
  font-size: 13px;
}

.bot-upload-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px;
  margin-bottom: 28px;
}

.bot-upload-card h2 {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.bot-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.bot-form-grid .full { grid-column: 1 / -1; }

.bot-form-row label {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.bot-form-row input[type="text"],
.bot-form-row select,
.bot-form-row textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  outline: 0;
}

.bot-form-row input[type="text"]:focus,
.bot-form-row select:focus,
.bot-form-row textarea:focus {
  border-color: var(--cyan);
}

.bot-form-row textarea {
  min-height: 90px;
  resize: vertical;
}

.bot-form-row input[type="file"] {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px dashed var(--border);
  border-radius: 6px;
  padding: 14px;
  color: var(--muted);
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
}

.bot-submit {
  margin-top: 16px;
  background: var(--cyan);
  color: #06292a;
  border: 0;
  border-radius: 6px;
  padding: 11px 22px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.4px;
}

.bot-submit:hover { filter: brightness(1.08); }

.bot-form-msg {
  margin: 8px 0 0;
  font-size: 12px;
}

.bot-form-msg.success { color: var(--green); }
.bot-form-msg.error { color: var(--red); }

.bot-list-section h2 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.bot-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.bot-filter {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.bot-filter.active {
  background: rgba(25,200,184,0.16);
  border-color: var(--cyan);
  color: var(--cyan);
}

.bot-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.bot-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bot-card-img {
  background: #0a0a0c;
  height: 180px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.bot-card-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.bot-card-img .no-img {
  color: var(--muted);
  font-size: 12px;
  font-style: italic;
}

.bot-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.bot-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bot-card-cat {
  background: rgba(25,200,184,0.14);
  color: var(--cyan);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}

.bot-card-cat.bull { background: rgba(30,179,96,0.18); color: #1eb360; }
.bot-card-cat.bear { background: rgba(224,46,62,0.18); color: #e02e3e; }
.bot-card-cat.indicator { background: rgba(108,99,255,0.18); color: #9b8dff; }
.bot-card-cat.rules { background: rgba(255,209,26,0.16); color: var(--yellow); }

.bot-card-date {
  color: var(--muted);
  font-size: 11px;
  margin-left: auto;
}

.bot-card h3 {
  margin: 0;
  font-size: 14px;
  color: #fff;
  font-weight: 700;
}

.bot-card p {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  line-height: 1.4;
  white-space: pre-wrap;
}

.bot-card-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}

.bot-card-del {
  background: transparent;
  border: 1px solid var(--red);
  color: var(--red);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.bot-card-del:hover { filter: brightness(1.18); }

.bot-empty-state {
  padding: 50px 20px;
  text-align: center;
  color: var(--muted);
  font-style: italic;
  background: var(--panel);
  border: 1px dashed var(--border);
  border-radius: 10px;
}

.admin-denied {
  max-width: 560px;
  margin: 80px auto;
  padding: 32px;
  background: var(--panel);
  border: 1px solid var(--red);
  border-radius: 10px;
  text-align: center;
  color: var(--red);
  font-size: 15px;
}

/* ---------- LOGIN MODAL ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: grid;
  place-items: center;
  z-index: 100;
  padding: 20px;
}

.modal-overlay[hidden] {
  display: none;
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: linear-gradient(180deg, #134746 0%, #16585a 100%);
  border-radius: 12px;
  padding: 28px 26px 26px;
  position: relative;
  box-shadow: var(--shadow);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  width: 28px;
  height: 28px;
  font-family: inherit;
}

.modal-close:hover {
  color: #fff;
}

.login-card h2 {
  margin: 4px 0 22px;
  font-size: 18px;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.field {
  display: flex;
  align-items: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  padding: 0 12px;
  margin-bottom: 14px;
  height: 46px;
  gap: 10px;
  transition: border-color 140ms ease;
}

.field:focus-within {
  border-color: var(--cyan);
}

.field-icon {
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
}

.field input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  height: 100%;
}

.field input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.toggle-eye {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  font-family: inherit;
}

.login-submit {
  width: 100%;
  margin-top: 8px;
  background: var(--cyan);
  color: #06292a;
  border: 0;
  border-radius: 8px;
  padding: 12px 14px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.4px;
  cursor: pointer;
  font-family: inherit;
  transition: filter 120ms ease;
}

.login-submit:hover {
  filter: brightness(1.06);
}

.login-hint {
  margin: 10px 0 0;
  text-align: center;
  font-size: 12px;
  min-height: 16px;
  color: #fff5b3;
}

.login-hint.error {
  color: #ffb0b8;
}

.login-hint.success {
  color: #b9ffd9;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .dashboard {
    grid-template-columns: 1fr;
  }

  .info-strip {
    grid-template-columns: 1fr;
  }

  .main-nav {
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .topbar-inner {
    gap: 10px;
  }

  .actions {
    width: 100%;
    justify-content: flex-start;
  }

  .market-table thead th,
  .market-table tbody td {
    padding: 8px 10px;
    font-size: 12px;
  }
}

/* ============ TELEFON ortak mobil katmani (<=700px) ============ */
@media (max-width: 700px) {
  /* Guvenlik agi: sayfa yatay kaymasin (tasan ic ogeler kendi kapsayicilarinda kayar) */
  html, body { overflow-x: hidden; max-width: 100%; }

  /* Menu: alt alta dagilmadan tek satir yatay kaydirilabilir serit */
  .main-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 18px;
    padding-bottom: 2px;
    min-width: 0;   /* flexbox: icerige gore buyumesin, kayabilsin */
  }
  .main-nav::-webkit-scrollbar { display: none; }
  .topbar { padding: 10px 12px 12px; }
  .topbar-inner { gap: 12px; row-gap: 8px; }

  /* Genis tablolar: kapsayici icinde yatay kaysin (sutun hizasi korunur, sayfayi tasirmaz) */
  .bist-list-wrap,
  .table-wrap,
  .orders-wrap,
  .positions-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }

  /* Login modal telefon ekranina sigsin */
  .login-card { width: calc(100vw - 28px); max-width: 420px; }
}
