/* === GLOBAL VARIABLES === */
:root {
  --brand-main: #4dc9ff;
  --brand-accent: #2df7b2;
  --brand-dark: #253e61;
  --brand-light: #c7e5fa;
  --brand-yellow: #ffe147;
  --danger: #ff395b;
  --success: #21ff7d;
  --warning: #ffe147;
  --info: #00ffd7;
  --grey-bg: #202538;
  --grey: #b3c3d6;
}

/* === RESET & BODY === */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(120deg, #272d3e 0%, #131924 100%);
  font-family: "Segoe UI", Arial, sans-serif;
  color: #f3f4f9;
  font-weight: 300;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden; /* SAYFANIN TAŞMASINI ENGELLER */
}

a { color: var(--brand-main); text-decoration: none; }
a:hover { color: var(--brand-yellow); }

/* === CENTERED LAYOUT CONTAINER === */
.app-container {
  max-width: 1800px;
  margin: 0 auto;
  position: relative;
}

/* === TOPBAR === */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 15px;
  background: #22304e !important; /* Sabit, transparan değil, thead ile birebir aynı */
  box-shadow: 0 2px 12px #111b2e26; min-height: 45px;
  gap: 12px;
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  max-width: 100%; width: calc(100vw - 40px); z-index: 100;
  box-sizing: border-box;
}
.topbar-left { display: flex; align-items: center; gap: 9px; }
.logo-img-navbar { width: 50px; height: 50px; object-fit: contain; margin-right: 3px; opacity: 0.9; }
.navbar-brand { font-size: 1.35rem; font-weight: 500; color: var(--brand-main); letter-spacing: 1px; }
.topbar-center { display: flex; align-items: center; gap: 15px; flex: 1; }
.exchange-switch, .interval-switch { display: flex; gap: 8px; }
.exchange-btn, .interval-btn {
  background: #1c2942; color: var(--brand-main); border: 1.3px solid var(--brand-main);
  border-radius: 7px; font-weight: 500; font-size: 1.03rem; padding: 6px 14px;
  cursor: pointer; transition: background 0.16s, color 0.16s;
}
.exchange-btn.active, .exchange-btn:hover,
.interval-btn.active, .interval-btn:hover { background: var(--brand-main); color: #1a2233; }
.search-box { position: relative; }
#coin-search {
  width: 195px; height: 34px; border: 1.1px solid var(--brand-main); border-radius: 8px;
  background: #232b3e; color: #f3f4f9; font-size: 1.01rem;
  font-weight: 300; outline: none; padding: 7px 30px 7px 13px; box-sizing: border-box;
}
.search-clear {
  position: absolute; right: 7px; top: 50%; transform: translateY(-50%);
  font-size: 1.17rem; color: #b3c3d6; cursor: pointer; opacity: 0.76; background: none; border: none;
}
.search-clear:hover { opacity: 1; }
.topbar-right { display: flex; align-items: center; gap: 17px; }
.lang-bar { display: flex; gap: 6px; }
.lang-btn {
  background: #232b3e; border: 1.3px solid var(--brand-main); color: var(--brand-main);
  border-radius: 6px; font-weight: 400; font-size: 0.99rem; padding: 4px 12px;
  cursor: pointer; transition: background .14s, color .14s;
  letter-spacing: 0.2px;
}
.lang-btn.active, .lang-btn:hover { background: var(--brand-main); color: #1a2233; }

/* Logout Button */
.logout-btn {
  background: #d32f2f; border: 1.3px solid #d32f2f; color: white;
  border-radius: 6px; font-weight: 500; font-size: 0.99rem; padding: 6px 16px;
  cursor: pointer; transition: background .14s, transform .1s;
  letter-spacing: 0.2px;
}
.logout-btn:hover { background: #b71c1c; transform: translateY(-1px); }
.logout-btn:active { transform: translateY(0); }

/* === SABİT FOOTER === */
.footer-bar {
  display: flex; justify-content: center; align-items: center;
  background: linear-gradient(135deg, #1a2942 0%, #22304e 100%);
  color: #c0c5d6;
  padding: 0;
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%);
  max-width: 100%; width: calc(100vw - 40px); z-index: 55; min-height: 35px;
  box-shadow: 0 -2px 15px #19203a40;
  border-top: 2px solid var(--brand-main);
  box-sizing: border-box;
}
.footer-section { display: flex; align-items: center; gap: 10px; }
.footer-info { min-width: 285px; }
.footer-link { color: #8ae7ff; font-size: 1.01rem; margin-right: 7px; }
.footer-section.footer-market {
  flex: 1 1 auto;
  min-width: 160px;
  justify-content: flex-end;
  display: flex;
}
.market-marquee {
  display: inline-block;
  min-width: 180px;
  color: var(--brand-yellow);
  font-weight: 500;
  white-space: nowrap;
  text-align: right;
  float: right;
}

/* === SIGNAL DASHBOARD (In Footer - Signal-Only Mode) === */
.signal-dashboard {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 12px 20px;
  width: 100%;
  min-height: 50px;
}
.signal-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.signal-label {
  font-size: 0.95rem;
  color: #b3c3d6;
  font-weight: 500;
}
.signal-value {
  font-size: 1.1rem;
  color: var(--brand-main);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* === FILTERS BUTTON === */
.filters-btn {
  position: relative;
  background: #1c2942;
  color: var(--brand-main);
  border: 1.3px solid var(--brand-main);
  border-radius: 7px;
  font-weight: 500;
  font-size: 1.15rem;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.filters-btn:hover {
  background: var(--brand-main);
  color: #1a2233;
}
.filter-icon {
  font-size: 1.2rem;
}
.filter-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--danger);
  color: white;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === FILTERS DROPDOWN === */
.filters-dropdown {
  position: fixed;
  top: 60px;
  right: 20px;
  background: #1c2942;
  border: 2px solid var(--brand-main);
  border-radius: 10px;
  width: 360px;
  z-index: 101;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  animation: slideDown 0.2s ease-out;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #33476e;
}
.filters-header h3 {
  margin: 0;
  color: var(--brand-main);
  font-size: 1.15rem;
  font-weight: 600;
}
.filters-close {
  background: none;
  border: none;
  color: #b3c3d6;
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s;
}
.filters-close:hover {
  background: rgba(255,255,255,0.1);
}
.filters-body {
  padding: 16px;
}
.filter-group {
  margin-bottom: 16px;
}
.filter-group:last-child {
  margin-bottom: 0;
}
.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  cursor: pointer;
  color: #f3f4f9;
  font-size: 0.95rem;
}
.filter-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.filter-label {
  display: block;
  color: #b3c3d6;
  font-size: 0.9rem;
  margin-bottom: 6px;
  font-weight: 500;
}
.filter-group input[type="number"] {
  width: 100%;
  background: #232b3e;
  border: 1px solid #33476e;
  border-radius: 6px;
  color: #f3f4f9;
  padding: 8px 12px;
  font-size: 0.95rem;
  outline: none;
  transition: border 0.2s;
}
.filter-group input[type="number"]:focus {
  border-color: var(--brand-main);
}
.filter-range {
  display: flex;
  align-items: center;
  gap: 10px;
}
.filter-range input[type="number"] {
  width: 45%;
}
.filter-range span {
  color: #b3c3d6;
  font-weight: 600;
}
.filters-footer {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #33476e;
}
.filter-reset-btn, .filter-apply-btn {
  flex: 1;
  padding: 10px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}
.filter-reset-btn {
  background: #2c3a52;
  color: #b3c3d6;
}
.filter-reset-btn:hover {
  background: #3a4a65;
}
.filter-apply-btn {
  background: var(--brand-main);
  color: #1a2233;
}
.filter-apply-btn:hover {
  background: #3da8d6;
  transform: translateY(-1px);
}

/* === ANA TABLO - TAM STICKY SCROLLABLE LAYOUT === */
.table-main {
  padding: 0;
  margin: 75px auto 35px auto; /* Topbar (45px) + Category bar (25px) + spacing + Footer (35px) */
  max-width: 100%;
  width: calc(100vw - 40px);
  height: calc(100vh - 75px - 35px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
}
.table-scroll-container {
  flex: 1 1 auto;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  background: #22304e;
  background-image: url('/assets/Logo.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 40%;
  background-attachment: fixed;
  opacity: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
}
/* Küçük/soluk logo kaldırıldı - sadece ana background logo kalacak */
.coin-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  table-layout: auto;
  min-width: 100%;
  background: transparent;  /* Transparan yapıldı, logo görünsün */
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  position: relative;
  z-index: 1;
}
.coin-table th {
  background: #22304e !important; /* Topbar ile birebir */
  color: #fff;
  font-weight: 500;
  font-size: 1.14rem;
  letter-spacing: 0.3px;
  border-bottom: 2px solid var(--brand-main) !important;
  outline: none !important;
  cursor: pointer;
  transition: background 0.2s ease;
}

/* Draggable header styles - DISABLED */
/*
.draggable-header {
  cursor: grab;
}

.draggable-header:active {
  cursor: grabbing;
}

.draggable-header.drag-over {
  background: #3a5070 !important;
  border-left: 3px solid var(--brand-main);
  border-right: 3px solid var(--brand-main);
}
*/
.coin-table td, .coin-table th {
  padding: 0 10px;
  font-size: 0.95rem;
  font-weight: 400;
  min-width: 44px; max-width: 180px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  height: 36px;
  transition: background .14s, color .12s;
  text-align: center;  /* Tüm hücreler center */
  vertical-align: middle;
  background: transparent;
  outline: none !important;
  box-sizing: border-box;
}
.coin-table td {
  border-bottom: 1px solid #33476e;
}
.coin-table th[data-sort="favorite"], .coin-table td[data-type="favorite"] {
  text-align: center;
  vertical-align: middle;
  padding: 0;
  width: 44px;
  min-width: 44px;
  max-width: 60px;
}

/* Symbol column - sol hizalı */
.coin-table th[data-sort="symbol"], .coin-table td[data-type="symbol"] {
  text-align: left;
  font-weight: 500;
  color: var(--brand-light);
}
.coin-table th.active-sort { background: #344a74 !important; color: var(--brand-main); }
.coin-table tbody tr {
  background: rgba(34, 48, 78, 0.75);
  transition: background 0.13s;
}
.coin-table tr:hover { background: #232b3e; }
.coin-table th, .coin-table td { width: 8.3%; }



/* === Favori Yıldızlar Tam Hizalı === */
.fav-filter-btn, .fav-star {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  width: 36px;
  font-size: 1.25rem;
  padding: 0;
  margin: 0 auto;
  box-sizing: border-box;
  border-radius: 0;
  line-height: 1;
}
.fav-filter-btn {
  background: #1c2942;
  color: #ffbe2e;
  border: 1.2px solid #ffbe2e;
  font-weight: 700;
  box-shadow: none;
  transition: background 0.13s, color 0.13s;
  cursor: pointer; /* Fav filter butonu tıklanabilir kalacak */
}
.fav-filter-btn.active, .fav-filter-btn:hover {
  background: #ffbe2e;
  color: #232b3e;
}
.fav-star {
  border: none;
  background: none;
  color: #888;
  font-weight: 700;
  font-size: 1.25rem;
  cursor: pointer; /* Fav yıldızı tıklanabilir kalacak */
}
.fav-star.active {
  color: #ffbe2e;
}
.fav-star, .fav-filter-btn { transition: transform .13s; }
.fav-star:hover, .fav-filter-btn:hover { transform: scale(1.11); }

/* Inline copy icon (in symbol column) */
.copy-icon-inline {
  border: none;
  background: none;
  color: #4dc9ff;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0 4px 0 0;
  margin: 0;
  transition: transform 0.13s, color 0.2s;
  vertical-align: middle;
  opacity: 0.7;
}
.copy-icon-inline:hover {
  transform: scale(1.2);
  opacity: 1;
  color: #2df7b2;
}

/* Inline favorite star (in symbol column) */
.fav-star-inline {
  border: none;
  background: none;
  color: #666;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0 4px 0 0;
  margin: 0;
  transition: transform 0.13s, color 0.2s;
  vertical-align: middle;
}
.fav-star-inline.active {
  color: #ffbe2e;
}
.fav-star-inline:hover {
  transform: scale(1.15);
  color: #ffbe2e;
}


/* === SİGNAL CELL STİLLERİ === */
.signal-cell.signal-buy { color: var(--success); }
.signal-cell.signal-strongbuy { color: var(--info); }
.signal-cell.signal-sell { color: var(--danger); }
.signal-cell.signal-strongsell { color: #e838ff; }
.signal-cell.signal-neutral { color: var(--warning); }

/* === UNIFIED CELL STYLES === */
/* All cells have consistent padding and styling */
.trend-direction-cell,
.trend-pc-cell,
.chgpc-cell,
.score-cell,
.risk-cell,
.pending-cell {
  padding: 5px 10px;
  border-radius: 0;
  text-align: center;
  font-weight: 400;
  font-size: 0.95rem;
}

/* === TREND DIRECTION STYLES === */
.trend-direction-cell.trend-up,
.trend-pc-cell.trend-up {
  color: var(--success);
}
.trend-direction-cell.trend-down,
.trend-pc-cell.trend-down {
  color: var(--danger);
}
.trend-direction-cell.trend-flat,
.trend-pc-cell.trend-flat {
  color: var(--grey);
}
.trend-symbol {
  font-size: 0.9em;
  margin-right: 4px;
  font-weight: 700;
}

/* === 24H CHANGE STYLES === */
.chgpc-cell.chg-pos {
  color: var(--brand-accent);
}
.chgpc-cell.chg-neg {
  color: var(--danger);
}
.chgpc-cell.chg-neutral {
  color: var(--grey);
}

/* === COMPOSITE SCORE STYLES === */
.score-cell.score-high {
  color: var(--success);
}
.score-cell.score-medium {
  color: var(--warning);
}
.score-cell.score-low {
  color: var(--danger);
}

/* === RISK LEVEL STYLES === */
.risk-cell.risk-low {
  color: var(--success);
}
.risk-cell.risk-medium {
  color: var(--warning);
}
.risk-cell.risk-high {
  color: var(--danger);
}

/* === PENDING OPPORTUNITY STYLES === */
.pending-cell.pending-long {
  color: var(--success);
}
.pending-cell.pending-short {
  color: var(--danger);
}
.pending-cell.pending-no {
  color: var(--grey);
}

/* === PUMP/DUMP STYLES === */
.pump-dump-cell {
  padding: 5px 10px;
  border-radius: 0;
  text-align: center;
  font-size: 0.9rem;
}

.pump-dump-cell.pump-active {
  color: #ff6b35;
}

.pump-dump-cell.dump-active {
  color: #4fc3f7;
}

.pump-dump-cell.pump-none {
  color: var(--grey);
}

/* Header blinking animation for pump/dump column */
th[data-sort="pump_dump"].has-pump-signals {
  animation: header-pump-blink 2s ease-in-out infinite;
}

th[data-sort="pump_dump"].has-dump-signals {
  animation: header-dump-blink 2s ease-in-out infinite;
}

@keyframes header-pump-blink {
  0%, 100% {
    color: #fff;
    text-shadow: 0 0 5px rgba(255, 107, 53, 0.5);
  }
  50% {
    color: #ff6b35;
    text-shadow: 0 0 15px rgba(255, 107, 53, 1);
  }
}

@keyframes header-dump-blink {
  0%, 100% {
    color: #fff;
    text-shadow: 0 0 5px rgba(79, 195, 247, 0.5);
  }
  50% {
    color: #4fc3f7;
    text-shadow: 0 0 15px rgba(79, 195, 247, 1);
  }
}

/* === OTHER CELL STYLES === */
/* Tüm cell'ler için unified base style */
.price-cell,
.volume-cell,
.trend-strength-cell,
.chgpc-cell,
.score-cell,
.risk-cell,
.pending-cell {
  padding: 5px 10px;
  border-radius: 0;
  font-size: 0.95rem;
  font-weight: 400;
  text-align: center;
}

.price-cell {
  background: #29477a17;
  color: #fff;
}
.price-cell.up { color: #26ff97; }
.price-cell.down { color: var(--danger); }

/* Trend strength colors based on ADX values */
.trend-strength-strong { color: var(--success); } /* ADX > 40 */
.trend-strength-medium { color: var(--warning); } /* ADX 25-40 */
.trend-strength-weak { color: var(--grey); } /* ADX < 25 */

/* Target distance colors */
.target-cell.target-high { color: var(--success); } /* > 5% upside */
.target-cell.target-medium { color: var(--warning); } /* 0-5% upside */
.target-cell.target-low { color: var(--danger); } /* Below target */
.stoploss-cell { color: var(--danger); background: #6e272e26; border-radius: 0; }
.coin-table tr.selected-row { background: #273b59cc; }


/* === Sıralama Okları Yönüne Göre Renkli === */
.sort-ind {
  color: #b3c3d6;
  margin-left: 3px;
  font-size: 1.1em;
  transition: color 0.18s;
}
th.active-sort .sort-ind { color: var(--brand-main); }
th.active-sort.asc .sort-ind { color: var(--success); }
th.active-sort.desc .sort-ind { color: var(--danger); }

/* === UTILITIES === */
.hidden { display: none !important; }
.text-danger { color: var(--danger) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.bg-grey { background: var(--grey-bg) !important; }
.scale-on-hover { transition: transform .13s; }
.scale-on-hover:hover { transform: scale(1.11); }

/* === RESPONSIVE & MEDIA QUERIES === */
@media (max-width: 1200px) {
  .topbar, .footer-bar { flex-direction: column; align-items: flex-start; }
  .footer-bar { font-size: 0.97rem; padding: 7px 5vw 7px 5vw;}
  .footer-section { min-width: 120px;}
  .table-scroll-container, .coin-table { min-width: 900px;}
}
@media (max-width: 900px) {
  .footer-bar, .topbar { padding-left: 6vw; padding-right: 6vw; }
  .coin-table th, .coin-table td { font-size: 0.95rem; }
  .table-scroll-container, .coin-table { min-width: 600px; }
}
@media (max-width: 700px) {
  .table-scroll-container, .coin-table { min-width: 400px; }
}

/* === TradingView tarzı değişen hane rengi === */
.price-cell .up,
.volume-cell .up,
.volumeusdt-cell .up {
  color: #21ff7d !important;
}
.price-cell .down,
.volume-cell .down,
.volumeusdt-cell .down {
  color: #ff395b !important;
}

/* === RISK POPUP === */
#risk-popup-overlay { display: none; position: fixed; z-index: 99999; left: 0; top: 0; right: 0; bottom: 0; width: 100vw; height: 100vh; background: #1b2335ee; align-items: center; justify-content: center;}
#risk-popup-overlay.active { display: flex; }
#risk-popup {
  background: #22304e !important;  /* Sabit renk, topbar/thead ile aynı, transparan yok */
  color: #fff; border-radius: 16px; box-shadow: 0 6px 44px #0008, 0 1.5px 7px #22304e33; padding: 32px 28px 22px 28px; max-width: 360px; width: 94vw; display: flex; flex-direction: column; align-items: center; position: relative; text-align: center; animation: popup-fadein 0.35s cubic-bezier(0.5,1,0.6,1);}
@keyframes popup-fadein { 0% { opacity: 0; transform: scale(0.93);} 100% { opacity: 1; transform: scale(1);} }
#risk-popup-title { font-size: 1.19rem; font-weight: 500; margin-bottom: 14px; color: var(--brand-yellow); }
#risk-popup-message { font-size: 1.07rem; color: #fff; margin-bottom: 22px; line-height: 1.6; }
#risk-popup-langbar { display: flex; gap: 10px; margin-bottom: 20px; justify-content: center;}
#risk-popup-langbar .lang-btn { background: #253e61; border: 1.3px solid #4dc9ff; color: #4dc9ff; border-radius: 7px; font-weight: 400; font-size: 1.03rem; padding: 5px 15px; cursor: pointer; transition: background .16s, color .16s; letter-spacing: 0.3px;}
#risk-popup-langbar .lang-btn.active, #risk-popup-langbar .lang-btn:hover { background: #4dc9ff; color: #253e61; }
#risk-popup-btn { background: #ffe147; color: #22304e; border: none; border-radius: 7px; padding: 9px 24px; font-size: 1.09rem; font-weight: 500; cursor: pointer; margin-top: 10px; transition: background .16s, color .16s, box-shadow .16s; box-shadow: 0 1.5px 6px #ffe14733;}
#risk-popup-btn:hover { background: #ffed74; color: #2c3546; }

/* =============================================================================
   EKLENEN KAYDIRMA ÇUBUĞU GİZLEME KURALLARI
============================================================================= */

/* Webkit tabanlı tarayıcılar (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    display: none; /* Kaydırma çubuğunu tamamen gizler */
    width: 0;      /* Yatay kaydırma çubuğu genişliği */
    height: 0;     /* Dikey kaydırma çubuğu yüksekliği */
}

/* Firefox için */
html {
    scrollbar-width: none; /* Firefox'ta kaydırma çubuğunu gizler */
}

/* Microsoft Edge için (modern versiyonlar Webkit tabanlıdır, ama eski versiyonlar için) */
body {
    -ms-overflow-style: none; /* Edge ve IE için kaydırma çubuğunu gizler */
}

/* =============================================================================
    Authentication UI Styles
============================================================================= */
.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    padding-right: 12px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-color);
}

.user-icon {
    font-size: 16px;
}

.logout-btn {
    padding: 6px 14px;
    background: rgba(220, 38, 38, 0.1);
    color: #ef4444;
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.logout-btn:hover {
    background: rgba(220, 38, 38, 0.2);
    border-color: rgba(220, 38, 38, 0.5);
}

/* =============================================================================
    CONFIDENCE, RSI, DIRECTION & EMA COLOR STYLES
============================================================================= */

/* Confidence Levels */
.confidence-cell {
  font-weight: 500;
  text-align: center;
}

.confidence-cell.confidence-high {
  color: #10b981;
  font-weight: 600;
}

.confidence-cell.confidence-medium {
  color: #f59e0b;
}

.confidence-cell.confidence-low {
  color: #ef4444;
}

/* ML Score Levels */
.ml-score-cell {
  font-weight: 500;
  text-align: center;
}

.ml-score-cell.ml-very-high {
  color: #10b981;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.1);
}

.ml-score-cell.ml-high {
  color: #22c55e;
  font-weight: 600;
}

.ml-score-cell.ml-medium {
  color: #60a5fa;
  font-weight: 500;
}

.ml-score-cell.ml-low {
  color: #9ca3af;
}

/* Direction (ML Labels) */
.direction-cell {
  font-weight: 500;
  text-align: center;
}

.direction-cell.direction-up {
  color: #10b981;
  font-weight: 600;
}

.direction-cell.direction-down {
  color: #ef4444;
  font-weight: 600;
}

.direction-cell.direction-neutral {
  color: #6b7280;
}

/* Timeframe */
.timeframe-cell {
  font-weight: 500;
  text-align: center;
  color: #60a5fa;
  font-size: 0.9em;
}

/* =============================================================================
   COIN DETAIL MODAL
============================================================================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.modal-content {
  background: linear-gradient(135deg, #1a2942 0%, #22304e 100%);
  border: 2px solid var(--brand-main);
  border-radius: 12px;
  width: 90%;
  max-width: 1200px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.3s ease;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  border-bottom: 2px solid rgba(52, 152, 219, 0.3);
}

.modal-header h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: var(--brand-main);
  text-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}

.modal-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.modal-close:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  transform: rotate(90deg);
}

.modal-body {
  padding: 30px;
}

.modal-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.modal-info-item {
  background: rgba(0, 0, 0, 0.3);
  padding: 15px;
  border-radius: 8px;
  border: 1px solid rgba(52, 152, 219, 0.2);
}

.modal-label {
  display: block;
  font-size: 12px;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.modal-value {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.modal-chart-container {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
  border: 1px solid rgba(52, 152, 219, 0.2);
}

.tradingview-widget {
  height: 500px;
  width: 100%;
}

.modal-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.modal-action-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.modal-action-btn.copy-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
}

.modal-action-btn.copy-btn:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.modal-action-btn.bybit-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
}

.modal-action-btn.bybit-btn:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.btn-icon {
  font-size: 20px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =============================================================================
   QUICK ACTION BUTTONS (In Table)
============================================================================= */
.actions-cell {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.action-btn-small {
  padding: 6px 10px;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.action-btn-small.copy-small {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
  border: 1px solid #3b82f6;
}

.action-btn-small.copy-small:hover {
  background: #3b82f6;
  color: white;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.action-btn-small.bybit-small {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  border: 1px solid #f59e0b;
  text-decoration: none;
  display: inline-block;
}

.action-btn-small.bybit-small:hover {
  background: #f59e0b;
  color: white;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.action-btn-small.detail-small {
  background: rgba(52, 152, 219, 0.2);
  color: var(--brand-main);
  border: 1px solid var(--brand-main);
}

.action-btn-small.detail-small:hover {
  background: var(--brand-main);
  color: white;
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.4);
}

/* =============================================================================
   SIGNAL ANALYSIS SIDEBAR PANEL
============================================================================= */
.analysis-panel {
  position: fixed;
  left: 0;
  top: 60px;
  width: 320px;
  height: calc(100vh - 60px - 50px);
  background: linear-gradient(135deg, #1a2942 0%, #22304e 100%);
  border-right: 2px solid var(--brand-main);
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
  overflow-y: auto;
  z-index: 90;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.analysis-panel.active {
  transform: translateX(0);
}

.analysis-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 2px solid rgba(77, 201, 255, 0.3);
  position: sticky;
  top: 0;
  z-index: 10;
}

.analysis-panel-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--brand-main);
  margin: 0;
}

.analysis-panel-close {
  background: none;
  border: none;
  color: #b3c3d6;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s;
}

.analysis-panel-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--danger);
  transform: rotate(90deg);
}

.analysis-panel-body {
  padding: 20px;
}

.analysis-section {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(77, 201, 255, 0.2);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.analysis-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand-main);
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.analysis-section-icon {
  font-size: 1.2rem;
}

.analysis-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.analysis-item:last-child {
  border-bottom: none;
}

.analysis-label {
  font-size: 0.9rem;
  color: #b3c3d6;
  font-weight: 400;
}

.analysis-value {
  font-size: 0.95rem;
  color: #fff;
  font-weight: 600;
}

.analysis-value.positive {
  color: var(--success);
}

.analysis-value.negative {
  color: var(--danger);
}

.analysis-value.neutral {
  color: var(--warning);
}

/* RSI Visual Bar */
.rsi-visual-bar {
  margin: 12px 0;
}

.rsi-bar-container {
  position: relative;
  width: 100%;
  height: 30px;
  background: linear-gradient(90deg, #10b981 0%, #fbbf24 50%, #ef4444 100%);
  border-radius: 15px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.rsi-bar-indicator {
  position: absolute;
  top: -4px;
  width: 4px;
  height: 38px;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  transition: left 0.3s ease;
}

.rsi-bar-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 0.75rem;
  color: #9ca3af;
}

/* Price Movement Diagram */
.price-movement-diagram {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  margin: 12px 0;
}

.price-point {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.price-point-label {
  font-size: 0.75rem;
  color: #b3c3d6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.price-point-value {
  font-size: 1rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
}

.price-point-value.entry {
  background: rgba(96, 165, 250, 0.2);
  color: #60a5fa;
  border: 1px solid #60a5fa;
}

.price-point-value.target {
  background: rgba(16, 185, 129, 0.2);
  color: var(--success);
  border: 1px solid var(--success);
}

.price-point-value.stop {
  background: rgba(239, 68, 68, 0.2);
  color: var(--danger);
  border: 1px solid var(--danger);
}

.price-arrow {
  font-size: 1.5rem;
  color: var(--brand-main);
}

/* Risk/Reward Indicator */
.risk-reward-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  margin: 12px 0;
}

.risk-reward-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--success);
}

.risk-reward-label {
  font-size: 0.9rem;
  color: #b3c3d6;
}

/* Analysis Text Content */
.analysis-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #e5e7eb;
  margin: 8px 0;
}

.analysis-text strong {
  color: var(--brand-main);
  font-weight: 600;
}

.analysis-list {
  list-style: none;
  padding: 0;
  margin: 8px 0;
}

.analysis-list li {
  padding: 6px 0 6px 20px;
  position: relative;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #d1d5db;
}

.analysis-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--brand-main);
  font-weight: 700;
}

/* Analysis Icon in Symbol Column */
.analysis-icon-inline {
  border: none;
  background: none;
  color: var(--brand-main);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  padding: 0 4px 0 0;
  margin: 0;
  transition: transform 0.13s, color 0.2s;
  vertical-align: middle;
  opacity: 0.8;
}

.analysis-icon-inline:hover {
  transform: scale(1.25);
  opacity: 1;
  color: var(--brand-accent);
}

/* =============================================================================
    END OF THEME - Kurumsal ve sürdürülebilir CSS altyapısı.
============================================================================= */
/* =============================================================================
   CATEGORY BAR (Simple text, section header style)
============================================================================= */

.category-bar {
  background: #22304e;
  padding: 5px 15px;
  display: flex;
  gap: 15px;
  align-items: center;
  position: fixed;
  top: 45px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 100%;
  width: calc(100vw - 40px);
  z-index: 99;
  box-sizing: border-box;
}

.category-item {
  background: none !important;
  border: none !important;
  color: rgba(77, 201, 255, 0.45);
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  padding: 0 !important;
  margin: 0;
  transition: color 0.2s ease;
  white-space: nowrap;
  outline: none;
}

.category-item:hover {
  color: rgba(77, 201, 255, 0.7);
}

.category-item.active {
  color: var(--brand-main) !important;
  font-weight: 500;
}

/* =============================================================================
   END CATEGORY BAR
============================================================================= */

/* =============================================================================
   PHASE 5: FRONTEND ENHANCEMENTS
============================================================================= */

/* Phase 5 Status Icons (Table) */
.whale-alert-icon,
.trailing-active-icon,
.sltp-adjusted-icon {
  display: inline-block;
  font-size: 14px;
  margin-right: 4px;
  cursor: help;
  transition: transform 0.2s ease;
}

.whale-alert-icon:hover,
.trailing-active-icon:hover,
.sltp-adjusted-icon:hover {
  transform: scale(1.2);
}

.whale-alert-icon {
  animation: whale-pulse 2s ease-in-out infinite;
}

@keyframes whale-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Phase 5 Cards (Analysis Panel) */
.phase5-card {
  background: linear-gradient(135deg, rgba(77, 201, 255, 0.05) 0%, rgba(45, 247, 178, 0.03) 100%);
  border-left: 3px solid var(--brand-main);
  padding: 16px;
  margin-top: 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.phase5-card:hover {
  background: linear-gradient(135deg, rgba(77, 201, 255, 0.08) 0%, rgba(45, 247, 178, 0.05) 100%);
  border-left-color: var(--brand-accent);
  transform: translateX(2px);
}

.phase5-card .analysis-section-title {
  color: var(--brand-main);
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 12px;
}

.phase5-reasoning {
  background: rgba(0, 0, 0, 0.2);
  padding: 10px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.5;
  margin-top: 10px;
  color: var(--grey);
}

/* Trailing Active Card */
.trailing-active {
  border-left-color: var(--warning);
  background: linear-gradient(135deg, rgba(255, 225, 71, 0.08) 0%, rgba(255, 225, 71, 0.03) 100%);
}

.trailing-active .analysis-section-title {
  color: var(--warning);
}

/* Whale Alert Card */
.whale-alert {
  border-left-color: var(--danger);
  background: linear-gradient(135deg, rgba(255, 57, 91, 0.08) 0%, rgba(255, 57, 91, 0.03) 100%);
  animation: whale-alert-pulse 3s ease-in-out infinite;
}

.whale-alert .analysis-section-title {
  color: var(--danger);
}

@keyframes whale-alert-pulse {
  0%, 100% { box-shadow: 0 0 0 rgba(255, 57, 91, 0); }
  50% { box-shadow: 0 0 20px rgba(255, 57, 91, 0.3); }
}

/* Phase 5 Value Colors */
.analysis-value.positive {
  color: var(--success);
}

.analysis-value.negative {
  color: var(--danger);
}

.analysis-value.neutral {
  color: var(--grey);
}

/* Small text inside values */
.analysis-value small {
  color: var(--grey);
  font-size: 11px;
  opacity: 0.7;
}

/* Phase 5 Table Columns */
.phase5-sltp-cell {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.sl-red {
  color: var(--danger);
  font-weight: 600;
}

.tp-green {
  color: var(--success);
  font-weight: 600;
}

/* Risk/Reward Ratio */
.rr-excellent {
  color: var(--success);
  font-weight: 600;
}

.rr-good {
  color: var(--brand-accent);
  font-weight: 500;
}

.rr-normal {
  color: var(--grey);
}

/* Trailing Status */
.trailing-urgent {
  color: var(--danger);
  font-weight: 600;
  animation: pulse-urgent 1.5s ease-in-out infinite;
}

.trailing-moderate {
  color: var(--warning);
  font-weight: 500;
}

.trailing-low {
  color: var(--brand-main);
}

.trailing-hold {
  color: var(--grey);
  opacity: 0.6;
}

@keyframes pulse-urgent {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Whale Alert */
.whale-urgent {
  color: var(--danger);
  font-weight: 700;
  animation: whale-pulse-urgent 1s ease-in-out infinite;
}

.whale-warning {
  color: var(--warning);
  font-weight: 600;
}

.whale-monitor {
  color: var(--brand-main);
  font-weight: 500;
}

.whale-none {
  color: var(--success);
  opacity: 0.5;
}

@keyframes whale-pulse-urgent {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}

/* Partial Close % */
.partial-high {
  color: var(--danger);
  font-weight: 700;
}

.partial-medium {
  color: var(--warning);
  font-weight: 600;
}

.partial-low {
  color: var(--brand-main);
  font-weight: 500;
}

.partial-none {
  color: var(--grey);
  opacity: 0.5;
}

/* =============================================================================
   END PHASE 5
============================================================================= */

