@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Outfit:wght@300;400;600;700&display=swap');

/* CSS DEĞİŞKENLERİ */
:root {
  --bg:          #0a0e17;
  --bg2:         #111827;
  --bg3:         #1a2236;
  --border:      #1e2d45;
  --accent:      #00d4ff;
  --green:       #00ff88;
  --red:         #ff4560;
  --yellow:      #ffd166;
  --text:        #c9d8f0;
  --text-dim:    #5a7a99;
  --font-mono:   'Share Tech Mono', monospace;
  --font-main:   'Outfit', sans-serif;
  --radius:      10px;
  --shadow:      0 4px 24px rgba(0,0,0,0.5);
  --transition:  0.25s ease;
}

/* RESET - BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  font-size: 15px;
  min-height: 100vh;
  padding: 0 0 40px;
}

/* arka plan ızgara deseni */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ÜST BAR */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 28px;
  background: rgba(10,14,23,0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.logo {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--accent);
  letter-spacing: 2px;
  white-space: nowrap;
}

.stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex: 1;
  justify-content: center;
}

.stat-box {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 130px;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--accent);
  margin-top: 2px;
  transition: color var(--transition);
}

.stat-value.positive { color: var(--green); }
.stat-value.negative { color: var(--red); }

/* RESET BUTONU */
.reset-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 8px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 0.85rem;
  transition: all var(--transition);
  white-space: nowrap;
}
.reset-btn:hover {
  border-color: var(--red);
  color: var(--red);
}

/* YENİ 3 SÜTUNLU ANA GRID YAPISI */
.main-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 250px 1fr 340px; /* Sol: Haber, Orta: Grafik/Tablo, Sağ: İşlem/Profil */
  gap: 20px;
  padding: 24px 28px 0;
  max-width: 1600px; /* 3 sütun sığsın diye genişlettik */
  margin: 0 auto;
  align-items: start;
}

/* KART */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  z-index: 1;
}

.card-title {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-dim);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* PİYASA TABLOSU */
.ticker-info {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 12px;
  font-family: var(--font-mono);
}

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

.market-table th {
  text-align: left;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}

.market-table td {
  padding: 10px 10px;
  border-bottom: 1px solid rgba(30,45,69,0.5);
  font-family: var(--font-mono);
  font-size: 0.92rem;
  vertical-align: middle;
}

.market-table tr:hover td {
  background: rgba(0,212,255,0.04);
  cursor: pointer;
}

.market-table tr.selected td {
  background: rgba(0,212,255,0.08);
}

.stock-ticker {
  color: var(--accent);
  font-weight: bold;
}

.stock-company {
  font-family: var(--font-main);
  font-size: 0.85rem;
  color: var(--text-dim);
}

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

.change-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
}
.change-badge.up   { background: rgba(0,255,136,0.12); color: var(--green); }
.change-badge.down { background: rgba(255,69,96,0.12);  color: var(--red); }
.change-badge.flat { background: rgba(90,122,153,0.12); color: var(--text-dim); }

/* SAĞ VE ORTA PANELLER */
.right-panel, .center-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* FORM */
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.form-group input {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  padding: 10px 14px;
  outline: none;
  transition: border-color var(--transition);
}
.form-group input:focus { border-color: var(--accent); }
.form-group input[readonly] { color: var(--accent); cursor: default; }

.estimated-cost {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--yellow);
  min-height: 40px;
}

/* MESAJLAR */
.error-msg, .success-msg {
  font-size: 0.82rem;
  min-height: 20px;
  margin-bottom: 8px;
  font-family: var(--font-mono);
}
.error-msg { color: var(--red); }
.success-msg { color: var(--green); }

/* SEKME (ADET / % BÜTÇE) */
.mode-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px;
}

.mode-tab {
  flex: 1;
  padding: 7px 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.5px;
}

.mode-tab.active { background: var(--accent); color: var(--bg); }
.mode-tab:not(.active):hover { color: var(--text); }

.mode-panel { display: block; }
.mode-panel.hidden { display: none; }

/* SLIDER */
.slider-wrapper { margin: 6px 0 4px; }
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 5px; border-radius: 3px;
  background: linear-gradient(to right, var(--accent) 0%, var(--accent) var(--slider-pct, 25%), var(--border) var(--slider-pct, 25%), var(--border) 100%);
  outline: none; cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px rgba(0,212,255,0.5); cursor: pointer; transition: box-shadow var(--transition);
}
input[type="range"]::-webkit-slider-thumb:hover { box-shadow: 0 0 14px rgba(0,212,255,0.8); }

