* {
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  margin: 0;
  background: radial-gradient(circle at top, #0b3a2f, #020806);
  color: #cffff4;
}

.app {
  max-width: 920px;
  margin: auto;
  padding: 30px 20px 60px;
}

.app-title {
  text-align: center;
  font-size: 34px;
  color: #7fffe1;
  margin-bottom: 4px;
}

.app-subtitle {
  text-align: center;
  opacity: 0.8;
  margin-bottom: 25px;
}

.scan-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.scan-bar input {
  width: 420px;
  padding: 10px;
  background: #041a14;
  border: 1px solid #2cffc9;
  border-radius: 6px;
  color: #bfffee;
}

.scan-bar button {
  padding: 10px 18px;
  background: #2cffc9;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.panel {
  border: 1px solid rgba(44, 255, 201, 0.6);
  border-radius: 12px;
  margin-bottom: 18px;
  background: linear-gradient(180deg, rgba(12,50,40,0.8), rgba(3,10,8,0.9));
  box-shadow: 0 0 25px rgba(44,255,201,0.08);
}

.panel-title {
  background: linear-gradient(90deg, #2cffc9, #1dbfa1);
  color: #02231b;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 10px;
  width: fit-content;
  margin: 12px;
}

.panel-body {
  padding: 10px 16px 18px;
  font-size: 14px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.footer {
  text-align: center;
  opacity: 0.5;
  font-size: 12px;
  margin-top: 40px;
}

a {
  color: #5dffe1;
  text-decoration: none;
}

/* ===== MAIN ANALYSIS STYLES ===== */

.main-analysis {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.analysis-table {
  flex: 1;
}

.analysis-table .row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(44,255,201,0.15);
}

.analysis-table span {
  opacity: 0.7;
}

.analysis-table strong {
  color: #7fffe1;
}

/* TOKEN LOGO */

.token-logo-frame {
  width: 130px;
  height: 130px;
  border-radius: 14px;
  background: linear-gradient(145deg, #0e3b31, #041410);
  border: 1px solid rgba(44,255,201,0.6);
  box-shadow:
    0 0 18px rgba(44,255,201,0.25),
    inset 0 0 20px rgba(44,255,201,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.token-logo-frame img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

/* existing styles unchanged above */

.analysis-table .row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(44,255,201,0.15);
}

.analysis-table span {
  opacity: 0.7;
}

.analysis-table .value {
  color: #7fffe1;
  font-weight: 600;
  text-shadow: 0 0 6px rgba(127,255,225,0.35);
}

/* TOKEN LOGO */

.token-logo-frame {
  width: 130px;
  height: 130px;
  border-radius: 14px;
  background: linear-gradient(145deg, #0e3b31, #041410);
  border: 1px solid rgba(44,255,201,0.6);
  box-shadow:
    0 0 18px rgba(44,255,201,0.25),
    inset 0 0 20px rgba(44,255,201,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.token-logo-frame img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
}
/* ===== LIVE MARKET CAP ===== */

#marketCap {
  position: relative;
}

#marketCap canvas {
  width: 100%;
  border-radius: 10px;
  background: radial-gradient(
    circle at top,
    rgba(44,255,201,0.12),
    rgba(0,0,0,0.35)
  );
}

.mc-value {
  position: absolute;
  top: 10px;
  right: 14px;
  font-weight: 700;
  color: #7fffe1;
  text-shadow: 0 0 8px rgba(127,255,225,0.5);
}
/* ===== TOP HOLDERS PANEL ===== */

.holders-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.holder-row {
  display: grid;
  grid-template-columns: 40px 90px 90px 1fr;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  transition: background 0.2s ease;
}

.holder-row:hover {
  background: rgba(44, 255, 201, 0.08);
}

.holder-rank {
  font-size: 12px;
  opacity: 0.7;
}

.holder-address {
  font-size: 12px;
  color: #7fffe1;
  text-decoration: none;
}

.holder-address:hover {
  text-decoration: underline;
}

.holder-balance {
  font-size: 12px;
  text-align: right;
  color: #cffff4;
}

.holder-percent {
  font-size: 12px;
  position: relative;
}

.bar-bg {
  width: 100%;
  height: 6px;
  margin-top: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(
    90deg,
    #2cffc9,
    #7fffe1
  );
  box-shadow: 0 0 8px rgba(44, 255, 201, 0.6);
  animation: growBar 0.6s ease-out;
}

@keyframes growBar {
  from {
    width: 0%;
  }
}
/* ===== SCAN SIGNALS PANEL ===== */

.signals-table {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.signal-row {
  display: grid;
  grid-template-columns: 1fr 70px;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255,255,255,0.05);
}

.signal-label {
  font-size: 13px;
  opacity: 0.85;
}

.signal-score {
  text-align: right;
  font-weight: 700;
  font-size: 13px;
}

.signal-score span {
  opacity: 0.5;
  font-weight: 400;
}

.signal-bar {
  grid-column: 1 / -1;
  height: 6px;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
}

.signal-fill {
  height: 100%;
  animation: growSignal 0.6s ease-out;
}

/* GOOD */
.signal-row.good .signal-fill {
  background: linear-gradient(90deg, #2cffc9, #7fffe1);
  box-shadow: 0 0 8px rgba(44,255,201,0.6);
}

.signal-row.good .signal-score {
  color: #7fffe1;
}

/* WARNING */
.signal-row.warn .signal-fill {
  background: linear-gradient(90deg, #ffd36a, #ffef9c);
  box-shadow: 0 0 8px rgba(255,211,106,0.6);
}

.signal-row.warn .signal-score {
  color: #ffd36a;
}

/* BAD */
.signal-row.bad .signal-fill {
  background: linear-gradient(90deg, #ff5d5d, #ff9a9a);
  box-shadow: 0 0 8px rgba(255,93,93,0.6);
}

.signal-row.bad .signal-score {
  color: #ff5d5d;
}

/* FINAL SCORE */
.signal-row.final {
  border: 1px solid rgba(127,255,225,0.5);
  background: rgba(44,255,201,0.08);
}

@keyframes growSignal {
  from {
    width: 0%;
  }
}
/* ===== FINAL SCORE CARD ===== */

.score-card {
  position: relative;
  padding: 20px;
  border-radius: 14px;
  background:
    radial-gradient(circle at top, rgba(44,255,201,0.25), rgba(0,0,0,0.85)),
    url("https://images.unsplash.com/photo-1640552435388-89a3d2a8f4f3?auto=format&fit=crop&w=900&q=80");
  background-size: cover;
  background-blend-mode: overlay;
  border: 1px solid rgba(44,255,201,0.6);
  box-shadow:
    0 0 30px rgba(44,255,201,0.35),
    inset 0 0 25px rgba(44,255,201,0.15);
  text-align: center;
}

.score-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.score-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(44,255,201,0.6);
}

.score-meta {
  text-align: left;
}

.score-token {
  font-size: 16px;
  font-weight: 700;
}

.score-badge {
  font-size: 11px;
  color: #7fffe1;
  opacity: 0.9;
}

/* MAIN SCORE */

.score-main {
  font-size: 46px;
  font-weight: 900;
  margin: 10px 0;
}

.score-main .score-value {
  font-size: 46px;
}

.score-main .score-max {
  font-size: 18px;
  opacity: 0.6;
  margin-left: 6px;
}



/* SCORE STATES */

.score-good {
  color: #2cffc9;
  text-shadow: 0 0 18px rgba(44,255,201,0.9);
}

.score-warn {
  color: #ffd36a;
  text-shadow: 0 0 18px rgba(255,211,106,0.9);
}

.score-bad {
  color: #ff5d5d;
  text-shadow: 0 0 18px rgba(255,93,93,0.9);
}

/* SUB INFO */

.score-sub {
  font-size: 13px;
  opacity: 0.85;
  margin-bottom: 12px;
}

/* FOOTER */

.score-footer {
  font-size: 11px;
  letter-spacing: 1px;
  opacity: 0.6;
}
/* ===== SHARE TO X BUTTON ===== */

.share-x-btn {
  display: inline-block;
  margin: 10px auto 6px;
  padding: 8px 18px;
  border-radius: 20px;
  background: linear-gradient(90deg, #1da1f2, #0d8ddb);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 0 14px rgba(29,161,242,0.6);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.share-x-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 22px rgba(29,161,242,0.9);
}

/* ===== FINAL SCORE 24H BACKGROUND ===== */

.score-card {
  position: relative;
  overflow: hidden;
}

.score-card canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.25;
  filter: blur(0.5px);
}

.score-content {
  position: relative;
  z-index: 2;
}
/* ===== COMMUNITY PANEL ===== */

.community-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.community-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.community-item {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.05);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.community-item a {
  color: #7fffe1;
  text-decoration: none;
}

.community-item:hover {
  background: rgba(44,255,201,0.08);
  box-shadow: 0 0 10px rgba(44,255,201,0.15);
}

/* STATS */
.community-item.stat strong {
  color: #2cffc9;
  text-shadow: 0 0 6px rgba(44,255,201,0.6);
}

/* COMING SOON */
.community-item.coming {
  opacity: 0.45;
  font-style: italic;
}

/* ☠ MARKET FAILURE */
.score-card.market-dead {
  filter: grayscale(0.35);
  box-shadow: 0 0 30px rgba(255,60,60,0.6);
  animation: pulseRed 2.2s infinite;
}

@keyframes pulseRed {
  0% { box-shadow: 0 0 18px rgba(255,60,60,0.3); }
  50% { box-shadow: 0 0 34px rgba(255,60,60,0.7); }
  100% { box-shadow: 0 0 18px rgba(255,60,60,0.3); }
}

.signal-explainer {
  margin-bottom: 10px;
  padding: 8px 12px;
  font-size: 13px;
  color: #ffb4b4;
  background: rgba(255,60,60,0.08);
  border-left: 3px solid #ff3c3c;
}

.signal-row.dominant-signal {
  border: 1px solid rgba(255,180,60,0.4);
  background: linear-gradient(90deg, rgba(255,180,60,0.08), transparent);
}
/* ===== FINAL SCORE TITLE ACTIONS ===== */

.final-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.final-actions {
  display: flex;
  gap: 6px;
}

.final-btn {
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #2cffc9, #7fffe1);
  color: #02231b;
  box-shadow:
    0 0 10px rgba(44,255,201,0.6),
    inset 0 0 6px rgba(255,255,255,0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.final-btn:hover {
  transform: scale(1.08);
  box-shadow:
    0 0 18px rgba(44,255,201,0.9),
    inset 0 0 8px rgba(255,255,255,0.6);
}

.final-btn.x {
  background: linear-gradient(135deg, #1da1f2, #0d8ddb);
  color: #fff;
  box-shadow: 0 0 12px rgba(29,161,242,0.8);
}
/* FINAL SCORE HEADER FIX */
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.score-actions {
  display: flex;
  gap: 8px;
  margin-right: 24px; /* moves buttons ~2cm left */
}

.score-actions button {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 10px;
  border: 1px solid rgba(44,255,201,0.6);
  background: linear-gradient(145deg, rgba(44,255,201,0.25), rgba(0,0,0,0.4));
  color: #7fffe1;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(44,255,201,0.4);
  transition: all 0.2s ease;
}

.score-actions button:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(44,255,201,0.8);
}
.footer {
  margin-top: 40px;
  padding: 20px 10px;
  border-top: 1px solid rgba(0, 255, 150, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(200, 255, 220, 0.6);
  letter-spacing: 0.5px;
}

.footer-left {
  opacity: 0.8;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.footer .version {
  color: #00ff9d;
  font-weight: 600;
}

.footer .separator {
  opacity: 0.4;
}

.footer .powered {
  opacity: 0.8;
}

@media (max-width: 600px) {
  .footer {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}
