/* ═════════════════════════════════════════════════════
   GATEWAY · TESTNET CARD (LIVE state)
   ═════════════════════════════════════════════════════ */
.gw-card-testnet {
  cursor: pointer;
}
.gw-card-testnet:hover {
  transform: translateY(-8px);
  border-color: rgba(56, 200, 120, 0.36);
  box-shadow: 0 18px 48px rgba(40, 180, 100, 0.18);
}
.gw-card-testnet:active { transform: translateY(-3px); }

.gwc-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #4ade80;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.gwc-live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74,222,128,0.65);
  animation: liveDotPulse 1.6s ease-out infinite;
}
@keyframes liveDotPulse {
  0%   { box-shadow: 0 0 0 0 rgba(74,222,128,0.65); }
  70%  { box-shadow: 0 0 0 10px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}

/* ═════════════════════════════════════════════════════
   TESTNET DASHBOARD SCENE
   ═════════════════════════════════════════════════════ */
.testnet-scene {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 80px 24px 80px;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.testnet-scene.scene-out { display: none; }

.testnet-hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.testnet-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: #4ade80;
  padding: 6px 14px;
  border: 1px solid rgba(74,222,128,0.32);
  border-radius: 999px;
  background: rgba(74,222,128,0.06);
}
.testnet-status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80;
  animation: liveDotPulse 1.6s ease-out infinite;
}
.testnet-title {
  font-size: clamp(28px, 4.6vw, 48px);
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4em;
  line-height: 1.15;
}
.tn-brand-icon {
  height: 0.95em;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}
.tn-avax-icon { height: 0.85em; }
.tn-liveon {
  font-weight: 400;
  font-size: 0.55em;
  color: var(--t3);
  letter-spacing: 0.04em;
  text-transform: lowercase;
  font-style: italic;
  padding: 0 0.2em;
}
.testnet-title-sub {
  font-weight: 400;
  color: var(--t2);
  font-size: 0.55em;
  vertical-align: middle;
  margin-left: 6px;
}
.testnet-chainid {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--t3);
  letter-spacing: 0.06em;
}
.testnet-chainid strong { color: var(--t1); font-weight: 600; }

.testnet-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.tn-stat-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 22px 24px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.tn-stat-card:hover {
  border-color: rgba(74,222,128,0.28);
  transform: translateY(-3px);
}
.tn-stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--t3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.tn-stat-val {
  font-family: var(--font-mono);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  color: var(--t1);
  letter-spacing: -0.01em;
}

.testnet-blocks { display: flex; flex-direction: column; gap: 14px; }
.tn-blocks-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.tn-blocks-head h3 {
  font-size: 18px; font-weight: 700; margin: 0;
}
.tn-blocks-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--t3);
  letter-spacing: 0.08em;
}

.tn-table-wrap {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
}
.tn-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 13px;
}
.tn-table th {
  text-align: left;
  padding: 14px 18px;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--t3);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.015);
}
.tn-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--t2);
}
.tn-table tbody tr:last-child td { border-bottom: none; }
.tn-table tbody tr { transition: background 0.2s ease; }
.tn-table tbody tr:hover { background: rgba(74,222,128,0.04); }
.tn-table .tn-blockno { color: #4ade80; font-weight: 600; }
.tn-table .tn-hash    { color: var(--t2); }
.tn-table .tn-empty td { text-align: center; color: var(--t3); padding: 28px; }

@keyframes tnRowEnter {
  from { background: rgba(74,222,128,0.18); }
  to   { background: transparent; }
}
.tn-table tr.tn-new { animation: tnRowEnter 1.4s ease-out; }

@media (max-width: 720px) {
  .testnet-stats { grid-template-columns: 1fr; }
  .tn-table th:nth-child(2), .tn-table td:nth-child(2) { display: none; }
  .tn-table th, .tn-table td { padding: 12px 14px; }
}

[data-theme="day"] .tn-stat-card {
  background: rgba(0,0,0,0.02);
  border-color: rgba(28,18,8,0.08);
}
[data-theme="day"] .tn-table-wrap {
  background: rgba(0,0,0,0.01);
  border-color: rgba(28,18,8,0.08);
}
[data-theme="day"] .tn-table th { background: rgba(0,0,0,0.02); border-bottom-color: rgba(28,18,8,0.08); }
[data-theme="day"] .tn-table td { border-bottom-color: rgba(28,18,8,0.04); }

/* ═════════════════════════════════════════════════════
   TESTNET · LATEST NEWS CARD
   ═════════════════════════════════════════════════════ */
.tn-news {
  position: relative;
  padding: 26px 28px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255,180,80,0.05) 0%, rgba(255,140,40,0.02) 100%),
    rgba(255,255,255,0.02);
  border: 1px solid rgba(255,180,80,0.22);
  overflow: hidden;
}
.tn-news::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255,180,80,0.10), transparent 60%);
  pointer-events: none;
}
.tn-news > * { position: relative; }

.tn-news-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--amber, #f5a623);
  font-weight: 700;
  margin-bottom: 14px;
}
.tn-news-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--amber, #f5a623);
  animation: liveDotPulse 1.6s ease-out infinite;
  box-shadow: 0 0 0 0 rgba(245,166,35,0.55);
}
.tn-news-tag {
  color: var(--t3);
  font-weight: 400;
  letter-spacing: 0.08em;
  font-style: italic;
}

.tn-news-title {
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 800;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
  color: var(--t1);
}
.tn-news-lede {
  font-size: 15px;
  line-height: 1.55;
  color: var(--t2);
  margin: 0 0 18px;
}
.tn-news-lede strong { color: var(--t1); }

.tn-news-bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--t2);
}
.tn-news-bullets > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.tn-news-emoji { font-size: 16px; line-height: 1; }
.tn-news-coin  { width: 16px; height: 16px; display: inline-block; vertical-align: middle; }

.tn-news-foot {
  font-size: 13px;
  line-height: 1.6;
  color: var(--t3);
  margin: 0 0 18px;
}
.tn-news-foot strong { color: var(--t1); font-weight: 600; }

.tn-news-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--amber, #f5a623);
  background: rgba(255,180,80,0.06);
  border: 1px solid rgba(255,180,80,0.36);
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.tn-news-cta:hover {
  background: rgba(255,180,80,0.14);
  border-color: rgba(255,180,80,0.6);
  transform: translateY(-2px);
}

[data-theme="day"] .tn-news {
  background:
    linear-gradient(135deg, rgba(64, 37, 132, 0.06) 0%, rgba(64, 37, 132, 0.02) 100%),
    rgba(0,0,0,0.01);
  border-color: rgba(64, 37, 132, 0.28);
}
[data-theme="day"] .tn-news::before {
  background: radial-gradient(circle at top right, rgba(64, 37, 132, 0.10), transparent 60%);
}
[data-theme="day"] .tn-news-dot {
  box-shadow: 0 0 0 0 rgba(64, 37, 132, 0.55);
}
[data-theme="day"] .tn-news-cta {
  background: rgba(64, 37, 132, 0.08);
  border-color: rgba(64, 37, 132, 0.40);
}
[data-theme="day"] .tn-news-cta:hover {
  background: rgba(64, 37, 132, 0.14);
  border-color: rgba(64, 37, 132, 0.6);
}