.slider-marks { display: flex; justify-content: space-between; margin-top: 4px; font-size: 0.68rem; color: var(--text-dim); font-family: var(--font-mono); }
.slider-info { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-family: var(--font-mono); font-size: 0.82rem; flex-wrap: wrap; }
.slider-budget-label { color: var(--text-dim); }
#sliderBudgetAmount  { color: var(--yellow); }
#sliderShareCount    { color: var(--accent); }

/* BUTONLAR */
.trade-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn { padding: 12px; border: none; border-radius: 8px; font-family: var(--font-main); font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: all var(--transition); letter-spacing: 0.5px; }
.btn-buy { background: rgba(0,255,136,0.15); color: var(--green); border: 1px solid rgba(0,255,136,0.3); }
.btn-buy:hover { background: rgba(0,255,136,0.25); box-shadow: 0 0 16px rgba(0,255,136,0.2); }
.btn-sell { background: rgba(255,69,96,0.15); color: var(--red); border: 1px solid rgba(255,69,96,0.3); }
.btn-sell:hover { background: rgba(255,69,96,0.25); box-shadow: 0 0 16px rgba(255,69,96,0.2); }

/* PORTFÖY */
.portfolio-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); font-family: var(--font-mono); font-size: 0.85rem; }
.portfolio-item:last-child { border-bottom: none; }
.port-ticker { color: var(--accent); font-weight: bold; }
.port-info   { color: var(--text-dim); font-size: 0.78rem; margin-top: 2px; }
.port-pnl    { text-align: right; }
.port-pnl.pos { color: var(--green); }
.port-pnl.neg { color: var(--red); }

/* =============================================
   GEÇMİŞ (KAYDIRILABİLİR LİSTE)
   ============================================= */
.history-card { 
  grid-column: 1 / -1 !important; 
}

/* HATA BURADAYDI: .history-list yerine #historyList (ID) kullanmalıyız */
#historyList { 
  display: flex; 
  flex-direction: column; 
  gap: 8px; 
  max-height: 380px; /* Yaklaşık 10 işlemin sığacağı yükseklik (isteğine göre değiştirebilirsin) */
  overflow-y: auto; 
  padding-right: 8px;
}

/* Kaydırma çubuğu tasarımı (Siberpunk temaya uygun) */
#historyList::-webkit-scrollbar { 
  width: 6px; 
}
#historyList::-webkit-scrollbar-track { 
  background: var(--bg3); 
  border-radius: 4px;
}
#historyList::-webkit-scrollbar-thumb { 
  background: var(--text-dim); 
  border-radius: 4px; 
}
#historyList::-webkit-scrollbar-thumb:hover { 
  background: var(--accent); 
}

.history-item { 
  display: flex; 
  align-items: center; 
  gap: 14px; 
  padding: 8px 12px; 
  background: var(--bg3); 
  border-radius: 6px; 
  font-family: var(--font-mono); 
  font-size: 0.82rem; 
  animation: fadeIn 0.3s ease; 
}

@keyframes fadeIn { 
  from { opacity: 0; transform: translateY(-4px); } 
  to { opacity: 1; transform: translateY(0); } 
}

.history-type.buy  { color: var(--green); min-width: 30px; }
.history-type.sell { color: var(--red);   min-width: 30px; }
.history-ticker    { color: var(--accent); min-width: 55px; }
.history-detail    { color: var(--text-dim); flex: 1; }
.history-time      { color: var(--text-dim); font-size: 0.75rem; }
.history-total     { color: var(--yellow); text-align: right; min-width: 90px; }

/* FİYAT FLASH ANİMASYONU */
@keyframes flashGreen { 0% { background: rgba(0,255,136,0.2); } 100% { background: transparent; } }
@keyframes flashRed { 0% { background: rgba(255,69,96,0.2); } 100% { background: transparent; } }
.flash-green td { animation: flashGreen 0.6s ease; }
.flash-red   td { animation: flashRed   0.6s ease; }

