body {
  font-family: Arial, sans-serif;
}

.token-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

/* CHANGED: Removed transition from .token-panel to avoid flicker */
.token-panel {
  border: 1px solid #ccc;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  /* Remove or comment out transition to avoid vanish/fade effect */
  /* transition: transform 0.5s ease, opacity 0.5s ease; */
  opacity: 1;
  position: relative;
}

/* CHANGED: We can remove or comment out .token-panel.moved if it's not used anymore */
/*
.token-panel.moved {
  transform: translateY(10px);
}
*/

.left-section {
  width: 30%;
}

.center-section {
  width: 40%;
  border: 1px solid #ddd;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  position: relative;
  padding: 0;
  flex-direction: column;
  gap: 10px;
}

.right-section {
  width: 25%;
  font-size: 0.9em;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.token-name {
  font-weight: bold;
  font-size: 1.2em;
  display: flex;
  align-items: center;
  gap: 5px;
}

.small-label {
  font-size: 0.9em;
  color: #666;
}

.tracked-buys-table {
  border-collapse: collapse;
  width: 100%;
  margin-top: 5px;
}

.tracked-buys-table th,
.tracked-buys-table td {
  border: 1px solid #ccc;
  padding: 4px;
  text-align: center;
  font-size: 0.85em;
}

/* Calls table with headings */
.tracked-calls-table {
  border-collapse: collapse;
  width: 100%;
  margin-top: 5px;
}
.tracked-calls-table th,
.tracked-calls-table td {
  border: 1px solid #ccc;
  padding: 4px;
  text-align: center;
  font-size: 0.85em;
  cursor: default;
}

.social-links a {
  margin-right: 5px;
  text-decoration: none;
  font-size: 0.9em;
  color: blue;
}

.notification-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
}

.notification {
  background: #333;
  color: #fff;
  padding: 10px;
  border-radius: 5px;
  font-size: 0.9em;
  position: relative;
  opacity: 0.9;
}

.notification .close-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  background: none;
  border: none;
  color: #aaa;
  cursor: pointer;
  font-size: 1em;
}

/* Timeframe Selection and Stats */
.timeframe-selector {
  display: flex;
  margin-top: 10px;
  cursor: pointer;
  font-size: 0.8em;
  width: 100%;
}
.timeframe-selector div {
  width: 25%;
  text-align: center;
  padding: 5px;
  border: 1px solid #aaa;
  border-radius: 3px;
  position: relative;
}
.timeframe-selector div.active {
  background: #444;
  color: #fff;
}

.stats-info {
  margin-top: 10px;
  font-size: 0.8em;
}
.stats-info table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 5px;
}
.stats-info th, .stats-info td {
  padding: 4px;
  text-align: center;
  border-bottom: 1px solid #ccc;
}

.positive {
  color: #4caf50;
}
.negative {
  color: #f44336;
}

.price-change {
  font-weight: bold;
  font-size: 135%;
  display: block;
  margin-top: 2px;
}

/* Top Stats Row (MCAP, Liquidity, Holders) */
.top-stats-row {
  display: flex;
  width: 100%;
  margin-top: 5px;
  gap: 5px;
  position: relative;
}
.stat-box {
  flex: 1;
  border: 1px solid #aaa;
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 40px;
  text-align: center;
  font-size: 0.85em;
  position: relative;
}
.stat-label {
  font-weight: bold;
  font-size: 0.9em;
}

/* Liquidity Lock Icon */
.liquidity-lock-icon {
  position: absolute;
  right: 5px;
  font-size: 1.1em;
  top: 50%;
  transform: translateY(-50%);
}

/* Images */
.image-container {
  position: relative;
  width: 100%;
  height: auto;
  margin-bottom: 5px;
}
.banner-img {
  width: 100%;
  display: none;
}
.logo-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  top: 0;
}

.copy-btn {
  margin-left: 5px;
  cursor: pointer;
  font-size: 0.8em;
  background: #eee;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 2px 5px;
}

/* Social buttons */
.social-buttons {
  position: absolute;
  bottom: -12.5px;
  width: 80%;
  left: 10%;
  height: 25px;
  display: flex;
  gap: 5px;
}
.social-button {
  height: 25px;
  text-align: center;
  border: 1px solid #ccc;
  background: #eee;
  line-height: 25px;
  font-size: 0.8em;
  text-decoration: none;
  color: #333;
  border-radius: 3px;
  display: inline-block;
}

/* Tax warning banner */
.tax-warning {
  background: #ffcc00;
  padding: 5px;
  font-size: 0.8em;
  font-weight: bold;
  border: 1px solid #aaa;
  border-radius: 3px;
  text-align: center;
  color: #333;
  margin-top: 15px;
}

/* Smaller font for age and boost */
.age-span,
.boost-span {
  font-size: 65%;
}

/* Chart styling */
.close-chart-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  background: #eee;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 2px 5px;
  font-size: 0.8em;
  cursor: pointer;
  z-index: 999;
}

.load-chart-btn {
  cursor: pointer;
  background: #444;
  color: #fff;
  border: none;
  border-radius: 3px;
  padding: 5px 10px;
}

/* Modal for calls */
.calls-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.calls-modal {
  background: #fff;
  padding: 20px;
  width: 750px;
  max-height: 80vh;
  overflow-y: auto;
  border-radius: 5px;
  position: relative;
}
.calls-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  font-size: 1.2em;
  color: #aaa;
}
.all-calls-table {
  border-collapse: collapse;
  width: 100%;
  margin-top: 10px;
}
.all-calls-table th,
.all-calls-table td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: left;
}

/* Bundles line */
.bundle-line {
  font-weight: bold;
}
