/* Phone layout (<=600px).
 *
 * Layer 03 of the stylesheet. ORDER IS SIGNIFICANT: this file's rules
 * are overridden by every later layer and override every earlier one, exactly as
 * when they were one file. See docs/frontend-architecture.md. */

/* MOBILE — 600px and below
   This block used to carry a full set of phone sizings for the hero, market
   stats, sidebar and nav. Every one of them was dead: later "final pass" blocks
   re-declare the same selectors, and since a media query adds no specificity,
   the later rule won at every width. Most were then re-fixed with !important in
   the ~1024px block further down, which is why the phone still looked right.
   Only the declarations that actually resolve are kept here; the phone sizings
   that genuinely were not applying moved to the end of the stylesheet, where
   they win by position. Verified with scripts/cssSnapshot.js. */
@media (max-width: 600px) {
  #pulseContent > div {
    grid-template-columns: repeat(2, 1fr);
  }

  .signal-table {
    font-size: 12px;
  }
}

#topSignalHero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .25;
  pointer-events: none;
}

.hero-copy,
.hero-chart-box,
.hero-verdict {
  position: relative;
  z-index: 1;
}

.hero-copy {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 22px;
}

.hero-coin-logo {
  width: 122px;
  height: 122px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #0d1a24;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow:
  0 0 18px rgba(0,255,153,.20),
  0 0 45px rgba(0,255,153,.12);
  color: #eafff6;
  font-size: 48px;
  font-weight: 900;
}

.hero-badge {
  display: inline-block;
  padding: 7px 11px;
  border-radius: 8px;
  background: rgba(0,255,153,.12);
  border: 1px solid rgba(0,255,153,.35);
  color: #00ff99;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-name {
  margin-top: 10px;
  font-size: 64px;
  line-height: .92;
  font-weight: 900;
  letter-spacing: -2px;
  text-transform: uppercase;
}

.hero-name span {
  color: #aab4bd;
  font-size: 28px;
  font-weight: 500;
  margin-left: 10px;
}

.hero-status {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 13px;
  border-radius: 9px;
  background: rgba(0,255,153,.13);
  border: 1px solid rgba(0,255,153,.35);
  color: #00ff99;
  font-weight: 900;
  font-size: 13px;
}

.hero-desc {
  margin-top: 16px;
  color: #d7e2e9;
  line-height: 1.5;
  font-size: 14px;
}

.hero-metrics {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 18px;
  background: rgba(3,9,14,.42);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 14px;
  overflow: hidden;
}

.hero-metric {
  padding: 15px 18px;
  border-left: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
}

.hero-metric:first-child {
  border-left: none;
}

.hero-metric small {
  color: #8e9aa5;
  text-transform: uppercase;
  font-size: 11px;
}

.hero-metric strong {
  display: block;
  margin-top: 7px;
  font-size: 23px;
}

.hero-chart-box {
  border-left: 1px solid rgba(255,255,255,.08);
  padding-left: 26px;
  display: flex;
flex-direction: column;
justify-content: center;
}

.hero-price {
  font-size: 31px;
  font-weight: 900;
  margin-top: 12px;
}

.hero-chart {
  width: 100%;
  height: 210px;
  opacity: .98;
  margin-top: 10px;
  display: block;
  filter: drop-shadow(0 0 8px rgba(0,255,153,.25));
  filter:
  drop-shadow(0 0 10px rgba(0,255,153,.25))
  drop-shadow(0 0 24px rgba(0,255,153,.14));
}

.hero-tabs {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 16px;
}

.hero-tabs span {
  padding: 7px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.04);
}

.hero-tabs .active {
  color: #00ff99;
  background: rgba(0,255,153,.13);
  border: 1px solid rgba(0,255,153,.2);
}

.hero-verdict {
  grid-column: 1 / -1;
  padding: 13px 16px;
  border-radius: 13px;
  background: rgba(2,7,11,.52);
  border: 1px solid rgba(255,255,255,.08);
  color: #e6eef3;
  font-size: 13px;
}
#coins {
  overflow-x: auto;
}

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

.signal-table th {
  text-align: left;
  color: #8e9aa5;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.signal-table td {
  padding: 20px 14px !important;
  border-bottom: 1px solid rgba(255,255,255,.065);
  vertical-align: middle;
}

.signal-table tr {
  transition: background .18s ease, transform .18s ease;
}

.signal-table tbody tr:hover {
  background: rgba(0,255,153,.06);
  transform: translateX(2px);
  cursor: pointer;
}

.coin-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.coin-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;

  /* Neutral base — transparent logo SVGs (ETH, ADA, DOT) were bleeding the
     old green radial through. Keep the glow on the card, not behind the logo. */
  background: #0d1a24;
  border: 1px solid rgba(255,255,255,.14);

  color: #eafff6;
  font-weight: 900;

  box-shadow: 0 2px 10px rgba(0,0,0,.35);
}

.signal-pill {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.signal-pill.strong {
  color: #00ff99;
  background: rgba(0,255,153,.12);
  border: 1px solid rgba(0,255,153,.35);
}

.signal-pill.medium {
  color: #ffcc33;
  background: rgba(255,204,51,.12);
  border: 1px solid rgba(255,204,51,.35);
}

.signal-pill.weak {
  color: #8e9aa5;
  background: rgba(142,154,165,.12);
  border: 1px solid rgba(142,154,165,.35);
}

.score-big {
  color: #00ff99;
  font-size: 21px;
  font-weight: 900;
}

.momentum-bars {
  display: flex;
  gap: 3px;
}

.momentum-bars span {
  width: 4px;
  height: 17px;
  border-radius: 3px;
  background: #1c2a32;
}

.momentum-bars span.on {
  background: #00ff99;
}

.trend-spark {
  width: 90px;
  height: 30px;
  display: block;
}
.right-panel,
#drawer {
  background:
    radial-gradient(circle at top, rgba(0,255,153,.08), transparent 28%),
    linear-gradient(180deg, #101b24, #071017);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 0 32px rgba(0,0,0,.35);
}

.detail-head {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.detail-logo {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #050b10;
  border: 1px solid rgba(0,255,153,.35);
  box-shadow: 0 0 22px rgba(0,255,153,.18);
  color: #00ff99;
  font-size: 32px;
  font-weight: 900;
}

.detail-price {
  font-size: 28px;
  font-weight: 900;
  margin-top: 12px;
}

.detail-card {
  background: rgba(5,11,16,.75);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 22px;
  margin-top: 16px;
}

.detail-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: #d7e2e9;
}

.detail-line:last-child {
  border-bottom: none;
}

.detail-section-title {
  margin-top: 20px;
  margin-bottom: 8px;
  font-size: 13px;
  color: #8e9aa5;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.detail-reason {
  color: #cbd5dc;
  line-height: 1.7;
  font-size: 14px;
}

.detail-risk {
  margin-top: 16px;
  padding: 13px;
  border-radius: 13px;
  background: rgba(255,204,51,.08);
  border: 1px solid rgba(255,204,51,.24);
  color: #d7e2e9;
  line-height: 1.5;
}

.detail-chart {
  width: 100%;
  height: 115px;
  margin-top: 14px;
  display: block;
}