.select-btn { background: rgba(0,212,255,0.1); border: 1px solid rgba(0,212,255,0.25); color: var(--accent); padding: 4px 12px; border-radius: 5px; cursor: pointer; font-size: 0.78rem; font-family: var(--font-main); transition: all var(--transition); }
.select-btn:hover { background: rgba(0,212,255,0.2); }

/* RESPONSİVE */
@media (max-width: 1200px) {
  .main-grid {
    grid-template-columns: 250px 1fr; /* Sağ panel alta düşer */
  }
  .right-panel { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .main-grid { grid-template-columns: 1fr; padding: 16px; }
  .right-panel { grid-template-columns: 1fr; }
  .history-card { margin-left: 16px; margin-right: 16px; }
  .topbar { padding: 12px 16px; }
  .stats { gap: 6px; }
  .stat-box { min-width: 100px; padding: 6px 10px; }
}

@media (max-width: 480px) {
  .stats { width: 100%; }
  .trade-buttons { grid-template-columns: 1fr; }
}

/* =============================================
   AIRDROP BANNER
   ============================================= */
.airdrop-banner {
  position: fixed; bottom: 30px; right: 30px; background: linear-gradient(135deg, #7928ca, #ff007a); color: white; padding: 16px 24px; border-radius: 12px;
  box-shadow: 0 10px 30px rgba(255, 0, 122, 0.5); display: flex; align-items: center; gap: 16px; z-index: 1000;
  animation: slideInAirdrop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); transition: all 0.3s ease;
}
.airdrop-banner.hidden { display: none; }
.airdrop-banner:hover { transform: translateY(-5px) scale(1.02); box-shadow: 0 15px 40px rgba(255, 0, 122, 0.7); }
.airdrop-btn { background: rgba(255, 255, 255, 0.2); border: 1px solid rgba(255, 255, 255, 0.5); color: white; padding: 8px 20px; border-radius: 8px; font-weight: bold; font-family: var(--font-mono); font-size: 1rem; cursor: pointer; transition: all 0.2s; }
.airdrop-btn:hover { background: white; color: #ff007a; }
@keyframes slideInAirdrop { from { transform: translateX(150%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* =============================================
   HIZLI İŞLEM MENÜSÜ
   ============================================= */
.portfolio-item { position: relative; overflow: hidden; }
.port-quick-trade { position: absolute; right: -100%; top: 0; height: 100%; display: flex; align-items: center; gap: 6px; background: rgba(26, 34, 54, 0.95); backdrop-filter: blur(4px); padding: 0 10px; transition: right 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.portfolio-item:hover .port-quick-trade { right: 0; }
.quick-btn { background: var(--bg2); border: 1px solid var(--border); color: var(--text); padding: 6px 10px; border-radius: 6px; font-family: var(--font-main); font-size: 0.75rem; font-weight: bold; cursor: pointer; transition: all 0.2s; }
.quick-btn.buy:hover { border-color: var(--green); color: var(--green); background: rgba(0,255,136,0.1); }
.quick-btn.sell:hover { border-color: var(--yellow); color: var(--yellow); background: rgba(255,209,102,0.1); }
.quick-btn.all:hover { border-color: var(--red); color: white; background: var(--red); }

/* =============================================
   MODAL
   ============================================= */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(10, 15, 25, 0.85); backdrop-filter: blur(5px); display: flex; justify-content: center; align-items: center; z-index: 2000; opacity: 1; transition: opacity 0.3s; }
.modal.hidden { opacity: 0; pointer-events: none; }
.modal-content { width: 90%; max-width: 600px; max-height: 80vh; overflow-y: auto; position: relative; border: 1px solid var(--border); box-shadow: 0 10px 40px rgba(0, 212, 255, 0.15); }
.close-btn { position: absolute; top: 15px; right: 20px; font-size: 1.8rem; color: var(--text); cursor: pointer; transition: color 0.2s; line-height: 1; }
.close-btn:hover { color: var(--red); }
.modal-body h3 { color: var(--accent); margin-top: 20px; margin-bottom: 8px; font-size: 1.1rem; border-bottom: 1px solid var(--border); padding-bottom: 4px; }
.modal-body p, .modal-body ul { font-size: 0.9rem; line-height: 1.6; margin-bottom: 10px; color: var(--text); }
.modal-body ul { list-style-type: none; padding-left: 0; }
.modal-body li { margin-bottom: 8px; padding-left: 15px; position: relative; }
.modal-body li::before { content: "▹"; color: var(--accent); position: absolute; left: 0; }

/* =============================================
   DİKEY CANLI HABER AKIŞI (SABİT - YAPIŞKAN DEĞİL)
   ============================================= */

/* Bütün "sticky" (yapışkan) kodlarını sildik. Artık diğer menüler gibi yerinde sabit duracak. */
.left-news-panel {
  display: block;
}

.left-news-panel .card {
  display: flex;
  flex-direction: column;
  max-height: 600px; /* Kartın sayfanın dibine kadar uzamasını engeller */
}

/* Haberler çok artarsa sadece kendi kutusu içinde kaydırılabilir olacak */
.news-feed-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  flex: 1;
  padding-right: 5px;
}

.news-feed-container::-webkit-scrollbar { width: 4px; }
.news-feed-container::-webkit-scrollbar-track { background: var(--bg3); }
.news-feed-container::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.news-item {
  font-size: 0.82rem;
  padding: 10px 12px;
  background: var(--bg3);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  color: var(--text);
  animation: slideDown 0.4s ease-out;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  line-height: 1.4;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-15px); }
  to { opacity: 1; transform: translateY(0); }
}

.crypto-icon { 
  font-size: 0.7rem; 
  background: rgba(247, 147, 26, 0.15); 
  color: #f7931a; 
  padding: 2px 6px; 
  border-radius: 4px; 
  margin-left: 6px; 
  vertical-align: middle; 
  font-weight: bold; 
}

/* =============================================
   ŞİRKET VE TRADER KARTLARI
   ============================================= */
.trader-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-main);
}

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

