.stock-detail{max-width:1280px;margin:0 auto;padding:24px;min-width:0}
.stock-detail header{margin:24px 0}.stock-detail h1 small{font-size:18px;color:#adb9cc}
.activity-card{margin-top:20px}.activity-chart{width:100%;height:320px;min-width:0}
.stock-detail h1,.stock-detail p{overflow-wrap:anywhere}.stock-detail .card{padding:20px}
#stockChart{width:100%;height:560px;min-width:0}.chart-note{color:#b9c4d6;font-size:15px;line-height:1.7}
@media(max-width:600px){.stock-detail{padding:12px}.stock-detail .card{padding:12px}.stock-detail h1 small{display:block;margin-top:8px}#stockChart{height:500px}}


/* ===== Static Modal & Interaction Styles ===== */
.chart-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 9, 15, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 14px;
  box-sizing: border-box;
}

.chart-modal-container {
  background: #0d1421;
  border: 1px solid #223048;
  border-radius: 16px;
  width: 100%;
  max-width: 960px;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.75);
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.chart-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid #1c2638;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: #111a2b;
}

.modal-close-btn {
  background: #1b263b;
  border: 1px solid #2c3e5a;
  color: #adbcd0;
  font-size: 22px;
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.modal-close-btn:hover {
  background: #2a3b5c;
  color: #ffffff;
}

.chart-modal-body {
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

.stock-modal-link {
  color: #58a6ff;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.15s;
}

.stock-modal-link:hover {
  color: #79c0ff;
  text-decoration: underline;
}

.static-pill {
  display: inline-block;
  padding: 4px 10px;
  background: #13243a;
  color: #58a6ff;
  border: 1px solid #1e3a5f;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
