/* Sitewide 7-card hero strip — Dashboard / Markets / Newsroom / Tape Talk */
.index-strip,
.idx-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  padding: 6px 10px;
  background: var(--bg, #050508);
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}
/* Phone only — never wrap the 7 heroes on iPad / tablet (incl. landscape). */
@media (max-width: 600px) {
  .index-strip, .idx-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 380px) {
  .index-strip, .idx-strip { grid-template-columns: 1fr; }
}

.idx-card {
  border-radius: 6px;
  padding: 8px 12px 14px;
  height: 94px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  transition: transform .12s;
  overflow: hidden;
  position: relative;
  border: none;
  text-align: center;
  min-width: 0;
}
.idx-card:hover { transform: translateY(-2px); }

.idx-card.up {
  background: radial-gradient(ellipse at top right, rgba(0,224,96,.35) 0%, rgba(0,224,96,.08) 45%, #030805 100%);
  box-shadow: 0 0 20px rgba(0,255,136,.3), 0 0 40px rgba(0,255,136,.12), inset 0 0 18px rgba(0,255,136,.18);
}
.idx-card.dn {
  background: radial-gradient(ellipse at top right, rgba(255,26,60,.35) 0%, rgba(255,26,60,.08) 45%, #080305 100%);
  box-shadow: 0 0 20px rgba(232,0,45,.3), 0 0 40px rgba(232,0,45,.12), inset 0 0 18px rgba(232,0,45,.18);
}
.idx-card.clsd {
  background: radial-gradient(ellipse at top right, rgba(160,160,160,.25) 0%, rgba(160,160,160,.06) 45%, #050508 100%);
  box-shadow: 0 0 20px rgba(160,160,160,.2), 0 0 40px rgba(160,160,160,.08), inset 0 0 18px rgba(160,160,160,.12);
}

.idx-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  flex-shrink: 0;
  gap: 4px;
  min-width: 0;
}
.idx-name {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: .04em;
  line-height: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.idx-proxy {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 700;
  color: rgba(255,255,255,.4);
  letter-spacing: .06em;
  margin-left: 4px;
  flex-shrink: 0;
}

.idx-badge {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  color: #fff !important;
  background: transparent;
  flex-shrink: 0;
}
.idx-card.up   .idx-badge { border: 1.5px solid #00e060; }
.idx-card.dn   .idx-badge { border: 1.5px solid #CC0022; }
.idx-card.clsd .idx-badge { border: 1.5px solid #a0a0a0; }

.idx-price {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 28px;
  line-height: 1;
  color: #ffffff;
  letter-spacing: -.02em;
  text-align: center;
  flex-shrink: 0;
}

.idx-chg {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  width: 100%;
  margin-top: auto;
  flex-shrink: 0;
}
.idx-arrow { font-size: 12px; font-weight: 900; }
.idx-dol, .idx-pct { color: #ffffff; }
.up-c  { color: #00e060; }
.dn-c  { color: #CC0022; }
.cl-c  { color: #a0a0a0; }

.idx-card.gamma {
  background: radial-gradient(ellipse at top right, rgba(255,179,0,.30) 0%, rgba(255,179,0,.07) 45%, #080600 100%);
  box-shadow: 0 0 20px rgba(255,179,0,.3), 0 0 40px rgba(255,179,0,.12), inset 0 0 18px rgba(255,179,0,.18);
}
.idx-card.gamma .idx-badge { border: 1.5px solid #FFB300; }
.idx-card.gamma .idx-name  { color: #FFB300; }
.gex-flip {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,.55);
  letter-spacing: .05em;
}
.gex-flip span { color: #FFB300; font-size: 13px; }

.idx-shelf {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  border-radius: 0 0 6px 6px;
}
.idx-shelf.s-up   { background: #00e060; box-shadow: 0 0 8px 2px rgba(0,224,96,.6), 0 0 14px 3px rgba(0,224,96,.2); }
.idx-shelf.s-dn   { background: #E8002D; box-shadow: 0 0 8px 2px rgba(232,0,45,.6), 0 0 14px 3px rgba(232,0,45,.2); }
.idx-shelf.s-clsd { background: #a0a0a0; box-shadow: 0 0 8px 2px rgba(160,160,160,.5), 0 0 14px 3px rgba(160,160,160,.2); }
.idx-shelf.s-amr  { background: #FFB300; box-shadow: 0 0 8px 2px rgba(255,179,0,.6), 0 0 14px 3px rgba(255,179,0,.2); }

@keyframes shelfPulseGreen {
  0%  { background:#00e060; box-shadow:0 0 8px 2px rgba(0,224,96,.6),0 0 14px 3px rgba(0,224,96,.2); }
  35% { background:#00ff99; box-shadow:0 0 18px 7px rgba(0,255,136,.95),0 -8px 14px 3px rgba(0,224,96,.45); }
  100%{ background:#00e060; box-shadow:0 0 8px 2px rgba(0,224,96,.6),0 0 14px 3px rgba(0,224,96,.2); }
}
@keyframes shelfPulseRed {
  0%  { background:#E8002D; box-shadow:0 0 8px 2px rgba(232,0,45,.6),0 0 14px 3px rgba(232,0,45,.2); }
  35% { background:#ff1a3c; box-shadow:0 0 18px 7px rgba(255,26,60,.95),0 -8px 14px 3px rgba(232,0,45,.45); }
  100%{ background:#E8002D; box-shadow:0 0 8px 2px rgba(232,0,45,.6),0 0 14px 3px rgba(232,0,45,.2); }
}
@keyframes shelfPulseAmber {
  0%  { background:#FFB300; box-shadow:0 0 8px 2px rgba(255,179,0,.6),0 0 14px 3px rgba(255,179,0,.2); }
  35% { background:#ffd040; box-shadow:0 0 18px 7px rgba(255,208,0,.95),0 -8px 14px 3px rgba(255,179,0,.45); }
  100%{ background:#FFB300; box-shadow:0 0 8px 2px rgba(255,179,0,.6),0 0 14px 3px rgba(255,179,0,.2); }
}
.idx-shelf.s-up.pulsing   { animation: shelfPulseGreen .9s ease-out forwards; }
.idx-shelf.s-dn.pulsing   { animation: shelfPulseRed   .9s ease-out forwards; }
.idx-shelf.s-amr.pulsing  { animation: shelfPulseAmber .9s ease-out forwards; }

/* iPad / tablet / small laptop: keep 7 across; scale type with available width. */
@media (min-width: 601px) and (max-width: 1366px) {
  .index-strip, .idx-strip {
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    gap: 4px;
    padding: 6px 8px;
  }
  .index-strip .idx-card, .idx-strip .idx-card {
    height: 78px !important;
    padding: 6px 4px 10px !important;
  }
  .index-strip .idx-price, .idx-strip .idx-price { font-size: clamp(15px, 1.7vw, 22px) !important; }
  .index-strip .idx-name, .idx-strip .idx-name { font-size: clamp(8px, .76vw, 10px) !important; }
  .index-strip .idx-proxy, .idx-strip .idx-proxy { font-size: clamp(7px, .6vw, 8px) !important; }
  .index-strip .idx-chg, .idx-strip .idx-chg { font-size: clamp(9px, .85vw, 11px) !important; gap: 3px !important; }
  .index-strip .idx-badge, .idx-strip .idx-badge { font-size: clamp(6px, .6vw, 8px) !important; padding: 1px 3px !important; }
  .index-strip .idx-arrow, .idx-strip .idx-arrow { font-size: clamp(8px, .76vw, 10px) !important; }
}