.trader-name { font-weight: bold; color: var(--text); font-size: 0.9rem; }
.trader-style { font-size: 0.7rem; padding: 2px 6px; border-radius: 4px; background: rgba(255,255,255,0.05); color: var(--text-dim); }

.trader-stats { font-family: var(--font-mono); font-size: 0.8rem; display: flex; flex-direction: column; gap: 4px; }
.trader-stats span { display: flex; justify-content: space-between; }

.trader-btn {
  margin-top: 5px;
  padding: 6px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: var(--accent);
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-weight: bold;
  transition: all 0.2s;
}
.trader-btn:hover { background: rgba(0, 212, 255, 0.2); }
.trader-btn:disabled { background: transparent; border-color: var(--border); color: var(--text-dim); cursor: not-allowed; }

.trader-status { font-size: 0.75rem; text-align: center; margin-top: 5px; font-weight: bold; }
.status-working { color: var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0% { opacity: 0.7; } 50% { opacity: 1; } 100% { opacity: 0.7; } }

/* TRADER NADİRLİK DERECELERİ VE OFİS GELİŞTİRMELERİ */
.rarity-common { color: var(--text); }
.rarity-rare { color: var(--accent); font-weight: bold; }
.rarity-legendary { color: var(--yellow); font-weight: bold; text-shadow: 0 0 8px rgba(255, 209, 102, 0.4); }

.upgrade-item {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--bg3); border: 1px solid var(--border); border-radius: 8px; padding: 15px;
}
.upgrade-info h4 { color: var(--accent); margin-bottom: 4px; font-size: 1rem; }
.upgrade-info p { color: var(--text-dim); font-size: 0.8rem; font-family: var(--font-mono); }


/* =============================================
   MÜKEMMEL MOBİL UYGULAMA ARAYÜZÜ (FULL MOBILE)
   (Sergideki Ziyaretçiler İçin)
   ============================================= */

/* Masaüstünde alt menüyü gizle */
.mobile-bottom-nav {
  display: none; 
}

