/* ===== SHARED SECTION LABEL ===== */
.section-label {
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 2px;
  padding: 20px;
  color: #e94560;
  text-transform: uppercase;
  border-bottom: 1px solid #333;
}

/* ===== TICKER ===== */
.ticker-wrap {
  position: relative;
  background: #0f3460;
  padding: 10px 0;
  overflow: hidden;
  border-bottom: 2px solid #e94560;
}

.ticker-label {
  display: inline-block;
  padding: 0 20px;
  font-size: 14px;
  font-weight: bold;
  color: #f0c040;
  white-space: nowrap;
}

.ticker-track-wrap {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
}

.ticker-track {
  display: inline-block;
  animation: scroll-left 80s linear infinite;
}

.ticker-track .ticker-item {
  display: inline-block;
  margin: 0 30px;
  font-size: 14px;
  font-weight: bold;
}

.ticker-track .ticker-item .label { color: #aaa; }
.ticker-track .ticker-item .value { color: #f0c040; margin-left: 8px; }
.ticker-track .ticker-item .up   { color: #00e676; }
.ticker-track .ticker-item .down { color: #ff5252; }

.label a {
	color:white;
	text-decoration:none;
}

@keyframes scroll-left {
  0%   { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

/* CORRECT — seamless loop */
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* moves exactly one copy width */
}

.ticker-fade-right {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 60px;
  background: linear-gradient(to right, rgba(15,52,96,0), rgba(15,52,96,1));
  pointer-events: none;
}

/* ===== GRID (ALL ASSETS) ===== */
.grid-wrap {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.lottery-grid,
.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.asset-card {
  background: #16213e;
  border: 1px solid #0f3460;
  border-radius: 8px;
  padding: 14px 16px;
  display: block;
  overflow: hidden; /* clearfix, so card height wraps its floated children */
  transition: border-color 0.2s;
}

.asset-card:hover { border-color: #e94560; }

.asset-card .updated-label {
  display: block;
  width: 100%;
  clear: both;
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.asset-card .asset-name {
  float: left;
  clear: left;
  width: 50%;
  font-size: 18px;
  font-weight: bold;
  color: #fff;
}

.asset-card .asset-price {
  float: left;
  clear: left;
  width: 50%;
  font-size: 22px;
  font-weight: bold;
  color: #f0c040;
}

.asset-card .last-info {
  float: right;
  clear: right;
  width: 50%;
  text-align: right;
  font-size: 12px;
  color: #aaa;
}

.last-info1 {
  font-size: 12px;
  color: #aaa;
  clear:both;
  padding-top:5px;
}

.asset-card .change-up   { color: #00e676; font-weight: bold; }
.asset-card .change-down { color: #ff5252; font-weight: bold; }

.change-up, .change-down {
	font-size:20px;
}

.asset-card .trade-btn {
  display: block;
  clear: both;
  width: 100%;
  text-align: center;
  margin-top: 10px;
  padding: 8px 0;
  background: #e94560;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.2s;
}

.asset-card .trade-btn:hover {
  background: #c72c46;
}

/* ===== FEATURED ASSET (responsive, splits into 2 columns on wide screens) ===== */
.featured-wrap {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.featured-section,
#featuredCard {
  width: 100%;
  background: #16213e;
  border-radius: 10px;
  padding: 24px;
  text-align: center;
}

.featured-section {
  border: 2px solid #e94560;
}

.featured-section .feat-label {
  font-size: 12px;
  letter-spacing: 3px;
  color: #e94560;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.featured-section .feat-name {
  font-size: clamp(20px, 4vw, 28px);
  font-weight: bold;
  letter-spacing: 2px;
  color: #fff;
  margin-bottom: 16px;
}

/* wrapper around stats + chart -- this is what splits left/right on desktop */
.featured-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  text-align: left;
}

.featured-stats {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-section .feat-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.featured-section .feat-row .feat-key {
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: left;
}

.featured-section .feat-row .feat-val {
  font-size: clamp(13px, 2vw, 14px);
  font-weight: bold;
  color: #f0c040;
  text-align: right;
}

/* ---- Chart block, responsive with y-axis labels ---- */
.chart-wrap {
  max-width: 420px;
  margin: 0 auto;
  background: #0f3460;
  border-radius: 8px;
  padding: 12px;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.chart-wrap .chart-title {
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: left;
  margin-bottom: 6px;
}

.chart-body {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  flex: 1;
}

.chart-yaxis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 10px;
  color: #f0c040;
  font-weight: bold;
  text-align: right;
  flex-shrink: 0;
  min-width: 44px;
}

.chart-wrap svg {
  width: 100%;
  height: 90px;
  display: block;
  flex: 1;
  min-width: 0;
}

.chart-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #666;
  margin-top: 4px;
}

.featured-section .feat-trade-btn {
  background: #e94560;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 14px 30px;
  font-size: clamp(14px, 3vw, 15px);
  font-weight: bold;
  cursor: pointer;
  letter-spacing: 1px;
  text-transform: uppercase;
  width: 100%;
  text-decoration: none;
  display: block;
  text-align: center;
  margin-top: 20px;
}
.featured-section .feat-trade-btn:hover { background: #c73652; }

/* ---- Desktop: split chart and stats side-by-side ---- */
@media (min-width: 700px) {
  .featured-body {
    grid-template-columns: 1fr 1.4fr; /* stats narrower, chart wider */
    align-items: stretch;
  }
  .chart-wrap {
    height: 100%;
  }
}

/* ---- Mobile: tighten spacing, stack (unchanged from before) ---- */
@media (max-width: 480px) {
  .featured-section {
    padding: 16px;
    border-radius: 6px;
  }
  .featured-section .feat-row {
    justify-content: flex-start;
    gap: 4px;
  }
  .featured-section .feat-row .feat-key {
    flex: 1 0 100%;
    font-size: 10px;
  }
  .featured-section .feat-row .feat-val {
    flex: 1 0 100%;
    text-align: left;
    font-size: 15px;
  }
  .chart-yaxis {
    min-width: 38px;
    font-size: 9px;
  }
  .chart-wrap svg { height: 75px; }
}