/* SADECE TELEFON VE TABLET İÇİN (900px altı) */
@media (max-width: 900px) {
  
  /* 1. GENEL SAYFA YAPISI */
  body, html {
    overflow: hidden; /* Sayfanın genel aşağı kaymasını engelle, Native App hissi */
    height: 100vh;
    width: 100%;
    position: fixed; /* Kayma sorununu kökten çözer */
  }

  .main-grid {
    display: flex;
    flex-direction: column;
    height: 100%; /* Ekran boyunu tam kapla */
    margin: 0;
    padding: 0;
  }

  /* 2. COMPACT ÜST İSTATİSTİK BAR (Sleek App Bar) */
  .stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 satır, 2 sütun */
    gap: 4px;
    background: var(--bg2); /* Box değil, integrated bar */
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    padding: 8px;
    margin: 0;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  }

  .stat-card {
    padding: 4px;
    text-align: left;
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
  }

  .stat-label {
    font-size: 0.65rem;
    color: var(--text-dim);
    margin: 0;
    text-transform: uppercase;
  }

  .stat-value {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--text);
  }

  /* TradeSimX Logosu ve butonları mobilde gizle (Alan tasarrufu) */
  #logoBlock, #companyBtn, #infoBtn, #resetBtn {
    display: none !important;
  }

  /* 3. İÇERİK ALANI (Sekmeler Arası Geçiş) */
  .center-panel, 
  .right-panel, 
  .left-news-panel,
  .history-card {
    display: none !important; /* Önce her şeyi gizle */
    width: 100% !important;
    height: calc(100% - 130px); /* Üst bar + Alt nav arası mesafe (Hassas ayar) */
    position: fixed;
    top: 75px; /* Üst barın bittiği yer */
    left: 0;
    right: 0;
    bottom: 55px; /* Alt barın başladığı yer */
    overflow-y: auto; /* Sadece panel içi kaysın */
    -webkit-overflow-scrolling: touch;
    margin: 0;
    padding: 10px;
    box-sizing: border-box;
    background: var(--bg1);
  }

  /* Aktif sekmeleri göster (Önceki JS mantığımızla uyumlu) */
  body.show-market .center-panel {
    display: flex !important;
    flex-direction: column;
  }
  
  body.show-trade .right-panel {
    display: flex !important;
    flex-direction: column;
  }
  
  body.show-news .left-news-panel {
    display: block !important;
  }

  /* 4. SEKME ÖZEL TASARIMLARI (PİYASA) */
  
  /* Hisse Grafiği */
  .history-card {
    display: none !important; /* Piyasa sekmesinde sadece chart ve liste olsun */
  }

  .center-panel .card:first-child {
    max-height: 200px; /* Grafik çok yer kaplamasın */
    margin-bottom: 10px;
  }

  .card-header h2 { font-size: 0.8rem; }
  .history-card .card-content { height: 160px; } /* Chart boyutu */

  /* Piyasa Listesi (Simplification) */
  .market-table-container {
    width: 100%;
    overflow-x: hidden; /* Sağa kaymayı engelle */
  }

  .market-table-container .card-content {
    padding: 0; /* Boşlukları daralt */
  }

  /* Tablodaki gereksiz sütunları gizle (Hisse Adı, Fiyat, Değişim yeter) */
  .market-table thead th:nth-child(2), /* Adet */
  .market-table thead th:nth-child(5), /* Kar/Zarar */
  .market-table thead th:nth-child(6)  /* İşlem */ {
    display: none;
  }

  .market-table tbody td:nth-child(2),
  .market-table tbody td:nth-child(5),
  .market-table tbody td:nth-child(6) {
    display: none;
  }

  .market-table {
    font-size: 0.75rem; /* Yazıları oku */
    width: 100%;
  }

  .market-table tr {
    display: flex; /* Flexbox ile satırı düzenle */
    justify-content: space-between;
    padding: 8px;
    border-bottom: 1px solid var(--border);
  }

  .market-table tbody tr:active {
    background: var(--bg2); /* Basma hissiyatı */
  }

  .market-table tr th, .market-table tr td {
    padding: 0;
    border: none;
    width: auto;
  }

  /* 5. MOBİL ALT MENÜ TASARIMI (Sleek) */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 55px;
    background: var(--bg2);
    border-top: 1px solid var(--border);
    z-index: 2000;
    justify-content: space-around;
    padding: 0;
    margin: 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.5);
  }

  .mob-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-family: var(--font-main);
    font-size: 0.65rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 25%;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent; /* Mavi basma efektini sil */
  }

  .mob-btn.active {
    color: var(--accent);
    font-weight: bold;
  }

  .mob-btn:active {
    transform: scale(0.9); /* Basma efekti */
  }

  /* 6. MODAL VE DİĞERLERİ */
  #companyModal .modal-content {
    width: 95% !important;
    height: 90vh;
    padding: 15px;
    overflow-y: auto;
  }
}